]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_controls_wrap.cpp
test for special keys first, before testing for alphanumeric ones as even keys such...
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
554f62e9 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
554f62e9 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
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; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 27};
d55e5bfc
RD
28#endif
29
554f62e9 30/* -----------------------------------------------------------------------------
7449af73
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
554f62e9 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
7449af73
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
554f62e9
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
d55e5bfc 47
7449af73
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
554f62e9
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__))
7449af73
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
554f62e9
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
7449af73
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
554f62e9
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
7449af73
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
554f62e9
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
7449af73
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
554f62e9
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
7449af73 126
d55e5bfc 127
554f62e9 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d55e5bfc 130
554f62e9 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d55e5bfc 133 *
554f62e9
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 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 */
7449af73 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
7449af73
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
7449af73 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*/
7449af73 159
093d3ff1 160#ifndef SWIGRUNTIME
7449af73 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
7449af73 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
7449af73 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
554f62e9
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)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE 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
7449af73
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
7449af73 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
7449af73
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 */
554f62e9 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
7449af73
RD
328/* Structure to store a type and conversion function used for casting */
329typedef 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.*/
339typedef 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*/
355SWIGRUNTIME int
356SWIG_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;
554f62e9 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>|...
7449af73 368 Return 0 if not equal, 1 if equal
093d3ff1
RD
369*/
370SWIGRUNTIME int
371SWIG_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 }
7449af73 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
7449af73
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*/
7449af73
RD
389SWIGRUNTIME int
390SWIG_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 }
7449af73
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
7449af73 401 return equiv;
093d3ff1
RD
402}
403
7449af73
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*/
7449af73 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
7449af73
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 */
436SWIGRUNTIME swig_cast_info *
437SWIG_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*/
444SWIGRUNTIMEINLINE void *
7449af73 445SWIG_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*/
452SWIGRUNTIME swig_type_info *
453SWIG_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*/
466SWIGRUNTIMEINLINE const char *
467SWIG_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*/
475SWIGRUNTIME const char *
476SWIG_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. */
554f62e9 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*/
496SWIGRUNTIME void
7449af73
RD
497SWIG_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;
7449af73
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 }
7449af73
RD
508 }
509 cast = cast->next;
510 }
511}
554f62e9
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
7449af73
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*/
526SWIGRUNTIME swig_type_info *
527SWIG_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 }
7449af73
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*/
571SWIGRUNTIME swig_type_info *
572SWIG_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 }
7449af73
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
7449af73
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) {
7449af73 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*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
7449af73 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
7449af73 621 register char d = *(c++);
554f62e9 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*/
644SWIGRUNTIME char *
645SWIG_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
655SWIGRUNTIME const char *
656SWIG_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
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
093d3ff1
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
554f62e9
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
554f62e9
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
736static PyObject *
737PyString_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
554f62e9
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
790static
791PyObject *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/* -----------------------------------------------------------------------------
554f62e9 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
554f62e9
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
554f62e9
RD
847
848SWIGRUNTIME void
849SWIG_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
d55e5bfc 936
554f62e9
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
554f62e9
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
554f62e9
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;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
554f62e9
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
554f62e9
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 *
554f62e9
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 *
554f62e9 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
093d3ff1 986/* Common SWIG API */
d55e5bfc 987
96221a45
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
554f62e9
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
554f62e9
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
554f62e9
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
554f62e9
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
554f62e9
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)
7449af73 1016
d55e5bfc 1017
554f62e9 1018/* Runtime API */
d55e5bfc 1019
554f62e9
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)
7449af73 1023
554f62e9
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
7449af73 1029
d55e5bfc 1030
554f62e9 1031/* Runtime API implementation */
093d3ff1 1032
554f62e9 1033/* Error manipulation */
093d3ff1 1034
554f62e9
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
d55e5bfc
RD
1041}
1042
554f62e9
RD
1043SWIGINTERN void
1044SWIG_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}
d55e5bfc 1049
554f62e9 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
7449af73 1051
554f62e9 1052/* Set a constant value */
093d3ff1 1053
554f62e9
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
554f62e9 1060/* Append a value to the result obj */
d55e5bfc 1061
554f62e9
RD
1062SWIGINTERN PyObject*
1063SWIG_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 {
554f62e9
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 }
554f62e9
RD
1101 return result;
1102#endif
d55e5bfc 1103}
093d3ff1 1104
554f62e9 1105/* Unpack the argument tuple */
093d3ff1 1106
554f62e9
RD
1107SWIGINTERN int
1108SWIG_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
1173extern "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
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_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
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_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
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_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
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_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
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_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
1373SWIGRUNTIME int
1374PySwigObject_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
1390SWIGRUNTIME PyObject *
1391PySwigObject_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
1398SWIGRUNTIME int
1399PySwigObject_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
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_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
1457SWIGRUNTIME PyObject*
1458PySwigObject_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
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_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
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_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
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_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
1514SWIGINTERN PyObject*
1515PySwigObject_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
1550static PyMethodDef
1551swigobject_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
1561static PyMethodDef
1562swigobject_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
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME 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*/
7449af73 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 */
7449af73
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
554f62e9 1616 static PyTypeObject pyswigobject_type;
7449af73 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
554f62e9
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
554f62e9
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
554f62e9
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
d55e5bfc 1672#endif
093d3ff1 1673#if PY_VERSION_HEX >= 0x02030000
554f62e9 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
554f62e9 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
554f62e9 1679 };
7449af73 1680 pyswigobject_type = tmp;
554f62e9 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1
RD
1682 type_init = 1;
1683 }
7449af73 1684 return &pyswigobject_type;
093d3ff1
RD
1685}
1686
1687SWIGRUNTIME PyObject *
554f62e9 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
554f62e9
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;
7449af73 1696 }
554f62e9 1697 return (PyObject *)sobj;
093d3ff1
RD
1698}
1699
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
554f62e9 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
554f62e9 1712PySwigPacked_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 }
554f62e9 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
1723}
9d7dfdff 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
1727{
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
554f62e9 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
554f62e9 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1
RD
1733 }
1734}
1735
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
554f62e9 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
554f62e9 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
1746
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749{
554f62e9
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
554f62e9 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1757
1758SWIGRUNTIME PyTypeObject*
7449af73 1759PySwigPacked_type(void) {
554f62e9
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_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
1780SWIGRUNTIME 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
554f62e9 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
554f62e9 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
554f62e9 1842 };
7449af73 1843 pyswigpacked_type = tmp;
554f62e9 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
7449af73 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
554f62e9 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1852{
554f62e9
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
7449af73
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
554f62e9
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
7449af73 1864 }
093d3ff1 1865 }
554f62e9 1866 return (PyObject *) sobj;
093d3ff1
RD
1867}
1868
554f62e9 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
554f62e9
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/* -----------------------------------------------------------------------------
554f62e9 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
554f62e9
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
554f62e9
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
554f62e9 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
554f62e9
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1903{
554f62e9
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 {
554f62e9
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
554f62e9
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
554f62e9
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_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 }
554f62e9 1962 return 0;
093d3ff1
RD
1963}
1964
554f62e9
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
554f62e9
RD
1968SWIG_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 {
554f62e9
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
554f62e9
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
554f62e9
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
554f62e9
RD
2048SWIG_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 {
554f62e9
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
96221a45 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
554f62e9
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
554f62e9 2072/* Convert a packed value value */
093d3ff1 2073
093d3ff1 2074SWIGRUNTIME int
554f62e9
RD
2075SWIG_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 }
554f62e9
RD
2085 return SWIG_OK;
2086}
093d3ff1 2087
554f62e9
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
093d3ff1 2091
554f62e9
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
093d3ff1 2096
554f62e9
RD
2097SWIGRUNTIME PyObject*
2098SWIG_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 }
554f62e9
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
554f62e9
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 }
554f62e9
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 }
554f62e9
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 }
554f62e9
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
554f62e9
RD
2160SWIGRUNTIME void
2161SWIG_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
554f62e9
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
093d3ff1 2180
554f62e9
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_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 {
554f62e9 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
554f62e9 2194 return SWIG_Py_Void();
093d3ff1 2195 }
554f62e9
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
554f62e9 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
554f62e9
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 }
554f62e9 2215 return robj;
093d3ff1 2216 }
093d3ff1
RD
2217}
2218
554f62e9
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
554f62e9 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
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
7449af73
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_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
7449af73
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1
RD
2251}
2252
7449af73
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
554f62e9 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
7449af73
RD
2256SWIGINTERN int
2257PyModule_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");
554f62e9 2263 return SWIG_ERROR;
7449af73
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
554f62e9 2268 return SWIG_ERROR;
7449af73
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));
554f62e9 2276 return SWIG_ERROR;
7449af73
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
554f62e9 2279 return SWIG_ERROR;
7449af73 2280 Py_DECREF(o);
554f62e9 2281 return SWIG_OK;
093d3ff1 2282}
7449af73 2283#endif
093d3ff1 2284
554f62e9
RD
2285SWIGRUNTIME void
2286SWIG_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
7449af73
RD
2301SWIGRUNTIME void
2302SWIG_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);
554f62e9 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
7449af73
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
554f62e9
RD
2310 } else {
2311 Py_XDECREF(pointer);
7449af73
RD
2312 }
2313}
093d3ff1 2314
554f62e9
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
093d3ff1 2320}
093d3ff1 2321
554f62e9
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_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
2351SWIGRUNTIME int
2352SWIG_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
2376SWIGRUNTIME int
2377SWIG_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
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_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
2397SWIGRUNTIME void
2398SWIG_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 */
2435SWIGRUNTIME void *
2436SWIG_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]
7449af73
RD
2468#define SWIGTYPE_p_form_ops_t swig_types[2]
2469#define SWIGTYPE_p_int swig_types[3]
2470#define SWIGTYPE_p_long swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxArrayInt swig_types[12]
2479#define SWIGTYPE_p_wxArrayString swig_types[13]
2480#define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481#define SWIGTYPE_p_wxBitmap swig_types[15]
2482#define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483#define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484#define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485#define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486#define SWIGTYPE_p_wxButton swig_types[20]
2487#define SWIGTYPE_p_wxCURHandler swig_types[21]
2488#define SWIGTYPE_p_wxCheckBox swig_types[22]
2489#define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxChoice swig_types[25]
2492#define SWIGTYPE_p_wxChoicebook swig_types[26]
2493#define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2131d850
RD
2494#define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495#define SWIGTYPE_p_wxCloseEvent swig_types[29]
5172800e
RD
2496#define SWIGTYPE_p_wxCollapsiblePane swig_types[30]
2497#define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498#define SWIGTYPE_p_wxColour swig_types[32]
2499#define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500#define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501#define SWIGTYPE_p_wxComboBox swig_types[35]
2502#define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503#define SWIGTYPE_p_wxContextHelp swig_types[37]
2504#define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505#define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506#define SWIGTYPE_p_wxControl swig_types[40]
2507#define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508#define SWIGTYPE_p_wxCursor swig_types[42]
2509#define SWIGTYPE_p_wxDC swig_types[43]
2510#define SWIGTYPE_p_wxDateEvent swig_types[44]
2511#define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512#define SWIGTYPE_p_wxDateTime swig_types[46]
2513#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514#define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516#define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517#define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518#define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519#define SWIGTYPE_p_wxEvent swig_types[53]
4976f996
RD
2520#define SWIGTYPE_p_wxEventBlocker swig_types[54]
2521#define SWIGTYPE_p_wxEvtHandler swig_types[55]
2522#define SWIGTYPE_p_wxFSFile swig_types[56]
2523#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[57]
2524#define SWIGTYPE_p_wxFilePickerCtrl swig_types[58]
2525#define SWIGTYPE_p_wxFileSystem swig_types[59]
2526#define SWIGTYPE_p_wxFlexGridSizer swig_types[60]
2527#define SWIGTYPE_p_wxFocusEvent swig_types[61]
2528#define SWIGTYPE_p_wxFont swig_types[62]
2529#define SWIGTYPE_p_wxFontPickerCtrl swig_types[63]
2530#define SWIGTYPE_p_wxFontPickerEvent swig_types[64]
2531#define SWIGTYPE_p_wxGBSizerItem swig_types[65]
2532#define SWIGTYPE_p_wxGIFHandler swig_types[66]
2533#define SWIGTYPE_p_wxGauge swig_types[67]
2534#define SWIGTYPE_p_wxGenericDirCtrl swig_types[68]
2535#define SWIGTYPE_p_wxGenericDragImage swig_types[69]
2536#define SWIGTYPE_p_wxGridBagSizer swig_types[70]
2537#define SWIGTYPE_p_wxGridSizer swig_types[71]
2538#define SWIGTYPE_p_wxHelpEvent swig_types[72]
2539#define SWIGTYPE_p_wxHelpProvider swig_types[73]
2540#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[74]
2541#define SWIGTYPE_p_wxHyperlinkEvent swig_types[75]
2542#define SWIGTYPE_p_wxICOHandler swig_types[76]
2543#define SWIGTYPE_p_wxIcon swig_types[77]
2544#define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545#define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546#define SWIGTYPE_p_wxImage swig_types[80]
2547#define SWIGTYPE_p_wxImageHandler swig_types[81]
2548#define SWIGTYPE_p_wxImageList swig_types[82]
2549#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550#define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551#define SWIGTYPE_p_wxItemContainer swig_types[85]
2552#define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553#define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554#define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555#define SWIGTYPE_p_wxListBox swig_types[89]
2556#define SWIGTYPE_p_wxListEvent swig_types[90]
2557#define SWIGTYPE_p_wxListItem swig_types[91]
2558#define SWIGTYPE_p_wxListItemAttr swig_types[92]
2559#define SWIGTYPE_p_wxListView swig_types[93]
2560#define SWIGTYPE_p_wxListbook swig_types[94]
2561#define SWIGTYPE_p_wxListbookEvent swig_types[95]
2562#define SWIGTYPE_p_wxMaximizeEvent swig_types[96]
2563#define SWIGTYPE_p_wxMemoryDC swig_types[97]
2564#define SWIGTYPE_p_wxMenu swig_types[98]
2565#define SWIGTYPE_p_wxMenuBar swig_types[99]
2566#define SWIGTYPE_p_wxMenuEvent swig_types[100]
2567#define SWIGTYPE_p_wxMenuItem swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[103]
2570#define SWIGTYPE_p_wxMouseEvent swig_types[104]
2571#define SWIGTYPE_p_wxMoveEvent swig_types[105]
2572#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[106]
2573#define SWIGTYPE_p_wxNcPaintEvent swig_types[107]
2574#define SWIGTYPE_p_wxNotebook swig_types[108]
2575#define SWIGTYPE_p_wxNotebookEvent swig_types[109]
2576#define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577#define SWIGTYPE_p_wxObject swig_types[111]
2578#define SWIGTYPE_p_wxPCXHandler swig_types[112]
2579#define SWIGTYPE_p_wxPNGHandler swig_types[113]
2580#define SWIGTYPE_p_wxPNMHandler swig_types[114]
2581#define SWIGTYPE_p_wxPaintEvent swig_types[115]
2582#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[116]
2583#define SWIGTYPE_p_wxPaperSize swig_types[117]
2584#define SWIGTYPE_p_wxPickerBase swig_types[118]
2585#define SWIGTYPE_p_wxPoint swig_types[119]
2586#define SWIGTYPE_p_wxPyApp swig_types[120]
2587#define SWIGTYPE_p_wxPyCommandEvent swig_types[121]
2588#define SWIGTYPE_p_wxPyControl swig_types[122]
2589#define SWIGTYPE_p_wxPyEvent swig_types[123]
2590#define SWIGTYPE_p_wxPyImageHandler swig_types[124]
2591#define SWIGTYPE_p_wxPyListCtrl swig_types[125]
2592#define SWIGTYPE_p_wxPySizer swig_types[126]
2593#define SWIGTYPE_p_wxPyTreeCtrl swig_types[127]
2594#define SWIGTYPE_p_wxPyTreeItemData swig_types[128]
2595#define SWIGTYPE_p_wxPyValidator swig_types[129]
2596#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[130]
2597#define SWIGTYPE_p_wxRadioBox swig_types[131]
2598#define SWIGTYPE_p_wxRadioButton swig_types[132]
2599#define SWIGTYPE_p_wxRect swig_types[133]
2600#define SWIGTYPE_p_wxScrollBar swig_types[134]
2601#define SWIGTYPE_p_wxScrollEvent swig_types[135]
2602#define SWIGTYPE_p_wxScrollWinEvent swig_types[136]
2603#define SWIGTYPE_p_wxSearchCtrl swig_types[137]
2604#define SWIGTYPE_p_wxSetCursorEvent swig_types[138]
2605#define SWIGTYPE_p_wxShowEvent swig_types[139]
2606#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[140]
2607#define SWIGTYPE_p_wxSize swig_types[141]
2608#define SWIGTYPE_p_wxSizeEvent swig_types[142]
2609#define SWIGTYPE_p_wxSizer swig_types[143]
2610#define SWIGTYPE_p_wxSizerItem swig_types[144]
2611#define SWIGTYPE_p_wxSlider swig_types[145]
2612#define SWIGTYPE_p_wxSpinButton swig_types[146]
2613#define SWIGTYPE_p_wxSpinCtrl swig_types[147]
2614#define SWIGTYPE_p_wxSpinEvent swig_types[148]
2615#define SWIGTYPE_p_wxStaticBitmap swig_types[149]
2616#define SWIGTYPE_p_wxStaticBox swig_types[150]
2617#define SWIGTYPE_p_wxStaticBoxSizer swig_types[151]
2618#define SWIGTYPE_p_wxStaticLine swig_types[152]
2619#define SWIGTYPE_p_wxStaticText swig_types[153]
2620#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[154]
2621#define SWIGTYPE_p_wxString swig_types[155]
2622#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[156]
2623#define SWIGTYPE_p_wxTGAHandler swig_types[157]
2624#define SWIGTYPE_p_wxTIFFHandler swig_types[158]
2625#define SWIGTYPE_p_wxTextAttr swig_types[159]
2626#define SWIGTYPE_p_wxTextCtrl swig_types[160]
2627#define SWIGTYPE_p_wxTextUrlEvent swig_types[161]
2628#define SWIGTYPE_p_wxToggleButton swig_types[162]
2629#define SWIGTYPE_p_wxToolBar swig_types[163]
2630#define SWIGTYPE_p_wxToolBarBase swig_types[164]
2631#define SWIGTYPE_p_wxToolBarToolBase swig_types[165]
2632#define SWIGTYPE_p_wxToolbook swig_types[166]
2633#define SWIGTYPE_p_wxToolbookEvent swig_types[167]
2634#define SWIGTYPE_p_wxTreeEvent swig_types[168]
2635#define SWIGTYPE_p_wxTreeItemId swig_types[169]
2636#define SWIGTYPE_p_wxTreebook swig_types[170]
2637#define SWIGTYPE_p_wxTreebookEvent swig_types[171]
2638#define SWIGTYPE_p_wxUpdateUIEvent swig_types[172]
2639#define SWIGTYPE_p_wxValidator swig_types[173]
2640#define SWIGTYPE_p_wxVisualAttributes swig_types[174]
2641#define SWIGTYPE_p_wxWindow swig_types[175]
2642#define SWIGTYPE_p_wxWindowBase swig_types[176]
2643#define SWIGTYPE_p_wxWindowCreateEvent swig_types[177]
2644#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[178]
2645#define SWIGTYPE_p_wxXPMHandler swig_types[179]
2646static swig_type_info *swig_types[181];
2647static swig_module_info swig_module = {swig_types, 180, 0, 0, 0, 0};
7449af73
RD
2648#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2649#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
093d3ff1
RD
2650
2651/* -------- TYPES TABLE (END) -------- */
2652
554f62e9
RD
2653#if (PY_VERSION_HEX <= 0x02000000)
2654# if !defined(SWIG_PYTHON_CLASSIC)
2655# error "This python version requires to use swig with the '-classic' option"
2656# endif
2657#endif
2658#if (PY_VERSION_HEX <= 0x02020000)
2659# error "This python version requires to use swig with the '-nomodern' option"
2660#endif
2661#if (PY_VERSION_HEX <= 0x02020000)
2662# error "This python version requires to use swig with the '-nomodernargs' option"
2663#endif
2664#ifndef METH_O
2665# error "This python version requires to use swig with the '-nofastunpack' option"
2666#endif
093d3ff1
RD
2667
2668/*-----------------------------------------------
2669 @(target):= _controls_.so
2670 ------------------------------------------------*/
2671#define SWIG_init init_controls_
2672
2673#define SWIG_name "_controls_"
2674
554f62e9
RD
2675#define SWIGVERSION 0x010329
2676
2677
2678#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2679#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2680
2681
2682#include <stdexcept>
2683
2684
2685namespace swig {
2686 class PyObject_ptr {
2687 protected:
2688 PyObject *_obj;
2689
2690 public:
2691 PyObject_ptr() :_obj(0)
2692 {
2693 }
2694
2695 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2696 {
2697 Py_XINCREF(_obj);
2698 }
2699
2700 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2701 {
2702 if (initial_ref) Py_XINCREF(_obj);
2703 }
2704
2705 PyObject_ptr & operator=(const PyObject_ptr& item)
2706 {
2707 Py_XINCREF(item._obj);
2708 Py_XDECREF(_obj);
2709 _obj = item._obj;
2710 return *this;
2711 }
2712
2713 ~PyObject_ptr()
2714 {
2715 Py_XDECREF(_obj);
2716 }
2717
2718 operator PyObject *() const
2719 {
2720 return _obj;
2721 }
2722
2723 PyObject *operator->() const
2724 {
2725 return _obj;
2726 }
2727 };
2728}
2729
2730
2731namespace swig {
2732 struct PyObject_var : PyObject_ptr {
2733 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2734
2735 PyObject_var & operator = (PyObject* obj)
2736 {
2737 Py_XDECREF(_obj);
2738 _obj = obj;
2739 return *this;
2740 }
2741 };
2742}
2743
2744
093d3ff1
RD
2745#include "wx/wxPython/wxPython.h"
2746#include "wx/wxPython/pyclasses.h"
2747
2748 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2749 static const wxString wxPyEmptyString(wxEmptyString);
2750 static const wxString wxPyControlNameStr(wxControlNameStr);
2751
2752 const wxArrayString wxPyEmptyStringArray;
2753
2754 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2755
554f62e9 2756 #define SWIG_From_long PyInt_FromLong
093d3ff1
RD
2757
2758
554f62e9
RD
2759SWIGINTERNINLINE PyObject *
2760SWIG_From_int (int value)
2761{
2762 return SWIG_From_long (value);
2763}
093d3ff1
RD
2764
2765
554f62e9
RD
2766#include <limits.h>
2767#ifndef LLONG_MIN
2768# define LLONG_MIN LONG_LONG_MIN
2769#endif
2770#ifndef LLONG_MAX
2771# define LLONG_MAX LONG_LONG_MAX
2772#endif
2773#ifndef ULLONG_MAX
2774# define ULLONG_MAX ULONG_LONG_MAX
2775#endif
093d3ff1
RD
2776
2777
2778SWIGINTERN int
554f62e9 2779SWIG_AsVal_long (PyObject* obj, long* val)
093d3ff1
RD
2780{
2781 if (PyNumber_Check(obj)) {
2782 if (val) *val = PyInt_AsLong(obj);
554f62e9 2783 return SWIG_OK;
093d3ff1 2784 }
554f62e9 2785 return SWIG_TypeError;
093d3ff1
RD
2786}
2787
2788
093d3ff1 2789SWIGINTERN int
554f62e9
RD
2790SWIG_AsVal_int (PyObject * obj, int *val)
2791{
093d3ff1 2792 long v;
554f62e9
RD
2793 int res = SWIG_AsVal_long (obj, &v);
2794 if (SWIG_IsOK(res)) {
2795 if ((v < INT_MIN || v > INT_MAX)) {
2796 return SWIG_OverflowError;
093d3ff1 2797 } else {
554f62e9 2798 if (val) *val = static_cast< int >(v);
093d3ff1 2799 }
554f62e9
RD
2800 }
2801 return res;
d55e5bfc
RD
2802}
2803
c32bde28 2804 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
d55e5bfc 2805
093d3ff1 2806SWIGINTERN int
554f62e9 2807SWIG_AsVal_bool (PyObject *obj, bool *val)
d55e5bfc 2808{
c32bde28
RD
2809 if (obj == Py_True) {
2810 if (val) *val = true;
554f62e9
RD
2811 return SWIG_OK;
2812 } else if (obj == Py_False) {
c32bde28 2813 if (val) *val = false;
554f62e9 2814 return SWIG_OK;
093d3ff1 2815 } else {
554f62e9
RD
2816 long v = 0;
2817 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2818 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2819 return res;
c32bde28 2820 }
d55e5bfc
RD
2821}
2822
2823 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2824 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2825 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2826 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2827 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2828 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
3f7f284d 2829 static const wxString wxPyStaticLineNameStr(wxStaticLineNameStr);
d55e5bfc
RD
2830
2831#include <wx/checklst.h>
d55e5bfc
RD
2832
2833 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
554f62e9 2834SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2835 if (clientData)
2836 {
d55e5bfc
RD
2837 wxPyClientData* data = new wxPyClientData(clientData);
2838 self->Insert(item, pos, data);
e9d6f3a4
RD
2839 }
2840 else
d55e5bfc
RD
2841 self->Insert(item, pos);
2842 }
50f151d7
RD
2843
2844SWIGINTERN int
2845SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2846{
2847 long v = 0;
2848 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2849 return SWIG_TypeError;
2850 }
2851 else if (val)
2852 *val = (unsigned long)v;
2853 return SWIG_OK;
2854}
2855
2856
2857SWIGINTERN int
2858SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2859{
2860 unsigned long v;
2861 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2862 if (SWIG_IsOK(res)) {
2863 if ((v > UINT_MAX)) {
2864 return SWIG_OverflowError;
2865 } else {
2866 if (val) *val = static_cast< unsigned int >(v);
2867 }
2868 }
2869 return res;
2870}
2871
554f62e9 2872SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2873 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2874 wxArrayInt lst;
2875 self->GetSelections(lst);
2876 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2877 for (size_t i=0; i<lst.GetCount(); i++)
2878 {
7e08d4ef
RD
2879 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2880 }
e9d6f3a4 2881 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2882 return tup;
2883 }
554f62e9 2884SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2885 #ifdef __WXMSW__
2886 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2887 self->GetItem(item)->SetTextColour(c);
2888 #endif
2889 }
554f62e9 2890SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2891 #ifdef __WXMSW__
2892 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2893 self->GetItem(item)->SetBackgroundColour(c);
2894 #endif
2895 }
554f62e9 2896SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
d55e5bfc
RD
2897 #ifdef __WXMSW__
2898 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2899 self->GetItem(item)->SetFont(f);
2900 #endif
2901 }
2902 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
d7645bfd 2903SWIGINTERN void wxTextCtrl_MacCheckSpelling(wxTextCtrl *self,bool check){}
554f62e9 2904SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d55e5bfc
RD
2905 self->AppendText(text);
2906 }
554f62e9 2907SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d55e5bfc
RD
2908 return self->GetValue().Mid(from, to - from);
2909 }
2910 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2911 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2912 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2913 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2914 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2915
1c71765a
RD
2916SWIGINTERNINLINE PyObject*
2917SWIG_From_unsigned_SS_long (unsigned long value)
2918{
2919 return (value > LONG_MAX) ?
2920 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2921}
2922
2923
2924SWIGINTERNINLINE PyObject *
2925SWIG_From_size_t (size_t value)
2926{
2927 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2928}
2929
2930
50f151d7
RD
2931SWIGINTERNINLINE PyObject *
2932SWIG_From_unsigned_SS_int (unsigned int value)
2933{
2934 return SWIG_From_unsigned_SS_long (value);
2935}
2936
2937
d55e5bfc
RD
2938#include <wx/slider.h>
2939
2940
2941 static const wxString wxPySliderNameStr(wxSliderNameStr);
2942 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2943
2944#if !wxUSE_TOGGLEBTN
2945// implement dummy items for platforms that don't have this class
2946
2947#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2948
2949class wxToggleButton : public wxControl
2950{
2951public:
2952 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2953 const wxPoint&, const wxSize&, long,
2954 const wxValidator&, const wxString&)
2955 { wxPyRaiseNotImplemented(); }
2956
2957 wxToggleButton()
2958 { wxPyRaiseNotImplemented(); }
2959};
2960#endif
2961
51b83b37 2962 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
d55e5bfc 2963
7e08d4ef 2964SWIGINTERNINLINE int
554f62e9 2965SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2966{
7e08d4ef 2967 unsigned long v;
554f62e9
RD
2968 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2969 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2970 return res;
7e08d4ef 2971}
7e08d4ef 2972
d55e5bfc 2973 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
554f62e9 2974SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d55e5bfc
RD
2975 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2976 if (udata) {
2977 Py_INCREF(udata->m_obj);
2978 return udata->m_obj;
2979 } else {
2980 Py_INCREF(Py_None);
2981 return Py_None;
2982 }
2983 }
554f62e9 2984SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d55e5bfc
RD
2985 self->SetClientData(new wxPyUserData(clientData));
2986 }
554f62e9 2987SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d55e5bfc
RD
2988 wxPyUserData* udata = NULL;
2989 if (clientData && clientData != Py_None)
2990 udata = new wxPyUserData(clientData);
2991 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2992 shortHelp, longHelp, udata);
2993 }
554f62e9 2994SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d55e5bfc
RD
2995 wxPyUserData* udata = NULL;
2996 if (clientData && clientData != Py_None)
2997 udata = new wxPyUserData(clientData);
2998 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2999 shortHelp, longHelp, udata);
3000 }
554f62e9 3001SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d55e5bfc
RD
3002 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
3003 if (udata) {
3004 Py_INCREF(udata->m_obj);
3005 return udata->m_obj;
3006 } else {
3007 Py_INCREF(Py_None);
3008 return Py_None;
3009 }
3010 }
554f62e9 3011SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d55e5bfc
RD
3012 self->SetToolClientData(id, new wxPyUserData(clientData));
3013 }
3014
3015#include <wx/listctrl.h>
3016
fef4c27a 3017 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
554f62e9 3018SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d55e5bfc
RD
3019 // Python aware sorting function for wxPyListCtrl
3020 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3021 int retval = 0;
3022 PyObject* func = (PyObject*)funcPtr;
5a446332 3023 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3024
3025 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3026 PyObject* result = PyEval_CallObject(func, args);
3027 Py_DECREF(args);
3028 if (result) {
3029 retval = PyInt_AsLong(result);
3030 Py_DECREF(result);
3031 }
3032
3033 wxPyEndBlockThreads(blocked);
3034 return retval;
3035 }
3036
3037 // C++ Version of a Python aware class
3038class wxPyListCtrl : public wxListCtrl {
7449af73 3039 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d55e5bfc
RD
3040public:
3041 wxPyListCtrl() : wxListCtrl() {}
3042 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3043 const wxPoint& pos,
3044 const wxSize& size,
3045 long style,
3046 const wxValidator& validator,
3047 const wxString& name) :
3048 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3049
3050 bool Create(wxWindow* parent, wxWindowID id,
3051 const wxPoint& pos,
3052 const wxSize& size,
3053 long style,
3054 const wxValidator& validator,
3055 const wxString& name) {
3056 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3057 }
3058
3059 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d55e5bfc
RD
3060 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3061
84f85550
RD
3062 // use the virtual version to avoid a confusing assert in the base class
3063 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3064 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3065
d55e5bfc
RD
3066 PYPRIVATE;
3067};
3068
3069IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3070
3071IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d55e5bfc 3072IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3073IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
c25f90f6 3074IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
7e08d4ef 3075
d55e5bfc 3076
554f62e9 3077SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d55e5bfc
RD
3078 wxListItem item;
3079 item.SetMask( wxLIST_MASK_STATE |
3080 wxLIST_MASK_TEXT |
3081 wxLIST_MASK_IMAGE |
3082 wxLIST_MASK_DATA |
3083 wxLIST_SET_ITEM |
3084 wxLIST_MASK_WIDTH |
3085 wxLIST_MASK_FORMAT
3086 );
3087 if (self->GetColumn(col, item))
3088 return new wxListItem(item);
3089 else
3090 return NULL;
3091 }
554f62e9 3092SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d55e5bfc
RD
3093 wxListItem* info = new wxListItem;
3094 info->m_itemId = itemId;
3095 info->m_col = col;
3096 info->m_mask = 0xFFFF;
3097 self->GetItem(*info);
3098 return info;
3099 }
554f62e9 3100SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d55e5bfc
RD
3101 wxPoint pos;
3102 self->GetItemPosition(item, pos);
3103 return pos;
3104 }
554f62e9 3105SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d55e5bfc
RD
3106 wxRect rect;
3107 self->GetItemRect(item, rect, code);
3108 return rect;
3109 }
554f62e9 3110SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d55e5bfc 3111 if (!PyCallable_Check(func))
ae8162c8 3112 return false;
d55e5bfc
RD
3113 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3114 }
554f62e9 3115SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d55e5bfc
RD
3116
3117 return self;
3118
3119
3120
3121 }
3122
3123#include <wx/treectrl.h>
3124#include "wx/wxPython/pytree.h"
3125
3126 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
554f62e9
RD
3127SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3128SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3129SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
b02396e8
RD
3130
3131 static wxTreeItemId wxNullTreeItemId;
3132
d55e5bfc
RD
3133 // C++ version of Python aware wxTreeCtrl
3134class wxPyTreeCtrl : public wxTreeCtrl {
7449af73 3135 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d55e5bfc
RD
3136public:
3137 wxPyTreeCtrl() : wxTreeCtrl() {}
3138 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3139 const wxPoint& pos,
3140 const wxSize& size,
3141 long style,
3142 const wxValidator& validator,
3143 const wxString& name) :
3144 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3145
3146 bool Create(wxWindow *parent, wxWindowID id,
3147 const wxPoint& pos,
3148 const wxSize& size,
3149 long style,
3150 const wxValidator& validator,
3151 const wxString& name) {
3152 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3153 }
3154
3155
3156 int OnCompareItems(const wxTreeItemId& item1,
3157 const wxTreeItemId& item2) {
3158 int rval = 0;
3159 bool found;
5a446332 3160 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3161 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
ae8162c8
RD
3162 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3163 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d55e5bfc
RD
3164 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3165 Py_DECREF(o1);
3166 Py_DECREF(o2);
3167 }
3168 wxPyEndBlockThreads(blocked);
3169 if (! found)
3170 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3171 return rval;
3172 }
3173 PYPRIVATE;
3174};
3175
3176IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3177
3178
554f62e9 3179SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3180 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3181 if (data == NULL) {
3182 data = new wxPyTreeItemData();
3183 data->SetId(item); // set the id
3184 self->SetItemData(item, data);
3185 }
3186 return data;
3187 }
554f62e9 3188SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3189 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3190 if (data == NULL) {
3191 data = new wxPyTreeItemData();
3192 data->SetId(item); // set the id
3193 self->SetItemData(item, data);
3194 }
3195 return data->GetData();
3196 }
554f62e9 3197SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d55e5bfc
RD
3198 data->SetId(item); // set the id
3199 self->SetItemData(item, data);
3200 }
554f62e9 3201SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d55e5bfc
RD
3202 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3203 if (data == NULL) {
3204 data = new wxPyTreeItemData(obj);
3205 data->SetId(item); // set the id
3206 self->SetItemData(item, data);
3207 } else
3208 data->SetData(obj);
3209 }
554f62e9 3210SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3211 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3212 PyObject* rval = PyList_New(0);
3213 wxArrayTreeItemIds array;
3214 size_t num, x;
3215 num = self->GetSelections(array);
3216 for (x=0; x < num; x++) {
3217 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
ae8162c8 3218 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d55e5bfc 3219 PyList_Append(rval, item);
a07a67e6 3220 Py_DECREF(item);
d55e5bfc
RD
3221 }
3222 wxPyEndBlockThreads(blocked);
3223 return rval;
3224 }
554f62e9 3225SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3226 void* cookie = 0;
3227 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3228 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3229 PyObject* tup = PyTuple_New(2);
ae8162c8 3230 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3231 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3232 wxPyEndBlockThreads(blocked);
3233 return tup;
3234 }
554f62e9 3235SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
d55e5bfc 3236 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3237 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3238 PyObject* tup = PyTuple_New(2);
ae8162c8 3239 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3240 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3241 wxPyEndBlockThreads(blocked);
3242 return tup;
3243 }
554f62e9 3244SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d55e5bfc
RD
3245 wxRect rect;
3246 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3247 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3248 wxRect* r = new wxRect(rect);
ae8162c8 3249 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
d55e5bfc
RD
3250 wxPyEndBlockThreads(blocked);
3251 return val;
3252 }
3253 else
3254 RETURN_NONE();
3255 }
3256 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c32bde28 3257
7449af73 3258SWIGINTERNINLINE PyObject*
554f62e9 3259 SWIG_From_bool (bool value)
c32bde28 3260{
554f62e9 3261 return PyBool_FromLong(value ? 1 : 0);
c32bde28
RD
3262}
3263
d55e5bfc
RD
3264 // C++ version of Python aware wxControl
3265class wxPyControl : public wxControl
3266{
3267 DECLARE_DYNAMIC_CLASS(wxPyControl)
3268public:
3269 wxPyControl() : wxControl() {}
3270 wxPyControl(wxWindow* parent, const wxWindowID id,
3271 const wxPoint& pos = wxDefaultPosition,
3272 const wxSize& size = wxDefaultSize,
3273 long style = 0,
3274 const wxValidator& validator=wxDefaultValidator,
3275 const wxString& name = wxPyControlNameStr)
3276 : wxControl(parent, id, pos, size, style, validator, name) {}
3277
3278
60d5fcc1
RD
3279 bool DoEraseBackground(wxDC* dc) {
3280#ifdef __WXMSW__
3281 return wxWindow::DoEraseBackground(dc->GetHDC());
3282#else
3283 dc->SetBackground(wxBrush(GetBackgroundColour()));
3284 dc->Clear();
3285 return true;
3286#endif
3287 }
3288
d55e5bfc
RD
3289 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3290 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3291 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3292 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3293
3294 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3295 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3296 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3297
3298 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3299 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3300
3301 DEC_PYCALLBACK__(InitDialog);
3302 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3303 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3304 DEC_PYCALLBACK_BOOL_(Validate);
3305
3306 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3307 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3308 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3309
3310 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3311 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3312
caef1a4d 3313 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
caef1a4d 3314 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
d55e5bfc 3315
51b83b37
RD
3316 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3317
8d38bd1d
RD
3318 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3319
d55e5bfc
RD
3320 PYPRIVATE;
3321};
3322
3323IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3324
3325IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3326IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3327IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3328IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3329
3330IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3331IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3332IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3333
3334IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3335IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3336
3337IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3338IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3339IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3340IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3341
3342IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3343IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3344IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3345
3346IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3347IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3348
caef1a4d 3349IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
caef1a4d 3350IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d55e5bfc 3351
51b83b37 3352IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3353
3354IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3355
d55e5bfc
RD
3356
3357
554f62e9 3358SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
d55e5bfc
RD
3359
3360#include <wx/generic/dragimgg.h>
3361
53aa7709 3362 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
554f62e9 3363SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3364 wxDateTime rv;
3365 self->GetRange(&rv, NULL);
3366 return rv;
3367 }
554f62e9 3368SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3369 wxDateTime rv;
3370 self->GetRange(NULL, &rv);
3371 return rv;
3372 }
704eda0c 3373 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
b850e7f3
RD
3374 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3375 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3376 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3377 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3378 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3379 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3380 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
5172800e 3381 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3f7f284d 3382 static const wxString wxPySearchCtrlNameStr(wxSearchCtrlNameStr);
62358578
RD
3383
3384#if !defined(wxUSE_SEARCHCTRL) || !wxUSE_SEARCHCTRL
3385// define a dummy class for builds that don't have wxSearchCtrl
3386
3387enum {
4ed51f4d
RD
3388 wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN,
3389 wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN
62358578
RD
3390};
3391
3392class wxSearchCtrl : public wxTextCtrl
3393{
3394public:
3395 wxSearchCtrl() { wxPyRaiseNotImplemented(); }
3396 wxSearchCtrl(wxWindow*, wxWindowID,
3397 const wxString&,
3398 const wxPoint&,
3399 const wxSize&,
3400 long style,
3401 const wxValidator&,
3402 const wxString& name)
3403 { wxPyRaiseNotImplemented(); }
3404
3405 bool Create( wxWindow*, wxWindowID,
3406 const wxString&,
3407 const wxPoint&,
3408 const wxSize&,
3409 long style,
3410 const wxValidator&,
3411 const wxString& name) {}
3412
3413 virtual void SetMenu( wxMenu* ) {}
3414 virtual wxMenu* GetMenu() { return NULL; }
3415
3416 // get/set search options
3417 // ----------------------
3418 virtual void ShowSearchButton( bool ) {}
3419 virtual bool IsSearchButtonVisible() const { return false; }
3420
3421 virtual void ShowCancelButton( bool ) {}
3422 virtual bool IsCancelButtonVisible() const { return false; }
6646ca90
RD
3423
3424 virtual void SetDescriptiveText(const wxString& text);
3425 virtual wxString GetDescriptiveText() const;
62358578
RD
3426};
3427#endif
3428
d55e5bfc
RD
3429#ifdef __cplusplus
3430extern "C" {
3431#endif
554f62e9
RD
3432SWIGINTERN int ButtonNameStr_set(PyObject *) {
3433 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3434 return 1;
d55e5bfc
RD
3435}
3436
3437
554f62e9
RD
3438SWIGINTERN PyObject *ButtonNameStr_get(void) {
3439 PyObject *pyobj = 0;
3440
3441 {
d55e5bfc 3442#if wxUSE_UNICODE
554f62e9 3443 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3444#else
554f62e9 3445 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3446#endif
554f62e9
RD
3447 }
3448 return pyobj;
3449}
3450
3451
3452SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3453 PyObject *resultobj = 0;
3454 wxWindow *arg1 = (wxWindow *) 0 ;
3455 int arg2 = (int) -1 ;
3456 wxString const &arg3_defvalue = wxPyEmptyString ;
3457 wxString *arg3 = (wxString *) &arg3_defvalue ;
3458 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3459 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3460 wxSize const &arg5_defvalue = wxDefaultSize ;
3461 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3462 long arg6 = (long) 0 ;
3463 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3464 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3465 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3466 wxString *arg8 = (wxString *) &arg8_defvalue ;
3467 wxButton *result = 0 ;
3468 void *argp1 = 0 ;
3469 int res1 = 0 ;
3470 int val2 ;
3471 int ecode2 = 0 ;
3472 bool temp3 = false ;
3473 wxPoint temp4 ;
3474 wxSize temp5 ;
3475 long val6 ;
3476 int ecode6 = 0 ;
3477 void *argp7 = 0 ;
3478 int res7 = 0 ;
3479 bool temp8 = false ;
3480 PyObject * obj0 = 0 ;
3481 PyObject * obj1 = 0 ;
3482 PyObject * obj2 = 0 ;
3483 PyObject * obj3 = 0 ;
3484 PyObject * obj4 = 0 ;
3485 PyObject * obj5 = 0 ;
3486 PyObject * obj6 = 0 ;
3487 PyObject * obj7 = 0 ;
3488 char * kwnames[] = {
3489 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3490 };
3491
3492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3494 if (!SWIG_IsOK(res1)) {
3495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3496 }
3497 arg1 = reinterpret_cast< wxWindow * >(argp1);
3498 if (obj1) {
3499 ecode2 = SWIG_AsVal_int(obj1, &val2);
3500 if (!SWIG_IsOK(ecode2)) {
3501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3502 }
3503 arg2 = static_cast< int >(val2);
3504 }
3505 if (obj2) {
d55e5bfc 3506 {
554f62e9
RD
3507 arg3 = wxString_in_helper(obj2);
3508 if (arg3 == NULL) SWIG_fail;
3509 temp3 = true;
d55e5bfc 3510 }
554f62e9
RD
3511 }
3512 if (obj3) {
d55e5bfc 3513 {
554f62e9
RD
3514 arg4 = &temp4;
3515 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3516 }
554f62e9
RD
3517 }
3518 if (obj4) {
d55e5bfc 3519 {
554f62e9
RD
3520 arg5 = &temp5;
3521 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3522 }
554f62e9
RD
3523 }
3524 if (obj5) {
3525 ecode6 = SWIG_AsVal_long(obj5, &val6);
3526 if (!SWIG_IsOK(ecode6)) {
3527 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3528 }
3529 arg6 = static_cast< long >(val6);
3530 }
3531 if (obj6) {
3532 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3533 if (!SWIG_IsOK(res7)) {
3534 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3535 }
554f62e9
RD
3536 if (!argp7) {
3537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3538 }
554f62e9
RD
3539 arg7 = reinterpret_cast< wxValidator * >(argp7);
3540 }
3541 if (obj7) {
d55e5bfc 3542 {
554f62e9
RD
3543 arg8 = wxString_in_helper(obj7);
3544 if (arg8 == NULL) SWIG_fail;
3545 temp8 = true;
d55e5bfc 3546 }
554f62e9
RD
3547 }
3548 {
3549 if (!wxPyCheckForApp()) SWIG_fail;
3550 PyThreadState* __tstate = wxPyBeginAllowThreads();
3551 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3552 wxPyEndAllowThreads(__tstate);
3553 if (PyErr_Occurred()) SWIG_fail;
3554 }
3555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3556 {
3557 if (temp3)
3558 delete arg3;
3559 }
3560 {
3561 if (temp8)
3562 delete arg8;
3563 }
3564 return resultobj;
3565fail:
3566 {
3567 if (temp3)
3568 delete arg3;
3569 }
3570 {
3571 if (temp8)
3572 delete arg8;
3573 }
3574 return NULL;
d55e5bfc
RD
3575}
3576
3577
554f62e9
RD
3578SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3579 PyObject *resultobj = 0;
3580 wxButton *result = 0 ;
3581
3582 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3583 {
3584 if (!wxPyCheckForApp()) SWIG_fail;
3585 PyThreadState* __tstate = wxPyBeginAllowThreads();
3586 result = (wxButton *)new wxButton();
3587 wxPyEndAllowThreads(__tstate);
3588 if (PyErr_Occurred()) SWIG_fail;
3589 }
3590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3591 return resultobj;
3592fail:
3593 return NULL;
3594}
3595
3596
3597SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3598 PyObject *resultobj = 0;
3599 wxButton *arg1 = (wxButton *) 0 ;
3600 wxWindow *arg2 = (wxWindow *) 0 ;
3601 int arg3 = (int) -1 ;
3602 wxString const &arg4_defvalue = wxPyEmptyString ;
3603 wxString *arg4 = (wxString *) &arg4_defvalue ;
3604 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3605 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3606 wxSize const &arg6_defvalue = wxDefaultSize ;
3607 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3608 long arg7 = (long) 0 ;
3609 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3610 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3611 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3612 wxString *arg9 = (wxString *) &arg9_defvalue ;
3613 bool result;
3614 void *argp1 = 0 ;
3615 int res1 = 0 ;
3616 void *argp2 = 0 ;
3617 int res2 = 0 ;
3618 int val3 ;
3619 int ecode3 = 0 ;
3620 bool temp4 = false ;
3621 wxPoint temp5 ;
3622 wxSize temp6 ;
3623 long val7 ;
3624 int ecode7 = 0 ;
3625 void *argp8 = 0 ;
3626 int res8 = 0 ;
3627 bool temp9 = false ;
3628 PyObject * obj0 = 0 ;
3629 PyObject * obj1 = 0 ;
3630 PyObject * obj2 = 0 ;
3631 PyObject * obj3 = 0 ;
3632 PyObject * obj4 = 0 ;
3633 PyObject * obj5 = 0 ;
3634 PyObject * obj6 = 0 ;
3635 PyObject * obj7 = 0 ;
3636 PyObject * obj8 = 0 ;
3637 char * kwnames[] = {
3638 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3639 };
3640
3641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3643 if (!SWIG_IsOK(res1)) {
3644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3645 }
3646 arg1 = reinterpret_cast< wxButton * >(argp1);
3647 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3648 if (!SWIG_IsOK(res2)) {
3649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3650 }
3651 arg2 = reinterpret_cast< wxWindow * >(argp2);
3652 if (obj2) {
3653 ecode3 = SWIG_AsVal_int(obj2, &val3);
3654 if (!SWIG_IsOK(ecode3)) {
3655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3656 }
3657 arg3 = static_cast< int >(val3);
3658 }
3659 if (obj3) {
d55e5bfc 3660 {
554f62e9
RD
3661 arg4 = wxString_in_helper(obj3);
3662 if (arg4 == NULL) SWIG_fail;
3663 temp4 = true;
d55e5bfc 3664 }
554f62e9
RD
3665 }
3666 if (obj4) {
d55e5bfc 3667 {
554f62e9
RD
3668 arg5 = &temp5;
3669 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3670 }
554f62e9
RD
3671 }
3672 if (obj5) {
d55e5bfc 3673 {
554f62e9
RD
3674 arg6 = &temp6;
3675 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 3676 }
554f62e9
RD
3677 }
3678 if (obj6) {
3679 ecode7 = SWIG_AsVal_long(obj6, &val7);
3680 if (!SWIG_IsOK(ecode7)) {
3681 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3682 }
3683 arg7 = static_cast< long >(val7);
3684 }
3685 if (obj7) {
3686 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3687 if (!SWIG_IsOK(res8)) {
3688 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3689 }
554f62e9
RD
3690 if (!argp8) {
3691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3692 }
554f62e9
RD
3693 arg8 = reinterpret_cast< wxValidator * >(argp8);
3694 }
3695 if (obj8) {
d55e5bfc 3696 {
554f62e9
RD
3697 arg9 = wxString_in_helper(obj8);
3698 if (arg9 == NULL) SWIG_fail;
3699 temp9 = true;
d55e5bfc 3700 }
554f62e9
RD
3701 }
3702 {
3703 PyThreadState* __tstate = wxPyBeginAllowThreads();
3704 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3705 wxPyEndAllowThreads(__tstate);
3706 if (PyErr_Occurred()) SWIG_fail;
3707 }
3708 {
3709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3710 }
3711 {
3712 if (temp4)
3713 delete arg4;
3714 }
3715 {
3716 if (temp9)
3717 delete arg9;
3718 }
3719 return resultobj;
3720fail:
3721 {
3722 if (temp4)
3723 delete arg4;
3724 }
3725 {
3726 if (temp9)
3727 delete arg9;
3728 }
3729 return NULL;
d55e5bfc
RD
3730}
3731
3732
554f62e9
RD
3733SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3734 PyObject *resultobj = 0;
3735 wxButton *arg1 = (wxButton *) 0 ;
3736 void *argp1 = 0 ;
3737 int res1 = 0 ;
3738 PyObject *swig_obj[1] ;
3739
3740 if (!args) SWIG_fail;
3741 swig_obj[0] = args;
3742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3743 if (!SWIG_IsOK(res1)) {
3744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3745 }
3746 arg1 = reinterpret_cast< wxButton * >(argp1);
3747 {
3748 PyThreadState* __tstate = wxPyBeginAllowThreads();
3749 (arg1)->SetDefault();
3750 wxPyEndAllowThreads(__tstate);
3751 if (PyErr_Occurred()) SWIG_fail;
3752 }
3753 resultobj = SWIG_Py_Void();
3754 return resultobj;
3755fail:
3756 return NULL;
d55e5bfc
RD
3757}
3758
3759
554f62e9
RD
3760SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3761 PyObject *resultobj = 0;
3762 wxSize result;
3763
3764 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3765 {
3766 PyThreadState* __tstate = wxPyBeginAllowThreads();
3767 result = wxButton::GetDefaultSize();
3768 wxPyEndAllowThreads(__tstate);
3769 if (PyErr_Occurred()) SWIG_fail;
3770 }
3771 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3772 return resultobj;
3773fail:
3774 return NULL;
3775}
3776
3777
3778SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3779 PyObject *resultobj = 0;
3780 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3781 SwigValueWrapper<wxVisualAttributes > result;
3782 int val1 ;
3783 int ecode1 = 0 ;
3784 PyObject * obj0 = 0 ;
3785 char * kwnames[] = {
3786 (char *) "variant", NULL
3787 };
3788
3789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3790 if (obj0) {
3791 ecode1 = SWIG_AsVal_int(obj0, &val1);
3792 if (!SWIG_IsOK(ecode1)) {
3793 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3794 }
3795 arg1 = static_cast< wxWindowVariant >(val1);
3796 }
3797 {
3798 if (!wxPyCheckForApp()) SWIG_fail;
3799 PyThreadState* __tstate = wxPyBeginAllowThreads();
3800 result = wxButton::GetClassDefaultAttributes(arg1);
3801 wxPyEndAllowThreads(__tstate);
3802 if (PyErr_Occurred()) SWIG_fail;
3803 }
3804 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3805 return resultobj;
3806fail:
3807 return NULL;
3808}
3809
3810
3811SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3812 PyObject *obj;
3813 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3814 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3815 return SWIG_Py_Void();
3816}
3817
3818SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3819 return SWIG_Python_InitShadowInstance(args);
3820}
3821
3822SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3823 PyObject *resultobj = 0;
3824 wxWindow *arg1 = (wxWindow *) 0 ;
3825 int arg2 = (int) -1 ;
3826 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3827 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3828 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3829 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3830 wxSize const &arg5_defvalue = wxDefaultSize ;
3831 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3832 long arg6 = (long) wxBU_AUTODRAW ;
3833 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3834 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3835 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3836 wxString *arg8 = (wxString *) &arg8_defvalue ;
3837 wxBitmapButton *result = 0 ;
3838 void *argp1 = 0 ;
3839 int res1 = 0 ;
3840 int val2 ;
3841 int ecode2 = 0 ;
3842 void *argp3 = 0 ;
3843 int res3 = 0 ;
3844 wxPoint temp4 ;
3845 wxSize temp5 ;
3846 long val6 ;
3847 int ecode6 = 0 ;
3848 void *argp7 = 0 ;
3849 int res7 = 0 ;
3850 bool temp8 = false ;
3851 PyObject * obj0 = 0 ;
3852 PyObject * obj1 = 0 ;
3853 PyObject * obj2 = 0 ;
3854 PyObject * obj3 = 0 ;
3855 PyObject * obj4 = 0 ;
3856 PyObject * obj5 = 0 ;
3857 PyObject * obj6 = 0 ;
3858 PyObject * obj7 = 0 ;
3859 char * kwnames[] = {
3860 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3861 };
3862
3863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3865 if (!SWIG_IsOK(res1)) {
3866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3867 }
3868 arg1 = reinterpret_cast< wxWindow * >(argp1);
3869 if (obj1) {
3870 ecode2 = SWIG_AsVal_int(obj1, &val2);
3871 if (!SWIG_IsOK(ecode2)) {
3872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3873 }
3874 arg2 = static_cast< int >(val2);
3875 }
3876 if (obj2) {
3877 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3878 if (!SWIG_IsOK(res3)) {
3879 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3880 }
3881 if (!argp3) {
3882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3883 }
3884 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3885 }
3886 if (obj3) {
d55e5bfc 3887 {
554f62e9
RD
3888 arg4 = &temp4;
3889 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3890 }
554f62e9
RD
3891 }
3892 if (obj4) {
d55e5bfc 3893 {
554f62e9
RD
3894 arg5 = &temp5;
3895 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3896 }
554f62e9
RD
3897 }
3898 if (obj5) {
3899 ecode6 = SWIG_AsVal_long(obj5, &val6);
3900 if (!SWIG_IsOK(ecode6)) {
3901 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3902 }
3903 arg6 = static_cast< long >(val6);
3904 }
3905 if (obj6) {
3906 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3907 if (!SWIG_IsOK(res7)) {
3908 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3909 }
554f62e9
RD
3910 if (!argp7) {
3911 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3912 }
554f62e9
RD
3913 arg7 = reinterpret_cast< wxValidator * >(argp7);
3914 }
3915 if (obj7) {
f20a2e1f 3916 {
554f62e9
RD
3917 arg8 = wxString_in_helper(obj7);
3918 if (arg8 == NULL) SWIG_fail;
3919 temp8 = true;
f20a2e1f 3920 }
554f62e9
RD
3921 }
3922 {
3923 if (!wxPyCheckForApp()) SWIG_fail;
3924 PyThreadState* __tstate = wxPyBeginAllowThreads();
3925 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3926 wxPyEndAllowThreads(__tstate);
3927 if (PyErr_Occurred()) SWIG_fail;
3928 }
3929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3930 {
3931 if (temp8)
3932 delete arg8;
3933 }
3934 return resultobj;
3935fail:
3936 {
3937 if (temp8)
3938 delete arg8;
3939 }
3940 return NULL;
f20a2e1f
RD
3941}
3942
3943
554f62e9
RD
3944SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3945 PyObject *resultobj = 0;
3946 wxBitmapButton *result = 0 ;
3947
3948 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3949 {
3950 if (!wxPyCheckForApp()) SWIG_fail;
3951 PyThreadState* __tstate = wxPyBeginAllowThreads();
3952 result = (wxBitmapButton *)new wxBitmapButton();
3953 wxPyEndAllowThreads(__tstate);
3954 if (PyErr_Occurred()) SWIG_fail;
3955 }
3956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3957 return resultobj;
3958fail:
3959 return NULL;
3960}
3961
3962
3963SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3964 PyObject *resultobj = 0;
3965 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3966 wxWindow *arg2 = (wxWindow *) 0 ;
3967 int arg3 = (int) -1 ;
3968 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3969 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3970 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3971 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3972 wxSize const &arg6_defvalue = wxDefaultSize ;
3973 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3974 long arg7 = (long) wxBU_AUTODRAW ;
3975 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3976 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3977 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3978 wxString *arg9 = (wxString *) &arg9_defvalue ;
3979 bool result;
3980 void *argp1 = 0 ;
3981 int res1 = 0 ;
3982 void *argp2 = 0 ;
3983 int res2 = 0 ;
3984 int val3 ;
3985 int ecode3 = 0 ;
3986 void *argp4 = 0 ;
3987 int res4 = 0 ;
3988 wxPoint temp5 ;
3989 wxSize temp6 ;
3990 long val7 ;
3991 int ecode7 = 0 ;
3992 void *argp8 = 0 ;
3993 int res8 = 0 ;
3994 bool temp9 = false ;
3995 PyObject * obj0 = 0 ;
3996 PyObject * obj1 = 0 ;
3997 PyObject * obj2 = 0 ;
3998 PyObject * obj3 = 0 ;
3999 PyObject * obj4 = 0 ;
4000 PyObject * obj5 = 0 ;
4001 PyObject * obj6 = 0 ;
4002 PyObject * obj7 = 0 ;
4003 PyObject * obj8 = 0 ;
4004 char * kwnames[] = {
4005 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4006 };
4007
4008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4010 if (!SWIG_IsOK(res1)) {
4011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4012 }
4013 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4014 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4015 if (!SWIG_IsOK(res2)) {
4016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4017 }
4018 arg2 = reinterpret_cast< wxWindow * >(argp2);
4019 if (obj2) {
4020 ecode3 = SWIG_AsVal_int(obj2, &val3);
4021 if (!SWIG_IsOK(ecode3)) {
4022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
4023 }
4024 arg3 = static_cast< int >(val3);
4025 }
4026 if (obj3) {
4027 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
4028 if (!SWIG_IsOK(res4)) {
4029 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 4030 }
554f62e9
RD
4031 if (!argp4) {
4032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 4033 }
554f62e9
RD
4034 arg4 = reinterpret_cast< wxBitmap * >(argp4);
4035 }
4036 if (obj4) {
d55e5bfc 4037 {
554f62e9
RD
4038 arg5 = &temp5;
4039 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 4040 }
554f62e9
RD
4041 }
4042 if (obj5) {
d55e5bfc 4043 {
554f62e9
RD
4044 arg6 = &temp6;
4045 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4046 }
4047 }
4048 if (obj6) {
4049 ecode7 = SWIG_AsVal_long(obj6, &val7);
4050 if (!SWIG_IsOK(ecode7)) {
4051 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4052 }
4053 arg7 = static_cast< long >(val7);
4054 }
4055 if (obj7) {
4056 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4057 if (!SWIG_IsOK(res8)) {
4058 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4059 }
4060 if (!argp8) {
4061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4062 }
554f62e9
RD
4063 arg8 = reinterpret_cast< wxValidator * >(argp8);
4064 }
4065 if (obj8) {
d55e5bfc 4066 {
554f62e9
RD
4067 arg9 = wxString_in_helper(obj8);
4068 if (arg9 == NULL) SWIG_fail;
4069 temp9 = true;
d55e5bfc 4070 }
554f62e9
RD
4071 }
4072 {
4073 PyThreadState* __tstate = wxPyBeginAllowThreads();
4074 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4075 wxPyEndAllowThreads(__tstate);
4076 if (PyErr_Occurred()) SWIG_fail;
4077 }
4078 {
4079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4080 }
4081 {
4082 if (temp9)
4083 delete arg9;
4084 }
4085 return resultobj;
4086fail:
4087 {
4088 if (temp9)
4089 delete arg9;
4090 }
4091 return NULL;
d55e5bfc
RD
4092}
4093
4094
554f62e9
RD
4095SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4096 PyObject *resultobj = 0;
4097 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4098 wxBitmap result;
4099 void *argp1 = 0 ;
4100 int res1 = 0 ;
4101 PyObject *swig_obj[1] ;
4102
4103 if (!args) SWIG_fail;
4104 swig_obj[0] = args;
4105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4106 if (!SWIG_IsOK(res1)) {
4107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4108 }
4109 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4110 {
4111 PyThreadState* __tstate = wxPyBeginAllowThreads();
4112 result = (arg1)->GetBitmapLabel();
4113 wxPyEndAllowThreads(__tstate);
4114 if (PyErr_Occurred()) SWIG_fail;
4115 }
4116 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4117 return resultobj;
4118fail:
4119 return NULL;
d55e5bfc
RD
4120}
4121
4122
554f62e9
RD
4123SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4124 PyObject *resultobj = 0;
4125 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4126 wxBitmap result;
4127 void *argp1 = 0 ;
4128 int res1 = 0 ;
4129 PyObject *swig_obj[1] ;
4130
4131 if (!args) SWIG_fail;
4132 swig_obj[0] = args;
4133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4134 if (!SWIG_IsOK(res1)) {
4135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4136 }
4137 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4138 {
4139 PyThreadState* __tstate = wxPyBeginAllowThreads();
4140 result = (arg1)->GetBitmapDisabled();
4141 wxPyEndAllowThreads(__tstate);
4142 if (PyErr_Occurred()) SWIG_fail;
4143 }
4144 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4145 return resultobj;
4146fail:
4147 return NULL;
d55e5bfc
RD
4148}
4149
4150
554f62e9
RD
4151SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4152 PyObject *resultobj = 0;
4153 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4154 wxBitmap result;
4155 void *argp1 = 0 ;
4156 int res1 = 0 ;
4157 PyObject *swig_obj[1] ;
4158
4159 if (!args) SWIG_fail;
4160 swig_obj[0] = args;
4161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4162 if (!SWIG_IsOK(res1)) {
4163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4164 }
4165 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4166 {
4167 PyThreadState* __tstate = wxPyBeginAllowThreads();
4168 result = (arg1)->GetBitmapFocus();
4169 wxPyEndAllowThreads(__tstate);
4170 if (PyErr_Occurred()) SWIG_fail;
4171 }
4172 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4173 return resultobj;
4174fail:
4175 return NULL;
d55e5bfc
RD
4176}
4177
4178
554f62e9
RD
4179SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4180 PyObject *resultobj = 0;
4181 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4182 wxBitmap result;
4183 void *argp1 = 0 ;
4184 int res1 = 0 ;
4185 PyObject *swig_obj[1] ;
4186
4187 if (!args) SWIG_fail;
4188 swig_obj[0] = args;
4189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4190 if (!SWIG_IsOK(res1)) {
4191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4192 }
4193 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4194 {
4195 PyThreadState* __tstate = wxPyBeginAllowThreads();
4196 result = (arg1)->GetBitmapSelected();
4197 wxPyEndAllowThreads(__tstate);
4198 if (PyErr_Occurred()) SWIG_fail;
4199 }
4200 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4201 return resultobj;
4202fail:
4203 return NULL;
d55e5bfc
RD
4204}
4205
4206
554f62e9
RD
4207SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4208 PyObject *resultobj = 0;
4209 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4210 wxBitmap result;
4211 void *argp1 = 0 ;
4212 int res1 = 0 ;
4213 PyObject *swig_obj[1] ;
4214
4215 if (!args) SWIG_fail;
4216 swig_obj[0] = args;
4217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4218 if (!SWIG_IsOK(res1)) {
4219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4220 }
4221 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4222 {
4223 PyThreadState* __tstate = wxPyBeginAllowThreads();
4224 result = (arg1)->GetBitmapHover();
4225 wxPyEndAllowThreads(__tstate);
4226 if (PyErr_Occurred()) SWIG_fail;
4227 }
4228 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4229 return resultobj;
4230fail:
4231 return NULL;
4232}
4233
4234
4235SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4236 PyObject *resultobj = 0;
4237 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4238 wxBitmap *arg2 = 0 ;
4239 void *argp1 = 0 ;
4240 int res1 = 0 ;
4241 void *argp2 = 0 ;
4242 int res2 = 0 ;
4243 PyObject * obj0 = 0 ;
4244 PyObject * obj1 = 0 ;
4245 char * kwnames[] = {
4246 (char *) "self",(char *) "bitmap", NULL
4247 };
4248
4249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4251 if (!SWIG_IsOK(res1)) {
4252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4253 }
4254 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4256 if (!SWIG_IsOK(res2)) {
4257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4258 }
4259 if (!argp2) {
4260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4261 }
4262 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4263 {
4264 PyThreadState* __tstate = wxPyBeginAllowThreads();
4265 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4266 wxPyEndAllowThreads(__tstate);
4267 if (PyErr_Occurred()) SWIG_fail;
4268 }
4269 resultobj = SWIG_Py_Void();
4270 return resultobj;
4271fail:
4272 return NULL;
4273}
4274
4275
4276SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4277 PyObject *resultobj = 0;
4278 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4279 wxBitmap *arg2 = 0 ;
4280 void *argp1 = 0 ;
4281 int res1 = 0 ;
4282 void *argp2 = 0 ;
4283 int res2 = 0 ;
4284 PyObject * obj0 = 0 ;
4285 PyObject * obj1 = 0 ;
4286 char * kwnames[] = {
4287 (char *) "self",(char *) "bitmap", NULL
4288 };
4289
4290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4292 if (!SWIG_IsOK(res1)) {
4293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4294 }
4295 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4297 if (!SWIG_IsOK(res2)) {
4298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4299 }
4300 if (!argp2) {
4301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4302 }
4303 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4304 {
4305 PyThreadState* __tstate = wxPyBeginAllowThreads();
4306 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4307 wxPyEndAllowThreads(__tstate);
4308 if (PyErr_Occurred()) SWIG_fail;
4309 }
4310 resultobj = SWIG_Py_Void();
4311 return resultobj;
4312fail:
4313 return NULL;
4314}
4315
4316
4317SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4318 PyObject *resultobj = 0;
4319 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4320 wxBitmap *arg2 = 0 ;
4321 void *argp1 = 0 ;
4322 int res1 = 0 ;
4323 void *argp2 = 0 ;
4324 int res2 = 0 ;
4325 PyObject * obj0 = 0 ;
4326 PyObject * obj1 = 0 ;
4327 char * kwnames[] = {
4328 (char *) "self",(char *) "bitmap", NULL
4329 };
4330
4331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4333 if (!SWIG_IsOK(res1)) {
4334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4335 }
4336 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4338 if (!SWIG_IsOK(res2)) {
4339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4340 }
4341 if (!argp2) {
4342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4343 }
4344 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4345 {
4346 PyThreadState* __tstate = wxPyBeginAllowThreads();
4347 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4348 wxPyEndAllowThreads(__tstate);
4349 if (PyErr_Occurred()) SWIG_fail;
4350 }
4351 resultobj = SWIG_Py_Void();
4352 return resultobj;
4353fail:
4354 return NULL;
4355}
4356
4357
4358SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4359 PyObject *resultobj = 0;
4360 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4361 wxBitmap *arg2 = 0 ;
4362 void *argp1 = 0 ;
4363 int res1 = 0 ;
4364 void *argp2 = 0 ;
4365 int res2 = 0 ;
4366 PyObject * obj0 = 0 ;
4367 PyObject * obj1 = 0 ;
4368 char * kwnames[] = {
4369 (char *) "self",(char *) "bitmap", NULL
4370 };
4371
4372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4374 if (!SWIG_IsOK(res1)) {
4375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4376 }
4377 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4379 if (!SWIG_IsOK(res2)) {
4380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4381 }
4382 if (!argp2) {
4383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4384 }
4385 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4386 {
4387 PyThreadState* __tstate = wxPyBeginAllowThreads();
4388 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4389 wxPyEndAllowThreads(__tstate);
4390 if (PyErr_Occurred()) SWIG_fail;
4391 }
4392 resultobj = SWIG_Py_Void();
4393 return resultobj;
4394fail:
4395 return NULL;
4396}
4397
4398
4399SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4400 PyObject *resultobj = 0;
4401 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4402 wxBitmap *arg2 = 0 ;
4403 void *argp1 = 0 ;
4404 int res1 = 0 ;
4405 void *argp2 = 0 ;
4406 int res2 = 0 ;
4407 PyObject * obj0 = 0 ;
4408 PyObject * obj1 = 0 ;
4409 char * kwnames[] = {
4410 (char *) "self",(char *) "hover", NULL
4411 };
4412
4413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4415 if (!SWIG_IsOK(res1)) {
4416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4417 }
4418 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4419 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4420 if (!SWIG_IsOK(res2)) {
4421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4422 }
4423 if (!argp2) {
4424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4425 }
4426 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4427 {
4428 PyThreadState* __tstate = wxPyBeginAllowThreads();
4429 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4430 wxPyEndAllowThreads(__tstate);
4431 if (PyErr_Occurred()) SWIG_fail;
4432 }
4433 resultobj = SWIG_Py_Void();
4434 return resultobj;
4435fail:
4436 return NULL;
4437}
4438
4439
4440SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4441 PyObject *resultobj = 0;
4442 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4443 int arg2 ;
4444 int arg3 ;
4445 void *argp1 = 0 ;
4446 int res1 = 0 ;
4447 int val2 ;
4448 int ecode2 = 0 ;
4449 int val3 ;
4450 int ecode3 = 0 ;
4451 PyObject * obj0 = 0 ;
4452 PyObject * obj1 = 0 ;
4453 PyObject * obj2 = 0 ;
4454 char * kwnames[] = {
4455 (char *) "self",(char *) "x",(char *) "y", NULL
4456 };
4457
4458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4460 if (!SWIG_IsOK(res1)) {
4461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4462 }
4463 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4464 ecode2 = SWIG_AsVal_int(obj1, &val2);
4465 if (!SWIG_IsOK(ecode2)) {
4466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4467 }
4468 arg2 = static_cast< int >(val2);
4469 ecode3 = SWIG_AsVal_int(obj2, &val3);
4470 if (!SWIG_IsOK(ecode3)) {
4471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4472 }
4473 arg3 = static_cast< int >(val3);
4474 {
4475 PyThreadState* __tstate = wxPyBeginAllowThreads();
4476 (arg1)->SetMargins(arg2,arg3);
4477 wxPyEndAllowThreads(__tstate);
4478 if (PyErr_Occurred()) SWIG_fail;
4479 }
4480 resultobj = SWIG_Py_Void();
4481 return resultobj;
4482fail:
4483 return NULL;
d55e5bfc
RD
4484}
4485
4486
554f62e9
RD
4487SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4488 PyObject *resultobj = 0;
4489 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4490 int result;
4491 void *argp1 = 0 ;
4492 int res1 = 0 ;
4493 PyObject *swig_obj[1] ;
4494
4495 if (!args) SWIG_fail;
4496 swig_obj[0] = args;
4497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4498 if (!SWIG_IsOK(res1)) {
4499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4500 }
4501 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4502 {
4503 PyThreadState* __tstate = wxPyBeginAllowThreads();
4504 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4505 wxPyEndAllowThreads(__tstate);
4506 if (PyErr_Occurred()) SWIG_fail;
4507 }
4508 resultobj = SWIG_From_int(static_cast< int >(result));
4509 return resultobj;
4510fail:
4511 return NULL;
d55e5bfc
RD
4512}
4513
4514
554f62e9
RD
4515SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4516 PyObject *resultobj = 0;
4517 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4518 int result;
4519 void *argp1 = 0 ;
4520 int res1 = 0 ;
4521 PyObject *swig_obj[1] ;
4522
4523 if (!args) SWIG_fail;
4524 swig_obj[0] = args;
4525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4526 if (!SWIG_IsOK(res1)) {
4527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4528 }
4529 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4530 {
4531 PyThreadState* __tstate = wxPyBeginAllowThreads();
4532 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4533 wxPyEndAllowThreads(__tstate);
4534 if (PyErr_Occurred()) SWIG_fail;
4535 }
4536 resultobj = SWIG_From_int(static_cast< int >(result));
4537 return resultobj;
4538fail:
4539 return NULL;
b1fcee84
RD
4540}
4541
4542
554f62e9
RD
4543SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4544 PyObject *obj;
4545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4546 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4547 return SWIG_Py_Void();
d55e5bfc
RD
4548}
4549
554f62e9
RD
4550SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4551 return SWIG_Python_InitShadowInstance(args);
4552}
d55e5bfc 4553
554f62e9
RD
4554SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4555 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4556 return 1;
d55e5bfc
RD
4557}
4558
4559
554f62e9
RD
4560SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4561 PyObject *pyobj = 0;
4562
4563 {
4564#if wxUSE_UNICODE
4565 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4566#else
4567 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4568#endif
4569 }
4570 return pyobj;
4571}
4572
4573
4574SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4575 PyObject *resultobj = 0;
4576 wxWindow *arg1 = (wxWindow *) 0 ;
4577 int arg2 = (int) -1 ;
4578 wxString const &arg3_defvalue = wxPyEmptyString ;
4579 wxString *arg3 = (wxString *) &arg3_defvalue ;
4580 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4581 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4582 wxSize const &arg5_defvalue = wxDefaultSize ;
4583 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4584 long arg6 = (long) 0 ;
4585 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4586 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4587 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4588 wxString *arg8 = (wxString *) &arg8_defvalue ;
4589 wxCheckBox *result = 0 ;
4590 void *argp1 = 0 ;
4591 int res1 = 0 ;
4592 int val2 ;
4593 int ecode2 = 0 ;
4594 bool temp3 = false ;
4595 wxPoint temp4 ;
4596 wxSize temp5 ;
4597 long val6 ;
4598 int ecode6 = 0 ;
4599 void *argp7 = 0 ;
4600 int res7 = 0 ;
4601 bool temp8 = false ;
4602 PyObject * obj0 = 0 ;
4603 PyObject * obj1 = 0 ;
4604 PyObject * obj2 = 0 ;
4605 PyObject * obj3 = 0 ;
4606 PyObject * obj4 = 0 ;
4607 PyObject * obj5 = 0 ;
4608 PyObject * obj6 = 0 ;
4609 PyObject * obj7 = 0 ;
4610 char * kwnames[] = {
4611 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4612 };
4613
4614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4616 if (!SWIG_IsOK(res1)) {
4617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4618 }
4619 arg1 = reinterpret_cast< wxWindow * >(argp1);
4620 if (obj1) {
4621 ecode2 = SWIG_AsVal_int(obj1, &val2);
4622 if (!SWIG_IsOK(ecode2)) {
4623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4624 }
4625 arg2 = static_cast< int >(val2);
4626 }
4627 if (obj2) {
d55e5bfc 4628 {
554f62e9
RD
4629 arg3 = wxString_in_helper(obj2);
4630 if (arg3 == NULL) SWIG_fail;
4631 temp3 = true;
d55e5bfc 4632 }
554f62e9
RD
4633 }
4634 if (obj3) {
4635 {
4636 arg4 = &temp4;
4637 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 4638 }
554f62e9
RD
4639 }
4640 if (obj4) {
d55e5bfc 4641 {
554f62e9
RD
4642 arg5 = &temp5;
4643 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 4644 }
554f62e9
RD
4645 }
4646 if (obj5) {
4647 ecode6 = SWIG_AsVal_long(obj5, &val6);
4648 if (!SWIG_IsOK(ecode6)) {
4649 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4650 }
4651 arg6 = static_cast< long >(val6);
4652 }
4653 if (obj6) {
4654 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4655 if (!SWIG_IsOK(res7)) {
4656 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4657 }
554f62e9
RD
4658 if (!argp7) {
4659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4660 }
4661 arg7 = reinterpret_cast< wxValidator * >(argp7);
4662 }
4663 if (obj7) {
b1fcee84 4664 {
554f62e9
RD
4665 arg8 = wxString_in_helper(obj7);
4666 if (arg8 == NULL) SWIG_fail;
4667 temp8 = true;
b1fcee84 4668 }
554f62e9
RD
4669 }
4670 {
4671 if (!wxPyCheckForApp()) SWIG_fail;
4672 PyThreadState* __tstate = wxPyBeginAllowThreads();
4673 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4674 wxPyEndAllowThreads(__tstate);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 }
4677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4678 {
4679 if (temp3)
4680 delete arg3;
4681 }
4682 {
4683 if (temp8)
4684 delete arg8;
4685 }
4686 return resultobj;
4687fail:
4688 {
4689 if (temp3)
4690 delete arg3;
4691 }
4692 {
4693 if (temp8)
4694 delete arg8;
4695 }
4696 return NULL;
b1fcee84
RD
4697}
4698
4699
554f62e9
RD
4700SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4701 PyObject *resultobj = 0;
4702 wxCheckBox *result = 0 ;
4703
4704 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4705 {
4706 if (!wxPyCheckForApp()) SWIG_fail;
4707 PyThreadState* __tstate = wxPyBeginAllowThreads();
4708 result = (wxCheckBox *)new wxCheckBox();
4709 wxPyEndAllowThreads(__tstate);
4710 if (PyErr_Occurred()) SWIG_fail;
4711 }
4712 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4713 return resultobj;
4714fail:
4715 return NULL;
4716}
4717
4718
4719SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4720 PyObject *resultobj = 0;
4721 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4722 wxWindow *arg2 = (wxWindow *) 0 ;
4723 int arg3 = (int) -1 ;
4724 wxString const &arg4_defvalue = wxPyEmptyString ;
4725 wxString *arg4 = (wxString *) &arg4_defvalue ;
4726 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4727 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4728 wxSize const &arg6_defvalue = wxDefaultSize ;
4729 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4730 long arg7 = (long) 0 ;
4731 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4732 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4733 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4734 wxString *arg9 = (wxString *) &arg9_defvalue ;
4735 bool result;
4736 void *argp1 = 0 ;
4737 int res1 = 0 ;
4738 void *argp2 = 0 ;
4739 int res2 = 0 ;
4740 int val3 ;
4741 int ecode3 = 0 ;
4742 bool temp4 = false ;
4743 wxPoint temp5 ;
4744 wxSize temp6 ;
4745 long val7 ;
4746 int ecode7 = 0 ;
4747 void *argp8 = 0 ;
4748 int res8 = 0 ;
4749 bool temp9 = false ;
4750 PyObject * obj0 = 0 ;
4751 PyObject * obj1 = 0 ;
4752 PyObject * obj2 = 0 ;
4753 PyObject * obj3 = 0 ;
4754 PyObject * obj4 = 0 ;
4755 PyObject * obj5 = 0 ;
4756 PyObject * obj6 = 0 ;
4757 PyObject * obj7 = 0 ;
4758 PyObject * obj8 = 0 ;
4759 char * kwnames[] = {
4760 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4761 };
4762
4763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4765 if (!SWIG_IsOK(res1)) {
4766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4767 }
4768 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4769 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4770 if (!SWIG_IsOK(res2)) {
4771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4772 }
4773 arg2 = reinterpret_cast< wxWindow * >(argp2);
4774 if (obj2) {
4775 ecode3 = SWIG_AsVal_int(obj2, &val3);
4776 if (!SWIG_IsOK(ecode3)) {
4777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4778 }
4779 arg3 = static_cast< int >(val3);
4780 }
4781 if (obj3) {
093d3ff1 4782 {
554f62e9
RD
4783 arg4 = wxString_in_helper(obj3);
4784 if (arg4 == NULL) SWIG_fail;
4785 temp4 = true;
093d3ff1 4786 }
554f62e9
RD
4787 }
4788 if (obj4) {
093d3ff1 4789 {
554f62e9
RD
4790 arg5 = &temp5;
4791 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 4792 }
554f62e9
RD
4793 }
4794 if (obj5) {
d55e5bfc 4795 {
554f62e9
RD
4796 arg6 = &temp6;
4797 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 4798 }
554f62e9
RD
4799 }
4800 if (obj6) {
4801 ecode7 = SWIG_AsVal_long(obj6, &val7);
4802 if (!SWIG_IsOK(ecode7)) {
4803 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4804 }
4805 arg7 = static_cast< long >(val7);
4806 }
4807 if (obj7) {
4808 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4809 if (!SWIG_IsOK(res8)) {
4810 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4811 }
554f62e9
RD
4812 if (!argp8) {
4813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4814 }
4815 arg8 = reinterpret_cast< wxValidator * >(argp8);
4816 }
4817 if (obj8) {
093d3ff1 4818 {
554f62e9
RD
4819 arg9 = wxString_in_helper(obj8);
4820 if (arg9 == NULL) SWIG_fail;
4821 temp9 = true;
093d3ff1 4822 }
554f62e9
RD
4823 }
4824 {
4825 PyThreadState* __tstate = wxPyBeginAllowThreads();
4826 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4827 wxPyEndAllowThreads(__tstate);
4828 if (PyErr_Occurred()) SWIG_fail;
4829 }
4830 {
4831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4832 }
4833 {
4834 if (temp4)
4835 delete arg4;
4836 }
4837 {
4838 if (temp9)
4839 delete arg9;
4840 }
4841 return resultobj;
4842fail:
4843 {
4844 if (temp4)
4845 delete arg4;
4846 }
4847 {
4848 if (temp9)
4849 delete arg9;
4850 }
4851 return NULL;
d55e5bfc
RD
4852}
4853
4854
554f62e9
RD
4855SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4856 PyObject *resultobj = 0;
4857 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4858 bool result;
4859 void *argp1 = 0 ;
4860 int res1 = 0 ;
4861 PyObject *swig_obj[1] ;
4862
4863 if (!args) SWIG_fail;
4864 swig_obj[0] = args;
4865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4866 if (!SWIG_IsOK(res1)) {
4867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4868 }
4869 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4870 {
4871 PyThreadState* __tstate = wxPyBeginAllowThreads();
4872 result = (bool)(arg1)->GetValue();
4873 wxPyEndAllowThreads(__tstate);
4874 if (PyErr_Occurred()) SWIG_fail;
4875 }
4876 {
4877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4878 }
4879 return resultobj;
4880fail:
4881 return NULL;
d55e5bfc
RD
4882}
4883
4884
554f62e9
RD
4885SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4886 PyObject *resultobj = 0;
4887 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4888 bool result;
4889 void *argp1 = 0 ;
4890 int res1 = 0 ;
4891 PyObject *swig_obj[1] ;
4892
4893 if (!args) SWIG_fail;
4894 swig_obj[0] = args;
4895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4896 if (!SWIG_IsOK(res1)) {
4897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4898 }
4899 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4900 {
4901 PyThreadState* __tstate = wxPyBeginAllowThreads();
4902 result = (bool)(arg1)->IsChecked();
4903 wxPyEndAllowThreads(__tstate);
4904 if (PyErr_Occurred()) SWIG_fail;
4905 }
4906 {
4907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4908 }
4909 return resultobj;
4910fail:
4911 return NULL;
4912}
4913
4914
4915SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4916 PyObject *resultobj = 0;
4917 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4918 bool arg2 ;
4919 void *argp1 = 0 ;
4920 int res1 = 0 ;
4921 bool val2 ;
4922 int ecode2 = 0 ;
4923 PyObject * obj0 = 0 ;
4924 PyObject * obj1 = 0 ;
4925 char * kwnames[] = {
4926 (char *) "self",(char *) "state", NULL
4927 };
4928
4929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4931 if (!SWIG_IsOK(res1)) {
4932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4933 }
4934 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4935 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4936 if (!SWIG_IsOK(ecode2)) {
4937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4938 }
4939 arg2 = static_cast< bool >(val2);
4940 {
4941 PyThreadState* __tstate = wxPyBeginAllowThreads();
4942 (arg1)->SetValue(arg2);
4943 wxPyEndAllowThreads(__tstate);
4944 if (PyErr_Occurred()) SWIG_fail;
4945 }
4946 resultobj = SWIG_Py_Void();
4947 return resultobj;
4948fail:
4949 return NULL;
d55e5bfc 4950}
554f62e9
RD
4951
4952
4953SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4954 PyObject *resultobj = 0;
4955 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4956 wxCheckBoxState result;
4957 void *argp1 = 0 ;
4958 int res1 = 0 ;
4959 PyObject *swig_obj[1] ;
4960
4961 if (!args) SWIG_fail;
4962 swig_obj[0] = args;
4963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4964 if (!SWIG_IsOK(res1)) {
4965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4966 }
4967 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4968 {
4969 PyThreadState* __tstate = wxPyBeginAllowThreads();
4970 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4971 wxPyEndAllowThreads(__tstate);
4972 if (PyErr_Occurred()) SWIG_fail;
4973 }
4974 resultobj = SWIG_From_int(static_cast< int >(result));
4975 return resultobj;
4976fail:
4977 return NULL;
4978}
4979
4980
4981SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4982 PyObject *resultobj = 0;
4983 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4984 wxCheckBoxState arg2 ;
4985 void *argp1 = 0 ;
4986 int res1 = 0 ;
4987 int val2 ;
4988 int ecode2 = 0 ;
4989 PyObject * obj0 = 0 ;
4990 PyObject * obj1 = 0 ;
4991 char * kwnames[] = {
4992 (char *) "self",(char *) "state", NULL
4993 };
4994
4995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4997 if (!SWIG_IsOK(res1)) {
4998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4999 }
5000 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5001 ecode2 = SWIG_AsVal_int(obj1, &val2);
5002 if (!SWIG_IsOK(ecode2)) {
5003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
5004 }
5005 arg2 = static_cast< wxCheckBoxState >(val2);
5006 {
5007 PyThreadState* __tstate = wxPyBeginAllowThreads();
5008 (arg1)->Set3StateValue(arg2);
5009 wxPyEndAllowThreads(__tstate);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 resultobj = SWIG_Py_Void();
5013 return resultobj;
5014fail:
5015 return NULL;
d55e5bfc
RD
5016}
5017
5018
554f62e9
RD
5019SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5020 PyObject *resultobj = 0;
5021 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5022 bool result;
5023 void *argp1 = 0 ;
5024 int res1 = 0 ;
5025 PyObject *swig_obj[1] ;
5026
5027 if (!args) SWIG_fail;
5028 swig_obj[0] = args;
5029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5030 if (!SWIG_IsOK(res1)) {
5031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5032 }
5033 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5034 {
5035 PyThreadState* __tstate = wxPyBeginAllowThreads();
5036 result = (bool)((wxCheckBox const *)arg1)->Is3State();
5037 wxPyEndAllowThreads(__tstate);
5038 if (PyErr_Occurred()) SWIG_fail;
5039 }
5040 {
5041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5042 }
5043 return resultobj;
5044fail:
5045 return NULL;
d55e5bfc
RD
5046}
5047
5048
554f62e9
RD
5049SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5050 PyObject *resultobj = 0;
5051 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5052 bool result;
5053 void *argp1 = 0 ;
5054 int res1 = 0 ;
5055 PyObject *swig_obj[1] ;
5056
5057 if (!args) SWIG_fail;
5058 swig_obj[0] = args;
5059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5060 if (!SWIG_IsOK(res1)) {
5061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5062 }
5063 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5064 {
5065 PyThreadState* __tstate = wxPyBeginAllowThreads();
5066 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5067 wxPyEndAllowThreads(__tstate);
5068 if (PyErr_Occurred()) SWIG_fail;
5069 }
5070 {
5071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5072 }
5073 return resultobj;
5074fail:
5075 return NULL;
d55e5bfc
RD
5076}
5077
5078
554f62e9
RD
5079SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5080 PyObject *resultobj = 0;
5081 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5082 SwigValueWrapper<wxVisualAttributes > result;
5083 int val1 ;
5084 int ecode1 = 0 ;
5085 PyObject * obj0 = 0 ;
5086 char * kwnames[] = {
5087 (char *) "variant", NULL
5088 };
5089
5090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5091 if (obj0) {
5092 ecode1 = SWIG_AsVal_int(obj0, &val1);
5093 if (!SWIG_IsOK(ecode1)) {
5094 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5095 }
5096 arg1 = static_cast< wxWindowVariant >(val1);
5097 }
5098 {
5099 if (!wxPyCheckForApp()) SWIG_fail;
5100 PyThreadState* __tstate = wxPyBeginAllowThreads();
5101 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5102 wxPyEndAllowThreads(__tstate);
5103 if (PyErr_Occurred()) SWIG_fail;
5104 }
5105 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5106 return resultobj;
5107fail:
5108 return NULL;
d55e5bfc
RD
5109}
5110
5111
554f62e9
RD
5112SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5113 PyObject *obj;
5114 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5115 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5116 return SWIG_Py_Void();
d55e5bfc
RD
5117}
5118
554f62e9
RD
5119SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5120 return SWIG_Python_InitShadowInstance(args);
5121}
d55e5bfc 5122
554f62e9
RD
5123SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5124 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5125 return 1;
d55e5bfc
RD
5126}
5127
5128
554f62e9
RD
5129SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5130 PyObject *pyobj = 0;
5131
5132 {
5133#if wxUSE_UNICODE
5134 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5135#else
5136 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5137#endif
5138 }
5139 return pyobj;
5140}
5141
5142
5143SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5144 PyObject *resultobj = 0;
5145 wxWindow *arg1 = (wxWindow *) 0 ;
5146 int arg2 = (int) -1 ;
5147 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5148 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5149 wxSize const &arg4_defvalue = wxDefaultSize ;
5150 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5151 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5152 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5153 long arg6 = (long) 0 ;
5154 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5155 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5156 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5157 wxString *arg8 = (wxString *) &arg8_defvalue ;
5158 wxChoice *result = 0 ;
5159 void *argp1 = 0 ;
5160 int res1 = 0 ;
5161 int val2 ;
5162 int ecode2 = 0 ;
5163 wxPoint temp3 ;
5164 wxSize temp4 ;
5165 bool temp5 = false ;
5166 long val6 ;
5167 int ecode6 = 0 ;
5168 void *argp7 = 0 ;
5169 int res7 = 0 ;
5170 bool temp8 = false ;
5171 PyObject * obj0 = 0 ;
5172 PyObject * obj1 = 0 ;
5173 PyObject * obj2 = 0 ;
5174 PyObject * obj3 = 0 ;
5175 PyObject * obj4 = 0 ;
5176 PyObject * obj5 = 0 ;
5177 PyObject * obj6 = 0 ;
5178 PyObject * obj7 = 0 ;
5179 char * kwnames[] = {
5180 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5181 };
5182
5183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5185 if (!SWIG_IsOK(res1)) {
5186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5187 }
5188 arg1 = reinterpret_cast< wxWindow * >(argp1);
5189 if (obj1) {
5190 ecode2 = SWIG_AsVal_int(obj1, &val2);
5191 if (!SWIG_IsOK(ecode2)) {
5192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5193 }
5194 arg2 = static_cast< int >(val2);
5195 }
5196 if (obj2) {
093d3ff1 5197 {
554f62e9
RD
5198 arg3 = &temp3;
5199 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 5200 }
554f62e9
RD
5201 }
5202 if (obj3) {
d55e5bfc 5203 {
554f62e9
RD
5204 arg4 = &temp4;
5205 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5206 }
554f62e9
RD
5207 }
5208 if (obj4) {
d55e5bfc 5209 {
554f62e9
RD
5210 if (! PySequence_Check(obj4)) {
5211 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5212 SWIG_fail;
5213 }
5214 arg5 = new wxArrayString;
5215 temp5 = true;
5216 int i, len=PySequence_Length(obj4);
5217 for (i=0; i<len; i++) {
5218 PyObject* item = PySequence_GetItem(obj4, i);
5219 wxString* s = wxString_in_helper(item);
5220 if (PyErr_Occurred()) SWIG_fail;
5221 arg5->Add(*s);
5222 delete s;
5223 Py_DECREF(item);
5224 }
d55e5bfc 5225 }
554f62e9
RD
5226 }
5227 if (obj5) {
5228 ecode6 = SWIG_AsVal_long(obj5, &val6);
5229 if (!SWIG_IsOK(ecode6)) {
5230 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5231 }
5232 arg6 = static_cast< long >(val6);
5233 }
5234 if (obj6) {
5235 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5236 if (!SWIG_IsOK(res7)) {
5237 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 5238 }
554f62e9
RD
5239 if (!argp7) {
5240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5241 }
5242 arg7 = reinterpret_cast< wxValidator * >(argp7);
5243 }
5244 if (obj7) {
d55e5bfc 5245 {
554f62e9
RD
5246 arg8 = wxString_in_helper(obj7);
5247 if (arg8 == NULL) SWIG_fail;
5248 temp8 = true;
d55e5bfc 5249 }
554f62e9
RD
5250 }
5251 {
5252 if (!wxPyCheckForApp()) SWIG_fail;
5253 PyThreadState* __tstate = wxPyBeginAllowThreads();
5254 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5255 wxPyEndAllowThreads(__tstate);
5256 if (PyErr_Occurred()) SWIG_fail;
5257 }
5258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5259 {
5260 if (temp5) delete arg5;
5261 }
5262 {
5263 if (temp8)
5264 delete arg8;
5265 }
5266 return resultobj;
5267fail:
5268 {
5269 if (temp5) delete arg5;
5270 }
5271 {
5272 if (temp8)
5273 delete arg8;
5274 }
5275 return NULL;
d55e5bfc
RD
5276}
5277
5278
554f62e9
RD
5279SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5280 PyObject *resultobj = 0;
5281 wxChoice *result = 0 ;
5282
5283 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5284 {
5285 if (!wxPyCheckForApp()) SWIG_fail;
5286 PyThreadState* __tstate = wxPyBeginAllowThreads();
5287 result = (wxChoice *)new wxChoice();
5288 wxPyEndAllowThreads(__tstate);
5289 if (PyErr_Occurred()) SWIG_fail;
5290 }
5291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5292 return resultobj;
5293fail:
5294 return NULL;
5295}
5296
5297
5298SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5299 PyObject *resultobj = 0;
5300 wxChoice *arg1 = (wxChoice *) 0 ;
5301 wxWindow *arg2 = (wxWindow *) 0 ;
5302 int arg3 = (int) -1 ;
5303 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5304 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5305 wxSize const &arg5_defvalue = wxDefaultSize ;
5306 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5307 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5308 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5309 long arg7 = (long) 0 ;
5310 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5311 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5312 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5313 wxString *arg9 = (wxString *) &arg9_defvalue ;
5314 bool result;
5315 void *argp1 = 0 ;
5316 int res1 = 0 ;
5317 void *argp2 = 0 ;
5318 int res2 = 0 ;
5319 int val3 ;
5320 int ecode3 = 0 ;
5321 wxPoint temp4 ;
5322 wxSize temp5 ;
5323 bool temp6 = false ;
5324 long val7 ;
5325 int ecode7 = 0 ;
5326 void *argp8 = 0 ;
5327 int res8 = 0 ;
5328 bool temp9 = false ;
5329 PyObject * obj0 = 0 ;
5330 PyObject * obj1 = 0 ;
5331 PyObject * obj2 = 0 ;
5332 PyObject * obj3 = 0 ;
5333 PyObject * obj4 = 0 ;
5334 PyObject * obj5 = 0 ;
5335 PyObject * obj6 = 0 ;
5336 PyObject * obj7 = 0 ;
5337 PyObject * obj8 = 0 ;
5338 char * kwnames[] = {
5339 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5340 };
5341
5342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5344 if (!SWIG_IsOK(res1)) {
5345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5346 }
5347 arg1 = reinterpret_cast< wxChoice * >(argp1);
5348 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5349 if (!SWIG_IsOK(res2)) {
5350 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5351 }
5352 arg2 = reinterpret_cast< wxWindow * >(argp2);
5353 if (obj2) {
5354 ecode3 = SWIG_AsVal_int(obj2, &val3);
5355 if (!SWIG_IsOK(ecode3)) {
5356 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5357 }
5358 arg3 = static_cast< int >(val3);
5359 }
5360 if (obj3) {
d55e5bfc 5361 {
554f62e9
RD
5362 arg4 = &temp4;
5363 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5364 }
554f62e9
RD
5365 }
5366 if (obj4) {
d55e5bfc 5367 {
554f62e9
RD
5368 arg5 = &temp5;
5369 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5370 }
554f62e9
RD
5371 }
5372 if (obj5) {
d55e5bfc 5373 {
554f62e9
RD
5374 if (! PySequence_Check(obj5)) {
5375 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5376 SWIG_fail;
5377 }
5378 arg6 = new wxArrayString;
5379 temp6 = true;
5380 int i, len=PySequence_Length(obj5);
5381 for (i=0; i<len; i++) {
5382 PyObject* item = PySequence_GetItem(obj5, i);
5383 wxString* s = wxString_in_helper(item);
5384 if (PyErr_Occurred()) SWIG_fail;
5385 arg6->Add(*s);
5386 delete s;
5387 Py_DECREF(item);
5388 }
5389 }
5390 }
5391 if (obj6) {
5392 ecode7 = SWIG_AsVal_long(obj6, &val7);
5393 if (!SWIG_IsOK(ecode7)) {
5394 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5395 }
5396 arg7 = static_cast< long >(val7);
5397 }
5398 if (obj7) {
5399 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5400 if (!SWIG_IsOK(res8)) {
5401 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 5402 }
554f62e9
RD
5403 if (!argp8) {
5404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5405 }
5406 arg8 = reinterpret_cast< wxValidator * >(argp8);
5407 }
5408 if (obj8) {
d55e5bfc 5409 {
554f62e9
RD
5410 arg9 = wxString_in_helper(obj8);
5411 if (arg9 == NULL) SWIG_fail;
5412 temp9 = true;
d55e5bfc 5413 }
554f62e9
RD
5414 }
5415 {
5416 PyThreadState* __tstate = wxPyBeginAllowThreads();
5417 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5418 wxPyEndAllowThreads(__tstate);
5419 if (PyErr_Occurred()) SWIG_fail;
5420 }
5421 {
5422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5423 }
5424 {
5425 if (temp6) delete arg6;
5426 }
5427 {
5428 if (temp9)
5429 delete arg9;
5430 }
5431 return resultobj;
5432fail:
5433 {
5434 if (temp6) delete arg6;
5435 }
5436 {
5437 if (temp9)
5438 delete arg9;
5439 }
5440 return NULL;
d55e5bfc
RD
5441}
5442
5443
554f62e9
RD
5444SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5445 PyObject *resultobj = 0;
5446 wxChoice *arg1 = (wxChoice *) 0 ;
5447 int result;
5448 void *argp1 = 0 ;
5449 int res1 = 0 ;
5450 PyObject *swig_obj[1] ;
5451
5452 if (!args) SWIG_fail;
5453 swig_obj[0] = args;
5454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5455 if (!SWIG_IsOK(res1)) {
5456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5457 }
5458 arg1 = reinterpret_cast< wxChoice * >(argp1);
5459 {
5460 PyThreadState* __tstate = wxPyBeginAllowThreads();
5461 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5462 wxPyEndAllowThreads(__tstate);
5463 if (PyErr_Occurred()) SWIG_fail;
5464 }
5465 resultobj = SWIG_From_int(static_cast< int >(result));
5466 return resultobj;
5467fail:
5468 return NULL;
5469}
5470
5471
5472SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5473 PyObject *resultobj = 0;
5474 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5475 SwigValueWrapper<wxVisualAttributes > result;
5476 int val1 ;
5477 int ecode1 = 0 ;
5478 PyObject * obj0 = 0 ;
5479 char * kwnames[] = {
5480 (char *) "variant", NULL
5481 };
5482
5483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5484 if (obj0) {
5485 ecode1 = SWIG_AsVal_int(obj0, &val1);
5486 if (!SWIG_IsOK(ecode1)) {
5487 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5488 }
5489 arg1 = static_cast< wxWindowVariant >(val1);
5490 }
5491 {
5492 if (!wxPyCheckForApp()) SWIG_fail;
5493 PyThreadState* __tstate = wxPyBeginAllowThreads();
5494 result = wxChoice::GetClassDefaultAttributes(arg1);
5495 wxPyEndAllowThreads(__tstate);
5496 if (PyErr_Occurred()) SWIG_fail;
5497 }
5498 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5499 return resultobj;
5500fail:
5501 return NULL;
f20a2e1f
RD
5502}
5503
5504
554f62e9
RD
5505SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5506 PyObject *obj;
5507 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5508 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5509 return SWIG_Py_Void();
d55e5bfc 5510}
554f62e9
RD
5511
5512SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5513 return SWIG_Python_InitShadowInstance(args);
5514}
5515
5516SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5517 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5518 return 1;
d55e5bfc
RD
5519}
5520
5521
554f62e9
RD
5522SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5523 PyObject *pyobj = 0;
5524
5525 {
d55e5bfc 5526#if wxUSE_UNICODE
554f62e9 5527 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5528#else
554f62e9 5529 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5530#endif
554f62e9
RD
5531 }
5532 return pyobj;
5533}
5534
5535
5536SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5537 PyObject *resultobj = 0;
5538 wxWindow *arg1 = (wxWindow *) 0 ;
5539 int arg2 = (int) -1 ;
5540 wxString const &arg3_defvalue = wxPyEmptyString ;
5541 wxString *arg3 = (wxString *) &arg3_defvalue ;
5542 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5543 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5544 wxSize const &arg5_defvalue = wxDefaultSize ;
5545 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5546 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5547 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5548 long arg7 = (long) 0 ;
5549 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5550 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5551 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5552 wxString *arg9 = (wxString *) &arg9_defvalue ;
5553 wxComboBox *result = 0 ;
5554 void *argp1 = 0 ;
5555 int res1 = 0 ;
5556 int val2 ;
5557 int ecode2 = 0 ;
5558 bool temp3 = false ;
5559 wxPoint temp4 ;
5560 wxSize temp5 ;
5561 bool temp6 = false ;
5562 long val7 ;
5563 int ecode7 = 0 ;
5564 void *argp8 = 0 ;
5565 int res8 = 0 ;
5566 bool temp9 = false ;
5567 PyObject * obj0 = 0 ;
5568 PyObject * obj1 = 0 ;
5569 PyObject * obj2 = 0 ;
5570 PyObject * obj3 = 0 ;
5571 PyObject * obj4 = 0 ;
5572 PyObject * obj5 = 0 ;
5573 PyObject * obj6 = 0 ;
5574 PyObject * obj7 = 0 ;
5575 PyObject * obj8 = 0 ;
5576 char * kwnames[] = {
5577 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5578 };
5579
5580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5582 if (!SWIG_IsOK(res1)) {
5583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5584 }
5585 arg1 = reinterpret_cast< wxWindow * >(argp1);
5586 if (obj1) {
5587 ecode2 = SWIG_AsVal_int(obj1, &val2);
5588 if (!SWIG_IsOK(ecode2)) {
5589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5590 }
5591 arg2 = static_cast< int >(val2);
5592 }
5593 if (obj2) {
d55e5bfc 5594 {
554f62e9
RD
5595 arg3 = wxString_in_helper(obj2);
5596 if (arg3 == NULL) SWIG_fail;
5597 temp3 = true;
d55e5bfc 5598 }
554f62e9
RD
5599 }
5600 if (obj3) {
d55e5bfc 5601 {
554f62e9
RD
5602 arg4 = &temp4;
5603 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5604 }
554f62e9
RD
5605 }
5606 if (obj4) {
d55e5bfc 5607 {
554f62e9
RD
5608 arg5 = &temp5;
5609 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5610 }
554f62e9
RD
5611 }
5612 if (obj5) {
d55e5bfc 5613 {
554f62e9
RD
5614 if (! PySequence_Check(obj5)) {
5615 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5616 SWIG_fail;
5617 }
5618 arg6 = new wxArrayString;
5619 temp6 = true;
5620 int i, len=PySequence_Length(obj5);
5621 for (i=0; i<len; i++) {
5622 PyObject* item = PySequence_GetItem(obj5, i);
5623 wxString* s = wxString_in_helper(item);
5624 if (PyErr_Occurred()) SWIG_fail;
5625 arg6->Add(*s);
5626 delete s;
5627 Py_DECREF(item);
5628 }
d55e5bfc 5629 }
554f62e9
RD
5630 }
5631 if (obj6) {
5632 ecode7 = SWIG_AsVal_long(obj6, &val7);
5633 if (!SWIG_IsOK(ecode7)) {
5634 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5635 }
5636 arg7 = static_cast< long >(val7);
5637 }
5638 if (obj7) {
5639 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5640 if (!SWIG_IsOK(res8)) {
5641 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5642 }
5643 if (!argp8) {
5644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5645 }
5646 arg8 = reinterpret_cast< wxValidator * >(argp8);
5647 }
5648 if (obj8) {
d55e5bfc 5649 {
554f62e9
RD
5650 arg9 = wxString_in_helper(obj8);
5651 if (arg9 == NULL) SWIG_fail;
5652 temp9 = true;
d55e5bfc 5653 }
554f62e9
RD
5654 }
5655 {
5656 if (!wxPyCheckForApp()) SWIG_fail;
5657 PyThreadState* __tstate = wxPyBeginAllowThreads();
5658 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5659 wxPyEndAllowThreads(__tstate);
5660 if (PyErr_Occurred()) SWIG_fail;
5661 }
5662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5663 {
5664 if (temp3)
5665 delete arg3;
5666 }
5667 {
5668 if (temp6) delete arg6;
5669 }
5670 {
5671 if (temp9)
5672 delete arg9;
5673 }
5674 return resultobj;
5675fail:
5676 {
5677 if (temp3)
5678 delete arg3;
5679 }
5680 {
5681 if (temp6) delete arg6;
5682 }
5683 {
5684 if (temp9)
5685 delete arg9;
5686 }
5687 return NULL;
d55e5bfc
RD
5688}
5689
5690
554f62e9
RD
5691SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5692 PyObject *resultobj = 0;
5693 wxComboBox *result = 0 ;
5694
5695 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5696 {
5697 if (!wxPyCheckForApp()) SWIG_fail;
5698 PyThreadState* __tstate = wxPyBeginAllowThreads();
5699 result = (wxComboBox *)new wxComboBox();
5700 wxPyEndAllowThreads(__tstate);
5701 if (PyErr_Occurred()) SWIG_fail;
5702 }
5703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5704 return resultobj;
5705fail:
5706 return NULL;
5707}
5708
5709
5710SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5711 PyObject *resultobj = 0;
5712 wxComboBox *arg1 = (wxComboBox *) 0 ;
5713 wxWindow *arg2 = (wxWindow *) 0 ;
5714 int arg3 = (int) -1 ;
5715 wxString const &arg4_defvalue = wxPyEmptyString ;
5716 wxString *arg4 = (wxString *) &arg4_defvalue ;
5717 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5718 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5719 wxSize const &arg6_defvalue = wxDefaultSize ;
5720 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5721 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5722 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5723 long arg8 = (long) 0 ;
5724 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5725 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5726 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5727 wxString *arg10 = (wxString *) &arg10_defvalue ;
5728 bool result;
5729 void *argp1 = 0 ;
5730 int res1 = 0 ;
5731 void *argp2 = 0 ;
5732 int res2 = 0 ;
5733 int val3 ;
5734 int ecode3 = 0 ;
5735 bool temp4 = false ;
5736 wxPoint temp5 ;
5737 wxSize temp6 ;
5738 bool temp7 = false ;
5739 long val8 ;
5740 int ecode8 = 0 ;
5741 void *argp9 = 0 ;
5742 int res9 = 0 ;
5743 bool temp10 = false ;
5744 PyObject * obj0 = 0 ;
5745 PyObject * obj1 = 0 ;
5746 PyObject * obj2 = 0 ;
5747 PyObject * obj3 = 0 ;
5748 PyObject * obj4 = 0 ;
5749 PyObject * obj5 = 0 ;
5750 PyObject * obj6 = 0 ;
5751 PyObject * obj7 = 0 ;
5752 PyObject * obj8 = 0 ;
5753 PyObject * obj9 = 0 ;
5754 char * kwnames[] = {
5755 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5756 };
5757
5758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5760 if (!SWIG_IsOK(res1)) {
5761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5762 }
5763 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5764 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5765 if (!SWIG_IsOK(res2)) {
5766 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5767 }
5768 arg2 = reinterpret_cast< wxWindow * >(argp2);
5769 if (obj2) {
5770 ecode3 = SWIG_AsVal_int(obj2, &val3);
5771 if (!SWIG_IsOK(ecode3)) {
5772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5773 }
5774 arg3 = static_cast< int >(val3);
5775 }
5776 if (obj3) {
d55e5bfc 5777 {
554f62e9
RD
5778 arg4 = wxString_in_helper(obj3);
5779 if (arg4 == NULL) SWIG_fail;
5780 temp4 = true;
d55e5bfc 5781 }
554f62e9
RD
5782 }
5783 if (obj4) {
d55e5bfc 5784 {
554f62e9
RD
5785 arg5 = &temp5;
5786 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5787 }
554f62e9
RD
5788 }
5789 if (obj5) {
d55e5bfc 5790 {
554f62e9
RD
5791 arg6 = &temp6;
5792 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 5793 }
554f62e9
RD
5794 }
5795 if (obj6) {
d55e5bfc 5796 {
554f62e9
RD
5797 if (! PySequence_Check(obj6)) {
5798 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5799 SWIG_fail;
5800 }
5801 arg7 = new wxArrayString;
5802 temp7 = true;
5803 int i, len=PySequence_Length(obj6);
5804 for (i=0; i<len; i++) {
5805 PyObject* item = PySequence_GetItem(obj6, i);
5806 wxString* s = wxString_in_helper(item);
5807 if (PyErr_Occurred()) SWIG_fail;
5808 arg7->Add(*s);
5809 delete s;
5810 Py_DECREF(item);
5811 }
d55e5bfc 5812 }
554f62e9
RD
5813 }
5814 if (obj7) {
5815 ecode8 = SWIG_AsVal_long(obj7, &val8);
5816 if (!SWIG_IsOK(ecode8)) {
5817 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5818 }
5819 arg8 = static_cast< long >(val8);
5820 }
5821 if (obj8) {
5822 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5823 if (!SWIG_IsOK(res9)) {
5824 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5825 }
554f62e9
RD
5826 if (!argp9) {
5827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5828 }
554f62e9
RD
5829 arg9 = reinterpret_cast< wxValidator * >(argp9);
5830 }
5831 if (obj9) {
d55e5bfc 5832 {
554f62e9
RD
5833 arg10 = wxString_in_helper(obj9);
5834 if (arg10 == NULL) SWIG_fail;
5835 temp10 = true;
d55e5bfc 5836 }
554f62e9
RD
5837 }
5838 {
5839 PyThreadState* __tstate = wxPyBeginAllowThreads();
5840 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
5841 wxPyEndAllowThreads(__tstate);
5842 if (PyErr_Occurred()) SWIG_fail;
5843 }
5844 {
5845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5846 }
5847 {
5848 if (temp4)
5849 delete arg4;
5850 }
5851 {
5852 if (temp7) delete arg7;
5853 }
5854 {
5855 if (temp10)
5856 delete arg10;
5857 }
5858 return resultobj;
5859fail:
5860 {
5861 if (temp4)
5862 delete arg4;
5863 }
5864 {
5865 if (temp7) delete arg7;
5866 }
5867 {
5868 if (temp10)
5869 delete arg10;
5870 }
5871 return NULL;
d55e5bfc
RD
5872}
5873
5874
554f62e9
RD
5875SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5876 PyObject *resultobj = 0;
5877 wxComboBox *arg1 = (wxComboBox *) 0 ;
5878 wxString result;
5879 void *argp1 = 0 ;
5880 int res1 = 0 ;
5881 PyObject *swig_obj[1] ;
5882
5883 if (!args) SWIG_fail;
5884 swig_obj[0] = args;
5885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5886 if (!SWIG_IsOK(res1)) {
5887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5888 }
5889 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5890 {
5891 PyThreadState* __tstate = wxPyBeginAllowThreads();
5892 result = ((wxComboBox const *)arg1)->GetValue();
5893 wxPyEndAllowThreads(__tstate);
5894 if (PyErr_Occurred()) SWIG_fail;
5895 }
5896 {
d55e5bfc 5897#if wxUSE_UNICODE
554f62e9 5898 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 5899#else
554f62e9 5900 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 5901#endif
554f62e9
RD
5902 }
5903 return resultobj;
5904fail:
5905 return NULL;
5906}
5907
5908
5909SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5910 PyObject *resultobj = 0;
5911 wxComboBox *arg1 = (wxComboBox *) 0 ;
5912 wxString *arg2 = 0 ;
5913 void *argp1 = 0 ;
5914 int res1 = 0 ;
5915 bool temp2 = false ;
5916 PyObject * obj0 = 0 ;
5917 PyObject * obj1 = 0 ;
5918 char * kwnames[] = {
5919 (char *) "self",(char *) "value", NULL
5920 };
5921
5922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5924 if (!SWIG_IsOK(res1)) {
5925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5926 }
5927 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5928 {
5929 arg2 = wxString_in_helper(obj1);
5930 if (arg2 == NULL) SWIG_fail;
5931 temp2 = true;
5932 }
5933 {
5934 PyThreadState* __tstate = wxPyBeginAllowThreads();
5935 (arg1)->SetValue((wxString const &)*arg2);
5936 wxPyEndAllowThreads(__tstate);
5937 if (PyErr_Occurred()) SWIG_fail;
5938 }
5939 resultobj = SWIG_Py_Void();
5940 {
5941 if (temp2)
5942 delete arg2;
5943 }
5944 return resultobj;
5945fail:
5946 {
5947 if (temp2)
5948 delete arg2;
5949 }
5950 return NULL;
d55e5bfc
RD
5951}
5952
5953
554f62e9
RD
5954SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5955 PyObject *resultobj = 0;
5956 wxComboBox *arg1 = (wxComboBox *) 0 ;
5957 void *argp1 = 0 ;
5958 int res1 = 0 ;
5959 PyObject *swig_obj[1] ;
5960
5961 if (!args) SWIG_fail;
5962 swig_obj[0] = args;
5963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5964 if (!SWIG_IsOK(res1)) {
5965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5966 }
5967 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 (arg1)->Copy();
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_Py_Void();
5975 return resultobj;
5976fail:
5977 return NULL;
d55e5bfc
RD
5978}
5979
5980
554f62e9
RD
5981SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5982 PyObject *resultobj = 0;
5983 wxComboBox *arg1 = (wxComboBox *) 0 ;
5984 void *argp1 = 0 ;
5985 int res1 = 0 ;
5986 PyObject *swig_obj[1] ;
5987
5988 if (!args) SWIG_fail;
5989 swig_obj[0] = args;
5990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5991 if (!SWIG_IsOK(res1)) {
5992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5993 }
5994 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5995 {
5996 PyThreadState* __tstate = wxPyBeginAllowThreads();
5997 (arg1)->Cut();
5998 wxPyEndAllowThreads(__tstate);
5999 if (PyErr_Occurred()) SWIG_fail;
6000 }
6001 resultobj = SWIG_Py_Void();
6002 return resultobj;
6003fail:
6004 return NULL;
d55e5bfc
RD
6005}
6006
6007
554f62e9
RD
6008SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6009 PyObject *resultobj = 0;
6010 wxComboBox *arg1 = (wxComboBox *) 0 ;
6011 void *argp1 = 0 ;
6012 int res1 = 0 ;
6013 PyObject *swig_obj[1] ;
6014
6015 if (!args) SWIG_fail;
6016 swig_obj[0] = args;
6017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6018 if (!SWIG_IsOK(res1)) {
6019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
6020 }
6021 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6022 {
6023 PyThreadState* __tstate = wxPyBeginAllowThreads();
6024 (arg1)->Paste();
6025 wxPyEndAllowThreads(__tstate);
6026 if (PyErr_Occurred()) SWIG_fail;
6027 }
6028 resultobj = SWIG_Py_Void();
6029 return resultobj;
6030fail:
6031 return NULL;
6032}
6033
6034
6035SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6036 PyObject *resultobj = 0;
6037 wxComboBox *arg1 = (wxComboBox *) 0 ;
6038 long arg2 ;
6039 void *argp1 = 0 ;
6040 int res1 = 0 ;
6041 long val2 ;
6042 int ecode2 = 0 ;
6043 PyObject * obj0 = 0 ;
6044 PyObject * obj1 = 0 ;
6045 char * kwnames[] = {
6046 (char *) "self",(char *) "pos", NULL
6047 };
6048
6049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
6050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6051 if (!SWIG_IsOK(res1)) {
6052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6053 }
6054 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6055 ecode2 = SWIG_AsVal_long(obj1, &val2);
6056 if (!SWIG_IsOK(ecode2)) {
6057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6058 }
6059 arg2 = static_cast< long >(val2);
6060 {
6061 PyThreadState* __tstate = wxPyBeginAllowThreads();
6062 (arg1)->SetInsertionPoint(arg2);
6063 wxPyEndAllowThreads(__tstate);
6064 if (PyErr_Occurred()) SWIG_fail;
6065 }
6066 resultobj = SWIG_Py_Void();
6067 return resultobj;
6068fail:
6069 return NULL;
d55e5bfc
RD
6070}
6071
6072
554f62e9
RD
6073SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6074 PyObject *resultobj = 0;
6075 wxComboBox *arg1 = (wxComboBox *) 0 ;
6076 long result;
6077 void *argp1 = 0 ;
6078 int res1 = 0 ;
6079 PyObject *swig_obj[1] ;
6080
6081 if (!args) SWIG_fail;
6082 swig_obj[0] = args;
6083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6084 if (!SWIG_IsOK(res1)) {
6085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6086 }
6087 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6088 {
6089 PyThreadState* __tstate = wxPyBeginAllowThreads();
6090 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6091 wxPyEndAllowThreads(__tstate);
6092 if (PyErr_Occurred()) SWIG_fail;
6093 }
6094 resultobj = SWIG_From_long(static_cast< long >(result));
6095 return resultobj;
6096fail:
6097 return NULL;
d55e5bfc
RD
6098}
6099
6100
554f62e9
RD
6101SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6102 PyObject *resultobj = 0;
6103 wxComboBox *arg1 = (wxComboBox *) 0 ;
6104 long result;
6105 void *argp1 = 0 ;
6106 int res1 = 0 ;
6107 PyObject *swig_obj[1] ;
6108
6109 if (!args) SWIG_fail;
6110 swig_obj[0] = args;
6111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6112 if (!SWIG_IsOK(res1)) {
6113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6114 }
6115 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6116 {
6117 PyThreadState* __tstate = wxPyBeginAllowThreads();
6118 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6119 wxPyEndAllowThreads(__tstate);
6120 if (PyErr_Occurred()) SWIG_fail;
6121 }
6122 resultobj = SWIG_From_long(static_cast< long >(result));
6123 return resultobj;
6124fail:
6125 return NULL;
6126}
6127
6128
6129SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6130 PyObject *resultobj = 0;
6131 wxComboBox *arg1 = (wxComboBox *) 0 ;
6132 long arg2 ;
6133 long arg3 ;
6134 wxString *arg4 = 0 ;
6135 void *argp1 = 0 ;
6136 int res1 = 0 ;
6137 long val2 ;
6138 int ecode2 = 0 ;
6139 long val3 ;
6140 int ecode3 = 0 ;
6141 bool temp4 = false ;
6142 PyObject * obj0 = 0 ;
6143 PyObject * obj1 = 0 ;
6144 PyObject * obj2 = 0 ;
6145 PyObject * obj3 = 0 ;
6146 char * kwnames[] = {
f460c29d 6147 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
554f62e9
RD
6148 };
6149
6150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6152 if (!SWIG_IsOK(res1)) {
6153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6154 }
6155 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6156 ecode2 = SWIG_AsVal_long(obj1, &val2);
6157 if (!SWIG_IsOK(ecode2)) {
6158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6159 }
6160 arg2 = static_cast< long >(val2);
6161 ecode3 = SWIG_AsVal_long(obj2, &val3);
6162 if (!SWIG_IsOK(ecode3)) {
6163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6164 }
6165 arg3 = static_cast< long >(val3);
6166 {
6167 arg4 = wxString_in_helper(obj3);
6168 if (arg4 == NULL) SWIG_fail;
6169 temp4 = true;
6170 }
6171 {
6172 PyThreadState* __tstate = wxPyBeginAllowThreads();
6173 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6174 wxPyEndAllowThreads(__tstate);
6175 if (PyErr_Occurred()) SWIG_fail;
6176 }
6177 resultobj = SWIG_Py_Void();
6178 {
6179 if (temp4)
6180 delete arg4;
6181 }
6182 return resultobj;
6183fail:
6184 {
6185 if (temp4)
6186 delete arg4;
6187 }
6188 return NULL;
6189}
6190
6191
6192SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6193 PyObject *resultobj = 0;
6194 wxComboBox *arg1 = (wxComboBox *) 0 ;
6195 long arg2 ;
6196 long arg3 ;
6197 void *argp1 = 0 ;
6198 int res1 = 0 ;
6199 long val2 ;
6200 int ecode2 = 0 ;
6201 long val3 ;
6202 int ecode3 = 0 ;
6203 PyObject * obj0 = 0 ;
6204 PyObject * obj1 = 0 ;
6205 PyObject * obj2 = 0 ;
6206 char * kwnames[] = {
f460c29d 6207 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
6208 };
6209
6210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6212 if (!SWIG_IsOK(res1)) {
6213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6214 }
6215 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6216 ecode2 = SWIG_AsVal_long(obj1, &val2);
6217 if (!SWIG_IsOK(ecode2)) {
6218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6219 }
6220 arg2 = static_cast< long >(val2);
6221 ecode3 = SWIG_AsVal_long(obj2, &val3);
6222 if (!SWIG_IsOK(ecode3)) {
6223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6224 }
6225 arg3 = static_cast< long >(val3);
6226 {
6227 PyThreadState* __tstate = wxPyBeginAllowThreads();
6228 (arg1)->SetSelection(arg2,arg3);
6229 wxPyEndAllowThreads(__tstate);
6230 if (PyErr_Occurred()) SWIG_fail;
6231 }
6232 resultobj = SWIG_Py_Void();
6233 return resultobj;
6234fail:
6235 return NULL;
6236}
6237
6238
6239SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6240 PyObject *resultobj = 0;
6241 wxComboBox *arg1 = (wxComboBox *) 0 ;
6242 long *arg2 = (long *) 0 ;
6243 long *arg3 = (long *) 0 ;
6244 void *argp1 = 0 ;
6245 int res1 = 0 ;
6246 long temp2 ;
6247 int res2 = SWIG_TMPOBJ ;
6248 long temp3 ;
6249 int res3 = SWIG_TMPOBJ ;
6250 PyObject *swig_obj[1] ;
6251
6252 arg2 = &temp2;
6253 arg3 = &temp3;
6254 if (!args) SWIG_fail;
6255 swig_obj[0] = args;
6256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6257 if (!SWIG_IsOK(res1)) {
6258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6259 }
6260 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6261 {
6262 PyThreadState* __tstate = wxPyBeginAllowThreads();
6263 (arg1)->GetSelection(arg2,arg3);
6264 wxPyEndAllowThreads(__tstate);
6265 if (PyErr_Occurred()) SWIG_fail;
6266 }
6267 resultobj = SWIG_Py_Void();
6268 if (SWIG_IsTmpObj(res2)) {
6269 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6270 } else {
6271 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6272 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6273 }
6274 if (SWIG_IsTmpObj(res3)) {
6275 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6276 } else {
6277 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6278 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6279 }
6280 return resultobj;
6281fail:
6282 return NULL;
d55e5bfc
RD
6283}
6284
6285
554f62e9
RD
6286SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6287 PyObject *resultobj = 0;
6288 wxComboBox *arg1 = (wxComboBox *) 0 ;
6289 int result;
6290 void *argp1 = 0 ;
6291 int res1 = 0 ;
6292 PyObject *swig_obj[1] ;
6293
6294 if (!args) SWIG_fail;
6295 swig_obj[0] = args;
6296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6297 if (!SWIG_IsOK(res1)) {
6298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6299 }
6300 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6301 {
6302 PyThreadState* __tstate = wxPyBeginAllowThreads();
6303 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6304 wxPyEndAllowThreads(__tstate);
6305 if (PyErr_Occurred()) SWIG_fail;
6306 }
6307 resultobj = SWIG_From_int(static_cast< int >(result));
6308 return resultobj;
6309fail:
6310 return NULL;
6311}
6312
6313
6314SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6315 PyObject *resultobj = 0;
6316 wxComboBox *arg1 = (wxComboBox *) 0 ;
6317 wxString *arg2 = 0 ;
6318 bool result;
6319 void *argp1 = 0 ;
6320 int res1 = 0 ;
6321 bool temp2 = false ;
6322 PyObject * obj0 = 0 ;
6323 PyObject * obj1 = 0 ;
6324 char * kwnames[] = {
6325 (char *) "self",(char *) "string", NULL
6326 };
6327
6328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6330 if (!SWIG_IsOK(res1)) {
6331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6332 }
6333 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6334 {
6335 arg2 = wxString_in_helper(obj1);
6336 if (arg2 == NULL) SWIG_fail;
6337 temp2 = true;
6338 }
6339 {
6340 PyThreadState* __tstate = wxPyBeginAllowThreads();
6341 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6342 wxPyEndAllowThreads(__tstate);
6343 if (PyErr_Occurred()) SWIG_fail;
6344 }
6345 {
6346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6347 }
6348 {
6349 if (temp2)
6350 delete arg2;
6351 }
6352 return resultobj;
6353fail:
6354 {
6355 if (temp2)
6356 delete arg2;
6357 }
6358 return NULL;
6359}
6360
6361
6362SWIGINTERN 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;
6395fail:
6396 return NULL;
d55e5bfc
RD
6397}
6398
6399
554f62e9
RD
6400SWIGINTERN 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;
6422fail:
6423 return NULL;
6424}
6425
6426
6427SWIGINTERN 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[] = {
f460c29d 6442 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
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;
6469fail:
6470 return NULL;
d55e5bfc
RD
6471}
6472
6473
554f62e9
RD
6474SWIGINTERN 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;
6499fail:
6500 return NULL;
d55e5bfc
RD
6501}
6502
6503
554f62e9
RD
6504SWIGINTERN 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;
6526fail:
6527 return NULL;
d55e5bfc
RD
6528}
6529
6530
554f62e9
RD
6531SWIGINTERN 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;
6553fail:
6554 return NULL;
d55e5bfc
RD
6555}
6556
6557
554f62e9
RD
6558SWIGINTERN 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;
6580fail:
6581 return NULL;
f78cc896
RD
6582}
6583
6584
554f62e9
RD
6585SWIGINTERN 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;
6610fail:
6611 return NULL;
9d7dfdff
RD
6612}
6613
6614
554f62e9
RD
6615SWIGINTERN 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;
6640fail:
6641 return NULL;
121b9a67
RD
6642}
6643
6644
554f62e9
RD
6645SWIGINTERN 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;
6670fail:
6671 return NULL;
121b9a67
RD
6672}
6673
6674
554f62e9
RD
6675SWIGINTERN 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;
6700fail:
6701 return NULL;
d55e5bfc
RD
6702}
6703
6704
554f62e9
RD
6705SWIGINTERN 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;
6730fail:
6731 return NULL;
d55e5bfc
RD
6732}
6733
6734
554f62e9
RD
6735SWIGINTERN 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;
6763fail:
6764 return NULL;
d55e5bfc
RD
6765}
6766
6767
554f62e9
RD
6768SWIGINTERN 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();
b519803b
RD
6773}
6774
554f62e9
RD
6775SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6776 return SWIG_Python_InitShadowInstance(args);
6777}
b519803b 6778
554f62e9
RD
6779SWIGINTERN int GaugeNameStr_set(PyObject *) {
6780 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6781 return 1;
b519803b
RD
6782}
6783
6784
554f62e9
RD
6785SWIGINTERN 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
6799SWIGINTERN 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) {
b519803b 6860 {
554f62e9
RD
6861 arg4 = &temp4;
6862 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
b519803b 6863 }
554f62e9
RD
6864 }
6865 if (obj4) {
b519803b 6866 {
554f62e9
RD
6867 arg5 = &temp5;
6868 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
b519803b 6869 }
554f62e9
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 &""'");
b519803b 6885 }
554f62e9
RD
6886 arg7 = reinterpret_cast< wxValidator * >(argp7);
6887 }
6888 if (obj7) {
b519803b 6889 {
554f62e9
RD
6890 arg8 = wxString_in_helper(obj7);
6891 if (arg8 == NULL) SWIG_fail;
6892 temp8 = true;
b519803b 6893 }
554f62e9
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;
6908fail:
6909 {
6910 if (temp8)
6911 delete arg8;
6912 }
6913 return NULL;
b519803b
RD
6914}
6915
6916
554f62e9
RD
6917SWIGINTERN 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;
6931fail:
6932 return NULL;
6933}
6934
6935
6936SWIGINTERN 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) {
b519803b 7006 {
554f62e9
RD
7007 arg5 = &temp5;
7008 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
b519803b 7009 }
554f62e9
RD
7010 }
7011 if (obj5) {
b519803b 7012 {
554f62e9
RD
7013 arg6 = &temp6;
7014 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
b519803b 7015 }
554f62e9
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 &""'");
b519803b 7028 }
554f62e9
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) {
b519803b 7035 {
554f62e9
RD
7036 arg9 = wxString_in_helper(obj8);
7037 if (arg9 == NULL) SWIG_fail;
7038 temp9 = true;
b519803b 7039 }
554f62e9
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;
7055fail:
7056 {
7057 if (temp9)
7058 delete arg9;
7059 }
7060 return NULL;
7061}
7062
7063
7064SWIGINTERN 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;
7097fail:
7098 return NULL;
b519803b
RD
7099}
7100
7101
554f62e9
RD
7102SWIGINTERN 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;
7125fail:
7126 return NULL;
7127}
7128
7129
7130SWIGINTERN 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;
7163fail:
7164 return NULL;
b519803b
RD
7165}
7166
7167
554f62e9
RD
7168SWIGINTERN 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;
7191fail:
7192 return NULL;
b519803b
RD
7193}
7194
7195
0d2c9713
RD
7196SWIGINTERN 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;
7218fail:
7219 return NULL;
7220}
7221
7222
554f62e9
RD
7223SWIGINTERN 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;
7248fail:
7249 return NULL;
7250}
7251
7252
7253SWIGINTERN 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;
7286fail:
7287 return NULL;
f20a2e1f
RD
7288}
7289
7290
554f62e9
RD
7291SWIGINTERN 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;
7314fail:
7315 return NULL;
7316}
7317
7318
7319SWIGINTERN 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;
7352fail:
7353 return NULL;
d55e5bfc 7354}
554f62e9
RD
7355
7356
7357SWIGINTERN 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;
7380fail:
7381 return NULL;
7382}
7383
7384
7385SWIGINTERN 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;
7413fail:
7414 return NULL;
d55e5bfc
RD
7415}
7416
7417
554f62e9
RD
7418SWIGINTERN 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
7425SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7426 return SWIG_Python_InitShadowInstance(args);
7427}
7428
7429SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7430 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7431 return 1;
7432}
7433
7434
7435SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7436 PyObject *pyobj = 0;
7437
7438 {
d55e5bfc 7439#if wxUSE_UNICODE
554f62e9 7440 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
d55e5bfc 7441#else
554f62e9 7442 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
d55e5bfc 7443#endif
554f62e9
RD
7444 }
7445 return pyobj;
d55e5bfc
RD
7446}
7447
7448
554f62e9
RD
7449SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7450 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7451 return 1;
d55e5bfc
RD
7452}
7453
7454
554f62e9
RD
7455SWIGINTERN 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
7469SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7470 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7471 return 1;
7472}
7473
7474
7475SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7476 PyObject *pyobj = 0;
7477
7478 {
7479#if wxUSE_UNICODE
7480 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7481#else
7482 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7483#endif
7484 }
7485 return pyobj;
7486}
7487
7488
3f7f284d
RD
7489SWIGINTERN int StaticLineNameStr_set(PyObject *) {
7490 SWIG_Error(SWIG_AttributeError,"Variable StaticLineNameStr is read-only.");
7491 return 1;
7492}
7493
7494
7495SWIGINTERN PyObject *StaticLineNameStr_get(void) {
7496 PyObject *pyobj = 0;
7497
7498 {
7499#if wxUSE_UNICODE
7500 pyobj = PyUnicode_FromWideChar((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7501#else
7502 pyobj = PyString_FromStringAndSize((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7503#endif
7504 }
7505 return pyobj;
7506}
7507
7508
554f62e9
RD
7509SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7510 PyObject *resultobj = 0;
7511 wxWindow *arg1 = (wxWindow *) 0 ;
7512 int arg2 = (int) -1 ;
7513 wxString const &arg3_defvalue = wxPyEmptyString ;
7514 wxString *arg3 = (wxString *) &arg3_defvalue ;
7515 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7516 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7517 wxSize const &arg5_defvalue = wxDefaultSize ;
7518 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7519 long arg6 = (long) 0 ;
7520 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7521 wxString *arg7 = (wxString *) &arg7_defvalue ;
7522 wxStaticBox *result = 0 ;
7523 void *argp1 = 0 ;
7524 int res1 = 0 ;
7525 int val2 ;
7526 int ecode2 = 0 ;
7527 bool temp3 = false ;
7528 wxPoint temp4 ;
7529 wxSize temp5 ;
7530 long val6 ;
7531 int ecode6 = 0 ;
7532 bool temp7 = false ;
7533 PyObject * obj0 = 0 ;
7534 PyObject * obj1 = 0 ;
7535 PyObject * obj2 = 0 ;
7536 PyObject * obj3 = 0 ;
7537 PyObject * obj4 = 0 ;
7538 PyObject * obj5 = 0 ;
7539 PyObject * obj6 = 0 ;
7540 char * kwnames[] = {
7541 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7542 };
7543
7544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7546 if (!SWIG_IsOK(res1)) {
7547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7548 }
7549 arg1 = reinterpret_cast< wxWindow * >(argp1);
7550 if (obj1) {
7551 ecode2 = SWIG_AsVal_int(obj1, &val2);
7552 if (!SWIG_IsOK(ecode2)) {
7553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7554 }
7555 arg2 = static_cast< int >(val2);
7556 }
7557 if (obj2) {
d55e5bfc 7558 {
554f62e9
RD
7559 arg3 = wxString_in_helper(obj2);
7560 if (arg3 == NULL) SWIG_fail;
7561 temp3 = true;
d55e5bfc 7562 }
554f62e9
RD
7563 }
7564 if (obj3) {
d55e5bfc 7565 {
554f62e9
RD
7566 arg4 = &temp4;
7567 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7568 }
554f62e9
RD
7569 }
7570 if (obj4) {
d55e5bfc 7571 {
554f62e9
RD
7572 arg5 = &temp5;
7573 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7574 }
554f62e9
RD
7575 }
7576 if (obj5) {
7577 ecode6 = SWIG_AsVal_long(obj5, &val6);
7578 if (!SWIG_IsOK(ecode6)) {
7579 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7580 }
7581 arg6 = static_cast< long >(val6);
7582 }
7583 if (obj6) {
d55e5bfc 7584 {
554f62e9
RD
7585 arg7 = wxString_in_helper(obj6);
7586 if (arg7 == NULL) SWIG_fail;
7587 temp7 = true;
d55e5bfc 7588 }
554f62e9
RD
7589 }
7590 {
7591 if (!wxPyCheckForApp()) SWIG_fail;
7592 PyThreadState* __tstate = wxPyBeginAllowThreads();
7593 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7594 wxPyEndAllowThreads(__tstate);
7595 if (PyErr_Occurred()) SWIG_fail;
7596 }
7597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7598 {
7599 if (temp3)
7600 delete arg3;
7601 }
7602 {
7603 if (temp7)
7604 delete arg7;
7605 }
7606 return resultobj;
7607fail:
7608 {
7609 if (temp3)
7610 delete arg3;
7611 }
7612 {
7613 if (temp7)
7614 delete arg7;
7615 }
7616 return NULL;
d55e5bfc
RD
7617}
7618
7619
554f62e9
RD
7620SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7621 PyObject *resultobj = 0;
7622 wxStaticBox *result = 0 ;
7623
7624 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7625 {
7626 if (!wxPyCheckForApp()) SWIG_fail;
7627 PyThreadState* __tstate = wxPyBeginAllowThreads();
7628 result = (wxStaticBox *)new wxStaticBox();
7629 wxPyEndAllowThreads(__tstate);
7630 if (PyErr_Occurred()) SWIG_fail;
7631 }
7632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7633 return resultobj;
7634fail:
7635 return NULL;
7636}
7637
7638
7639SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7640 PyObject *resultobj = 0;
7641 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7642 wxWindow *arg2 = (wxWindow *) 0 ;
7643 int arg3 = (int) -1 ;
7644 wxString const &arg4_defvalue = wxPyEmptyString ;
7645 wxString *arg4 = (wxString *) &arg4_defvalue ;
7646 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7647 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7648 wxSize const &arg6_defvalue = wxDefaultSize ;
7649 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7650 long arg7 = (long) 0 ;
7651 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7652 wxString *arg8 = (wxString *) &arg8_defvalue ;
7653 bool result;
7654 void *argp1 = 0 ;
7655 int res1 = 0 ;
7656 void *argp2 = 0 ;
7657 int res2 = 0 ;
7658 int val3 ;
7659 int ecode3 = 0 ;
7660 bool temp4 = false ;
7661 wxPoint temp5 ;
7662 wxSize temp6 ;
7663 long val7 ;
7664 int ecode7 = 0 ;
7665 bool temp8 = false ;
7666 PyObject * obj0 = 0 ;
7667 PyObject * obj1 = 0 ;
7668 PyObject * obj2 = 0 ;
7669 PyObject * obj3 = 0 ;
7670 PyObject * obj4 = 0 ;
7671 PyObject * obj5 = 0 ;
7672 PyObject * obj6 = 0 ;
7673 PyObject * obj7 = 0 ;
7674 char * kwnames[] = {
7675 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7676 };
7677
7678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7680 if (!SWIG_IsOK(res1)) {
7681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7682 }
7683 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7684 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7685 if (!SWIG_IsOK(res2)) {
7686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7687 }
7688 arg2 = reinterpret_cast< wxWindow * >(argp2);
7689 if (obj2) {
7690 ecode3 = SWIG_AsVal_int(obj2, &val3);
7691 if (!SWIG_IsOK(ecode3)) {
7692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7693 }
7694 arg3 = static_cast< int >(val3);
7695 }
7696 if (obj3) {
093d3ff1 7697 {
554f62e9
RD
7698 arg4 = wxString_in_helper(obj3);
7699 if (arg4 == NULL) SWIG_fail;
7700 temp4 = true;
093d3ff1 7701 }
554f62e9
RD
7702 }
7703 if (obj4) {
d55e5bfc 7704 {
554f62e9
RD
7705 arg5 = &temp5;
7706 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7707 }
554f62e9
RD
7708 }
7709 if (obj5) {
d55e5bfc 7710 {
554f62e9
RD
7711 arg6 = &temp6;
7712 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 7713 }
554f62e9
RD
7714 }
7715 if (obj6) {
7716 ecode7 = SWIG_AsVal_long(obj6, &val7);
7717 if (!SWIG_IsOK(ecode7)) {
7718 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7719 }
7720 arg7 = static_cast< long >(val7);
7721 }
7722 if (obj7) {
093d3ff1 7723 {
554f62e9
RD
7724 arg8 = wxString_in_helper(obj7);
7725 if (arg8 == NULL) SWIG_fail;
7726 temp8 = true;
093d3ff1 7727 }
554f62e9
RD
7728 }
7729 {
7730 PyThreadState* __tstate = wxPyBeginAllowThreads();
7731 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7732 wxPyEndAllowThreads(__tstate);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 {
7736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7737 }
7738 {
7739 if (temp4)
7740 delete arg4;
7741 }
7742 {
7743 if (temp8)
7744 delete arg8;
7745 }
7746 return resultobj;
7747fail:
7748 {
7749 if (temp4)
7750 delete arg4;
7751 }
7752 {
7753 if (temp8)
7754 delete arg8;
7755 }
7756 return NULL;
7757}
d55e5bfc 7758
554f62e9
RD
7759
7760SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7761 PyObject *resultobj = 0;
7762 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7763 SwigValueWrapper<wxVisualAttributes > result;
7764 int val1 ;
7765 int ecode1 = 0 ;
7766 PyObject * obj0 = 0 ;
7767 char * kwnames[] = {
7768 (char *) "variant", NULL
7769 };
7770
7771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7772 if (obj0) {
7773 ecode1 = SWIG_AsVal_int(obj0, &val1);
7774 if (!SWIG_IsOK(ecode1)) {
7775 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7776 }
7777 arg1 = static_cast< wxWindowVariant >(val1);
7778 }
7779 {
7780 if (!wxPyCheckForApp()) SWIG_fail;
7781 PyThreadState* __tstate = wxPyBeginAllowThreads();
7782 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7783 wxPyEndAllowThreads(__tstate);
7784 if (PyErr_Occurred()) SWIG_fail;
7785 }
7786 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7787 return resultobj;
7788fail:
7789 return NULL;
7790}
7791
7792
7793SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7794 PyObject *obj;
7795 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7796 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7797 return SWIG_Py_Void();
7798}
7799
7800SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7801 return SWIG_Python_InitShadowInstance(args);
7802}
7803
7804SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7805 PyObject *resultobj = 0;
7806 wxWindow *arg1 = (wxWindow *) 0 ;
7807 int arg2 = (int) -1 ;
7808 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7809 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7810 wxSize const &arg4_defvalue = wxDefaultSize ;
7811 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7812 long arg5 = (long) wxLI_HORIZONTAL ;
3f7f284d 7813 wxString const &arg6_defvalue = wxPyStaticLineNameStr ;
554f62e9
RD
7814 wxString *arg6 = (wxString *) &arg6_defvalue ;
7815 wxStaticLine *result = 0 ;
7816 void *argp1 = 0 ;
7817 int res1 = 0 ;
7818 int val2 ;
7819 int ecode2 = 0 ;
7820 wxPoint temp3 ;
7821 wxSize temp4 ;
7822 long val5 ;
7823 int ecode5 = 0 ;
7824 bool temp6 = false ;
7825 PyObject * obj0 = 0 ;
7826 PyObject * obj1 = 0 ;
7827 PyObject * obj2 = 0 ;
7828 PyObject * obj3 = 0 ;
7829 PyObject * obj4 = 0 ;
7830 PyObject * obj5 = 0 ;
7831 char * kwnames[] = {
7832 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7833 };
7834
7835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7837 if (!SWIG_IsOK(res1)) {
7838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7839 }
7840 arg1 = reinterpret_cast< wxWindow * >(argp1);
7841 if (obj1) {
7842 ecode2 = SWIG_AsVal_int(obj1, &val2);
7843 if (!SWIG_IsOK(ecode2)) {
7844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7845 }
7846 arg2 = static_cast< int >(val2);
7847 }
7848 if (obj2) {
093d3ff1 7849 {
554f62e9
RD
7850 arg3 = &temp3;
7851 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 7852 }
554f62e9
RD
7853 }
7854 if (obj3) {
d55e5bfc 7855 {
554f62e9
RD
7856 arg4 = &temp4;
7857 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7858 }
554f62e9
RD
7859 }
7860 if (obj4) {
7861 ecode5 = SWIG_AsVal_long(obj4, &val5);
7862 if (!SWIG_IsOK(ecode5)) {
7863 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7864 }
7865 arg5 = static_cast< long >(val5);
7866 }
7867 if (obj5) {
7868 {
7869 arg6 = wxString_in_helper(obj5);
7870 if (arg6 == NULL) SWIG_fail;
7871 temp6 = true;
7872 }
7873 }
7874 {
7875 if (!wxPyCheckForApp()) SWIG_fail;
7876 PyThreadState* __tstate = wxPyBeginAllowThreads();
7877 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7878 wxPyEndAllowThreads(__tstate);
7879 if (PyErr_Occurred()) SWIG_fail;
7880 }
7881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7882 {
7883 if (temp6)
7884 delete arg6;
7885 }
7886 return resultobj;
7887fail:
7888 {
7889 if (temp6)
7890 delete arg6;
7891 }
7892 return NULL;
d55e5bfc
RD
7893}
7894
7895
554f62e9
RD
7896SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7897 PyObject *resultobj = 0;
7898 wxStaticLine *result = 0 ;
7899
7900 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7901 {
7902 if (!wxPyCheckForApp()) SWIG_fail;
7903 PyThreadState* __tstate = wxPyBeginAllowThreads();
7904 result = (wxStaticLine *)new wxStaticLine();
7905 wxPyEndAllowThreads(__tstate);
7906 if (PyErr_Occurred()) SWIG_fail;
7907 }
7908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7909 return resultobj;
7910fail:
7911 return NULL;
7912}
7913
7914
7915SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7916 PyObject *resultobj = 0;
7917 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7918 wxWindow *arg2 = (wxWindow *) 0 ;
7919 int arg3 = (int) -1 ;
7920 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7921 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7922 wxSize const &arg5_defvalue = wxDefaultSize ;
7923 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7924 long arg6 = (long) wxLI_HORIZONTAL ;
3f7f284d 7925 wxString const &arg7_defvalue = wxPyStaticLineNameStr ;
554f62e9
RD
7926 wxString *arg7 = (wxString *) &arg7_defvalue ;
7927 bool result;
7928 void *argp1 = 0 ;
7929 int res1 = 0 ;
7930 void *argp2 = 0 ;
7931 int res2 = 0 ;
7932 int val3 ;
7933 int ecode3 = 0 ;
7934 wxPoint temp4 ;
7935 wxSize temp5 ;
7936 long val6 ;
7937 int ecode6 = 0 ;
7938 bool temp7 = false ;
7939 PyObject * obj0 = 0 ;
7940 PyObject * obj1 = 0 ;
7941 PyObject * obj2 = 0 ;
7942 PyObject * obj3 = 0 ;
7943 PyObject * obj4 = 0 ;
7944 PyObject * obj5 = 0 ;
7945 PyObject * obj6 = 0 ;
7946 char * kwnames[] = {
7947 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7948 };
7949
7950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7952 if (!SWIG_IsOK(res1)) {
7953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7954 }
7955 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7956 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7957 if (!SWIG_IsOK(res2)) {
7958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7959 }
7960 arg2 = reinterpret_cast< wxWindow * >(argp2);
7961 if (obj2) {
7962 ecode3 = SWIG_AsVal_int(obj2, &val3);
7963 if (!SWIG_IsOK(ecode3)) {
7964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7965 }
7966 arg3 = static_cast< int >(val3);
7967 }
7968 if (obj3) {
d55e5bfc 7969 {
554f62e9
RD
7970 arg4 = &temp4;
7971 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7972 }
554f62e9
RD
7973 }
7974 if (obj4) {
093d3ff1 7975 {
554f62e9
RD
7976 arg5 = &temp5;
7977 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 7978 }
554f62e9
RD
7979 }
7980 if (obj5) {
7981 ecode6 = SWIG_AsVal_long(obj5, &val6);
7982 if (!SWIG_IsOK(ecode6)) {
7983 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7984 }
7985 arg6 = static_cast< long >(val6);
7986 }
7987 if (obj6) {
7988 {
7989 arg7 = wxString_in_helper(obj6);
7990 if (arg7 == NULL) SWIG_fail;
7991 temp7 = true;
7992 }
7993 }
7994 {
7995 PyThreadState* __tstate = wxPyBeginAllowThreads();
7996 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7997 wxPyEndAllowThreads(__tstate);
7998 if (PyErr_Occurred()) SWIG_fail;
7999 }
8000 {
8001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8002 }
8003 {
8004 if (temp7)
8005 delete arg7;
8006 }
8007 return resultobj;
8008fail:
8009 {
8010 if (temp7)
8011 delete arg7;
8012 }
8013 return NULL;
d55e5bfc
RD
8014}
8015
8016
554f62e9
RD
8017SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8018 PyObject *resultobj = 0;
8019 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
8020 bool result;
8021 void *argp1 = 0 ;
8022 int res1 = 0 ;
8023 PyObject *swig_obj[1] ;
8024
8025 if (!args) SWIG_fail;
8026 swig_obj[0] = args;
8027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
8028 if (!SWIG_IsOK(res1)) {
8029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
8030 }
8031 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
8032 {
8033 PyThreadState* __tstate = wxPyBeginAllowThreads();
8034 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
8035 wxPyEndAllowThreads(__tstate);
8036 if (PyErr_Occurred()) SWIG_fail;
8037 }
8038 {
8039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8040 }
8041 return resultobj;
8042fail:
8043 return NULL;
8044}
8045
8046
8047SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8048 PyObject *resultobj = 0;
8049 int result;
8050
8051 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8052 {
8053 PyThreadState* __tstate = wxPyBeginAllowThreads();
8054 result = (int)wxStaticLine::GetDefaultSize();
8055 wxPyEndAllowThreads(__tstate);
8056 if (PyErr_Occurred()) SWIG_fail;
8057 }
8058 resultobj = SWIG_From_int(static_cast< int >(result));
8059 return resultobj;
8060fail:
8061 return NULL;
8062}
8063
8064
8065SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8066 PyObject *resultobj = 0;
8067 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8068 SwigValueWrapper<wxVisualAttributes > result;
8069 int val1 ;
8070 int ecode1 = 0 ;
8071 PyObject * obj0 = 0 ;
8072 char * kwnames[] = {
8073 (char *) "variant", NULL
8074 };
8075
8076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8077 if (obj0) {
8078 ecode1 = SWIG_AsVal_int(obj0, &val1);
8079 if (!SWIG_IsOK(ecode1)) {
8080 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8081 }
8082 arg1 = static_cast< wxWindowVariant >(val1);
8083 }
8084 {
8085 if (!wxPyCheckForApp()) SWIG_fail;
8086 PyThreadState* __tstate = wxPyBeginAllowThreads();
8087 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8088 wxPyEndAllowThreads(__tstate);
8089 if (PyErr_Occurred()) SWIG_fail;
8090 }
8091 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8092 return resultobj;
8093fail:
8094 return NULL;
8095}
8096
8097
8098SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8099 PyObject *obj;
8100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8101 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8102 return SWIG_Py_Void();
8103}
8104
8105SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8106 return SWIG_Python_InitShadowInstance(args);
8107}
8108
8109SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8110 PyObject *resultobj = 0;
8111 wxWindow *arg1 = (wxWindow *) 0 ;
8112 int arg2 = (int) -1 ;
8113 wxString const &arg3_defvalue = wxPyEmptyString ;
8114 wxString *arg3 = (wxString *) &arg3_defvalue ;
8115 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8116 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8117 wxSize const &arg5_defvalue = wxDefaultSize ;
8118 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8119 long arg6 = (long) 0 ;
8120 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8121 wxString *arg7 = (wxString *) &arg7_defvalue ;
8122 wxStaticText *result = 0 ;
8123 void *argp1 = 0 ;
8124 int res1 = 0 ;
8125 int val2 ;
8126 int ecode2 = 0 ;
8127 bool temp3 = false ;
8128 wxPoint temp4 ;
8129 wxSize temp5 ;
8130 long val6 ;
8131 int ecode6 = 0 ;
8132 bool temp7 = false ;
8133 PyObject * obj0 = 0 ;
8134 PyObject * obj1 = 0 ;
8135 PyObject * obj2 = 0 ;
8136 PyObject * obj3 = 0 ;
8137 PyObject * obj4 = 0 ;
8138 PyObject * obj5 = 0 ;
8139 PyObject * obj6 = 0 ;
8140 char * kwnames[] = {
8141 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8142 };
8143
8144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8146 if (!SWIG_IsOK(res1)) {
8147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8148 }
8149 arg1 = reinterpret_cast< wxWindow * >(argp1);
8150 if (obj1) {
8151 ecode2 = SWIG_AsVal_int(obj1, &val2);
8152 if (!SWIG_IsOK(ecode2)) {
8153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8154 }
8155 arg2 = static_cast< int >(val2);
8156 }
8157 if (obj2) {
d55e5bfc 8158 {
554f62e9
RD
8159 arg3 = wxString_in_helper(obj2);
8160 if (arg3 == NULL) SWIG_fail;
8161 temp3 = true;
d55e5bfc 8162 }
554f62e9
RD
8163 }
8164 if (obj3) {
d55e5bfc 8165 {
554f62e9
RD
8166 arg4 = &temp4;
8167 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8168 }
554f62e9
RD
8169 }
8170 if (obj4) {
093d3ff1 8171 {
554f62e9
RD
8172 arg5 = &temp5;
8173 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 8174 }
554f62e9
RD
8175 }
8176 if (obj5) {
8177 ecode6 = SWIG_AsVal_long(obj5, &val6);
8178 if (!SWIG_IsOK(ecode6)) {
8179 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8180 }
8181 arg6 = static_cast< long >(val6);
8182 }
8183 if (obj6) {
d55e5bfc 8184 {
554f62e9
RD
8185 arg7 = wxString_in_helper(obj6);
8186 if (arg7 == NULL) SWIG_fail;
8187 temp7 = true;
d55e5bfc 8188 }
554f62e9
RD
8189 }
8190 {
8191 if (!wxPyCheckForApp()) SWIG_fail;
8192 PyThreadState* __tstate = wxPyBeginAllowThreads();
8193 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8194 wxPyEndAllowThreads(__tstate);
8195 if (PyErr_Occurred()) SWIG_fail;
8196 }
8197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8198 {
8199 if (temp3)
8200 delete arg3;
8201 }
8202 {
8203 if (temp7)
8204 delete arg7;
8205 }
8206 return resultobj;
8207fail:
8208 {
8209 if (temp3)
8210 delete arg3;
8211 }
8212 {
8213 if (temp7)
8214 delete arg7;
8215 }
8216 return NULL;
d55e5bfc
RD
8217}
8218
8219
554f62e9
RD
8220SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8221 PyObject *resultobj = 0;
8222 wxStaticText *result = 0 ;
8223
8224 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8225 {
8226 if (!wxPyCheckForApp()) SWIG_fail;
8227 PyThreadState* __tstate = wxPyBeginAllowThreads();
8228 result = (wxStaticText *)new wxStaticText();
8229 wxPyEndAllowThreads(__tstate);
8230 if (PyErr_Occurred()) SWIG_fail;
8231 }
8232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8233 return resultobj;
8234fail:
8235 return NULL;
8236}
8237
8238
8239SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8240 PyObject *resultobj = 0;
8241 wxStaticText *arg1 = (wxStaticText *) 0 ;
8242 wxWindow *arg2 = (wxWindow *) 0 ;
8243 int arg3 = (int) -1 ;
8244 wxString const &arg4_defvalue = wxPyEmptyString ;
8245 wxString *arg4 = (wxString *) &arg4_defvalue ;
8246 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8247 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8248 wxSize const &arg6_defvalue = wxDefaultSize ;
8249 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8250 long arg7 = (long) 0 ;
8251 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8252 wxString *arg8 = (wxString *) &arg8_defvalue ;
8253 bool result;
8254 void *argp1 = 0 ;
8255 int res1 = 0 ;
8256 void *argp2 = 0 ;
8257 int res2 = 0 ;
8258 int val3 ;
8259 int ecode3 = 0 ;
8260 bool temp4 = false ;
8261 wxPoint temp5 ;
8262 wxSize temp6 ;
8263 long val7 ;
8264 int ecode7 = 0 ;
8265 bool temp8 = false ;
8266 PyObject * obj0 = 0 ;
8267 PyObject * obj1 = 0 ;
8268 PyObject * obj2 = 0 ;
8269 PyObject * obj3 = 0 ;
8270 PyObject * obj4 = 0 ;
8271 PyObject * obj5 = 0 ;
8272 PyObject * obj6 = 0 ;
8273 PyObject * obj7 = 0 ;
8274 char * kwnames[] = {
8275 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8276 };
8277
8278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8280 if (!SWIG_IsOK(res1)) {
8281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8282 }
8283 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8284 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8285 if (!SWIG_IsOK(res2)) {
8286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8287 }
8288 arg2 = reinterpret_cast< wxWindow * >(argp2);
8289 if (obj2) {
8290 ecode3 = SWIG_AsVal_int(obj2, &val3);
8291 if (!SWIG_IsOK(ecode3)) {
8292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8293 }
8294 arg3 = static_cast< int >(val3);
8295 }
8296 if (obj3) {
d55e5bfc 8297 {
554f62e9
RD
8298 arg4 = wxString_in_helper(obj3);
8299 if (arg4 == NULL) SWIG_fail;
8300 temp4 = true;
8301 }
8302 }
8303 if (obj4) {
8304 {
8305 arg5 = &temp5;
8306 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8307 }
554f62e9
RD
8308 }
8309 if (obj5) {
093d3ff1 8310 {
554f62e9
RD
8311 arg6 = &temp6;
8312 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 8313 }
554f62e9
RD
8314 }
8315 if (obj6) {
8316 ecode7 = SWIG_AsVal_long(obj6, &val7);
8317 if (!SWIG_IsOK(ecode7)) {
8318 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8319 }
8320 arg7 = static_cast< long >(val7);
8321 }
8322 if (obj7) {
093d3ff1 8323 {
554f62e9
RD
8324 arg8 = wxString_in_helper(obj7);
8325 if (arg8 == NULL) SWIG_fail;
8326 temp8 = true;
8327 }
8328 }
8329 {
8330 PyThreadState* __tstate = wxPyBeginAllowThreads();
8331 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8332 wxPyEndAllowThreads(__tstate);
8333 if (PyErr_Occurred()) SWIG_fail;
8334 }
8335 {
8336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8337 }
8338 {
8339 if (temp4)
8340 delete arg4;
8341 }
8342 {
8343 if (temp8)
8344 delete arg8;
8345 }
8346 return resultobj;
8347fail:
8348 {
8349 if (temp4)
8350 delete arg4;
8351 }
8352 {
8353 if (temp8)
8354 delete arg8;
8355 }
8356 return NULL;
8357}
8358
8359
8360SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8361 PyObject *resultobj = 0;
8362 wxStaticText *arg1 = (wxStaticText *) 0 ;
8363 int arg2 ;
8364 void *argp1 = 0 ;
8365 int res1 = 0 ;
8366 int val2 ;
8367 int ecode2 = 0 ;
8368 PyObject * obj0 = 0 ;
8369 PyObject * obj1 = 0 ;
8370 char * kwnames[] = {
8371 (char *) "self",(char *) "width", NULL
8372 };
8373
8374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8376 if (!SWIG_IsOK(res1)) {
8377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8378 }
8379 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8380 ecode2 = SWIG_AsVal_int(obj1, &val2);
8381 if (!SWIG_IsOK(ecode2)) {
8382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8383 }
8384 arg2 = static_cast< int >(val2);
8385 {
8386 PyThreadState* __tstate = wxPyBeginAllowThreads();
8387 (arg1)->Wrap(arg2);
8388 wxPyEndAllowThreads(__tstate);
8389 if (PyErr_Occurred()) SWIG_fail;
8390 }
8391 resultobj = SWIG_Py_Void();
8392 return resultobj;
8393fail:
8394 return NULL;
8395}
8396
8397
8398SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8399 PyObject *resultobj = 0;
8400 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8401 SwigValueWrapper<wxVisualAttributes > result;
8402 int val1 ;
8403 int ecode1 = 0 ;
8404 PyObject * obj0 = 0 ;
8405 char * kwnames[] = {
8406 (char *) "variant", NULL
8407 };
8408
8409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8410 if (obj0) {
8411 ecode1 = SWIG_AsVal_int(obj0, &val1);
8412 if (!SWIG_IsOK(ecode1)) {
8413 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8414 }
8415 arg1 = static_cast< wxWindowVariant >(val1);
8416 }
8417 {
8418 if (!wxPyCheckForApp()) SWIG_fail;
8419 PyThreadState* __tstate = wxPyBeginAllowThreads();
8420 result = wxStaticText::GetClassDefaultAttributes(arg1);
8421 wxPyEndAllowThreads(__tstate);
8422 if (PyErr_Occurred()) SWIG_fail;
8423 }
8424 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8425 return resultobj;
8426fail:
8427 return NULL;
8428}
8429
8430
8431SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8432 PyObject *obj;
8433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8434 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8435 return SWIG_Py_Void();
8436}
8437
8438SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8439 return SWIG_Python_InitShadowInstance(args);
8440}
8441
8442SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8443 PyObject *resultobj = 0;
8444 wxWindow *arg1 = (wxWindow *) 0 ;
8445 int arg2 = (int) -1 ;
8446 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8447 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8448 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8449 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8450 wxSize const &arg5_defvalue = wxDefaultSize ;
8451 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8452 long arg6 = (long) 0 ;
8453 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8454 wxString *arg7 = (wxString *) &arg7_defvalue ;
8455 wxStaticBitmap *result = 0 ;
8456 void *argp1 = 0 ;
8457 int res1 = 0 ;
8458 int val2 ;
8459 int ecode2 = 0 ;
8460 void *argp3 = 0 ;
8461 int res3 = 0 ;
8462 wxPoint temp4 ;
8463 wxSize temp5 ;
8464 long val6 ;
8465 int ecode6 = 0 ;
8466 bool temp7 = false ;
8467 PyObject * obj0 = 0 ;
8468 PyObject * obj1 = 0 ;
8469 PyObject * obj2 = 0 ;
8470 PyObject * obj3 = 0 ;
8471 PyObject * obj4 = 0 ;
8472 PyObject * obj5 = 0 ;
8473 PyObject * obj6 = 0 ;
8474 char * kwnames[] = {
8475 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8476 };
8477
8478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8480 if (!SWIG_IsOK(res1)) {
8481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8482 }
8483 arg1 = reinterpret_cast< wxWindow * >(argp1);
8484 if (obj1) {
8485 ecode2 = SWIG_AsVal_int(obj1, &val2);
8486 if (!SWIG_IsOK(ecode2)) {
8487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8488 }
8489 arg2 = static_cast< int >(val2);
8490 }
8491 if (obj2) {
8492 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8493 if (!SWIG_IsOK(res3)) {
8494 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8495 }
8496 if (!argp3) {
8497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 8498 }
554f62e9
RD
8499 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8500 }
8501 if (obj3) {
d55e5bfc 8502 {
554f62e9
RD
8503 arg4 = &temp4;
8504 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8505 }
554f62e9
RD
8506 }
8507 if (obj4) {
d55e5bfc 8508 {
554f62e9
RD
8509 arg5 = &temp5;
8510 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8511 }
554f62e9
RD
8512 }
8513 if (obj5) {
8514 ecode6 = SWIG_AsVal_long(obj5, &val6);
8515 if (!SWIG_IsOK(ecode6)) {
8516 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8517 }
8518 arg6 = static_cast< long >(val6);
8519 }
8520 if (obj6) {
093d3ff1 8521 {
554f62e9
RD
8522 arg7 = wxString_in_helper(obj6);
8523 if (arg7 == NULL) SWIG_fail;
8524 temp7 = true;
093d3ff1 8525 }
554f62e9
RD
8526 }
8527 {
8528 if (!wxPyCheckForApp()) SWIG_fail;
8529 PyThreadState* __tstate = wxPyBeginAllowThreads();
8530 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8531 wxPyEndAllowThreads(__tstate);
8532 if (PyErr_Occurred()) SWIG_fail;
8533 }
8534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8535 {
8536 if (temp7)
8537 delete arg7;
8538 }
8539 return resultobj;
8540fail:
8541 {
8542 if (temp7)
8543 delete arg7;
8544 }
8545 return NULL;
d55e5bfc
RD
8546}
8547
8548
554f62e9
RD
8549SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8550 PyObject *resultobj = 0;
8551 wxStaticBitmap *result = 0 ;
8552
8553 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8554 {
8555 if (!wxPyCheckForApp()) SWIG_fail;
8556 PyThreadState* __tstate = wxPyBeginAllowThreads();
8557 result = (wxStaticBitmap *)new wxStaticBitmap();
8558 wxPyEndAllowThreads(__tstate);
8559 if (PyErr_Occurred()) SWIG_fail;
8560 }
8561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8562 return resultobj;
8563fail:
8564 return NULL;
8565}
8566
8567
8568SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8569 PyObject *resultobj = 0;
8570 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8571 wxWindow *arg2 = (wxWindow *) 0 ;
8572 int arg3 = (int) -1 ;
8573 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8574 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8575 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8576 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8577 wxSize const &arg6_defvalue = wxDefaultSize ;
8578 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8579 long arg7 = (long) 0 ;
8580 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8581 wxString *arg8 = (wxString *) &arg8_defvalue ;
8582 bool result;
8583 void *argp1 = 0 ;
8584 int res1 = 0 ;
8585 void *argp2 = 0 ;
8586 int res2 = 0 ;
8587 int val3 ;
8588 int ecode3 = 0 ;
8589 void *argp4 = 0 ;
8590 int res4 = 0 ;
8591 wxPoint temp5 ;
8592 wxSize temp6 ;
8593 long val7 ;
8594 int ecode7 = 0 ;
8595 bool temp8 = false ;
8596 PyObject * obj0 = 0 ;
8597 PyObject * obj1 = 0 ;
8598 PyObject * obj2 = 0 ;
8599 PyObject * obj3 = 0 ;
8600 PyObject * obj4 = 0 ;
8601 PyObject * obj5 = 0 ;
8602 PyObject * obj6 = 0 ;
8603 PyObject * obj7 = 0 ;
8604 char * kwnames[] = {
8605 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8606 };
8607
8608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8610 if (!SWIG_IsOK(res1)) {
8611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8612 }
8613 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8614 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8615 if (!SWIG_IsOK(res2)) {
8616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8617 }
8618 arg2 = reinterpret_cast< wxWindow * >(argp2);
8619 if (obj2) {
8620 ecode3 = SWIG_AsVal_int(obj2, &val3);
8621 if (!SWIG_IsOK(ecode3)) {
8622 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8623 }
8624 arg3 = static_cast< int >(val3);
8625 }
8626 if (obj3) {
8627 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8628 if (!SWIG_IsOK(res4)) {
8629 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8630 }
8631 if (!argp4) {
8632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
f20a2e1f 8633 }
554f62e9
RD
8634 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8635 }
8636 if (obj4) {
f20a2e1f 8637 {
554f62e9
RD
8638 arg5 = &temp5;
8639 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 8640 }
554f62e9
RD
8641 }
8642 if (obj5) {
f20a2e1f 8643 {
554f62e9
RD
8644 arg6 = &temp6;
8645 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
f20a2e1f 8646 }
554f62e9
RD
8647 }
8648 if (obj6) {
8649 ecode7 = SWIG_AsVal_long(obj6, &val7);
8650 if (!SWIG_IsOK(ecode7)) {
8651 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8652 }
8653 arg7 = static_cast< long >(val7);
8654 }
8655 if (obj7) {
d55e5bfc 8656 {
554f62e9
RD
8657 arg8 = wxString_in_helper(obj7);
8658 if (arg8 == NULL) SWIG_fail;
8659 temp8 = true;
d55e5bfc 8660 }
554f62e9
RD
8661 }
8662 {
8663 PyThreadState* __tstate = wxPyBeginAllowThreads();
8664 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8665 wxPyEndAllowThreads(__tstate);
8666 if (PyErr_Occurred()) SWIG_fail;
8667 }
8668 {
8669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8670 }
8671 {
8672 if (temp8)
8673 delete arg8;
8674 }
8675 return resultobj;
8676fail:
8677 {
8678 if (temp8)
8679 delete arg8;
8680 }
8681 return NULL;
d55e5bfc
RD
8682}
8683
8684
554f62e9
RD
8685SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8686 PyObject *resultobj = 0;
8687 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8688 wxBitmap result;
8689 void *argp1 = 0 ;
8690 int res1 = 0 ;
8691 PyObject *swig_obj[1] ;
8692
8693 if (!args) SWIG_fail;
8694 swig_obj[0] = args;
8695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8696 if (!SWIG_IsOK(res1)) {
8697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8698 }
8699 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8700 {
8701 PyThreadState* __tstate = wxPyBeginAllowThreads();
8702 result = (arg1)->GetBitmap();
8703 wxPyEndAllowThreads(__tstate);
8704 if (PyErr_Occurred()) SWIG_fail;
8705 }
8706 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8707 return resultobj;
8708fail:
8709 return NULL;
8710}
8711
8712
8713SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8714 PyObject *resultobj = 0;
8715 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8716 wxBitmap *arg2 = 0 ;
8717 void *argp1 = 0 ;
8718 int res1 = 0 ;
8719 void *argp2 = 0 ;
8720 int res2 = 0 ;
8721 PyObject * obj0 = 0 ;
8722 PyObject * obj1 = 0 ;
8723 char * kwnames[] = {
8724 (char *) "self",(char *) "bitmap", NULL
8725 };
8726
8727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8729 if (!SWIG_IsOK(res1)) {
8730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8731 }
8732 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8733 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8734 if (!SWIG_IsOK(res2)) {
8735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8736 }
8737 if (!argp2) {
8738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8739 }
8740 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8741 {
8742 PyThreadState* __tstate = wxPyBeginAllowThreads();
8743 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8744 wxPyEndAllowThreads(__tstate);
8745 if (PyErr_Occurred()) SWIG_fail;
8746 }
8747 resultobj = SWIG_Py_Void();
8748 return resultobj;
8749fail:
8750 return NULL;
8751}
8752
8753
8754SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8755 PyObject *resultobj = 0;
8756 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8757 wxIcon *arg2 = 0 ;
8758 void *argp1 = 0 ;
8759 int res1 = 0 ;
8760 void *argp2 = 0 ;
8761 int res2 = 0 ;
8762 PyObject * obj0 = 0 ;
8763 PyObject * obj1 = 0 ;
8764 char * kwnames[] = {
8765 (char *) "self",(char *) "icon", NULL
8766 };
8767
8768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8770 if (!SWIG_IsOK(res1)) {
8771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8772 }
8773 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8774 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8775 if (!SWIG_IsOK(res2)) {
8776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8777 }
8778 if (!argp2) {
8779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8780 }
8781 arg2 = reinterpret_cast< wxIcon * >(argp2);
8782 {
8783 PyThreadState* __tstate = wxPyBeginAllowThreads();
8784 (arg1)->SetIcon((wxIcon const &)*arg2);
8785 wxPyEndAllowThreads(__tstate);
8786 if (PyErr_Occurred()) SWIG_fail;
8787 }
8788 resultobj = SWIG_Py_Void();
8789 return resultobj;
8790fail:
8791 return NULL;
8792}
8793
8794
8795SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8796 PyObject *resultobj = 0;
8797 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8798 SwigValueWrapper<wxVisualAttributes > result;
8799 int val1 ;
8800 int ecode1 = 0 ;
8801 PyObject * obj0 = 0 ;
8802 char * kwnames[] = {
8803 (char *) "variant", NULL
8804 };
8805
8806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8807 if (obj0) {
8808 ecode1 = SWIG_AsVal_int(obj0, &val1);
8809 if (!SWIG_IsOK(ecode1)) {
8810 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8811 }
8812 arg1 = static_cast< wxWindowVariant >(val1);
8813 }
8814 {
8815 if (!wxPyCheckForApp()) SWIG_fail;
8816 PyThreadState* __tstate = wxPyBeginAllowThreads();
8817 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8818 wxPyEndAllowThreads(__tstate);
8819 if (PyErr_Occurred()) SWIG_fail;
8820 }
8821 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8822 return resultobj;
8823fail:
8824 return NULL;
d55e5bfc
RD
8825}
8826
8827
554f62e9
RD
8828SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8829 PyObject *obj;
8830 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8831 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8832 return SWIG_Py_Void();
d55e5bfc
RD
8833}
8834
554f62e9
RD
8835SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8836 return SWIG_Python_InitShadowInstance(args);
8837}
d55e5bfc 8838
554f62e9
RD
8839SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8840 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8841 return 1;
d55e5bfc
RD
8842}
8843
8844
554f62e9
RD
8845SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8846 PyObject *pyobj = 0;
8847
8848 {
d55e5bfc 8849#if wxUSE_UNICODE
554f62e9 8850 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
d55e5bfc 8851#else
554f62e9 8852 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
d55e5bfc 8853#endif
554f62e9
RD
8854 }
8855 return pyobj;
8856}
8857
8858
8859SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8860 PyObject *resultobj = 0;
8861 wxWindow *arg1 = (wxWindow *) 0 ;
8862 int arg2 = (int) -1 ;
8863 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8864 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8865 wxSize const &arg4_defvalue = wxDefaultSize ;
8866 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8867 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8868 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8869 long arg6 = (long) 0 ;
8870 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8871 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8872 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8873 wxString *arg8 = (wxString *) &arg8_defvalue ;
8874 wxListBox *result = 0 ;
8875 void *argp1 = 0 ;
8876 int res1 = 0 ;
8877 int val2 ;
8878 int ecode2 = 0 ;
8879 wxPoint temp3 ;
8880 wxSize temp4 ;
8881 bool temp5 = false ;
8882 long val6 ;
8883 int ecode6 = 0 ;
8884 void *argp7 = 0 ;
8885 int res7 = 0 ;
8886 bool temp8 = false ;
8887 PyObject * obj0 = 0 ;
8888 PyObject * obj1 = 0 ;
8889 PyObject * obj2 = 0 ;
8890 PyObject * obj3 = 0 ;
8891 PyObject * obj4 = 0 ;
8892 PyObject * obj5 = 0 ;
8893 PyObject * obj6 = 0 ;
8894 PyObject * obj7 = 0 ;
8895 char * kwnames[] = {
8896 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8897 };
8898
8899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8901 if (!SWIG_IsOK(res1)) {
8902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8903 }
8904 arg1 = reinterpret_cast< wxWindow * >(argp1);
8905 if (obj1) {
8906 ecode2 = SWIG_AsVal_int(obj1, &val2);
8907 if (!SWIG_IsOK(ecode2)) {
8908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8909 }
8910 arg2 = static_cast< int >(val2);
8911 }
8912 if (obj2) {
d55e5bfc 8913 {
554f62e9
RD
8914 arg3 = &temp3;
8915 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 8916 }
554f62e9
RD
8917 }
8918 if (obj3) {
d55e5bfc 8919 {
554f62e9
RD
8920 arg4 = &temp4;
8921 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8922 }
554f62e9
RD
8923 }
8924 if (obj4) {
d55e5bfc 8925 {
554f62e9
RD
8926 if (! PySequence_Check(obj4)) {
8927 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8928 SWIG_fail;
8929 }
8930 arg5 = new wxArrayString;
8931 temp5 = true;
8932 int i, len=PySequence_Length(obj4);
8933 for (i=0; i<len; i++) {
8934 PyObject* item = PySequence_GetItem(obj4, i);
8935 wxString* s = wxString_in_helper(item);
8936 if (PyErr_Occurred()) SWIG_fail;
8937 arg5->Add(*s);
8938 delete s;
8939 Py_DECREF(item);
8940 }
d55e5bfc 8941 }
554f62e9
RD
8942 }
8943 if (obj5) {
8944 ecode6 = SWIG_AsVal_long(obj5, &val6);
8945 if (!SWIG_IsOK(ecode6)) {
8946 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8947 }
8948 arg6 = static_cast< long >(val6);
8949 }
8950 if (obj6) {
8951 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8952 if (!SWIG_IsOK(res7)) {
8953 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8954 }
554f62e9
RD
8955 if (!argp7) {
8956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8957 }
554f62e9
RD
8958 arg7 = reinterpret_cast< wxValidator * >(argp7);
8959 }
8960 if (obj7) {
d55e5bfc 8961 {
554f62e9
RD
8962 arg8 = wxString_in_helper(obj7);
8963 if (arg8 == NULL) SWIG_fail;
8964 temp8 = true;
d55e5bfc 8965 }
554f62e9
RD
8966 }
8967 {
8968 if (!wxPyCheckForApp()) SWIG_fail;
8969 PyThreadState* __tstate = wxPyBeginAllowThreads();
8970 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8971 wxPyEndAllowThreads(__tstate);
8972 if (PyErr_Occurred()) SWIG_fail;
8973 }
8974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8975 {
8976 if (temp5) delete arg5;
8977 }
8978 {
8979 if (temp8)
8980 delete arg8;
8981 }
8982 return resultobj;
8983fail:
8984 {
8985 if (temp5) delete arg5;
8986 }
8987 {
8988 if (temp8)
8989 delete arg8;
8990 }
8991 return NULL;
d55e5bfc
RD
8992}
8993
8994
554f62e9
RD
8995SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8996 PyObject *resultobj = 0;
8997 wxListBox *result = 0 ;
8998
8999 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
9000 {
9001 if (!wxPyCheckForApp()) SWIG_fail;
9002 PyThreadState* __tstate = wxPyBeginAllowThreads();
9003 result = (wxListBox *)new wxListBox();
9004 wxPyEndAllowThreads(__tstate);
9005 if (PyErr_Occurred()) SWIG_fail;
9006 }
9007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
9008 return resultobj;
9009fail:
9010 return NULL;
9011}
9012
9013
9014SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9015 PyObject *resultobj = 0;
9016 wxListBox *arg1 = (wxListBox *) 0 ;
9017 wxWindow *arg2 = (wxWindow *) 0 ;
9018 int arg3 = (int) -1 ;
9019 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9020 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9021 wxSize const &arg5_defvalue = wxDefaultSize ;
9022 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9023 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
9024 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
9025 long arg7 = (long) 0 ;
9026 wxValidator const &arg8_defvalue = wxDefaultValidator ;
9027 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
9028 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
9029 wxString *arg9 = (wxString *) &arg9_defvalue ;
9030 bool result;
9031 void *argp1 = 0 ;
9032 int res1 = 0 ;
9033 void *argp2 = 0 ;
9034 int res2 = 0 ;
9035 int val3 ;
9036 int ecode3 = 0 ;
9037 wxPoint temp4 ;
9038 wxSize temp5 ;
9039 bool temp6 = false ;
9040 long val7 ;
9041 int ecode7 = 0 ;
9042 void *argp8 = 0 ;
9043 int res8 = 0 ;
9044 bool temp9 = false ;
9045 PyObject * obj0 = 0 ;
9046 PyObject * obj1 = 0 ;
9047 PyObject * obj2 = 0 ;
9048 PyObject * obj3 = 0 ;
9049 PyObject * obj4 = 0 ;
9050 PyObject * obj5 = 0 ;
9051 PyObject * obj6 = 0 ;
9052 PyObject * obj7 = 0 ;
9053 PyObject * obj8 = 0 ;
9054 char * kwnames[] = {
9055 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9056 };
9057
9058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9060 if (!SWIG_IsOK(res1)) {
9061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9062 }
9063 arg1 = reinterpret_cast< wxListBox * >(argp1);
9064 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9065 if (!SWIG_IsOK(res2)) {
9066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9067 }
9068 arg2 = reinterpret_cast< wxWindow * >(argp2);
9069 if (obj2) {
9070 ecode3 = SWIG_AsVal_int(obj2, &val3);
9071 if (!SWIG_IsOK(ecode3)) {
9072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9073 }
9074 arg3 = static_cast< int >(val3);
9075 }
9076 if (obj3) {
d55e5bfc 9077 {
554f62e9
RD
9078 arg4 = &temp4;
9079 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 9080 }
554f62e9
RD
9081 }
9082 if (obj4) {
d55e5bfc 9083 {
554f62e9
RD
9084 arg5 = &temp5;
9085 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 9086 }
554f62e9
RD
9087 }
9088 if (obj5) {
d55e5bfc 9089 {
554f62e9
RD
9090 if (! PySequence_Check(obj5)) {
9091 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9092 SWIG_fail;
9093 }
9094 arg6 = new wxArrayString;
9095 temp6 = true;
9096 int i, len=PySequence_Length(obj5);
9097 for (i=0; i<len; i++) {
9098 PyObject* item = PySequence_GetItem(obj5, i);
9099 wxString* s = wxString_in_helper(item);
9100 if (PyErr_Occurred()) SWIG_fail;
9101 arg6->Add(*s);
9102 delete s;
9103 Py_DECREF(item);
9104 }
d55e5bfc 9105 }
554f62e9
RD
9106 }
9107 if (obj6) {
9108 ecode7 = SWIG_AsVal_long(obj6, &val7);
9109 if (!SWIG_IsOK(ecode7)) {
9110 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9111 }
9112 arg7 = static_cast< long >(val7);
9113 }
9114 if (obj7) {
9115 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9116 if (!SWIG_IsOK(res8)) {
9117 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 9118 }
554f62e9
RD
9119 if (!argp8) {
9120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
f20a2e1f 9121 }
554f62e9
RD
9122 arg8 = reinterpret_cast< wxValidator * >(argp8);
9123 }
9124 if (obj8) {
f20a2e1f 9125 {
554f62e9
RD
9126 arg9 = wxString_in_helper(obj8);
9127 if (arg9 == NULL) SWIG_fail;
9128 temp9 = true;
f20a2e1f 9129 }
554f62e9
RD
9130 }
9131 {
9132 PyThreadState* __tstate = wxPyBeginAllowThreads();
9133 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 {
9138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9139 }
9140 {
9141 if (temp6) delete arg6;
9142 }
9143 {
9144 if (temp9)
9145 delete arg9;
9146 }
9147 return resultobj;
9148fail:
9149 {
9150 if (temp6) delete arg6;
9151 }
9152 {
9153 if (temp9)
9154 delete arg9;
9155 }
9156 return NULL;
9157}
9158
9159
9160SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9161 PyObject *resultobj = 0;
9162 wxListBox *arg1 = (wxListBox *) 0 ;
9163 wxString *arg2 = 0 ;
9164 int arg3 ;
9165 PyObject *arg4 = (PyObject *) NULL ;
9166 void *argp1 = 0 ;
9167 int res1 = 0 ;
9168 bool temp2 = false ;
9169 int val3 ;
9170 int ecode3 = 0 ;
9171 PyObject * obj0 = 0 ;
9172 PyObject * obj1 = 0 ;
9173 PyObject * obj2 = 0 ;
9174 PyObject * obj3 = 0 ;
9175 char * kwnames[] = {
9176 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9177 };
9178
9179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9181 if (!SWIG_IsOK(res1)) {
9182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9183 }
9184 arg1 = reinterpret_cast< wxListBox * >(argp1);
9185 {
9186 arg2 = wxString_in_helper(obj1);
9187 if (arg2 == NULL) SWIG_fail;
9188 temp2 = true;
9189 }
9190 ecode3 = SWIG_AsVal_int(obj2, &val3);
9191 if (!SWIG_IsOK(ecode3)) {
9192 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9193 }
9194 arg3 = static_cast< int >(val3);
9195 if (obj3) {
9196 arg4 = obj3;
9197 }
9198 {
9199 PyThreadState* __tstate = wxPyBeginAllowThreads();
9200 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9201 wxPyEndAllowThreads(__tstate);
9202 if (PyErr_Occurred()) SWIG_fail;
9203 }
9204 resultobj = SWIG_Py_Void();
9205 {
9206 if (temp2)
9207 delete arg2;
9208 }
9209 return resultobj;
9210fail:
9211 {
9212 if (temp2)
9213 delete arg2;
9214 }
9215 return NULL;
9216}
9217
9218
9219SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9220 PyObject *resultobj = 0;
9221 wxListBox *arg1 = (wxListBox *) 0 ;
9222 wxArrayString *arg2 = 0 ;
50f151d7 9223 unsigned int arg3 ;
554f62e9
RD
9224 void *argp1 = 0 ;
9225 int res1 = 0 ;
9226 bool temp2 = false ;
50f151d7 9227 unsigned int val3 ;
554f62e9
RD
9228 int ecode3 = 0 ;
9229 PyObject * obj0 = 0 ;
9230 PyObject * obj1 = 0 ;
9231 PyObject * obj2 = 0 ;
9232 char * kwnames[] = {
9233 (char *) "self",(char *) "items",(char *) "pos", NULL
9234 };
9235
9236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9238 if (!SWIG_IsOK(res1)) {
9239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9240 }
9241 arg1 = reinterpret_cast< wxListBox * >(argp1);
9242 {
9243 if (! PySequence_Check(obj1)) {
9244 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9245 SWIG_fail;
9246 }
9247 arg2 = new wxArrayString;
9248 temp2 = true;
9249 int i, len=PySequence_Length(obj1);
9250 for (i=0; i<len; i++) {
9251 PyObject* item = PySequence_GetItem(obj1, i);
9252 wxString* s = wxString_in_helper(item);
9253 if (PyErr_Occurred()) SWIG_fail;
9254 arg2->Add(*s);
9255 delete s;
9256 Py_DECREF(item);
f20a2e1f 9257 }
554f62e9 9258 }
50f151d7 9259 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
554f62e9 9260 if (!SWIG_IsOK(ecode3)) {
50f151d7 9261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
554f62e9 9262 }
50f151d7 9263 arg3 = static_cast< unsigned int >(val3);
554f62e9
RD
9264 {
9265 PyThreadState* __tstate = wxPyBeginAllowThreads();
9266 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9267 wxPyEndAllowThreads(__tstate);
9268 if (PyErr_Occurred()) SWIG_fail;
9269 }
9270 resultobj = SWIG_Py_Void();
9271 {
9272 if (temp2) delete arg2;
9273 }
9274 return resultobj;
9275fail:
9276 {
9277 if (temp2) delete arg2;
9278 }
9279 return NULL;
f20a2e1f
RD
9280}
9281
9282
554f62e9
RD
9283SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9284 PyObject *resultobj = 0;
9285 wxListBox *arg1 = (wxListBox *) 0 ;
9286 wxArrayString *arg2 = 0 ;
9287 void *argp1 = 0 ;
9288 int res1 = 0 ;
9289 bool temp2 = false ;
9290 PyObject * obj0 = 0 ;
9291 PyObject * obj1 = 0 ;
9292 char * kwnames[] = {
9293 (char *) "self",(char *) "items", NULL
9294 };
9295
9296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9298 if (!SWIG_IsOK(res1)) {
9299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9300 }
9301 arg1 = reinterpret_cast< wxListBox * >(argp1);
9302 {
9303 if (! PySequence_Check(obj1)) {
9304 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9305 SWIG_fail;
9306 }
9307 arg2 = new wxArrayString;
9308 temp2 = true;
9309 int i, len=PySequence_Length(obj1);
9310 for (i=0; i<len; i++) {
9311 PyObject* item = PySequence_GetItem(obj1, i);
9312 wxString* s = wxString_in_helper(item);
9313 if (PyErr_Occurred()) SWIG_fail;
9314 arg2->Add(*s);
9315 delete s;
9316 Py_DECREF(item);
d55e5bfc 9317 }
554f62e9
RD
9318 }
9319 {
9320 PyThreadState* __tstate = wxPyBeginAllowThreads();
9321 (arg1)->Set((wxArrayString const &)*arg2);
9322 wxPyEndAllowThreads(__tstate);
9323 if (PyErr_Occurred()) SWIG_fail;
9324 }
9325 resultobj = SWIG_Py_Void();
9326 {
9327 if (temp2) delete arg2;
9328 }
9329 return resultobj;
9330fail:
9331 {
9332 if (temp2) delete arg2;
9333 }
9334 return NULL;
9335}
9336
9337
9338SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9339 PyObject *resultobj = 0;
9340 wxListBox *arg1 = (wxListBox *) 0 ;
9341 int arg2 ;
9342 bool result;
9343 void *argp1 = 0 ;
9344 int res1 = 0 ;
9345 int val2 ;
9346 int ecode2 = 0 ;
9347 PyObject * obj0 = 0 ;
9348 PyObject * obj1 = 0 ;
9349 char * kwnames[] = {
9350 (char *) "self",(char *) "n", NULL
9351 };
9352
9353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9355 if (!SWIG_IsOK(res1)) {
9356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9357 }
9358 arg1 = reinterpret_cast< wxListBox * >(argp1);
9359 ecode2 = SWIG_AsVal_int(obj1, &val2);
9360 if (!SWIG_IsOK(ecode2)) {
9361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9362 }
9363 arg2 = static_cast< int >(val2);
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9367 wxPyEndAllowThreads(__tstate);
9368 if (PyErr_Occurred()) SWIG_fail;
9369 }
9370 {
9371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9372 }
9373 return resultobj;
9374fail:
9375 return NULL;
9376}
9377
9378
9379SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9380 PyObject *resultobj = 0;
9381 wxListBox *arg1 = (wxListBox *) 0 ;
9382 int arg2 ;
9383 bool arg3 = (bool) true ;
9384 void *argp1 = 0 ;
9385 int res1 = 0 ;
9386 int val2 ;
9387 int ecode2 = 0 ;
9388 bool val3 ;
9389 int ecode3 = 0 ;
9390 PyObject * obj0 = 0 ;
9391 PyObject * obj1 = 0 ;
9392 PyObject * obj2 = 0 ;
9393 char * kwnames[] = {
9394 (char *) "self",(char *) "n",(char *) "select", NULL
9395 };
9396
9397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9399 if (!SWIG_IsOK(res1)) {
9400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9401 }
9402 arg1 = reinterpret_cast< wxListBox * >(argp1);
9403 ecode2 = SWIG_AsVal_int(obj1, &val2);
9404 if (!SWIG_IsOK(ecode2)) {
9405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9406 }
9407 arg2 = static_cast< int >(val2);
9408 if (obj2) {
9409 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9410 if (!SWIG_IsOK(ecode3)) {
9411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9412 }
9413 arg3 = static_cast< bool >(val3);
9414 }
9415 {
9416 PyThreadState* __tstate = wxPyBeginAllowThreads();
9417 (arg1)->SetSelection(arg2,arg3);
9418 wxPyEndAllowThreads(__tstate);
9419 if (PyErr_Occurred()) SWIG_fail;
9420 }
9421 resultobj = SWIG_Py_Void();
9422 return resultobj;
9423fail:
9424 return NULL;
9425}
9426
9427
9428SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9429 PyObject *resultobj = 0;
9430 wxListBox *arg1 = (wxListBox *) 0 ;
9431 int arg2 ;
9432 void *argp1 = 0 ;
9433 int res1 = 0 ;
9434 int val2 ;
9435 int ecode2 = 0 ;
9436 PyObject * obj0 = 0 ;
9437 PyObject * obj1 = 0 ;
9438 char * kwnames[] = {
9439 (char *) "self",(char *) "n", NULL
9440 };
9441
9442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9444 if (!SWIG_IsOK(res1)) {
9445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9446 }
9447 arg1 = reinterpret_cast< wxListBox * >(argp1);
9448 ecode2 = SWIG_AsVal_int(obj1, &val2);
9449 if (!SWIG_IsOK(ecode2)) {
9450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9451 }
9452 arg2 = static_cast< int >(val2);
9453 {
9454 PyThreadState* __tstate = wxPyBeginAllowThreads();
9455 (arg1)->Select(arg2);
9456 wxPyEndAllowThreads(__tstate);
9457 if (PyErr_Occurred()) SWIG_fail;
9458 }
9459 resultobj = SWIG_Py_Void();
9460 return resultobj;
9461fail:
9462 return NULL;
9463}
9464
9465
9466SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9467 PyObject *resultobj = 0;
9468 wxListBox *arg1 = (wxListBox *) 0 ;
9469 int arg2 ;
9470 void *argp1 = 0 ;
9471 int res1 = 0 ;
9472 int val2 ;
9473 int ecode2 = 0 ;
9474 PyObject * obj0 = 0 ;
9475 PyObject * obj1 = 0 ;
9476 char * kwnames[] = {
9477 (char *) "self",(char *) "n", NULL
9478 };
9479
9480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9482 if (!SWIG_IsOK(res1)) {
9483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9484 }
9485 arg1 = reinterpret_cast< wxListBox * >(argp1);
9486 ecode2 = SWIG_AsVal_int(obj1, &val2);
9487 if (!SWIG_IsOK(ecode2)) {
9488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9489 }
9490 arg2 = static_cast< int >(val2);
9491 {
9492 PyThreadState* __tstate = wxPyBeginAllowThreads();
9493 (arg1)->Deselect(arg2);
9494 wxPyEndAllowThreads(__tstate);
9495 if (PyErr_Occurred()) SWIG_fail;
9496 }
9497 resultobj = SWIG_Py_Void();
9498 return resultobj;
9499fail:
9500 return NULL;
9501}
9502
9503
9504SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9505 PyObject *resultobj = 0;
9506 wxListBox *arg1 = (wxListBox *) 0 ;
9507 int arg2 = (int) -1 ;
9508 void *argp1 = 0 ;
9509 int res1 = 0 ;
9510 int val2 ;
9511 int ecode2 = 0 ;
9512 PyObject * obj0 = 0 ;
9513 PyObject * obj1 = 0 ;
9514 char * kwnames[] = {
9515 (char *) "self",(char *) "itemToLeaveSelected", NULL
9516 };
9517
9518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9520 if (!SWIG_IsOK(res1)) {
9521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9522 }
9523 arg1 = reinterpret_cast< wxListBox * >(argp1);
9524 if (obj1) {
9525 ecode2 = SWIG_AsVal_int(obj1, &val2);
9526 if (!SWIG_IsOK(ecode2)) {
9527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9528 }
9529 arg2 = static_cast< int >(val2);
9530 }
9531 {
9532 PyThreadState* __tstate = wxPyBeginAllowThreads();
9533 (arg1)->DeselectAll(arg2);
9534 wxPyEndAllowThreads(__tstate);
9535 if (PyErr_Occurred()) SWIG_fail;
9536 }
9537 resultobj = SWIG_Py_Void();
9538 return resultobj;
9539fail:
9540 return NULL;
9541}
9542
9543
9544SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9545 PyObject *resultobj = 0;
9546 wxListBox *arg1 = (wxListBox *) 0 ;
9547 wxString *arg2 = 0 ;
9548 bool arg3 = (bool) true ;
9549 bool result;
9550 void *argp1 = 0 ;
9551 int res1 = 0 ;
9552 bool temp2 = false ;
9553 bool val3 ;
9554 int ecode3 = 0 ;
9555 PyObject * obj0 = 0 ;
9556 PyObject * obj1 = 0 ;
9557 PyObject * obj2 = 0 ;
9558 char * kwnames[] = {
9559 (char *) "self",(char *) "s",(char *) "select", NULL
9560 };
9561
9562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9564 if (!SWIG_IsOK(res1)) {
9565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9566 }
9567 arg1 = reinterpret_cast< wxListBox * >(argp1);
9568 {
9569 arg2 = wxString_in_helper(obj1);
9570 if (arg2 == NULL) SWIG_fail;
9571 temp2 = true;
9572 }
9573 if (obj2) {
9574 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9575 if (!SWIG_IsOK(ecode3)) {
9576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9577 }
9578 arg3 = static_cast< bool >(val3);
9579 }
9580 {
9581 PyThreadState* __tstate = wxPyBeginAllowThreads();
9582 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9583 wxPyEndAllowThreads(__tstate);
9584 if (PyErr_Occurred()) SWIG_fail;
9585 }
9586 {
9587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9588 }
9589 {
9590 if (temp2)
9591 delete arg2;
9592 }
9593 return resultobj;
9594fail:
9595 {
9596 if (temp2)
9597 delete arg2;
9598 }
9599 return NULL;
d55e5bfc
RD
9600}
9601
9602
554f62e9
RD
9603SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9604 PyObject *resultobj = 0;
9605 wxListBox *arg1 = (wxListBox *) 0 ;
9606 PyObject *result = 0 ;
9607 void *argp1 = 0 ;
9608 int res1 = 0 ;
9609 PyObject *swig_obj[1] ;
9610
9611 if (!args) SWIG_fail;
9612 swig_obj[0] = args;
9613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9614 if (!SWIG_IsOK(res1)) {
9615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9616 }
9617 arg1 = reinterpret_cast< wxListBox * >(argp1);
9618 {
9619 PyThreadState* __tstate = wxPyBeginAllowThreads();
9620 result = (PyObject *)wxListBox_GetSelections(arg1);
9621 wxPyEndAllowThreads(__tstate);
9622 if (PyErr_Occurred()) SWIG_fail;
9623 }
9624 resultobj = result;
9625 return resultobj;
9626fail:
9627 return NULL;
9628}
9629
9630
9631SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9632 PyObject *resultobj = 0;
9633 wxListBox *arg1 = (wxListBox *) 0 ;
9634 int arg2 ;
9635 void *argp1 = 0 ;
9636 int res1 = 0 ;
9637 int val2 ;
9638 int ecode2 = 0 ;
9639 PyObject * obj0 = 0 ;
9640 PyObject * obj1 = 0 ;
9641 char * kwnames[] = {
9642 (char *) "self",(char *) "n", NULL
9643 };
9644
9645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9647 if (!SWIG_IsOK(res1)) {
9648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9649 }
9650 arg1 = reinterpret_cast< wxListBox * >(argp1);
9651 ecode2 = SWIG_AsVal_int(obj1, &val2);
9652 if (!SWIG_IsOK(ecode2)) {
9653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9654 }
9655 arg2 = static_cast< int >(val2);
9656 {
9657 PyThreadState* __tstate = wxPyBeginAllowThreads();
9658 (arg1)->SetFirstItem(arg2);
9659 wxPyEndAllowThreads(__tstate);
9660 if (PyErr_Occurred()) SWIG_fail;
9661 }
9662 resultobj = SWIG_Py_Void();
9663 return resultobj;
9664fail:
9665 return NULL;
9666}
9667
9668
9669SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9670 PyObject *resultobj = 0;
9671 wxListBox *arg1 = (wxListBox *) 0 ;
9672 wxString *arg2 = 0 ;
9673 void *argp1 = 0 ;
9674 int res1 = 0 ;
9675 bool temp2 = false ;
9676 PyObject * obj0 = 0 ;
9677 PyObject * obj1 = 0 ;
9678 char * kwnames[] = {
9679 (char *) "self",(char *) "s", NULL
9680 };
9681
9682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9684 if (!SWIG_IsOK(res1)) {
9685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9686 }
9687 arg1 = reinterpret_cast< wxListBox * >(argp1);
9688 {
9689 arg2 = wxString_in_helper(obj1);
9690 if (arg2 == NULL) SWIG_fail;
9691 temp2 = true;
9692 }
9693 {
9694 PyThreadState* __tstate = wxPyBeginAllowThreads();
9695 (arg1)->SetFirstItem((wxString const &)*arg2);
9696 wxPyEndAllowThreads(__tstate);
9697 if (PyErr_Occurred()) SWIG_fail;
9698 }
9699 resultobj = SWIG_Py_Void();
9700 {
9701 if (temp2)
9702 delete arg2;
9703 }
9704 return resultobj;
9705fail:
9706 {
9707 if (temp2)
9708 delete arg2;
9709 }
9710 return NULL;
9711}
9712
9713
9714SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9715 PyObject *resultobj = 0;
9716 wxListBox *arg1 = (wxListBox *) 0 ;
9717 int arg2 ;
9718 void *argp1 = 0 ;
9719 int res1 = 0 ;
9720 int val2 ;
9721 int ecode2 = 0 ;
9722 PyObject * obj0 = 0 ;
9723 PyObject * obj1 = 0 ;
9724 char * kwnames[] = {
9725 (char *) "self",(char *) "n", NULL
9726 };
9727
9728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9730 if (!SWIG_IsOK(res1)) {
9731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9732 }
9733 arg1 = reinterpret_cast< wxListBox * >(argp1);
9734 ecode2 = SWIG_AsVal_int(obj1, &val2);
9735 if (!SWIG_IsOK(ecode2)) {
9736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9737 }
9738 arg2 = static_cast< int >(val2);
9739 {
9740 PyThreadState* __tstate = wxPyBeginAllowThreads();
9741 (arg1)->EnsureVisible(arg2);
9742 wxPyEndAllowThreads(__tstate);
9743 if (PyErr_Occurred()) SWIG_fail;
9744 }
9745 resultobj = SWIG_Py_Void();
9746 return resultobj;
9747fail:
9748 return NULL;
9749}
9750
9751
9752SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9753 PyObject *resultobj = 0;
9754 wxListBox *arg1 = (wxListBox *) 0 ;
9755 wxString *arg2 = 0 ;
9756 void *argp1 = 0 ;
9757 int res1 = 0 ;
9758 bool temp2 = false ;
9759 PyObject * obj0 = 0 ;
9760 PyObject * obj1 = 0 ;
9761 char * kwnames[] = {
9762 (char *) "self",(char *) "s", NULL
9763 };
9764
9765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9767 if (!SWIG_IsOK(res1)) {
9768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9769 }
9770 arg1 = reinterpret_cast< wxListBox * >(argp1);
9771 {
9772 arg2 = wxString_in_helper(obj1);
9773 if (arg2 == NULL) SWIG_fail;
9774 temp2 = true;
9775 }
9776 {
9777 PyThreadState* __tstate = wxPyBeginAllowThreads();
9778 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9779 wxPyEndAllowThreads(__tstate);
9780 if (PyErr_Occurred()) SWIG_fail;
9781 }
9782 resultobj = SWIG_Py_Void();
9783 {
9784 if (temp2)
9785 delete arg2;
9786 }
9787 return resultobj;
9788fail:
9789 {
9790 if (temp2)
9791 delete arg2;
9792 }
9793 return NULL;
d55e5bfc
RD
9794}
9795
9796
554f62e9
RD
9797SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9798 PyObject *resultobj = 0;
9799 wxListBox *arg1 = (wxListBox *) 0 ;
9800 bool result;
9801 void *argp1 = 0 ;
9802 int res1 = 0 ;
9803 PyObject *swig_obj[1] ;
9804
9805 if (!args) SWIG_fail;
9806 swig_obj[0] = args;
9807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9808 if (!SWIG_IsOK(res1)) {
9809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9810 }
9811 arg1 = reinterpret_cast< wxListBox * >(argp1);
9812 {
9813 PyThreadState* __tstate = wxPyBeginAllowThreads();
9814 result = (bool)((wxListBox const *)arg1)->IsSorted();
9815 wxPyEndAllowThreads(__tstate);
9816 if (PyErr_Occurred()) SWIG_fail;
9817 }
9818 {
9819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9820 }
9821 return resultobj;
9822fail:
9823 return NULL;
9824}
9825
9826
9827SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9828 PyObject *resultobj = 0;
9829 wxListBox *arg1 = (wxListBox *) 0 ;
9830 wxPoint *arg2 = 0 ;
9831 int result;
9832 void *argp1 = 0 ;
9833 int res1 = 0 ;
9834 wxPoint temp2 ;
9835 PyObject * obj0 = 0 ;
9836 PyObject * obj1 = 0 ;
9837 char * kwnames[] = {
9838 (char *) "self",(char *) "pt", NULL
9839 };
9840
9841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9843 if (!SWIG_IsOK(res1)) {
9844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9845 }
9846 arg1 = reinterpret_cast< wxListBox * >(argp1);
9847 {
9848 arg2 = &temp2;
9849 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9850 }
9851 {
9852 PyThreadState* __tstate = wxPyBeginAllowThreads();
9853 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9854 wxPyEndAllowThreads(__tstate);
9855 if (PyErr_Occurred()) SWIG_fail;
9856 }
9857 resultobj = SWIG_From_int(static_cast< int >(result));
9858 return resultobj;
9859fail:
9860 return NULL;
9861}
9862
9863
9864SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9865 PyObject *resultobj = 0;
9866 wxListBox *arg1 = (wxListBox *) 0 ;
9867 int arg2 ;
9868 wxColour *arg3 = 0 ;
9869 void *argp1 = 0 ;
9870 int res1 = 0 ;
9871 int val2 ;
9872 int ecode2 = 0 ;
9873 wxColour temp3 ;
9874 PyObject * obj0 = 0 ;
9875 PyObject * obj1 = 0 ;
9876 PyObject * obj2 = 0 ;
9877 char * kwnames[] = {
9878 (char *) "self",(char *) "item",(char *) "c", NULL
9879 };
9880
9881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9883 if (!SWIG_IsOK(res1)) {
9884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9885 }
9886 arg1 = reinterpret_cast< wxListBox * >(argp1);
9887 ecode2 = SWIG_AsVal_int(obj1, &val2);
9888 if (!SWIG_IsOK(ecode2)) {
9889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9890 }
9891 arg2 = static_cast< int >(val2);
9892 {
9893 arg3 = &temp3;
9894 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9895 }
9896 {
9897 PyThreadState* __tstate = wxPyBeginAllowThreads();
9898 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9899 wxPyEndAllowThreads(__tstate);
9900 if (PyErr_Occurred()) SWIG_fail;
9901 }
9902 resultobj = SWIG_Py_Void();
9903 return resultobj;
9904fail:
9905 return NULL;
9906}
9907
9908
9909SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9910 PyObject *resultobj = 0;
9911 wxListBox *arg1 = (wxListBox *) 0 ;
9912 int arg2 ;
9913 wxColour *arg3 = 0 ;
9914 void *argp1 = 0 ;
9915 int res1 = 0 ;
9916 int val2 ;
9917 int ecode2 = 0 ;
9918 wxColour temp3 ;
9919 PyObject * obj0 = 0 ;
9920 PyObject * obj1 = 0 ;
9921 PyObject * obj2 = 0 ;
9922 char * kwnames[] = {
9923 (char *) "self",(char *) "item",(char *) "c", NULL
9924 };
9925
9926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9928 if (!SWIG_IsOK(res1)) {
9929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9930 }
9931 arg1 = reinterpret_cast< wxListBox * >(argp1);
9932 ecode2 = SWIG_AsVal_int(obj1, &val2);
9933 if (!SWIG_IsOK(ecode2)) {
9934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9935 }
9936 arg2 = static_cast< int >(val2);
9937 {
9938 arg3 = &temp3;
9939 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9940 }
9941 {
9942 PyThreadState* __tstate = wxPyBeginAllowThreads();
9943 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9944 wxPyEndAllowThreads(__tstate);
9945 if (PyErr_Occurred()) SWIG_fail;
9946 }
9947 resultobj = SWIG_Py_Void();
9948 return resultobj;
9949fail:
9950 return NULL;
9951}
9952
9953
9954SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9955 PyObject *resultobj = 0;
9956 wxListBox *arg1 = (wxListBox *) 0 ;
9957 int arg2 ;
9958 wxFont *arg3 = 0 ;
9959 void *argp1 = 0 ;
9960 int res1 = 0 ;
9961 int val2 ;
9962 int ecode2 = 0 ;
9963 void *argp3 = 0 ;
9964 int res3 = 0 ;
9965 PyObject * obj0 = 0 ;
9966 PyObject * obj1 = 0 ;
9967 PyObject * obj2 = 0 ;
9968 char * kwnames[] = {
9969 (char *) "self",(char *) "item",(char *) "f", NULL
9970 };
9971
9972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9974 if (!SWIG_IsOK(res1)) {
9975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9976 }
9977 arg1 = reinterpret_cast< wxListBox * >(argp1);
9978 ecode2 = SWIG_AsVal_int(obj1, &val2);
9979 if (!SWIG_IsOK(ecode2)) {
9980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9981 }
9982 arg2 = static_cast< int >(val2);
9983 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9984 if (!SWIG_IsOK(res3)) {
9985 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9986 }
9987 if (!argp3) {
9988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9989 }
9990 arg3 = reinterpret_cast< wxFont * >(argp3);
9991 {
9992 PyThreadState* __tstate = wxPyBeginAllowThreads();
9993 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9994 wxPyEndAllowThreads(__tstate);
9995 if (PyErr_Occurred()) SWIG_fail;
9996 }
9997 resultobj = SWIG_Py_Void();
9998 return resultobj;
9999fail:
10000 return NULL;
10001}
10002
10003
10004SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10005 PyObject *resultobj = 0;
10006 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
10007 SwigValueWrapper<wxVisualAttributes > result;
10008 int val1 ;
10009 int ecode1 = 0 ;
10010 PyObject * obj0 = 0 ;
10011 char * kwnames[] = {
10012 (char *) "variant", NULL
10013 };
10014
10015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
10016 if (obj0) {
10017 ecode1 = SWIG_AsVal_int(obj0, &val1);
10018 if (!SWIG_IsOK(ecode1)) {
10019 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
10020 }
10021 arg1 = static_cast< wxWindowVariant >(val1);
10022 }
10023 {
10024 if (!wxPyCheckForApp()) SWIG_fail;
10025 PyThreadState* __tstate = wxPyBeginAllowThreads();
10026 result = wxListBox::GetClassDefaultAttributes(arg1);
10027 wxPyEndAllowThreads(__tstate);
10028 if (PyErr_Occurred()) SWIG_fail;
10029 }
10030 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
10031 return resultobj;
10032fail:
10033 return NULL;
10034}
10035
10036
10037SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10038 PyObject *obj;
10039 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10040 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
10041 return SWIG_Py_Void();
10042}
10043
10044SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10045 return SWIG_Python_InitShadowInstance(args);
10046}
10047
10048SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10049 PyObject *resultobj = 0;
10050 wxWindow *arg1 = (wxWindow *) 0 ;
10051 int arg2 = (int) -1 ;
10052 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10053 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10054 wxSize const &arg4_defvalue = wxDefaultSize ;
10055 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10056 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10057 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10058 long arg6 = (long) 0 ;
10059 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10060 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10061 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10062 wxString *arg8 = (wxString *) &arg8_defvalue ;
10063 wxCheckListBox *result = 0 ;
10064 void *argp1 = 0 ;
10065 int res1 = 0 ;
10066 int val2 ;
10067 int ecode2 = 0 ;
10068 wxPoint temp3 ;
10069 wxSize temp4 ;
10070 bool temp5 = false ;
10071 long val6 ;
10072 int ecode6 = 0 ;
10073 void *argp7 = 0 ;
10074 int res7 = 0 ;
10075 bool temp8 = false ;
10076 PyObject * obj0 = 0 ;
10077 PyObject * obj1 = 0 ;
10078 PyObject * obj2 = 0 ;
10079 PyObject * obj3 = 0 ;
10080 PyObject * obj4 = 0 ;
10081 PyObject * obj5 = 0 ;
10082 PyObject * obj6 = 0 ;
10083 PyObject * obj7 = 0 ;
10084 char * kwnames[] = {
10085 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10086 };
10087
10088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10090 if (!SWIG_IsOK(res1)) {
10091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10092 }
10093 arg1 = reinterpret_cast< wxWindow * >(argp1);
10094 if (obj1) {
10095 ecode2 = SWIG_AsVal_int(obj1, &val2);
10096 if (!SWIG_IsOK(ecode2)) {
10097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10098 }
10099 arg2 = static_cast< int >(val2);
10100 }
10101 if (obj2) {
d55e5bfc 10102 {
554f62e9
RD
10103 arg3 = &temp3;
10104 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 10105 }
554f62e9
RD
10106 }
10107 if (obj3) {
d55e5bfc 10108 {
554f62e9
RD
10109 arg4 = &temp4;
10110 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10111 }
554f62e9
RD
10112 }
10113 if (obj4) {
d55e5bfc 10114 {
554f62e9
RD
10115 if (! PySequence_Check(obj4)) {
10116 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10117 SWIG_fail;
10118 }
10119 arg5 = new wxArrayString;
10120 temp5 = true;
10121 int i, len=PySequence_Length(obj4);
10122 for (i=0; i<len; i++) {
10123 PyObject* item = PySequence_GetItem(obj4, i);
10124 wxString* s = wxString_in_helper(item);
10125 if (PyErr_Occurred()) SWIG_fail;
10126 arg5->Add(*s);
10127 delete s;
10128 Py_DECREF(item);
10129 }
d55e5bfc 10130 }
554f62e9
RD
10131 }
10132 if (obj5) {
10133 ecode6 = SWIG_AsVal_long(obj5, &val6);
10134 if (!SWIG_IsOK(ecode6)) {
10135 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10136 }
10137 arg6 = static_cast< long >(val6);
10138 }
10139 if (obj6) {
10140 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10141 if (!SWIG_IsOK(res7)) {
10142 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10143 }
554f62e9
RD
10144 if (!argp7) {
10145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10146 }
554f62e9
RD
10147 arg7 = reinterpret_cast< wxValidator * >(argp7);
10148 }
10149 if (obj7) {
093d3ff1 10150 {
554f62e9
RD
10151 arg8 = wxString_in_helper(obj7);
10152 if (arg8 == NULL) SWIG_fail;
10153 temp8 = true;
093d3ff1 10154 }
554f62e9
RD
10155 }
10156 {
10157 if (!wxPyCheckForApp()) SWIG_fail;
10158 PyThreadState* __tstate = wxPyBeginAllowThreads();
10159 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10160 wxPyEndAllowThreads(__tstate);
10161 if (PyErr_Occurred()) SWIG_fail;
10162 }
10163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10164 {
10165 if (temp5) delete arg5;
10166 }
10167 {
10168 if (temp8)
10169 delete arg8;
10170 }
10171 return resultobj;
10172fail:
10173 {
10174 if (temp5) delete arg5;
10175 }
10176 {
10177 if (temp8)
10178 delete arg8;
10179 }
10180 return NULL;
d55e5bfc
RD
10181}
10182
10183
554f62e9
RD
10184SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10185 PyObject *resultobj = 0;
10186 wxCheckListBox *result = 0 ;
10187
10188 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10189 {
10190 if (!wxPyCheckForApp()) SWIG_fail;
10191 PyThreadState* __tstate = wxPyBeginAllowThreads();
10192 result = (wxCheckListBox *)new wxCheckListBox();
10193 wxPyEndAllowThreads(__tstate);
10194 if (PyErr_Occurred()) SWIG_fail;
10195 }
10196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10197 return resultobj;
10198fail:
10199 return NULL;
10200}
10201
10202
10203SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10204 PyObject *resultobj = 0;
10205 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10206 wxWindow *arg2 = (wxWindow *) 0 ;
10207 int arg3 = (int) -1 ;
10208 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10209 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10210 wxSize const &arg5_defvalue = wxDefaultSize ;
10211 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10212 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10213 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10214 long arg7 = (long) 0 ;
10215 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10216 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10217 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10218 wxString *arg9 = (wxString *) &arg9_defvalue ;
10219 bool result;
10220 void *argp1 = 0 ;
10221 int res1 = 0 ;
10222 void *argp2 = 0 ;
10223 int res2 = 0 ;
10224 int val3 ;
10225 int ecode3 = 0 ;
10226 wxPoint temp4 ;
10227 wxSize temp5 ;
10228 bool temp6 = false ;
10229 long val7 ;
10230 int ecode7 = 0 ;
10231 void *argp8 = 0 ;
10232 int res8 = 0 ;
10233 bool temp9 = false ;
10234 PyObject * obj0 = 0 ;
10235 PyObject * obj1 = 0 ;
10236 PyObject * obj2 = 0 ;
10237 PyObject * obj3 = 0 ;
10238 PyObject * obj4 = 0 ;
10239 PyObject * obj5 = 0 ;
10240 PyObject * obj6 = 0 ;
10241 PyObject * obj7 = 0 ;
10242 PyObject * obj8 = 0 ;
10243 char * kwnames[] = {
10244 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10245 };
10246
10247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10249 if (!SWIG_IsOK(res1)) {
10250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10251 }
10252 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10253 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10254 if (!SWIG_IsOK(res2)) {
10255 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10256 }
10257 arg2 = reinterpret_cast< wxWindow * >(argp2);
10258 if (obj2) {
10259 ecode3 = SWIG_AsVal_int(obj2, &val3);
10260 if (!SWIG_IsOK(ecode3)) {
10261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10262 }
10263 arg3 = static_cast< int >(val3);
10264 }
10265 if (obj3) {
f20a2e1f 10266 {
554f62e9
RD
10267 arg4 = &temp4;
10268 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10269 }
554f62e9
RD
10270 }
10271 if (obj4) {
d55e5bfc 10272 {
554f62e9
RD
10273 arg5 = &temp5;
10274 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 10275 }
554f62e9
RD
10276 }
10277 if (obj5) {
d55e5bfc 10278 {
554f62e9
RD
10279 if (! PySequence_Check(obj5)) {
10280 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10281 SWIG_fail;
10282 }
10283 arg6 = new wxArrayString;
10284 temp6 = true;
10285 int i, len=PySequence_Length(obj5);
10286 for (i=0; i<len; i++) {
10287 PyObject* item = PySequence_GetItem(obj5, i);
10288 wxString* s = wxString_in_helper(item);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 arg6->Add(*s);
10291 delete s;
10292 Py_DECREF(item);
10293 }
d55e5bfc 10294 }
554f62e9
RD
10295 }
10296 if (obj6) {
10297 ecode7 = SWIG_AsVal_long(obj6, &val7);
10298 if (!SWIG_IsOK(ecode7)) {
10299 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10300 }
10301 arg7 = static_cast< long >(val7);
10302 }
10303 if (obj7) {
10304 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10305 if (!SWIG_IsOK(res8)) {
10306 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10307 }
554f62e9
RD
10308 if (!argp8) {
10309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10310 }
554f62e9
RD
10311 arg8 = reinterpret_cast< wxValidator * >(argp8);
10312 }
10313 if (obj8) {
d55e5bfc 10314 {
554f62e9
RD
10315 arg9 = wxString_in_helper(obj8);
10316 if (arg9 == NULL) SWIG_fail;
10317 temp9 = true;
d55e5bfc 10318 }
554f62e9
RD
10319 }
10320 {
10321 PyThreadState* __tstate = wxPyBeginAllowThreads();
10322 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10323 wxPyEndAllowThreads(__tstate);
10324 if (PyErr_Occurred()) SWIG_fail;
10325 }
10326 {
10327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10328 }
10329 {
10330 if (temp6) delete arg6;
10331 }
10332 {
10333 if (temp9)
10334 delete arg9;
10335 }
10336 return resultobj;
10337fail:
10338 {
10339 if (temp6) delete arg6;
10340 }
10341 {
10342 if (temp9)
10343 delete arg9;
10344 }
10345 return NULL;
10346}
10347
10348
10349SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10350 PyObject *resultobj = 0;
10351 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10352 unsigned int arg2 ;
554f62e9
RD
10353 bool result;
10354 void *argp1 = 0 ;
10355 int res1 = 0 ;
50f151d7 10356 unsigned int val2 ;
554f62e9
RD
10357 int ecode2 = 0 ;
10358 PyObject * obj0 = 0 ;
10359 PyObject * obj1 = 0 ;
10360 char * kwnames[] = {
10361 (char *) "self",(char *) "index", NULL
10362 };
10363
10364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10366 if (!SWIG_IsOK(res1)) {
10367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10368 }
10369 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10370 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 10371 if (!SWIG_IsOK(ecode2)) {
50f151d7 10372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 10373 }
50f151d7 10374 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
10375 {
10376 PyThreadState* __tstate = wxPyBeginAllowThreads();
10377 result = (bool)(arg1)->IsChecked(arg2);
10378 wxPyEndAllowThreads(__tstate);
10379 if (PyErr_Occurred()) SWIG_fail;
10380 }
10381 {
10382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10383 }
10384 return resultobj;
10385fail:
10386 return NULL;
10387}
10388
10389
10390SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10391 PyObject *resultobj = 0;
10392 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10393 unsigned int arg2 ;
554f62e9
RD
10394 int arg3 = (int) true ;
10395 void *argp1 = 0 ;
10396 int res1 = 0 ;
50f151d7 10397 unsigned int val2 ;
554f62e9
RD
10398 int ecode2 = 0 ;
10399 int val3 ;
10400 int ecode3 = 0 ;
10401 PyObject * obj0 = 0 ;
10402 PyObject * obj1 = 0 ;
10403 PyObject * obj2 = 0 ;
10404 char * kwnames[] = {
10405 (char *) "self",(char *) "index",(char *) "check", NULL
10406 };
10407
10408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10410 if (!SWIG_IsOK(res1)) {
10411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10412 }
10413 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10414 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 10415 if (!SWIG_IsOK(ecode2)) {
50f151d7 10416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 10417 }
50f151d7 10418 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
10419 if (obj2) {
10420 ecode3 = SWIG_AsVal_int(obj2, &val3);
10421 if (!SWIG_IsOK(ecode3)) {
10422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10423 }
10424 arg3 = static_cast< int >(val3);
10425 }
10426 {
10427 PyThreadState* __tstate = wxPyBeginAllowThreads();
10428 (arg1)->Check(arg2,arg3);
10429 wxPyEndAllowThreads(__tstate);
10430 if (PyErr_Occurred()) SWIG_fail;
10431 }
10432 resultobj = SWIG_Py_Void();
10433 return resultobj;
10434fail:
10435 return NULL;
d55e5bfc
RD
10436}
10437
10438
554f62e9
RD
10439SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10440 PyObject *resultobj = 0;
10441 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10442 int result;
10443 void *argp1 = 0 ;
10444 int res1 = 0 ;
10445 PyObject *swig_obj[1] ;
10446
10447 if (!args) SWIG_fail;
10448 swig_obj[0] = args;
10449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10450 if (!SWIG_IsOK(res1)) {
10451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10452 }
10453 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10454 {
10455 PyThreadState* __tstate = wxPyBeginAllowThreads();
10456 result = (int)(arg1)->GetItemHeight();
10457 wxPyEndAllowThreads(__tstate);
10458 if (PyErr_Occurred()) SWIG_fail;
10459 }
10460 resultobj = SWIG_From_int(static_cast< int >(result));
10461 return resultobj;
10462fail:
10463 return NULL;
d55e5bfc
RD
10464}
10465
10466
554f62e9
RD
10467SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10468 PyObject *obj;
10469 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10470 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10471 return SWIG_Py_Void();
d55e5bfc
RD
10472}
10473
554f62e9
RD
10474SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10475 return SWIG_Python_InitShadowInstance(args);
9d7dfdff
RD
10476}
10477
554f62e9
RD
10478SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10479 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10480 return 1;
f20a2e1f
RD
10481}
10482
10483
554f62e9
RD
10484SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10485 PyObject *pyobj = 0;
10486
10487 {
10488#if wxUSE_UNICODE
10489 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10490#else
10491 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10492#endif
10493 }
10494 return pyobj;
10495}
10496
10497
10498SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10499 PyObject *resultobj = 0;
10500 wxColour const &arg1_defvalue = wxNullColour ;
10501 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10502 wxColour const &arg2_defvalue = wxNullColour ;
10503 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10504 wxFont const &arg3_defvalue = wxNullFont ;
10505 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10506 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10507 wxTextAttr *result = 0 ;
10508 wxColour temp1 ;
10509 wxColour temp2 ;
10510 void *argp3 = 0 ;
10511 int res3 = 0 ;
10512 int val4 ;
10513 int ecode4 = 0 ;
10514 PyObject * obj0 = 0 ;
10515 PyObject * obj1 = 0 ;
10516 PyObject * obj2 = 0 ;
10517 PyObject * obj3 = 0 ;
10518 char * kwnames[] = {
10519 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10520 };
10521
10522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10523 if (obj0) {
d55e5bfc 10524 {
554f62e9
RD
10525 arg1 = &temp1;
10526 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 10527 }
554f62e9
RD
10528 }
10529 if (obj1) {
d55e5bfc 10530 {
554f62e9
RD
10531 arg2 = &temp2;
10532 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 10533 }
554f62e9
RD
10534 }
10535 if (obj2) {
10536 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10537 if (!SWIG_IsOK(res3)) {
10538 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10539 }
554f62e9
RD
10540 if (!argp3) {
10541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10542 }
10543 arg3 = reinterpret_cast< wxFont * >(argp3);
10544 }
10545 if (obj3) {
10546 ecode4 = SWIG_AsVal_int(obj3, &val4);
10547 if (!SWIG_IsOK(ecode4)) {
10548 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10549 }
10550 arg4 = static_cast< wxTextAttrAlignment >(val4);
10551 }
10552 {
10553 PyThreadState* __tstate = wxPyBeginAllowThreads();
10554 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10555 wxPyEndAllowThreads(__tstate);
10556 if (PyErr_Occurred()) SWIG_fail;
10557 }
10558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10559 return resultobj;
10560fail:
10561 return NULL;
d55e5bfc
RD
10562}
10563
10564
554f62e9
RD
10565SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10566 PyObject *resultobj = 0;
10567 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10568 void *argp1 = 0 ;
10569 int res1 = 0 ;
10570 PyObject *swig_obj[1] ;
10571
10572 if (!args) SWIG_fail;
10573 swig_obj[0] = args;
10574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10575 if (!SWIG_IsOK(res1)) {
10576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10577 }
10578 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10579 {
10580 PyThreadState* __tstate = wxPyBeginAllowThreads();
10581 delete arg1;
d55e5bfc 10582
554f62e9
RD
10583 wxPyEndAllowThreads(__tstate);
10584 if (PyErr_Occurred()) SWIG_fail;
10585 }
10586 resultobj = SWIG_Py_Void();
10587 return resultobj;
10588fail:
10589 return NULL;
d55e5bfc
RD
10590}
10591
10592
554f62e9
RD
10593SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10594 PyObject *resultobj = 0;
10595 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10596 void *argp1 = 0 ;
10597 int res1 = 0 ;
10598 PyObject *swig_obj[1] ;
10599
10600 if (!args) SWIG_fail;
10601 swig_obj[0] = args;
10602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10603 if (!SWIG_IsOK(res1)) {
10604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10605 }
10606 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10607 {
10608 PyThreadState* __tstate = wxPyBeginAllowThreads();
10609 (arg1)->Init();
10610 wxPyEndAllowThreads(__tstate);
10611 if (PyErr_Occurred()) SWIG_fail;
10612 }
10613 resultobj = SWIG_Py_Void();
10614 return resultobj;
10615fail:
10616 return NULL;
10617}
10618
10619
f460c29d
RD
10620SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10621 PyObject *resultobj = 0;
10622 wxTextAttr *arg1 = 0 ;
10623 wxTextAttr *arg2 = 0 ;
10624 wxTextAttr result;
10625 void *argp1 = 0 ;
10626 int res1 = 0 ;
10627 void *argp2 = 0 ;
10628 int res2 = 0 ;
10629 PyObject * obj0 = 0 ;
10630 PyObject * obj1 = 0 ;
10631 char * kwnames[] = {
10632 (char *) "base",(char *) "overlay", NULL
10633 };
10634
10635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10636 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10637 if (!SWIG_IsOK(res1)) {
10638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10639 }
10640 if (!argp1) {
10641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10642 }
10643 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10644 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10645 if (!SWIG_IsOK(res2)) {
10646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10647 }
10648 if (!argp2) {
10649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10650 }
10651 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10652 {
10653 PyThreadState* __tstate = wxPyBeginAllowThreads();
10654 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10655 wxPyEndAllowThreads(__tstate);
10656 if (PyErr_Occurred()) SWIG_fail;
10657 }
10658 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10659 return resultobj;
10660fail:
10661 return NULL;
10662}
10663
10664
554f62e9
RD
10665SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10666 PyObject *resultobj = 0;
10667 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10668 wxColour *arg2 = 0 ;
10669 void *argp1 = 0 ;
10670 int res1 = 0 ;
10671 wxColour temp2 ;
10672 PyObject * obj0 = 0 ;
10673 PyObject * obj1 = 0 ;
10674 char * kwnames[] = {
10675 (char *) "self",(char *) "colText", NULL
10676 };
10677
10678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10680 if (!SWIG_IsOK(res1)) {
10681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10682 }
10683 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10684 {
10685 arg2 = &temp2;
10686 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10687 }
10688 {
10689 PyThreadState* __tstate = wxPyBeginAllowThreads();
10690 (arg1)->SetTextColour((wxColour const &)*arg2);
10691 wxPyEndAllowThreads(__tstate);
10692 if (PyErr_Occurred()) SWIG_fail;
10693 }
10694 resultobj = SWIG_Py_Void();
10695 return resultobj;
10696fail:
10697 return NULL;
10698}
10699
10700
10701SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10702 PyObject *resultobj = 0;
10703 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10704 wxColour *arg2 = 0 ;
10705 void *argp1 = 0 ;
10706 int res1 = 0 ;
10707 wxColour temp2 ;
10708 PyObject * obj0 = 0 ;
10709 PyObject * obj1 = 0 ;
10710 char * kwnames[] = {
10711 (char *) "self",(char *) "colBack", NULL
10712 };
10713
10714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10716 if (!SWIG_IsOK(res1)) {
10717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10718 }
10719 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10720 {
10721 arg2 = &temp2;
10722 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10723 }
10724 {
10725 PyThreadState* __tstate = wxPyBeginAllowThreads();
10726 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10727 wxPyEndAllowThreads(__tstate);
10728 if (PyErr_Occurred()) SWIG_fail;
10729 }
10730 resultobj = SWIG_Py_Void();
10731 return resultobj;
10732fail:
10733 return NULL;
10734}
10735
10736
10737SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10738 PyObject *resultobj = 0;
10739 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10740 wxFont *arg2 = 0 ;
10741 long arg3 = (long) wxTEXT_ATTR_FONT ;
10742 void *argp1 = 0 ;
10743 int res1 = 0 ;
10744 void *argp2 = 0 ;
10745 int res2 = 0 ;
10746 long val3 ;
10747 int ecode3 = 0 ;
10748 PyObject * obj0 = 0 ;
10749 PyObject * obj1 = 0 ;
10750 PyObject * obj2 = 0 ;
10751 char * kwnames[] = {
10752 (char *) "self",(char *) "font",(char *) "flags", NULL
10753 };
10754
10755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10757 if (!SWIG_IsOK(res1)) {
10758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10759 }
10760 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10761 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10762 if (!SWIG_IsOK(res2)) {
10763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10764 }
10765 if (!argp2) {
10766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10767 }
10768 arg2 = reinterpret_cast< wxFont * >(argp2);
10769 if (obj2) {
10770 ecode3 = SWIG_AsVal_long(obj2, &val3);
10771 if (!SWIG_IsOK(ecode3)) {
10772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10773 }
10774 arg3 = static_cast< long >(val3);
10775 }
10776 {
10777 PyThreadState* __tstate = wxPyBeginAllowThreads();
10778 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10779 wxPyEndAllowThreads(__tstate);
10780 if (PyErr_Occurred()) SWIG_fail;
10781 }
10782 resultobj = SWIG_Py_Void();
10783 return resultobj;
10784fail:
10785 return NULL;
10786}
10787
10788
10789SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10790 PyObject *resultobj = 0;
10791 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10792 wxTextAttrAlignment arg2 ;
10793 void *argp1 = 0 ;
10794 int res1 = 0 ;
10795 int val2 ;
10796 int ecode2 = 0 ;
10797 PyObject * obj0 = 0 ;
10798 PyObject * obj1 = 0 ;
10799 char * kwnames[] = {
10800 (char *) "self",(char *) "alignment", NULL
10801 };
10802
10803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10805 if (!SWIG_IsOK(res1)) {
10806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10807 }
10808 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10809 ecode2 = SWIG_AsVal_int(obj1, &val2);
10810 if (!SWIG_IsOK(ecode2)) {
10811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10812 }
10813 arg2 = static_cast< wxTextAttrAlignment >(val2);
10814 {
10815 PyThreadState* __tstate = wxPyBeginAllowThreads();
10816 (arg1)->SetAlignment(arg2);
10817 wxPyEndAllowThreads(__tstate);
10818 if (PyErr_Occurred()) SWIG_fail;
10819 }
10820 resultobj = SWIG_Py_Void();
10821 return resultobj;
10822fail:
10823 return NULL;
10824}
10825
10826
10827SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10828 PyObject *resultobj = 0;
10829 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10830 wxArrayInt *arg2 = 0 ;
10831 void *argp1 = 0 ;
10832 int res1 = 0 ;
10833 bool temp2 = false ;
10834 PyObject * obj0 = 0 ;
10835 PyObject * obj1 = 0 ;
10836 char * kwnames[] = {
10837 (char *) "self",(char *) "tabs", NULL
10838 };
10839
10840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10842 if (!SWIG_IsOK(res1)) {
10843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10844 }
10845 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10846 {
10847 if (! PySequence_Check(obj1)) {
10848 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10849 SWIG_fail;
10850 }
10851 arg2 = new wxArrayInt;
10852 temp2 = true;
10853 int i, len=PySequence_Length(obj1);
10854 for (i=0; i<len; i++) {
10855 PyObject* item = PySequence_GetItem(obj1, i);
10856 PyObject* number = PyNumber_Int(item);
ec8a7755
RD
10857 if (!number) {
10858 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10859 SWIG_fail;
10860 }
554f62e9
RD
10861 arg2->Add(PyInt_AS_LONG(number));
10862 Py_DECREF(item);
10863 Py_DECREF(number);
d55e5bfc 10864 }
554f62e9
RD
10865 }
10866 {
10867 PyThreadState* __tstate = wxPyBeginAllowThreads();
10868 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10869 wxPyEndAllowThreads(__tstate);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 resultobj = SWIG_Py_Void();
10873 {
10874 if (temp2) delete arg2;
10875 }
10876 return resultobj;
10877fail:
10878 {
10879 if (temp2) delete arg2;
10880 }
10881 return NULL;
10882}
10883
10884
10885SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10886 PyObject *resultobj = 0;
10887 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10888 int arg2 ;
10889 int arg3 = (int) 0 ;
10890 void *argp1 = 0 ;
10891 int res1 = 0 ;
10892 int val2 ;
10893 int ecode2 = 0 ;
10894 int val3 ;
10895 int ecode3 = 0 ;
10896 PyObject * obj0 = 0 ;
10897 PyObject * obj1 = 0 ;
10898 PyObject * obj2 = 0 ;
10899 char * kwnames[] = {
10900 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10901 };
10902
10903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10905 if (!SWIG_IsOK(res1)) {
10906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10907 }
10908 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10909 ecode2 = SWIG_AsVal_int(obj1, &val2);
10910 if (!SWIG_IsOK(ecode2)) {
10911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10912 }
10913 arg2 = static_cast< int >(val2);
10914 if (obj2) {
10915 ecode3 = SWIG_AsVal_int(obj2, &val3);
10916 if (!SWIG_IsOK(ecode3)) {
10917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10918 }
10919 arg3 = static_cast< int >(val3);
10920 }
10921 {
10922 PyThreadState* __tstate = wxPyBeginAllowThreads();
10923 (arg1)->SetLeftIndent(arg2,arg3);
10924 wxPyEndAllowThreads(__tstate);
10925 if (PyErr_Occurred()) SWIG_fail;
10926 }
10927 resultobj = SWIG_Py_Void();
10928 return resultobj;
10929fail:
10930 return NULL;
10931}
10932
10933
10934SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10935 PyObject *resultobj = 0;
10936 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10937 int arg2 ;
10938 void *argp1 = 0 ;
10939 int res1 = 0 ;
10940 int val2 ;
10941 int ecode2 = 0 ;
10942 PyObject * obj0 = 0 ;
10943 PyObject * obj1 = 0 ;
10944 char * kwnames[] = {
10945 (char *) "self",(char *) "indent", NULL
10946 };
10947
10948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10950 if (!SWIG_IsOK(res1)) {
10951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10952 }
10953 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10954 ecode2 = SWIG_AsVal_int(obj1, &val2);
10955 if (!SWIG_IsOK(ecode2)) {
10956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10957 }
10958 arg2 = static_cast< int >(val2);
10959 {
10960 PyThreadState* __tstate = wxPyBeginAllowThreads();
10961 (arg1)->SetRightIndent(arg2);
10962 wxPyEndAllowThreads(__tstate);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 }
10965 resultobj = SWIG_Py_Void();
10966 return resultobj;
10967fail:
10968 return NULL;
10969}
10970
10971
10972SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10973 PyObject *resultobj = 0;
10974 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10975 long arg2 ;
10976 void *argp1 = 0 ;
10977 int res1 = 0 ;
10978 long val2 ;
10979 int ecode2 = 0 ;
10980 PyObject * obj0 = 0 ;
10981 PyObject * obj1 = 0 ;
10982 char * kwnames[] = {
10983 (char *) "self",(char *) "flags", NULL
10984 };
10985
10986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10988 if (!SWIG_IsOK(res1)) {
10989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10990 }
10991 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10992 ecode2 = SWIG_AsVal_long(obj1, &val2);
10993 if (!SWIG_IsOK(ecode2)) {
10994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10995 }
10996 arg2 = static_cast< long >(val2);
10997 {
10998 PyThreadState* __tstate = wxPyBeginAllowThreads();
10999 (arg1)->SetFlags(arg2);
11000 wxPyEndAllowThreads(__tstate);
11001 if (PyErr_Occurred()) SWIG_fail;
11002 }
11003 resultobj = SWIG_Py_Void();
11004 return resultobj;
11005fail:
11006 return NULL;
d55e5bfc
RD
11007}
11008
11009
554f62e9
RD
11010SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11011 PyObject *resultobj = 0;
11012 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11013 bool result;
11014 void *argp1 = 0 ;
11015 int res1 = 0 ;
11016 PyObject *swig_obj[1] ;
11017
11018 if (!args) SWIG_fail;
11019 swig_obj[0] = args;
11020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11021 if (!SWIG_IsOK(res1)) {
11022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11023 }
11024 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11025 {
11026 PyThreadState* __tstate = wxPyBeginAllowThreads();
11027 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
11028 wxPyEndAllowThreads(__tstate);
11029 if (PyErr_Occurred()) SWIG_fail;
11030 }
11031 {
11032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11033 }
11034 return resultobj;
11035fail:
11036 return NULL;
d55e5bfc
RD
11037}
11038
11039
554f62e9
RD
11040SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11041 PyObject *resultobj = 0;
11042 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11043 bool result;
11044 void *argp1 = 0 ;
11045 int res1 = 0 ;
11046 PyObject *swig_obj[1] ;
11047
11048 if (!args) SWIG_fail;
11049 swig_obj[0] = args;
11050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11051 if (!SWIG_IsOK(res1)) {
11052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11053 }
11054 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11055 {
11056 PyThreadState* __tstate = wxPyBeginAllowThreads();
11057 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11058 wxPyEndAllowThreads(__tstate);
11059 if (PyErr_Occurred()) SWIG_fail;
11060 }
11061 {
11062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11063 }
11064 return resultobj;
11065fail:
11066 return NULL;
d55e5bfc
RD
11067}
11068
11069
554f62e9
RD
11070SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11071 PyObject *resultobj = 0;
11072 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11073 bool result;
11074 void *argp1 = 0 ;
11075 int res1 = 0 ;
11076 PyObject *swig_obj[1] ;
11077
11078 if (!args) SWIG_fail;
11079 swig_obj[0] = args;
11080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11081 if (!SWIG_IsOK(res1)) {
11082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11083 }
11084 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11085 {
11086 PyThreadState* __tstate = wxPyBeginAllowThreads();
11087 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11088 wxPyEndAllowThreads(__tstate);
11089 if (PyErr_Occurred()) SWIG_fail;
11090 }
11091 {
11092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11093 }
11094 return resultobj;
11095fail:
11096 return NULL;
d55e5bfc
RD
11097}
11098
11099
554f62e9
RD
11100SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11101 PyObject *resultobj = 0;
11102 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11103 bool result;
11104 void *argp1 = 0 ;
11105 int res1 = 0 ;
11106 PyObject *swig_obj[1] ;
11107
11108 if (!args) SWIG_fail;
11109 swig_obj[0] = args;
11110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11111 if (!SWIG_IsOK(res1)) {
11112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11113 }
11114 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11115 {
11116 PyThreadState* __tstate = wxPyBeginAllowThreads();
11117 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11118 wxPyEndAllowThreads(__tstate);
11119 if (PyErr_Occurred()) SWIG_fail;
11120 }
11121 {
11122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11123 }
11124 return resultobj;
11125fail:
11126 return NULL;
f20a2e1f
RD
11127}
11128
11129
554f62e9
RD
11130SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11131 PyObject *resultobj = 0;
11132 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11133 bool result;
11134 void *argp1 = 0 ;
11135 int res1 = 0 ;
11136 PyObject *swig_obj[1] ;
11137
11138 if (!args) SWIG_fail;
11139 swig_obj[0] = args;
11140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11141 if (!SWIG_IsOK(res1)) {
11142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11143 }
11144 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11145 {
11146 PyThreadState* __tstate = wxPyBeginAllowThreads();
11147 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11148 wxPyEndAllowThreads(__tstate);
11149 if (PyErr_Occurred()) SWIG_fail;
11150 }
11151 {
11152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11153 }
11154 return resultobj;
11155fail:
11156 return NULL;
d55e5bfc
RD
11157}
11158
11159
554f62e9
RD
11160SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11161 PyObject *resultobj = 0;
11162 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11163 bool result;
11164 void *argp1 = 0 ;
11165 int res1 = 0 ;
11166 PyObject *swig_obj[1] ;
11167
11168 if (!args) SWIG_fail;
11169 swig_obj[0] = args;
11170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11171 if (!SWIG_IsOK(res1)) {
11172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11173 }
11174 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11175 {
11176 PyThreadState* __tstate = wxPyBeginAllowThreads();
11177 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11178 wxPyEndAllowThreads(__tstate);
11179 if (PyErr_Occurred()) SWIG_fail;
11180 }
11181 {
11182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11183 }
11184 return resultobj;
11185fail:
11186 return NULL;
d55e5bfc
RD
11187}
11188
11189
554f62e9
RD
11190SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11191 PyObject *resultobj = 0;
11192 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11193 bool result;
11194 void *argp1 = 0 ;
11195 int res1 = 0 ;
11196 PyObject *swig_obj[1] ;
11197
11198 if (!args) SWIG_fail;
11199 swig_obj[0] = args;
11200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11201 if (!SWIG_IsOK(res1)) {
11202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11203 }
11204 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11205 {
11206 PyThreadState* __tstate = wxPyBeginAllowThreads();
11207 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11208 wxPyEndAllowThreads(__tstate);
11209 if (PyErr_Occurred()) SWIG_fail;
11210 }
11211 {
11212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11213 }
11214 return resultobj;
11215fail:
11216 return NULL;
11217}
11218
11219
11220SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11221 PyObject *resultobj = 0;
11222 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11223 long arg2 ;
11224 bool result;
11225 void *argp1 = 0 ;
11226 int res1 = 0 ;
11227 long val2 ;
11228 int ecode2 = 0 ;
11229 PyObject * obj0 = 0 ;
11230 PyObject * obj1 = 0 ;
11231 char * kwnames[] = {
11232 (char *) "self",(char *) "flag", NULL
11233 };
11234
11235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11237 if (!SWIG_IsOK(res1)) {
11238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11239 }
11240 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11241 ecode2 = SWIG_AsVal_long(obj1, &val2);
11242 if (!SWIG_IsOK(ecode2)) {
11243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11244 }
11245 arg2 = static_cast< long >(val2);
11246 {
11247 PyThreadState* __tstate = wxPyBeginAllowThreads();
11248 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11249 wxPyEndAllowThreads(__tstate);
11250 if (PyErr_Occurred()) SWIG_fail;
11251 }
11252 {
11253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11254 }
11255 return resultobj;
11256fail:
11257 return NULL;
d55e5bfc
RD
11258}
11259
11260
554f62e9
RD
11261SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11262 PyObject *resultobj = 0;
11263 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11264 wxColour *result = 0 ;
11265 void *argp1 = 0 ;
11266 int res1 = 0 ;
11267 PyObject *swig_obj[1] ;
11268
11269 if (!args) SWIG_fail;
11270 swig_obj[0] = args;
11271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11272 if (!SWIG_IsOK(res1)) {
11273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11274 }
11275 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11276 {
11277 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11278 {
554f62e9
RD
11279 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11280 result = (wxColour *) &_result_ref;
d55e5bfc 11281 }
554f62e9
RD
11282 wxPyEndAllowThreads(__tstate);
11283 if (PyErr_Occurred()) SWIG_fail;
11284 }
11285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11286 return resultobj;
11287fail:
11288 return NULL;
d55e5bfc
RD
11289}
11290
11291
554f62e9
RD
11292SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11293 PyObject *resultobj = 0;
11294 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11295 wxColour *result = 0 ;
11296 void *argp1 = 0 ;
11297 int res1 = 0 ;
11298 PyObject *swig_obj[1] ;
11299
11300 if (!args) SWIG_fail;
11301 swig_obj[0] = args;
11302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11303 if (!SWIG_IsOK(res1)) {
11304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11305 }
11306 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11307 {
11308 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11309 {
554f62e9
RD
11310 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11311 result = (wxColour *) &_result_ref;
d55e5bfc 11312 }
554f62e9
RD
11313 wxPyEndAllowThreads(__tstate);
11314 if (PyErr_Occurred()) SWIG_fail;
11315 }
11316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11317 return resultobj;
11318fail:
11319 return NULL;
d55e5bfc
RD
11320}
11321
11322
554f62e9
RD
11323SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11324 PyObject *resultobj = 0;
11325 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11326 wxFont *result = 0 ;
11327 void *argp1 = 0 ;
11328 int res1 = 0 ;
11329 PyObject *swig_obj[1] ;
11330
11331 if (!args) SWIG_fail;
11332 swig_obj[0] = args;
11333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11334 if (!SWIG_IsOK(res1)) {
11335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11336 }
11337 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11338 {
11339 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11340 {
554f62e9
RD
11341 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11342 result = (wxFont *) &_result_ref;
d55e5bfc 11343 }
554f62e9
RD
11344 wxPyEndAllowThreads(__tstate);
11345 if (PyErr_Occurred()) SWIG_fail;
11346 }
11347 {
11348 wxFont* resultptr = new wxFont(*result);
11349 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11350 }
11351 return resultobj;
11352fail:
11353 return NULL;
d55e5bfc
RD
11354}
11355
11356
554f62e9
RD
11357SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11358 PyObject *resultobj = 0;
11359 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11360 wxTextAttrAlignment result;
11361 void *argp1 = 0 ;
11362 int res1 = 0 ;
11363 PyObject *swig_obj[1] ;
11364
11365 if (!args) SWIG_fail;
11366 swig_obj[0] = args;
11367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11368 if (!SWIG_IsOK(res1)) {
11369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11370 }
11371 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11372 {
11373 PyThreadState* __tstate = wxPyBeginAllowThreads();
11374 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11375 wxPyEndAllowThreads(__tstate);
11376 if (PyErr_Occurred()) SWIG_fail;
11377 }
11378 resultobj = SWIG_From_int(static_cast< int >(result));
11379 return resultobj;
11380fail:
11381 return NULL;
d55e5bfc
RD
11382}
11383
11384
554f62e9
RD
11385SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11386 PyObject *resultobj = 0;
11387 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11388 wxArrayInt *result = 0 ;
11389 void *argp1 = 0 ;
11390 int res1 = 0 ;
11391 PyObject *swig_obj[1] ;
11392
11393 if (!args) SWIG_fail;
11394 swig_obj[0] = args;
11395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11396 if (!SWIG_IsOK(res1)) {
11397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11398 }
11399 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11400 {
11401 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11402 {
554f62e9
RD
11403 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11404 result = (wxArrayInt *) &_result_ref;
d55e5bfc 11405 }
554f62e9
RD
11406 wxPyEndAllowThreads(__tstate);
11407 if (PyErr_Occurred()) SWIG_fail;
11408 }
11409 {
b39fe951 11410 resultobj = wxArrayInt2PyList_helper(*result);
554f62e9
RD
11411 }
11412 return resultobj;
11413fail:
11414 return NULL;
d55e5bfc
RD
11415}
11416
11417
554f62e9
RD
11418SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11419 PyObject *resultobj = 0;
11420 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11421 long result;
11422 void *argp1 = 0 ;
11423 int res1 = 0 ;
11424 PyObject *swig_obj[1] ;
11425
11426 if (!args) SWIG_fail;
11427 swig_obj[0] = args;
11428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11429 if (!SWIG_IsOK(res1)) {
11430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11431 }
11432 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11433 {
11434 PyThreadState* __tstate = wxPyBeginAllowThreads();
11435 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11436 wxPyEndAllowThreads(__tstate);
11437 if (PyErr_Occurred()) SWIG_fail;
11438 }
11439 resultobj = SWIG_From_long(static_cast< long >(result));
11440 return resultobj;
11441fail:
11442 return NULL;
d55e5bfc
RD
11443}
11444
11445
554f62e9
RD
11446SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11447 PyObject *resultobj = 0;
11448 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11449 long result;
11450 void *argp1 = 0 ;
11451 int res1 = 0 ;
11452 PyObject *swig_obj[1] ;
11453
11454 if (!args) SWIG_fail;
11455 swig_obj[0] = args;
11456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11457 if (!SWIG_IsOK(res1)) {
11458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11459 }
11460 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11461 {
11462 PyThreadState* __tstate = wxPyBeginAllowThreads();
11463 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11464 wxPyEndAllowThreads(__tstate);
11465 if (PyErr_Occurred()) SWIG_fail;
11466 }
11467 resultobj = SWIG_From_long(static_cast< long >(result));
11468 return resultobj;
11469fail:
11470 return NULL;
d55e5bfc
RD
11471}
11472
11473
554f62e9
RD
11474SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11475 PyObject *resultobj = 0;
11476 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11477 long result;
11478 void *argp1 = 0 ;
11479 int res1 = 0 ;
11480 PyObject *swig_obj[1] ;
11481
11482 if (!args) SWIG_fail;
11483 swig_obj[0] = args;
11484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11485 if (!SWIG_IsOK(res1)) {
11486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11487 }
11488 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11489 {
11490 PyThreadState* __tstate = wxPyBeginAllowThreads();
11491 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11492 wxPyEndAllowThreads(__tstate);
11493 if (PyErr_Occurred()) SWIG_fail;
11494 }
11495 resultobj = SWIG_From_long(static_cast< long >(result));
11496 return resultobj;
11497fail:
11498 return NULL;
d55e5bfc
RD
11499}
11500
11501
554f62e9
RD
11502SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11503 PyObject *resultobj = 0;
11504 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11505 long result;
11506 void *argp1 = 0 ;
11507 int res1 = 0 ;
11508 PyObject *swig_obj[1] ;
11509
11510 if (!args) SWIG_fail;
11511 swig_obj[0] = args;
11512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11513 if (!SWIG_IsOK(res1)) {
11514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11515 }
11516 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11517 {
11518 PyThreadState* __tstate = wxPyBeginAllowThreads();
11519 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11520 wxPyEndAllowThreads(__tstate);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 resultobj = SWIG_From_long(static_cast< long >(result));
11524 return resultobj;
11525fail:
11526 return NULL;
d55e5bfc
RD
11527}
11528
11529
554f62e9
RD
11530SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11531 PyObject *resultobj = 0;
11532 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11533 bool result;
11534 void *argp1 = 0 ;
11535 int res1 = 0 ;
11536 PyObject *swig_obj[1] ;
11537
11538 if (!args) SWIG_fail;
11539 swig_obj[0] = args;
11540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11541 if (!SWIG_IsOK(res1)) {
11542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11543 }
11544 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11545 {
11546 PyThreadState* __tstate = wxPyBeginAllowThreads();
11547 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11548 wxPyEndAllowThreads(__tstate);
11549 if (PyErr_Occurred()) SWIG_fail;
11550 }
11551 {
11552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11553 }
11554 return resultobj;
11555fail:
11556 return NULL;
11557}
11558
11559
11560SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11561 PyObject *resultobj = 0;
11562 wxTextAttr *arg1 = 0 ;
11563 wxTextAttr *arg2 = 0 ;
11564 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11565 wxTextAttr result;
11566 void *argp1 = 0 ;
11567 int res1 = 0 ;
11568 void *argp2 = 0 ;
11569 int res2 = 0 ;
11570 void *argp3 = 0 ;
11571 int res3 = 0 ;
11572 PyObject * obj0 = 0 ;
11573 PyObject * obj1 = 0 ;
11574 PyObject * obj2 = 0 ;
11575 char * kwnames[] = {
11576 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11577 };
11578
11579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11580 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11581 if (!SWIG_IsOK(res1)) {
11582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11583 }
11584 if (!argp1) {
11585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11586 }
11587 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11588 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11589 if (!SWIG_IsOK(res2)) {
11590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11591 }
11592 if (!argp2) {
11593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11594 }
11595 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11596 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11597 if (!SWIG_IsOK(res3)) {
11598 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11599 }
11600 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11601 {
11602 PyThreadState* __tstate = wxPyBeginAllowThreads();
11603 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11604 wxPyEndAllowThreads(__tstate);
11605 if (PyErr_Occurred()) SWIG_fail;
11606 }
11607 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11608 return resultobj;
11609fail:
11610 return NULL;
11611}
11612
11613
11614SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11615 PyObject *obj;
11616 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11617 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11618 return SWIG_Py_Void();
11619}
11620
11621SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11622 return SWIG_Python_InitShadowInstance(args);
11623}
11624
11625SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11626 PyObject *resultobj = 0;
11627 wxWindow *arg1 = (wxWindow *) 0 ;
11628 int arg2 = (int) -1 ;
11629 wxString const &arg3_defvalue = wxPyEmptyString ;
11630 wxString *arg3 = (wxString *) &arg3_defvalue ;
11631 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11632 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11633 wxSize const &arg5_defvalue = wxDefaultSize ;
11634 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11635 long arg6 = (long) 0 ;
11636 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11637 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11638 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11639 wxString *arg8 = (wxString *) &arg8_defvalue ;
11640 wxTextCtrl *result = 0 ;
11641 void *argp1 = 0 ;
11642 int res1 = 0 ;
11643 int val2 ;
11644 int ecode2 = 0 ;
11645 bool temp3 = false ;
11646 wxPoint temp4 ;
11647 wxSize temp5 ;
11648 long val6 ;
11649 int ecode6 = 0 ;
11650 void *argp7 = 0 ;
11651 int res7 = 0 ;
11652 bool temp8 = false ;
11653 PyObject * obj0 = 0 ;
11654 PyObject * obj1 = 0 ;
11655 PyObject * obj2 = 0 ;
11656 PyObject * obj3 = 0 ;
11657 PyObject * obj4 = 0 ;
11658 PyObject * obj5 = 0 ;
11659 PyObject * obj6 = 0 ;
11660 PyObject * obj7 = 0 ;
11661 char * kwnames[] = {
11662 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11663 };
11664
11665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11667 if (!SWIG_IsOK(res1)) {
11668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11669 }
11670 arg1 = reinterpret_cast< wxWindow * >(argp1);
11671 if (obj1) {
11672 ecode2 = SWIG_AsVal_int(obj1, &val2);
11673 if (!SWIG_IsOK(ecode2)) {
11674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11675 }
11676 arg2 = static_cast< int >(val2);
11677 }
11678 if (obj2) {
d55e5bfc 11679 {
554f62e9
RD
11680 arg3 = wxString_in_helper(obj2);
11681 if (arg3 == NULL) SWIG_fail;
11682 temp3 = true;
d55e5bfc 11683 }
554f62e9
RD
11684 }
11685 if (obj3) {
d55e5bfc 11686 {
554f62e9
RD
11687 arg4 = &temp4;
11688 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 11689 }
554f62e9
RD
11690 }
11691 if (obj4) {
d55e5bfc 11692 {
554f62e9
RD
11693 arg5 = &temp5;
11694 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11695 }
554f62e9
RD
11696 }
11697 if (obj5) {
11698 ecode6 = SWIG_AsVal_long(obj5, &val6);
11699 if (!SWIG_IsOK(ecode6)) {
11700 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11701 }
11702 arg6 = static_cast< long >(val6);
11703 }
11704 if (obj6) {
11705 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11706 if (!SWIG_IsOK(res7)) {
11707 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11708 }
554f62e9
RD
11709 if (!argp7) {
11710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 11711 }
554f62e9
RD
11712 arg7 = reinterpret_cast< wxValidator * >(argp7);
11713 }
11714 if (obj7) {
d55e5bfc 11715 {
554f62e9
RD
11716 arg8 = wxString_in_helper(obj7);
11717 if (arg8 == NULL) SWIG_fail;
11718 temp8 = true;
d55e5bfc 11719 }
554f62e9
RD
11720 }
11721 {
11722 if (!wxPyCheckForApp()) SWIG_fail;
11723 PyThreadState* __tstate = wxPyBeginAllowThreads();
11724 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11725 wxPyEndAllowThreads(__tstate);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 }
11728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11729 {
11730 if (temp3)
11731 delete arg3;
11732 }
11733 {
11734 if (temp8)
11735 delete arg8;
11736 }
11737 return resultobj;
11738fail:
11739 {
11740 if (temp3)
11741 delete arg3;
11742 }
11743 {
11744 if (temp8)
11745 delete arg8;
11746 }
11747 return NULL;
d55e5bfc
RD
11748}
11749
11750
554f62e9
RD
11751SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11752 PyObject *resultobj = 0;
11753 wxTextCtrl *result = 0 ;
11754
11755 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11756 {
11757 if (!wxPyCheckForApp()) SWIG_fail;
11758 PyThreadState* __tstate = wxPyBeginAllowThreads();
11759 result = (wxTextCtrl *)new wxTextCtrl();
11760 wxPyEndAllowThreads(__tstate);
11761 if (PyErr_Occurred()) SWIG_fail;
11762 }
11763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11764 return resultobj;
11765fail:
11766 return NULL;
11767}
11768
11769
11770SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11771 PyObject *resultobj = 0;
11772 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11773 wxWindow *arg2 = (wxWindow *) 0 ;
11774 int arg3 = (int) -1 ;
11775 wxString const &arg4_defvalue = wxPyEmptyString ;
11776 wxString *arg4 = (wxString *) &arg4_defvalue ;
11777 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11778 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11779 wxSize const &arg6_defvalue = wxDefaultSize ;
11780 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11781 long arg7 = (long) 0 ;
11782 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11783 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11784 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11785 wxString *arg9 = (wxString *) &arg9_defvalue ;
11786 bool result;
11787 void *argp1 = 0 ;
11788 int res1 = 0 ;
11789 void *argp2 = 0 ;
11790 int res2 = 0 ;
11791 int val3 ;
11792 int ecode3 = 0 ;
11793 bool temp4 = false ;
11794 wxPoint temp5 ;
11795 wxSize temp6 ;
11796 long val7 ;
11797 int ecode7 = 0 ;
11798 void *argp8 = 0 ;
11799 int res8 = 0 ;
11800 bool temp9 = false ;
11801 PyObject * obj0 = 0 ;
11802 PyObject * obj1 = 0 ;
11803 PyObject * obj2 = 0 ;
11804 PyObject * obj3 = 0 ;
11805 PyObject * obj4 = 0 ;
11806 PyObject * obj5 = 0 ;
11807 PyObject * obj6 = 0 ;
11808 PyObject * obj7 = 0 ;
11809 PyObject * obj8 = 0 ;
11810 char * kwnames[] = {
11811 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11812 };
11813
11814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11816 if (!SWIG_IsOK(res1)) {
11817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11818 }
11819 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11820 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11821 if (!SWIG_IsOK(res2)) {
11822 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11823 }
11824 arg2 = reinterpret_cast< wxWindow * >(argp2);
11825 if (obj2) {
11826 ecode3 = SWIG_AsVal_int(obj2, &val3);
11827 if (!SWIG_IsOK(ecode3)) {
11828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11829 }
11830 arg3 = static_cast< int >(val3);
11831 }
11832 if (obj3) {
d55e5bfc 11833 {
554f62e9
RD
11834 arg4 = wxString_in_helper(obj3);
11835 if (arg4 == NULL) SWIG_fail;
11836 temp4 = true;
d55e5bfc 11837 }
554f62e9
RD
11838 }
11839 if (obj4) {
d55e5bfc 11840 {
554f62e9
RD
11841 arg5 = &temp5;
11842 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11843 }
554f62e9
RD
11844 }
11845 if (obj5) {
d55e5bfc 11846 {
554f62e9
RD
11847 arg6 = &temp6;
11848 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 11849 }
554f62e9
RD
11850 }
11851 if (obj6) {
11852 ecode7 = SWIG_AsVal_long(obj6, &val7);
11853 if (!SWIG_IsOK(ecode7)) {
11854 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11855 }
11856 arg7 = static_cast< long >(val7);
11857 }
11858 if (obj7) {
11859 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11860 if (!SWIG_IsOK(res8)) {
11861 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 11862 }
554f62e9
RD
11863 if (!argp8) {
11864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 11865 }
554f62e9
RD
11866 arg8 = reinterpret_cast< wxValidator * >(argp8);
11867 }
11868 if (obj8) {
d55e5bfc 11869 {
554f62e9
RD
11870 arg9 = wxString_in_helper(obj8);
11871 if (arg9 == NULL) SWIG_fail;
11872 temp9 = true;
d55e5bfc 11873 }
554f62e9
RD
11874 }
11875 {
11876 PyThreadState* __tstate = wxPyBeginAllowThreads();
11877 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11878 wxPyEndAllowThreads(__tstate);
11879 if (PyErr_Occurred()) SWIG_fail;
11880 }
11881 {
11882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11883 }
11884 {
11885 if (temp4)
11886 delete arg4;
11887 }
11888 {
11889 if (temp9)
11890 delete arg9;
11891 }
11892 return resultobj;
11893fail:
11894 {
11895 if (temp4)
11896 delete arg4;
11897 }
11898 {
11899 if (temp9)
11900 delete arg9;
11901 }
11902 return NULL;
d55e5bfc
RD
11903}
11904
11905
554f62e9
RD
11906SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11907 PyObject *resultobj = 0;
11908 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11909 wxString result;
11910 void *argp1 = 0 ;
11911 int res1 = 0 ;
11912 PyObject *swig_obj[1] ;
11913
11914 if (!args) SWIG_fail;
11915 swig_obj[0] = args;
11916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11917 if (!SWIG_IsOK(res1)) {
11918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11919 }
11920 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11921 {
11922 PyThreadState* __tstate = wxPyBeginAllowThreads();
11923 result = ((wxTextCtrl const *)arg1)->GetValue();
11924 wxPyEndAllowThreads(__tstate);
11925 if (PyErr_Occurred()) SWIG_fail;
11926 }
11927 {
11928#if wxUSE_UNICODE
11929 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11930#else
11931 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11932#endif
11933 }
11934 return resultobj;
11935fail:
11936 return NULL;
11937}
11938
11939
11940SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11941 PyObject *resultobj = 0;
11942 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11943 wxString *arg2 = 0 ;
11944 void *argp1 = 0 ;
11945 int res1 = 0 ;
11946 bool temp2 = false ;
11947 PyObject * obj0 = 0 ;
11948 PyObject * obj1 = 0 ;
11949 char * kwnames[] = {
11950 (char *) "self",(char *) "value", NULL
11951 };
11952
11953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11955 if (!SWIG_IsOK(res1)) {
11956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11957 }
11958 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11959 {
11960 arg2 = wxString_in_helper(obj1);
11961 if (arg2 == NULL) SWIG_fail;
11962 temp2 = true;
11963 }
11964 {
11965 PyThreadState* __tstate = wxPyBeginAllowThreads();
11966 (arg1)->SetValue((wxString const &)*arg2);
11967 wxPyEndAllowThreads(__tstate);
11968 if (PyErr_Occurred()) SWIG_fail;
11969 }
11970 resultobj = SWIG_Py_Void();
11971 {
11972 if (temp2)
11973 delete arg2;
11974 }
11975 return resultobj;
11976fail:
11977 {
11978 if (temp2)
11979 delete arg2;
11980 }
11981 return NULL;
11982}
11983
11984
b39fe951
RD
11985SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11986 PyObject *resultobj = 0;
11987 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11988 bool result;
11989 void *argp1 = 0 ;
11990 int res1 = 0 ;
11991 PyObject *swig_obj[1] ;
11992
11993 if (!args) SWIG_fail;
11994 swig_obj[0] = args;
11995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11996 if (!SWIG_IsOK(res1)) {
11997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11998 }
11999 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12000 {
12001 PyThreadState* __tstate = wxPyBeginAllowThreads();
12002 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
12003 wxPyEndAllowThreads(__tstate);
12004 if (PyErr_Occurred()) SWIG_fail;
12005 }
12006 {
12007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12008 }
12009 return resultobj;
12010fail:
12011 return NULL;
12012}
12013
12014
12015SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12016 PyObject *resultobj = 0;
12017 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12018 wxString *arg2 = 0 ;
12019 void *argp1 = 0 ;
12020 int res1 = 0 ;
12021 bool temp2 = false ;
12022 PyObject * obj0 = 0 ;
12023 PyObject * obj1 = 0 ;
12024 char * kwnames[] = {
12025 (char *) "self",(char *) "value", NULL
12026 };
12027
12028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
12029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12030 if (!SWIG_IsOK(res1)) {
12031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12032 }
12033 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12034 {
12035 arg2 = wxString_in_helper(obj1);
12036 if (arg2 == NULL) SWIG_fail;
12037 temp2 = true;
12038 }
12039 {
12040 PyThreadState* __tstate = wxPyBeginAllowThreads();
12041 (arg1)->ChangeValue((wxString const &)*arg2);
12042 wxPyEndAllowThreads(__tstate);
12043 if (PyErr_Occurred()) SWIG_fail;
12044 }
12045 resultobj = SWIG_Py_Void();
12046 {
12047 if (temp2)
12048 delete arg2;
12049 }
12050 return resultobj;
12051fail:
12052 {
12053 if (temp2)
12054 delete arg2;
12055 }
12056 return NULL;
12057}
12058
12059
554f62e9
RD
12060SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12061 PyObject *resultobj = 0;
12062 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12063 long arg2 ;
12064 long arg3 ;
12065 wxString result;
12066 void *argp1 = 0 ;
12067 int res1 = 0 ;
12068 long val2 ;
12069 int ecode2 = 0 ;
12070 long val3 ;
12071 int ecode3 = 0 ;
12072 PyObject * obj0 = 0 ;
12073 PyObject * obj1 = 0 ;
12074 PyObject * obj2 = 0 ;
12075 char * kwnames[] = {
f460c29d 12076 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
12077 };
12078
12079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12081 if (!SWIG_IsOK(res1)) {
12082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12083 }
12084 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12085 ecode2 = SWIG_AsVal_long(obj1, &val2);
12086 if (!SWIG_IsOK(ecode2)) {
12087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12088 }
12089 arg2 = static_cast< long >(val2);
12090 ecode3 = SWIG_AsVal_long(obj2, &val3);
12091 if (!SWIG_IsOK(ecode3)) {
12092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12093 }
12094 arg3 = static_cast< long >(val3);
12095 {
12096 PyThreadState* __tstate = wxPyBeginAllowThreads();
12097 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12098 wxPyEndAllowThreads(__tstate);
12099 if (PyErr_Occurred()) SWIG_fail;
12100 }
12101 {
12102#if wxUSE_UNICODE
12103 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12104#else
12105 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12106#endif
12107 }
12108 return resultobj;
12109fail:
12110 return NULL;
12111}
12112
12113
12114SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12115 PyObject *resultobj = 0;
12116 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12117 long arg2 ;
12118 int result;
12119 void *argp1 = 0 ;
12120 int res1 = 0 ;
12121 long val2 ;
12122 int ecode2 = 0 ;
12123 PyObject * obj0 = 0 ;
12124 PyObject * obj1 = 0 ;
12125 char * kwnames[] = {
12126 (char *) "self",(char *) "lineNo", NULL
12127 };
12128
12129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12131 if (!SWIG_IsOK(res1)) {
12132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12133 }
12134 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12135 ecode2 = SWIG_AsVal_long(obj1, &val2);
12136 if (!SWIG_IsOK(ecode2)) {
12137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12138 }
12139 arg2 = static_cast< long >(val2);
12140 {
12141 PyThreadState* __tstate = wxPyBeginAllowThreads();
12142 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12143 wxPyEndAllowThreads(__tstate);
12144 if (PyErr_Occurred()) SWIG_fail;
12145 }
12146 resultobj = SWIG_From_int(static_cast< int >(result));
12147 return resultobj;
12148fail:
12149 return NULL;
12150}
12151
12152
12153SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12154 PyObject *resultobj = 0;
12155 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12156 long arg2 ;
12157 wxString result;
12158 void *argp1 = 0 ;
12159 int res1 = 0 ;
12160 long val2 ;
12161 int ecode2 = 0 ;
12162 PyObject * obj0 = 0 ;
12163 PyObject * obj1 = 0 ;
12164 char * kwnames[] = {
12165 (char *) "self",(char *) "lineNo", NULL
12166 };
12167
12168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12170 if (!SWIG_IsOK(res1)) {
12171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12172 }
12173 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12174 ecode2 = SWIG_AsVal_long(obj1, &val2);
12175 if (!SWIG_IsOK(ecode2)) {
12176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12177 }
12178 arg2 = static_cast< long >(val2);
12179 {
12180 PyThreadState* __tstate = wxPyBeginAllowThreads();
12181 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12182 wxPyEndAllowThreads(__tstate);
12183 if (PyErr_Occurred()) SWIG_fail;
12184 }
12185 {
12186#if wxUSE_UNICODE
12187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12188#else
12189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12190#endif
12191 }
12192 return resultobj;
12193fail:
12194 return NULL;
d55e5bfc
RD
12195}
12196
12197
554f62e9
RD
12198SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12199 PyObject *resultobj = 0;
12200 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12201 int result;
12202 void *argp1 = 0 ;
12203 int res1 = 0 ;
12204 PyObject *swig_obj[1] ;
12205
12206 if (!args) SWIG_fail;
12207 swig_obj[0] = args;
12208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12209 if (!SWIG_IsOK(res1)) {
12210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12211 }
12212 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12213 {
12214 PyThreadState* __tstate = wxPyBeginAllowThreads();
12215 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12216 wxPyEndAllowThreads(__tstate);
12217 if (PyErr_Occurred()) SWIG_fail;
12218 }
12219 resultobj = SWIG_From_int(static_cast< int >(result));
12220 return resultobj;
12221fail:
12222 return NULL;
d55e5bfc
RD
12223}
12224
12225
554f62e9
RD
12226SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12227 PyObject *resultobj = 0;
12228 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12229 bool result;
12230 void *argp1 = 0 ;
12231 int res1 = 0 ;
12232 PyObject *swig_obj[1] ;
12233
12234 if (!args) SWIG_fail;
12235 swig_obj[0] = args;
12236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12237 if (!SWIG_IsOK(res1)) {
12238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12239 }
12240 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12241 {
12242 PyThreadState* __tstate = wxPyBeginAllowThreads();
12243 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12244 wxPyEndAllowThreads(__tstate);
12245 if (PyErr_Occurred()) SWIG_fail;
12246 }
12247 {
12248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12249 }
12250 return resultobj;
12251fail:
12252 return NULL;
d55e5bfc
RD
12253}
12254
12255
554f62e9
RD
12256SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12257 PyObject *resultobj = 0;
12258 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12259 bool result;
12260 void *argp1 = 0 ;
12261 int res1 = 0 ;
12262 PyObject *swig_obj[1] ;
12263
12264 if (!args) SWIG_fail;
12265 swig_obj[0] = args;
12266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12267 if (!SWIG_IsOK(res1)) {
12268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12269 }
12270 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12271 {
12272 PyThreadState* __tstate = wxPyBeginAllowThreads();
12273 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12274 wxPyEndAllowThreads(__tstate);
12275 if (PyErr_Occurred()) SWIG_fail;
12276 }
12277 {
12278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12279 }
12280 return resultobj;
12281fail:
12282 return NULL;
d55e5bfc
RD
12283}
12284
12285
554f62e9
RD
12286SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12287 PyObject *resultobj = 0;
12288 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12289 bool result;
12290 void *argp1 = 0 ;
12291 int res1 = 0 ;
12292 PyObject *swig_obj[1] ;
12293
12294 if (!args) SWIG_fail;
12295 swig_obj[0] = args;
12296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12297 if (!SWIG_IsOK(res1)) {
12298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12299 }
12300 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12301 {
12302 PyThreadState* __tstate = wxPyBeginAllowThreads();
12303 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12304 wxPyEndAllowThreads(__tstate);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 {
12308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12309 }
12310 return resultobj;
12311fail:
12312 return NULL;
d55e5bfc
RD
12313}
12314
12315
554f62e9
RD
12316SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12317 PyObject *resultobj = 0;
12318 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12319 bool result;
12320 void *argp1 = 0 ;
12321 int res1 = 0 ;
12322 PyObject *swig_obj[1] ;
12323
12324 if (!args) SWIG_fail;
12325 swig_obj[0] = args;
12326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12327 if (!SWIG_IsOK(res1)) {
12328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12329 }
12330 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12331 {
12332 PyThreadState* __tstate = wxPyBeginAllowThreads();
12333 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12334 wxPyEndAllowThreads(__tstate);
12335 if (PyErr_Occurred()) SWIG_fail;
12336 }
12337 {
12338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12339 }
12340 return resultobj;
12341fail:
12342 return NULL;
12343}
12344
12345
12346SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12347 PyObject *resultobj = 0;
12348 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12349 long *arg2 = (long *) 0 ;
12350 long *arg3 = (long *) 0 ;
12351 void *argp1 = 0 ;
12352 int res1 = 0 ;
12353 long temp2 ;
12354 int res2 = SWIG_TMPOBJ ;
12355 long temp3 ;
12356 int res3 = SWIG_TMPOBJ ;
12357 PyObject *swig_obj[1] ;
12358
12359 arg2 = &temp2;
12360 arg3 = &temp3;
12361 if (!args) SWIG_fail;
12362 swig_obj[0] = args;
12363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12364 if (!SWIG_IsOK(res1)) {
12365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12366 }
12367 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12368 {
12369 PyThreadState* __tstate = wxPyBeginAllowThreads();
12370 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12371 wxPyEndAllowThreads(__tstate);
12372 if (PyErr_Occurred()) SWIG_fail;
12373 }
12374 resultobj = SWIG_Py_Void();
12375 if (SWIG_IsTmpObj(res2)) {
12376 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12377 } else {
12378 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12379 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12380 }
12381 if (SWIG_IsTmpObj(res3)) {
12382 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12383 } else {
12384 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12385 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12386 }
12387 return resultobj;
12388fail:
12389 return NULL;
d55e5bfc
RD
12390}
12391
12392
554f62e9
RD
12393SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12394 PyObject *resultobj = 0;
12395 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12396 wxString result;
12397 void *argp1 = 0 ;
12398 int res1 = 0 ;
12399 PyObject *swig_obj[1] ;
12400
12401 if (!args) SWIG_fail;
12402 swig_obj[0] = args;
12403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12404 if (!SWIG_IsOK(res1)) {
12405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12406 }
12407 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12408 {
12409 PyThreadState* __tstate = wxPyBeginAllowThreads();
12410 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12411 wxPyEndAllowThreads(__tstate);
12412 if (PyErr_Occurred()) SWIG_fail;
12413 }
12414 {
12415#if wxUSE_UNICODE
12416 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12417#else
12418 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12419#endif
12420 }
12421 return resultobj;
12422fail:
12423 return NULL;
d55e5bfc
RD
12424}
12425
12426
554f62e9
RD
12427SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12428 PyObject *resultobj = 0;
12429 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12430 void *argp1 = 0 ;
12431 int res1 = 0 ;
12432 PyObject *swig_obj[1] ;
12433
12434 if (!args) SWIG_fail;
12435 swig_obj[0] = args;
12436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12437 if (!SWIG_IsOK(res1)) {
12438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12439 }
12440 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12441 {
12442 PyThreadState* __tstate = wxPyBeginAllowThreads();
12443 (arg1)->Clear();
12444 wxPyEndAllowThreads(__tstate);
12445 if (PyErr_Occurred()) SWIG_fail;
12446 }
12447 resultobj = SWIG_Py_Void();
12448 return resultobj;
12449fail:
12450 return NULL;
12451}
12452
12453
12454SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12455 PyObject *resultobj = 0;
12456 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12457 long arg2 ;
12458 long arg3 ;
12459 wxString *arg4 = 0 ;
12460 void *argp1 = 0 ;
12461 int res1 = 0 ;
12462 long val2 ;
12463 int ecode2 = 0 ;
12464 long val3 ;
12465 int ecode3 = 0 ;
12466 bool temp4 = false ;
12467 PyObject * obj0 = 0 ;
12468 PyObject * obj1 = 0 ;
12469 PyObject * obj2 = 0 ;
12470 PyObject * obj3 = 0 ;
12471 char * kwnames[] = {
f460c29d 12472 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
554f62e9
RD
12473 };
12474
12475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12477 if (!SWIG_IsOK(res1)) {
12478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12479 }
12480 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12481 ecode2 = SWIG_AsVal_long(obj1, &val2);
12482 if (!SWIG_IsOK(ecode2)) {
12483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12484 }
12485 arg2 = static_cast< long >(val2);
12486 ecode3 = SWIG_AsVal_long(obj2, &val3);
12487 if (!SWIG_IsOK(ecode3)) {
12488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12489 }
12490 arg3 = static_cast< long >(val3);
12491 {
12492 arg4 = wxString_in_helper(obj3);
12493 if (arg4 == NULL) SWIG_fail;
12494 temp4 = true;
12495 }
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12499 wxPyEndAllowThreads(__tstate);
12500 if (PyErr_Occurred()) SWIG_fail;
12501 }
12502 resultobj = SWIG_Py_Void();
12503 {
12504 if (temp4)
12505 delete arg4;
12506 }
12507 return resultobj;
12508fail:
12509 {
12510 if (temp4)
12511 delete arg4;
12512 }
12513 return NULL;
12514}
12515
12516
12517SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12518 PyObject *resultobj = 0;
12519 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12520 long arg2 ;
12521 long arg3 ;
12522 void *argp1 = 0 ;
12523 int res1 = 0 ;
12524 long val2 ;
12525 int ecode2 = 0 ;
12526 long val3 ;
12527 int ecode3 = 0 ;
12528 PyObject * obj0 = 0 ;
12529 PyObject * obj1 = 0 ;
12530 PyObject * obj2 = 0 ;
12531 char * kwnames[] = {
f460c29d 12532 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
12533 };
12534
12535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12537 if (!SWIG_IsOK(res1)) {
12538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12539 }
12540 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12541 ecode2 = SWIG_AsVal_long(obj1, &val2);
12542 if (!SWIG_IsOK(ecode2)) {
12543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12544 }
12545 arg2 = static_cast< long >(val2);
12546 ecode3 = SWIG_AsVal_long(obj2, &val3);
12547 if (!SWIG_IsOK(ecode3)) {
12548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12549 }
12550 arg3 = static_cast< long >(val3);
12551 {
12552 PyThreadState* __tstate = wxPyBeginAllowThreads();
12553 (arg1)->Remove(arg2,arg3);
12554 wxPyEndAllowThreads(__tstate);
12555 if (PyErr_Occurred()) SWIG_fail;
12556 }
12557 resultobj = SWIG_Py_Void();
12558 return resultobj;
12559fail:
12560 return NULL;
12561}
12562
12563
12564SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12565 PyObject *resultobj = 0;
12566 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12567 wxString *arg2 = 0 ;
f5263701 12568 int arg3 = (int) wxTEXT_TYPE_ANY ;
554f62e9
RD
12569 bool result;
12570 void *argp1 = 0 ;
12571 int res1 = 0 ;
12572 bool temp2 = false ;
f5263701
RD
12573 int val3 ;
12574 int ecode3 = 0 ;
554f62e9
RD
12575 PyObject * obj0 = 0 ;
12576 PyObject * obj1 = 0 ;
f5263701 12577 PyObject * obj2 = 0 ;
554f62e9 12578 char * kwnames[] = {
f5263701 12579 (char *) "self",(char *) "file",(char *) "fileType", NULL
554f62e9
RD
12580 };
12581
f5263701 12582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
554f62e9
RD
12583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12584 if (!SWIG_IsOK(res1)) {
12585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12586 }
12587 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12588 {
12589 arg2 = wxString_in_helper(obj1);
12590 if (arg2 == NULL) SWIG_fail;
12591 temp2 = true;
12592 }
f5263701
RD
12593 if (obj2) {
12594 ecode3 = SWIG_AsVal_int(obj2, &val3);
12595 if (!SWIG_IsOK(ecode3)) {
12596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12597 }
12598 arg3 = static_cast< int >(val3);
12599 }
554f62e9
RD
12600 {
12601 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12602 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
554f62e9
RD
12603 wxPyEndAllowThreads(__tstate);
12604 if (PyErr_Occurred()) SWIG_fail;
12605 }
12606 {
12607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12608 }
12609 {
12610 if (temp2)
12611 delete arg2;
12612 }
12613 return resultobj;
12614fail:
12615 {
12616 if (temp2)
12617 delete arg2;
12618 }
12619 return NULL;
12620}
12621
12622
12623SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12624 PyObject *resultobj = 0;
12625 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12626 wxString const &arg2_defvalue = wxPyEmptyString ;
12627 wxString *arg2 = (wxString *) &arg2_defvalue ;
f5263701 12628 int arg3 = (int) wxTEXT_TYPE_ANY ;
554f62e9
RD
12629 bool result;
12630 void *argp1 = 0 ;
12631 int res1 = 0 ;
12632 bool temp2 = false ;
f5263701
RD
12633 int val3 ;
12634 int ecode3 = 0 ;
554f62e9
RD
12635 PyObject * obj0 = 0 ;
12636 PyObject * obj1 = 0 ;
f5263701 12637 PyObject * obj2 = 0 ;
554f62e9 12638 char * kwnames[] = {
f5263701 12639 (char *) "self",(char *) "file",(char *) "fileType", NULL
554f62e9
RD
12640 };
12641
f5263701 12642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
554f62e9
RD
12643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12644 if (!SWIG_IsOK(res1)) {
12645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12646 }
12647 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12648 if (obj1) {
d55e5bfc 12649 {
554f62e9
RD
12650 arg2 = wxString_in_helper(obj1);
12651 if (arg2 == NULL) SWIG_fail;
12652 temp2 = true;
d55e5bfc 12653 }
554f62e9 12654 }
f5263701
RD
12655 if (obj2) {
12656 ecode3 = SWIG_AsVal_int(obj2, &val3);
12657 if (!SWIG_IsOK(ecode3)) {
12658 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12659 }
12660 arg3 = static_cast< int >(val3);
12661 }
554f62e9
RD
12662 {
12663 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12664 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
554f62e9
RD
12665 wxPyEndAllowThreads(__tstate);
12666 if (PyErr_Occurred()) SWIG_fail;
12667 }
12668 {
12669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12670 }
12671 {
12672 if (temp2)
12673 delete arg2;
12674 }
12675 return resultobj;
12676fail:
12677 {
12678 if (temp2)
12679 delete arg2;
12680 }
12681 return NULL;
d55e5bfc
RD
12682}
12683
12684
554f62e9
RD
12685SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12686 PyObject *resultobj = 0;
12687 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12688 void *argp1 = 0 ;
12689 int res1 = 0 ;
12690 PyObject *swig_obj[1] ;
12691
12692 if (!args) SWIG_fail;
12693 swig_obj[0] = args;
12694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12695 if (!SWIG_IsOK(res1)) {
12696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12697 }
12698 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12699 {
12700 PyThreadState* __tstate = wxPyBeginAllowThreads();
12701 (arg1)->MarkDirty();
12702 wxPyEndAllowThreads(__tstate);
12703 if (PyErr_Occurred()) SWIG_fail;
12704 }
12705 resultobj = SWIG_Py_Void();
12706 return resultobj;
12707fail:
12708 return NULL;
d55e5bfc
RD
12709}
12710
12711
554f62e9
RD
12712SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12713 PyObject *resultobj = 0;
12714 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12715 void *argp1 = 0 ;
12716 int res1 = 0 ;
12717 PyObject *swig_obj[1] ;
12718
12719 if (!args) SWIG_fail;
12720 swig_obj[0] = args;
12721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12722 if (!SWIG_IsOK(res1)) {
12723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12724 }
12725 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12726 {
12727 PyThreadState* __tstate = wxPyBeginAllowThreads();
12728 (arg1)->DiscardEdits();
12729 wxPyEndAllowThreads(__tstate);
12730 if (PyErr_Occurred()) SWIG_fail;
12731 }
12732 resultobj = SWIG_Py_Void();
12733 return resultobj;
12734fail:
12735 return NULL;
12736}
12737
12738
b02396e8
RD
12739SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12740 PyObject *resultobj = 0;
12741 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12742 bool arg2 ;
12743 void *argp1 = 0 ;
12744 int res1 = 0 ;
12745 bool val2 ;
12746 int ecode2 = 0 ;
12747 PyObject * obj0 = 0 ;
12748 PyObject * obj1 = 0 ;
12749 char * kwnames[] = {
12750 (char *) "self",(char *) "modified", NULL
12751 };
12752
12753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12755 if (!SWIG_IsOK(res1)) {
12756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12757 }
12758 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12759 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12760 if (!SWIG_IsOK(ecode2)) {
12761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12762 }
12763 arg2 = static_cast< bool >(val2);
12764 {
12765 PyThreadState* __tstate = wxPyBeginAllowThreads();
12766 (arg1)->SetModified(arg2);
12767 wxPyEndAllowThreads(__tstate);
12768 if (PyErr_Occurred()) SWIG_fail;
12769 }
12770 resultobj = SWIG_Py_Void();
12771 return resultobj;
12772fail:
12773 return NULL;
12774}
12775
12776
554f62e9
RD
12777SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12778 PyObject *resultobj = 0;
12779 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12780 unsigned long arg2 ;
12781 void *argp1 = 0 ;
12782 int res1 = 0 ;
12783 unsigned long val2 ;
12784 int ecode2 = 0 ;
12785 PyObject * obj0 = 0 ;
12786 PyObject * obj1 = 0 ;
12787 char * kwnames[] = {
12788 (char *) "self",(char *) "len", NULL
12789 };
12790
12791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12793 if (!SWIG_IsOK(res1)) {
12794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12795 }
12796 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12797 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12798 if (!SWIG_IsOK(ecode2)) {
12799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12800 }
12801 arg2 = static_cast< unsigned long >(val2);
12802 {
12803 PyThreadState* __tstate = wxPyBeginAllowThreads();
12804 (arg1)->SetMaxLength(arg2);
12805 wxPyEndAllowThreads(__tstate);
12806 if (PyErr_Occurred()) SWIG_fail;
12807 }
12808 resultobj = SWIG_Py_Void();
12809 return resultobj;
12810fail:
12811 return NULL;
12812}
12813
12814
12815SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12816 PyObject *resultobj = 0;
12817 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12818 wxString *arg2 = 0 ;
12819 void *argp1 = 0 ;
12820 int res1 = 0 ;
12821 bool temp2 = false ;
12822 PyObject * obj0 = 0 ;
12823 PyObject * obj1 = 0 ;
12824 char * kwnames[] = {
12825 (char *) "self",(char *) "text", NULL
12826 };
12827
12828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12830 if (!SWIG_IsOK(res1)) {
12831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12832 }
12833 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12834 {
12835 arg2 = wxString_in_helper(obj1);
12836 if (arg2 == NULL) SWIG_fail;
12837 temp2 = true;
12838 }
12839 {
12840 PyThreadState* __tstate = wxPyBeginAllowThreads();
12841 (arg1)->WriteText((wxString const &)*arg2);
12842 wxPyEndAllowThreads(__tstate);
12843 if (PyErr_Occurred()) SWIG_fail;
12844 }
12845 resultobj = SWIG_Py_Void();
12846 {
12847 if (temp2)
12848 delete arg2;
12849 }
12850 return resultobj;
12851fail:
12852 {
12853 if (temp2)
12854 delete arg2;
12855 }
12856 return NULL;
d55e5bfc
RD
12857}
12858
12859
554f62e9
RD
12860SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12861 PyObject *resultobj = 0;
12862 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12863 wxString *arg2 = 0 ;
12864 void *argp1 = 0 ;
12865 int res1 = 0 ;
12866 bool temp2 = false ;
12867 PyObject * obj0 = 0 ;
12868 PyObject * obj1 = 0 ;
12869 char * kwnames[] = {
12870 (char *) "self",(char *) "text", NULL
12871 };
12872
12873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12875 if (!SWIG_IsOK(res1)) {
12876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12877 }
12878 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12879 {
12880 arg2 = wxString_in_helper(obj1);
12881 if (arg2 == NULL) SWIG_fail;
12882 temp2 = true;
12883 }
12884 {
12885 PyThreadState* __tstate = wxPyBeginAllowThreads();
12886 (arg1)->AppendText((wxString const &)*arg2);
12887 wxPyEndAllowThreads(__tstate);
12888 if (PyErr_Occurred()) SWIG_fail;
12889 }
12890 resultobj = SWIG_Py_Void();
12891 {
12892 if (temp2)
12893 delete arg2;
12894 }
12895 return resultobj;
12896fail:
12897 {
12898 if (temp2)
12899 delete arg2;
12900 }
12901 return NULL;
12902}
12903
12904
12905SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12906 PyObject *resultobj = 0;
12907 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12908 wxKeyEvent *arg2 = 0 ;
12909 bool result;
12910 void *argp1 = 0 ;
12911 int res1 = 0 ;
12912 void *argp2 = 0 ;
12913 int res2 = 0 ;
12914 PyObject * obj0 = 0 ;
12915 PyObject * obj1 = 0 ;
12916 char * kwnames[] = {
12917 (char *) "self",(char *) "event", NULL
12918 };
12919
12920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12922 if (!SWIG_IsOK(res1)) {
12923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12924 }
12925 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12926 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12927 if (!SWIG_IsOK(res2)) {
12928 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12929 }
12930 if (!argp2) {
12931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12932 }
12933 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12934 {
12935 PyThreadState* __tstate = wxPyBeginAllowThreads();
12936 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12937 wxPyEndAllowThreads(__tstate);
12938 if (PyErr_Occurred()) SWIG_fail;
12939 }
12940 {
12941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12942 }
12943 return resultobj;
12944fail:
12945 return NULL;
12946}
12947
12948
12949SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12950 PyObject *resultobj = 0;
12951 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12952 long arg2 ;
12953 long arg3 ;
12954 wxTextAttr *arg4 = 0 ;
12955 bool result;
12956 void *argp1 = 0 ;
12957 int res1 = 0 ;
12958 long val2 ;
12959 int ecode2 = 0 ;
12960 long val3 ;
12961 int ecode3 = 0 ;
12962 void *argp4 = 0 ;
12963 int res4 = 0 ;
12964 PyObject * obj0 = 0 ;
12965 PyObject * obj1 = 0 ;
12966 PyObject * obj2 = 0 ;
12967 PyObject * obj3 = 0 ;
12968 char * kwnames[] = {
12969 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12970 };
12971
12972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12974 if (!SWIG_IsOK(res1)) {
12975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12976 }
12977 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12978 ecode2 = SWIG_AsVal_long(obj1, &val2);
12979 if (!SWIG_IsOK(ecode2)) {
12980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12981 }
12982 arg2 = static_cast< long >(val2);
12983 ecode3 = SWIG_AsVal_long(obj2, &val3);
12984 if (!SWIG_IsOK(ecode3)) {
12985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12986 }
12987 arg3 = static_cast< long >(val3);
12988 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12989 if (!SWIG_IsOK(res4)) {
12990 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12991 }
12992 if (!argp4) {
12993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12994 }
12995 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12996 {
12997 PyThreadState* __tstate = wxPyBeginAllowThreads();
12998 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12999 wxPyEndAllowThreads(__tstate);
13000 if (PyErr_Occurred()) SWIG_fail;
13001 }
13002 {
13003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13004 }
13005 return resultobj;
13006fail:
13007 return NULL;
13008}
13009
13010
13011SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13012 PyObject *resultobj = 0;
13013 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13014 long arg2 ;
13015 wxTextAttr *arg3 = 0 ;
13016 bool result;
13017 void *argp1 = 0 ;
13018 int res1 = 0 ;
13019 long val2 ;
13020 int ecode2 = 0 ;
13021 void *argp3 = 0 ;
13022 int res3 = 0 ;
13023 PyObject * obj0 = 0 ;
13024 PyObject * obj1 = 0 ;
13025 PyObject * obj2 = 0 ;
13026 char * kwnames[] = {
13027 (char *) "self",(char *) "position",(char *) "style", NULL
13028 };
13029
13030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13032 if (!SWIG_IsOK(res1)) {
13033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13034 }
13035 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13036 ecode2 = SWIG_AsVal_long(obj1, &val2);
13037 if (!SWIG_IsOK(ecode2)) {
13038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
13039 }
13040 arg2 = static_cast< long >(val2);
13041 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
13042 if (!SWIG_IsOK(res3)) {
13043 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13044 }
13045 if (!argp3) {
13046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13047 }
13048 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
13049 {
13050 PyThreadState* __tstate = wxPyBeginAllowThreads();
13051 result = (bool)(arg1)->GetStyle(arg2,*arg3);
13052 wxPyEndAllowThreads(__tstate);
13053 if (PyErr_Occurred()) SWIG_fail;
13054 }
13055 {
13056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13057 }
13058 return resultobj;
13059fail:
13060 return NULL;
13061}
13062
13063
13064SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13065 PyObject *resultobj = 0;
13066 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13067 wxTextAttr *arg2 = 0 ;
13068 bool result;
13069 void *argp1 = 0 ;
13070 int res1 = 0 ;
13071 void *argp2 = 0 ;
13072 int res2 = 0 ;
13073 PyObject * obj0 = 0 ;
13074 PyObject * obj1 = 0 ;
13075 char * kwnames[] = {
13076 (char *) "self",(char *) "style", NULL
13077 };
13078
13079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13081 if (!SWIG_IsOK(res1)) {
13082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13083 }
13084 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13085 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13086 if (!SWIG_IsOK(res2)) {
13087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13088 }
13089 if (!argp2) {
13090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13091 }
13092 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13093 {
13094 PyThreadState* __tstate = wxPyBeginAllowThreads();
13095 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13096 wxPyEndAllowThreads(__tstate);
13097 if (PyErr_Occurred()) SWIG_fail;
13098 }
13099 {
13100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13101 }
13102 return resultobj;
13103fail:
13104 return NULL;
d55e5bfc
RD
13105}
13106
13107
554f62e9
RD
13108SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13109 PyObject *resultobj = 0;
13110 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13111 wxTextAttr *result = 0 ;
13112 void *argp1 = 0 ;
13113 int res1 = 0 ;
13114 PyObject *swig_obj[1] ;
13115
13116 if (!args) SWIG_fail;
13117 swig_obj[0] = args;
13118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13119 if (!SWIG_IsOK(res1)) {
13120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13121 }
13122 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13123 {
13124 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13125 {
554f62e9
RD
13126 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13127 result = (wxTextAttr *) &_result_ref;
093d3ff1 13128 }
554f62e9
RD
13129 wxPyEndAllowThreads(__tstate);
13130 if (PyErr_Occurred()) SWIG_fail;
13131 }
13132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13133 return resultobj;
13134fail:
13135 return NULL;
13136}
13137
13138
13139SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13140 PyObject *resultobj = 0;
13141 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13142 long arg2 ;
13143 long arg3 ;
13144 long result;
13145 void *argp1 = 0 ;
13146 int res1 = 0 ;
13147 long val2 ;
13148 int ecode2 = 0 ;
13149 long val3 ;
13150 int ecode3 = 0 ;
13151 PyObject * obj0 = 0 ;
13152 PyObject * obj1 = 0 ;
13153 PyObject * obj2 = 0 ;
13154 char * kwnames[] = {
13155 (char *) "self",(char *) "x",(char *) "y", NULL
13156 };
13157
13158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13160 if (!SWIG_IsOK(res1)) {
13161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13162 }
13163 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13164 ecode2 = SWIG_AsVal_long(obj1, &val2);
13165 if (!SWIG_IsOK(ecode2)) {
13166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13167 }
13168 arg2 = static_cast< long >(val2);
13169 ecode3 = SWIG_AsVal_long(obj2, &val3);
13170 if (!SWIG_IsOK(ecode3)) {
13171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13172 }
13173 arg3 = static_cast< long >(val3);
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
13176 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13177 wxPyEndAllowThreads(__tstate);
13178 if (PyErr_Occurred()) SWIG_fail;
13179 }
13180 resultobj = SWIG_From_long(static_cast< long >(result));
13181 return resultobj;
13182fail:
13183 return NULL;
13184}
13185
13186
13187SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13188 PyObject *resultobj = 0;
13189 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13190 long arg2 ;
13191 long *arg3 = (long *) 0 ;
13192 long *arg4 = (long *) 0 ;
13193 void *argp1 = 0 ;
13194 int res1 = 0 ;
13195 long val2 ;
13196 int ecode2 = 0 ;
13197 long temp3 ;
13198 int res3 = SWIG_TMPOBJ ;
13199 long temp4 ;
13200 int res4 = SWIG_TMPOBJ ;
13201 PyObject * obj0 = 0 ;
13202 PyObject * obj1 = 0 ;
13203 char * kwnames[] = {
13204 (char *) "self",(char *) "pos", NULL
13205 };
13206
13207 arg3 = &temp3;
13208 arg4 = &temp4;
13209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13211 if (!SWIG_IsOK(res1)) {
13212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13213 }
13214 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13215 ecode2 = SWIG_AsVal_long(obj1, &val2);
13216 if (!SWIG_IsOK(ecode2)) {
13217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13218 }
13219 arg2 = static_cast< long >(val2);
13220 {
13221 PyThreadState* __tstate = wxPyBeginAllowThreads();
13222 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13223 wxPyEndAllowThreads(__tstate);
13224 if (PyErr_Occurred()) SWIG_fail;
13225 }
13226 resultobj = SWIG_Py_Void();
13227 if (SWIG_IsTmpObj(res3)) {
13228 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13229 } else {
13230 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13231 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13232 }
13233 if (SWIG_IsTmpObj(res4)) {
13234 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13235 } else {
13236 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13237 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13238 }
13239 return resultobj;
13240fail:
13241 return NULL;
13242}
13243
13244
13245SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13246 PyObject *resultobj = 0;
13247 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13248 long arg2 ;
13249 void *argp1 = 0 ;
13250 int res1 = 0 ;
13251 long val2 ;
13252 int ecode2 = 0 ;
13253 PyObject * obj0 = 0 ;
13254 PyObject * obj1 = 0 ;
13255 char * kwnames[] = {
13256 (char *) "self",(char *) "pos", NULL
13257 };
13258
13259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13261 if (!SWIG_IsOK(res1)) {
13262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13263 }
13264 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13265 ecode2 = SWIG_AsVal_long(obj1, &val2);
13266 if (!SWIG_IsOK(ecode2)) {
13267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13268 }
13269 arg2 = static_cast< long >(val2);
13270 {
13271 PyThreadState* __tstate = wxPyBeginAllowThreads();
13272 (arg1)->ShowPosition(arg2);
13273 wxPyEndAllowThreads(__tstate);
13274 if (PyErr_Occurred()) SWIG_fail;
13275 }
13276 resultobj = SWIG_Py_Void();
13277 return resultobj;
13278fail:
13279 return NULL;
13280}
13281
13282
13283SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13284 PyObject *resultobj = 0;
13285 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13286 wxPoint *arg2 = 0 ;
13287 long *arg3 = (long *) 0 ;
13288 long *arg4 = (long *) 0 ;
13289 wxTextCtrlHitTestResult result;
13290 void *argp1 = 0 ;
13291 int res1 = 0 ;
13292 wxPoint temp2 ;
13293 long temp3 ;
13294 int res3 = SWIG_TMPOBJ ;
13295 long temp4 ;
13296 int res4 = SWIG_TMPOBJ ;
13297 PyObject * obj0 = 0 ;
13298 PyObject * obj1 = 0 ;
13299 char * kwnames[] = {
13300 (char *) "self",(char *) "pt", NULL
13301 };
13302
13303 arg3 = &temp3;
13304 arg4 = &temp4;
13305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13307 if (!SWIG_IsOK(res1)) {
13308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13309 }
13310 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13311 {
13312 arg2 = &temp2;
13313 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13314 }
13315 {
13316 PyThreadState* __tstate = wxPyBeginAllowThreads();
13317 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13318 wxPyEndAllowThreads(__tstate);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 }
13321 resultobj = SWIG_From_int(static_cast< int >(result));
13322 if (SWIG_IsTmpObj(res3)) {
13323 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13324 } else {
13325 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13326 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13327 }
13328 if (SWIG_IsTmpObj(res4)) {
13329 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13330 } else {
13331 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13332 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13333 }
13334 return resultobj;
13335fail:
13336 return NULL;
13337}
13338
13339
13340SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13341 PyObject *resultobj = 0;
13342 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13343 wxPoint *arg2 = 0 ;
13344 long *arg3 = (long *) 0 ;
13345 wxTextCtrlHitTestResult result;
13346 void *argp1 = 0 ;
13347 int res1 = 0 ;
13348 wxPoint temp2 ;
13349 long temp3 ;
13350 int res3 = SWIG_TMPOBJ ;
13351 PyObject * obj0 = 0 ;
13352 PyObject * obj1 = 0 ;
13353 char * kwnames[] = {
13354 (char *) "self",(char *) "pt", NULL
13355 };
13356
13357 arg3 = &temp3;
13358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13360 if (!SWIG_IsOK(res1)) {
13361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13362 }
13363 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13364 {
13365 arg2 = &temp2;
13366 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13367 }
13368 {
13369 PyThreadState* __tstate = wxPyBeginAllowThreads();
13370 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13371 wxPyEndAllowThreads(__tstate);
13372 if (PyErr_Occurred()) SWIG_fail;
13373 }
13374 resultobj = SWIG_From_int(static_cast< int >(result));
13375 if (SWIG_IsTmpObj(res3)) {
13376 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13377 } else {
13378 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13379 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13380 }
13381 return resultobj;
13382fail:
13383 return NULL;
d55e5bfc
RD
13384}
13385
13386
554f62e9
RD
13387SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13388 PyObject *resultobj = 0;
13389 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13390 void *argp1 = 0 ;
13391 int res1 = 0 ;
13392 PyObject *swig_obj[1] ;
13393
13394 if (!args) SWIG_fail;
13395 swig_obj[0] = args;
13396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13397 if (!SWIG_IsOK(res1)) {
13398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13399 }
13400 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13401 {
13402 PyThreadState* __tstate = wxPyBeginAllowThreads();
13403 (arg1)->Copy();
13404 wxPyEndAllowThreads(__tstate);
13405 if (PyErr_Occurred()) SWIG_fail;
13406 }
13407 resultobj = SWIG_Py_Void();
13408 return resultobj;
13409fail:
13410 return NULL;
d55e5bfc 13411}
554f62e9
RD
13412
13413
13414SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13415 PyObject *resultobj = 0;
13416 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13417 void *argp1 = 0 ;
13418 int res1 = 0 ;
13419 PyObject *swig_obj[1] ;
13420
13421 if (!args) SWIG_fail;
13422 swig_obj[0] = args;
13423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13424 if (!SWIG_IsOK(res1)) {
13425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13426 }
13427 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13428 {
13429 PyThreadState* __tstate = wxPyBeginAllowThreads();
13430 (arg1)->Cut();
13431 wxPyEndAllowThreads(__tstate);
13432 if (PyErr_Occurred()) SWIG_fail;
13433 }
13434 resultobj = SWIG_Py_Void();
13435 return resultobj;
13436fail:
13437 return NULL;
d55e5bfc
RD
13438}
13439
13440
554f62e9
RD
13441SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13442 PyObject *resultobj = 0;
13443 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13444 void *argp1 = 0 ;
13445 int res1 = 0 ;
13446 PyObject *swig_obj[1] ;
13447
13448 if (!args) SWIG_fail;
13449 swig_obj[0] = args;
13450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13451 if (!SWIG_IsOK(res1)) {
13452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13453 }
13454 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13455 {
13456 PyThreadState* __tstate = wxPyBeginAllowThreads();
13457 (arg1)->Paste();
13458 wxPyEndAllowThreads(__tstate);
13459 if (PyErr_Occurred()) SWIG_fail;
13460 }
13461 resultobj = SWIG_Py_Void();
13462 return resultobj;
13463fail:
13464 return NULL;
d55e5bfc
RD
13465}
13466
13467
554f62e9
RD
13468SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13469 PyObject *resultobj = 0;
13470 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13471 bool result;
13472 void *argp1 = 0 ;
13473 int res1 = 0 ;
13474 PyObject *swig_obj[1] ;
13475
13476 if (!args) SWIG_fail;
13477 swig_obj[0] = args;
13478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13479 if (!SWIG_IsOK(res1)) {
13480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13481 }
13482 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13483 {
13484 PyThreadState* __tstate = wxPyBeginAllowThreads();
13485 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13486 wxPyEndAllowThreads(__tstate);
13487 if (PyErr_Occurred()) SWIG_fail;
13488 }
13489 {
13490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13491 }
13492 return resultobj;
13493fail:
13494 return NULL;
d55e5bfc
RD
13495}
13496
13497
554f62e9
RD
13498SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13499 PyObject *resultobj = 0;
13500 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13501 bool result;
13502 void *argp1 = 0 ;
13503 int res1 = 0 ;
13504 PyObject *swig_obj[1] ;
13505
13506 if (!args) SWIG_fail;
13507 swig_obj[0] = args;
13508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13509 if (!SWIG_IsOK(res1)) {
13510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13511 }
13512 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13513 {
13514 PyThreadState* __tstate = wxPyBeginAllowThreads();
13515 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13516 wxPyEndAllowThreads(__tstate);
13517 if (PyErr_Occurred()) SWIG_fail;
13518 }
13519 {
13520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13521 }
13522 return resultobj;
13523fail:
13524 return NULL;
d55e5bfc
RD
13525}
13526
13527
554f62e9
RD
13528SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13529 PyObject *resultobj = 0;
13530 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13531 bool result;
13532 void *argp1 = 0 ;
13533 int res1 = 0 ;
13534 PyObject *swig_obj[1] ;
13535
13536 if (!args) SWIG_fail;
13537 swig_obj[0] = args;
13538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13539 if (!SWIG_IsOK(res1)) {
13540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13541 }
13542 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13543 {
13544 PyThreadState* __tstate = wxPyBeginAllowThreads();
13545 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13546 wxPyEndAllowThreads(__tstate);
13547 if (PyErr_Occurred()) SWIG_fail;
13548 }
13549 {
13550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13551 }
13552 return resultobj;
13553fail:
13554 return NULL;
d55e5bfc
RD
13555}
13556
13557
554f62e9
RD
13558SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13559 PyObject *resultobj = 0;
13560 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13561 void *argp1 = 0 ;
13562 int res1 = 0 ;
13563 PyObject *swig_obj[1] ;
13564
13565 if (!args) SWIG_fail;
13566 swig_obj[0] = args;
13567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13568 if (!SWIG_IsOK(res1)) {
13569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13570 }
13571 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13572 {
13573 PyThreadState* __tstate = wxPyBeginAllowThreads();
13574 (arg1)->Undo();
13575 wxPyEndAllowThreads(__tstate);
13576 if (PyErr_Occurred()) SWIG_fail;
13577 }
13578 resultobj = SWIG_Py_Void();
13579 return resultobj;
13580fail:
13581 return NULL;
d55e5bfc
RD
13582}
13583
13584
554f62e9
RD
13585SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13586 PyObject *resultobj = 0;
13587 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13588 void *argp1 = 0 ;
13589 int res1 = 0 ;
13590 PyObject *swig_obj[1] ;
13591
13592 if (!args) SWIG_fail;
13593 swig_obj[0] = args;
13594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13595 if (!SWIG_IsOK(res1)) {
13596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13597 }
13598 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13599 {
13600 PyThreadState* __tstate = wxPyBeginAllowThreads();
13601 (arg1)->Redo();
13602 wxPyEndAllowThreads(__tstate);
13603 if (PyErr_Occurred()) SWIG_fail;
13604 }
13605 resultobj = SWIG_Py_Void();
13606 return resultobj;
13607fail:
13608 return NULL;
d55e5bfc
RD
13609}
13610
13611
554f62e9
RD
13612SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13613 PyObject *resultobj = 0;
13614 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13615 bool result;
13616 void *argp1 = 0 ;
13617 int res1 = 0 ;
13618 PyObject *swig_obj[1] ;
13619
13620 if (!args) SWIG_fail;
13621 swig_obj[0] = args;
13622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13623 if (!SWIG_IsOK(res1)) {
13624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13625 }
13626 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13627 {
13628 PyThreadState* __tstate = wxPyBeginAllowThreads();
13629 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13630 wxPyEndAllowThreads(__tstate);
13631 if (PyErr_Occurred()) SWIG_fail;
13632 }
13633 {
13634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13635 }
13636 return resultobj;
13637fail:
13638 return NULL;
d55e5bfc
RD
13639}
13640
13641
554f62e9
RD
13642SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13643 PyObject *resultobj = 0;
13644 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13645 bool result;
13646 void *argp1 = 0 ;
13647 int res1 = 0 ;
13648 PyObject *swig_obj[1] ;
13649
13650 if (!args) SWIG_fail;
13651 swig_obj[0] = args;
13652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13653 if (!SWIG_IsOK(res1)) {
13654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13655 }
13656 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13657 {
13658 PyThreadState* __tstate = wxPyBeginAllowThreads();
13659 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13660 wxPyEndAllowThreads(__tstate);
13661 if (PyErr_Occurred()) SWIG_fail;
13662 }
13663 {
13664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13665 }
13666 return resultobj;
13667fail:
13668 return NULL;
13669}
13670
13671
13672SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13673 PyObject *resultobj = 0;
13674 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13675 long arg2 ;
13676 void *argp1 = 0 ;
13677 int res1 = 0 ;
13678 long val2 ;
13679 int ecode2 = 0 ;
13680 PyObject * obj0 = 0 ;
13681 PyObject * obj1 = 0 ;
13682 char * kwnames[] = {
13683 (char *) "self",(char *) "pos", NULL
13684 };
13685
13686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13688 if (!SWIG_IsOK(res1)) {
13689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13690 }
13691 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13692 ecode2 = SWIG_AsVal_long(obj1, &val2);
13693 if (!SWIG_IsOK(ecode2)) {
13694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13695 }
13696 arg2 = static_cast< long >(val2);
13697 {
13698 PyThreadState* __tstate = wxPyBeginAllowThreads();
13699 (arg1)->SetInsertionPoint(arg2);
13700 wxPyEndAllowThreads(__tstate);
13701 if (PyErr_Occurred()) SWIG_fail;
13702 }
13703 resultobj = SWIG_Py_Void();
13704 return resultobj;
13705fail:
13706 return NULL;
d55e5bfc
RD
13707}
13708
13709
554f62e9
RD
13710SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13711 PyObject *resultobj = 0;
13712 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13713 void *argp1 = 0 ;
13714 int res1 = 0 ;
13715 PyObject *swig_obj[1] ;
13716
13717 if (!args) SWIG_fail;
13718 swig_obj[0] = args;
13719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13720 if (!SWIG_IsOK(res1)) {
13721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13722 }
13723 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13724 {
13725 PyThreadState* __tstate = wxPyBeginAllowThreads();
13726 (arg1)->SetInsertionPointEnd();
13727 wxPyEndAllowThreads(__tstate);
13728 if (PyErr_Occurred()) SWIG_fail;
13729 }
13730 resultobj = SWIG_Py_Void();
13731 return resultobj;
13732fail:
13733 return NULL;
d55e5bfc
RD
13734}
13735
13736
554f62e9
RD
13737SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13738 PyObject *resultobj = 0;
13739 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13740 long result;
13741 void *argp1 = 0 ;
13742 int res1 = 0 ;
13743 PyObject *swig_obj[1] ;
13744
13745 if (!args) SWIG_fail;
13746 swig_obj[0] = args;
13747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13748 if (!SWIG_IsOK(res1)) {
13749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13750 }
13751 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13752 {
13753 PyThreadState* __tstate = wxPyBeginAllowThreads();
13754 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13755 wxPyEndAllowThreads(__tstate);
13756 if (PyErr_Occurred()) SWIG_fail;
13757 }
13758 resultobj = SWIG_From_long(static_cast< long >(result));
13759 return resultobj;
13760fail:
13761 return NULL;
d55e5bfc
RD
13762}
13763
13764
554f62e9
RD
13765SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13766 PyObject *resultobj = 0;
13767 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13768 long result;
13769 void *argp1 = 0 ;
13770 int res1 = 0 ;
13771 PyObject *swig_obj[1] ;
13772
13773 if (!args) SWIG_fail;
13774 swig_obj[0] = args;
13775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13776 if (!SWIG_IsOK(res1)) {
13777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13778 }
13779 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13780 {
13781 PyThreadState* __tstate = wxPyBeginAllowThreads();
13782 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13783 wxPyEndAllowThreads(__tstate);
13784 if (PyErr_Occurred()) SWIG_fail;
13785 }
13786 resultobj = SWIG_From_long(static_cast< long >(result));
13787 return resultobj;
13788fail:
13789 return NULL;
13790}
13791
13792
13793SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13794 PyObject *resultobj = 0;
13795 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13796 long arg2 ;
13797 long arg3 ;
13798 void *argp1 = 0 ;
13799 int res1 = 0 ;
13800 long val2 ;
13801 int ecode2 = 0 ;
13802 long val3 ;
13803 int ecode3 = 0 ;
13804 PyObject * obj0 = 0 ;
13805 PyObject * obj1 = 0 ;
13806 PyObject * obj2 = 0 ;
13807 char * kwnames[] = {
f460c29d 13808 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
13809 };
13810
13811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13813 if (!SWIG_IsOK(res1)) {
13814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13815 }
13816 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13817 ecode2 = SWIG_AsVal_long(obj1, &val2);
13818 if (!SWIG_IsOK(ecode2)) {
13819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13820 }
13821 arg2 = static_cast< long >(val2);
13822 ecode3 = SWIG_AsVal_long(obj2, &val3);
13823 if (!SWIG_IsOK(ecode3)) {
13824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13825 }
13826 arg3 = static_cast< long >(val3);
13827 {
13828 PyThreadState* __tstate = wxPyBeginAllowThreads();
13829 (arg1)->SetSelection(arg2,arg3);
13830 wxPyEndAllowThreads(__tstate);
13831 if (PyErr_Occurred()) SWIG_fail;
13832 }
13833 resultobj = SWIG_Py_Void();
13834 return resultobj;
13835fail:
13836 return NULL;
d55e5bfc
RD
13837}
13838
13839
554f62e9
RD
13840SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13841 PyObject *resultobj = 0;
13842 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13843 void *argp1 = 0 ;
13844 int res1 = 0 ;
13845 PyObject *swig_obj[1] ;
13846
13847 if (!args) SWIG_fail;
13848 swig_obj[0] = args;
13849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13850 if (!SWIG_IsOK(res1)) {
13851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13852 }
13853 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13854 {
13855 PyThreadState* __tstate = wxPyBeginAllowThreads();
13856 (arg1)->SelectAll();
13857 wxPyEndAllowThreads(__tstate);
13858 if (PyErr_Occurred()) SWIG_fail;
13859 }
13860 resultobj = SWIG_Py_Void();
13861 return resultobj;
13862fail:
13863 return NULL;
13864}
13865
13866
13867SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13868 PyObject *resultobj = 0;
13869 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13870 bool arg2 ;
13871 void *argp1 = 0 ;
13872 int res1 = 0 ;
13873 bool val2 ;
13874 int ecode2 = 0 ;
13875 PyObject * obj0 = 0 ;
13876 PyObject * obj1 = 0 ;
13877 char * kwnames[] = {
13878 (char *) "self",(char *) "editable", NULL
13879 };
13880
13881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13883 if (!SWIG_IsOK(res1)) {
13884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13885 }
13886 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13887 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13888 if (!SWIG_IsOK(ecode2)) {
13889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13890 }
13891 arg2 = static_cast< bool >(val2);
13892 {
13893 PyThreadState* __tstate = wxPyBeginAllowThreads();
13894 (arg1)->SetEditable(arg2);
13895 wxPyEndAllowThreads(__tstate);
13896 if (PyErr_Occurred()) SWIG_fail;
13897 }
13898 resultobj = SWIG_Py_Void();
13899 return resultobj;
13900fail:
13901 return NULL;
13902}
13903
13904
d7645bfd
VZ
13905SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13906 PyObject *resultobj = 0;
13907 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13908 bool arg2 ;
13909 void *argp1 = 0 ;
13910 int res1 = 0 ;
13911 bool val2 ;
13912 int ecode2 = 0 ;
13913 PyObject * obj0 = 0 ;
13914 PyObject * obj1 = 0 ;
13915 char * kwnames[] = {
13916 (char *) "self",(char *) "check", NULL
13917 };
13918
13919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail;
13920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13921 if (!SWIG_IsOK(res1)) {
13922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13923 }
13924 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13925 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13926 if (!SWIG_IsOK(ecode2)) {
13927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'");
13928 }
13929 arg2 = static_cast< bool >(val2);
13930 {
13931 PyThreadState* __tstate = wxPyBeginAllowThreads();
13932 wxTextCtrl_MacCheckSpelling(arg1,arg2);
13933 wxPyEndAllowThreads(__tstate);
13934 if (PyErr_Occurred()) SWIG_fail;
13935 }
13936 resultobj = SWIG_Py_Void();
13937 return resultobj;
13938fail:
13939 return NULL;
13940}
13941
13942
b39fe951
RD
13943SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13944 PyObject *resultobj = 0;
13945 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13946 void *argp1 = 0 ;
13947 int res1 = 0 ;
13948 PyObject *swig_obj[1] ;
13949
13950 if (!args) SWIG_fail;
13951 swig_obj[0] = args;
13952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13953 if (!SWIG_IsOK(res1)) {
13954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13955 }
13956 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13957 {
13958 PyThreadState* __tstate = wxPyBeginAllowThreads();
13959 (arg1)->SendTextUpdatedEvent();
13960 wxPyEndAllowThreads(__tstate);
13961 if (PyErr_Occurred()) SWIG_fail;
13962 }
13963 resultobj = SWIG_Py_Void();
13964 return resultobj;
13965fail:
13966 return NULL;
13967}
13968
13969
554f62e9
RD
13970SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13971 PyObject *resultobj = 0;
13972 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13973 bool arg2 = (bool) true ;
13974 bool result;
13975 void *argp1 = 0 ;
13976 int res1 = 0 ;
13977 bool val2 ;
13978 int ecode2 = 0 ;
13979 PyObject * obj0 = 0 ;
13980 PyObject * obj1 = 0 ;
13981 char * kwnames[] = {
13982 (char *) "self",(char *) "show", NULL
13983 };
13984
13985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13987 if (!SWIG_IsOK(res1)) {
13988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13989 }
13990 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13991 if (obj1) {
13992 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13993 if (!SWIG_IsOK(ecode2)) {
13994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13995 }
13996 arg2 = static_cast< bool >(val2);
13997 }
13998 {
13999 PyThreadState* __tstate = wxPyBeginAllowThreads();
14000 result = (bool)(arg1)->ShowNativeCaret(arg2);
14001 wxPyEndAllowThreads(__tstate);
14002 if (PyErr_Occurred()) SWIG_fail;
14003 }
14004 {
14005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14006 }
14007 return resultobj;
14008fail:
14009 return NULL;
d55e5bfc
RD
14010}
14011
14012
554f62e9
RD
14013SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14014 PyObject *resultobj = 0;
14015 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14016 bool result;
14017 void *argp1 = 0 ;
14018 int res1 = 0 ;
14019 PyObject *swig_obj[1] ;
14020
14021 if (!args) SWIG_fail;
14022 swig_obj[0] = args;
14023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14024 if (!SWIG_IsOK(res1)) {
14025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14026 }
14027 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14028 {
14029 PyThreadState* __tstate = wxPyBeginAllowThreads();
14030 result = (bool)(arg1)->HideNativeCaret();
14031 wxPyEndAllowThreads(__tstate);
14032 if (PyErr_Occurred()) SWIG_fail;
14033 }
14034 {
14035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14036 }
14037 return resultobj;
14038fail:
14039 return NULL;
14040}
14041
14042
14043SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14044 PyObject *resultobj = 0;
14045 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14046 wxString *arg2 = 0 ;
14047 void *argp1 = 0 ;
14048 int res1 = 0 ;
14049 bool temp2 = false ;
14050 PyObject * obj0 = 0 ;
14051 PyObject * obj1 = 0 ;
14052 char * kwnames[] = {
14053 (char *) "self",(char *) "text", NULL
14054 };
14055
14056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
14057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14058 if (!SWIG_IsOK(res1)) {
14059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14060 }
14061 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14062 {
14063 arg2 = wxString_in_helper(obj1);
14064 if (arg2 == NULL) SWIG_fail;
14065 temp2 = true;
14066 }
14067 {
14068 PyThreadState* __tstate = wxPyBeginAllowThreads();
14069 wxTextCtrl_write(arg1,(wxString const &)*arg2);
14070 wxPyEndAllowThreads(__tstate);
14071 if (PyErr_Occurred()) SWIG_fail;
14072 }
14073 resultobj = SWIG_Py_Void();
14074 {
14075 if (temp2)
14076 delete arg2;
14077 }
14078 return resultobj;
14079fail:
14080 {
14081 if (temp2)
14082 delete arg2;
14083 }
14084 return NULL;
14085}
14086
14087
14088SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14089 PyObject *resultobj = 0;
14090 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14091 long arg2 ;
14092 long arg3 ;
14093 wxString result;
14094 void *argp1 = 0 ;
14095 int res1 = 0 ;
14096 long val2 ;
14097 int ecode2 = 0 ;
14098 long val3 ;
14099 int ecode3 = 0 ;
14100 PyObject * obj0 = 0 ;
14101 PyObject * obj1 = 0 ;
14102 PyObject * obj2 = 0 ;
14103 char * kwnames[] = {
f460c29d 14104 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
14105 };
14106
14107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14109 if (!SWIG_IsOK(res1)) {
14110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14111 }
14112 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14113 ecode2 = SWIG_AsVal_long(obj1, &val2);
14114 if (!SWIG_IsOK(ecode2)) {
14115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
14116 }
14117 arg2 = static_cast< long >(val2);
14118 ecode3 = SWIG_AsVal_long(obj2, &val3);
14119 if (!SWIG_IsOK(ecode3)) {
14120 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
14121 }
14122 arg3 = static_cast< long >(val3);
14123 {
14124 PyThreadState* __tstate = wxPyBeginAllowThreads();
14125 result = wxTextCtrl_GetString(arg1,arg2,arg3);
14126 wxPyEndAllowThreads(__tstate);
14127 if (PyErr_Occurred()) SWIG_fail;
14128 }
14129 {
14130#if wxUSE_UNICODE
14131 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14132#else
14133 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14134#endif
14135 }
14136 return resultobj;
14137fail:
14138 return NULL;
d55e5bfc
RD
14139}
14140
14141
554f62e9
RD
14142SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14143 PyObject *resultobj = 0;
14144 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14145 SwigValueWrapper<wxVisualAttributes > result;
14146 int val1 ;
14147 int ecode1 = 0 ;
14148 PyObject * obj0 = 0 ;
14149 char * kwnames[] = {
14150 (char *) "variant", NULL
14151 };
14152
14153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14154 if (obj0) {
14155 ecode1 = SWIG_AsVal_int(obj0, &val1);
14156 if (!SWIG_IsOK(ecode1)) {
14157 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14158 }
14159 arg1 = static_cast< wxWindowVariant >(val1);
14160 }
14161 {
14162 if (!wxPyCheckForApp()) SWIG_fail;
14163 PyThreadState* __tstate = wxPyBeginAllowThreads();
14164 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14165 wxPyEndAllowThreads(__tstate);
14166 if (PyErr_Occurred()) SWIG_fail;
14167 }
14168 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14169 return resultobj;
14170fail:
14171 return NULL;
14172}
14173
14174
14175SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14176 PyObject *obj;
14177 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14178 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14179 return SWIG_Py_Void();
14180}
14181
14182SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14183 return SWIG_Python_InitShadowInstance(args);
14184}
14185
14186SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14187 PyObject *resultobj = 0;
14188 int arg1 ;
14189 wxMouseEvent *arg2 = 0 ;
14190 long arg3 ;
14191 long arg4 ;
14192 wxTextUrlEvent *result = 0 ;
14193 int val1 ;
14194 int ecode1 = 0 ;
14195 void *argp2 = 0 ;
14196 int res2 = 0 ;
14197 long val3 ;
14198 int ecode3 = 0 ;
14199 long val4 ;
14200 int ecode4 = 0 ;
14201 PyObject * obj0 = 0 ;
14202 PyObject * obj1 = 0 ;
14203 PyObject * obj2 = 0 ;
14204 PyObject * obj3 = 0 ;
14205 char * kwnames[] = {
14206 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14207 };
14208
14209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14210 ecode1 = SWIG_AsVal_int(obj0, &val1);
14211 if (!SWIG_IsOK(ecode1)) {
14212 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14213 }
14214 arg1 = static_cast< int >(val1);
14215 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14216 if (!SWIG_IsOK(res2)) {
14217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14218 }
14219 if (!argp2) {
14220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14221 }
14222 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14223 ecode3 = SWIG_AsVal_long(obj2, &val3);
14224 if (!SWIG_IsOK(ecode3)) {
14225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14226 }
14227 arg3 = static_cast< long >(val3);
14228 ecode4 = SWIG_AsVal_long(obj3, &val4);
14229 if (!SWIG_IsOK(ecode4)) {
14230 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14231 }
14232 arg4 = static_cast< long >(val4);
14233 {
14234 PyThreadState* __tstate = wxPyBeginAllowThreads();
14235 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14236 wxPyEndAllowThreads(__tstate);
14237 if (PyErr_Occurred()) SWIG_fail;
14238 }
14239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14240 return resultobj;
14241fail:
14242 return NULL;
d55e5bfc
RD
14243}
14244
14245
554f62e9
RD
14246SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14247 PyObject *resultobj = 0;
14248 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14249 wxMouseEvent *result = 0 ;
14250 void *argp1 = 0 ;
14251 int res1 = 0 ;
14252 PyObject *swig_obj[1] ;
14253
14254 if (!args) SWIG_fail;
14255 swig_obj[0] = args;
14256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14257 if (!SWIG_IsOK(res1)) {
14258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14259 }
14260 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14261 {
14262 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 14263 {
554f62e9
RD
14264 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14265 result = (wxMouseEvent *) &_result_ref;
d55e5bfc 14266 }
554f62e9
RD
14267 wxPyEndAllowThreads(__tstate);
14268 if (PyErr_Occurred()) SWIG_fail;
14269 }
14270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14271 return resultobj;
14272fail:
14273 return NULL;
d55e5bfc
RD
14274}
14275
14276
554f62e9
RD
14277SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14278 PyObject *resultobj = 0;
14279 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14280 long result;
14281 void *argp1 = 0 ;
14282 int res1 = 0 ;
14283 PyObject *swig_obj[1] ;
14284
14285 if (!args) SWIG_fail;
14286 swig_obj[0] = args;
14287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14288 if (!SWIG_IsOK(res1)) {
14289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14290 }
14291 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14292 {
14293 PyThreadState* __tstate = wxPyBeginAllowThreads();
14294 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14295 wxPyEndAllowThreads(__tstate);
14296 if (PyErr_Occurred()) SWIG_fail;
14297 }
14298 resultobj = SWIG_From_long(static_cast< long >(result));
14299 return resultobj;
14300fail:
14301 return NULL;
d55e5bfc
RD
14302}
14303
14304
554f62e9
RD
14305SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14306 PyObject *resultobj = 0;
14307 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14308 long result;
14309 void *argp1 = 0 ;
14310 int res1 = 0 ;
14311 PyObject *swig_obj[1] ;
14312
14313 if (!args) SWIG_fail;
14314 swig_obj[0] = args;
14315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14316 if (!SWIG_IsOK(res1)) {
14317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14318 }
14319 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14320 {
14321 PyThreadState* __tstate = wxPyBeginAllowThreads();
14322 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14323 wxPyEndAllowThreads(__tstate);
14324 if (PyErr_Occurred()) SWIG_fail;
14325 }
14326 resultobj = SWIG_From_long(static_cast< long >(result));
14327 return resultobj;
14328fail:
14329 return NULL;
d55e5bfc
RD
14330}
14331
14332
554f62e9
RD
14333SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14334 PyObject *obj;
14335 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14336 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14337 return SWIG_Py_Void();
d55e5bfc
RD
14338}
14339
554f62e9
RD
14340SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14341 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14342}
14343
554f62e9
RD
14344SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14345 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14346 return 1;
d55e5bfc
RD
14347}
14348
14349
554f62e9
RD
14350SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14351 PyObject *pyobj = 0;
14352
14353 {
14354#if wxUSE_UNICODE
14355 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14356#else
14357 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14358#endif
14359 }
14360 return pyobj;
14361}
14362
14363
14364SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14365 PyObject *resultobj = 0;
14366 wxWindow *arg1 = (wxWindow *) 0 ;
14367 int arg2 = (int) -1 ;
14368 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14369 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14370 wxSize const &arg4_defvalue = wxDefaultSize ;
14371 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14372 long arg5 = (long) wxSB_HORIZONTAL ;
14373 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14374 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14375 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14376 wxString *arg7 = (wxString *) &arg7_defvalue ;
14377 wxScrollBar *result = 0 ;
14378 void *argp1 = 0 ;
14379 int res1 = 0 ;
14380 int val2 ;
14381 int ecode2 = 0 ;
14382 wxPoint temp3 ;
14383 wxSize temp4 ;
14384 long val5 ;
14385 int ecode5 = 0 ;
14386 void *argp6 = 0 ;
14387 int res6 = 0 ;
14388 bool temp7 = false ;
14389 PyObject * obj0 = 0 ;
14390 PyObject * obj1 = 0 ;
14391 PyObject * obj2 = 0 ;
14392 PyObject * obj3 = 0 ;
14393 PyObject * obj4 = 0 ;
14394 PyObject * obj5 = 0 ;
14395 PyObject * obj6 = 0 ;
14396 char * kwnames[] = {
14397 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14398 };
14399
14400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14402 if (!SWIG_IsOK(res1)) {
14403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14404 }
14405 arg1 = reinterpret_cast< wxWindow * >(argp1);
14406 if (obj1) {
14407 ecode2 = SWIG_AsVal_int(obj1, &val2);
14408 if (!SWIG_IsOK(ecode2)) {
14409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14410 }
14411 arg2 = static_cast< int >(val2);
14412 }
14413 if (obj2) {
d55e5bfc 14414 {
554f62e9
RD
14415 arg3 = &temp3;
14416 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14417 }
554f62e9
RD
14418 }
14419 if (obj3) {
d55e5bfc 14420 {
554f62e9
RD
14421 arg4 = &temp4;
14422 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14423 }
554f62e9
RD
14424 }
14425 if (obj4) {
14426 ecode5 = SWIG_AsVal_long(obj4, &val5);
14427 if (!SWIG_IsOK(ecode5)) {
14428 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14429 }
14430 arg5 = static_cast< long >(val5);
14431 }
14432 if (obj5) {
14433 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14434 if (!SWIG_IsOK(res6)) {
14435 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14436 }
14437 if (!argp6) {
14438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14439 }
554f62e9
RD
14440 arg6 = reinterpret_cast< wxValidator * >(argp6);
14441 }
14442 if (obj6) {
d55e5bfc 14443 {
554f62e9
RD
14444 arg7 = wxString_in_helper(obj6);
14445 if (arg7 == NULL) SWIG_fail;
14446 temp7 = true;
d55e5bfc 14447 }
554f62e9
RD
14448 }
14449 {
14450 if (!wxPyCheckForApp()) SWIG_fail;
14451 PyThreadState* __tstate = wxPyBeginAllowThreads();
14452 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14453 wxPyEndAllowThreads(__tstate);
14454 if (PyErr_Occurred()) SWIG_fail;
14455 }
14456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14457 {
14458 if (temp7)
14459 delete arg7;
14460 }
14461 return resultobj;
14462fail:
14463 {
14464 if (temp7)
14465 delete arg7;
14466 }
14467 return NULL;
d55e5bfc
RD
14468}
14469
14470
554f62e9
RD
14471SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14472 PyObject *resultobj = 0;
14473 wxScrollBar *result = 0 ;
14474
14475 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14476 {
14477 if (!wxPyCheckForApp()) SWIG_fail;
14478 PyThreadState* __tstate = wxPyBeginAllowThreads();
14479 result = (wxScrollBar *)new wxScrollBar();
14480 wxPyEndAllowThreads(__tstate);
14481 if (PyErr_Occurred()) SWIG_fail;
14482 }
14483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14484 return resultobj;
14485fail:
14486 return NULL;
14487}
14488
14489
14490SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14491 PyObject *resultobj = 0;
14492 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14493 wxWindow *arg2 = (wxWindow *) 0 ;
14494 int arg3 = (int) -1 ;
14495 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14496 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14497 wxSize const &arg5_defvalue = wxDefaultSize ;
14498 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14499 long arg6 = (long) wxSB_HORIZONTAL ;
14500 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14501 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14502 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14503 wxString *arg8 = (wxString *) &arg8_defvalue ;
14504 bool result;
14505 void *argp1 = 0 ;
14506 int res1 = 0 ;
14507 void *argp2 = 0 ;
14508 int res2 = 0 ;
14509 int val3 ;
14510 int ecode3 = 0 ;
14511 wxPoint temp4 ;
14512 wxSize temp5 ;
14513 long val6 ;
14514 int ecode6 = 0 ;
14515 void *argp7 = 0 ;
14516 int res7 = 0 ;
14517 bool temp8 = false ;
14518 PyObject * obj0 = 0 ;
14519 PyObject * obj1 = 0 ;
14520 PyObject * obj2 = 0 ;
14521 PyObject * obj3 = 0 ;
14522 PyObject * obj4 = 0 ;
14523 PyObject * obj5 = 0 ;
14524 PyObject * obj6 = 0 ;
14525 PyObject * obj7 = 0 ;
14526 char * kwnames[] = {
14527 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14528 };
14529
14530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14532 if (!SWIG_IsOK(res1)) {
14533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14534 }
14535 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14536 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14537 if (!SWIG_IsOK(res2)) {
14538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14539 }
14540 arg2 = reinterpret_cast< wxWindow * >(argp2);
14541 if (obj2) {
14542 ecode3 = SWIG_AsVal_int(obj2, &val3);
14543 if (!SWIG_IsOK(ecode3)) {
14544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14545 }
14546 arg3 = static_cast< int >(val3);
14547 }
14548 if (obj3) {
d55e5bfc 14549 {
554f62e9
RD
14550 arg4 = &temp4;
14551 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14552 }
554f62e9
RD
14553 }
14554 if (obj4) {
093d3ff1 14555 {
554f62e9
RD
14556 arg5 = &temp5;
14557 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 14558 }
554f62e9
RD
14559 }
14560 if (obj5) {
14561 ecode6 = SWIG_AsVal_long(obj5, &val6);
14562 if (!SWIG_IsOK(ecode6)) {
14563 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14564 }
14565 arg6 = static_cast< long >(val6);
14566 }
14567 if (obj6) {
14568 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14569 if (!SWIG_IsOK(res7)) {
14570 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
a07a67e6 14571 }
554f62e9
RD
14572 if (!argp7) {
14573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14574 }
14575 arg7 = reinterpret_cast< wxValidator * >(argp7);
14576 }
14577 if (obj7) {
093d3ff1 14578 {
554f62e9
RD
14579 arg8 = wxString_in_helper(obj7);
14580 if (arg8 == NULL) SWIG_fail;
14581 temp8 = true;
093d3ff1 14582 }
554f62e9
RD
14583 }
14584 {
14585 PyThreadState* __tstate = wxPyBeginAllowThreads();
14586 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14587 wxPyEndAllowThreads(__tstate);
14588 if (PyErr_Occurred()) SWIG_fail;
14589 }
14590 {
14591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14592 }
14593 {
14594 if (temp8)
14595 delete arg8;
14596 }
14597 return resultobj;
14598fail:
14599 {
14600 if (temp8)
14601 delete arg8;
14602 }
14603 return NULL;
a07a67e6
RD
14604}
14605
14606
554f62e9
RD
14607SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14608 PyObject *resultobj = 0;
14609 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14610 int result;
14611 void *argp1 = 0 ;
14612 int res1 = 0 ;
14613 PyObject *swig_obj[1] ;
14614
14615 if (!args) SWIG_fail;
14616 swig_obj[0] = args;
14617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14618 if (!SWIG_IsOK(res1)) {
14619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14620 }
14621 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14622 {
14623 PyThreadState* __tstate = wxPyBeginAllowThreads();
14624 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14625 wxPyEndAllowThreads(__tstate);
14626 if (PyErr_Occurred()) SWIG_fail;
14627 }
14628 resultobj = SWIG_From_int(static_cast< int >(result));
14629 return resultobj;
14630fail:
14631 return NULL;
d55e5bfc
RD
14632}
14633
14634
554f62e9
RD
14635SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14636 PyObject *resultobj = 0;
14637 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14638 int result;
14639 void *argp1 = 0 ;
14640 int res1 = 0 ;
14641 PyObject *swig_obj[1] ;
14642
14643 if (!args) SWIG_fail;
14644 swig_obj[0] = args;
14645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14646 if (!SWIG_IsOK(res1)) {
14647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14648 }
14649 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14650 {
14651 PyThreadState* __tstate = wxPyBeginAllowThreads();
14652 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14653 wxPyEndAllowThreads(__tstate);
14654 if (PyErr_Occurred()) SWIG_fail;
14655 }
14656 resultobj = SWIG_From_int(static_cast< int >(result));
14657 return resultobj;
14658fail:
14659 return NULL;
d55e5bfc
RD
14660}
14661
14662
554f62e9
RD
14663SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14664 PyObject *resultobj = 0;
14665 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14666 int result;
14667 void *argp1 = 0 ;
14668 int res1 = 0 ;
14669 PyObject *swig_obj[1] ;
14670
14671 if (!args) SWIG_fail;
14672 swig_obj[0] = args;
14673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14674 if (!SWIG_IsOK(res1)) {
14675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14676 }
14677 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14678 {
14679 PyThreadState* __tstate = wxPyBeginAllowThreads();
14680 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14681 wxPyEndAllowThreads(__tstate);
14682 if (PyErr_Occurred()) SWIG_fail;
14683 }
14684 resultobj = SWIG_From_int(static_cast< int >(result));
14685 return resultobj;
14686fail:
14687 return NULL;
d55e5bfc
RD
14688}
14689
14690
554f62e9
RD
14691SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14692 PyObject *resultobj = 0;
14693 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14694 int result;
14695 void *argp1 = 0 ;
14696 int res1 = 0 ;
14697 PyObject *swig_obj[1] ;
14698
14699 if (!args) SWIG_fail;
14700 swig_obj[0] = args;
14701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14702 if (!SWIG_IsOK(res1)) {
14703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14704 }
14705 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14706 {
14707 PyThreadState* __tstate = wxPyBeginAllowThreads();
14708 result = (int)((wxScrollBar const *)arg1)->GetRange();
14709 wxPyEndAllowThreads(__tstate);
14710 if (PyErr_Occurred()) SWIG_fail;
14711 }
14712 resultobj = SWIG_From_int(static_cast< int >(result));
14713 return resultobj;
14714fail:
14715 return NULL;
d55e5bfc
RD
14716}
14717
14718
554f62e9
RD
14719SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14720 PyObject *resultobj = 0;
14721 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14722 bool result;
14723 void *argp1 = 0 ;
14724 int res1 = 0 ;
14725 PyObject *swig_obj[1] ;
14726
14727 if (!args) SWIG_fail;
14728 swig_obj[0] = args;
14729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14730 if (!SWIG_IsOK(res1)) {
14731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14732 }
14733 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14734 {
14735 PyThreadState* __tstate = wxPyBeginAllowThreads();
14736 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14737 wxPyEndAllowThreads(__tstate);
14738 if (PyErr_Occurred()) SWIG_fail;
14739 }
14740 {
14741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14742 }
14743 return resultobj;
14744fail:
14745 return NULL;
14746}
14747
14748
14749SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14750 PyObject *resultobj = 0;
14751 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14752 int arg2 ;
14753 void *argp1 = 0 ;
14754 int res1 = 0 ;
14755 int val2 ;
14756 int ecode2 = 0 ;
14757 PyObject * obj0 = 0 ;
14758 PyObject * obj1 = 0 ;
14759 char * kwnames[] = {
14760 (char *) "self",(char *) "viewStart", NULL
14761 };
14762
14763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14765 if (!SWIG_IsOK(res1)) {
14766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14767 }
14768 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14769 ecode2 = SWIG_AsVal_int(obj1, &val2);
14770 if (!SWIG_IsOK(ecode2)) {
14771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14772 }
14773 arg2 = static_cast< int >(val2);
14774 {
14775 PyThreadState* __tstate = wxPyBeginAllowThreads();
14776 (arg1)->SetThumbPosition(arg2);
14777 wxPyEndAllowThreads(__tstate);
14778 if (PyErr_Occurred()) SWIG_fail;
14779 }
14780 resultobj = SWIG_Py_Void();
14781 return resultobj;
14782fail:
14783 return NULL;
14784}
14785
14786
14787SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14788 PyObject *resultobj = 0;
14789 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14790 SwigValueWrapper<wxVisualAttributes > result;
14791 int val1 ;
14792 int ecode1 = 0 ;
14793 PyObject * obj0 = 0 ;
14794 char * kwnames[] = {
14795 (char *) "variant", NULL
14796 };
14797
14798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14799 if (obj0) {
14800 ecode1 = SWIG_AsVal_int(obj0, &val1);
14801 if (!SWIG_IsOK(ecode1)) {
14802 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14803 }
14804 arg1 = static_cast< wxWindowVariant >(val1);
14805 }
14806 {
14807 if (!wxPyCheckForApp()) SWIG_fail;
14808 PyThreadState* __tstate = wxPyBeginAllowThreads();
14809 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14810 wxPyEndAllowThreads(__tstate);
14811 if (PyErr_Occurred()) SWIG_fail;
14812 }
14813 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14814 return resultobj;
14815fail:
14816 return NULL;
d55e5bfc
RD
14817}
14818
14819
554f62e9
RD
14820SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14821 PyObject *obj;
14822 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14823 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14824 return SWIG_Py_Void();
d55e5bfc
RD
14825}
14826
554f62e9
RD
14827SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14828 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14829}
14830
554f62e9
RD
14831SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14832 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14833 return 1;
d55e5bfc
RD
14834}
14835
14836
554f62e9
RD
14837SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14838 PyObject *pyobj = 0;
14839
14840 {
d55e5bfc 14841#if wxUSE_UNICODE
554f62e9 14842 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14843#else
554f62e9 14844 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14845#endif
554f62e9
RD
14846 }
14847 return pyobj;
d55e5bfc
RD
14848}
14849
14850
554f62e9
RD
14851SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14852 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14853 return 1;
d55e5bfc
RD
14854}
14855
14856
554f62e9
RD
14857SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14858 PyObject *pyobj = 0;
14859
14860 {
d55e5bfc 14861#if wxUSE_UNICODE
554f62e9 14862 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
d55e5bfc 14863#else
554f62e9 14864 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
d55e5bfc 14865#endif
554f62e9
RD
14866 }
14867 return pyobj;
14868}
14869
14870
14871SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14872 PyObject *resultobj = 0;
14873 wxWindow *arg1 = (wxWindow *) 0 ;
14874 int arg2 = (int) -1 ;
14875 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14876 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14877 wxSize const &arg4_defvalue = wxDefaultSize ;
14878 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14879 long arg5 = (long) wxSP_HORIZONTAL ;
14880 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14881 wxString *arg6 = (wxString *) &arg6_defvalue ;
14882 wxSpinButton *result = 0 ;
14883 void *argp1 = 0 ;
14884 int res1 = 0 ;
14885 int val2 ;
14886 int ecode2 = 0 ;
14887 wxPoint temp3 ;
14888 wxSize temp4 ;
14889 long val5 ;
14890 int ecode5 = 0 ;
14891 bool temp6 = false ;
14892 PyObject * obj0 = 0 ;
14893 PyObject * obj1 = 0 ;
14894 PyObject * obj2 = 0 ;
14895 PyObject * obj3 = 0 ;
14896 PyObject * obj4 = 0 ;
14897 PyObject * obj5 = 0 ;
14898 char * kwnames[] = {
14899 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14900 };
14901
14902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14904 if (!SWIG_IsOK(res1)) {
14905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14906 }
14907 arg1 = reinterpret_cast< wxWindow * >(argp1);
14908 if (obj1) {
14909 ecode2 = SWIG_AsVal_int(obj1, &val2);
14910 if (!SWIG_IsOK(ecode2)) {
14911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14912 }
14913 arg2 = static_cast< int >(val2);
14914 }
14915 if (obj2) {
14916 {
14917 arg3 = &temp3;
14918 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14919 }
554f62e9
RD
14920 }
14921 if (obj3) {
d55e5bfc 14922 {
554f62e9
RD
14923 arg4 = &temp4;
14924 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14925 }
554f62e9
RD
14926 }
14927 if (obj4) {
14928 ecode5 = SWIG_AsVal_long(obj4, &val5);
14929 if (!SWIG_IsOK(ecode5)) {
14930 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14931 }
14932 arg5 = static_cast< long >(val5);
14933 }
14934 if (obj5) {
093d3ff1 14935 {
554f62e9
RD
14936 arg6 = wxString_in_helper(obj5);
14937 if (arg6 == NULL) SWIG_fail;
14938 temp6 = true;
093d3ff1 14939 }
554f62e9
RD
14940 }
14941 {
14942 if (!wxPyCheckForApp()) SWIG_fail;
14943 PyThreadState* __tstate = wxPyBeginAllowThreads();
14944 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14945 wxPyEndAllowThreads(__tstate);
14946 if (PyErr_Occurred()) SWIG_fail;
14947 }
14948 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14949 {
14950 if (temp6)
14951 delete arg6;
14952 }
14953 return resultobj;
14954fail:
14955 {
14956 if (temp6)
14957 delete arg6;
14958 }
14959 return NULL;
d55e5bfc
RD
14960}
14961
14962
554f62e9
RD
14963SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14964 PyObject *resultobj = 0;
14965 wxSpinButton *result = 0 ;
14966
14967 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14968 {
14969 if (!wxPyCheckForApp()) SWIG_fail;
14970 PyThreadState* __tstate = wxPyBeginAllowThreads();
14971 result = (wxSpinButton *)new wxSpinButton();
14972 wxPyEndAllowThreads(__tstate);
14973 if (PyErr_Occurred()) SWIG_fail;
14974 }
14975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14976 return resultobj;
14977fail:
14978 return NULL;
14979}
14980
14981
14982SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14983 PyObject *resultobj = 0;
14984 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14985 wxWindow *arg2 = (wxWindow *) 0 ;
14986 int arg3 = (int) -1 ;
14987 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14988 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14989 wxSize const &arg5_defvalue = wxDefaultSize ;
14990 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14991 long arg6 = (long) wxSP_HORIZONTAL ;
14992 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14993 wxString *arg7 = (wxString *) &arg7_defvalue ;
14994 bool result;
14995 void *argp1 = 0 ;
14996 int res1 = 0 ;
14997 void *argp2 = 0 ;
14998 int res2 = 0 ;
14999 int val3 ;
15000 int ecode3 = 0 ;
15001 wxPoint temp4 ;
15002 wxSize temp5 ;
15003 long val6 ;
15004 int ecode6 = 0 ;
15005 bool temp7 = false ;
15006 PyObject * obj0 = 0 ;
15007 PyObject * obj1 = 0 ;
15008 PyObject * obj2 = 0 ;
15009 PyObject * obj3 = 0 ;
15010 PyObject * obj4 = 0 ;
15011 PyObject * obj5 = 0 ;
15012 PyObject * obj6 = 0 ;
15013 char * kwnames[] = {
15014 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15015 };
15016
15017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15019 if (!SWIG_IsOK(res1)) {
15020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15021 }
15022 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15023 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15024 if (!SWIG_IsOK(res2)) {
15025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15026 }
15027 arg2 = reinterpret_cast< wxWindow * >(argp2);
15028 if (obj2) {
15029 ecode3 = SWIG_AsVal_int(obj2, &val3);
15030 if (!SWIG_IsOK(ecode3)) {
15031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
15032 }
15033 arg3 = static_cast< int >(val3);
15034 }
15035 if (obj3) {
d55e5bfc 15036 {
554f62e9
RD
15037 arg4 = &temp4;
15038 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15039 }
554f62e9
RD
15040 }
15041 if (obj4) {
d55e5bfc 15042 {
554f62e9
RD
15043 arg5 = &temp5;
15044 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15045 }
554f62e9
RD
15046 }
15047 if (obj5) {
15048 ecode6 = SWIG_AsVal_long(obj5, &val6);
15049 if (!SWIG_IsOK(ecode6)) {
15050 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
15051 }
15052 arg6 = static_cast< long >(val6);
15053 }
15054 if (obj6) {
d55e5bfc 15055 {
554f62e9
RD
15056 arg7 = wxString_in_helper(obj6);
15057 if (arg7 == NULL) SWIG_fail;
15058 temp7 = true;
d55e5bfc 15059 }
554f62e9
RD
15060 }
15061 {
15062 PyThreadState* __tstate = wxPyBeginAllowThreads();
15063 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15064 wxPyEndAllowThreads(__tstate);
15065 if (PyErr_Occurred()) SWIG_fail;
15066 }
15067 {
15068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15069 }
15070 {
15071 if (temp7)
15072 delete arg7;
15073 }
15074 return resultobj;
15075fail:
15076 {
15077 if (temp7)
15078 delete arg7;
15079 }
15080 return NULL;
d55e5bfc
RD
15081}
15082
15083
554f62e9
RD
15084SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15085 PyObject *resultobj = 0;
15086 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15087 int result;
15088 void *argp1 = 0 ;
15089 int res1 = 0 ;
15090 PyObject *swig_obj[1] ;
15091
15092 if (!args) SWIG_fail;
15093 swig_obj[0] = args;
15094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15095 if (!SWIG_IsOK(res1)) {
15096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15097 }
15098 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15099 {
15100 PyThreadState* __tstate = wxPyBeginAllowThreads();
15101 result = (int)((wxSpinButton const *)arg1)->GetValue();
15102 wxPyEndAllowThreads(__tstate);
15103 if (PyErr_Occurred()) SWIG_fail;
15104 }
15105 resultobj = SWIG_From_int(static_cast< int >(result));
15106 return resultobj;
15107fail:
15108 return NULL;
d55e5bfc
RD
15109}
15110
15111
554f62e9
RD
15112SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15113 PyObject *resultobj = 0;
15114 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15115 int result;
15116 void *argp1 = 0 ;
15117 int res1 = 0 ;
15118 PyObject *swig_obj[1] ;
15119
15120 if (!args) SWIG_fail;
15121 swig_obj[0] = args;
15122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15123 if (!SWIG_IsOK(res1)) {
15124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15125 }
15126 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15127 {
15128 PyThreadState* __tstate = wxPyBeginAllowThreads();
15129 result = (int)((wxSpinButton const *)arg1)->GetMin();
15130 wxPyEndAllowThreads(__tstate);
15131 if (PyErr_Occurred()) SWIG_fail;
15132 }
15133 resultobj = SWIG_From_int(static_cast< int >(result));
15134 return resultobj;
15135fail:
15136 return NULL;
d55e5bfc
RD
15137}
15138
15139
554f62e9
RD
15140SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15141 PyObject *resultobj = 0;
15142 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15143 int result;
15144 void *argp1 = 0 ;
15145 int res1 = 0 ;
15146 PyObject *swig_obj[1] ;
15147
15148 if (!args) SWIG_fail;
15149 swig_obj[0] = args;
15150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15151 if (!SWIG_IsOK(res1)) {
15152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15153 }
15154 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15155 {
15156 PyThreadState* __tstate = wxPyBeginAllowThreads();
15157 result = (int)((wxSpinButton const *)arg1)->GetMax();
15158 wxPyEndAllowThreads(__tstate);
15159 if (PyErr_Occurred()) SWIG_fail;
15160 }
15161 resultobj = SWIG_From_int(static_cast< int >(result));
15162 return resultobj;
15163fail:
15164 return NULL;
15165}
15166
15167
15168SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15169 PyObject *resultobj = 0;
15170 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15171 int arg2 ;
15172 void *argp1 = 0 ;
15173 int res1 = 0 ;
15174 int val2 ;
15175 int ecode2 = 0 ;
15176 PyObject * obj0 = 0 ;
15177 PyObject * obj1 = 0 ;
15178 char * kwnames[] = {
15179 (char *) "self",(char *) "val", NULL
15180 };
15181
15182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15184 if (!SWIG_IsOK(res1)) {
15185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15186 }
15187 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15188 ecode2 = SWIG_AsVal_int(obj1, &val2);
15189 if (!SWIG_IsOK(ecode2)) {
15190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15191 }
15192 arg2 = static_cast< int >(val2);
15193 {
15194 PyThreadState* __tstate = wxPyBeginAllowThreads();
15195 (arg1)->SetValue(arg2);
15196 wxPyEndAllowThreads(__tstate);
15197 if (PyErr_Occurred()) SWIG_fail;
15198 }
15199 resultobj = SWIG_Py_Void();
15200 return resultobj;
15201fail:
15202 return NULL;
15203}
15204
15205
15206SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15207 PyObject *resultobj = 0;
15208 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15209 int arg2 ;
15210 void *argp1 = 0 ;
15211 int res1 = 0 ;
15212 int val2 ;
15213 int ecode2 = 0 ;
15214 PyObject * obj0 = 0 ;
15215 PyObject * obj1 = 0 ;
15216 char * kwnames[] = {
15217 (char *) "self",(char *) "minVal", NULL
15218 };
15219
15220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15222 if (!SWIG_IsOK(res1)) {
15223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15224 }
15225 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15226 ecode2 = SWIG_AsVal_int(obj1, &val2);
15227 if (!SWIG_IsOK(ecode2)) {
15228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15229 }
15230 arg2 = static_cast< int >(val2);
15231 {
15232 PyThreadState* __tstate = wxPyBeginAllowThreads();
15233 (arg1)->SetMin(arg2);
15234 wxPyEndAllowThreads(__tstate);
15235 if (PyErr_Occurred()) SWIG_fail;
15236 }
15237 resultobj = SWIG_Py_Void();
15238 return resultobj;
15239fail:
15240 return NULL;
15241}
15242
15243
15244SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15245 PyObject *resultobj = 0;
15246 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15247 int arg2 ;
15248 void *argp1 = 0 ;
15249 int res1 = 0 ;
15250 int val2 ;
15251 int ecode2 = 0 ;
15252 PyObject * obj0 = 0 ;
15253 PyObject * obj1 = 0 ;
15254 char * kwnames[] = {
15255 (char *) "self",(char *) "maxVal", NULL
15256 };
15257
15258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15260 if (!SWIG_IsOK(res1)) {
15261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15262 }
15263 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15264 ecode2 = SWIG_AsVal_int(obj1, &val2);
15265 if (!SWIG_IsOK(ecode2)) {
15266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15267 }
15268 arg2 = static_cast< int >(val2);
15269 {
15270 PyThreadState* __tstate = wxPyBeginAllowThreads();
15271 (arg1)->SetMax(arg2);
15272 wxPyEndAllowThreads(__tstate);
15273 if (PyErr_Occurred()) SWIG_fail;
15274 }
15275 resultobj = SWIG_Py_Void();
15276 return resultobj;
15277fail:
15278 return NULL;
15279}
15280
15281
15282SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15283 PyObject *resultobj = 0;
15284 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15285 int arg2 ;
15286 int arg3 ;
15287 void *argp1 = 0 ;
15288 int res1 = 0 ;
15289 int val2 ;
15290 int ecode2 = 0 ;
15291 int val3 ;
15292 int ecode3 = 0 ;
15293 PyObject * obj0 = 0 ;
15294 PyObject * obj1 = 0 ;
15295 PyObject * obj2 = 0 ;
15296 char * kwnames[] = {
15297 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15298 };
15299
15300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15302 if (!SWIG_IsOK(res1)) {
15303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15304 }
15305 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15306 ecode2 = SWIG_AsVal_int(obj1, &val2);
15307 if (!SWIG_IsOK(ecode2)) {
15308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15309 }
15310 arg2 = static_cast< int >(val2);
15311 ecode3 = SWIG_AsVal_int(obj2, &val3);
15312 if (!SWIG_IsOK(ecode3)) {
15313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15314 }
15315 arg3 = static_cast< int >(val3);
15316 {
15317 PyThreadState* __tstate = wxPyBeginAllowThreads();
15318 (arg1)->SetRange(arg2,arg3);
15319 wxPyEndAllowThreads(__tstate);
15320 if (PyErr_Occurred()) SWIG_fail;
15321 }
15322 resultobj = SWIG_Py_Void();
15323 return resultobj;
15324fail:
15325 return NULL;
d55e5bfc
RD
15326}
15327
15328
554f62e9
RD
15329SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15330 PyObject *resultobj = 0;
15331 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15332 bool result;
15333 void *argp1 = 0 ;
15334 int res1 = 0 ;
15335 PyObject *swig_obj[1] ;
15336
15337 if (!args) SWIG_fail;
15338 swig_obj[0] = args;
15339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15340 if (!SWIG_IsOK(res1)) {
15341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15342 }
15343 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15344 {
15345 PyThreadState* __tstate = wxPyBeginAllowThreads();
15346 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15347 wxPyEndAllowThreads(__tstate);
15348 if (PyErr_Occurred()) SWIG_fail;
15349 }
15350 {
15351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15352 }
15353 return resultobj;
15354fail:
15355 return NULL;
d55e5bfc
RD
15356}
15357
15358
554f62e9
RD
15359SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15360 PyObject *resultobj = 0;
15361 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15362 SwigValueWrapper<wxVisualAttributes > result;
15363 int val1 ;
15364 int ecode1 = 0 ;
15365 PyObject * obj0 = 0 ;
15366 char * kwnames[] = {
15367 (char *) "variant", NULL
15368 };
15369
15370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15371 if (obj0) {
15372 ecode1 = SWIG_AsVal_int(obj0, &val1);
15373 if (!SWIG_IsOK(ecode1)) {
15374 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15375 }
15376 arg1 = static_cast< wxWindowVariant >(val1);
15377 }
15378 {
15379 if (!wxPyCheckForApp()) SWIG_fail;
15380 PyThreadState* __tstate = wxPyBeginAllowThreads();
15381 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15382 wxPyEndAllowThreads(__tstate);
15383 if (PyErr_Occurred()) SWIG_fail;
15384 }
15385 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15386 return resultobj;
15387fail:
15388 return NULL;
15389}
15390
15391
15392SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15393 PyObject *obj;
15394 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15395 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15396 return SWIG_Py_Void();
15397}
15398
15399SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15400 return SWIG_Python_InitShadowInstance(args);
15401}
15402
15403SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15404 PyObject *resultobj = 0;
15405 wxWindow *arg1 = (wxWindow *) 0 ;
15406 int arg2 = (int) -1 ;
15407 wxString const &arg3_defvalue = wxPyEmptyString ;
15408 wxString *arg3 = (wxString *) &arg3_defvalue ;
15409 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15410 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15411 wxSize const &arg5_defvalue = wxDefaultSize ;
15412 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15413 long arg6 = (long) wxSP_ARROW_KEYS ;
15414 int arg7 = (int) 0 ;
15415 int arg8 = (int) 100 ;
15416 int arg9 = (int) 0 ;
15417 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15418 wxString *arg10 = (wxString *) &arg10_defvalue ;
15419 wxSpinCtrl *result = 0 ;
15420 void *argp1 = 0 ;
15421 int res1 = 0 ;
15422 int val2 ;
15423 int ecode2 = 0 ;
15424 bool temp3 = false ;
15425 wxPoint temp4 ;
15426 wxSize temp5 ;
15427 long val6 ;
15428 int ecode6 = 0 ;
15429 int val7 ;
15430 int ecode7 = 0 ;
15431 int val8 ;
15432 int ecode8 = 0 ;
15433 int val9 ;
15434 int ecode9 = 0 ;
15435 bool temp10 = false ;
15436 PyObject * obj0 = 0 ;
15437 PyObject * obj1 = 0 ;
15438 PyObject * obj2 = 0 ;
15439 PyObject * obj3 = 0 ;
15440 PyObject * obj4 = 0 ;
15441 PyObject * obj5 = 0 ;
15442 PyObject * obj6 = 0 ;
15443 PyObject * obj7 = 0 ;
15444 PyObject * obj8 = 0 ;
15445 PyObject * obj9 = 0 ;
15446 char * kwnames[] = {
15447 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15448 };
15449
15450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15452 if (!SWIG_IsOK(res1)) {
15453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15454 }
15455 arg1 = reinterpret_cast< wxWindow * >(argp1);
15456 if (obj1) {
15457 ecode2 = SWIG_AsVal_int(obj1, &val2);
15458 if (!SWIG_IsOK(ecode2)) {
15459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15460 }
15461 arg2 = static_cast< int >(val2);
15462 }
15463 if (obj2) {
d55e5bfc 15464 {
554f62e9
RD
15465 arg3 = wxString_in_helper(obj2);
15466 if (arg3 == NULL) SWIG_fail;
15467 temp3 = true;
d55e5bfc 15468 }
554f62e9
RD
15469 }
15470 if (obj3) {
d55e5bfc 15471 {
554f62e9
RD
15472 arg4 = &temp4;
15473 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15474 }
554f62e9
RD
15475 }
15476 if (obj4) {
d55e5bfc 15477 {
554f62e9
RD
15478 arg5 = &temp5;
15479 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15480 }
554f62e9
RD
15481 }
15482 if (obj5) {
15483 ecode6 = SWIG_AsVal_long(obj5, &val6);
15484 if (!SWIG_IsOK(ecode6)) {
15485 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15486 }
15487 arg6 = static_cast< long >(val6);
15488 }
15489 if (obj6) {
15490 ecode7 = SWIG_AsVal_int(obj6, &val7);
15491 if (!SWIG_IsOK(ecode7)) {
15492 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15493 }
15494 arg7 = static_cast< int >(val7);
15495 }
15496 if (obj7) {
15497 ecode8 = SWIG_AsVal_int(obj7, &val8);
15498 if (!SWIG_IsOK(ecode8)) {
15499 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15500 }
15501 arg8 = static_cast< int >(val8);
15502 }
15503 if (obj8) {
15504 ecode9 = SWIG_AsVal_int(obj8, &val9);
15505 if (!SWIG_IsOK(ecode9)) {
15506 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15507 }
15508 arg9 = static_cast< int >(val9);
15509 }
15510 if (obj9) {
d55e5bfc 15511 {
554f62e9
RD
15512 arg10 = wxString_in_helper(obj9);
15513 if (arg10 == NULL) SWIG_fail;
15514 temp10 = true;
d55e5bfc 15515 }
554f62e9
RD
15516 }
15517 {
15518 if (!wxPyCheckForApp()) SWIG_fail;
15519 PyThreadState* __tstate = wxPyBeginAllowThreads();
15520 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15521 wxPyEndAllowThreads(__tstate);
15522 if (PyErr_Occurred()) SWIG_fail;
15523 }
15524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15525 {
15526 if (temp3)
15527 delete arg3;
15528 }
15529 {
15530 if (temp10)
15531 delete arg10;
15532 }
15533 return resultobj;
15534fail:
15535 {
15536 if (temp3)
15537 delete arg3;
15538 }
15539 {
15540 if (temp10)
15541 delete arg10;
15542 }
15543 return NULL;
d55e5bfc
RD
15544}
15545
15546
554f62e9
RD
15547SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15548 PyObject *resultobj = 0;
15549 wxSpinCtrl *result = 0 ;
15550
15551 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15552 {
15553 if (!wxPyCheckForApp()) SWIG_fail;
15554 PyThreadState* __tstate = wxPyBeginAllowThreads();
15555 result = (wxSpinCtrl *)new wxSpinCtrl();
15556 wxPyEndAllowThreads(__tstate);
15557 if (PyErr_Occurred()) SWIG_fail;
15558 }
15559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15560 return resultobj;
15561fail:
15562 return NULL;
15563}
15564
15565
15566SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15567 PyObject *resultobj = 0;
15568 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15569 wxWindow *arg2 = (wxWindow *) 0 ;
15570 int arg3 = (int) -1 ;
15571 wxString const &arg4_defvalue = wxPyEmptyString ;
15572 wxString *arg4 = (wxString *) &arg4_defvalue ;
15573 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15574 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15575 wxSize const &arg6_defvalue = wxDefaultSize ;
15576 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15577 long arg7 = (long) wxSP_ARROW_KEYS ;
15578 int arg8 = (int) 0 ;
15579 int arg9 = (int) 100 ;
15580 int arg10 = (int) 0 ;
15581 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15582 wxString *arg11 = (wxString *) &arg11_defvalue ;
15583 bool result;
15584 void *argp1 = 0 ;
15585 int res1 = 0 ;
15586 void *argp2 = 0 ;
15587 int res2 = 0 ;
15588 int val3 ;
15589 int ecode3 = 0 ;
15590 bool temp4 = false ;
15591 wxPoint temp5 ;
15592 wxSize temp6 ;
15593 long val7 ;
15594 int ecode7 = 0 ;
15595 int val8 ;
15596 int ecode8 = 0 ;
15597 int val9 ;
15598 int ecode9 = 0 ;
15599 int val10 ;
15600 int ecode10 = 0 ;
15601 bool temp11 = false ;
15602 PyObject * obj0 = 0 ;
15603 PyObject * obj1 = 0 ;
15604 PyObject * obj2 = 0 ;
15605 PyObject * obj3 = 0 ;
15606 PyObject * obj4 = 0 ;
15607 PyObject * obj5 = 0 ;
15608 PyObject * obj6 = 0 ;
15609 PyObject * obj7 = 0 ;
15610 PyObject * obj8 = 0 ;
15611 PyObject * obj9 = 0 ;
15612 PyObject * obj10 = 0 ;
15613 char * kwnames[] = {
15614 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15615 };
15616
15617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15619 if (!SWIG_IsOK(res1)) {
15620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15621 }
15622 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15623 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15624 if (!SWIG_IsOK(res2)) {
15625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15626 }
15627 arg2 = reinterpret_cast< wxWindow * >(argp2);
15628 if (obj2) {
15629 ecode3 = SWIG_AsVal_int(obj2, &val3);
15630 if (!SWIG_IsOK(ecode3)) {
15631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15632 }
15633 arg3 = static_cast< int >(val3);
15634 }
15635 if (obj3) {
093d3ff1 15636 {
554f62e9
RD
15637 arg4 = wxString_in_helper(obj3);
15638 if (arg4 == NULL) SWIG_fail;
15639 temp4 = true;
093d3ff1 15640 }
554f62e9
RD
15641 }
15642 if (obj4) {
093d3ff1 15643 {
554f62e9
RD
15644 arg5 = &temp5;
15645 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 15646 }
554f62e9
RD
15647 }
15648 if (obj5) {
d55e5bfc 15649 {
554f62e9
RD
15650 arg6 = &temp6;
15651 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 15652 }
554f62e9
RD
15653 }
15654 if (obj6) {
15655 ecode7 = SWIG_AsVal_long(obj6, &val7);
15656 if (!SWIG_IsOK(ecode7)) {
15657 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15658 }
15659 arg7 = static_cast< long >(val7);
15660 }
15661 if (obj7) {
15662 ecode8 = SWIG_AsVal_int(obj7, &val8);
15663 if (!SWIG_IsOK(ecode8)) {
15664 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15665 }
15666 arg8 = static_cast< int >(val8);
15667 }
15668 if (obj8) {
15669 ecode9 = SWIG_AsVal_int(obj8, &val9);
15670 if (!SWIG_IsOK(ecode9)) {
15671 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15672 }
15673 arg9 = static_cast< int >(val9);
15674 }
15675 if (obj9) {
15676 ecode10 = SWIG_AsVal_int(obj9, &val10);
15677 if (!SWIG_IsOK(ecode10)) {
15678 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15679 }
15680 arg10 = static_cast< int >(val10);
15681 }
15682 if (obj10) {
15683 {
15684 arg11 = wxString_in_helper(obj10);
15685 if (arg11 == NULL) SWIG_fail;
15686 temp11 = true;
15687 }
15688 }
15689 {
15690 PyThreadState* __tstate = wxPyBeginAllowThreads();
15691 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15692 wxPyEndAllowThreads(__tstate);
15693 if (PyErr_Occurred()) SWIG_fail;
15694 }
15695 {
15696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15697 }
15698 {
15699 if (temp4)
15700 delete arg4;
15701 }
15702 {
15703 if (temp11)
15704 delete arg11;
15705 }
15706 return resultobj;
15707fail:
15708 {
15709 if (temp4)
15710 delete arg4;
15711 }
15712 {
15713 if (temp11)
15714 delete arg11;
15715 }
15716 return NULL;
d55e5bfc
RD
15717}
15718
15719
554f62e9
RD
15720SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15721 PyObject *resultobj = 0;
15722 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15723 int result;
15724 void *argp1 = 0 ;
15725 int res1 = 0 ;
15726 PyObject *swig_obj[1] ;
15727
15728 if (!args) SWIG_fail;
15729 swig_obj[0] = args;
15730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15731 if (!SWIG_IsOK(res1)) {
15732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15733 }
15734 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15735 {
15736 PyThreadState* __tstate = wxPyBeginAllowThreads();
15737 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15738 wxPyEndAllowThreads(__tstate);
15739 if (PyErr_Occurred()) SWIG_fail;
15740 }
15741 resultobj = SWIG_From_int(static_cast< int >(result));
15742 return resultobj;
15743fail:
15744 return NULL;
15745}
15746
15747
15748SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15749 PyObject *resultobj = 0;
15750 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15751 int arg2 ;
15752 void *argp1 = 0 ;
15753 int res1 = 0 ;
15754 int val2 ;
15755 int ecode2 = 0 ;
15756 PyObject * obj0 = 0 ;
15757 PyObject * obj1 = 0 ;
15758 char * kwnames[] = {
15759 (char *) "self",(char *) "value", NULL
15760 };
15761
15762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15764 if (!SWIG_IsOK(res1)) {
15765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15766 }
15767 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15768 ecode2 = SWIG_AsVal_int(obj1, &val2);
15769 if (!SWIG_IsOK(ecode2)) {
15770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15771 }
15772 arg2 = static_cast< int >(val2);
15773 {
15774 PyThreadState* __tstate = wxPyBeginAllowThreads();
15775 (arg1)->SetValue(arg2);
15776 wxPyEndAllowThreads(__tstate);
15777 if (PyErr_Occurred()) SWIG_fail;
15778 }
15779 resultobj = SWIG_Py_Void();
15780 return resultobj;
15781fail:
15782 return NULL;
15783}
15784
15785
15786SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15787 PyObject *resultobj = 0;
15788 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15789 wxString *arg2 = 0 ;
15790 void *argp1 = 0 ;
15791 int res1 = 0 ;
15792 bool temp2 = false ;
15793 PyObject * obj0 = 0 ;
15794 PyObject * obj1 = 0 ;
15795 char * kwnames[] = {
15796 (char *) "self",(char *) "text", NULL
15797 };
15798
15799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15801 if (!SWIG_IsOK(res1)) {
15802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15803 }
15804 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15805 {
15806 arg2 = wxString_in_helper(obj1);
15807 if (arg2 == NULL) SWIG_fail;
15808 temp2 = true;
15809 }
15810 {
15811 PyThreadState* __tstate = wxPyBeginAllowThreads();
15812 (arg1)->SetValue((wxString const &)*arg2);
15813 wxPyEndAllowThreads(__tstate);
15814 if (PyErr_Occurred()) SWIG_fail;
15815 }
15816 resultobj = SWIG_Py_Void();
15817 {
15818 if (temp2)
15819 delete arg2;
15820 }
15821 return resultobj;
15822fail:
15823 {
15824 if (temp2)
15825 delete arg2;
15826 }
15827 return NULL;
15828}
15829
15830
15831SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15832 PyObject *resultobj = 0;
15833 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15834 int arg2 ;
15835 int arg3 ;
15836 void *argp1 = 0 ;
15837 int res1 = 0 ;
15838 int val2 ;
15839 int ecode2 = 0 ;
15840 int val3 ;
15841 int ecode3 = 0 ;
15842 PyObject * obj0 = 0 ;
15843 PyObject * obj1 = 0 ;
15844 PyObject * obj2 = 0 ;
15845 char * kwnames[] = {
15846 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15847 };
15848
15849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15851 if (!SWIG_IsOK(res1)) {
15852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15853 }
15854 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15855 ecode2 = SWIG_AsVal_int(obj1, &val2);
15856 if (!SWIG_IsOK(ecode2)) {
15857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15858 }
15859 arg2 = static_cast< int >(val2);
15860 ecode3 = SWIG_AsVal_int(obj2, &val3);
15861 if (!SWIG_IsOK(ecode3)) {
15862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15863 }
15864 arg3 = static_cast< int >(val3);
15865 {
15866 PyThreadState* __tstate = wxPyBeginAllowThreads();
15867 (arg1)->SetRange(arg2,arg3);
15868 wxPyEndAllowThreads(__tstate);
15869 if (PyErr_Occurred()) SWIG_fail;
15870 }
15871 resultobj = SWIG_Py_Void();
15872 return resultobj;
15873fail:
15874 return NULL;
d55e5bfc
RD
15875}
15876
15877
554f62e9
RD
15878SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15879 PyObject *resultobj = 0;
15880 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15881 int result;
15882 void *argp1 = 0 ;
15883 int res1 = 0 ;
15884 PyObject *swig_obj[1] ;
15885
15886 if (!args) SWIG_fail;
15887 swig_obj[0] = args;
15888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15889 if (!SWIG_IsOK(res1)) {
15890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15891 }
15892 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15893 {
15894 PyThreadState* __tstate = wxPyBeginAllowThreads();
15895 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15896 wxPyEndAllowThreads(__tstate);
15897 if (PyErr_Occurred()) SWIG_fail;
15898 }
15899 resultobj = SWIG_From_int(static_cast< int >(result));
15900 return resultobj;
15901fail:
15902 return NULL;
d55e5bfc
RD
15903}
15904
15905
554f62e9
RD
15906SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15907 PyObject *resultobj = 0;
15908 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15909 int result;
15910 void *argp1 = 0 ;
15911 int res1 = 0 ;
15912 PyObject *swig_obj[1] ;
15913
15914 if (!args) SWIG_fail;
15915 swig_obj[0] = args;
15916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15917 if (!SWIG_IsOK(res1)) {
15918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15919 }
15920 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15921 {
15922 PyThreadState* __tstate = wxPyBeginAllowThreads();
15923 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15924 wxPyEndAllowThreads(__tstate);
15925 if (PyErr_Occurred()) SWIG_fail;
15926 }
15927 resultobj = SWIG_From_int(static_cast< int >(result));
15928 return resultobj;
15929fail:
15930 return NULL;
15931}
15932
15933
15934SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15935 PyObject *resultobj = 0;
15936 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15937 long arg2 ;
15938 long arg3 ;
15939 void *argp1 = 0 ;
15940 int res1 = 0 ;
15941 long val2 ;
15942 int ecode2 = 0 ;
15943 long val3 ;
15944 int ecode3 = 0 ;
15945 PyObject * obj0 = 0 ;
15946 PyObject * obj1 = 0 ;
15947 PyObject * obj2 = 0 ;
15948 char * kwnames[] = {
f460c29d 15949 (char *) "self",(char *) "from",(char *) "to", NULL
554f62e9
RD
15950 };
15951
15952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15954 if (!SWIG_IsOK(res1)) {
15955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15956 }
15957 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15958 ecode2 = SWIG_AsVal_long(obj1, &val2);
15959 if (!SWIG_IsOK(ecode2)) {
15960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15961 }
15962 arg2 = static_cast< long >(val2);
15963 ecode3 = SWIG_AsVal_long(obj2, &val3);
15964 if (!SWIG_IsOK(ecode3)) {
15965 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15966 }
15967 arg3 = static_cast< long >(val3);
15968 {
15969 PyThreadState* __tstate = wxPyBeginAllowThreads();
15970 (arg1)->SetSelection(arg2,arg3);
15971 wxPyEndAllowThreads(__tstate);
15972 if (PyErr_Occurred()) SWIG_fail;
15973 }
15974 resultobj = SWIG_Py_Void();
15975 return resultobj;
15976fail:
15977 return NULL;
15978}
15979
15980
15981SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15982 PyObject *resultobj = 0;
15983 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15984 SwigValueWrapper<wxVisualAttributes > result;
15985 int val1 ;
15986 int ecode1 = 0 ;
15987 PyObject * obj0 = 0 ;
15988 char * kwnames[] = {
15989 (char *) "variant", NULL
15990 };
15991
15992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15993 if (obj0) {
15994 ecode1 = SWIG_AsVal_int(obj0, &val1);
15995 if (!SWIG_IsOK(ecode1)) {
15996 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15997 }
15998 arg1 = static_cast< wxWindowVariant >(val1);
15999 }
16000 {
16001 if (!wxPyCheckForApp()) SWIG_fail;
16002 PyThreadState* __tstate = wxPyBeginAllowThreads();
16003 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
16004 wxPyEndAllowThreads(__tstate);
16005 if (PyErr_Occurred()) SWIG_fail;
16006 }
16007 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16008 return resultobj;
16009fail:
16010 return NULL;
d55e5bfc
RD
16011}
16012
16013
554f62e9
RD
16014SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16015 PyObject *obj;
16016 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16017 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
16018 return SWIG_Py_Void();
d55e5bfc
RD
16019}
16020
554f62e9
RD
16021SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16022 return SWIG_Python_InitShadowInstance(args);
16023}
d55e5bfc 16024
554f62e9
RD
16025SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16026 PyObject *resultobj = 0;
16027 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16028 int arg2 = (int) 0 ;
16029 wxSpinEvent *result = 0 ;
16030 int val1 ;
16031 int ecode1 = 0 ;
16032 int val2 ;
16033 int ecode2 = 0 ;
16034 PyObject * obj0 = 0 ;
16035 PyObject * obj1 = 0 ;
16036 char * kwnames[] = {
16037 (char *) "commandType",(char *) "winid", NULL
16038 };
16039
16040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
16041 if (obj0) {
16042 ecode1 = SWIG_AsVal_int(obj0, &val1);
16043 if (!SWIG_IsOK(ecode1)) {
16044 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
16045 }
16046 arg1 = static_cast< wxEventType >(val1);
16047 }
16048 if (obj1) {
16049 ecode2 = SWIG_AsVal_int(obj1, &val2);
16050 if (!SWIG_IsOK(ecode2)) {
16051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
16052 }
16053 arg2 = static_cast< int >(val2);
16054 }
16055 {
16056 PyThreadState* __tstate = wxPyBeginAllowThreads();
16057 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
16058 wxPyEndAllowThreads(__tstate);
16059 if (PyErr_Occurred()) SWIG_fail;
16060 }
16061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
16062 return resultobj;
16063fail:
16064 return NULL;
d55e5bfc
RD
16065}
16066
16067
554f62e9
RD
16068SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16069 PyObject *resultobj = 0;
16070 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16071 int result;
16072 void *argp1 = 0 ;
16073 int res1 = 0 ;
16074 PyObject *swig_obj[1] ;
16075
16076 if (!args) SWIG_fail;
16077 swig_obj[0] = args;
16078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16079 if (!SWIG_IsOK(res1)) {
16080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
16081 }
16082 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16083 {
16084 PyThreadState* __tstate = wxPyBeginAllowThreads();
16085 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
16086 wxPyEndAllowThreads(__tstate);
16087 if (PyErr_Occurred()) SWIG_fail;
16088 }
16089 resultobj = SWIG_From_int(static_cast< int >(result));
16090 return resultobj;
16091fail:
16092 return NULL;
16093}
16094
16095
16096SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16097 PyObject *resultobj = 0;
16098 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16099 int arg2 ;
16100 void *argp1 = 0 ;
16101 int res1 = 0 ;
16102 int val2 ;
16103 int ecode2 = 0 ;
16104 PyObject * obj0 = 0 ;
16105 PyObject * obj1 = 0 ;
16106 char * kwnames[] = {
16107 (char *) "self",(char *) "pos", NULL
16108 };
16109
16110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
16111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16112 if (!SWIG_IsOK(res1)) {
16113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
16114 }
16115 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16116 ecode2 = SWIG_AsVal_int(obj1, &val2);
16117 if (!SWIG_IsOK(ecode2)) {
16118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
16119 }
16120 arg2 = static_cast< int >(val2);
16121 {
16122 PyThreadState* __tstate = wxPyBeginAllowThreads();
16123 (arg1)->SetPosition(arg2);
16124 wxPyEndAllowThreads(__tstate);
16125 if (PyErr_Occurred()) SWIG_fail;
16126 }
16127 resultobj = SWIG_Py_Void();
16128 return resultobj;
16129fail:
16130 return NULL;
d55e5bfc
RD
16131}
16132
16133
554f62e9
RD
16134SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16135 PyObject *obj;
16136 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16137 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
16138 return SWIG_Py_Void();
d55e5bfc
RD
16139}
16140
554f62e9
RD
16141SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16142 return SWIG_Python_InitShadowInstance(args);
16143}
d55e5bfc 16144
554f62e9
RD
16145SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
16146 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
16147 return 1;
d55e5bfc
RD
16148}
16149
16150
554f62e9
RD
16151SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16152 PyObject *pyobj = 0;
16153
16154 {
16155#if wxUSE_UNICODE
16156 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16157#else
16158 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16159#endif
16160 }
16161 return pyobj;
d55e5bfc
RD
16162}
16163
16164
554f62e9
RD
16165SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16166 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16167 return 1;
16168}
16169
16170
16171SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16172 PyObject *pyobj = 0;
16173
16174 {
16175#if wxUSE_UNICODE
16176 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16177#else
16178 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16179#endif
16180 }
16181 return pyobj;
16182}
16183
16184
16185SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16186 PyObject *resultobj = 0;
16187 wxWindow *arg1 = (wxWindow *) 0 ;
16188 int arg2 = (int) -1 ;
16189 wxString const &arg3_defvalue = wxPyEmptyString ;
16190 wxString *arg3 = (wxString *) &arg3_defvalue ;
16191 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16192 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16193 wxSize const &arg5_defvalue = wxDefaultSize ;
16194 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16195 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16196 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16197 int arg7 = (int) 0 ;
16198 long arg8 = (long) wxRA_HORIZONTAL ;
16199 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16200 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16201 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16202 wxString *arg10 = (wxString *) &arg10_defvalue ;
16203 wxRadioBox *result = 0 ;
16204 void *argp1 = 0 ;
16205 int res1 = 0 ;
16206 int val2 ;
16207 int ecode2 = 0 ;
16208 bool temp3 = false ;
16209 wxPoint temp4 ;
16210 wxSize temp5 ;
16211 bool temp6 = false ;
16212 int val7 ;
16213 int ecode7 = 0 ;
16214 long val8 ;
16215 int ecode8 = 0 ;
16216 void *argp9 = 0 ;
16217 int res9 = 0 ;
16218 bool temp10 = false ;
16219 PyObject * obj0 = 0 ;
16220 PyObject * obj1 = 0 ;
16221 PyObject * obj2 = 0 ;
16222 PyObject * obj3 = 0 ;
16223 PyObject * obj4 = 0 ;
16224 PyObject * obj5 = 0 ;
16225 PyObject * obj6 = 0 ;
16226 PyObject * obj7 = 0 ;
16227 PyObject * obj8 = 0 ;
16228 PyObject * obj9 = 0 ;
16229 char * kwnames[] = {
16230 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16231 };
16232
16233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16235 if (!SWIG_IsOK(res1)) {
16236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16237 }
16238 arg1 = reinterpret_cast< wxWindow * >(argp1);
16239 if (obj1) {
16240 ecode2 = SWIG_AsVal_int(obj1, &val2);
16241 if (!SWIG_IsOK(ecode2)) {
16242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16243 }
16244 arg2 = static_cast< int >(val2);
16245 }
16246 if (obj2) {
093d3ff1 16247 {
554f62e9
RD
16248 arg3 = wxString_in_helper(obj2);
16249 if (arg3 == NULL) SWIG_fail;
16250 temp3 = true;
093d3ff1 16251 }
554f62e9
RD
16252 }
16253 if (obj3) {
093d3ff1 16254 {
554f62e9
RD
16255 arg4 = &temp4;
16256 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 16257 }
554f62e9
RD
16258 }
16259 if (obj4) {
d55e5bfc 16260 {
554f62e9
RD
16261 arg5 = &temp5;
16262 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16263 }
554f62e9
RD
16264 }
16265 if (obj5) {
d55e5bfc 16266 {
554f62e9
RD
16267 if (! PySequence_Check(obj5)) {
16268 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16269 SWIG_fail;
16270 }
16271 arg6 = new wxArrayString;
16272 temp6 = true;
16273 int i, len=PySequence_Length(obj5);
16274 for (i=0; i<len; i++) {
16275 PyObject* item = PySequence_GetItem(obj5, i);
16276 wxString* s = wxString_in_helper(item);
16277 if (PyErr_Occurred()) SWIG_fail;
16278 arg6->Add(*s);
16279 delete s;
16280 Py_DECREF(item);
16281 }
d55e5bfc 16282 }
554f62e9
RD
16283 }
16284 if (obj6) {
16285 ecode7 = SWIG_AsVal_int(obj6, &val7);
16286 if (!SWIG_IsOK(ecode7)) {
16287 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16288 }
16289 arg7 = static_cast< int >(val7);
16290 }
16291 if (obj7) {
16292 ecode8 = SWIG_AsVal_long(obj7, &val8);
16293 if (!SWIG_IsOK(ecode8)) {
16294 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16295 }
16296 arg8 = static_cast< long >(val8);
16297 }
16298 if (obj8) {
16299 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16300 if (!SWIG_IsOK(res9)) {
16301 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16302 }
554f62e9
RD
16303 if (!argp9) {
16304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16305 }
554f62e9
RD
16306 arg9 = reinterpret_cast< wxValidator * >(argp9);
16307 }
16308 if (obj9) {
d55e5bfc 16309 {
554f62e9
RD
16310 arg10 = wxString_in_helper(obj9);
16311 if (arg10 == NULL) SWIG_fail;
16312 temp10 = true;
d55e5bfc 16313 }
554f62e9
RD
16314 }
16315 {
16316 if (!wxPyCheckForApp()) SWIG_fail;
16317 PyThreadState* __tstate = wxPyBeginAllowThreads();
16318 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);
16319 wxPyEndAllowThreads(__tstate);
16320 if (PyErr_Occurred()) SWIG_fail;
16321 }
16322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16323 {
16324 if (temp3)
16325 delete arg3;
16326 }
16327 {
16328 if (temp6) delete arg6;
16329 }
16330 {
16331 if (temp10)
16332 delete arg10;
16333 }
16334 return resultobj;
16335fail:
16336 {
16337 if (temp3)
16338 delete arg3;
16339 }
16340 {
16341 if (temp6) delete arg6;
16342 }
16343 {
16344 if (temp10)
16345 delete arg10;
16346 }
16347 return NULL;
d55e5bfc
RD
16348}
16349
16350
554f62e9
RD
16351SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16352 PyObject *resultobj = 0;
16353 wxRadioBox *result = 0 ;
16354
16355 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16356 {
16357 if (!wxPyCheckForApp()) SWIG_fail;
16358 PyThreadState* __tstate = wxPyBeginAllowThreads();
16359 result = (wxRadioBox *)new wxRadioBox();
16360 wxPyEndAllowThreads(__tstate);
16361 if (PyErr_Occurred()) SWIG_fail;
16362 }
16363 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16364 return resultobj;
16365fail:
16366 return NULL;
16367}
16368
16369
16370SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16371 PyObject *resultobj = 0;
16372 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16373 wxWindow *arg2 = (wxWindow *) 0 ;
16374 int arg3 = (int) -1 ;
16375 wxString const &arg4_defvalue = wxPyEmptyString ;
16376 wxString *arg4 = (wxString *) &arg4_defvalue ;
16377 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16378 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16379 wxSize const &arg6_defvalue = wxDefaultSize ;
16380 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16381 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16382 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16383 int arg8 = (int) 0 ;
16384 long arg9 = (long) wxRA_HORIZONTAL ;
16385 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16386 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16387 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16388 wxString *arg11 = (wxString *) &arg11_defvalue ;
16389 bool result;
16390 void *argp1 = 0 ;
16391 int res1 = 0 ;
16392 void *argp2 = 0 ;
16393 int res2 = 0 ;
16394 int val3 ;
16395 int ecode3 = 0 ;
16396 bool temp4 = false ;
16397 wxPoint temp5 ;
16398 wxSize temp6 ;
16399 bool temp7 = false ;
16400 int val8 ;
16401 int ecode8 = 0 ;
16402 long val9 ;
16403 int ecode9 = 0 ;
16404 void *argp10 = 0 ;
16405 int res10 = 0 ;
16406 bool temp11 = false ;
16407 PyObject * obj0 = 0 ;
16408 PyObject * obj1 = 0 ;
16409 PyObject * obj2 = 0 ;
16410 PyObject * obj3 = 0 ;
16411 PyObject * obj4 = 0 ;
16412 PyObject * obj5 = 0 ;
16413 PyObject * obj6 = 0 ;
16414 PyObject * obj7 = 0 ;
16415 PyObject * obj8 = 0 ;
16416 PyObject * obj9 = 0 ;
16417 PyObject * obj10 = 0 ;
16418 char * kwnames[] = {
16419 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16420 };
16421
16422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16424 if (!SWIG_IsOK(res1)) {
16425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16426 }
16427 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16428 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16429 if (!SWIG_IsOK(res2)) {
16430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16431 }
16432 arg2 = reinterpret_cast< wxWindow * >(argp2);
16433 if (obj2) {
16434 ecode3 = SWIG_AsVal_int(obj2, &val3);
16435 if (!SWIG_IsOK(ecode3)) {
16436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16437 }
16438 arg3 = static_cast< int >(val3);
16439 }
16440 if (obj3) {
093d3ff1 16441 {
554f62e9
RD
16442 arg4 = wxString_in_helper(obj3);
16443 if (arg4 == NULL) SWIG_fail;
16444 temp4 = true;
093d3ff1 16445 }
554f62e9
RD
16446 }
16447 if (obj4) {
d55e5bfc 16448 {
554f62e9
RD
16449 arg5 = &temp5;
16450 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16451 }
554f62e9
RD
16452 }
16453 if (obj5) {
093d3ff1 16454 {
554f62e9
RD
16455 arg6 = &temp6;
16456 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 16457 }
554f62e9
RD
16458 }
16459 if (obj6) {
093d3ff1 16460 {
554f62e9
RD
16461 if (! PySequence_Check(obj6)) {
16462 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16463 SWIG_fail;
16464 }
16465 arg7 = new wxArrayString;
16466 temp7 = true;
16467 int i, len=PySequence_Length(obj6);
16468 for (i=0; i<len; i++) {
16469 PyObject* item = PySequence_GetItem(obj6, i);
16470 wxString* s = wxString_in_helper(item);
16471 if (PyErr_Occurred()) SWIG_fail;
16472 arg7->Add(*s);
16473 delete s;
16474 Py_DECREF(item);
16475 }
093d3ff1 16476 }
554f62e9
RD
16477 }
16478 if (obj7) {
16479 ecode8 = SWIG_AsVal_int(obj7, &val8);
16480 if (!SWIG_IsOK(ecode8)) {
16481 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16482 }
16483 arg8 = static_cast< int >(val8);
16484 }
16485 if (obj8) {
16486 ecode9 = SWIG_AsVal_long(obj8, &val9);
16487 if (!SWIG_IsOK(ecode9)) {
16488 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16489 }
16490 arg9 = static_cast< long >(val9);
16491 }
16492 if (obj9) {
16493 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16494 if (!SWIG_IsOK(res10)) {
16495 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
093d3ff1 16496 }
554f62e9
RD
16497 if (!argp10) {
16498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 16499 }
554f62e9
RD
16500 arg10 = reinterpret_cast< wxValidator * >(argp10);
16501 }
16502 if (obj10) {
d55e5bfc 16503 {
554f62e9
RD
16504 arg11 = wxString_in_helper(obj10);
16505 if (arg11 == NULL) SWIG_fail;
16506 temp11 = true;
d55e5bfc 16507 }
554f62e9
RD
16508 }
16509 {
16510 PyThreadState* __tstate = wxPyBeginAllowThreads();
16511 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);
16512 wxPyEndAllowThreads(__tstate);
16513 if (PyErr_Occurred()) SWIG_fail;
16514 }
16515 {
16516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16517 }
16518 {
16519 if (temp4)
16520 delete arg4;
16521 }
16522 {
16523 if (temp7) delete arg7;
16524 }
16525 {
16526 if (temp11)
16527 delete arg11;
16528 }
16529 return resultobj;
16530fail:
16531 {
16532 if (temp4)
16533 delete arg4;
16534 }
16535 {
16536 if (temp7) delete arg7;
16537 }
16538 {
16539 if (temp11)
16540 delete arg11;
16541 }
16542 return NULL;
16543}
16544
16545
16546SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16547 PyObject *resultobj = 0;
16548 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16549 int arg2 ;
16550 void *argp1 = 0 ;
16551 int res1 = 0 ;
16552 int val2 ;
16553 int ecode2 = 0 ;
16554 PyObject * obj0 = 0 ;
16555 PyObject * obj1 = 0 ;
16556 char * kwnames[] = {
16557 (char *) "self",(char *) "n", NULL
16558 };
16559
16560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16562 if (!SWIG_IsOK(res1)) {
16563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16564 }
16565 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16566 ecode2 = SWIG_AsVal_int(obj1, &val2);
16567 if (!SWIG_IsOK(ecode2)) {
16568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16569 }
16570 arg2 = static_cast< int >(val2);
16571 {
16572 PyThreadState* __tstate = wxPyBeginAllowThreads();
16573 (arg1)->SetSelection(arg2);
16574 wxPyEndAllowThreads(__tstate);
16575 if (PyErr_Occurred()) SWIG_fail;
16576 }
16577 resultobj = SWIG_Py_Void();
16578 return resultobj;
16579fail:
16580 return NULL;
d55e5bfc
RD
16581}
16582
16583
554f62e9
RD
16584SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16585 PyObject *resultobj = 0;
16586 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16587 int result;
16588 void *argp1 = 0 ;
16589 int res1 = 0 ;
16590 PyObject *swig_obj[1] ;
16591
16592 if (!args) SWIG_fail;
16593 swig_obj[0] = args;
16594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16595 if (!SWIG_IsOK(res1)) {
16596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16597 }
16598 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16599 {
16600 PyThreadState* __tstate = wxPyBeginAllowThreads();
16601 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16602 wxPyEndAllowThreads(__tstate);
16603 if (PyErr_Occurred()) SWIG_fail;
16604 }
16605 resultobj = SWIG_From_int(static_cast< int >(result));
16606 return resultobj;
16607fail:
16608 return NULL;
4896ac9e
RD
16609}
16610
16611
554f62e9
RD
16612SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16613 PyObject *resultobj = 0;
16614 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16615 wxString result;
16616 void *argp1 = 0 ;
16617 int res1 = 0 ;
16618 PyObject *swig_obj[1] ;
16619
16620 if (!args) SWIG_fail;
16621 swig_obj[0] = args;
16622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16623 if (!SWIG_IsOK(res1)) {
16624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16625 }
16626 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16627 {
16628 PyThreadState* __tstate = wxPyBeginAllowThreads();
16629 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16630 wxPyEndAllowThreads(__tstate);
16631 if (PyErr_Occurred()) SWIG_fail;
16632 }
16633 {
16634#if wxUSE_UNICODE
16635 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16636#else
16637 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16638#endif
16639 }
16640 return resultobj;
16641fail:
16642 return NULL;
16643}
16644
16645
16646SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16647 PyObject *resultobj = 0;
16648 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16649 wxString *arg2 = 0 ;
16650 bool result;
16651 void *argp1 = 0 ;
16652 int res1 = 0 ;
16653 bool temp2 = false ;
16654 PyObject * obj0 = 0 ;
16655 PyObject * obj1 = 0 ;
16656 char * kwnames[] = {
16657 (char *) "self",(char *) "s", NULL
16658 };
16659
16660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16662 if (!SWIG_IsOK(res1)) {
16663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16664 }
16665 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16666 {
16667 arg2 = wxString_in_helper(obj1);
16668 if (arg2 == NULL) SWIG_fail;
16669 temp2 = true;
16670 }
16671 {
16672 PyThreadState* __tstate = wxPyBeginAllowThreads();
16673 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16674 wxPyEndAllowThreads(__tstate);
16675 if (PyErr_Occurred()) SWIG_fail;
16676 }
16677 {
16678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16679 }
16680 {
16681 if (temp2)
16682 delete arg2;
16683 }
16684 return resultobj;
16685fail:
16686 {
16687 if (temp2)
16688 delete arg2;
16689 }
16690 return NULL;
d55e5bfc
RD
16691}
16692
16693
554f62e9
RD
16694SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16695 PyObject *resultobj = 0;
16696 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
1c71765a 16697 size_t result;
554f62e9
RD
16698 void *argp1 = 0 ;
16699 int res1 = 0 ;
16700 PyObject *swig_obj[1] ;
16701
16702 if (!args) SWIG_fail;
16703 swig_obj[0] = args;
16704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16705 if (!SWIG_IsOK(res1)) {
16706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16707 }
16708 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16709 {
16710 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 16711 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
554f62e9
RD
16712 wxPyEndAllowThreads(__tstate);
16713 if (PyErr_Occurred()) SWIG_fail;
16714 }
1c71765a 16715 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
554f62e9
RD
16716 return resultobj;
16717fail:
16718 return NULL;
16719}
16720
16721
16722SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16723 PyObject *resultobj = 0;
16724 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16725 wxString *arg2 = 0 ;
16726 int result;
16727 void *argp1 = 0 ;
16728 int res1 = 0 ;
16729 bool temp2 = false ;
16730 PyObject * obj0 = 0 ;
16731 PyObject * obj1 = 0 ;
16732 char * kwnames[] = {
16733 (char *) "self",(char *) "s", NULL
16734 };
16735
16736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16738 if (!SWIG_IsOK(res1)) {
16739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16740 }
16741 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16742 {
16743 arg2 = wxString_in_helper(obj1);
16744 if (arg2 == NULL) SWIG_fail;
16745 temp2 = true;
16746 }
16747 {
16748 PyThreadState* __tstate = wxPyBeginAllowThreads();
16749 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16750 wxPyEndAllowThreads(__tstate);
16751 if (PyErr_Occurred()) SWIG_fail;
16752 }
16753 resultobj = SWIG_From_int(static_cast< int >(result));
16754 {
16755 if (temp2)
16756 delete arg2;
16757 }
16758 return resultobj;
16759fail:
16760 {
16761 if (temp2)
16762 delete arg2;
16763 }
16764 return NULL;
16765}
16766
16767
16768SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16769 PyObject *resultobj = 0;
16770 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16771 int arg2 ;
16772 wxString result;
16773 void *argp1 = 0 ;
16774 int res1 = 0 ;
16775 int val2 ;
16776 int ecode2 = 0 ;
16777 PyObject * obj0 = 0 ;
16778 PyObject * obj1 = 0 ;
16779 char * kwnames[] = {
16780 (char *) "self",(char *) "n", NULL
16781 };
16782
16783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16785 if (!SWIG_IsOK(res1)) {
16786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16787 }
16788 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16789 ecode2 = SWIG_AsVal_int(obj1, &val2);
16790 if (!SWIG_IsOK(ecode2)) {
16791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16792 }
16793 arg2 = static_cast< int >(val2);
16794 {
16795 PyThreadState* __tstate = wxPyBeginAllowThreads();
16796 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16797 wxPyEndAllowThreads(__tstate);
16798 if (PyErr_Occurred()) SWIG_fail;
16799 }
16800 {
16801#if wxUSE_UNICODE
16802 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16803#else
16804 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16805#endif
16806 }
16807 return resultobj;
16808fail:
16809 return NULL;
16810}
16811
16812
16813SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16814 PyObject *resultobj = 0;
16815 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16816 int arg2 ;
16817 wxString *arg3 = 0 ;
16818 void *argp1 = 0 ;
16819 int res1 = 0 ;
16820 int val2 ;
16821 int ecode2 = 0 ;
16822 bool temp3 = false ;
16823 PyObject * obj0 = 0 ;
16824 PyObject * obj1 = 0 ;
16825 PyObject * obj2 = 0 ;
16826 char * kwnames[] = {
16827 (char *) "self",(char *) "n",(char *) "label", NULL
16828 };
16829
16830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16832 if (!SWIG_IsOK(res1)) {
16833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16834 }
16835 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16836 ecode2 = SWIG_AsVal_int(obj1, &val2);
16837 if (!SWIG_IsOK(ecode2)) {
16838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16839 }
16840 arg2 = static_cast< int >(val2);
16841 {
16842 arg3 = wxString_in_helper(obj2);
16843 if (arg3 == NULL) SWIG_fail;
16844 temp3 = true;
16845 }
16846 {
16847 PyThreadState* __tstate = wxPyBeginAllowThreads();
16848 (arg1)->SetString(arg2,(wxString const &)*arg3);
16849 wxPyEndAllowThreads(__tstate);
16850 if (PyErr_Occurred()) SWIG_fail;
16851 }
16852 resultobj = SWIG_Py_Void();
16853 {
16854 if (temp3)
16855 delete arg3;
16856 }
16857 return resultobj;
16858fail:
16859 {
16860 if (temp3)
16861 delete arg3;
16862 }
16863 return NULL;
16864}
16865
16866
16867SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16868 PyObject *resultobj = 0;
16869 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16870 unsigned int arg2 ;
554f62e9
RD
16871 bool arg3 = (bool) true ;
16872 void *argp1 = 0 ;
16873 int res1 = 0 ;
50f151d7 16874 unsigned int val2 ;
554f62e9
RD
16875 int ecode2 = 0 ;
16876 bool val3 ;
16877 int ecode3 = 0 ;
16878 PyObject * obj0 = 0 ;
16879 PyObject * obj1 = 0 ;
16880 PyObject * obj2 = 0 ;
16881 char * kwnames[] = {
16882 (char *) "self",(char *) "n",(char *) "enable", NULL
16883 };
16884
16885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16887 if (!SWIG_IsOK(res1)) {
16888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16889 }
16890 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16891 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 16892 if (!SWIG_IsOK(ecode2)) {
50f151d7 16893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 16894 }
50f151d7 16895 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
16896 if (obj2) {
16897 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16898 if (!SWIG_IsOK(ecode3)) {
16899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16900 }
16901 arg3 = static_cast< bool >(val3);
16902 }
16903 {
16904 PyThreadState* __tstate = wxPyBeginAllowThreads();
16905 (arg1)->Enable(arg2,arg3);
16906 wxPyEndAllowThreads(__tstate);
16907 if (PyErr_Occurred()) SWIG_fail;
16908 }
16909 resultobj = SWIG_Py_Void();
16910 return resultobj;
16911fail:
16912 return NULL;
16913}
16914
16915
16916SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16917 PyObject *resultobj = 0;
16918 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16919 unsigned int arg2 ;
554f62e9
RD
16920 bool arg3 = (bool) true ;
16921 void *argp1 = 0 ;
16922 int res1 = 0 ;
50f151d7 16923 unsigned int val2 ;
554f62e9
RD
16924 int ecode2 = 0 ;
16925 bool val3 ;
16926 int ecode3 = 0 ;
16927 PyObject * obj0 = 0 ;
16928 PyObject * obj1 = 0 ;
16929 PyObject * obj2 = 0 ;
16930 char * kwnames[] = {
16931 (char *) "self",(char *) "n",(char *) "show", NULL
16932 };
16933
16934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16936 if (!SWIG_IsOK(res1)) {
16937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16938 }
16939 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16940 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 16941 if (!SWIG_IsOK(ecode2)) {
50f151d7 16942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 16943 }
50f151d7 16944 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
16945 if (obj2) {
16946 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16947 if (!SWIG_IsOK(ecode3)) {
16948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16949 }
16950 arg3 = static_cast< bool >(val3);
16951 }
16952 {
16953 PyThreadState* __tstate = wxPyBeginAllowThreads();
16954 (arg1)->Show(arg2,arg3);
16955 wxPyEndAllowThreads(__tstate);
16956 if (PyErr_Occurred()) SWIG_fail;
16957 }
16958 resultobj = SWIG_Py_Void();
16959 return resultobj;
16960fail:
16961 return NULL;
d55e5bfc
RD
16962}
16963
16964
50f151d7
RD
16965SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16966 PyObject *resultobj = 0;
16967 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16968 unsigned int arg2 ;
16969 bool result;
16970 void *argp1 = 0 ;
16971 int res1 = 0 ;
16972 unsigned int val2 ;
16973 int ecode2 = 0 ;
16974 PyObject * obj0 = 0 ;
16975 PyObject * obj1 = 0 ;
16976 char * kwnames[] = {
16977 (char *) "self",(char *) "n", NULL
16978 };
16979
16980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16982 if (!SWIG_IsOK(res1)) {
16983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16984 }
16985 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16986 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16987 if (!SWIG_IsOK(ecode2)) {
16988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16989 }
16990 arg2 = static_cast< unsigned int >(val2);
16991 {
16992 PyThreadState* __tstate = wxPyBeginAllowThreads();
16993 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16994 wxPyEndAllowThreads(__tstate);
16995 if (PyErr_Occurred()) SWIG_fail;
16996 }
16997 {
16998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16999 }
17000 return resultobj;
17001fail:
17002 return NULL;
17003}
17004
17005
17006SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17007 PyObject *resultobj = 0;
17008 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17009 unsigned int arg2 ;
17010 bool result;
17011 void *argp1 = 0 ;
17012 int res1 = 0 ;
17013 unsigned int val2 ;
17014 int ecode2 = 0 ;
17015 PyObject * obj0 = 0 ;
17016 PyObject * obj1 = 0 ;
17017 char * kwnames[] = {
17018 (char *) "self",(char *) "n", NULL
17019 };
17020
17021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
17022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17023 if (!SWIG_IsOK(res1)) {
17024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17025 }
17026 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17027 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17028 if (!SWIG_IsOK(ecode2)) {
17029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
17030 }
17031 arg2 = static_cast< unsigned int >(val2);
17032 {
17033 PyThreadState* __tstate = wxPyBeginAllowThreads();
17034 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
17035 wxPyEndAllowThreads(__tstate);
17036 if (PyErr_Occurred()) SWIG_fail;
17037 }
17038 {
17039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17040 }
17041 return resultobj;
17042fail:
17043 return NULL;
17044}
17045
17046
554f62e9
RD
17047SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17048 PyObject *resultobj = 0;
17049 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 17050 unsigned int result;
554f62e9
RD
17051 void *argp1 = 0 ;
17052 int res1 = 0 ;
17053 PyObject *swig_obj[1] ;
17054
17055 if (!args) SWIG_fail;
17056 swig_obj[0] = args;
17057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17058 if (!SWIG_IsOK(res1)) {
17059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17060 }
17061 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17062 {
17063 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 17064 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
554f62e9
RD
17065 wxPyEndAllowThreads(__tstate);
17066 if (PyErr_Occurred()) SWIG_fail;
17067 }
50f151d7 17068 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
17069 return resultobj;
17070fail:
17071 return NULL;
d55e5bfc
RD
17072}
17073
17074
554f62e9
RD
17075SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17076 PyObject *resultobj = 0;
17077 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 17078 unsigned int result;
554f62e9
RD
17079 void *argp1 = 0 ;
17080 int res1 = 0 ;
17081 PyObject *swig_obj[1] ;
17082
17083 if (!args) SWIG_fail;
17084 swig_obj[0] = args;
17085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17086 if (!SWIG_IsOK(res1)) {
17087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17088 }
17089 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17090 {
17091 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 17092 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
554f62e9
RD
17093 wxPyEndAllowThreads(__tstate);
17094 if (PyErr_Occurred()) SWIG_fail;
17095 }
50f151d7 17096 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
17097 return resultobj;
17098fail:
17099 return NULL;
17100}
17101
17102
17103SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17104 PyObject *resultobj = 0;
17105 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17106 int arg2 ;
17107 wxDirection arg3 ;
17108 long arg4 ;
17109 int result;
17110 void *argp1 = 0 ;
17111 int res1 = 0 ;
17112 int val2 ;
17113 int ecode2 = 0 ;
17114 int val3 ;
17115 int ecode3 = 0 ;
17116 long val4 ;
17117 int ecode4 = 0 ;
17118 PyObject * obj0 = 0 ;
17119 PyObject * obj1 = 0 ;
17120 PyObject * obj2 = 0 ;
17121 PyObject * obj3 = 0 ;
17122 char * kwnames[] = {
17123 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
17124 };
17125
17126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17128 if (!SWIG_IsOK(res1)) {
17129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17130 }
17131 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17132 ecode2 = SWIG_AsVal_int(obj1, &val2);
17133 if (!SWIG_IsOK(ecode2)) {
17134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
17135 }
17136 arg2 = static_cast< int >(val2);
17137 ecode3 = SWIG_AsVal_int(obj2, &val3);
17138 if (!SWIG_IsOK(ecode3)) {
17139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
17140 }
17141 arg3 = static_cast< wxDirection >(val3);
17142 ecode4 = SWIG_AsVal_long(obj3, &val4);
17143 if (!SWIG_IsOK(ecode4)) {
17144 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
17145 }
17146 arg4 = static_cast< long >(val4);
17147 {
17148 PyThreadState* __tstate = wxPyBeginAllowThreads();
17149 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
17150 wxPyEndAllowThreads(__tstate);
17151 if (PyErr_Occurred()) SWIG_fail;
17152 }
17153 resultobj = SWIG_From_int(static_cast< int >(result));
17154 return resultobj;
17155fail:
17156 return NULL;
17157}
17158
17159
f460c29d
RD
17160SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17161 PyObject *resultobj = 0;
17162 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17163 unsigned int arg2 ;
17164 wxString *arg3 = 0 ;
17165 void *argp1 = 0 ;
17166 int res1 = 0 ;
17167 unsigned int val2 ;
17168 int ecode2 = 0 ;
17169 bool temp3 = false ;
17170 PyObject * obj0 = 0 ;
17171 PyObject * obj1 = 0 ;
17172 PyObject * obj2 = 0 ;
17173 char * kwnames[] = {
17174 (char *) "self",(char *) "item",(char *) "text", NULL
17175 };
17176
17177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17179 if (!SWIG_IsOK(res1)) {
17180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17181 }
17182 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17183 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17184 if (!SWIG_IsOK(ecode2)) {
17185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17186 }
17187 arg2 = static_cast< unsigned int >(val2);
17188 {
17189 arg3 = wxString_in_helper(obj2);
17190 if (arg3 == NULL) SWIG_fail;
17191 temp3 = true;
17192 }
17193 {
17194 PyThreadState* __tstate = wxPyBeginAllowThreads();
17195 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17196 wxPyEndAllowThreads(__tstate);
17197 if (PyErr_Occurred()) SWIG_fail;
17198 }
17199 resultobj = SWIG_Py_Void();
17200 {
17201 if (temp3)
17202 delete arg3;
17203 }
17204 return resultobj;
17205fail:
17206 {
17207 if (temp3)
17208 delete arg3;
17209 }
17210 return NULL;
17211}
17212
17213
17214SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17215 PyObject *resultobj = 0;
17216 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17217 unsigned int arg2 ;
17218 wxToolTip *result = 0 ;
17219 void *argp1 = 0 ;
17220 int res1 = 0 ;
17221 unsigned int val2 ;
17222 int ecode2 = 0 ;
17223 PyObject * obj0 = 0 ;
17224 PyObject * obj1 = 0 ;
17225 char * kwnames[] = {
17226 (char *) "self",(char *) "item", NULL
17227 };
17228
17229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17231 if (!SWIG_IsOK(res1)) {
17232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17233 }
17234 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17235 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17236 if (!SWIG_IsOK(ecode2)) {
17237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17238 }
17239 arg2 = static_cast< unsigned int >(val2);
17240 {
17241 PyThreadState* __tstate = wxPyBeginAllowThreads();
17242 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17243 wxPyEndAllowThreads(__tstate);
17244 if (PyErr_Occurred()) SWIG_fail;
17245 }
17246 {
17247 resultobj = wxPyMake_wxObject(result, (bool)0);
17248 }
17249 return resultobj;
17250fail:
17251 return NULL;
17252}
17253
17254
b850e7f3
RD
17255SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17256 PyObject *resultobj = 0;
17257 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17258 unsigned int arg2 ;
17259 wxString *arg3 = 0 ;
17260 void *argp1 = 0 ;
17261 int res1 = 0 ;
17262 unsigned int val2 ;
17263 int ecode2 = 0 ;
17264 bool temp3 = false ;
17265 PyObject * obj0 = 0 ;
17266 PyObject * obj1 = 0 ;
17267 PyObject * obj2 = 0 ;
17268 char * kwnames[] = {
17269 (char *) "self",(char *) "n",(char *) "helpText", NULL
17270 };
17271
17272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17274 if (!SWIG_IsOK(res1)) {
17275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17276 }
17277 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17278 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17279 if (!SWIG_IsOK(ecode2)) {
17280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17281 }
17282 arg2 = static_cast< unsigned int >(val2);
17283 {
17284 arg3 = wxString_in_helper(obj2);
17285 if (arg3 == NULL) SWIG_fail;
17286 temp3 = true;
17287 }
17288 {
17289 PyThreadState* __tstate = wxPyBeginAllowThreads();
17290 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17291 wxPyEndAllowThreads(__tstate);
17292 if (PyErr_Occurred()) SWIG_fail;
17293 }
17294 resultobj = SWIG_Py_Void();
17295 {
17296 if (temp3)
17297 delete arg3;
17298 }
17299 return resultobj;
17300fail:
17301 {
17302 if (temp3)
17303 delete arg3;
17304 }
17305 return NULL;
17306}
17307
17308
17309SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17310 PyObject *resultobj = 0;
17311 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17312 unsigned int arg2 ;
17313 wxString result;
17314 void *argp1 = 0 ;
17315 int res1 = 0 ;
17316 unsigned int val2 ;
17317 int ecode2 = 0 ;
17318 PyObject * obj0 = 0 ;
17319 PyObject * obj1 = 0 ;
17320 char * kwnames[] = {
17321 (char *) "self",(char *) "n", NULL
17322 };
17323
17324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17326 if (!SWIG_IsOK(res1)) {
17327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17328 }
17329 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17330 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17331 if (!SWIG_IsOK(ecode2)) {
17332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17333 }
17334 arg2 = static_cast< unsigned int >(val2);
17335 {
17336 PyThreadState* __tstate = wxPyBeginAllowThreads();
17337 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17338 wxPyEndAllowThreads(__tstate);
17339 if (PyErr_Occurred()) SWIG_fail;
17340 }
17341 {
17342#if wxUSE_UNICODE
17343 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17344#else
17345 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17346#endif
17347 }
17348 return resultobj;
17349fail:
17350 return NULL;
17351}
17352
17353
554f62e9
RD
17354SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17355 PyObject *resultobj = 0;
17356 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17357 SwigValueWrapper<wxVisualAttributes > result;
17358 int val1 ;
17359 int ecode1 = 0 ;
17360 PyObject * obj0 = 0 ;
17361 char * kwnames[] = {
17362 (char *) "variant", NULL
17363 };
17364
17365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17366 if (obj0) {
17367 ecode1 = SWIG_AsVal_int(obj0, &val1);
17368 if (!SWIG_IsOK(ecode1)) {
17369 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17370 }
17371 arg1 = static_cast< wxWindowVariant >(val1);
17372 }
17373 {
17374 if (!wxPyCheckForApp()) SWIG_fail;
17375 PyThreadState* __tstate = wxPyBeginAllowThreads();
17376 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17377 wxPyEndAllowThreads(__tstate);
17378 if (PyErr_Occurred()) SWIG_fail;
17379 }
17380 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17381 return resultobj;
17382fail:
17383 return NULL;
17384}
17385
17386
17387SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17388 PyObject *obj;
17389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17390 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17391 return SWIG_Py_Void();
17392}
17393
17394SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17395 return SWIG_Python_InitShadowInstance(args);
17396}
17397
17398SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17399 PyObject *resultobj = 0;
17400 wxWindow *arg1 = (wxWindow *) 0 ;
17401 int arg2 = (int) -1 ;
17402 wxString const &arg3_defvalue = wxPyEmptyString ;
17403 wxString *arg3 = (wxString *) &arg3_defvalue ;
17404 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17405 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17406 wxSize const &arg5_defvalue = wxDefaultSize ;
17407 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17408 long arg6 = (long) 0 ;
17409 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17410 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17411 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17412 wxString *arg8 = (wxString *) &arg8_defvalue ;
17413 wxRadioButton *result = 0 ;
17414 void *argp1 = 0 ;
17415 int res1 = 0 ;
17416 int val2 ;
17417 int ecode2 = 0 ;
17418 bool temp3 = false ;
17419 wxPoint temp4 ;
17420 wxSize temp5 ;
17421 long val6 ;
17422 int ecode6 = 0 ;
17423 void *argp7 = 0 ;
17424 int res7 = 0 ;
17425 bool temp8 = false ;
17426 PyObject * obj0 = 0 ;
17427 PyObject * obj1 = 0 ;
17428 PyObject * obj2 = 0 ;
17429 PyObject * obj3 = 0 ;
17430 PyObject * obj4 = 0 ;
17431 PyObject * obj5 = 0 ;
17432 PyObject * obj6 = 0 ;
17433 PyObject * obj7 = 0 ;
17434 char * kwnames[] = {
17435 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17436 };
17437
17438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17440 if (!SWIG_IsOK(res1)) {
17441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17442 }
17443 arg1 = reinterpret_cast< wxWindow * >(argp1);
17444 if (obj1) {
17445 ecode2 = SWIG_AsVal_int(obj1, &val2);
17446 if (!SWIG_IsOK(ecode2)) {
17447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17448 }
17449 arg2 = static_cast< int >(val2);
17450 }
17451 if (obj2) {
d55e5bfc 17452 {
554f62e9
RD
17453 arg3 = wxString_in_helper(obj2);
17454 if (arg3 == NULL) SWIG_fail;
17455 temp3 = true;
d55e5bfc 17456 }
554f62e9
RD
17457 }
17458 if (obj3) {
d55e5bfc 17459 {
554f62e9
RD
17460 arg4 = &temp4;
17461 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 17462 }
554f62e9
RD
17463 }
17464 if (obj4) {
d55e5bfc 17465 {
554f62e9
RD
17466 arg5 = &temp5;
17467 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17468 }
554f62e9
RD
17469 }
17470 if (obj5) {
17471 ecode6 = SWIG_AsVal_long(obj5, &val6);
17472 if (!SWIG_IsOK(ecode6)) {
17473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17474 }
17475 arg6 = static_cast< long >(val6);
17476 }
17477 if (obj6) {
17478 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17479 if (!SWIG_IsOK(res7)) {
17480 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17481 }
554f62e9
RD
17482 if (!argp7) {
17483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17484 }
554f62e9
RD
17485 arg7 = reinterpret_cast< wxValidator * >(argp7);
17486 }
17487 if (obj7) {
d55e5bfc 17488 {
554f62e9
RD
17489 arg8 = wxString_in_helper(obj7);
17490 if (arg8 == NULL) SWIG_fail;
17491 temp8 = true;
d55e5bfc 17492 }
554f62e9
RD
17493 }
17494 {
17495 if (!wxPyCheckForApp()) SWIG_fail;
17496 PyThreadState* __tstate = wxPyBeginAllowThreads();
17497 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17498 wxPyEndAllowThreads(__tstate);
17499 if (PyErr_Occurred()) SWIG_fail;
17500 }
17501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17502 {
17503 if (temp3)
17504 delete arg3;
17505 }
17506 {
17507 if (temp8)
17508 delete arg8;
17509 }
17510 return resultobj;
17511fail:
17512 {
17513 if (temp3)
17514 delete arg3;
17515 }
17516 {
17517 if (temp8)
17518 delete arg8;
17519 }
17520 return NULL;
d55e5bfc
RD
17521}
17522
17523
554f62e9
RD
17524SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17525 PyObject *resultobj = 0;
17526 wxRadioButton *result = 0 ;
17527
17528 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17529 {
17530 if (!wxPyCheckForApp()) SWIG_fail;
17531 PyThreadState* __tstate = wxPyBeginAllowThreads();
17532 result = (wxRadioButton *)new wxRadioButton();
17533 wxPyEndAllowThreads(__tstate);
17534 if (PyErr_Occurred()) SWIG_fail;
17535 }
17536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17537 return resultobj;
17538fail:
17539 return NULL;
17540}
17541
17542
17543SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17544 PyObject *resultobj = 0;
17545 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17546 wxWindow *arg2 = (wxWindow *) 0 ;
17547 int arg3 = (int) -1 ;
17548 wxString const &arg4_defvalue = wxPyEmptyString ;
17549 wxString *arg4 = (wxString *) &arg4_defvalue ;
17550 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17551 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17552 wxSize const &arg6_defvalue = wxDefaultSize ;
17553 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17554 long arg7 = (long) 0 ;
17555 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17556 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17557 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17558 wxString *arg9 = (wxString *) &arg9_defvalue ;
17559 bool result;
17560 void *argp1 = 0 ;
17561 int res1 = 0 ;
17562 void *argp2 = 0 ;
17563 int res2 = 0 ;
17564 int val3 ;
17565 int ecode3 = 0 ;
17566 bool temp4 = false ;
17567 wxPoint temp5 ;
17568 wxSize temp6 ;
17569 long val7 ;
17570 int ecode7 = 0 ;
17571 void *argp8 = 0 ;
17572 int res8 = 0 ;
17573 bool temp9 = false ;
17574 PyObject * obj0 = 0 ;
17575 PyObject * obj1 = 0 ;
17576 PyObject * obj2 = 0 ;
17577 PyObject * obj3 = 0 ;
17578 PyObject * obj4 = 0 ;
17579 PyObject * obj5 = 0 ;
17580 PyObject * obj6 = 0 ;
17581 PyObject * obj7 = 0 ;
17582 PyObject * obj8 = 0 ;
17583 char * kwnames[] = {
17584 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17585 };
17586
17587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17589 if (!SWIG_IsOK(res1)) {
17590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17591 }
17592 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17593 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17594 if (!SWIG_IsOK(res2)) {
17595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17596 }
17597 arg2 = reinterpret_cast< wxWindow * >(argp2);
17598 if (obj2) {
17599 ecode3 = SWIG_AsVal_int(obj2, &val3);
17600 if (!SWIG_IsOK(ecode3)) {
17601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17602 }
17603 arg3 = static_cast< int >(val3);
17604 }
17605 if (obj3) {
d55e5bfc 17606 {
554f62e9
RD
17607 arg4 = wxString_in_helper(obj3);
17608 if (arg4 == NULL) SWIG_fail;
17609 temp4 = true;
d55e5bfc 17610 }
554f62e9
RD
17611 }
17612 if (obj4) {
d55e5bfc 17613 {
554f62e9
RD
17614 arg5 = &temp5;
17615 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17616 }
554f62e9
RD
17617 }
17618 if (obj5) {
d55e5bfc 17619 {
554f62e9
RD
17620 arg6 = &temp6;
17621 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17622 }
554f62e9
RD
17623 }
17624 if (obj6) {
17625 ecode7 = SWIG_AsVal_long(obj6, &val7);
17626 if (!SWIG_IsOK(ecode7)) {
17627 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17628 }
17629 arg7 = static_cast< long >(val7);
17630 }
17631 if (obj7) {
17632 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17633 if (!SWIG_IsOK(res8)) {
17634 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17635 }
17636 if (!argp8) {
17637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17638 }
554f62e9
RD
17639 arg8 = reinterpret_cast< wxValidator * >(argp8);
17640 }
17641 if (obj8) {
d55e5bfc 17642 {
554f62e9
RD
17643 arg9 = wxString_in_helper(obj8);
17644 if (arg9 == NULL) SWIG_fail;
17645 temp9 = true;
d55e5bfc 17646 }
554f62e9
RD
17647 }
17648 {
17649 PyThreadState* __tstate = wxPyBeginAllowThreads();
17650 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17651 wxPyEndAllowThreads(__tstate);
17652 if (PyErr_Occurred()) SWIG_fail;
17653 }
17654 {
17655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17656 }
17657 {
17658 if (temp4)
17659 delete arg4;
17660 }
17661 {
17662 if (temp9)
17663 delete arg9;
17664 }
17665 return resultobj;
17666fail:
17667 {
17668 if (temp4)
17669 delete arg4;
17670 }
17671 {
17672 if (temp9)
17673 delete arg9;
17674 }
17675 return NULL;
d55e5bfc
RD
17676}
17677
17678
554f62e9
RD
17679SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17680 PyObject *resultobj = 0;
17681 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17682 bool result;
17683 void *argp1 = 0 ;
17684 int res1 = 0 ;
17685 PyObject *swig_obj[1] ;
17686
17687 if (!args) SWIG_fail;
17688 swig_obj[0] = args;
17689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17690 if (!SWIG_IsOK(res1)) {
17691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17692 }
17693 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17694 {
17695 PyThreadState* __tstate = wxPyBeginAllowThreads();
17696 result = (bool)(arg1)->GetValue();
17697 wxPyEndAllowThreads(__tstate);
17698 if (PyErr_Occurred()) SWIG_fail;
17699 }
17700 {
17701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17702 }
17703 return resultobj;
17704fail:
17705 return NULL;
17706}
17707
17708
17709SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17710 PyObject *resultobj = 0;
17711 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17712 bool arg2 ;
17713 void *argp1 = 0 ;
17714 int res1 = 0 ;
17715 bool val2 ;
17716 int ecode2 = 0 ;
17717 PyObject * obj0 = 0 ;
17718 PyObject * obj1 = 0 ;
17719 char * kwnames[] = {
17720 (char *) "self",(char *) "value", NULL
17721 };
17722
17723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17725 if (!SWIG_IsOK(res1)) {
17726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17727 }
17728 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17729 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17730 if (!SWIG_IsOK(ecode2)) {
17731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17732 }
17733 arg2 = static_cast< bool >(val2);
17734 {
17735 PyThreadState* __tstate = wxPyBeginAllowThreads();
17736 (arg1)->SetValue(arg2);
17737 wxPyEndAllowThreads(__tstate);
17738 if (PyErr_Occurred()) SWIG_fail;
17739 }
17740 resultobj = SWIG_Py_Void();
17741 return resultobj;
17742fail:
17743 return NULL;
17744}
17745
17746
17747SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17748 PyObject *resultobj = 0;
17749 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17750 SwigValueWrapper<wxVisualAttributes > result;
17751 int val1 ;
17752 int ecode1 = 0 ;
17753 PyObject * obj0 = 0 ;
17754 char * kwnames[] = {
17755 (char *) "variant", NULL
17756 };
17757
17758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17759 if (obj0) {
17760 ecode1 = SWIG_AsVal_int(obj0, &val1);
17761 if (!SWIG_IsOK(ecode1)) {
17762 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17763 }
17764 arg1 = static_cast< wxWindowVariant >(val1);
17765 }
17766 {
17767 if (!wxPyCheckForApp()) SWIG_fail;
17768 PyThreadState* __tstate = wxPyBeginAllowThreads();
17769 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17770 wxPyEndAllowThreads(__tstate);
17771 if (PyErr_Occurred()) SWIG_fail;
17772 }
17773 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17774 return resultobj;
17775fail:
17776 return NULL;
d55e5bfc
RD
17777}
17778
17779
554f62e9
RD
17780SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17781 PyObject *obj;
17782 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17783 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17784 return SWIG_Py_Void();
d55e5bfc
RD
17785}
17786
554f62e9
RD
17787SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17788 return SWIG_Python_InitShadowInstance(args);
17789}
d55e5bfc 17790
554f62e9
RD
17791SWIGINTERN int SliderNameStr_set(PyObject *) {
17792 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17793 return 1;
d55e5bfc
RD
17794}
17795
17796
554f62e9
RD
17797SWIGINTERN PyObject *SliderNameStr_get(void) {
17798 PyObject *pyobj = 0;
17799
17800 {
17801#if wxUSE_UNICODE
17802 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17803#else
17804 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17805#endif
17806 }
17807 return pyobj;
17808}
17809
17810
17811SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17812 PyObject *resultobj = 0;
17813 wxWindow *arg1 = (wxWindow *) 0 ;
17814 int arg2 = (int) -1 ;
17815 int arg3 = (int) 0 ;
17816 int arg4 = (int) 0 ;
17817 int arg5 = (int) 100 ;
17818 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17819 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17820 wxSize const &arg7_defvalue = wxDefaultSize ;
17821 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17822 long arg8 = (long) wxSL_HORIZONTAL ;
17823 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17824 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17825 wxString const &arg10_defvalue = wxPySliderNameStr ;
17826 wxString *arg10 = (wxString *) &arg10_defvalue ;
17827 wxSlider *result = 0 ;
17828 void *argp1 = 0 ;
17829 int res1 = 0 ;
17830 int val2 ;
17831 int ecode2 = 0 ;
17832 int val3 ;
17833 int ecode3 = 0 ;
17834 int val4 ;
17835 int ecode4 = 0 ;
17836 int val5 ;
17837 int ecode5 = 0 ;
17838 wxPoint temp6 ;
17839 wxSize temp7 ;
17840 long val8 ;
17841 int ecode8 = 0 ;
17842 void *argp9 = 0 ;
17843 int res9 = 0 ;
17844 bool temp10 = false ;
17845 PyObject * obj0 = 0 ;
17846 PyObject * obj1 = 0 ;
17847 PyObject * obj2 = 0 ;
17848 PyObject * obj3 = 0 ;
17849 PyObject * obj4 = 0 ;
17850 PyObject * obj5 = 0 ;
17851 PyObject * obj6 = 0 ;
17852 PyObject * obj7 = 0 ;
17853 PyObject * obj8 = 0 ;
17854 PyObject * obj9 = 0 ;
17855 char * kwnames[] = {
17856 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17857 };
17858
17859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17861 if (!SWIG_IsOK(res1)) {
17862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17863 }
17864 arg1 = reinterpret_cast< wxWindow * >(argp1);
17865 if (obj1) {
17866 ecode2 = SWIG_AsVal_int(obj1, &val2);
17867 if (!SWIG_IsOK(ecode2)) {
17868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17869 }
17870 arg2 = static_cast< int >(val2);
17871 }
17872 if (obj2) {
17873 ecode3 = SWIG_AsVal_int(obj2, &val3);
17874 if (!SWIG_IsOK(ecode3)) {
17875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17876 }
17877 arg3 = static_cast< int >(val3);
17878 }
17879 if (obj3) {
17880 ecode4 = SWIG_AsVal_int(obj3, &val4);
17881 if (!SWIG_IsOK(ecode4)) {
17882 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17883 }
17884 arg4 = static_cast< int >(val4);
17885 }
17886 if (obj4) {
17887 ecode5 = SWIG_AsVal_int(obj4, &val5);
17888 if (!SWIG_IsOK(ecode5)) {
17889 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17890 }
17891 arg5 = static_cast< int >(val5);
17892 }
17893 if (obj5) {
d55e5bfc 17894 {
554f62e9
RD
17895 arg6 = &temp6;
17896 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17897 }
554f62e9
RD
17898 }
17899 if (obj6) {
093d3ff1 17900 {
554f62e9
RD
17901 arg7 = &temp7;
17902 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
093d3ff1 17903 }
554f62e9
RD
17904 }
17905 if (obj7) {
17906 ecode8 = SWIG_AsVal_long(obj7, &val8);
17907 if (!SWIG_IsOK(ecode8)) {
17908 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17909 }
17910 arg8 = static_cast< long >(val8);
17911 }
17912 if (obj8) {
17913 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17914 if (!SWIG_IsOK(res9)) {
17915 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
093d3ff1 17916 }
554f62e9
RD
17917 if (!argp9) {
17918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
093d3ff1 17919 }
554f62e9
RD
17920 arg9 = reinterpret_cast< wxValidator * >(argp9);
17921 }
17922 if (obj9) {
d55e5bfc 17923 {
554f62e9
RD
17924 arg10 = wxString_in_helper(obj9);
17925 if (arg10 == NULL) SWIG_fail;
17926 temp10 = true;
d55e5bfc 17927 }
554f62e9
RD
17928 }
17929 {
17930 if (!wxPyCheckForApp()) SWIG_fail;
17931 PyThreadState* __tstate = wxPyBeginAllowThreads();
17932 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17933 wxPyEndAllowThreads(__tstate);
17934 if (PyErr_Occurred()) SWIG_fail;
17935 }
17936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17937 {
17938 if (temp10)
17939 delete arg10;
17940 }
17941 return resultobj;
17942fail:
17943 {
17944 if (temp10)
17945 delete arg10;
17946 }
17947 return NULL;
d55e5bfc
RD
17948}
17949
17950
554f62e9
RD
17951SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17952 PyObject *resultobj = 0;
17953 wxSlider *result = 0 ;
17954
17955 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17956 {
17957 if (!wxPyCheckForApp()) SWIG_fail;
17958 PyThreadState* __tstate = wxPyBeginAllowThreads();
17959 result = (wxSlider *)new wxSlider();
17960 wxPyEndAllowThreads(__tstate);
17961 if (PyErr_Occurred()) SWIG_fail;
17962 }
17963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17964 return resultobj;
17965fail:
17966 return NULL;
17967}
17968
17969
17970SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17971 PyObject *resultobj = 0;
17972 wxSlider *arg1 = (wxSlider *) 0 ;
17973 wxWindow *arg2 = (wxWindow *) 0 ;
17974 int arg3 = (int) -1 ;
17975 int arg4 = (int) 0 ;
17976 int arg5 = (int) 0 ;
17977 int arg6 = (int) 100 ;
17978 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17979 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17980 wxSize const &arg8_defvalue = wxDefaultSize ;
17981 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17982 long arg9 = (long) wxSL_HORIZONTAL ;
17983 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17984 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17985 wxString const &arg11_defvalue = wxPySliderNameStr ;
17986 wxString *arg11 = (wxString *) &arg11_defvalue ;
17987 bool result;
17988 void *argp1 = 0 ;
17989 int res1 = 0 ;
17990 void *argp2 = 0 ;
17991 int res2 = 0 ;
17992 int val3 ;
17993 int ecode3 = 0 ;
17994 int val4 ;
17995 int ecode4 = 0 ;
17996 int val5 ;
17997 int ecode5 = 0 ;
17998 int val6 ;
17999 int ecode6 = 0 ;
18000 wxPoint temp7 ;
18001 wxSize temp8 ;
18002 long val9 ;
18003 int ecode9 = 0 ;
18004 void *argp10 = 0 ;
18005 int res10 = 0 ;
18006 bool temp11 = false ;
18007 PyObject * obj0 = 0 ;
18008 PyObject * obj1 = 0 ;
18009 PyObject * obj2 = 0 ;
18010 PyObject * obj3 = 0 ;
18011 PyObject * obj4 = 0 ;
18012 PyObject * obj5 = 0 ;
18013 PyObject * obj6 = 0 ;
18014 PyObject * obj7 = 0 ;
18015 PyObject * obj8 = 0 ;
18016 PyObject * obj9 = 0 ;
18017 PyObject * obj10 = 0 ;
18018 char * kwnames[] = {
18019 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18020 };
18021
18022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
18023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18024 if (!SWIG_IsOK(res1)) {
18025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
18026 }
18027 arg1 = reinterpret_cast< wxSlider * >(argp1);
18028 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18029 if (!SWIG_IsOK(res2)) {
18030 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18031 }
18032 arg2 = reinterpret_cast< wxWindow * >(argp2);
18033 if (obj2) {
18034 ecode3 = SWIG_AsVal_int(obj2, &val3);
18035 if (!SWIG_IsOK(ecode3)) {
18036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
18037 }
18038 arg3 = static_cast< int >(val3);
18039 }
18040 if (obj3) {
18041 ecode4 = SWIG_AsVal_int(obj3, &val4);
18042 if (!SWIG_IsOK(ecode4)) {
18043 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
18044 }
18045 arg4 = static_cast< int >(val4);
18046 }
18047 if (obj4) {
18048 ecode5 = SWIG_AsVal_int(obj4, &val5);
18049 if (!SWIG_IsOK(ecode5)) {
18050 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
18051 }
18052 arg5 = static_cast< int >(val5);
18053 }
18054 if (obj5) {
18055 ecode6 = SWIG_AsVal_int(obj5, &val6);
18056 if (!SWIG_IsOK(ecode6)) {
18057 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
18058 }
18059 arg6 = static_cast< int >(val6);
18060 }
18061 if (obj6) {
d55e5bfc 18062 {
554f62e9
RD
18063 arg7 = &temp7;
18064 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d55e5bfc 18065 }
554f62e9
RD
18066 }
18067 if (obj7) {
093d3ff1 18068 {
554f62e9
RD
18069 arg8 = &temp8;
18070 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
18071 }
18072 }
18073 if (obj8) {
18074 ecode9 = SWIG_AsVal_long(obj8, &val9);
18075 if (!SWIG_IsOK(ecode9)) {
18076 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
18077 }
18078 arg9 = static_cast< long >(val9);
18079 }
18080 if (obj9) {
18081 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
18082 if (!SWIG_IsOK(res10)) {
18083 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
093d3ff1 18084 }
554f62e9
RD
18085 if (!argp10) {
18086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18087 }
18088 arg10 = reinterpret_cast< wxValidator * >(argp10);
18089 }
18090 if (obj10) {
d55e5bfc 18091 {
554f62e9
RD
18092 arg11 = wxString_in_helper(obj10);
18093 if (arg11 == NULL) SWIG_fail;
18094 temp11 = true;
d55e5bfc 18095 }
554f62e9
RD
18096 }
18097 {
18098 PyThreadState* __tstate = wxPyBeginAllowThreads();
18099 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
18100 wxPyEndAllowThreads(__tstate);
18101 if (PyErr_Occurred()) SWIG_fail;
18102 }
18103 {
18104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18105 }
18106 {
18107 if (temp11)
18108 delete arg11;
18109 }
18110 return resultobj;
18111fail:
18112 {
18113 if (temp11)
18114 delete arg11;
18115 }
18116 return NULL;
d55e5bfc
RD
18117}
18118
18119
554f62e9
RD
18120SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18121 PyObject *resultobj = 0;
18122 wxSlider *arg1 = (wxSlider *) 0 ;
18123 int result;
18124 void *argp1 = 0 ;
18125 int res1 = 0 ;
18126 PyObject *swig_obj[1] ;
18127
18128 if (!args) SWIG_fail;
18129 swig_obj[0] = args;
18130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18131 if (!SWIG_IsOK(res1)) {
18132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
18133 }
18134 arg1 = reinterpret_cast< wxSlider * >(argp1);
18135 {
18136 PyThreadState* __tstate = wxPyBeginAllowThreads();
18137 result = (int)((wxSlider const *)arg1)->GetValue();
18138 wxPyEndAllowThreads(__tstate);
18139 if (PyErr_Occurred()) SWIG_fail;
18140 }
18141 resultobj = SWIG_From_int(static_cast< int >(result));
18142 return resultobj;
18143fail:
18144 return NULL;
18145}
18146
18147
18148SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18149 PyObject *resultobj = 0;
18150 wxSlider *arg1 = (wxSlider *) 0 ;
18151 int arg2 ;
18152 void *argp1 = 0 ;
18153 int res1 = 0 ;
18154 int val2 ;
18155 int ecode2 = 0 ;
18156 PyObject * obj0 = 0 ;
18157 PyObject * obj1 = 0 ;
18158 char * kwnames[] = {
18159 (char *) "self",(char *) "value", NULL
18160 };
18161
18162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18164 if (!SWIG_IsOK(res1)) {
18165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18166 }
18167 arg1 = reinterpret_cast< wxSlider * >(argp1);
18168 ecode2 = SWIG_AsVal_int(obj1, &val2);
18169 if (!SWIG_IsOK(ecode2)) {
18170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18171 }
18172 arg2 = static_cast< int >(val2);
18173 {
18174 PyThreadState* __tstate = wxPyBeginAllowThreads();
18175 (arg1)->SetValue(arg2);
18176 wxPyEndAllowThreads(__tstate);
18177 if (PyErr_Occurred()) SWIG_fail;
18178 }
18179 resultobj = SWIG_Py_Void();
18180 return resultobj;
18181fail:
18182 return NULL;
18183}
18184
18185
18186SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18187 PyObject *resultobj = 0;
18188 wxSlider *arg1 = (wxSlider *) 0 ;
18189 int arg2 ;
18190 int arg3 ;
18191 void *argp1 = 0 ;
18192 int res1 = 0 ;
18193 int val2 ;
18194 int ecode2 = 0 ;
18195 int val3 ;
18196 int ecode3 = 0 ;
18197 PyObject * obj0 = 0 ;
18198 PyObject * obj1 = 0 ;
18199 PyObject * obj2 = 0 ;
18200 char * kwnames[] = {
18201 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18202 };
18203
18204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18206 if (!SWIG_IsOK(res1)) {
18207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18208 }
18209 arg1 = reinterpret_cast< wxSlider * >(argp1);
18210 ecode2 = SWIG_AsVal_int(obj1, &val2);
18211 if (!SWIG_IsOK(ecode2)) {
18212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18213 }
18214 arg2 = static_cast< int >(val2);
18215 ecode3 = SWIG_AsVal_int(obj2, &val3);
18216 if (!SWIG_IsOK(ecode3)) {
18217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18218 }
18219 arg3 = static_cast< int >(val3);
18220 {
18221 PyThreadState* __tstate = wxPyBeginAllowThreads();
18222 (arg1)->SetRange(arg2,arg3);
18223 wxPyEndAllowThreads(__tstate);
18224 if (PyErr_Occurred()) SWIG_fail;
18225 }
18226 resultobj = SWIG_Py_Void();
18227 return resultobj;
18228fail:
18229 return NULL;
d55e5bfc
RD
18230}
18231
18232
554f62e9
RD
18233SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18234 PyObject *resultobj = 0;
18235 wxSlider *arg1 = (wxSlider *) 0 ;
18236 int result;
18237 void *argp1 = 0 ;
18238 int res1 = 0 ;
18239 PyObject *swig_obj[1] ;
18240
18241 if (!args) SWIG_fail;
18242 swig_obj[0] = args;
18243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18244 if (!SWIG_IsOK(res1)) {
18245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18246 }
18247 arg1 = reinterpret_cast< wxSlider * >(argp1);
18248 {
18249 PyThreadState* __tstate = wxPyBeginAllowThreads();
18250 result = (int)((wxSlider const *)arg1)->GetMin();
18251 wxPyEndAllowThreads(__tstate);
18252 if (PyErr_Occurred()) SWIG_fail;
18253 }
18254 resultobj = SWIG_From_int(static_cast< int >(result));
18255 return resultobj;
18256fail:
18257 return NULL;
d55e5bfc
RD
18258}
18259
18260
554f62e9
RD
18261SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18262 PyObject *resultobj = 0;
18263 wxSlider *arg1 = (wxSlider *) 0 ;
18264 int result;
18265 void *argp1 = 0 ;
18266 int res1 = 0 ;
18267 PyObject *swig_obj[1] ;
18268
18269 if (!args) SWIG_fail;
18270 swig_obj[0] = args;
18271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18272 if (!SWIG_IsOK(res1)) {
18273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18274 }
18275 arg1 = reinterpret_cast< wxSlider * >(argp1);
18276 {
18277 PyThreadState* __tstate = wxPyBeginAllowThreads();
18278 result = (int)((wxSlider const *)arg1)->GetMax();
18279 wxPyEndAllowThreads(__tstate);
18280 if (PyErr_Occurred()) SWIG_fail;
18281 }
18282 resultobj = SWIG_From_int(static_cast< int >(result));
18283 return resultobj;
18284fail:
18285 return NULL;
18286}
18287
18288
18289SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18290 PyObject *resultobj = 0;
18291 wxSlider *arg1 = (wxSlider *) 0 ;
18292 int arg2 ;
18293 void *argp1 = 0 ;
18294 int res1 = 0 ;
18295 int val2 ;
18296 int ecode2 = 0 ;
18297 PyObject * obj0 = 0 ;
18298 PyObject * obj1 = 0 ;
18299 char * kwnames[] = {
18300 (char *) "self",(char *) "minValue", NULL
18301 };
18302
18303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18305 if (!SWIG_IsOK(res1)) {
18306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18307 }
18308 arg1 = reinterpret_cast< wxSlider * >(argp1);
18309 ecode2 = SWIG_AsVal_int(obj1, &val2);
18310 if (!SWIG_IsOK(ecode2)) {
18311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18312 }
18313 arg2 = static_cast< int >(val2);
18314 {
18315 PyThreadState* __tstate = wxPyBeginAllowThreads();
18316 (arg1)->SetMin(arg2);
18317 wxPyEndAllowThreads(__tstate);
18318 if (PyErr_Occurred()) SWIG_fail;
18319 }
18320 resultobj = SWIG_Py_Void();
18321 return resultobj;
18322fail:
18323 return NULL;
18324}
18325
18326
18327SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18328 PyObject *resultobj = 0;
18329 wxSlider *arg1 = (wxSlider *) 0 ;
18330 int arg2 ;
18331 void *argp1 = 0 ;
18332 int res1 = 0 ;
18333 int val2 ;
18334 int ecode2 = 0 ;
18335 PyObject * obj0 = 0 ;
18336 PyObject * obj1 = 0 ;
18337 char * kwnames[] = {
18338 (char *) "self",(char *) "maxValue", NULL
18339 };
18340
18341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18343 if (!SWIG_IsOK(res1)) {
18344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18345 }
18346 arg1 = reinterpret_cast< wxSlider * >(argp1);
18347 ecode2 = SWIG_AsVal_int(obj1, &val2);
18348 if (!SWIG_IsOK(ecode2)) {
18349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18350 }
18351 arg2 = static_cast< int >(val2);
18352 {
18353 PyThreadState* __tstate = wxPyBeginAllowThreads();
18354 (arg1)->SetMax(arg2);
18355 wxPyEndAllowThreads(__tstate);
18356 if (PyErr_Occurred()) SWIG_fail;
18357 }
18358 resultobj = SWIG_Py_Void();
18359 return resultobj;
18360fail:
18361 return NULL;
18362}
18363
18364
18365SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18366 PyObject *resultobj = 0;
18367 wxSlider *arg1 = (wxSlider *) 0 ;
18368 int arg2 ;
18369 void *argp1 = 0 ;
18370 int res1 = 0 ;
18371 int val2 ;
18372 int ecode2 = 0 ;
18373 PyObject * obj0 = 0 ;
18374 PyObject * obj1 = 0 ;
18375 char * kwnames[] = {
18376 (char *) "self",(char *) "lineSize", NULL
18377 };
18378
18379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18381 if (!SWIG_IsOK(res1)) {
18382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18383 }
18384 arg1 = reinterpret_cast< wxSlider * >(argp1);
18385 ecode2 = SWIG_AsVal_int(obj1, &val2);
18386 if (!SWIG_IsOK(ecode2)) {
18387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18388 }
18389 arg2 = static_cast< int >(val2);
18390 {
18391 PyThreadState* __tstate = wxPyBeginAllowThreads();
18392 (arg1)->SetLineSize(arg2);
18393 wxPyEndAllowThreads(__tstate);
18394 if (PyErr_Occurred()) SWIG_fail;
18395 }
18396 resultobj = SWIG_Py_Void();
18397 return resultobj;
18398fail:
18399 return NULL;
18400}
18401
18402
18403SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18404 PyObject *resultobj = 0;
18405 wxSlider *arg1 = (wxSlider *) 0 ;
18406 int arg2 ;
18407 void *argp1 = 0 ;
18408 int res1 = 0 ;
18409 int val2 ;
18410 int ecode2 = 0 ;
18411 PyObject * obj0 = 0 ;
18412 PyObject * obj1 = 0 ;
18413 char * kwnames[] = {
18414 (char *) "self",(char *) "pageSize", NULL
18415 };
18416
18417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18419 if (!SWIG_IsOK(res1)) {
18420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18421 }
18422 arg1 = reinterpret_cast< wxSlider * >(argp1);
18423 ecode2 = SWIG_AsVal_int(obj1, &val2);
18424 if (!SWIG_IsOK(ecode2)) {
18425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18426 }
18427 arg2 = static_cast< int >(val2);
18428 {
18429 PyThreadState* __tstate = wxPyBeginAllowThreads();
18430 (arg1)->SetPageSize(arg2);
18431 wxPyEndAllowThreads(__tstate);
18432 if (PyErr_Occurred()) SWIG_fail;
18433 }
18434 resultobj = SWIG_Py_Void();
18435 return resultobj;
18436fail:
18437 return NULL;
d55e5bfc
RD
18438}
18439
18440
554f62e9
RD
18441SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18442 PyObject *resultobj = 0;
18443 wxSlider *arg1 = (wxSlider *) 0 ;
18444 int result;
18445 void *argp1 = 0 ;
18446 int res1 = 0 ;
18447 PyObject *swig_obj[1] ;
18448
18449 if (!args) SWIG_fail;
18450 swig_obj[0] = args;
18451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18452 if (!SWIG_IsOK(res1)) {
18453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18454 }
18455 arg1 = reinterpret_cast< wxSlider * >(argp1);
18456 {
18457 PyThreadState* __tstate = wxPyBeginAllowThreads();
18458 result = (int)((wxSlider const *)arg1)->GetLineSize();
18459 wxPyEndAllowThreads(__tstate);
18460 if (PyErr_Occurred()) SWIG_fail;
18461 }
18462 resultobj = SWIG_From_int(static_cast< int >(result));
18463 return resultobj;
18464fail:
18465 return NULL;
d55e5bfc
RD
18466}
18467
18468
554f62e9
RD
18469SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18470 PyObject *resultobj = 0;
18471 wxSlider *arg1 = (wxSlider *) 0 ;
18472 int result;
18473 void *argp1 = 0 ;
18474 int res1 = 0 ;
18475 PyObject *swig_obj[1] ;
18476
18477 if (!args) SWIG_fail;
18478 swig_obj[0] = args;
18479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18480 if (!SWIG_IsOK(res1)) {
18481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18482 }
18483 arg1 = reinterpret_cast< wxSlider * >(argp1);
18484 {
18485 PyThreadState* __tstate = wxPyBeginAllowThreads();
18486 result = (int)((wxSlider const *)arg1)->GetPageSize();
18487 wxPyEndAllowThreads(__tstate);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 }
18490 resultobj = SWIG_From_int(static_cast< int >(result));
18491 return resultobj;
18492fail:
18493 return NULL;
18494}
18495
18496
18497SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18498 PyObject *resultobj = 0;
18499 wxSlider *arg1 = (wxSlider *) 0 ;
18500 int arg2 ;
18501 void *argp1 = 0 ;
18502 int res1 = 0 ;
18503 int val2 ;
18504 int ecode2 = 0 ;
18505 PyObject * obj0 = 0 ;
18506 PyObject * obj1 = 0 ;
18507 char * kwnames[] = {
18508 (char *) "self",(char *) "lenPixels", NULL
18509 };
18510
18511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18513 if (!SWIG_IsOK(res1)) {
18514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18515 }
18516 arg1 = reinterpret_cast< wxSlider * >(argp1);
18517 ecode2 = SWIG_AsVal_int(obj1, &val2);
18518 if (!SWIG_IsOK(ecode2)) {
18519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18520 }
18521 arg2 = static_cast< int >(val2);
18522 {
18523 PyThreadState* __tstate = wxPyBeginAllowThreads();
18524 (arg1)->SetThumbLength(arg2);
18525 wxPyEndAllowThreads(__tstate);
18526 if (PyErr_Occurred()) SWIG_fail;
18527 }
18528 resultobj = SWIG_Py_Void();
18529 return resultobj;
18530fail:
18531 return NULL;
f20a2e1f
RD
18532}
18533
18534
554f62e9
RD
18535SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18536 PyObject *resultobj = 0;
18537 wxSlider *arg1 = (wxSlider *) 0 ;
18538 int result;
18539 void *argp1 = 0 ;
18540 int res1 = 0 ;
18541 PyObject *swig_obj[1] ;
18542
18543 if (!args) SWIG_fail;
18544 swig_obj[0] = args;
18545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18546 if (!SWIG_IsOK(res1)) {
18547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18548 }
18549 arg1 = reinterpret_cast< wxSlider * >(argp1);
18550 {
18551 PyThreadState* __tstate = wxPyBeginAllowThreads();
18552 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18553 wxPyEndAllowThreads(__tstate);
18554 if (PyErr_Occurred()) SWIG_fail;
18555 }
18556 resultobj = SWIG_From_int(static_cast< int >(result));
18557 return resultobj;
18558fail:
18559 return NULL;
18560}
18561
18562
18563SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18564 PyObject *resultobj = 0;
18565 wxSlider *arg1 = (wxSlider *) 0 ;
18566 int arg2 ;
18567 int arg3 = (int) 1 ;
18568 void *argp1 = 0 ;
18569 int res1 = 0 ;
18570 int val2 ;
18571 int ecode2 = 0 ;
18572 int val3 ;
18573 int ecode3 = 0 ;
18574 PyObject * obj0 = 0 ;
18575 PyObject * obj1 = 0 ;
18576 PyObject * obj2 = 0 ;
18577 char * kwnames[] = {
18578 (char *) "self",(char *) "n",(char *) "pos", NULL
18579 };
18580
18581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18583 if (!SWIG_IsOK(res1)) {
18584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18585 }
18586 arg1 = reinterpret_cast< wxSlider * >(argp1);
18587 ecode2 = SWIG_AsVal_int(obj1, &val2);
18588 if (!SWIG_IsOK(ecode2)) {
18589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18590 }
18591 arg2 = static_cast< int >(val2);
18592 if (obj2) {
18593 ecode3 = SWIG_AsVal_int(obj2, &val3);
18594 if (!SWIG_IsOK(ecode3)) {
18595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18596 }
18597 arg3 = static_cast< int >(val3);
18598 }
18599 {
18600 PyThreadState* __tstate = wxPyBeginAllowThreads();
18601 (arg1)->SetTickFreq(arg2,arg3);
18602 wxPyEndAllowThreads(__tstate);
18603 if (PyErr_Occurred()) SWIG_fail;
18604 }
18605 resultobj = SWIG_Py_Void();
18606 return resultobj;
18607fail:
18608 return NULL;
d55e5bfc
RD
18609}
18610
18611
554f62e9
RD
18612SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18613 PyObject *resultobj = 0;
18614 wxSlider *arg1 = (wxSlider *) 0 ;
18615 int result;
18616 void *argp1 = 0 ;
18617 int res1 = 0 ;
18618 PyObject *swig_obj[1] ;
18619
18620 if (!args) SWIG_fail;
18621 swig_obj[0] = args;
18622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18623 if (!SWIG_IsOK(res1)) {
18624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18625 }
18626 arg1 = reinterpret_cast< wxSlider * >(argp1);
18627 {
18628 PyThreadState* __tstate = wxPyBeginAllowThreads();
18629 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18630 wxPyEndAllowThreads(__tstate);
18631 if (PyErr_Occurred()) SWIG_fail;
18632 }
18633 resultobj = SWIG_From_int(static_cast< int >(result));
18634 return resultobj;
18635fail:
18636 return NULL;
d55e5bfc
RD
18637}
18638
18639
554f62e9
RD
18640SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18641 PyObject *resultobj = 0;
18642 wxSlider *arg1 = (wxSlider *) 0 ;
18643 void *argp1 = 0 ;
18644 int res1 = 0 ;
18645 PyObject *swig_obj[1] ;
18646
18647 if (!args) SWIG_fail;
18648 swig_obj[0] = args;
18649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18650 if (!SWIG_IsOK(res1)) {
18651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18652 }
18653 arg1 = reinterpret_cast< wxSlider * >(argp1);
18654 {
18655 PyThreadState* __tstate = wxPyBeginAllowThreads();
18656 (arg1)->ClearTicks();
18657 wxPyEndAllowThreads(__tstate);
18658 if (PyErr_Occurred()) SWIG_fail;
18659 }
18660 resultobj = SWIG_Py_Void();
18661 return resultobj;
18662fail:
18663 return NULL;
18664}
18665
18666
18667SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18668 PyObject *resultobj = 0;
18669 wxSlider *arg1 = (wxSlider *) 0 ;
18670 int arg2 ;
18671 void *argp1 = 0 ;
18672 int res1 = 0 ;
18673 int val2 ;
18674 int ecode2 = 0 ;
18675 PyObject * obj0 = 0 ;
18676 PyObject * obj1 = 0 ;
18677 char * kwnames[] = {
18678 (char *) "self",(char *) "tickPos", NULL
18679 };
18680
18681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18683 if (!SWIG_IsOK(res1)) {
18684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18685 }
18686 arg1 = reinterpret_cast< wxSlider * >(argp1);
18687 ecode2 = SWIG_AsVal_int(obj1, &val2);
18688 if (!SWIG_IsOK(ecode2)) {
18689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18690 }
18691 arg2 = static_cast< int >(val2);
18692 {
18693 PyThreadState* __tstate = wxPyBeginAllowThreads();
18694 (arg1)->SetTick(arg2);
18695 wxPyEndAllowThreads(__tstate);
18696 if (PyErr_Occurred()) SWIG_fail;
18697 }
18698 resultobj = SWIG_Py_Void();
18699 return resultobj;
18700fail:
18701 return NULL;
d55e5bfc
RD
18702}
18703
18704
554f62e9
RD
18705SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18706 PyObject *resultobj = 0;
18707 wxSlider *arg1 = (wxSlider *) 0 ;
18708 void *argp1 = 0 ;
18709 int res1 = 0 ;
18710 PyObject *swig_obj[1] ;
18711
18712 if (!args) SWIG_fail;
18713 swig_obj[0] = args;
18714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18715 if (!SWIG_IsOK(res1)) {
18716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18717 }
18718 arg1 = reinterpret_cast< wxSlider * >(argp1);
18719 {
18720 PyThreadState* __tstate = wxPyBeginAllowThreads();
18721 (arg1)->ClearSel();
18722 wxPyEndAllowThreads(__tstate);
18723 if (PyErr_Occurred()) SWIG_fail;
18724 }
18725 resultobj = SWIG_Py_Void();
18726 return resultobj;
18727fail:
18728 return NULL;
d55e5bfc
RD
18729}
18730
18731
554f62e9
RD
18732SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18733 PyObject *resultobj = 0;
18734 wxSlider *arg1 = (wxSlider *) 0 ;
18735 int result;
18736 void *argp1 = 0 ;
18737 int res1 = 0 ;
18738 PyObject *swig_obj[1] ;
18739
18740 if (!args) SWIG_fail;
18741 swig_obj[0] = args;
18742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18743 if (!SWIG_IsOK(res1)) {
18744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18745 }
18746 arg1 = reinterpret_cast< wxSlider * >(argp1);
18747 {
18748 PyThreadState* __tstate = wxPyBeginAllowThreads();
18749 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18750 wxPyEndAllowThreads(__tstate);
18751 if (PyErr_Occurred()) SWIG_fail;
18752 }
18753 resultobj = SWIG_From_int(static_cast< int >(result));
18754 return resultobj;
18755fail:
18756 return NULL;
d55e5bfc 18757}
554f62e9
RD
18758
18759
18760SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18761 PyObject *resultobj = 0;
18762 wxSlider *arg1 = (wxSlider *) 0 ;
18763 int result;
18764 void *argp1 = 0 ;
18765 int res1 = 0 ;
18766 PyObject *swig_obj[1] ;
18767
18768 if (!args) SWIG_fail;
18769 swig_obj[0] = args;
18770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18771 if (!SWIG_IsOK(res1)) {
18772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18773 }
18774 arg1 = reinterpret_cast< wxSlider * >(argp1);
18775 {
18776 PyThreadState* __tstate = wxPyBeginAllowThreads();
18777 result = (int)((wxSlider const *)arg1)->GetSelStart();
18778 wxPyEndAllowThreads(__tstate);
18779 if (PyErr_Occurred()) SWIG_fail;
18780 }
18781 resultobj = SWIG_From_int(static_cast< int >(result));
18782 return resultobj;
18783fail:
18784 return NULL;
18785}
18786
18787
18788SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18789 PyObject *resultobj = 0;
18790 wxSlider *arg1 = (wxSlider *) 0 ;
18791 int arg2 ;
18792 int arg3 ;
18793 void *argp1 = 0 ;
18794 int res1 = 0 ;
18795 int val2 ;
18796 int ecode2 = 0 ;
18797 int val3 ;
18798 int ecode3 = 0 ;
18799 PyObject * obj0 = 0 ;
18800 PyObject * obj1 = 0 ;
18801 PyObject * obj2 = 0 ;
18802 char * kwnames[] = {
18803 (char *) "self",(char *) "min",(char *) "max", NULL
18804 };
18805
18806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18808 if (!SWIG_IsOK(res1)) {
18809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18810 }
18811 arg1 = reinterpret_cast< wxSlider * >(argp1);
18812 ecode2 = SWIG_AsVal_int(obj1, &val2);
18813 if (!SWIG_IsOK(ecode2)) {
18814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18815 }
18816 arg2 = static_cast< int >(val2);
18817 ecode3 = SWIG_AsVal_int(obj2, &val3);
18818 if (!SWIG_IsOK(ecode3)) {
18819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18820 }
18821 arg3 = static_cast< int >(val3);
18822 {
18823 PyThreadState* __tstate = wxPyBeginAllowThreads();
18824 (arg1)->SetSelection(arg2,arg3);
18825 wxPyEndAllowThreads(__tstate);
18826 if (PyErr_Occurred()) SWIG_fail;
18827 }
18828 resultobj = SWIG_Py_Void();
18829 return resultobj;
18830fail:
18831 return NULL;
18832}
18833
18834
18835SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18836 PyObject *resultobj = 0;
18837 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18838 SwigValueWrapper<wxVisualAttributes > result;
18839 int val1 ;
18840 int ecode1 = 0 ;
18841 PyObject * obj0 = 0 ;
18842 char * kwnames[] = {
18843 (char *) "variant", NULL
18844 };
18845
18846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18847 if (obj0) {
18848 ecode1 = SWIG_AsVal_int(obj0, &val1);
18849 if (!SWIG_IsOK(ecode1)) {
18850 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18851 }
18852 arg1 = static_cast< wxWindowVariant >(val1);
18853 }
18854 {
18855 if (!wxPyCheckForApp()) SWIG_fail;
18856 PyThreadState* __tstate = wxPyBeginAllowThreads();
18857 result = wxSlider::GetClassDefaultAttributes(arg1);
18858 wxPyEndAllowThreads(__tstate);
18859 if (PyErr_Occurred()) SWIG_fail;
18860 }
18861 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18862 return resultobj;
18863fail:
18864 return NULL;
d55e5bfc
RD
18865}
18866
18867
554f62e9
RD
18868SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18869 PyObject *obj;
18870 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18871 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18872 return SWIG_Py_Void();
d55e5bfc
RD
18873}
18874
554f62e9
RD
18875SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18876 return SWIG_Python_InitShadowInstance(args);
18877}
d55e5bfc 18878
554f62e9
RD
18879SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18880 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18881 return 1;
d55e5bfc
RD
18882}
18883
18884
554f62e9
RD
18885SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18886 PyObject *pyobj = 0;
18887
18888 {
18889#if wxUSE_UNICODE
18890 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18891#else
18892 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18893#endif
18894 }
18895 return pyobj;
18896}
18897
18898
18899SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18900 PyObject *resultobj = 0;
18901 wxWindow *arg1 = (wxWindow *) 0 ;
18902 int arg2 = (int) -1 ;
18903 wxString const &arg3_defvalue = wxPyEmptyString ;
18904 wxString *arg3 = (wxString *) &arg3_defvalue ;
18905 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18906 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18907 wxSize const &arg5_defvalue = wxDefaultSize ;
18908 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18909 long arg6 = (long) 0 ;
18910 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18911 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18912 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18913 wxString *arg8 = (wxString *) &arg8_defvalue ;
18914 wxToggleButton *result = 0 ;
18915 void *argp1 = 0 ;
18916 int res1 = 0 ;
18917 int val2 ;
18918 int ecode2 = 0 ;
18919 bool temp3 = false ;
18920 wxPoint temp4 ;
18921 wxSize temp5 ;
18922 long val6 ;
18923 int ecode6 = 0 ;
18924 void *argp7 = 0 ;
18925 int res7 = 0 ;
18926 bool temp8 = false ;
18927 PyObject * obj0 = 0 ;
18928 PyObject * obj1 = 0 ;
18929 PyObject * obj2 = 0 ;
18930 PyObject * obj3 = 0 ;
18931 PyObject * obj4 = 0 ;
18932 PyObject * obj5 = 0 ;
18933 PyObject * obj6 = 0 ;
18934 PyObject * obj7 = 0 ;
18935 char * kwnames[] = {
18936 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18937 };
18938
18939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18941 if (!SWIG_IsOK(res1)) {
18942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18943 }
18944 arg1 = reinterpret_cast< wxWindow * >(argp1);
18945 if (obj1) {
18946 ecode2 = SWIG_AsVal_int(obj1, &val2);
18947 if (!SWIG_IsOK(ecode2)) {
18948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18949 }
18950 arg2 = static_cast< int >(val2);
18951 }
18952 if (obj2) {
d55e5bfc 18953 {
554f62e9
RD
18954 arg3 = wxString_in_helper(obj2);
18955 if (arg3 == NULL) SWIG_fail;
18956 temp3 = true;
d55e5bfc 18957 }
554f62e9
RD
18958 }
18959 if (obj3) {
d55e5bfc 18960 {
554f62e9
RD
18961 arg4 = &temp4;
18962 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 18963 }
554f62e9
RD
18964 }
18965 if (obj4) {
d55e5bfc 18966 {
554f62e9
RD
18967 arg5 = &temp5;
18968 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 18969 }
554f62e9
RD
18970 }
18971 if (obj5) {
18972 ecode6 = SWIG_AsVal_long(obj5, &val6);
18973 if (!SWIG_IsOK(ecode6)) {
18974 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18975 }
18976 arg6 = static_cast< long >(val6);
18977 }
18978 if (obj6) {
18979 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18980 if (!SWIG_IsOK(res7)) {
18981 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18982 }
554f62e9
RD
18983 if (!argp7) {
18984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18985 }
554f62e9
RD
18986 arg7 = reinterpret_cast< wxValidator * >(argp7);
18987 }
18988 if (obj7) {
093d3ff1 18989 {
554f62e9
RD
18990 arg8 = wxString_in_helper(obj7);
18991 if (arg8 == NULL) SWIG_fail;
18992 temp8 = true;
093d3ff1 18993 }
554f62e9
RD
18994 }
18995 {
18996 if (!wxPyCheckForApp()) SWIG_fail;
18997 PyThreadState* __tstate = wxPyBeginAllowThreads();
18998 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18999 wxPyEndAllowThreads(__tstate);
19000 if (PyErr_Occurred()) SWIG_fail;
19001 }
19002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
19003 {
19004 if (temp3)
19005 delete arg3;
19006 }
19007 {
19008 if (temp8)
19009 delete arg8;
19010 }
19011 return resultobj;
19012fail:
19013 {
19014 if (temp3)
19015 delete arg3;
19016 }
19017 {
19018 if (temp8)
19019 delete arg8;
19020 }
19021 return NULL;
d55e5bfc
RD
19022}
19023
19024
554f62e9
RD
19025SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19026 PyObject *resultobj = 0;
19027 wxToggleButton *result = 0 ;
19028
19029 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
19030 {
19031 if (!wxPyCheckForApp()) SWIG_fail;
19032 PyThreadState* __tstate = wxPyBeginAllowThreads();
19033 result = (wxToggleButton *)new wxToggleButton();
19034 wxPyEndAllowThreads(__tstate);
19035 if (PyErr_Occurred()) SWIG_fail;
19036 }
19037 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
19038 return resultobj;
19039fail:
19040 return NULL;
19041}
19042
19043
19044SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19045 PyObject *resultobj = 0;
19046 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19047 wxWindow *arg2 = (wxWindow *) 0 ;
19048 int arg3 = (int) -1 ;
19049 wxString const &arg4_defvalue = wxPyEmptyString ;
19050 wxString *arg4 = (wxString *) &arg4_defvalue ;
19051 wxPoint const &arg5_defvalue = wxDefaultPosition ;
19052 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
19053 wxSize const &arg6_defvalue = wxDefaultSize ;
19054 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
19055 long arg7 = (long) 0 ;
19056 wxValidator const &arg8_defvalue = wxDefaultValidator ;
19057 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
19058 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
19059 wxString *arg9 = (wxString *) &arg9_defvalue ;
19060 bool result;
19061 void *argp1 = 0 ;
19062 int res1 = 0 ;
19063 void *argp2 = 0 ;
19064 int res2 = 0 ;
19065 int val3 ;
19066 int ecode3 = 0 ;
19067 bool temp4 = false ;
19068 wxPoint temp5 ;
19069 wxSize temp6 ;
19070 long val7 ;
19071 int ecode7 = 0 ;
19072 void *argp8 = 0 ;
19073 int res8 = 0 ;
19074 bool temp9 = false ;
19075 PyObject * obj0 = 0 ;
19076 PyObject * obj1 = 0 ;
19077 PyObject * obj2 = 0 ;
19078 PyObject * obj3 = 0 ;
19079 PyObject * obj4 = 0 ;
19080 PyObject * obj5 = 0 ;
19081 PyObject * obj6 = 0 ;
19082 PyObject * obj7 = 0 ;
19083 PyObject * obj8 = 0 ;
19084 char * kwnames[] = {
19085 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19086 };
19087
19088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
19089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19090 if (!SWIG_IsOK(res1)) {
19091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19092 }
19093 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19094 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19095 if (!SWIG_IsOK(res2)) {
19096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
19097 }
19098 arg2 = reinterpret_cast< wxWindow * >(argp2);
19099 if (obj2) {
19100 ecode3 = SWIG_AsVal_int(obj2, &val3);
19101 if (!SWIG_IsOK(ecode3)) {
19102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
19103 }
19104 arg3 = static_cast< int >(val3);
19105 }
19106 if (obj3) {
d55e5bfc 19107 {
554f62e9
RD
19108 arg4 = wxString_in_helper(obj3);
19109 if (arg4 == NULL) SWIG_fail;
19110 temp4 = true;
d55e5bfc 19111 }
554f62e9
RD
19112 }
19113 if (obj4) {
093d3ff1 19114 {
554f62e9
RD
19115 arg5 = &temp5;
19116 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 19117 }
554f62e9
RD
19118 }
19119 if (obj5) {
d55e5bfc 19120 {
554f62e9
RD
19121 arg6 = &temp6;
19122 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 19123 }
554f62e9
RD
19124 }
19125 if (obj6) {
19126 ecode7 = SWIG_AsVal_long(obj6, &val7);
19127 if (!SWIG_IsOK(ecode7)) {
19128 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
19129 }
19130 arg7 = static_cast< long >(val7);
19131 }
19132 if (obj7) {
19133 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
19134 if (!SWIG_IsOK(res8)) {
19135 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 19136 }
554f62e9
RD
19137 if (!argp8) {
19138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 19139 }
554f62e9
RD
19140 arg8 = reinterpret_cast< wxValidator * >(argp8);
19141 }
19142 if (obj8) {
093d3ff1 19143 {
554f62e9
RD
19144 arg9 = wxString_in_helper(obj8);
19145 if (arg9 == NULL) SWIG_fail;
19146 temp9 = true;
093d3ff1 19147 }
554f62e9
RD
19148 }
19149 {
19150 PyThreadState* __tstate = wxPyBeginAllowThreads();
19151 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
19152 wxPyEndAllowThreads(__tstate);
19153 if (PyErr_Occurred()) SWIG_fail;
19154 }
19155 {
19156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19157 }
19158 {
19159 if (temp4)
19160 delete arg4;
19161 }
19162 {
19163 if (temp9)
19164 delete arg9;
19165 }
19166 return resultobj;
19167fail:
19168 {
19169 if (temp4)
19170 delete arg4;
19171 }
19172 {
19173 if (temp9)
19174 delete arg9;
19175 }
19176 return NULL;
19177}
19178
19179
19180SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19181 PyObject *resultobj = 0;
19182 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19183 bool arg2 ;
19184 void *argp1 = 0 ;
19185 int res1 = 0 ;
19186 bool val2 ;
19187 int ecode2 = 0 ;
19188 PyObject * obj0 = 0 ;
19189 PyObject * obj1 = 0 ;
19190 char * kwnames[] = {
19191 (char *) "self",(char *) "value", NULL
19192 };
19193
19194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19196 if (!SWIG_IsOK(res1)) {
19197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19198 }
19199 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19200 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19201 if (!SWIG_IsOK(ecode2)) {
19202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19203 }
19204 arg2 = static_cast< bool >(val2);
19205 {
19206 PyThreadState* __tstate = wxPyBeginAllowThreads();
19207 (arg1)->SetValue(arg2);
19208 wxPyEndAllowThreads(__tstate);
19209 if (PyErr_Occurred()) SWIG_fail;
19210 }
19211 resultobj = SWIG_Py_Void();
19212 return resultobj;
19213fail:
19214 return NULL;
d55e5bfc
RD
19215}
19216
19217
554f62e9
RD
19218SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19219 PyObject *resultobj = 0;
19220 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19221 bool result;
19222 void *argp1 = 0 ;
19223 int res1 = 0 ;
19224 PyObject *swig_obj[1] ;
19225
19226 if (!args) SWIG_fail;
19227 swig_obj[0] = args;
19228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19229 if (!SWIG_IsOK(res1)) {
19230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19231 }
19232 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19233 {
19234 PyThreadState* __tstate = wxPyBeginAllowThreads();
19235 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19236 wxPyEndAllowThreads(__tstate);
19237 if (PyErr_Occurred()) SWIG_fail;
19238 }
19239 {
19240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19241 }
19242 return resultobj;
19243fail:
19244 return NULL;
d55e5bfc
RD
19245}
19246
19247
554f62e9
RD
19248SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19249 PyObject *resultobj = 0;
19250 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19251 SwigValueWrapper<wxVisualAttributes > result;
19252 int val1 ;
19253 int ecode1 = 0 ;
19254 PyObject * obj0 = 0 ;
19255 char * kwnames[] = {
19256 (char *) "variant", NULL
19257 };
19258
19259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19260 if (obj0) {
19261 ecode1 = SWIG_AsVal_int(obj0, &val1);
19262 if (!SWIG_IsOK(ecode1)) {
19263 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19264 }
19265 arg1 = static_cast< wxWindowVariant >(val1);
19266 }
19267 {
19268 if (!wxPyCheckForApp()) SWIG_fail;
19269 PyThreadState* __tstate = wxPyBeginAllowThreads();
19270 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19271 wxPyEndAllowThreads(__tstate);
19272 if (PyErr_Occurred()) SWIG_fail;
19273 }
19274 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19275 return resultobj;
19276fail:
19277 return NULL;
d55e5bfc
RD
19278}
19279
19280
554f62e9
RD
19281SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19282 PyObject *obj;
19283 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19284 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19285 return SWIG_Py_Void();
d55e5bfc
RD
19286}
19287
554f62e9
RD
19288SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19289 return SWIG_Python_InitShadowInstance(args);
f20a2e1f
RD
19290}
19291
554f62e9
RD
19292SWIGINTERN int NotebookNameStr_set(PyObject *) {
19293 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19294 return 1;
d55e5bfc
RD
19295}
19296
19297
554f62e9
RD
19298SWIGINTERN PyObject *NotebookNameStr_get(void) {
19299 PyObject *pyobj = 0;
19300
19301 {
d55e5bfc 19302#if wxUSE_UNICODE
554f62e9 19303 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19304#else
554f62e9 19305 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19306#endif
554f62e9
RD
19307 }
19308 return pyobj;
d55e5bfc
RD
19309}
19310
19311
554f62e9
RD
19312SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19313 PyObject *resultobj = 0;
19314 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19315 size_t result;
19316 void *argp1 = 0 ;
19317 int res1 = 0 ;
19318 PyObject *swig_obj[1] ;
19319
19320 if (!args) SWIG_fail;
19321 swig_obj[0] = args;
19322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19323 if (!SWIG_IsOK(res1)) {
19324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19325 }
19326 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19327 {
19328 PyThreadState* __tstate = wxPyBeginAllowThreads();
19329 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19330 wxPyEndAllowThreads(__tstate);
19331 if (PyErr_Occurred()) SWIG_fail;
19332 }
19333 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19334 return resultobj;
19335fail:
19336 return NULL;
19337}
19338
19339
19340SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19341 PyObject *resultobj = 0;
19342 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19343 size_t arg2 ;
19344 wxWindow *result = 0 ;
19345 void *argp1 = 0 ;
19346 int res1 = 0 ;
19347 size_t val2 ;
19348 int ecode2 = 0 ;
19349 PyObject * obj0 = 0 ;
19350 PyObject * obj1 = 0 ;
19351 char * kwnames[] = {
19352 (char *) "self",(char *) "n", NULL
19353 };
19354
19355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19357 if (!SWIG_IsOK(res1)) {
19358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19359 }
19360 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19361 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19362 if (!SWIG_IsOK(ecode2)) {
19363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19364 }
19365 arg2 = static_cast< size_t >(val2);
19366 {
19367 PyThreadState* __tstate = wxPyBeginAllowThreads();
19368 result = (wxWindow *)(arg1)->GetPage(arg2);
19369 wxPyEndAllowThreads(__tstate);
19370 if (PyErr_Occurred()) SWIG_fail;
19371 }
19372 {
19373 resultobj = wxPyMake_wxObject(result, 0);
19374 }
19375 return resultobj;
19376fail:
19377 return NULL;
d55e5bfc
RD
19378}
19379
19380
554f62e9
RD
19381SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19382 PyObject *resultobj = 0;
19383 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19384 wxWindow *result = 0 ;
19385 void *argp1 = 0 ;
19386 int res1 = 0 ;
19387 PyObject *swig_obj[1] ;
19388
19389 if (!args) SWIG_fail;
19390 swig_obj[0] = args;
19391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19392 if (!SWIG_IsOK(res1)) {
19393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19394 }
19395 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19396 {
19397 PyThreadState* __tstate = wxPyBeginAllowThreads();
19398 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19399 wxPyEndAllowThreads(__tstate);
19400 if (PyErr_Occurred()) SWIG_fail;
19401 }
19402 {
19403 resultobj = wxPyMake_wxObject(result, 0);
19404 }
19405 return resultobj;
19406fail:
19407 return NULL;
d55e5bfc
RD
19408}
19409
19410
554f62e9
RD
19411SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19412 PyObject *resultobj = 0;
19413 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19414 int result;
19415 void *argp1 = 0 ;
19416 int res1 = 0 ;
19417 PyObject *swig_obj[1] ;
19418
19419 if (!args) SWIG_fail;
19420 swig_obj[0] = args;
19421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19422 if (!SWIG_IsOK(res1)) {
19423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19424 }
19425 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19426 {
19427 PyThreadState* __tstate = wxPyBeginAllowThreads();
19428 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19429 wxPyEndAllowThreads(__tstate);
19430 if (PyErr_Occurred()) SWIG_fail;
19431 }
19432 resultobj = SWIG_From_int(static_cast< int >(result));
19433 return resultobj;
19434fail:
19435 return NULL;
19436}
19437
19438
19439SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19440 PyObject *resultobj = 0;
19441 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19442 size_t arg2 ;
19443 wxString *arg3 = 0 ;
19444 bool result;
19445 void *argp1 = 0 ;
19446 int res1 = 0 ;
19447 size_t val2 ;
19448 int ecode2 = 0 ;
19449 bool temp3 = false ;
19450 PyObject * obj0 = 0 ;
19451 PyObject * obj1 = 0 ;
19452 PyObject * obj2 = 0 ;
19453 char * kwnames[] = {
19454 (char *) "self",(char *) "n",(char *) "strText", NULL
19455 };
19456
19457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) 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_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19461 }
19462 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19463 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19464 if (!SWIG_IsOK(ecode2)) {
19465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19466 }
19467 arg2 = static_cast< size_t >(val2);
19468 {
19469 arg3 = wxString_in_helper(obj2);
19470 if (arg3 == NULL) SWIG_fail;
19471 temp3 = true;
19472 }
19473 {
19474 PyThreadState* __tstate = wxPyBeginAllowThreads();
19475 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19476 wxPyEndAllowThreads(__tstate);
19477 if (PyErr_Occurred()) SWIG_fail;
19478 }
19479 {
19480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19481 }
19482 {
19483 if (temp3)
19484 delete arg3;
19485 }
19486 return resultobj;
19487fail:
19488 {
19489 if (temp3)
19490 delete arg3;
19491 }
19492 return NULL;
19493}
19494
19495
19496SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19497 PyObject *resultobj = 0;
19498 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19499 size_t arg2 ;
19500 wxString result;
19501 void *argp1 = 0 ;
19502 int res1 = 0 ;
19503 size_t val2 ;
19504 int ecode2 = 0 ;
19505 PyObject * obj0 = 0 ;
19506 PyObject * obj1 = 0 ;
19507 char * kwnames[] = {
19508 (char *) "self",(char *) "n", NULL
19509 };
19510
19511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19513 if (!SWIG_IsOK(res1)) {
19514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19515 }
19516 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19517 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19518 if (!SWIG_IsOK(ecode2)) {
19519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19520 }
19521 arg2 = static_cast< size_t >(val2);
19522 {
19523 PyThreadState* __tstate = wxPyBeginAllowThreads();
19524 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19525 wxPyEndAllowThreads(__tstate);
19526 if (PyErr_Occurred()) SWIG_fail;
19527 }
19528 {
19529#if wxUSE_UNICODE
19530 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19531#else
19532 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19533#endif
19534 }
19535 return resultobj;
19536fail:
19537 return NULL;
19538}
19539
19540
19541SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19542 PyObject *resultobj = 0;
19543 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19544 wxImageList *arg2 = (wxImageList *) 0 ;
19545 void *argp1 = 0 ;
19546 int res1 = 0 ;
19547 void *argp2 = 0 ;
19548 int res2 = 0 ;
19549 PyObject * obj0 = 0 ;
19550 PyObject * obj1 = 0 ;
19551 char * kwnames[] = {
19552 (char *) "self",(char *) "imageList", NULL
19553 };
19554
19555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19557 if (!SWIG_IsOK(res1)) {
19558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19559 }
19560 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19561 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19562 if (!SWIG_IsOK(res2)) {
19563 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19564 }
19565 arg2 = reinterpret_cast< wxImageList * >(argp2);
19566 {
19567 PyThreadState* __tstate = wxPyBeginAllowThreads();
19568 (arg1)->SetImageList(arg2);
19569 wxPyEndAllowThreads(__tstate);
19570 if (PyErr_Occurred()) SWIG_fail;
19571 }
19572 resultobj = SWIG_Py_Void();
19573 return resultobj;
19574fail:
19575 return NULL;
19576}
19577
19578
19579SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19580 PyObject *resultobj = 0;
19581 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19582 wxImageList *arg2 = (wxImageList *) 0 ;
19583 void *argp1 = 0 ;
19584 int res1 = 0 ;
19585 int res2 = 0 ;
19586 PyObject * obj0 = 0 ;
19587 PyObject * obj1 = 0 ;
19588 char * kwnames[] = {
19589 (char *) "self",(char *) "imageList", NULL
19590 };
19591
19592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19594 if (!SWIG_IsOK(res1)) {
19595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19596 }
19597 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19598 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19599 if (!SWIG_IsOK(res2)) {
19600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19601 }
19602 {
19603 PyThreadState* __tstate = wxPyBeginAllowThreads();
19604 (arg1)->AssignImageList(arg2);
19605 wxPyEndAllowThreads(__tstate);
19606 if (PyErr_Occurred()) SWIG_fail;
19607 }
19608 resultobj = SWIG_Py_Void();
19609 return resultobj;
19610fail:
19611 return NULL;
d55e5bfc
RD
19612}
19613
19614
554f62e9
RD
19615SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19616 PyObject *resultobj = 0;
19617 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19618 wxImageList *result = 0 ;
19619 void *argp1 = 0 ;
19620 int res1 = 0 ;
19621 PyObject *swig_obj[1] ;
19622
19623 if (!args) SWIG_fail;
19624 swig_obj[0] = args;
19625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19626 if (!SWIG_IsOK(res1)) {
19627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19628 }
19629 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19630 {
19631 PyThreadState* __tstate = wxPyBeginAllowThreads();
19632 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19633 wxPyEndAllowThreads(__tstate);
19634 if (PyErr_Occurred()) SWIG_fail;
19635 }
3ecece7e
RD
19636 {
19637 resultobj = wxPyMake_wxObject(result, (bool)0);
19638 }
554f62e9
RD
19639 return resultobj;
19640fail:
19641 return NULL;
19642}
19643
19644
19645SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19646 PyObject *resultobj = 0;
19647 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19648 size_t arg2 ;
19649 int result;
19650 void *argp1 = 0 ;
19651 int res1 = 0 ;
19652 size_t val2 ;
19653 int ecode2 = 0 ;
19654 PyObject * obj0 = 0 ;
19655 PyObject * obj1 = 0 ;
19656 char * kwnames[] = {
19657 (char *) "self",(char *) "n", NULL
19658 };
19659
19660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19662 if (!SWIG_IsOK(res1)) {
19663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19664 }
19665 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19666 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19667 if (!SWIG_IsOK(ecode2)) {
19668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19669 }
19670 arg2 = static_cast< size_t >(val2);
19671 {
19672 PyThreadState* __tstate = wxPyBeginAllowThreads();
19673 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19674 wxPyEndAllowThreads(__tstate);
19675 if (PyErr_Occurred()) SWIG_fail;
19676 }
19677 resultobj = SWIG_From_int(static_cast< int >(result));
19678 return resultobj;
19679fail:
19680 return NULL;
19681}
19682
19683
19684SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19685 PyObject *resultobj = 0;
19686 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19687 size_t arg2 ;
19688 int arg3 ;
19689 bool result;
19690 void *argp1 = 0 ;
19691 int res1 = 0 ;
19692 size_t val2 ;
19693 int ecode2 = 0 ;
19694 int val3 ;
19695 int ecode3 = 0 ;
19696 PyObject * obj0 = 0 ;
19697 PyObject * obj1 = 0 ;
19698 PyObject * obj2 = 0 ;
19699 char * kwnames[] = {
19700 (char *) "self",(char *) "n",(char *) "imageId", NULL
19701 };
19702
19703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19705 if (!SWIG_IsOK(res1)) {
19706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19707 }
19708 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19709 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19710 if (!SWIG_IsOK(ecode2)) {
19711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19712 }
19713 arg2 = static_cast< size_t >(val2);
19714 ecode3 = SWIG_AsVal_int(obj2, &val3);
19715 if (!SWIG_IsOK(ecode3)) {
19716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19717 }
19718 arg3 = static_cast< int >(val3);
19719 {
19720 PyThreadState* __tstate = wxPyBeginAllowThreads();
19721 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19722 wxPyEndAllowThreads(__tstate);
19723 if (PyErr_Occurred()) SWIG_fail;
19724 }
19725 {
19726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19727 }
19728 return resultobj;
19729fail:
19730 return NULL;
19731}
19732
19733
19734SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19735 PyObject *resultobj = 0;
19736 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19737 wxSize *arg2 = 0 ;
19738 void *argp1 = 0 ;
19739 int res1 = 0 ;
19740 wxSize temp2 ;
19741 PyObject * obj0 = 0 ;
19742 PyObject * obj1 = 0 ;
19743 char * kwnames[] = {
19744 (char *) "self",(char *) "size", NULL
19745 };
19746
19747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19749 if (!SWIG_IsOK(res1)) {
19750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19751 }
19752 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19753 {
19754 arg2 = &temp2;
19755 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19756 }
19757 {
19758 PyThreadState* __tstate = wxPyBeginAllowThreads();
19759 (arg1)->SetPageSize((wxSize const &)*arg2);
19760 wxPyEndAllowThreads(__tstate);
19761 if (PyErr_Occurred()) SWIG_fail;
19762 }
19763 resultobj = SWIG_Py_Void();
19764 return resultobj;
19765fail:
19766 return NULL;
19767}
19768
19769
19770SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19771 PyObject *resultobj = 0;
19772 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19773 wxSize *arg2 = 0 ;
19774 wxSize result;
19775 void *argp1 = 0 ;
19776 int res1 = 0 ;
19777 wxSize temp2 ;
19778 PyObject * obj0 = 0 ;
19779 PyObject * obj1 = 0 ;
19780 char * kwnames[] = {
19781 (char *) "self",(char *) "sizePage", NULL
19782 };
19783
19784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19786 if (!SWIG_IsOK(res1)) {
19787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19788 }
19789 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19790 {
19791 arg2 = &temp2;
19792 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19793 }
19794 {
19795 PyThreadState* __tstate = wxPyBeginAllowThreads();
19796 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19797 wxPyEndAllowThreads(__tstate);
19798 if (PyErr_Occurred()) SWIG_fail;
19799 }
19800 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19801 return resultobj;
19802fail:
19803 return NULL;
d55e5bfc
RD
19804}
19805
19806
554f62e9
RD
19807SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19808 PyObject *resultobj = 0;
19809 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19810 unsigned int result;
554f62e9
RD
19811 void *argp1 = 0 ;
19812 int res1 = 0 ;
19813 PyObject *swig_obj[1] ;
19814
19815 if (!args) SWIG_fail;
19816 swig_obj[0] = args;
19817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19818 if (!SWIG_IsOK(res1)) {
19819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19820 }
19821 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19822 {
19823 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19824 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
554f62e9
RD
19825 wxPyEndAllowThreads(__tstate);
19826 if (PyErr_Occurred()) SWIG_fail;
19827 }
e9d6f3a4 19828 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
19829 return resultobj;
19830fail:
19831 return NULL;
19832}
19833
19834
19835SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19836 PyObject *resultobj = 0;
19837 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19838 unsigned int arg2 ;
554f62e9
RD
19839 void *argp1 = 0 ;
19840 int res1 = 0 ;
e9d6f3a4 19841 unsigned int val2 ;
554f62e9
RD
19842 int ecode2 = 0 ;
19843 PyObject * obj0 = 0 ;
19844 PyObject * obj1 = 0 ;
19845 char * kwnames[] = {
19846 (char *) "self",(char *) "internalBorder", NULL
19847 };
19848
19849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19851 if (!SWIG_IsOK(res1)) {
19852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19853 }
19854 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19855 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
554f62e9 19856 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
554f62e9 19858 }
e9d6f3a4 19859 arg2 = static_cast< unsigned int >(val2);
554f62e9
RD
19860 {
19861 PyThreadState* __tstate = wxPyBeginAllowThreads();
19862 (arg1)->SetInternalBorder(arg2);
19863 wxPyEndAllowThreads(__tstate);
19864 if (PyErr_Occurred()) SWIG_fail;
19865 }
19866 resultobj = SWIG_Py_Void();
19867 return resultobj;
19868fail:
19869 return NULL;
d55e5bfc
RD
19870}
19871
19872
554f62e9
RD
19873SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19874 PyObject *resultobj = 0;
19875 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19876 bool result;
19877 void *argp1 = 0 ;
19878 int res1 = 0 ;
19879 PyObject *swig_obj[1] ;
19880
19881 if (!args) SWIG_fail;
19882 swig_obj[0] = args;
19883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19884 if (!SWIG_IsOK(res1)) {
19885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19886 }
19887 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19888 {
19889 PyThreadState* __tstate = wxPyBeginAllowThreads();
19890 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19891 wxPyEndAllowThreads(__tstate);
19892 if (PyErr_Occurred()) SWIG_fail;
19893 }
19894 {
19895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19896 }
19897 return resultobj;
19898fail:
19899 return NULL;
19900}
19901
19902
e9d6f3a4
RD
19903SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19904 PyObject *resultobj = 0;
19905 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19906 int arg2 ;
19907 void *argp1 = 0 ;
19908 int res1 = 0 ;
19909 int val2 ;
19910 int ecode2 = 0 ;
19911 PyObject * obj0 = 0 ;
19912 PyObject * obj1 = 0 ;
19913 char * kwnames[] = {
19914 (char *) "self",(char *) "margin", NULL
19915 };
19916
19917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19919 if (!SWIG_IsOK(res1)) {
19920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19921 }
19922 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19923 ecode2 = SWIG_AsVal_int(obj1, &val2);
19924 if (!SWIG_IsOK(ecode2)) {
19925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19926 }
19927 arg2 = static_cast< int >(val2);
19928 {
19929 PyThreadState* __tstate = wxPyBeginAllowThreads();
19930 (arg1)->SetControlMargin(arg2);
19931 wxPyEndAllowThreads(__tstate);
19932 if (PyErr_Occurred()) SWIG_fail;
19933 }
19934 resultobj = SWIG_Py_Void();
19935 return resultobj;
19936fail:
19937 return NULL;
19938}
19939
19940
19941SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19942 PyObject *resultobj = 0;
19943 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19944 int result;
19945 void *argp1 = 0 ;
19946 int res1 = 0 ;
19947 PyObject *swig_obj[1] ;
19948
19949 if (!args) SWIG_fail;
19950 swig_obj[0] = args;
19951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19952 if (!SWIG_IsOK(res1)) {
19953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19954 }
19955 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19956 {
19957 PyThreadState* __tstate = wxPyBeginAllowThreads();
19958 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19959 wxPyEndAllowThreads(__tstate);
19960 if (PyErr_Occurred()) SWIG_fail;
19961 }
19962 resultobj = SWIG_From_int(static_cast< int >(result));
19963 return resultobj;
19964fail:
19965 return NULL;
19966}
19967
19968
554f62e9
RD
19969SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19970 PyObject *resultobj = 0;
19971 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19972 bool arg2 ;
19973 void *argp1 = 0 ;
19974 int res1 = 0 ;
19975 bool val2 ;
19976 int ecode2 = 0 ;
19977 PyObject * obj0 = 0 ;
19978 PyObject * obj1 = 0 ;
19979 char * kwnames[] = {
19980 (char *) "self",(char *) "fit", NULL
19981 };
19982
19983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19985 if (!SWIG_IsOK(res1)) {
19986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19987 }
19988 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19989 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19990 if (!SWIG_IsOK(ecode2)) {
19991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19992 }
19993 arg2 = static_cast< bool >(val2);
19994 {
19995 PyThreadState* __tstate = wxPyBeginAllowThreads();
19996 (arg1)->SetFitToCurrentPage(arg2);
19997 wxPyEndAllowThreads(__tstate);
19998 if (PyErr_Occurred()) SWIG_fail;
19999 }
20000 resultobj = SWIG_Py_Void();
20001 return resultobj;
20002fail:
20003 return NULL;
d55e5bfc
RD
20004}
20005
20006
554f62e9
RD
20007SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20008 PyObject *resultobj = 0;
20009 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20010 bool result;
20011 void *argp1 = 0 ;
20012 int res1 = 0 ;
20013 PyObject *swig_obj[1] ;
20014
20015 if (!args) SWIG_fail;
20016 swig_obj[0] = args;
20017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20018 if (!SWIG_IsOK(res1)) {
20019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20020 }
20021 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20022 {
20023 PyThreadState* __tstate = wxPyBeginAllowThreads();
20024 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
20025 wxPyEndAllowThreads(__tstate);
20026 if (PyErr_Occurred()) SWIG_fail;
20027 }
20028 {
20029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20030 }
20031 return resultobj;
20032fail:
20033 return NULL;
20034}
20035
20036
e9d6f3a4
RD
20037SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20038 PyObject *resultobj = 0;
20039 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20040 wxSizer *result = 0 ;
20041 void *argp1 = 0 ;
20042 int res1 = 0 ;
20043 PyObject *swig_obj[1] ;
20044
20045 if (!args) SWIG_fail;
20046 swig_obj[0] = args;
20047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20048 if (!SWIG_IsOK(res1)) {
20049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20050 }
20051 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20052 {
20053 PyThreadState* __tstate = wxPyBeginAllowThreads();
20054 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
20055 wxPyEndAllowThreads(__tstate);
20056 if (PyErr_Occurred()) SWIG_fail;
20057 }
20058 {
20059 resultobj = wxPyMake_wxObject(result, (bool)0);
20060 }
20061 return resultobj;
20062fail:
20063 return NULL;
20064}
20065
20066
554f62e9
RD
20067SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20068 PyObject *resultobj = 0;
20069 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20070 size_t arg2 ;
20071 bool result;
20072 void *argp1 = 0 ;
20073 int res1 = 0 ;
20074 size_t val2 ;
20075 int ecode2 = 0 ;
20076 PyObject * obj0 = 0 ;
20077 PyObject * obj1 = 0 ;
20078 char * kwnames[] = {
20079 (char *) "self",(char *) "n", NULL
20080 };
20081
20082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
20083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20084 if (!SWIG_IsOK(res1)) {
20085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20086 }
20087 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20088 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20089 if (!SWIG_IsOK(ecode2)) {
20090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
20091 }
20092 arg2 = static_cast< size_t >(val2);
20093 {
20094 PyThreadState* __tstate = wxPyBeginAllowThreads();
20095 result = (bool)(arg1)->DeletePage(arg2);
20096 wxPyEndAllowThreads(__tstate);
20097 if (PyErr_Occurred()) SWIG_fail;
20098 }
20099 {
20100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20101 }
20102 return resultobj;
20103fail:
20104 return NULL;
20105}
20106
20107
20108SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20109 PyObject *resultobj = 0;
20110 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20111 size_t arg2 ;
20112 bool result;
20113 void *argp1 = 0 ;
20114 int res1 = 0 ;
20115 size_t val2 ;
20116 int ecode2 = 0 ;
20117 PyObject * obj0 = 0 ;
20118 PyObject * obj1 = 0 ;
20119 char * kwnames[] = {
20120 (char *) "self",(char *) "n", NULL
20121 };
20122
20123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
20124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20125 if (!SWIG_IsOK(res1)) {
20126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20127 }
20128 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20129 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20130 if (!SWIG_IsOK(ecode2)) {
20131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
20132 }
20133 arg2 = static_cast< size_t >(val2);
20134 {
20135 PyThreadState* __tstate = wxPyBeginAllowThreads();
20136 result = (bool)(arg1)->RemovePage(arg2);
20137 wxPyEndAllowThreads(__tstate);
20138 if (PyErr_Occurred()) SWIG_fail;
20139 }
20140 {
20141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20142 }
20143 return resultobj;
20144fail:
20145 return NULL;
d55e5bfc
RD
20146}
20147
20148
554f62e9
RD
20149SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20150 PyObject *resultobj = 0;
20151 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20152 bool result;
20153 void *argp1 = 0 ;
20154 int res1 = 0 ;
20155 PyObject *swig_obj[1] ;
20156
20157 if (!args) SWIG_fail;
20158 swig_obj[0] = args;
20159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20160 if (!SWIG_IsOK(res1)) {
20161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20162 }
20163 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20164 {
20165 PyThreadState* __tstate = wxPyBeginAllowThreads();
20166 result = (bool)(arg1)->DeleteAllPages();
20167 wxPyEndAllowThreads(__tstate);
20168 if (PyErr_Occurred()) SWIG_fail;
20169 }
20170 {
20171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20172 }
20173 return resultobj;
20174fail:
20175 return NULL;
20176}
20177
20178
20179SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20180 PyObject *resultobj = 0;
20181 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20182 wxWindow *arg2 = (wxWindow *) 0 ;
20183 wxString *arg3 = 0 ;
20184 bool arg4 = (bool) false ;
20185 int arg5 = (int) -1 ;
20186 bool result;
20187 void *argp1 = 0 ;
20188 int res1 = 0 ;
20189 void *argp2 = 0 ;
20190 int res2 = 0 ;
20191 bool temp3 = false ;
20192 bool val4 ;
20193 int ecode4 = 0 ;
20194 int val5 ;
20195 int ecode5 = 0 ;
20196 PyObject * obj0 = 0 ;
20197 PyObject * obj1 = 0 ;
20198 PyObject * obj2 = 0 ;
20199 PyObject * obj3 = 0 ;
20200 PyObject * obj4 = 0 ;
20201 char * kwnames[] = {
20202 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20203 };
20204
20205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20207 if (!SWIG_IsOK(res1)) {
20208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20209 }
20210 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20211 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20212 if (!SWIG_IsOK(res2)) {
20213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20214 }
20215 arg2 = reinterpret_cast< wxWindow * >(argp2);
20216 {
20217 arg3 = wxString_in_helper(obj2);
20218 if (arg3 == NULL) SWIG_fail;
20219 temp3 = true;
20220 }
20221 if (obj3) {
20222 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20223 if (!SWIG_IsOK(ecode4)) {
20224 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20225 }
20226 arg4 = static_cast< bool >(val4);
20227 }
20228 if (obj4) {
20229 ecode5 = SWIG_AsVal_int(obj4, &val5);
20230 if (!SWIG_IsOK(ecode5)) {
20231 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20232 }
20233 arg5 = static_cast< int >(val5);
20234 }
20235 {
20236 PyThreadState* __tstate = wxPyBeginAllowThreads();
20237 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20238 wxPyEndAllowThreads(__tstate);
20239 if (PyErr_Occurred()) SWIG_fail;
20240 }
20241 {
20242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20243 }
20244 {
20245 if (temp3)
20246 delete arg3;
20247 }
20248 return resultobj;
20249fail:
20250 {
20251 if (temp3)
20252 delete arg3;
20253 }
20254 return NULL;
20255}
20256
20257
20258SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20259 PyObject *resultobj = 0;
20260 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20261 size_t arg2 ;
20262 wxWindow *arg3 = (wxWindow *) 0 ;
20263 wxString *arg4 = 0 ;
20264 bool arg5 = (bool) false ;
20265 int arg6 = (int) -1 ;
20266 bool result;
20267 void *argp1 = 0 ;
20268 int res1 = 0 ;
20269 size_t val2 ;
20270 int ecode2 = 0 ;
20271 void *argp3 = 0 ;
20272 int res3 = 0 ;
20273 bool temp4 = false ;
20274 bool val5 ;
20275 int ecode5 = 0 ;
20276 int val6 ;
20277 int ecode6 = 0 ;
20278 PyObject * obj0 = 0 ;
20279 PyObject * obj1 = 0 ;
20280 PyObject * obj2 = 0 ;
20281 PyObject * obj3 = 0 ;
20282 PyObject * obj4 = 0 ;
20283 PyObject * obj5 = 0 ;
20284 char * kwnames[] = {
20285 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20286 };
20287
20288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20290 if (!SWIG_IsOK(res1)) {
20291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20292 }
20293 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20294 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20295 if (!SWIG_IsOK(ecode2)) {
20296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20297 }
20298 arg2 = static_cast< size_t >(val2);
20299 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20300 if (!SWIG_IsOK(res3)) {
20301 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20302 }
20303 arg3 = reinterpret_cast< wxWindow * >(argp3);
20304 {
20305 arg4 = wxString_in_helper(obj3);
20306 if (arg4 == NULL) SWIG_fail;
20307 temp4 = true;
20308 }
20309 if (obj4) {
20310 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20311 if (!SWIG_IsOK(ecode5)) {
20312 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20313 }
20314 arg5 = static_cast< bool >(val5);
20315 }
20316 if (obj5) {
20317 ecode6 = SWIG_AsVal_int(obj5, &val6);
20318 if (!SWIG_IsOK(ecode6)) {
20319 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20320 }
20321 arg6 = static_cast< int >(val6);
20322 }
20323 {
20324 PyThreadState* __tstate = wxPyBeginAllowThreads();
20325 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20326 wxPyEndAllowThreads(__tstate);
20327 if (PyErr_Occurred()) SWIG_fail;
20328 }
20329 {
20330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20331 }
20332 {
20333 if (temp4)
20334 delete arg4;
20335 }
20336 return resultobj;
20337fail:
20338 {
20339 if (temp4)
20340 delete arg4;
20341 }
20342 return NULL;
20343}
20344
20345
20346SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20347 PyObject *resultobj = 0;
20348 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20349 size_t arg2 ;
20350 int result;
20351 void *argp1 = 0 ;
20352 int res1 = 0 ;
20353 size_t val2 ;
20354 int ecode2 = 0 ;
20355 PyObject * obj0 = 0 ;
20356 PyObject * obj1 = 0 ;
20357 char * kwnames[] = {
20358 (char *) "self",(char *) "n", NULL
20359 };
20360
20361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20363 if (!SWIG_IsOK(res1)) {
20364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20365 }
20366 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20367 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20368 if (!SWIG_IsOK(ecode2)) {
20369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20370 }
20371 arg2 = static_cast< size_t >(val2);
20372 {
20373 PyThreadState* __tstate = wxPyBeginAllowThreads();
20374 result = (int)(arg1)->SetSelection(arg2);
20375 wxPyEndAllowThreads(__tstate);
20376 if (PyErr_Occurred()) SWIG_fail;
20377 }
20378 resultobj = SWIG_From_int(static_cast< int >(result));
20379 return resultobj;
20380fail:
20381 return NULL;
20382}
20383
20384
b39fe951
RD
20385SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20386 PyObject *resultobj = 0;
20387 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20388 size_t arg2 ;
20389 int result;
20390 void *argp1 = 0 ;
20391 int res1 = 0 ;
20392 size_t val2 ;
20393 int ecode2 = 0 ;
20394 PyObject * obj0 = 0 ;
20395 PyObject * obj1 = 0 ;
20396 char * kwnames[] = {
20397 (char *) "self",(char *) "n", NULL
20398 };
20399
20400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20402 if (!SWIG_IsOK(res1)) {
20403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20404 }
20405 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20406 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20407 if (!SWIG_IsOK(ecode2)) {
20408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20409 }
20410 arg2 = static_cast< size_t >(val2);
20411 {
20412 PyThreadState* __tstate = wxPyBeginAllowThreads();
20413 result = (int)(arg1)->ChangeSelection(arg2);
20414 wxPyEndAllowThreads(__tstate);
20415 if (PyErr_Occurred()) SWIG_fail;
20416 }
20417 resultobj = SWIG_From_int(static_cast< int >(result));
20418 return resultobj;
20419fail:
20420 return NULL;
20421}
20422
20423
554f62e9
RD
20424SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20425 PyObject *resultobj = 0;
20426 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20427 bool arg2 = (bool) true ;
20428 void *argp1 = 0 ;
20429 int res1 = 0 ;
20430 bool val2 ;
20431 int ecode2 = 0 ;
20432 PyObject * obj0 = 0 ;
20433 PyObject * obj1 = 0 ;
20434 char * kwnames[] = {
20435 (char *) "self",(char *) "forward", NULL
20436 };
20437
20438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20440 if (!SWIG_IsOK(res1)) {
20441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20442 }
20443 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20444 if (obj1) {
20445 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20446 if (!SWIG_IsOK(ecode2)) {
20447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20448 }
20449 arg2 = static_cast< bool >(val2);
20450 }
20451 {
20452 PyThreadState* __tstate = wxPyBeginAllowThreads();
20453 (arg1)->AdvanceSelection(arg2);
20454 wxPyEndAllowThreads(__tstate);
20455 if (PyErr_Occurred()) SWIG_fail;
20456 }
20457 resultobj = SWIG_Py_Void();
20458 return resultobj;
20459fail:
20460 return NULL;
20461}
20462
20463
704eda0c
RD
20464SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20465 PyObject *resultobj = 0;
20466 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20467 wxPoint *arg2 = 0 ;
20468 long *arg3 = (long *) 0 ;
20469 int result;
20470 void *argp1 = 0 ;
20471 int res1 = 0 ;
20472 wxPoint temp2 ;
20473 long temp3 ;
20474 int res3 = SWIG_TMPOBJ ;
20475 PyObject * obj0 = 0 ;
20476 PyObject * obj1 = 0 ;
20477 char * kwnames[] = {
20478 (char *) "self",(char *) "pt", NULL
20479 };
20480
20481 arg3 = &temp3;
20482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20484 if (!SWIG_IsOK(res1)) {
20485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20486 }
20487 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20488 {
20489 arg2 = &temp2;
20490 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20491 }
20492 {
20493 PyThreadState* __tstate = wxPyBeginAllowThreads();
20494 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20495 wxPyEndAllowThreads(__tstate);
20496 if (PyErr_Occurred()) SWIG_fail;
20497 }
20498 resultobj = SWIG_From_int(static_cast< int >(result));
20499 if (SWIG_IsTmpObj(res3)) {
20500 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20501 } else {
20502 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20503 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20504 }
20505 return resultobj;
20506fail:
20507 return NULL;
20508}
20509
20510
554f62e9
RD
20511SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20512 PyObject *resultobj = 0;
20513 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20514 SwigValueWrapper<wxVisualAttributes > result;
20515 int val1 ;
20516 int ecode1 = 0 ;
20517 PyObject * obj0 = 0 ;
20518 char * kwnames[] = {
20519 (char *) "variant", NULL
20520 };
20521
20522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20523 if (obj0) {
20524 ecode1 = SWIG_AsVal_int(obj0, &val1);
20525 if (!SWIG_IsOK(ecode1)) {
20526 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20527 }
20528 arg1 = static_cast< wxWindowVariant >(val1);
20529 }
20530 {
20531 if (!wxPyCheckForApp()) SWIG_fail;
20532 PyThreadState* __tstate = wxPyBeginAllowThreads();
20533 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20534 wxPyEndAllowThreads(__tstate);
20535 if (PyErr_Occurred()) SWIG_fail;
20536 }
20537 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20538 return resultobj;
20539fail:
20540 return NULL;
20541}
20542
20543
20544SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20545 PyObject *obj;
20546 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20547 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20548 return SWIG_Py_Void();
20549}
20550
20551SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20552 PyObject *resultobj = 0;
20553 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20554 int arg2 = (int) 0 ;
20555 int arg3 = (int) -1 ;
20556 int arg4 = (int) -1 ;
20557 wxBookCtrlBaseEvent *result = 0 ;
20558 int val1 ;
20559 int ecode1 = 0 ;
20560 int val2 ;
20561 int ecode2 = 0 ;
20562 int val3 ;
20563 int ecode3 = 0 ;
20564 int val4 ;
20565 int ecode4 = 0 ;
20566 PyObject * obj0 = 0 ;
20567 PyObject * obj1 = 0 ;
20568 PyObject * obj2 = 0 ;
20569 PyObject * obj3 = 0 ;
20570 char * kwnames[] = {
20571 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20572 };
20573
20574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20575 if (obj0) {
20576 ecode1 = SWIG_AsVal_int(obj0, &val1);
20577 if (!SWIG_IsOK(ecode1)) {
20578 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20579 }
20580 arg1 = static_cast< wxEventType >(val1);
20581 }
20582 if (obj1) {
20583 ecode2 = SWIG_AsVal_int(obj1, &val2);
20584 if (!SWIG_IsOK(ecode2)) {
20585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20586 }
20587 arg2 = static_cast< int >(val2);
20588 }
20589 if (obj2) {
20590 ecode3 = SWIG_AsVal_int(obj2, &val3);
20591 if (!SWIG_IsOK(ecode3)) {
20592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20593 }
20594 arg3 = static_cast< int >(val3);
20595 }
20596 if (obj3) {
20597 ecode4 = SWIG_AsVal_int(obj3, &val4);
20598 if (!SWIG_IsOK(ecode4)) {
20599 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20600 }
20601 arg4 = static_cast< int >(val4);
20602 }
20603 {
20604 PyThreadState* __tstate = wxPyBeginAllowThreads();
20605 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20606 wxPyEndAllowThreads(__tstate);
20607 if (PyErr_Occurred()) SWIG_fail;
20608 }
20609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20610 return resultobj;
20611fail:
20612 return NULL;
d55e5bfc
RD
20613}
20614
20615
554f62e9
RD
20616SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20617 PyObject *resultobj = 0;
20618 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20619 int result;
20620 void *argp1 = 0 ;
20621 int res1 = 0 ;
20622 PyObject *swig_obj[1] ;
20623
20624 if (!args) SWIG_fail;
20625 swig_obj[0] = args;
20626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20627 if (!SWIG_IsOK(res1)) {
20628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20629 }
20630 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20631 {
20632 PyThreadState* __tstate = wxPyBeginAllowThreads();
20633 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20634 wxPyEndAllowThreads(__tstate);
20635 if (PyErr_Occurred()) SWIG_fail;
20636 }
20637 resultobj = SWIG_From_int(static_cast< int >(result));
20638 return resultobj;
20639fail:
20640 return NULL;
20641}
20642
20643
20644SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20645 PyObject *resultobj = 0;
20646 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20647 int arg2 ;
20648 void *argp1 = 0 ;
20649 int res1 = 0 ;
20650 int val2 ;
20651 int ecode2 = 0 ;
20652 PyObject * obj0 = 0 ;
20653 PyObject * obj1 = 0 ;
20654 char * kwnames[] = {
20655 (char *) "self",(char *) "nSel", NULL
20656 };
20657
20658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20660 if (!SWIG_IsOK(res1)) {
20661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20662 }
20663 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20664 ecode2 = SWIG_AsVal_int(obj1, &val2);
20665 if (!SWIG_IsOK(ecode2)) {
20666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20667 }
20668 arg2 = static_cast< int >(val2);
20669 {
20670 PyThreadState* __tstate = wxPyBeginAllowThreads();
20671 (arg1)->SetSelection(arg2);
20672 wxPyEndAllowThreads(__tstate);
20673 if (PyErr_Occurred()) SWIG_fail;
20674 }
20675 resultobj = SWIG_Py_Void();
20676 return resultobj;
20677fail:
20678 return NULL;
d55e5bfc
RD
20679}
20680
20681
554f62e9
RD
20682SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20683 PyObject *resultobj = 0;
20684 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20685 int result;
20686 void *argp1 = 0 ;
20687 int res1 = 0 ;
20688 PyObject *swig_obj[1] ;
20689
20690 if (!args) SWIG_fail;
20691 swig_obj[0] = args;
20692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20693 if (!SWIG_IsOK(res1)) {
20694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20695 }
20696 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20697 {
20698 PyThreadState* __tstate = wxPyBeginAllowThreads();
20699 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20700 wxPyEndAllowThreads(__tstate);
20701 if (PyErr_Occurred()) SWIG_fail;
20702 }
20703 resultobj = SWIG_From_int(static_cast< int >(result));
20704 return resultobj;
20705fail:
20706 return NULL;
20707}
20708
20709
20710SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20711 PyObject *resultobj = 0;
20712 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20713 int arg2 ;
20714 void *argp1 = 0 ;
20715 int res1 = 0 ;
20716 int val2 ;
20717 int ecode2 = 0 ;
20718 PyObject * obj0 = 0 ;
20719 PyObject * obj1 = 0 ;
20720 char * kwnames[] = {
20721 (char *) "self",(char *) "nOldSel", NULL
20722 };
20723
20724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20726 if (!SWIG_IsOK(res1)) {
20727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20728 }
20729 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20730 ecode2 = SWIG_AsVal_int(obj1, &val2);
20731 if (!SWIG_IsOK(ecode2)) {
20732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20733 }
20734 arg2 = static_cast< int >(val2);
20735 {
20736 PyThreadState* __tstate = wxPyBeginAllowThreads();
20737 (arg1)->SetOldSelection(arg2);
20738 wxPyEndAllowThreads(__tstate);
20739 if (PyErr_Occurred()) SWIG_fail;
20740 }
20741 resultobj = SWIG_Py_Void();
20742 return resultobj;
20743fail:
20744 return NULL;
20745}
20746
20747
20748SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20749 PyObject *obj;
20750 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20751 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20752 return SWIG_Py_Void();
20753}
20754
20755SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20756 return SWIG_Python_InitShadowInstance(args);
20757}
20758
20759SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20760 PyObject *resultobj = 0;
20761 wxWindow *arg1 = (wxWindow *) 0 ;
20762 int arg2 = (int) -1 ;
20763 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20764 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20765 wxSize const &arg4_defvalue = wxDefaultSize ;
20766 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20767 long arg5 = (long) 0 ;
20768 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20769 wxString *arg6 = (wxString *) &arg6_defvalue ;
20770 wxNotebook *result = 0 ;
20771 void *argp1 = 0 ;
20772 int res1 = 0 ;
20773 int val2 ;
20774 int ecode2 = 0 ;
20775 wxPoint temp3 ;
20776 wxSize temp4 ;
20777 long val5 ;
20778 int ecode5 = 0 ;
20779 bool temp6 = false ;
20780 PyObject * obj0 = 0 ;
20781 PyObject * obj1 = 0 ;
20782 PyObject * obj2 = 0 ;
20783 PyObject * obj3 = 0 ;
20784 PyObject * obj4 = 0 ;
20785 PyObject * obj5 = 0 ;
20786 char * kwnames[] = {
20787 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20788 };
20789
20790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20792 if (!SWIG_IsOK(res1)) {
20793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20794 }
20795 arg1 = reinterpret_cast< wxWindow * >(argp1);
20796 if (obj1) {
20797 ecode2 = SWIG_AsVal_int(obj1, &val2);
20798 if (!SWIG_IsOK(ecode2)) {
20799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20800 }
20801 arg2 = static_cast< int >(val2);
20802 }
20803 if (obj2) {
093d3ff1 20804 {
554f62e9
RD
20805 arg3 = &temp3;
20806 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20807 }
554f62e9
RD
20808 }
20809 if (obj3) {
d55e5bfc 20810 {
554f62e9
RD
20811 arg4 = &temp4;
20812 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20813 }
554f62e9
RD
20814 }
20815 if (obj4) {
20816 ecode5 = SWIG_AsVal_long(obj4, &val5);
20817 if (!SWIG_IsOK(ecode5)) {
20818 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20819 }
20820 arg5 = static_cast< long >(val5);
20821 }
20822 if (obj5) {
20823 {
20824 arg6 = wxString_in_helper(obj5);
20825 if (arg6 == NULL) SWIG_fail;
20826 temp6 = true;
20827 }
20828 }
20829 {
20830 if (!wxPyCheckForApp()) SWIG_fail;
20831 PyThreadState* __tstate = wxPyBeginAllowThreads();
20832 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20833 wxPyEndAllowThreads(__tstate);
20834 if (PyErr_Occurred()) SWIG_fail;
20835 }
20836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20837 {
20838 if (temp6)
20839 delete arg6;
20840 }
20841 return resultobj;
20842fail:
20843 {
20844 if (temp6)
20845 delete arg6;
20846 }
20847 return NULL;
d55e5bfc
RD
20848}
20849
20850
554f62e9
RD
20851SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20852 PyObject *resultobj = 0;
20853 wxNotebook *result = 0 ;
20854
20855 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20856 {
20857 if (!wxPyCheckForApp()) SWIG_fail;
20858 PyThreadState* __tstate = wxPyBeginAllowThreads();
20859 result = (wxNotebook *)new wxNotebook();
20860 wxPyEndAllowThreads(__tstate);
20861 if (PyErr_Occurred()) SWIG_fail;
20862 }
20863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20864 return resultobj;
20865fail:
20866 return NULL;
20867}
20868
20869
20870SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20871 PyObject *resultobj = 0;
20872 wxNotebook *arg1 = (wxNotebook *) 0 ;
20873 wxWindow *arg2 = (wxWindow *) 0 ;
20874 int arg3 = (int) -1 ;
20875 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20876 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20877 wxSize const &arg5_defvalue = wxDefaultSize ;
20878 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20879 long arg6 = (long) 0 ;
20880 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20881 wxString *arg7 = (wxString *) &arg7_defvalue ;
20882 bool result;
20883 void *argp1 = 0 ;
20884 int res1 = 0 ;
20885 void *argp2 = 0 ;
20886 int res2 = 0 ;
20887 int val3 ;
20888 int ecode3 = 0 ;
20889 wxPoint temp4 ;
20890 wxSize temp5 ;
20891 long val6 ;
20892 int ecode6 = 0 ;
20893 bool temp7 = false ;
20894 PyObject * obj0 = 0 ;
20895 PyObject * obj1 = 0 ;
20896 PyObject * obj2 = 0 ;
20897 PyObject * obj3 = 0 ;
20898 PyObject * obj4 = 0 ;
20899 PyObject * obj5 = 0 ;
20900 PyObject * obj6 = 0 ;
20901 char * kwnames[] = {
20902 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20903 };
20904
20905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20907 if (!SWIG_IsOK(res1)) {
20908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20909 }
20910 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20911 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20912 if (!SWIG_IsOK(res2)) {
20913 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20914 }
20915 arg2 = reinterpret_cast< wxWindow * >(argp2);
20916 if (obj2) {
20917 ecode3 = SWIG_AsVal_int(obj2, &val3);
20918 if (!SWIG_IsOK(ecode3)) {
20919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20920 }
20921 arg3 = static_cast< int >(val3);
20922 }
20923 if (obj3) {
093d3ff1 20924 {
554f62e9
RD
20925 arg4 = &temp4;
20926 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 20927 }
554f62e9
RD
20928 }
20929 if (obj4) {
093d3ff1 20930 {
554f62e9
RD
20931 arg5 = &temp5;
20932 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 20933 }
554f62e9
RD
20934 }
20935 if (obj5) {
20936 ecode6 = SWIG_AsVal_long(obj5, &val6);
20937 if (!SWIG_IsOK(ecode6)) {
20938 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20939 }
20940 arg6 = static_cast< long >(val6);
20941 }
20942 if (obj6) {
d55e5bfc 20943 {
554f62e9
RD
20944 arg7 = wxString_in_helper(obj6);
20945 if (arg7 == NULL) SWIG_fail;
20946 temp7 = true;
d55e5bfc 20947 }
554f62e9
RD
20948 }
20949 {
20950 PyThreadState* __tstate = wxPyBeginAllowThreads();
20951 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20952 wxPyEndAllowThreads(__tstate);
20953 if (PyErr_Occurred()) SWIG_fail;
20954 }
20955 {
20956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20957 }
20958 {
20959 if (temp7)
20960 delete arg7;
20961 }
20962 return resultobj;
20963fail:
20964 {
20965 if (temp7)
20966 delete arg7;
20967 }
20968 return NULL;
f20a2e1f
RD
20969}
20970
20971
554f62e9
RD
20972SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20973 PyObject *resultobj = 0;
20974 wxNotebook *arg1 = (wxNotebook *) 0 ;
20975 int result;
20976 void *argp1 = 0 ;
20977 int res1 = 0 ;
20978 PyObject *swig_obj[1] ;
20979
20980 if (!args) SWIG_fail;
20981 swig_obj[0] = args;
20982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20983 if (!SWIG_IsOK(res1)) {
20984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20985 }
20986 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20987 {
20988 PyThreadState* __tstate = wxPyBeginAllowThreads();
20989 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20990 wxPyEndAllowThreads(__tstate);
20991 if (PyErr_Occurred()) SWIG_fail;
20992 }
20993 resultobj = SWIG_From_int(static_cast< int >(result));
20994 return resultobj;
20995fail:
20996 return NULL;
20997}
20998
20999
21000SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21001 PyObject *resultobj = 0;
21002 wxNotebook *arg1 = (wxNotebook *) 0 ;
21003 wxSize *arg2 = 0 ;
21004 void *argp1 = 0 ;
21005 int res1 = 0 ;
21006 wxSize temp2 ;
21007 PyObject * obj0 = 0 ;
21008 PyObject * obj1 = 0 ;
21009 char * kwnames[] = {
21010 (char *) "self",(char *) "padding", NULL
21011 };
21012
21013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",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_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
21017 }
21018 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21019 {
21020 arg2 = &temp2;
21021 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21022 }
21023 {
21024 PyThreadState* __tstate = wxPyBeginAllowThreads();
21025 (arg1)->SetPadding((wxSize const &)*arg2);
21026 wxPyEndAllowThreads(__tstate);
21027 if (PyErr_Occurred()) SWIG_fail;
21028 }
21029 resultobj = SWIG_Py_Void();
21030 return resultobj;
21031fail:
21032 return NULL;
21033}
21034
21035
21036SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21037 PyObject *resultobj = 0;
21038 wxNotebook *arg1 = (wxNotebook *) 0 ;
21039 wxSize *arg2 = 0 ;
21040 void *argp1 = 0 ;
21041 int res1 = 0 ;
21042 wxSize temp2 ;
21043 PyObject * obj0 = 0 ;
21044 PyObject * obj1 = 0 ;
21045 char * kwnames[] = {
21046 (char *) "self",(char *) "sz", NULL
21047 };
21048
21049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
21050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21051 if (!SWIG_IsOK(res1)) {
21052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
21053 }
21054 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21055 {
21056 arg2 = &temp2;
21057 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21058 }
21059 {
21060 PyThreadState* __tstate = wxPyBeginAllowThreads();
21061 (arg1)->SetTabSize((wxSize const &)*arg2);
21062 wxPyEndAllowThreads(__tstate);
21063 if (PyErr_Occurred()) SWIG_fail;
21064 }
21065 resultobj = SWIG_Py_Void();
21066 return resultobj;
21067fail:
21068 return NULL;
21069}
21070
21071
554f62e9
RD
21072SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21073 PyObject *resultobj = 0;
21074 wxNotebook *arg1 = (wxNotebook *) 0 ;
21075 wxColour result;
21076 void *argp1 = 0 ;
21077 int res1 = 0 ;
21078 PyObject *swig_obj[1] ;
21079
21080 if (!args) SWIG_fail;
21081 swig_obj[0] = args;
21082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21083 if (!SWIG_IsOK(res1)) {
21084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
21085 }
21086 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21087 {
21088 PyThreadState* __tstate = wxPyBeginAllowThreads();
21089 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
21090 wxPyEndAllowThreads(__tstate);
21091 if (PyErr_Occurred()) SWIG_fail;
21092 }
21093 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
21094 return resultobj;
21095fail:
21096 return NULL;
21097}
21098
21099
21100SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21101 PyObject *resultobj = 0;
21102 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
21103 SwigValueWrapper<wxVisualAttributes > result;
21104 int val1 ;
21105 int ecode1 = 0 ;
21106 PyObject * obj0 = 0 ;
21107 char * kwnames[] = {
21108 (char *) "variant", NULL
21109 };
21110
21111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
21112 if (obj0) {
21113 ecode1 = SWIG_AsVal_int(obj0, &val1);
21114 if (!SWIG_IsOK(ecode1)) {
21115 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
21116 }
21117 arg1 = static_cast< wxWindowVariant >(val1);
21118 }
21119 {
21120 if (!wxPyCheckForApp()) SWIG_fail;
21121 PyThreadState* __tstate = wxPyBeginAllowThreads();
21122 result = wxNotebook::GetClassDefaultAttributes(arg1);
21123 wxPyEndAllowThreads(__tstate);
21124 if (PyErr_Occurred()) SWIG_fail;
21125 }
21126 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
21127 return resultobj;
21128fail:
21129 return NULL;
21130}
21131
21132
b39fe951
RD
21133SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21134 PyObject *resultobj = 0;
21135 wxNotebook *arg1 = (wxNotebook *) 0 ;
21136 int arg2 ;
21137 bool result;
21138 void *argp1 = 0 ;
21139 int res1 = 0 ;
21140 int val2 ;
21141 int ecode2 = 0 ;
21142 PyObject * obj0 = 0 ;
21143 PyObject * obj1 = 0 ;
21144 char * kwnames[] = {
21145 (char *) "self",(char *) "nPage", NULL
21146 };
21147
21148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21150 if (!SWIG_IsOK(res1)) {
21151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21152 }
21153 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21154 ecode2 = SWIG_AsVal_int(obj1, &val2);
21155 if (!SWIG_IsOK(ecode2)) {
21156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21157 }
21158 arg2 = static_cast< int >(val2);
21159 {
21160 PyThreadState* __tstate = wxPyBeginAllowThreads();
21161 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21162 wxPyEndAllowThreads(__tstate);
21163 if (PyErr_Occurred()) SWIG_fail;
21164 }
21165 {
21166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21167 }
21168 return resultobj;
21169fail:
21170 return NULL;
21171}
21172
21173
21174SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21175 PyObject *resultobj = 0;
21176 wxNotebook *arg1 = (wxNotebook *) 0 ;
21177 int arg2 ;
21178 int arg3 = (int) -1 ;
21179 void *argp1 = 0 ;
21180 int res1 = 0 ;
21181 int val2 ;
21182 int ecode2 = 0 ;
21183 int val3 ;
21184 int ecode3 = 0 ;
21185 PyObject * obj0 = 0 ;
21186 PyObject * obj1 = 0 ;
21187 PyObject * obj2 = 0 ;
21188 char * kwnames[] = {
21189 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21190 };
21191
21192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21194 if (!SWIG_IsOK(res1)) {
21195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21196 }
21197 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21198 ecode2 = SWIG_AsVal_int(obj1, &val2);
21199 if (!SWIG_IsOK(ecode2)) {
21200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21201 }
21202 arg2 = static_cast< int >(val2);
21203 if (obj2) {
21204 ecode3 = SWIG_AsVal_int(obj2, &val3);
21205 if (!SWIG_IsOK(ecode3)) {
21206 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21207 }
21208 arg3 = static_cast< int >(val3);
21209 }
21210 {
21211 PyThreadState* __tstate = wxPyBeginAllowThreads();
21212 (arg1)->SendPageChangedEvent(arg2,arg3);
21213 wxPyEndAllowThreads(__tstate);
21214 if (PyErr_Occurred()) SWIG_fail;
21215 }
21216 resultobj = SWIG_Py_Void();
21217 return resultobj;
21218fail:
21219 return NULL;
21220}
21221
21222
554f62e9
RD
21223SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21224 PyObject *obj;
21225 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21226 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21227 return SWIG_Py_Void();
21228}
21229
21230SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21231 return SWIG_Python_InitShadowInstance(args);
21232}
21233
21234SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21235 PyObject *resultobj = 0;
21236 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21237 int arg2 = (int) 0 ;
21238 int arg3 = (int) -1 ;
21239 int arg4 = (int) -1 ;
21240 wxNotebookEvent *result = 0 ;
21241 int val1 ;
21242 int ecode1 = 0 ;
21243 int val2 ;
21244 int ecode2 = 0 ;
21245 int val3 ;
21246 int ecode3 = 0 ;
21247 int val4 ;
21248 int ecode4 = 0 ;
21249 PyObject * obj0 = 0 ;
21250 PyObject * obj1 = 0 ;
21251 PyObject * obj2 = 0 ;
21252 PyObject * obj3 = 0 ;
21253 char * kwnames[] = {
21254 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21255 };
21256
21257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21258 if (obj0) {
21259 ecode1 = SWIG_AsVal_int(obj0, &val1);
21260 if (!SWIG_IsOK(ecode1)) {
21261 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21262 }
21263 arg1 = static_cast< wxEventType >(val1);
21264 }
21265 if (obj1) {
21266 ecode2 = SWIG_AsVal_int(obj1, &val2);
21267 if (!SWIG_IsOK(ecode2)) {
21268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21269 }
21270 arg2 = static_cast< int >(val2);
21271 }
21272 if (obj2) {
21273 ecode3 = SWIG_AsVal_int(obj2, &val3);
21274 if (!SWIG_IsOK(ecode3)) {
21275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21276 }
21277 arg3 = static_cast< int >(val3);
21278 }
21279 if (obj3) {
21280 ecode4 = SWIG_AsVal_int(obj3, &val4);
21281 if (!SWIG_IsOK(ecode4)) {
21282 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21283 }
21284 arg4 = static_cast< int >(val4);
21285 }
21286 {
21287 PyThreadState* __tstate = wxPyBeginAllowThreads();
21288 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21289 wxPyEndAllowThreads(__tstate);
21290 if (PyErr_Occurred()) SWIG_fail;
21291 }
21292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21293 return resultobj;
21294fail:
21295 return NULL;
21296}
21297
21298
21299SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21300 PyObject *obj;
21301 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21302 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21303 return SWIG_Py_Void();
21304}
21305
21306SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21307 return SWIG_Python_InitShadowInstance(args);
21308}
21309
21310SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21311 PyObject *resultobj = 0;
21312 wxWindow *arg1 = (wxWindow *) 0 ;
21313 int arg2 = (int) -1 ;
21314 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21315 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21316 wxSize const &arg4_defvalue = wxDefaultSize ;
21317 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21318 long arg5 = (long) 0 ;
21319 wxString const &arg6_defvalue = wxPyEmptyString ;
21320 wxString *arg6 = (wxString *) &arg6_defvalue ;
21321 wxListbook *result = 0 ;
21322 void *argp1 = 0 ;
21323 int res1 = 0 ;
21324 int val2 ;
21325 int ecode2 = 0 ;
21326 wxPoint temp3 ;
21327 wxSize temp4 ;
21328 long val5 ;
21329 int ecode5 = 0 ;
21330 bool temp6 = false ;
21331 PyObject * obj0 = 0 ;
21332 PyObject * obj1 = 0 ;
21333 PyObject * obj2 = 0 ;
21334 PyObject * obj3 = 0 ;
21335 PyObject * obj4 = 0 ;
21336 PyObject * obj5 = 0 ;
21337 char * kwnames[] = {
21338 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21339 };
21340
21341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21343 if (!SWIG_IsOK(res1)) {
21344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21345 }
21346 arg1 = reinterpret_cast< wxWindow * >(argp1);
21347 if (obj1) {
21348 ecode2 = SWIG_AsVal_int(obj1, &val2);
21349 if (!SWIG_IsOK(ecode2)) {
21350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21351 }
21352 arg2 = static_cast< int >(val2);
21353 }
21354 if (obj2) {
21355 {
21356 arg3 = &temp3;
21357 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
f20a2e1f 21358 }
554f62e9
RD
21359 }
21360 if (obj3) {
d55e5bfc 21361 {
554f62e9
RD
21362 arg4 = &temp4;
21363 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21364 }
554f62e9
RD
21365 }
21366 if (obj4) {
21367 ecode5 = SWIG_AsVal_long(obj4, &val5);
21368 if (!SWIG_IsOK(ecode5)) {
21369 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21370 }
21371 arg5 = static_cast< long >(val5);
21372 }
21373 if (obj5) {
d55e5bfc 21374 {
554f62e9
RD
21375 arg6 = wxString_in_helper(obj5);
21376 if (arg6 == NULL) SWIG_fail;
21377 temp6 = true;
d55e5bfc 21378 }
554f62e9
RD
21379 }
21380 {
21381 if (!wxPyCheckForApp()) SWIG_fail;
21382 PyThreadState* __tstate = wxPyBeginAllowThreads();
21383 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21384 wxPyEndAllowThreads(__tstate);
21385 if (PyErr_Occurred()) SWIG_fail;
21386 }
21387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21388 {
21389 if (temp6)
21390 delete arg6;
21391 }
21392 return resultobj;
21393fail:
21394 {
21395 if (temp6)
21396 delete arg6;
21397 }
21398 return NULL;
d55e5bfc
RD
21399}
21400
21401
554f62e9
RD
21402SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21403 PyObject *resultobj = 0;
21404 wxListbook *result = 0 ;
21405
21406 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21407 {
21408 if (!wxPyCheckForApp()) SWIG_fail;
21409 PyThreadState* __tstate = wxPyBeginAllowThreads();
21410 result = (wxListbook *)new wxListbook();
21411 wxPyEndAllowThreads(__tstate);
21412 if (PyErr_Occurred()) SWIG_fail;
21413 }
21414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21415 return resultobj;
21416fail:
21417 return NULL;
21418}
21419
21420
21421SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21422 PyObject *resultobj = 0;
21423 wxListbook *arg1 = (wxListbook *) 0 ;
21424 wxWindow *arg2 = (wxWindow *) 0 ;
21425 int arg3 = (int) -1 ;
21426 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21427 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21428 wxSize const &arg5_defvalue = wxDefaultSize ;
21429 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21430 long arg6 = (long) 0 ;
21431 wxString const &arg7_defvalue = wxPyEmptyString ;
21432 wxString *arg7 = (wxString *) &arg7_defvalue ;
21433 bool result;
21434 void *argp1 = 0 ;
21435 int res1 = 0 ;
21436 void *argp2 = 0 ;
21437 int res2 = 0 ;
21438 int val3 ;
21439 int ecode3 = 0 ;
21440 wxPoint temp4 ;
21441 wxSize temp5 ;
21442 long val6 ;
21443 int ecode6 = 0 ;
21444 bool temp7 = false ;
21445 PyObject * obj0 = 0 ;
21446 PyObject * obj1 = 0 ;
21447 PyObject * obj2 = 0 ;
21448 PyObject * obj3 = 0 ;
21449 PyObject * obj4 = 0 ;
21450 PyObject * obj5 = 0 ;
21451 PyObject * obj6 = 0 ;
21452 char * kwnames[] = {
21453 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21454 };
21455
21456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21458 if (!SWIG_IsOK(res1)) {
21459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21460 }
21461 arg1 = reinterpret_cast< wxListbook * >(argp1);
21462 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21463 if (!SWIG_IsOK(res2)) {
21464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21465 }
21466 arg2 = reinterpret_cast< wxWindow * >(argp2);
21467 if (obj2) {
21468 ecode3 = SWIG_AsVal_int(obj2, &val3);
21469 if (!SWIG_IsOK(ecode3)) {
21470 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21471 }
21472 arg3 = static_cast< int >(val3);
21473 }
21474 if (obj3) {
d55e5bfc 21475 {
554f62e9
RD
21476 arg4 = &temp4;
21477 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21478 }
554f62e9
RD
21479 }
21480 if (obj4) {
d55e5bfc 21481 {
554f62e9
RD
21482 arg5 = &temp5;
21483 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21484 }
554f62e9
RD
21485 }
21486 if (obj5) {
21487 ecode6 = SWIG_AsVal_long(obj5, &val6);
21488 if (!SWIG_IsOK(ecode6)) {
21489 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21490 }
21491 arg6 = static_cast< long >(val6);
21492 }
21493 if (obj6) {
d55e5bfc 21494 {
554f62e9
RD
21495 arg7 = wxString_in_helper(obj6);
21496 if (arg7 == NULL) SWIG_fail;
21497 temp7 = true;
d55e5bfc 21498 }
554f62e9
RD
21499 }
21500 {
21501 PyThreadState* __tstate = wxPyBeginAllowThreads();
21502 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21503 wxPyEndAllowThreads(__tstate);
21504 if (PyErr_Occurred()) SWIG_fail;
21505 }
21506 {
21507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21508 }
21509 {
21510 if (temp7)
21511 delete arg7;
21512 }
21513 return resultobj;
21514fail:
21515 {
21516 if (temp7)
21517 delete arg7;
21518 }
21519 return NULL;
d55e5bfc
RD
21520}
21521
21522
554f62e9
RD
21523SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21524 PyObject *resultobj = 0;
21525 wxListbook *arg1 = (wxListbook *) 0 ;
21526 wxListView *result = 0 ;
21527 void *argp1 = 0 ;
21528 int res1 = 0 ;
21529 PyObject *swig_obj[1] ;
21530
21531 if (!args) SWIG_fail;
21532 swig_obj[0] = args;
21533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21534 if (!SWIG_IsOK(res1)) {
21535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21536 }
21537 arg1 = reinterpret_cast< wxListbook * >(argp1);
21538 {
21539 PyThreadState* __tstate = wxPyBeginAllowThreads();
21540 result = (wxListView *)(arg1)->GetListView();
21541 wxPyEndAllowThreads(__tstate);
21542 if (PyErr_Occurred()) SWIG_fail;
21543 }
21544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21545 return resultobj;
21546fail:
21547 return NULL;
21548}
21549
21550
21551SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21552 PyObject *obj;
21553 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21554 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21555 return SWIG_Py_Void();
21556}
21557
21558SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21559 return SWIG_Python_InitShadowInstance(args);
21560}
21561
21562SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21563 PyObject *resultobj = 0;
21564 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21565 int arg2 = (int) 0 ;
21566 int arg3 = (int) -1 ;
21567 int arg4 = (int) -1 ;
21568 wxListbookEvent *result = 0 ;
21569 int val1 ;
21570 int ecode1 = 0 ;
21571 int val2 ;
21572 int ecode2 = 0 ;
21573 int val3 ;
21574 int ecode3 = 0 ;
21575 int val4 ;
21576 int ecode4 = 0 ;
21577 PyObject * obj0 = 0 ;
21578 PyObject * obj1 = 0 ;
21579 PyObject * obj2 = 0 ;
21580 PyObject * obj3 = 0 ;
21581 char * kwnames[] = {
21582 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21583 };
21584
21585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21586 if (obj0) {
21587 ecode1 = SWIG_AsVal_int(obj0, &val1);
21588 if (!SWIG_IsOK(ecode1)) {
21589 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21590 }
21591 arg1 = static_cast< wxEventType >(val1);
21592 }
21593 if (obj1) {
21594 ecode2 = SWIG_AsVal_int(obj1, &val2);
21595 if (!SWIG_IsOK(ecode2)) {
21596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21597 }
21598 arg2 = static_cast< int >(val2);
21599 }
21600 if (obj2) {
21601 ecode3 = SWIG_AsVal_int(obj2, &val3);
21602 if (!SWIG_IsOK(ecode3)) {
21603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21604 }
21605 arg3 = static_cast< int >(val3);
21606 }
21607 if (obj3) {
21608 ecode4 = SWIG_AsVal_int(obj3, &val4);
21609 if (!SWIG_IsOK(ecode4)) {
21610 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21611 }
21612 arg4 = static_cast< int >(val4);
21613 }
21614 {
21615 PyThreadState* __tstate = wxPyBeginAllowThreads();
21616 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21617 wxPyEndAllowThreads(__tstate);
21618 if (PyErr_Occurred()) SWIG_fail;
21619 }
21620 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21621 return resultobj;
21622fail:
21623 return NULL;
21624}
21625
21626
21627SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21628 PyObject *obj;
21629 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21630 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21631 return SWIG_Py_Void();
21632}
21633
21634SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21635 return SWIG_Python_InitShadowInstance(args);
21636}
21637
21638SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21639 PyObject *resultobj = 0;
21640 wxWindow *arg1 = (wxWindow *) 0 ;
21641 int arg2 ;
21642 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21643 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21644 wxSize const &arg4_defvalue = wxDefaultSize ;
21645 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21646 long arg5 = (long) 0 ;
21647 wxString const &arg6_defvalue = wxPyEmptyString ;
21648 wxString *arg6 = (wxString *) &arg6_defvalue ;
21649 wxChoicebook *result = 0 ;
21650 void *argp1 = 0 ;
21651 int res1 = 0 ;
21652 int val2 ;
21653 int ecode2 = 0 ;
21654 wxPoint temp3 ;
21655 wxSize temp4 ;
21656 long val5 ;
21657 int ecode5 = 0 ;
21658 bool temp6 = false ;
21659 PyObject * obj0 = 0 ;
21660 PyObject * obj1 = 0 ;
21661 PyObject * obj2 = 0 ;
21662 PyObject * obj3 = 0 ;
21663 PyObject * obj4 = 0 ;
21664 PyObject * obj5 = 0 ;
21665 char * kwnames[] = {
21666 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21667 };
21668
21669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21671 if (!SWIG_IsOK(res1)) {
21672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21673 }
21674 arg1 = reinterpret_cast< wxWindow * >(argp1);
21675 ecode2 = SWIG_AsVal_int(obj1, &val2);
21676 if (!SWIG_IsOK(ecode2)) {
21677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21678 }
21679 arg2 = static_cast< int >(val2);
21680 if (obj2) {
d55e5bfc 21681 {
554f62e9
RD
21682 arg3 = &temp3;
21683 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 21684 }
554f62e9
RD
21685 }
21686 if (obj3) {
d55e5bfc 21687 {
554f62e9
RD
21688 arg4 = &temp4;
21689 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21690 }
554f62e9
RD
21691 }
21692 if (obj4) {
21693 ecode5 = SWIG_AsVal_long(obj4, &val5);
21694 if (!SWIG_IsOK(ecode5)) {
21695 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21696 }
21697 arg5 = static_cast< long >(val5);
21698 }
21699 if (obj5) {
d55e5bfc 21700 {
554f62e9
RD
21701 arg6 = wxString_in_helper(obj5);
21702 if (arg6 == NULL) SWIG_fail;
21703 temp6 = true;
d55e5bfc 21704 }
554f62e9
RD
21705 }
21706 {
21707 if (!wxPyCheckForApp()) SWIG_fail;
21708 PyThreadState* __tstate = wxPyBeginAllowThreads();
21709 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21710 wxPyEndAllowThreads(__tstate);
21711 if (PyErr_Occurred()) SWIG_fail;
21712 }
21713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21714 {
21715 if (temp6)
21716 delete arg6;
21717 }
21718 return resultobj;
21719fail:
21720 {
21721 if (temp6)
21722 delete arg6;
21723 }
21724 return NULL;
d55e5bfc
RD
21725}
21726
21727
554f62e9
RD
21728SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21729 PyObject *resultobj = 0;
21730 wxChoicebook *result = 0 ;
21731
21732 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21733 {
21734 if (!wxPyCheckForApp()) SWIG_fail;
21735 PyThreadState* __tstate = wxPyBeginAllowThreads();
21736 result = (wxChoicebook *)new wxChoicebook();
21737 wxPyEndAllowThreads(__tstate);
21738 if (PyErr_Occurred()) SWIG_fail;
21739 }
21740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21741 return resultobj;
21742fail:
21743 return NULL;
21744}
21745
21746
21747SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21748 PyObject *resultobj = 0;
21749 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21750 wxWindow *arg2 = (wxWindow *) 0 ;
21751 int arg3 ;
21752 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21753 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21754 wxSize const &arg5_defvalue = wxDefaultSize ;
21755 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21756 long arg6 = (long) 0 ;
21757 wxString const &arg7_defvalue = wxPyEmptyString ;
21758 wxString *arg7 = (wxString *) &arg7_defvalue ;
21759 bool result;
21760 void *argp1 = 0 ;
21761 int res1 = 0 ;
21762 void *argp2 = 0 ;
21763 int res2 = 0 ;
21764 int val3 ;
21765 int ecode3 = 0 ;
21766 wxPoint temp4 ;
21767 wxSize temp5 ;
21768 long val6 ;
21769 int ecode6 = 0 ;
21770 bool temp7 = false ;
21771 PyObject * obj0 = 0 ;
21772 PyObject * obj1 = 0 ;
21773 PyObject * obj2 = 0 ;
21774 PyObject * obj3 = 0 ;
21775 PyObject * obj4 = 0 ;
21776 PyObject * obj5 = 0 ;
21777 PyObject * obj6 = 0 ;
21778 char * kwnames[] = {
21779 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21780 };
21781
21782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21784 if (!SWIG_IsOK(res1)) {
21785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21786 }
21787 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21788 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21789 if (!SWIG_IsOK(res2)) {
21790 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21791 }
21792 arg2 = reinterpret_cast< wxWindow * >(argp2);
21793 ecode3 = SWIG_AsVal_int(obj2, &val3);
21794 if (!SWIG_IsOK(ecode3)) {
21795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21796 }
21797 arg3 = static_cast< int >(val3);
21798 if (obj3) {
093d3ff1 21799 {
554f62e9
RD
21800 arg4 = &temp4;
21801 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 21802 }
554f62e9
RD
21803 }
21804 if (obj4) {
093d3ff1 21805 {
554f62e9
RD
21806 arg5 = &temp5;
21807 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 21808 }
554f62e9
RD
21809 }
21810 if (obj5) {
21811 ecode6 = SWIG_AsVal_long(obj5, &val6);
21812 if (!SWIG_IsOK(ecode6)) {
21813 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21814 }
21815 arg6 = static_cast< long >(val6);
21816 }
21817 if (obj6) {
d55e5bfc 21818 {
554f62e9
RD
21819 arg7 = wxString_in_helper(obj6);
21820 if (arg7 == NULL) SWIG_fail;
21821 temp7 = true;
d55e5bfc 21822 }
554f62e9
RD
21823 }
21824 {
21825 PyThreadState* __tstate = wxPyBeginAllowThreads();
21826 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21827 wxPyEndAllowThreads(__tstate);
21828 if (PyErr_Occurred()) SWIG_fail;
21829 }
21830 {
21831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21832 }
21833 {
21834 if (temp7)
21835 delete arg7;
21836 }
21837 return resultobj;
21838fail:
21839 {
21840 if (temp7)
21841 delete arg7;
21842 }
21843 return NULL;
d55e5bfc
RD
21844}
21845
21846
554f62e9
RD
21847SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21848 PyObject *resultobj = 0;
21849 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21850 wxChoice *result = 0 ;
21851 void *argp1 = 0 ;
21852 int res1 = 0 ;
21853 PyObject *swig_obj[1] ;
21854
21855 if (!args) SWIG_fail;
21856 swig_obj[0] = args;
21857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21858 if (!SWIG_IsOK(res1)) {
21859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21860 }
21861 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21862 {
21863 PyThreadState* __tstate = wxPyBeginAllowThreads();
21864 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21865 wxPyEndAllowThreads(__tstate);
21866 if (PyErr_Occurred()) SWIG_fail;
21867 }
21868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21869 return resultobj;
21870fail:
21871 return NULL;
21872}
21873
21874
21875SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21876 PyObject *obj;
21877 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21878 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21879 return SWIG_Py_Void();
21880}
21881
21882SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21883 return SWIG_Python_InitShadowInstance(args);
21884}
21885
21886SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21887 PyObject *resultobj = 0;
21888 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21889 int arg2 = (int) 0 ;
21890 int arg3 = (int) -1 ;
21891 int arg4 = (int) -1 ;
21892 wxChoicebookEvent *result = 0 ;
21893 int val1 ;
21894 int ecode1 = 0 ;
21895 int val2 ;
21896 int ecode2 = 0 ;
21897 int val3 ;
21898 int ecode3 = 0 ;
21899 int val4 ;
21900 int ecode4 = 0 ;
21901 PyObject * obj0 = 0 ;
21902 PyObject * obj1 = 0 ;
21903 PyObject * obj2 = 0 ;
21904 PyObject * obj3 = 0 ;
21905 char * kwnames[] = {
21906 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21907 };
21908
21909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21910 if (obj0) {
21911 ecode1 = SWIG_AsVal_int(obj0, &val1);
21912 if (!SWIG_IsOK(ecode1)) {
21913 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21914 }
21915 arg1 = static_cast< wxEventType >(val1);
21916 }
21917 if (obj1) {
21918 ecode2 = SWIG_AsVal_int(obj1, &val2);
21919 if (!SWIG_IsOK(ecode2)) {
21920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21921 }
21922 arg2 = static_cast< int >(val2);
21923 }
21924 if (obj2) {
21925 ecode3 = SWIG_AsVal_int(obj2, &val3);
21926 if (!SWIG_IsOK(ecode3)) {
21927 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21928 }
21929 arg3 = static_cast< int >(val3);
21930 }
21931 if (obj3) {
21932 ecode4 = SWIG_AsVal_int(obj3, &val4);
21933 if (!SWIG_IsOK(ecode4)) {
21934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21935 }
21936 arg4 = static_cast< int >(val4);
21937 }
21938 {
21939 PyThreadState* __tstate = wxPyBeginAllowThreads();
21940 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21941 wxPyEndAllowThreads(__tstate);
21942 if (PyErr_Occurred()) SWIG_fail;
21943 }
21944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21945 return resultobj;
21946fail:
21947 return NULL;
21948}
21949
21950
21951SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21952 PyObject *obj;
21953 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21954 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21955 return SWIG_Py_Void();
21956}
21957
21958SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21959 return SWIG_Python_InitShadowInstance(args);
21960}
21961
21962SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21963 PyObject *resultobj = 0;
21964 wxWindow *arg1 = (wxWindow *) 0 ;
21965 int arg2 ;
21966 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21967 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21968 wxSize const &arg4_defvalue = wxDefaultSize ;
21969 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21970 long arg5 = (long) wxBK_DEFAULT ;
21971 wxString const &arg6_defvalue = wxPyEmptyString ;
21972 wxString *arg6 = (wxString *) &arg6_defvalue ;
21973 wxTreebook *result = 0 ;
21974 void *argp1 = 0 ;
21975 int res1 = 0 ;
21976 int val2 ;
21977 int ecode2 = 0 ;
21978 wxPoint temp3 ;
21979 wxSize temp4 ;
21980 long val5 ;
21981 int ecode5 = 0 ;
21982 bool temp6 = false ;
21983 PyObject * obj0 = 0 ;
21984 PyObject * obj1 = 0 ;
21985 PyObject * obj2 = 0 ;
21986 PyObject * obj3 = 0 ;
21987 PyObject * obj4 = 0 ;
21988 PyObject * obj5 = 0 ;
21989 char * kwnames[] = {
21990 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21991 };
21992
21993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21995 if (!SWIG_IsOK(res1)) {
21996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21997 }
21998 arg1 = reinterpret_cast< wxWindow * >(argp1);
21999 ecode2 = SWIG_AsVal_int(obj1, &val2);
22000 if (!SWIG_IsOK(ecode2)) {
22001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
22002 }
22003 arg2 = static_cast< int >(val2);
22004 if (obj2) {
d55e5bfc 22005 {
554f62e9
RD
22006 arg3 = &temp3;
22007 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 22008 }
554f62e9
RD
22009 }
22010 if (obj3) {
d55e5bfc 22011 {
554f62e9
RD
22012 arg4 = &temp4;
22013 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 22014 }
554f62e9
RD
22015 }
22016 if (obj4) {
22017 ecode5 = SWIG_AsVal_long(obj4, &val5);
22018 if (!SWIG_IsOK(ecode5)) {
22019 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
22020 }
22021 arg5 = static_cast< long >(val5);
22022 }
22023 if (obj5) {
d55e5bfc 22024 {
554f62e9
RD
22025 arg6 = wxString_in_helper(obj5);
22026 if (arg6 == NULL) SWIG_fail;
22027 temp6 = true;
d55e5bfc 22028 }
554f62e9
RD
22029 }
22030 {
22031 if (!wxPyCheckForApp()) SWIG_fail;
22032 PyThreadState* __tstate = wxPyBeginAllowThreads();
22033 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22034 wxPyEndAllowThreads(__tstate);
22035 if (PyErr_Occurred()) SWIG_fail;
22036 }
22037 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
22038 {
22039 if (temp6)
22040 delete arg6;
22041 }
22042 return resultobj;
22043fail:
22044 {
22045 if (temp6)
22046 delete arg6;
22047 }
22048 return NULL;
d55e5bfc
RD
22049}
22050
22051
554f62e9
RD
22052SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22053 PyObject *resultobj = 0;
22054 wxTreebook *result = 0 ;
22055
22056 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
22057 {
22058 if (!wxPyCheckForApp()) SWIG_fail;
22059 PyThreadState* __tstate = wxPyBeginAllowThreads();
22060 result = (wxTreebook *)new wxTreebook();
22061 wxPyEndAllowThreads(__tstate);
22062 if (PyErr_Occurred()) SWIG_fail;
22063 }
22064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
22065 return resultobj;
22066fail:
22067 return NULL;
22068}
22069
22070
22071SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22072 PyObject *resultobj = 0;
22073 wxTreebook *arg1 = (wxTreebook *) 0 ;
22074 wxWindow *arg2 = (wxWindow *) 0 ;
22075 int arg3 ;
22076 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22077 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22078 wxSize const &arg5_defvalue = wxDefaultSize ;
22079 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22080 long arg6 = (long) wxBK_DEFAULT ;
22081 wxString const &arg7_defvalue = wxPyEmptyString ;
22082 wxString *arg7 = (wxString *) &arg7_defvalue ;
22083 bool result;
22084 void *argp1 = 0 ;
22085 int res1 = 0 ;
22086 void *argp2 = 0 ;
22087 int res2 = 0 ;
22088 int val3 ;
22089 int ecode3 = 0 ;
22090 wxPoint temp4 ;
22091 wxSize temp5 ;
22092 long val6 ;
22093 int ecode6 = 0 ;
22094 bool temp7 = false ;
22095 PyObject * obj0 = 0 ;
22096 PyObject * obj1 = 0 ;
22097 PyObject * obj2 = 0 ;
22098 PyObject * obj3 = 0 ;
22099 PyObject * obj4 = 0 ;
22100 PyObject * obj5 = 0 ;
22101 PyObject * obj6 = 0 ;
22102 char * kwnames[] = {
22103 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22104 };
22105
22106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22108 if (!SWIG_IsOK(res1)) {
22109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
22110 }
22111 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22112 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22113 if (!SWIG_IsOK(res2)) {
22114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22115 }
22116 arg2 = reinterpret_cast< wxWindow * >(argp2);
22117 ecode3 = SWIG_AsVal_int(obj2, &val3);
22118 if (!SWIG_IsOK(ecode3)) {
22119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
22120 }
22121 arg3 = static_cast< int >(val3);
22122 if (obj3) {
093d3ff1 22123 {
554f62e9
RD
22124 arg4 = &temp4;
22125 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22126 }
554f62e9
RD
22127 }
22128 if (obj4) {
093d3ff1 22129 {
554f62e9
RD
22130 arg5 = &temp5;
22131 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22132 }
554f62e9
RD
22133 }
22134 if (obj5) {
22135 ecode6 = SWIG_AsVal_long(obj5, &val6);
22136 if (!SWIG_IsOK(ecode6)) {
22137 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
22138 }
22139 arg6 = static_cast< long >(val6);
22140 }
22141 if (obj6) {
d55e5bfc 22142 {
554f62e9
RD
22143 arg7 = wxString_in_helper(obj6);
22144 if (arg7 == NULL) SWIG_fail;
22145 temp7 = true;
d55e5bfc 22146 }
554f62e9
RD
22147 }
22148 {
22149 PyThreadState* __tstate = wxPyBeginAllowThreads();
22150 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22151 wxPyEndAllowThreads(__tstate);
22152 if (PyErr_Occurred()) SWIG_fail;
22153 }
22154 {
22155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22156 }
22157 {
22158 if (temp7)
22159 delete arg7;
22160 }
22161 return resultobj;
22162fail:
22163 {
22164 if (temp7)
22165 delete arg7;
22166 }
22167 return NULL;
22168}
22169
22170
22171SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22172 PyObject *resultobj = 0;
22173 wxTreebook *arg1 = (wxTreebook *) 0 ;
22174 size_t arg2 ;
22175 wxWindow *arg3 = (wxWindow *) 0 ;
22176 wxString *arg4 = 0 ;
22177 bool arg5 = (bool) false ;
22178 int arg6 = (int) wxNOT_FOUND ;
22179 bool result;
22180 void *argp1 = 0 ;
22181 int res1 = 0 ;
22182 size_t val2 ;
22183 int ecode2 = 0 ;
22184 void *argp3 = 0 ;
22185 int res3 = 0 ;
22186 bool temp4 = false ;
22187 bool val5 ;
22188 int ecode5 = 0 ;
22189 int val6 ;
22190 int ecode6 = 0 ;
22191 PyObject * obj0 = 0 ;
22192 PyObject * obj1 = 0 ;
22193 PyObject * obj2 = 0 ;
22194 PyObject * obj3 = 0 ;
22195 PyObject * obj4 = 0 ;
22196 PyObject * obj5 = 0 ;
22197 char * kwnames[] = {
22198 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22199 };
22200
22201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22203 if (!SWIG_IsOK(res1)) {
22204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22205 }
22206 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22207 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22208 if (!SWIG_IsOK(ecode2)) {
22209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22210 }
22211 arg2 = static_cast< size_t >(val2);
22212 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22213 if (!SWIG_IsOK(res3)) {
22214 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22215 }
22216 arg3 = reinterpret_cast< wxWindow * >(argp3);
22217 {
22218 arg4 = wxString_in_helper(obj3);
22219 if (arg4 == NULL) SWIG_fail;
22220 temp4 = true;
22221 }
22222 if (obj4) {
22223 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22224 if (!SWIG_IsOK(ecode5)) {
22225 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22226 }
22227 arg5 = static_cast< bool >(val5);
22228 }
22229 if (obj5) {
22230 ecode6 = SWIG_AsVal_int(obj5, &val6);
22231 if (!SWIG_IsOK(ecode6)) {
22232 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22233 }
22234 arg6 = static_cast< int >(val6);
22235 }
22236 {
22237 PyThreadState* __tstate = wxPyBeginAllowThreads();
22238 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22239 wxPyEndAllowThreads(__tstate);
22240 if (PyErr_Occurred()) SWIG_fail;
22241 }
22242 {
22243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22244 }
22245 {
22246 if (temp4)
22247 delete arg4;
22248 }
22249 return resultobj;
22250fail:
22251 {
22252 if (temp4)
22253 delete arg4;
22254 }
22255 return NULL;
22256}
22257
22258
22259SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22260 PyObject *resultobj = 0;
22261 wxTreebook *arg1 = (wxTreebook *) 0 ;
22262 wxWindow *arg2 = (wxWindow *) 0 ;
22263 wxString *arg3 = 0 ;
22264 bool arg4 = (bool) false ;
22265 int arg5 = (int) wxNOT_FOUND ;
22266 bool result;
22267 void *argp1 = 0 ;
22268 int res1 = 0 ;
22269 void *argp2 = 0 ;
22270 int res2 = 0 ;
22271 bool temp3 = false ;
22272 bool val4 ;
22273 int ecode4 = 0 ;
22274 int val5 ;
22275 int ecode5 = 0 ;
22276 PyObject * obj0 = 0 ;
22277 PyObject * obj1 = 0 ;
22278 PyObject * obj2 = 0 ;
22279 PyObject * obj3 = 0 ;
22280 PyObject * obj4 = 0 ;
22281 char * kwnames[] = {
22282 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22283 };
22284
22285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22287 if (!SWIG_IsOK(res1)) {
22288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22289 }
22290 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22291 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22292 if (!SWIG_IsOK(res2)) {
22293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22294 }
22295 arg2 = reinterpret_cast< wxWindow * >(argp2);
22296 {
22297 arg3 = wxString_in_helper(obj2);
22298 if (arg3 == NULL) SWIG_fail;
22299 temp3 = true;
22300 }
22301 if (obj3) {
22302 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22303 if (!SWIG_IsOK(ecode4)) {
22304 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22305 }
22306 arg4 = static_cast< bool >(val4);
22307 }
22308 if (obj4) {
22309 ecode5 = SWIG_AsVal_int(obj4, &val5);
22310 if (!SWIG_IsOK(ecode5)) {
22311 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22312 }
22313 arg5 = static_cast< int >(val5);
22314 }
22315 {
22316 PyThreadState* __tstate = wxPyBeginAllowThreads();
22317 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22318 wxPyEndAllowThreads(__tstate);
22319 if (PyErr_Occurred()) SWIG_fail;
22320 }
22321 {
22322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22323 }
22324 {
22325 if (temp3)
22326 delete arg3;
22327 }
22328 return resultobj;
22329fail:
22330 {
22331 if (temp3)
22332 delete arg3;
22333 }
22334 return NULL;
22335}
22336
22337
22338SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22339 PyObject *resultobj = 0;
22340 wxTreebook *arg1 = (wxTreebook *) 0 ;
22341 size_t arg2 ;
22342 bool result;
22343 void *argp1 = 0 ;
22344 int res1 = 0 ;
22345 size_t val2 ;
22346 int ecode2 = 0 ;
22347 PyObject * obj0 = 0 ;
22348 PyObject * obj1 = 0 ;
22349 char * kwnames[] = {
22350 (char *) "self",(char *) "pos", NULL
22351 };
22352
22353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22355 if (!SWIG_IsOK(res1)) {
22356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22357 }
22358 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22359 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22360 if (!SWIG_IsOK(ecode2)) {
22361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22362 }
22363 arg2 = static_cast< size_t >(val2);
22364 {
22365 PyThreadState* __tstate = wxPyBeginAllowThreads();
22366 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22367 wxPyEndAllowThreads(__tstate);
22368 if (PyErr_Occurred()) SWIG_fail;
22369 }
22370 {
22371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22372 }
22373 return resultobj;
22374fail:
22375 return NULL;
22376}
22377
22378
22379SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22380 PyObject *resultobj = 0;
22381 wxTreebook *arg1 = (wxTreebook *) 0 ;
22382 size_t arg2 ;
22383 bool arg3 = (bool) true ;
22384 bool result;
22385 void *argp1 = 0 ;
22386 int res1 = 0 ;
22387 size_t val2 ;
22388 int ecode2 = 0 ;
22389 bool val3 ;
22390 int ecode3 = 0 ;
22391 PyObject * obj0 = 0 ;
22392 PyObject * obj1 = 0 ;
22393 PyObject * obj2 = 0 ;
22394 char * kwnames[] = {
22395 (char *) "self",(char *) "pos",(char *) "expand", NULL
22396 };
22397
22398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22400 if (!SWIG_IsOK(res1)) {
22401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22402 }
22403 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22404 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22405 if (!SWIG_IsOK(ecode2)) {
22406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22407 }
22408 arg2 = static_cast< size_t >(val2);
22409 if (obj2) {
22410 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22411 if (!SWIG_IsOK(ecode3)) {
22412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22413 }
22414 arg3 = static_cast< bool >(val3);
22415 }
22416 {
22417 PyThreadState* __tstate = wxPyBeginAllowThreads();
22418 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22419 wxPyEndAllowThreads(__tstate);
22420 if (PyErr_Occurred()) SWIG_fail;
22421 }
22422 {
22423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22424 }
22425 return resultobj;
22426fail:
22427 return NULL;
22428}
22429
22430
22431SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22432 PyObject *resultobj = 0;
22433 wxTreebook *arg1 = (wxTreebook *) 0 ;
22434 size_t arg2 ;
22435 bool result;
22436 void *argp1 = 0 ;
22437 int res1 = 0 ;
22438 size_t val2 ;
22439 int ecode2 = 0 ;
22440 PyObject * obj0 = 0 ;
22441 PyObject * obj1 = 0 ;
22442 char * kwnames[] = {
22443 (char *) "self",(char *) "pos", NULL
22444 };
22445
22446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22448 if (!SWIG_IsOK(res1)) {
22449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22450 }
22451 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22452 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22453 if (!SWIG_IsOK(ecode2)) {
22454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22455 }
22456 arg2 = static_cast< size_t >(val2);
22457 {
22458 PyThreadState* __tstate = wxPyBeginAllowThreads();
22459 result = (bool)(arg1)->CollapseNode(arg2);
22460 wxPyEndAllowThreads(__tstate);
22461 if (PyErr_Occurred()) SWIG_fail;
22462 }
22463 {
22464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22465 }
22466 return resultobj;
22467fail:
22468 return NULL;
22469}
22470
22471
22472SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22473 PyObject *resultobj = 0;
22474 wxTreebook *arg1 = (wxTreebook *) 0 ;
22475 size_t arg2 ;
22476 int result;
22477 void *argp1 = 0 ;
22478 int res1 = 0 ;
22479 size_t val2 ;
22480 int ecode2 = 0 ;
22481 PyObject * obj0 = 0 ;
22482 PyObject * obj1 = 0 ;
22483 char * kwnames[] = {
22484 (char *) "self",(char *) "pos", NULL
22485 };
22486
22487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22489 if (!SWIG_IsOK(res1)) {
22490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22491 }
22492 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22493 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22494 if (!SWIG_IsOK(ecode2)) {
22495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22496 }
22497 arg2 = static_cast< size_t >(val2);
22498 {
22499 PyThreadState* __tstate = wxPyBeginAllowThreads();
22500 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22501 wxPyEndAllowThreads(__tstate);
22502 if (PyErr_Occurred()) SWIG_fail;
22503 }
22504 resultobj = SWIG_From_int(static_cast< int >(result));
22505 return resultobj;
22506fail:
22507 return NULL;
d55e5bfc
RD
22508}
22509
22510
554f62e9
RD
22511SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22512 PyObject *resultobj = 0;
22513 wxTreebook *arg1 = (wxTreebook *) 0 ;
10044bf1 22514 wxPyTreeCtrl *result = 0 ;
554f62e9
RD
22515 void *argp1 = 0 ;
22516 int res1 = 0 ;
22517 PyObject *swig_obj[1] ;
22518
22519 if (!args) SWIG_fail;
22520 swig_obj[0] = args;
22521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22522 if (!SWIG_IsOK(res1)) {
22523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22524 }
22525 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22526 {
22527 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044bf1 22528 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
554f62e9
RD
22529 wxPyEndAllowThreads(__tstate);
22530 if (PyErr_Occurred()) SWIG_fail;
22531 }
10044bf1
RD
22532 {
22533 resultobj = wxPyMake_wxObject(result, (bool)0);
22534 }
554f62e9
RD
22535 return resultobj;
22536fail:
22537 return NULL;
22538}
22539
22540
22541SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22542 PyObject *obj;
22543 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22544 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22545 return SWIG_Py_Void();
22546}
22547
22548SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22549 return SWIG_Python_InitShadowInstance(args);
22550}
22551
22552SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22553 PyObject *resultobj = 0;
22554 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22555 int arg2 = (int) 0 ;
22556 int arg3 = (int) wxNOT_FOUND ;
22557 int arg4 = (int) wxNOT_FOUND ;
22558 wxTreebookEvent *result = 0 ;
22559 int val1 ;
22560 int ecode1 = 0 ;
22561 int val2 ;
22562 int ecode2 = 0 ;
22563 int val3 ;
22564 int ecode3 = 0 ;
22565 int val4 ;
22566 int ecode4 = 0 ;
22567 PyObject * obj0 = 0 ;
22568 PyObject * obj1 = 0 ;
22569 PyObject * obj2 = 0 ;
22570 PyObject * obj3 = 0 ;
22571 char * kwnames[] = {
22572 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22573 };
22574
22575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22576 if (obj0) {
22577 ecode1 = SWIG_AsVal_int(obj0, &val1);
22578 if (!SWIG_IsOK(ecode1)) {
22579 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22580 }
22581 arg1 = static_cast< wxEventType >(val1);
22582 }
22583 if (obj1) {
22584 ecode2 = SWIG_AsVal_int(obj1, &val2);
22585 if (!SWIG_IsOK(ecode2)) {
22586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22587 }
22588 arg2 = static_cast< int >(val2);
22589 }
22590 if (obj2) {
22591 ecode3 = SWIG_AsVal_int(obj2, &val3);
22592 if (!SWIG_IsOK(ecode3)) {
22593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22594 }
22595 arg3 = static_cast< int >(val3);
22596 }
22597 if (obj3) {
22598 ecode4 = SWIG_AsVal_int(obj3, &val4);
22599 if (!SWIG_IsOK(ecode4)) {
22600 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22601 }
22602 arg4 = static_cast< int >(val4);
22603 }
22604 {
22605 PyThreadState* __tstate = wxPyBeginAllowThreads();
22606 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22607 wxPyEndAllowThreads(__tstate);
22608 if (PyErr_Occurred()) SWIG_fail;
22609 }
22610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22611 return resultobj;
22612fail:
22613 return NULL;
22614}
22615
22616
22617SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22618 PyObject *obj;
22619 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22620 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22621 return SWIG_Py_Void();
22622}
22623
22624SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22625 return SWIG_Python_InitShadowInstance(args);
22626}
22627
22628SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22629 PyObject *resultobj = 0;
22630 wxWindow *arg1 = (wxWindow *) 0 ;
22631 int arg2 ;
22632 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22633 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22634 wxSize const &arg4_defvalue = wxDefaultSize ;
22635 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22636 long arg5 = (long) wxBK_DEFAULT ;
22637 wxString const &arg6_defvalue = wxPyEmptyString ;
22638 wxString *arg6 = (wxString *) &arg6_defvalue ;
22639 wxToolbook *result = 0 ;
22640 void *argp1 = 0 ;
22641 int res1 = 0 ;
22642 int val2 ;
22643 int ecode2 = 0 ;
22644 wxPoint temp3 ;
22645 wxSize temp4 ;
22646 long val5 ;
22647 int ecode5 = 0 ;
22648 bool temp6 = false ;
22649 PyObject * obj0 = 0 ;
22650 PyObject * obj1 = 0 ;
22651 PyObject * obj2 = 0 ;
22652 PyObject * obj3 = 0 ;
22653 PyObject * obj4 = 0 ;
22654 PyObject * obj5 = 0 ;
22655 char * kwnames[] = {
22656 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22657 };
22658
22659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22661 if (!SWIG_IsOK(res1)) {
22662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22663 }
22664 arg1 = reinterpret_cast< wxWindow * >(argp1);
22665 ecode2 = SWIG_AsVal_int(obj1, &val2);
22666 if (!SWIG_IsOK(ecode2)) {
22667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22668 }
22669 arg2 = static_cast< int >(val2);
22670 if (obj2) {
093d3ff1 22671 {
554f62e9
RD
22672 arg3 = &temp3;
22673 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 22674 }
554f62e9
RD
22675 }
22676 if (obj3) {
d55e5bfc 22677 {
554f62e9
RD
22678 arg4 = &temp4;
22679 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 22680 }
554f62e9
RD
22681 }
22682 if (obj4) {
22683 ecode5 = SWIG_AsVal_long(obj4, &val5);
22684 if (!SWIG_IsOK(ecode5)) {
22685 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22686 }
22687 arg5 = static_cast< long >(val5);
22688 }
22689 if (obj5) {
093d3ff1 22690 {
554f62e9
RD
22691 arg6 = wxString_in_helper(obj5);
22692 if (arg6 == NULL) SWIG_fail;
22693 temp6 = true;
093d3ff1 22694 }
554f62e9
RD
22695 }
22696 {
22697 PyThreadState* __tstate = wxPyBeginAllowThreads();
22698 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22699 wxPyEndAllowThreads(__tstate);
22700 if (PyErr_Occurred()) SWIG_fail;
22701 }
22702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22703 {
22704 if (temp6)
22705 delete arg6;
22706 }
22707 return resultobj;
22708fail:
22709 {
22710 if (temp6)
22711 delete arg6;
22712 }
22713 return NULL;
d55e5bfc
RD
22714}
22715
22716
554f62e9
RD
22717SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22718 PyObject *resultobj = 0;
22719 wxToolbook *result = 0 ;
22720
22721 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22722 {
22723 PyThreadState* __tstate = wxPyBeginAllowThreads();
22724 result = (wxToolbook *)new wxToolbook();
22725 wxPyEndAllowThreads(__tstate);
22726 if (PyErr_Occurred()) SWIG_fail;
22727 }
22728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22729 return resultobj;
22730fail:
22731 return NULL;
22732}
22733
22734
22735SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22736 PyObject *resultobj = 0;
22737 wxToolbook *arg1 = (wxToolbook *) 0 ;
22738 wxWindow *arg2 = (wxWindow *) 0 ;
22739 int arg3 ;
22740 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22741 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22742 wxSize const &arg5_defvalue = wxDefaultSize ;
22743 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22744 long arg6 = (long) 0 ;
22745 wxString const &arg7_defvalue = wxEmptyString ;
22746 wxString *arg7 = (wxString *) &arg7_defvalue ;
22747 bool result;
22748 void *argp1 = 0 ;
22749 int res1 = 0 ;
22750 void *argp2 = 0 ;
22751 int res2 = 0 ;
22752 int val3 ;
22753 int ecode3 = 0 ;
22754 wxPoint temp4 ;
22755 wxSize temp5 ;
22756 long val6 ;
22757 int ecode6 = 0 ;
22758 bool temp7 = false ;
22759 PyObject * obj0 = 0 ;
22760 PyObject * obj1 = 0 ;
22761 PyObject * obj2 = 0 ;
22762 PyObject * obj3 = 0 ;
22763 PyObject * obj4 = 0 ;
22764 PyObject * obj5 = 0 ;
22765 PyObject * obj6 = 0 ;
22766 char * kwnames[] = {
22767 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22768 };
22769
22770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22772 if (!SWIG_IsOK(res1)) {
22773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22774 }
22775 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22776 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22777 if (!SWIG_IsOK(res2)) {
22778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22779 }
22780 arg2 = reinterpret_cast< wxWindow * >(argp2);
22781 ecode3 = SWIG_AsVal_int(obj2, &val3);
22782 if (!SWIG_IsOK(ecode3)) {
22783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22784 }
22785 arg3 = static_cast< int >(val3);
22786 if (obj3) {
093d3ff1 22787 {
554f62e9
RD
22788 arg4 = &temp4;
22789 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22790 }
554f62e9
RD
22791 }
22792 if (obj4) {
093d3ff1 22793 {
554f62e9
RD
22794 arg5 = &temp5;
22795 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22796 }
554f62e9
RD
22797 }
22798 if (obj5) {
22799 ecode6 = SWIG_AsVal_long(obj5, &val6);
22800 if (!SWIG_IsOK(ecode6)) {
22801 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22802 }
22803 arg6 = static_cast< long >(val6);
22804 }
22805 if (obj6) {
d55e5bfc 22806 {
554f62e9
RD
22807 arg7 = wxString_in_helper(obj6);
22808 if (arg7 == NULL) SWIG_fail;
22809 temp7 = true;
d55e5bfc 22810 }
554f62e9
RD
22811 }
22812 {
22813 PyThreadState* __tstate = wxPyBeginAllowThreads();
22814 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22815 wxPyEndAllowThreads(__tstate);
22816 if (PyErr_Occurred()) SWIG_fail;
22817 }
22818 {
22819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22820 }
22821 {
22822 if (temp7)
22823 delete arg7;
22824 }
22825 return resultobj;
22826fail:
22827 {
22828 if (temp7)
22829 delete arg7;
22830 }
22831 return NULL;
d55e5bfc
RD
22832}
22833
22834
554f62e9
RD
22835SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22836 PyObject *resultobj = 0;
22837 wxToolbook *arg1 = (wxToolbook *) 0 ;
22838 wxToolBarBase *result = 0 ;
22839 void *argp1 = 0 ;
22840 int res1 = 0 ;
22841 PyObject *swig_obj[1] ;
22842
22843 if (!args) SWIG_fail;
22844 swig_obj[0] = args;
22845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22846 if (!SWIG_IsOK(res1)) {
22847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22848 }
22849 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22850 {
22851 PyThreadState* __tstate = wxPyBeginAllowThreads();
22852 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22853 wxPyEndAllowThreads(__tstate);
22854 if (PyErr_Occurred()) SWIG_fail;
22855 }
22856 {
22857 resultobj = wxPyMake_wxObject(result, (bool)0);
22858 }
22859 return resultobj;
22860fail:
22861 return NULL;
f20a2e1f
RD
22862}
22863
22864
554f62e9
RD
22865SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22866 PyObject *resultobj = 0;
22867 wxToolbook *arg1 = (wxToolbook *) 0 ;
22868 void *argp1 = 0 ;
22869 int res1 = 0 ;
22870 PyObject *swig_obj[1] ;
22871
22872 if (!args) SWIG_fail;
22873 swig_obj[0] = args;
22874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22875 if (!SWIG_IsOK(res1)) {
22876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22877 }
22878 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22879 {
22880 PyThreadState* __tstate = wxPyBeginAllowThreads();
22881 (arg1)->Realize();
22882 wxPyEndAllowThreads(__tstate);
22883 if (PyErr_Occurred()) SWIG_fail;
22884 }
22885 resultobj = SWIG_Py_Void();
22886 return resultobj;
22887fail:
22888 return NULL;
22889}
22890
22891
22892SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22893 PyObject *obj;
22894 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22895 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22896 return SWIG_Py_Void();
22897}
22898
22899SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22900 return SWIG_Python_InitShadowInstance(args);
22901}
22902
22903SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22904 PyObject *resultobj = 0;
22905 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22906 int arg2 = (int) 0 ;
22907 int arg3 = (int) wxNOT_FOUND ;
22908 int arg4 = (int) wxNOT_FOUND ;
22909 wxToolbookEvent *result = 0 ;
22910 int val1 ;
22911 int ecode1 = 0 ;
22912 int val2 ;
22913 int ecode2 = 0 ;
22914 int val3 ;
22915 int ecode3 = 0 ;
22916 int val4 ;
22917 int ecode4 = 0 ;
22918 PyObject * obj0 = 0 ;
22919 PyObject * obj1 = 0 ;
22920 PyObject * obj2 = 0 ;
22921 PyObject * obj3 = 0 ;
22922 char * kwnames[] = {
22923 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22924 };
22925
22926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22927 if (obj0) {
22928 ecode1 = SWIG_AsVal_int(obj0, &val1);
22929 if (!SWIG_IsOK(ecode1)) {
22930 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22931 }
22932 arg1 = static_cast< wxEventType >(val1);
22933 }
22934 if (obj1) {
22935 ecode2 = SWIG_AsVal_int(obj1, &val2);
22936 if (!SWIG_IsOK(ecode2)) {
22937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22938 }
22939 arg2 = static_cast< int >(val2);
22940 }
22941 if (obj2) {
22942 ecode3 = SWIG_AsVal_int(obj2, &val3);
22943 if (!SWIG_IsOK(ecode3)) {
22944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22945 }
22946 arg3 = static_cast< int >(val3);
22947 }
22948 if (obj3) {
22949 ecode4 = SWIG_AsVal_int(obj3, &val4);
22950 if (!SWIG_IsOK(ecode4)) {
22951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22952 }
22953 arg4 = static_cast< int >(val4);
22954 }
22955 {
22956 PyThreadState* __tstate = wxPyBeginAllowThreads();
22957 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22958 wxPyEndAllowThreads(__tstate);
22959 if (PyErr_Occurred()) SWIG_fail;
22960 }
22961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22962 return resultobj;
22963fail:
22964 return NULL;
d55e5bfc
RD
22965}
22966
22967
554f62e9
RD
22968SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22969 PyObject *obj;
22970 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22971 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22972 return SWIG_Py_Void();
d55e5bfc
RD
22973}
22974
554f62e9
RD
22975SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22976 return SWIG_Python_InitShadowInstance(args);
22977}
d55e5bfc 22978
554f62e9
RD
22979SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22980 PyObject *resultobj = 0;
22981 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22982 int result;
22983 void *argp1 = 0 ;
22984 int res1 = 0 ;
22985 PyObject *swig_obj[1] ;
22986
22987 if (!args) SWIG_fail;
22988 swig_obj[0] = args;
22989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22990 if (!SWIG_IsOK(res1)) {
22991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22992 }
22993 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22994 {
22995 PyThreadState* __tstate = wxPyBeginAllowThreads();
22996 result = (int)(arg1)->GetId();
22997 wxPyEndAllowThreads(__tstate);
22998 if (PyErr_Occurred()) SWIG_fail;
22999 }
23000 resultobj = SWIG_From_int(static_cast< int >(result));
23001 return resultobj;
23002fail:
23003 return NULL;
d55e5bfc
RD
23004}
23005
23006
554f62e9
RD
23007SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23008 PyObject *resultobj = 0;
23009 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23010 wxControl *result = 0 ;
23011 void *argp1 = 0 ;
23012 int res1 = 0 ;
23013 PyObject *swig_obj[1] ;
23014
23015 if (!args) SWIG_fail;
23016 swig_obj[0] = args;
23017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23018 if (!SWIG_IsOK(res1)) {
23019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23020 }
23021 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23022 {
23023 PyThreadState* __tstate = wxPyBeginAllowThreads();
23024 result = (wxControl *)(arg1)->GetControl();
23025 wxPyEndAllowThreads(__tstate);
23026 if (PyErr_Occurred()) SWIG_fail;
23027 }
23028 {
23029 resultobj = wxPyMake_wxObject(result, 0);
23030 }
23031 return resultobj;
23032fail:
23033 return NULL;
d55e5bfc
RD
23034}
23035
23036
554f62e9
RD
23037SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23038 PyObject *resultobj = 0;
23039 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23040 wxToolBarBase *result = 0 ;
23041 void *argp1 = 0 ;
23042 int res1 = 0 ;
23043 PyObject *swig_obj[1] ;
23044
23045 if (!args) SWIG_fail;
23046 swig_obj[0] = args;
23047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23048 if (!SWIG_IsOK(res1)) {
23049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23050 }
23051 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23052 {
23053 PyThreadState* __tstate = wxPyBeginAllowThreads();
23054 result = (wxToolBarBase *)(arg1)->GetToolBar();
23055 wxPyEndAllowThreads(__tstate);
23056 if (PyErr_Occurred()) SWIG_fail;
23057 }
23058 {
23059 resultobj = wxPyMake_wxObject(result, (bool)0);
23060 }
23061 return resultobj;
23062fail:
23063 return NULL;
d55e5bfc
RD
23064}
23065
23066
554f62e9
RD
23067SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23068 PyObject *resultobj = 0;
23069 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23070 int result;
23071 void *argp1 = 0 ;
23072 int res1 = 0 ;
23073 PyObject *swig_obj[1] ;
23074
23075 if (!args) SWIG_fail;
23076 swig_obj[0] = args;
23077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23078 if (!SWIG_IsOK(res1)) {
23079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23080 }
23081 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23082 {
23083 PyThreadState* __tstate = wxPyBeginAllowThreads();
23084 result = (int)(arg1)->IsButton();
23085 wxPyEndAllowThreads(__tstate);
23086 if (PyErr_Occurred()) SWIG_fail;
23087 }
23088 resultobj = SWIG_From_int(static_cast< int >(result));
23089 return resultobj;
23090fail:
23091 return NULL;
d55e5bfc
RD
23092}
23093
23094
554f62e9
RD
23095SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23096 PyObject *resultobj = 0;
23097 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23098 int result;
23099 void *argp1 = 0 ;
23100 int res1 = 0 ;
23101 PyObject *swig_obj[1] ;
23102
23103 if (!args) SWIG_fail;
23104 swig_obj[0] = args;
23105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23106 if (!SWIG_IsOK(res1)) {
23107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23108 }
23109 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23110 {
23111 PyThreadState* __tstate = wxPyBeginAllowThreads();
23112 result = (int)(arg1)->IsControl();
23113 wxPyEndAllowThreads(__tstate);
23114 if (PyErr_Occurred()) SWIG_fail;
23115 }
23116 resultobj = SWIG_From_int(static_cast< int >(result));
23117 return resultobj;
23118fail:
23119 return NULL;
d55e5bfc
RD
23120}
23121
23122
554f62e9
RD
23123SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23124 PyObject *resultobj = 0;
23125 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23126 int result;
23127 void *argp1 = 0 ;
23128 int res1 = 0 ;
23129 PyObject *swig_obj[1] ;
23130
23131 if (!args) SWIG_fail;
23132 swig_obj[0] = args;
23133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23134 if (!SWIG_IsOK(res1)) {
23135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23136 }
23137 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23138 {
23139 PyThreadState* __tstate = wxPyBeginAllowThreads();
23140 result = (int)(arg1)->IsSeparator();
23141 wxPyEndAllowThreads(__tstate);
23142 if (PyErr_Occurred()) SWIG_fail;
23143 }
23144 resultobj = SWIG_From_int(static_cast< int >(result));
23145 return resultobj;
23146fail:
23147 return NULL;
d55e5bfc
RD
23148}
23149
23150
554f62e9
RD
23151SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23152 PyObject *resultobj = 0;
23153 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23154 int result;
23155 void *argp1 = 0 ;
23156 int res1 = 0 ;
23157 PyObject *swig_obj[1] ;
23158
23159 if (!args) SWIG_fail;
23160 swig_obj[0] = args;
23161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23162 if (!SWIG_IsOK(res1)) {
23163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23164 }
23165 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23166 {
23167 PyThreadState* __tstate = wxPyBeginAllowThreads();
23168 result = (int)(arg1)->GetStyle();
23169 wxPyEndAllowThreads(__tstate);
23170 if (PyErr_Occurred()) SWIG_fail;
23171 }
23172 resultobj = SWIG_From_int(static_cast< int >(result));
23173 return resultobj;
23174fail:
23175 return NULL;
d55e5bfc
RD
23176}
23177
23178
554f62e9
RD
23179SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23180 PyObject *resultobj = 0;
23181 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23182 wxItemKind result;
23183 void *argp1 = 0 ;
23184 int res1 = 0 ;
23185 PyObject *swig_obj[1] ;
23186
23187 if (!args) SWIG_fail;
23188 swig_obj[0] = args;
23189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23190 if (!SWIG_IsOK(res1)) {
23191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23192 }
23193 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23194 {
23195 PyThreadState* __tstate = wxPyBeginAllowThreads();
23196 result = (wxItemKind)(arg1)->GetKind();
23197 wxPyEndAllowThreads(__tstate);
23198 if (PyErr_Occurred()) SWIG_fail;
23199 }
23200 resultobj = SWIG_From_int(static_cast< int >(result));
23201 return resultobj;
23202fail:
23203 return NULL;
d55e5bfc
RD
23204}
23205
23206
554f62e9
RD
23207SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23208 PyObject *resultobj = 0;
23209 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23210 bool result;
23211 void *argp1 = 0 ;
23212 int res1 = 0 ;
23213 PyObject *swig_obj[1] ;
23214
23215 if (!args) SWIG_fail;
23216 swig_obj[0] = args;
23217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23218 if (!SWIG_IsOK(res1)) {
23219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23220 }
23221 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23222 {
23223 PyThreadState* __tstate = wxPyBeginAllowThreads();
23224 result = (bool)(arg1)->IsEnabled();
23225 wxPyEndAllowThreads(__tstate);
23226 if (PyErr_Occurred()) SWIG_fail;
23227 }
23228 {
23229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23230 }
23231 return resultobj;
23232fail:
23233 return NULL;
d55e5bfc
RD
23234}
23235
23236
554f62e9
RD
23237SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23238 PyObject *resultobj = 0;
23239 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23240 bool result;
23241 void *argp1 = 0 ;
23242 int res1 = 0 ;
23243 PyObject *swig_obj[1] ;
23244
23245 if (!args) SWIG_fail;
23246 swig_obj[0] = args;
23247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23248 if (!SWIG_IsOK(res1)) {
23249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23250 }
23251 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23252 {
23253 PyThreadState* __tstate = wxPyBeginAllowThreads();
23254 result = (bool)(arg1)->IsToggled();
23255 wxPyEndAllowThreads(__tstate);
23256 if (PyErr_Occurred()) SWIG_fail;
23257 }
23258 {
23259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23260 }
23261 return resultobj;
23262fail:
23263 return NULL;
d55e5bfc
RD
23264}
23265
23266
554f62e9
RD
23267SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23268 PyObject *resultobj = 0;
23269 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23270 bool result;
23271 void *argp1 = 0 ;
23272 int res1 = 0 ;
23273 PyObject *swig_obj[1] ;
23274
23275 if (!args) SWIG_fail;
23276 swig_obj[0] = args;
23277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23278 if (!SWIG_IsOK(res1)) {
23279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23280 }
23281 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23282 {
23283 PyThreadState* __tstate = wxPyBeginAllowThreads();
23284 result = (bool)(arg1)->CanBeToggled();
23285 wxPyEndAllowThreads(__tstate);
23286 if (PyErr_Occurred()) SWIG_fail;
23287 }
23288 {
23289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23290 }
23291 return resultobj;
23292fail:
23293 return NULL;
d55e5bfc
RD
23294}
23295
23296
554f62e9
RD
23297SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23298 PyObject *resultobj = 0;
23299 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23300 wxBitmap *result = 0 ;
23301 void *argp1 = 0 ;
23302 int res1 = 0 ;
23303 PyObject *swig_obj[1] ;
23304
23305 if (!args) SWIG_fail;
23306 swig_obj[0] = args;
23307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23308 if (!SWIG_IsOK(res1)) {
23309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23310 }
23311 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23312 {
23313 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 23314 {
554f62e9
RD
23315 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23316 result = (wxBitmap *) &_result_ref;
093d3ff1 23317 }
554f62e9
RD
23318 wxPyEndAllowThreads(__tstate);
23319 if (PyErr_Occurred()) SWIG_fail;
23320 }
23321 {
23322 wxBitmap* resultptr = new wxBitmap(*result);
23323 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23324 }
23325 return resultobj;
23326fail:
23327 return NULL;
d55e5bfc
RD
23328}
23329
23330
554f62e9
RD
23331SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23332 PyObject *resultobj = 0;
23333 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23334 wxBitmap *result = 0 ;
23335 void *argp1 = 0 ;
23336 int res1 = 0 ;
23337 PyObject *swig_obj[1] ;
23338
23339 if (!args) SWIG_fail;
23340 swig_obj[0] = args;
23341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23342 if (!SWIG_IsOK(res1)) {
23343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23344 }
23345 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23346 {
23347 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 23348 {
554f62e9
RD
23349 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23350 result = (wxBitmap *) &_result_ref;
d55e5bfc 23351 }
554f62e9
RD
23352 wxPyEndAllowThreads(__tstate);
23353 if (PyErr_Occurred()) SWIG_fail;
23354 }
23355 {
23356 wxBitmap* resultptr = new wxBitmap(*result);
23357 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23358 }
23359 return resultobj;
23360fail:
23361 return NULL;
d55e5bfc
RD
23362}
23363
23364
554f62e9
RD
23365SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23366 PyObject *resultobj = 0;
23367 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23368 wxBitmap result;
23369 void *argp1 = 0 ;
23370 int res1 = 0 ;
23371 PyObject *swig_obj[1] ;
23372
23373 if (!args) SWIG_fail;
23374 swig_obj[0] = args;
23375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23376 if (!SWIG_IsOK(res1)) {
23377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23378 }
23379 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23380 {
23381 PyThreadState* __tstate = wxPyBeginAllowThreads();
23382 result = (arg1)->GetBitmap();
23383 wxPyEndAllowThreads(__tstate);
23384 if (PyErr_Occurred()) SWIG_fail;
23385 }
23386 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23387 return resultobj;
23388fail:
23389 return NULL;
23390}
23391
23392
23393SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23394 PyObject *resultobj = 0;
23395 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23396 wxString result;
23397 void *argp1 = 0 ;
23398 int res1 = 0 ;
23399 PyObject *swig_obj[1] ;
23400
23401 if (!args) SWIG_fail;
23402 swig_obj[0] = args;
23403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23404 if (!SWIG_IsOK(res1)) {
23405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23406 }
23407 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23408 {
23409 PyThreadState* __tstate = wxPyBeginAllowThreads();
23410 result = (arg1)->GetLabel();
23411 wxPyEndAllowThreads(__tstate);
23412 if (PyErr_Occurred()) SWIG_fail;
23413 }
23414 {
d55e5bfc 23415#if wxUSE_UNICODE
554f62e9 23416 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 23417#else
554f62e9 23418 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 23419#endif
554f62e9
RD
23420 }
23421 return resultobj;
23422fail:
23423 return NULL;
d55e5bfc
RD
23424}
23425
23426
554f62e9
RD
23427SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23428 PyObject *resultobj = 0;
23429 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23430 wxString result;
23431 void *argp1 = 0 ;
23432 int res1 = 0 ;
23433 PyObject *swig_obj[1] ;
23434
23435 if (!args) SWIG_fail;
23436 swig_obj[0] = args;
23437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23438 if (!SWIG_IsOK(res1)) {
23439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23440 }
23441 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23442 {
23443 PyThreadState* __tstate = wxPyBeginAllowThreads();
23444 result = (arg1)->GetShortHelp();
23445 wxPyEndAllowThreads(__tstate);
23446 if (PyErr_Occurred()) SWIG_fail;
23447 }
23448 {
23449#if wxUSE_UNICODE
23450 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23451#else
23452 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23453#endif
23454 }
23455 return resultobj;
23456fail:
23457 return NULL;
d55e5bfc
RD
23458}
23459
23460
554f62e9
RD
23461SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23462 PyObject *resultobj = 0;
23463 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23464 wxString result;
23465 void *argp1 = 0 ;
23466 int res1 = 0 ;
23467 PyObject *swig_obj[1] ;
23468
23469 if (!args) SWIG_fail;
23470 swig_obj[0] = args;
23471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23472 if (!SWIG_IsOK(res1)) {
23473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23474 }
23475 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23476 {
23477 PyThreadState* __tstate = wxPyBeginAllowThreads();
23478 result = (arg1)->GetLongHelp();
23479 wxPyEndAllowThreads(__tstate);
23480 if (PyErr_Occurred()) SWIG_fail;
23481 }
23482 {
23483#if wxUSE_UNICODE
23484 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23485#else
23486 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23487#endif
23488 }
23489 return resultobj;
23490fail:
23491 return NULL;
23492}
23493
23494
23495SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23496 PyObject *resultobj = 0;
23497 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23498 bool arg2 ;
23499 bool result;
23500 void *argp1 = 0 ;
23501 int res1 = 0 ;
23502 bool val2 ;
23503 int ecode2 = 0 ;
23504 PyObject * obj0 = 0 ;
23505 PyObject * obj1 = 0 ;
23506 char * kwnames[] = {
23507 (char *) "self",(char *) "enable", NULL
23508 };
23509
23510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23512 if (!SWIG_IsOK(res1)) {
23513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23514 }
23515 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23516 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23517 if (!SWIG_IsOK(ecode2)) {
23518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23519 }
23520 arg2 = static_cast< bool >(val2);
23521 {
23522 PyThreadState* __tstate = wxPyBeginAllowThreads();
23523 result = (bool)(arg1)->Enable(arg2);
23524 wxPyEndAllowThreads(__tstate);
23525 if (PyErr_Occurred()) SWIG_fail;
23526 }
23527 {
23528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23529 }
23530 return resultobj;
23531fail:
23532 return NULL;
d55e5bfc
RD
23533}
23534
23535
554f62e9
RD
23536SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23537 PyObject *resultobj = 0;
23538 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23539 void *argp1 = 0 ;
23540 int res1 = 0 ;
23541 PyObject *swig_obj[1] ;
23542
23543 if (!args) SWIG_fail;
23544 swig_obj[0] = args;
23545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23546 if (!SWIG_IsOK(res1)) {
23547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23548 }
23549 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23550 {
23551 PyThreadState* __tstate = wxPyBeginAllowThreads();
23552 (arg1)->Toggle();
23553 wxPyEndAllowThreads(__tstate);
23554 if (PyErr_Occurred()) SWIG_fail;
23555 }
23556 resultobj = SWIG_Py_Void();
23557 return resultobj;
23558fail:
23559 return NULL;
23560}
23561
23562
23563SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23564 PyObject *resultobj = 0;
23565 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23566 bool arg2 ;
23567 bool result;
23568 void *argp1 = 0 ;
23569 int res1 = 0 ;
23570 bool val2 ;
23571 int ecode2 = 0 ;
23572 PyObject * obj0 = 0 ;
23573 PyObject * obj1 = 0 ;
23574 char * kwnames[] = {
23575 (char *) "self",(char *) "toggle", NULL
23576 };
23577
23578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23580 if (!SWIG_IsOK(res1)) {
23581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23582 }
23583 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23584 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23585 if (!SWIG_IsOK(ecode2)) {
23586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23587 }
23588 arg2 = static_cast< bool >(val2);
23589 {
23590 PyThreadState* __tstate = wxPyBeginAllowThreads();
23591 result = (bool)(arg1)->SetToggle(arg2);
23592 wxPyEndAllowThreads(__tstate);
23593 if (PyErr_Occurred()) SWIG_fail;
23594 }
23595 {
23596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23597 }
23598 return resultobj;
23599fail:
23600 return NULL;
23601}
23602
23603
23604SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23605 PyObject *resultobj = 0;
23606 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23607 wxString *arg2 = 0 ;
23608 bool result;
23609 void *argp1 = 0 ;
23610 int res1 = 0 ;
23611 bool temp2 = false ;
23612 PyObject * obj0 = 0 ;
23613 PyObject * obj1 = 0 ;
23614 char * kwnames[] = {
23615 (char *) "self",(char *) "help", NULL
23616 };
23617
23618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23620 if (!SWIG_IsOK(res1)) {
23621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23622 }
23623 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23624 {
23625 arg2 = wxString_in_helper(obj1);
23626 if (arg2 == NULL) SWIG_fail;
23627 temp2 = true;
23628 }
23629 {
23630 PyThreadState* __tstate = wxPyBeginAllowThreads();
23631 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23632 wxPyEndAllowThreads(__tstate);
23633 if (PyErr_Occurred()) SWIG_fail;
23634 }
23635 {
23636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23637 }
23638 {
23639 if (temp2)
23640 delete arg2;
23641 }
23642 return resultobj;
23643fail:
23644 {
23645 if (temp2)
23646 delete arg2;
23647 }
23648 return NULL;
23649}
23650
23651
23652SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23653 PyObject *resultobj = 0;
23654 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23655 wxString *arg2 = 0 ;
23656 bool result;
23657 void *argp1 = 0 ;
23658 int res1 = 0 ;
23659 bool temp2 = false ;
23660 PyObject * obj0 = 0 ;
23661 PyObject * obj1 = 0 ;
23662 char * kwnames[] = {
23663 (char *) "self",(char *) "help", NULL
23664 };
23665
23666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23668 if (!SWIG_IsOK(res1)) {
23669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23670 }
23671 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23672 {
23673 arg2 = wxString_in_helper(obj1);
23674 if (arg2 == NULL) SWIG_fail;
23675 temp2 = true;
23676 }
23677 {
23678 PyThreadState* __tstate = wxPyBeginAllowThreads();
23679 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23680 wxPyEndAllowThreads(__tstate);
23681 if (PyErr_Occurred()) SWIG_fail;
23682 }
23683 {
23684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23685 }
23686 {
23687 if (temp2)
23688 delete arg2;
23689 }
23690 return resultobj;
23691fail:
23692 {
23693 if (temp2)
23694 delete arg2;
23695 }
23696 return NULL;
23697}
23698
23699
23700SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23701 PyObject *resultobj = 0;
23702 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23703 wxBitmap *arg2 = 0 ;
23704 void *argp1 = 0 ;
23705 int res1 = 0 ;
23706 void *argp2 = 0 ;
23707 int res2 = 0 ;
23708 PyObject * obj0 = 0 ;
23709 PyObject * obj1 = 0 ;
23710 char * kwnames[] = {
23711 (char *) "self",(char *) "bmp", NULL
23712 };
23713
23714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23716 if (!SWIG_IsOK(res1)) {
23717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23718 }
23719 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23720 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23721 if (!SWIG_IsOK(res2)) {
23722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23723 }
23724 if (!argp2) {
23725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23726 }
23727 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23728 {
23729 PyThreadState* __tstate = wxPyBeginAllowThreads();
23730 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23731 wxPyEndAllowThreads(__tstate);
23732 if (PyErr_Occurred()) SWIG_fail;
23733 }
23734 resultobj = SWIG_Py_Void();
23735 return resultobj;
23736fail:
23737 return NULL;
23738}
23739
23740
23741SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23742 PyObject *resultobj = 0;
23743 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23744 wxBitmap *arg2 = 0 ;
23745 void *argp1 = 0 ;
23746 int res1 = 0 ;
23747 void *argp2 = 0 ;
23748 int res2 = 0 ;
23749 PyObject * obj0 = 0 ;
23750 PyObject * obj1 = 0 ;
23751 char * kwnames[] = {
23752 (char *) "self",(char *) "bmp", NULL
23753 };
23754
23755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23757 if (!SWIG_IsOK(res1)) {
23758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23759 }
23760 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23761 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23762 if (!SWIG_IsOK(res2)) {
23763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23764 }
23765 if (!argp2) {
23766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23767 }
23768 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23769 {
23770 PyThreadState* __tstate = wxPyBeginAllowThreads();
23771 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23772 wxPyEndAllowThreads(__tstate);
23773 if (PyErr_Occurred()) SWIG_fail;
23774 }
23775 resultobj = SWIG_Py_Void();
23776 return resultobj;
23777fail:
23778 return NULL;
23779}
23780
23781
23782SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23783 PyObject *resultobj = 0;
23784 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23785 wxString *arg2 = 0 ;
23786 void *argp1 = 0 ;
23787 int res1 = 0 ;
23788 bool temp2 = false ;
23789 PyObject * obj0 = 0 ;
23790 PyObject * obj1 = 0 ;
23791 char * kwnames[] = {
23792 (char *) "self",(char *) "label", NULL
23793 };
23794
23795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23797 if (!SWIG_IsOK(res1)) {
23798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23799 }
23800 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23801 {
23802 arg2 = wxString_in_helper(obj1);
23803 if (arg2 == NULL) SWIG_fail;
23804 temp2 = true;
23805 }
23806 {
23807 PyThreadState* __tstate = wxPyBeginAllowThreads();
23808 (arg1)->SetLabel((wxString const &)*arg2);
23809 wxPyEndAllowThreads(__tstate);
23810 if (PyErr_Occurred()) SWIG_fail;
23811 }
23812 resultobj = SWIG_Py_Void();
23813 {
23814 if (temp2)
23815 delete arg2;
23816 }
23817 return resultobj;
23818fail:
23819 {
23820 if (temp2)
23821 delete arg2;
23822 }
23823 return NULL;
d55e5bfc
RD
23824}
23825
23826
554f62e9
RD
23827SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23828 PyObject *resultobj = 0;
23829 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23830 void *argp1 = 0 ;
23831 int res1 = 0 ;
23832 PyObject *swig_obj[1] ;
23833
23834 if (!args) SWIG_fail;
23835 swig_obj[0] = args;
23836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23837 if (!SWIG_IsOK(res1)) {
23838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23839 }
23840 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23841 {
23842 PyThreadState* __tstate = wxPyBeginAllowThreads();
23843 (arg1)->Detach();
23844 wxPyEndAllowThreads(__tstate);
23845 if (PyErr_Occurred()) SWIG_fail;
23846 }
23847 resultobj = SWIG_Py_Void();
23848 return resultobj;
23849fail:
23850 return NULL;
23851}
23852
23853
23854SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23855 PyObject *resultobj = 0;
23856 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23857 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23858 void *argp1 = 0 ;
23859 int res1 = 0 ;
23860 void *argp2 = 0 ;
23861 int res2 = 0 ;
23862 PyObject * obj0 = 0 ;
23863 PyObject * obj1 = 0 ;
23864 char * kwnames[] = {
23865 (char *) "self",(char *) "tbar", NULL
23866 };
23867
23868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23870 if (!SWIG_IsOK(res1)) {
23871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23872 }
23873 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23874 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23875 if (!SWIG_IsOK(res2)) {
23876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23877 }
23878 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23879 {
23880 PyThreadState* __tstate = wxPyBeginAllowThreads();
23881 (arg1)->Attach(arg2);
23882 wxPyEndAllowThreads(__tstate);
23883 if (PyErr_Occurred()) SWIG_fail;
23884 }
23885 resultobj = SWIG_Py_Void();
23886 return resultobj;
23887fail:
23888 return NULL;
d55e5bfc
RD
23889}
23890
23891
554f62e9
RD
23892SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23893 PyObject *resultobj = 0;
23894 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23895 PyObject *result = 0 ;
23896 void *argp1 = 0 ;
23897 int res1 = 0 ;
23898 PyObject *swig_obj[1] ;
23899
23900 if (!args) SWIG_fail;
23901 swig_obj[0] = args;
23902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23903 if (!SWIG_IsOK(res1)) {
23904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23905 }
23906 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23907 {
23908 PyThreadState* __tstate = wxPyBeginAllowThreads();
23909 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23910 wxPyEndAllowThreads(__tstate);
23911 if (PyErr_Occurred()) SWIG_fail;
23912 }
23913 resultobj = result;
23914 return resultobj;
23915fail:
23916 return NULL;
23917}
23918
23919
23920SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23921 PyObject *resultobj = 0;
23922 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23923 PyObject *arg2 = (PyObject *) 0 ;
23924 void *argp1 = 0 ;
23925 int res1 = 0 ;
23926 PyObject * obj0 = 0 ;
23927 PyObject * obj1 = 0 ;
23928 char * kwnames[] = {
23929 (char *) "self",(char *) "clientData", NULL
23930 };
23931
23932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23934 if (!SWIG_IsOK(res1)) {
23935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23936 }
23937 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23938 arg2 = obj1;
23939 {
23940 PyThreadState* __tstate = wxPyBeginAllowThreads();
23941 wxToolBarToolBase_SetClientData(arg1,arg2);
23942 wxPyEndAllowThreads(__tstate);
23943 if (PyErr_Occurred()) SWIG_fail;
23944 }
23945 resultobj = SWIG_Py_Void();
23946 return resultobj;
23947fail:
23948 return NULL;
23949}
23950
23951
23952SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23953 PyObject *obj;
23954 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23955 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23956 return SWIG_Py_Void();
23957}
23958
23959SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23960 PyObject *resultobj = 0;
23961 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23962 int arg2 ;
23963 wxString *arg3 = 0 ;
23964 wxBitmap *arg4 = 0 ;
23965 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23966 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23967 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23968 wxString const &arg7_defvalue = wxPyEmptyString ;
23969 wxString *arg7 = (wxString *) &arg7_defvalue ;
23970 wxString const &arg8_defvalue = wxPyEmptyString ;
23971 wxString *arg8 = (wxString *) &arg8_defvalue ;
23972 PyObject *arg9 = (PyObject *) NULL ;
23973 wxToolBarToolBase *result = 0 ;
23974 void *argp1 = 0 ;
23975 int res1 = 0 ;
23976 int val2 ;
23977 int ecode2 = 0 ;
23978 bool temp3 = false ;
23979 void *argp4 = 0 ;
23980 int res4 = 0 ;
23981 void *argp5 = 0 ;
23982 int res5 = 0 ;
23983 int val6 ;
23984 int ecode6 = 0 ;
23985 bool temp7 = false ;
23986 bool temp8 = false ;
23987 PyObject * obj0 = 0 ;
23988 PyObject * obj1 = 0 ;
23989 PyObject * obj2 = 0 ;
23990 PyObject * obj3 = 0 ;
23991 PyObject * obj4 = 0 ;
23992 PyObject * obj5 = 0 ;
23993 PyObject * obj6 = 0 ;
23994 PyObject * obj7 = 0 ;
23995 PyObject * obj8 = 0 ;
23996 char * kwnames[] = {
23997 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23998 };
23999
24000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
24001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24002 if (!SWIG_IsOK(res1)) {
24003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24004 }
24005 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24006 ecode2 = SWIG_AsVal_int(obj1, &val2);
24007 if (!SWIG_IsOK(ecode2)) {
24008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
24009 }
24010 arg2 = static_cast< int >(val2);
24011 {
24012 arg3 = wxString_in_helper(obj2);
24013 if (arg3 == NULL) SWIG_fail;
24014 temp3 = true;
24015 }
24016 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
24017 if (!SWIG_IsOK(res4)) {
24018 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24019 }
24020 if (!argp4) {
24021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24022 }
24023 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24024 if (obj4) {
24025 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24026 if (!SWIG_IsOK(res5)) {
24027 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24028 }
24029 if (!argp5) {
24030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24031 }
24032 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24033 }
24034 if (obj5) {
24035 ecode6 = SWIG_AsVal_int(obj5, &val6);
24036 if (!SWIG_IsOK(ecode6)) {
24037 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
24038 }
24039 arg6 = static_cast< wxItemKind >(val6);
24040 }
24041 if (obj6) {
d55e5bfc 24042 {
554f62e9
RD
24043 arg7 = wxString_in_helper(obj6);
24044 if (arg7 == NULL) SWIG_fail;
24045 temp7 = true;
d55e5bfc 24046 }
554f62e9
RD
24047 }
24048 if (obj7) {
093d3ff1 24049 {
554f62e9
RD
24050 arg8 = wxString_in_helper(obj7);
24051 if (arg8 == NULL) SWIG_fail;
24052 temp8 = true;
093d3ff1 24053 }
554f62e9
RD
24054 }
24055 if (obj8) {
24056 arg9 = obj8;
24057 }
24058 {
24059 PyThreadState* __tstate = wxPyBeginAllowThreads();
24060 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
24061 wxPyEndAllowThreads(__tstate);
24062 if (PyErr_Occurred()) SWIG_fail;
24063 }
24064 {
24065 resultobj = wxPyMake_wxObject(result, (bool)0);
24066 }
24067 {
24068 if (temp3)
24069 delete arg3;
24070 }
24071 {
24072 if (temp7)
24073 delete arg7;
24074 }
24075 {
24076 if (temp8)
24077 delete arg8;
24078 }
24079 return resultobj;
24080fail:
24081 {
24082 if (temp3)
24083 delete arg3;
24084 }
24085 {
24086 if (temp7)
24087 delete arg7;
24088 }
24089 {
24090 if (temp8)
24091 delete arg8;
24092 }
24093 return NULL;
24094}
24095
24096
24097SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24098 PyObject *resultobj = 0;
24099 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24100 size_t arg2 ;
24101 int arg3 ;
24102 wxString *arg4 = 0 ;
24103 wxBitmap *arg5 = 0 ;
24104 wxBitmap const &arg6_defvalue = wxNullBitmap ;
24105 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
24106 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
24107 wxString const &arg8_defvalue = wxPyEmptyString ;
24108 wxString *arg8 = (wxString *) &arg8_defvalue ;
24109 wxString const &arg9_defvalue = wxPyEmptyString ;
24110 wxString *arg9 = (wxString *) &arg9_defvalue ;
24111 PyObject *arg10 = (PyObject *) NULL ;
24112 wxToolBarToolBase *result = 0 ;
24113 void *argp1 = 0 ;
24114 int res1 = 0 ;
24115 size_t val2 ;
24116 int ecode2 = 0 ;
24117 int val3 ;
24118 int ecode3 = 0 ;
24119 bool temp4 = false ;
24120 void *argp5 = 0 ;
24121 int res5 = 0 ;
24122 void *argp6 = 0 ;
24123 int res6 = 0 ;
24124 int val7 ;
24125 int ecode7 = 0 ;
24126 bool temp8 = false ;
24127 bool temp9 = false ;
24128 PyObject * obj0 = 0 ;
24129 PyObject * obj1 = 0 ;
24130 PyObject * obj2 = 0 ;
24131 PyObject * obj3 = 0 ;
24132 PyObject * obj4 = 0 ;
24133 PyObject * obj5 = 0 ;
24134 PyObject * obj6 = 0 ;
24135 PyObject * obj7 = 0 ;
24136 PyObject * obj8 = 0 ;
24137 PyObject * obj9 = 0 ;
24138 char * kwnames[] = {
24139 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24140 };
24141
24142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
24143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24144 if (!SWIG_IsOK(res1)) {
24145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24146 }
24147 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24148 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24149 if (!SWIG_IsOK(ecode2)) {
24150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24151 }
24152 arg2 = static_cast< size_t >(val2);
24153 ecode3 = SWIG_AsVal_int(obj2, &val3);
24154 if (!SWIG_IsOK(ecode3)) {
24155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24156 }
24157 arg3 = static_cast< int >(val3);
24158 {
24159 arg4 = wxString_in_helper(obj3);
24160 if (arg4 == NULL) SWIG_fail;
24161 temp4 = true;
24162 }
24163 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24164 if (!SWIG_IsOK(res5)) {
24165 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24166 }
24167 if (!argp5) {
24168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24169 }
24170 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24171 if (obj5) {
24172 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24173 if (!SWIG_IsOK(res6)) {
24174 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 24175 }
554f62e9
RD
24176 if (!argp6) {
24177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 24178 }
554f62e9
RD
24179 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24180 }
24181 if (obj6) {
24182 ecode7 = SWIG_AsVal_int(obj6, &val7);
24183 if (!SWIG_IsOK(ecode7)) {
24184 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24185 }
24186 arg7 = static_cast< wxItemKind >(val7);
24187 }
24188 if (obj7) {
d55e5bfc 24189 {
554f62e9
RD
24190 arg8 = wxString_in_helper(obj7);
24191 if (arg8 == NULL) SWIG_fail;
24192 temp8 = true;
d55e5bfc 24193 }
554f62e9
RD
24194 }
24195 if (obj8) {
d55e5bfc 24196 {
554f62e9
RD
24197 arg9 = wxString_in_helper(obj8);
24198 if (arg9 == NULL) SWIG_fail;
24199 temp9 = true;
d55e5bfc 24200 }
554f62e9
RD
24201 }
24202 if (obj9) {
24203 arg10 = obj9;
24204 }
24205 {
24206 PyThreadState* __tstate = wxPyBeginAllowThreads();
24207 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24208 wxPyEndAllowThreads(__tstate);
24209 if (PyErr_Occurred()) SWIG_fail;
24210 }
24211 {
24212 resultobj = wxPyMake_wxObject(result, (bool)0);
24213 }
24214 {
24215 if (temp4)
24216 delete arg4;
24217 }
24218 {
24219 if (temp8)
24220 delete arg8;
24221 }
24222 {
24223 if (temp9)
24224 delete arg9;
24225 }
24226 return resultobj;
24227fail:
24228 {
24229 if (temp4)
24230 delete arg4;
24231 }
24232 {
24233 if (temp8)
24234 delete arg8;
24235 }
24236 {
24237 if (temp9)
24238 delete arg9;
24239 }
24240 return NULL;
24241}
24242
24243
24244SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24245 PyObject *resultobj = 0;
24246 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24247 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24248 wxToolBarToolBase *result = 0 ;
24249 void *argp1 = 0 ;
24250 int res1 = 0 ;
24251 void *argp2 = 0 ;
24252 int res2 = 0 ;
24253 PyObject * obj0 = 0 ;
24254 PyObject * obj1 = 0 ;
24255 char * kwnames[] = {
24256 (char *) "self",(char *) "tool", NULL
24257 };
24258
24259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24261 if (!SWIG_IsOK(res1)) {
24262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24263 }
24264 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24265 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24266 if (!SWIG_IsOK(res2)) {
24267 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24268 }
24269 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24270 {
24271 PyThreadState* __tstate = wxPyBeginAllowThreads();
24272 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24273 wxPyEndAllowThreads(__tstate);
24274 if (PyErr_Occurred()) SWIG_fail;
24275 }
24276 {
24277 resultobj = wxPyMake_wxObject(result, (bool)0);
24278 }
24279 return resultobj;
24280fail:
24281 return NULL;
24282}
24283
24284
24285SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24286 PyObject *resultobj = 0;
24287 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24288 size_t arg2 ;
24289 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24290 wxToolBarToolBase *result = 0 ;
24291 void *argp1 = 0 ;
24292 int res1 = 0 ;
24293 size_t val2 ;
24294 int ecode2 = 0 ;
24295 void *argp3 = 0 ;
24296 int res3 = 0 ;
24297 PyObject * obj0 = 0 ;
24298 PyObject * obj1 = 0 ;
24299 PyObject * obj2 = 0 ;
24300 char * kwnames[] = {
24301 (char *) "self",(char *) "pos",(char *) "tool", NULL
24302 };
24303
24304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24306 if (!SWIG_IsOK(res1)) {
24307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24308 }
24309 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24310 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24311 if (!SWIG_IsOK(ecode2)) {
24312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24313 }
24314 arg2 = static_cast< size_t >(val2);
24315 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24316 if (!SWIG_IsOK(res3)) {
24317 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24318 }
24319 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24320 {
24321 PyThreadState* __tstate = wxPyBeginAllowThreads();
24322 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24323 wxPyEndAllowThreads(__tstate);
24324 if (PyErr_Occurred()) SWIG_fail;
24325 }
24326 {
24327 resultobj = wxPyMake_wxObject(result, (bool)0);
24328 }
24329 return resultobj;
24330fail:
24331 return NULL;
24332}
24333
24334
24335SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24336 PyObject *resultobj = 0;
24337 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24338 wxControl *arg2 = (wxControl *) 0 ;
24339 wxToolBarToolBase *result = 0 ;
24340 void *argp1 = 0 ;
24341 int res1 = 0 ;
24342 void *argp2 = 0 ;
24343 int res2 = 0 ;
24344 PyObject * obj0 = 0 ;
24345 PyObject * obj1 = 0 ;
24346 char * kwnames[] = {
24347 (char *) "self",(char *) "control", NULL
24348 };
24349
24350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24352 if (!SWIG_IsOK(res1)) {
24353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24354 }
24355 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24356 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24357 if (!SWIG_IsOK(res2)) {
24358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24359 }
24360 arg2 = reinterpret_cast< wxControl * >(argp2);
24361 {
24362 PyThreadState* __tstate = wxPyBeginAllowThreads();
24363 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24364 wxPyEndAllowThreads(__tstate);
24365 if (PyErr_Occurred()) SWIG_fail;
24366 }
24367 {
24368 resultobj = wxPyMake_wxObject(result, (bool)0);
24369 }
24370 return resultobj;
24371fail:
24372 return NULL;
24373}
24374
24375
24376SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24377 PyObject *resultobj = 0;
24378 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24379 size_t arg2 ;
24380 wxControl *arg3 = (wxControl *) 0 ;
24381 wxToolBarToolBase *result = 0 ;
24382 void *argp1 = 0 ;
24383 int res1 = 0 ;
24384 size_t val2 ;
24385 int ecode2 = 0 ;
24386 void *argp3 = 0 ;
24387 int res3 = 0 ;
24388 PyObject * obj0 = 0 ;
24389 PyObject * obj1 = 0 ;
24390 PyObject * obj2 = 0 ;
24391 char * kwnames[] = {
24392 (char *) "self",(char *) "pos",(char *) "control", NULL
24393 };
24394
24395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24397 if (!SWIG_IsOK(res1)) {
24398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24399 }
24400 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24401 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24402 if (!SWIG_IsOK(ecode2)) {
24403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24404 }
24405 arg2 = static_cast< size_t >(val2);
24406 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24407 if (!SWIG_IsOK(res3)) {
24408 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24409 }
24410 arg3 = reinterpret_cast< wxControl * >(argp3);
24411 {
24412 PyThreadState* __tstate = wxPyBeginAllowThreads();
24413 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24414 wxPyEndAllowThreads(__tstate);
24415 if (PyErr_Occurred()) SWIG_fail;
24416 }
24417 {
24418 resultobj = wxPyMake_wxObject(result, (bool)0);
24419 }
24420 return resultobj;
24421fail:
24422 return NULL;
24423}
24424
24425
24426SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24427 PyObject *resultobj = 0;
24428 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24429 int arg2 ;
24430 wxControl *result = 0 ;
24431 void *argp1 = 0 ;
24432 int res1 = 0 ;
24433 int val2 ;
24434 int ecode2 = 0 ;
24435 PyObject * obj0 = 0 ;
24436 PyObject * obj1 = 0 ;
24437 char * kwnames[] = {
24438 (char *) "self",(char *) "id", NULL
24439 };
24440
24441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24443 if (!SWIG_IsOK(res1)) {
24444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24445 }
24446 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24447 ecode2 = SWIG_AsVal_int(obj1, &val2);
24448 if (!SWIG_IsOK(ecode2)) {
24449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24450 }
24451 arg2 = static_cast< int >(val2);
24452 {
24453 PyThreadState* __tstate = wxPyBeginAllowThreads();
24454 result = (wxControl *)(arg1)->FindControl(arg2);
24455 wxPyEndAllowThreads(__tstate);
24456 if (PyErr_Occurred()) SWIG_fail;
24457 }
24458 {
24459 resultobj = wxPyMake_wxObject(result, 0);
24460 }
24461 return resultobj;
24462fail:
24463 return NULL;
d55e5bfc
RD
24464}
24465
24466
554f62e9
RD
24467SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24468 PyObject *resultobj = 0;
24469 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24470 wxToolBarToolBase *result = 0 ;
24471 void *argp1 = 0 ;
24472 int res1 = 0 ;
24473 PyObject *swig_obj[1] ;
24474
24475 if (!args) SWIG_fail;
24476 swig_obj[0] = args;
24477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24478 if (!SWIG_IsOK(res1)) {
24479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24480 }
24481 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24482 {
24483 PyThreadState* __tstate = wxPyBeginAllowThreads();
24484 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24485 wxPyEndAllowThreads(__tstate);
24486 if (PyErr_Occurred()) SWIG_fail;
24487 }
24488 {
24489 resultobj = wxPyMake_wxObject(result, (bool)0);
24490 }
24491 return resultobj;
24492fail:
24493 return NULL;
24494}
24495
24496
24497SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24498 PyObject *resultobj = 0;
24499 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24500 size_t arg2 ;
24501 wxToolBarToolBase *result = 0 ;
24502 void *argp1 = 0 ;
24503 int res1 = 0 ;
24504 size_t val2 ;
24505 int ecode2 = 0 ;
24506 PyObject * obj0 = 0 ;
24507 PyObject * obj1 = 0 ;
24508 char * kwnames[] = {
24509 (char *) "self",(char *) "pos", NULL
24510 };
24511
24512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24514 if (!SWIG_IsOK(res1)) {
24515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24516 }
24517 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24518 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24519 if (!SWIG_IsOK(ecode2)) {
24520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24521 }
24522 arg2 = static_cast< size_t >(val2);
24523 {
24524 PyThreadState* __tstate = wxPyBeginAllowThreads();
24525 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24526 wxPyEndAllowThreads(__tstate);
24527 if (PyErr_Occurred()) SWIG_fail;
24528 }
24529 {
24530 resultobj = wxPyMake_wxObject(result, (bool)0);
24531 }
24532 return resultobj;
24533fail:
24534 return NULL;
24535}
24536
24537
24538SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24539 PyObject *resultobj = 0;
24540 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24541 int arg2 ;
24542 wxToolBarToolBase *result = 0 ;
24543 void *argp1 = 0 ;
24544 int res1 = 0 ;
24545 int val2 ;
24546 int ecode2 = 0 ;
24547 PyObject * obj0 = 0 ;
24548 PyObject * obj1 = 0 ;
24549 char * kwnames[] = {
24550 (char *) "self",(char *) "id", NULL
24551 };
24552
24553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24555 if (!SWIG_IsOK(res1)) {
24556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24557 }
24558 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24559 ecode2 = SWIG_AsVal_int(obj1, &val2);
24560 if (!SWIG_IsOK(ecode2)) {
24561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24562 }
24563 arg2 = static_cast< int >(val2);
24564 {
24565 PyThreadState* __tstate = wxPyBeginAllowThreads();
24566 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24567 wxPyEndAllowThreads(__tstate);
24568 if (PyErr_Occurred()) SWIG_fail;
24569 }
24570 {
24571 resultobj = wxPyMake_wxObject(result, (bool)0);
24572 }
24573 return resultobj;
24574fail:
24575 return NULL;
24576}
24577
24578
24579SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24580 PyObject *resultobj = 0;
24581 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24582 size_t arg2 ;
24583 bool result;
24584 void *argp1 = 0 ;
24585 int res1 = 0 ;
24586 size_t val2 ;
24587 int ecode2 = 0 ;
24588 PyObject * obj0 = 0 ;
24589 PyObject * obj1 = 0 ;
24590 char * kwnames[] = {
24591 (char *) "self",(char *) "pos", NULL
24592 };
24593
24594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24596 if (!SWIG_IsOK(res1)) {
24597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24598 }
24599 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24600 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24601 if (!SWIG_IsOK(ecode2)) {
24602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24603 }
24604 arg2 = static_cast< size_t >(val2);
24605 {
24606 PyThreadState* __tstate = wxPyBeginAllowThreads();
24607 result = (bool)(arg1)->DeleteToolByPos(arg2);
24608 wxPyEndAllowThreads(__tstate);
24609 if (PyErr_Occurred()) SWIG_fail;
24610 }
24611 {
24612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24613 }
24614 return resultobj;
24615fail:
24616 return NULL;
24617}
24618
24619
24620SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24621 PyObject *resultobj = 0;
24622 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24623 int arg2 ;
24624 bool result;
24625 void *argp1 = 0 ;
24626 int res1 = 0 ;
24627 int val2 ;
24628 int ecode2 = 0 ;
24629 PyObject * obj0 = 0 ;
24630 PyObject * obj1 = 0 ;
24631 char * kwnames[] = {
24632 (char *) "self",(char *) "id", NULL
24633 };
24634
24635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24637 if (!SWIG_IsOK(res1)) {
24638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24639 }
24640 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24641 ecode2 = SWIG_AsVal_int(obj1, &val2);
24642 if (!SWIG_IsOK(ecode2)) {
24643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24644 }
24645 arg2 = static_cast< int >(val2);
24646 {
24647 PyThreadState* __tstate = wxPyBeginAllowThreads();
24648 result = (bool)(arg1)->DeleteTool(arg2);
24649 wxPyEndAllowThreads(__tstate);
24650 if (PyErr_Occurred()) SWIG_fail;
24651 }
24652 {
24653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24654 }
24655 return resultobj;
24656fail:
24657 return NULL;
d55e5bfc
RD
24658}
24659
24660
554f62e9
RD
24661SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24662 PyObject *resultobj = 0;
24663 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24664 void *argp1 = 0 ;
24665 int res1 = 0 ;
24666 PyObject *swig_obj[1] ;
24667
24668 if (!args) SWIG_fail;
24669 swig_obj[0] = args;
24670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24671 if (!SWIG_IsOK(res1)) {
24672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24673 }
24674 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24675 {
24676 PyThreadState* __tstate = wxPyBeginAllowThreads();
24677 (arg1)->ClearTools();
24678 wxPyEndAllowThreads(__tstate);
24679 if (PyErr_Occurred()) SWIG_fail;
24680 }
24681 resultobj = SWIG_Py_Void();
24682 return resultobj;
24683fail:
24684 return NULL;
f20a2e1f
RD
24685}
24686
24687
554f62e9
RD
24688SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24689 PyObject *resultobj = 0;
24690 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24691 bool result;
24692 void *argp1 = 0 ;
24693 int res1 = 0 ;
24694 PyObject *swig_obj[1] ;
24695
24696 if (!args) SWIG_fail;
24697 swig_obj[0] = args;
24698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24699 if (!SWIG_IsOK(res1)) {
24700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24701 }
24702 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24703 {
24704 PyThreadState* __tstate = wxPyBeginAllowThreads();
24705 result = (bool)(arg1)->Realize();
24706 wxPyEndAllowThreads(__tstate);
24707 if (PyErr_Occurred()) SWIG_fail;
24708 }
24709 {
24710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24711 }
24712 return resultobj;
24713fail:
24714 return NULL;
24715}
24716
24717
24718SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24719 PyObject *resultobj = 0;
24720 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24721 int arg2 ;
24722 bool arg3 ;
24723 void *argp1 = 0 ;
24724 int res1 = 0 ;
24725 int val2 ;
24726 int ecode2 = 0 ;
24727 bool val3 ;
24728 int ecode3 = 0 ;
24729 PyObject * obj0 = 0 ;
24730 PyObject * obj1 = 0 ;
24731 PyObject * obj2 = 0 ;
24732 char * kwnames[] = {
24733 (char *) "self",(char *) "id",(char *) "enable", NULL
24734 };
24735
24736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24738 if (!SWIG_IsOK(res1)) {
24739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24740 }
24741 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24742 ecode2 = SWIG_AsVal_int(obj1, &val2);
24743 if (!SWIG_IsOK(ecode2)) {
24744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24745 }
24746 arg2 = static_cast< int >(val2);
24747 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24748 if (!SWIG_IsOK(ecode3)) {
24749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24750 }
24751 arg3 = static_cast< bool >(val3);
24752 {
24753 PyThreadState* __tstate = wxPyBeginAllowThreads();
24754 (arg1)->EnableTool(arg2,arg3);
24755 wxPyEndAllowThreads(__tstate);
24756 if (PyErr_Occurred()) SWIG_fail;
24757 }
24758 resultobj = SWIG_Py_Void();
24759 return resultobj;
24760fail:
24761 return NULL;
24762}
24763
24764
24765SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24766 PyObject *resultobj = 0;
24767 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24768 int arg2 ;
24769 bool arg3 ;
24770 void *argp1 = 0 ;
24771 int res1 = 0 ;
24772 int val2 ;
24773 int ecode2 = 0 ;
24774 bool val3 ;
24775 int ecode3 = 0 ;
24776 PyObject * obj0 = 0 ;
24777 PyObject * obj1 = 0 ;
24778 PyObject * obj2 = 0 ;
24779 char * kwnames[] = {
24780 (char *) "self",(char *) "id",(char *) "toggle", NULL
24781 };
24782
24783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24785 if (!SWIG_IsOK(res1)) {
24786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24787 }
24788 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24789 ecode2 = SWIG_AsVal_int(obj1, &val2);
24790 if (!SWIG_IsOK(ecode2)) {
24791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24792 }
24793 arg2 = static_cast< int >(val2);
24794 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24795 if (!SWIG_IsOK(ecode3)) {
24796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24797 }
24798 arg3 = static_cast< bool >(val3);
24799 {
24800 PyThreadState* __tstate = wxPyBeginAllowThreads();
24801 (arg1)->ToggleTool(arg2,arg3);
24802 wxPyEndAllowThreads(__tstate);
24803 if (PyErr_Occurred()) SWIG_fail;
24804 }
24805 resultobj = SWIG_Py_Void();
24806 return resultobj;
24807fail:
24808 return NULL;
24809}
24810
24811
24812SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24813 PyObject *resultobj = 0;
24814 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24815 int arg2 ;
24816 bool arg3 ;
24817 void *argp1 = 0 ;
24818 int res1 = 0 ;
24819 int val2 ;
24820 int ecode2 = 0 ;
24821 bool val3 ;
24822 int ecode3 = 0 ;
24823 PyObject * obj0 = 0 ;
24824 PyObject * obj1 = 0 ;
24825 PyObject * obj2 = 0 ;
24826 char * kwnames[] = {
24827 (char *) "self",(char *) "id",(char *) "toggle", NULL
24828 };
24829
24830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24832 if (!SWIG_IsOK(res1)) {
24833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24834 }
24835 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24836 ecode2 = SWIG_AsVal_int(obj1, &val2);
24837 if (!SWIG_IsOK(ecode2)) {
24838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24839 }
24840 arg2 = static_cast< int >(val2);
24841 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24842 if (!SWIG_IsOK(ecode3)) {
24843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24844 }
24845 arg3 = static_cast< bool >(val3);
24846 {
24847 PyThreadState* __tstate = wxPyBeginAllowThreads();
24848 (arg1)->SetToggle(arg2,arg3);
24849 wxPyEndAllowThreads(__tstate);
24850 if (PyErr_Occurred()) SWIG_fail;
24851 }
24852 resultobj = SWIG_Py_Void();
24853 return resultobj;
24854fail:
24855 return NULL;
24856}
24857
24858
24859SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24860 PyObject *resultobj = 0;
24861 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24862 int arg2 ;
24863 PyObject *result = 0 ;
24864 void *argp1 = 0 ;
24865 int res1 = 0 ;
24866 int val2 ;
24867 int ecode2 = 0 ;
24868 PyObject * obj0 = 0 ;
24869 PyObject * obj1 = 0 ;
24870 char * kwnames[] = {
24871 (char *) "self",(char *) "id", NULL
24872 };
24873
24874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24876 if (!SWIG_IsOK(res1)) {
24877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24878 }
24879 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24880 ecode2 = SWIG_AsVal_int(obj1, &val2);
24881 if (!SWIG_IsOK(ecode2)) {
24882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24883 }
24884 arg2 = static_cast< int >(val2);
24885 {
24886 PyThreadState* __tstate = wxPyBeginAllowThreads();
24887 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24888 wxPyEndAllowThreads(__tstate);
24889 if (PyErr_Occurred()) SWIG_fail;
24890 }
24891 resultobj = result;
24892 return resultobj;
24893fail:
24894 return NULL;
24895}
24896
24897
24898SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24899 PyObject *resultobj = 0;
24900 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24901 int arg2 ;
24902 PyObject *arg3 = (PyObject *) 0 ;
24903 void *argp1 = 0 ;
24904 int res1 = 0 ;
24905 int val2 ;
24906 int ecode2 = 0 ;
24907 PyObject * obj0 = 0 ;
24908 PyObject * obj1 = 0 ;
24909 PyObject * obj2 = 0 ;
24910 char * kwnames[] = {
24911 (char *) "self",(char *) "id",(char *) "clientData", NULL
24912 };
24913
24914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24916 if (!SWIG_IsOK(res1)) {
24917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24918 }
24919 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24920 ecode2 = SWIG_AsVal_int(obj1, &val2);
24921 if (!SWIG_IsOK(ecode2)) {
24922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24923 }
24924 arg2 = static_cast< int >(val2);
24925 arg3 = obj2;
24926 {
24927 PyThreadState* __tstate = wxPyBeginAllowThreads();
24928 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24929 wxPyEndAllowThreads(__tstate);
24930 if (PyErr_Occurred()) SWIG_fail;
24931 }
24932 resultobj = SWIG_Py_Void();
24933 return resultobj;
24934fail:
24935 return NULL;
24936}
24937
24938
24939SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24940 PyObject *resultobj = 0;
24941 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24942 int arg2 ;
24943 int result;
24944 void *argp1 = 0 ;
24945 int res1 = 0 ;
24946 int val2 ;
24947 int ecode2 = 0 ;
24948 PyObject * obj0 = 0 ;
24949 PyObject * obj1 = 0 ;
24950 char * kwnames[] = {
24951 (char *) "self",(char *) "id", NULL
24952 };
24953
24954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24956 if (!SWIG_IsOK(res1)) {
24957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24958 }
24959 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24960 ecode2 = SWIG_AsVal_int(obj1, &val2);
24961 if (!SWIG_IsOK(ecode2)) {
24962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24963 }
24964 arg2 = static_cast< int >(val2);
24965 {
24966 PyThreadState* __tstate = wxPyBeginAllowThreads();
24967 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24968 wxPyEndAllowThreads(__tstate);
24969 if (PyErr_Occurred()) SWIG_fail;
24970 }
24971 resultobj = SWIG_From_int(static_cast< int >(result));
24972 return resultobj;
24973fail:
24974 return NULL;
24975}
24976
24977
24978SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24979 PyObject *resultobj = 0;
24980 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24981 int arg2 ;
24982 bool result;
24983 void *argp1 = 0 ;
24984 int res1 = 0 ;
24985 int val2 ;
24986 int ecode2 = 0 ;
24987 PyObject * obj0 = 0 ;
24988 PyObject * obj1 = 0 ;
24989 char * kwnames[] = {
24990 (char *) "self",(char *) "id", NULL
24991 };
24992
24993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24995 if (!SWIG_IsOK(res1)) {
24996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24997 }
24998 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24999 ecode2 = SWIG_AsVal_int(obj1, &val2);
25000 if (!SWIG_IsOK(ecode2)) {
25001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
25002 }
25003 arg2 = static_cast< int >(val2);
25004 {
25005 PyThreadState* __tstate = wxPyBeginAllowThreads();
25006 result = (bool)(arg1)->GetToolState(arg2);
25007 wxPyEndAllowThreads(__tstate);
25008 if (PyErr_Occurred()) SWIG_fail;
25009 }
25010 {
25011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25012 }
25013 return resultobj;
25014fail:
25015 return NULL;
25016}
25017
25018
25019SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25020 PyObject *resultobj = 0;
25021 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25022 int arg2 ;
25023 bool result;
25024 void *argp1 = 0 ;
25025 int res1 = 0 ;
25026 int val2 ;
25027 int ecode2 = 0 ;
25028 PyObject * obj0 = 0 ;
25029 PyObject * obj1 = 0 ;
25030 char * kwnames[] = {
25031 (char *) "self",(char *) "id", NULL
25032 };
25033
25034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
25035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25036 if (!SWIG_IsOK(res1)) {
25037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25038 }
25039 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25040 ecode2 = SWIG_AsVal_int(obj1, &val2);
25041 if (!SWIG_IsOK(ecode2)) {
25042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
25043 }
25044 arg2 = static_cast< int >(val2);
25045 {
25046 PyThreadState* __tstate = wxPyBeginAllowThreads();
25047 result = (bool)(arg1)->GetToolEnabled(arg2);
25048 wxPyEndAllowThreads(__tstate);
25049 if (PyErr_Occurred()) SWIG_fail;
25050 }
25051 {
25052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25053 }
25054 return resultobj;
25055fail:
25056 return NULL;
25057}
25058
25059
25060SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25061 PyObject *resultobj = 0;
25062 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25063 int arg2 ;
25064 wxString *arg3 = 0 ;
25065 void *argp1 = 0 ;
25066 int res1 = 0 ;
25067 int val2 ;
25068 int ecode2 = 0 ;
25069 bool temp3 = false ;
25070 PyObject * obj0 = 0 ;
25071 PyObject * obj1 = 0 ;
25072 PyObject * obj2 = 0 ;
25073 char * kwnames[] = {
25074 (char *) "self",(char *) "id",(char *) "helpString", NULL
25075 };
25076
25077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25079 if (!SWIG_IsOK(res1)) {
25080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25081 }
25082 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25083 ecode2 = SWIG_AsVal_int(obj1, &val2);
25084 if (!SWIG_IsOK(ecode2)) {
25085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25086 }
25087 arg2 = static_cast< int >(val2);
25088 {
25089 arg3 = wxString_in_helper(obj2);
25090 if (arg3 == NULL) SWIG_fail;
25091 temp3 = true;
25092 }
25093 {
25094 PyThreadState* __tstate = wxPyBeginAllowThreads();
25095 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
25096 wxPyEndAllowThreads(__tstate);
25097 if (PyErr_Occurred()) SWIG_fail;
25098 }
25099 resultobj = SWIG_Py_Void();
25100 {
25101 if (temp3)
25102 delete arg3;
25103 }
25104 return resultobj;
25105fail:
25106 {
25107 if (temp3)
25108 delete arg3;
25109 }
25110 return NULL;
25111}
25112
25113
25114SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25115 PyObject *resultobj = 0;
25116 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25117 int arg2 ;
25118 wxString result;
25119 void *argp1 = 0 ;
25120 int res1 = 0 ;
25121 int val2 ;
25122 int ecode2 = 0 ;
25123 PyObject * obj0 = 0 ;
25124 PyObject * obj1 = 0 ;
25125 char * kwnames[] = {
25126 (char *) "self",(char *) "id", NULL
25127 };
25128
25129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25131 if (!SWIG_IsOK(res1)) {
25132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25133 }
25134 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25135 ecode2 = SWIG_AsVal_int(obj1, &val2);
25136 if (!SWIG_IsOK(ecode2)) {
25137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25138 }
25139 arg2 = static_cast< int >(val2);
25140 {
25141 PyThreadState* __tstate = wxPyBeginAllowThreads();
25142 result = (arg1)->GetToolShortHelp(arg2);
25143 wxPyEndAllowThreads(__tstate);
25144 if (PyErr_Occurred()) SWIG_fail;
25145 }
25146 {
d55e5bfc 25147#if wxUSE_UNICODE
554f62e9 25148 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 25149#else
554f62e9 25150 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 25151#endif
554f62e9
RD
25152 }
25153 return resultobj;
25154fail:
25155 return NULL;
25156}
25157
25158
25159SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25160 PyObject *resultobj = 0;
25161 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25162 int arg2 ;
25163 wxString *arg3 = 0 ;
25164 void *argp1 = 0 ;
25165 int res1 = 0 ;
25166 int val2 ;
25167 int ecode2 = 0 ;
25168 bool temp3 = false ;
25169 PyObject * obj0 = 0 ;
25170 PyObject * obj1 = 0 ;
25171 PyObject * obj2 = 0 ;
25172 char * kwnames[] = {
25173 (char *) "self",(char *) "id",(char *) "helpString", NULL
25174 };
25175
25176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25178 if (!SWIG_IsOK(res1)) {
25179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25180 }
25181 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25182 ecode2 = SWIG_AsVal_int(obj1, &val2);
25183 if (!SWIG_IsOK(ecode2)) {
25184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25185 }
25186 arg2 = static_cast< int >(val2);
25187 {
25188 arg3 = wxString_in_helper(obj2);
25189 if (arg3 == NULL) SWIG_fail;
25190 temp3 = true;
25191 }
25192 {
25193 PyThreadState* __tstate = wxPyBeginAllowThreads();
25194 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25195 wxPyEndAllowThreads(__tstate);
25196 if (PyErr_Occurred()) SWIG_fail;
25197 }
25198 resultobj = SWIG_Py_Void();
25199 {
25200 if (temp3)
25201 delete arg3;
25202 }
25203 return resultobj;
25204fail:
25205 {
25206 if (temp3)
25207 delete arg3;
25208 }
25209 return NULL;
25210}
25211
25212
25213SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25214 PyObject *resultobj = 0;
25215 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25216 int arg2 ;
25217 wxString result;
25218 void *argp1 = 0 ;
25219 int res1 = 0 ;
25220 int val2 ;
25221 int ecode2 = 0 ;
25222 PyObject * obj0 = 0 ;
25223 PyObject * obj1 = 0 ;
25224 char * kwnames[] = {
25225 (char *) "self",(char *) "id", NULL
25226 };
25227
25228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25230 if (!SWIG_IsOK(res1)) {
25231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25232 }
25233 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25234 ecode2 = SWIG_AsVal_int(obj1, &val2);
25235 if (!SWIG_IsOK(ecode2)) {
25236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25237 }
25238 arg2 = static_cast< int >(val2);
25239 {
25240 PyThreadState* __tstate = wxPyBeginAllowThreads();
25241 result = (arg1)->GetToolLongHelp(arg2);
25242 wxPyEndAllowThreads(__tstate);
25243 if (PyErr_Occurred()) SWIG_fail;
25244 }
25245 {
25246#if wxUSE_UNICODE
25247 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25248#else
25249 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25250#endif
25251 }
25252 return resultobj;
25253fail:
25254 return NULL;
25255}
25256
25257
25258SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25259 PyObject *resultobj = 0;
25260 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25261 int arg2 ;
25262 int arg3 ;
25263 void *argp1 = 0 ;
25264 int res1 = 0 ;
25265 int val2 ;
25266 int ecode2 = 0 ;
25267 int val3 ;
25268 int ecode3 = 0 ;
25269 PyObject * obj0 = 0 ;
25270 PyObject * obj1 = 0 ;
25271 PyObject * obj2 = 0 ;
25272 char * kwnames[] = {
25273 (char *) "self",(char *) "x",(char *) "y", NULL
25274 };
25275
25276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25278 if (!SWIG_IsOK(res1)) {
25279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25280 }
25281 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25282 ecode2 = SWIG_AsVal_int(obj1, &val2);
25283 if (!SWIG_IsOK(ecode2)) {
25284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25285 }
25286 arg2 = static_cast< int >(val2);
25287 ecode3 = SWIG_AsVal_int(obj2, &val3);
25288 if (!SWIG_IsOK(ecode3)) {
25289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25290 }
25291 arg3 = static_cast< int >(val3);
25292 {
25293 PyThreadState* __tstate = wxPyBeginAllowThreads();
25294 (arg1)->SetMargins(arg2,arg3);
25295 wxPyEndAllowThreads(__tstate);
25296 if (PyErr_Occurred()) SWIG_fail;
25297 }
25298 resultobj = SWIG_Py_Void();
25299 return resultobj;
25300fail:
25301 return NULL;
25302}
25303
25304
25305SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25306 PyObject *resultobj = 0;
25307 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25308 wxSize *arg2 = 0 ;
25309 void *argp1 = 0 ;
25310 int res1 = 0 ;
25311 wxSize temp2 ;
25312 PyObject * obj0 = 0 ;
25313 PyObject * obj1 = 0 ;
25314 char * kwnames[] = {
25315 (char *) "self",(char *) "size", NULL
25316 };
25317
25318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25320 if (!SWIG_IsOK(res1)) {
25321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25322 }
25323 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25324 {
25325 arg2 = &temp2;
25326 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25327 }
25328 {
25329 PyThreadState* __tstate = wxPyBeginAllowThreads();
25330 (arg1)->SetMargins((wxSize const &)*arg2);
25331 wxPyEndAllowThreads(__tstate);
25332 if (PyErr_Occurred()) SWIG_fail;
25333 }
25334 resultobj = SWIG_Py_Void();
25335 return resultobj;
25336fail:
25337 return NULL;
25338}
25339
25340
25341SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25342 PyObject *resultobj = 0;
25343 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25344 int arg2 ;
25345 void *argp1 = 0 ;
25346 int res1 = 0 ;
25347 int val2 ;
25348 int ecode2 = 0 ;
25349 PyObject * obj0 = 0 ;
25350 PyObject * obj1 = 0 ;
25351 char * kwnames[] = {
25352 (char *) "self",(char *) "packing", NULL
25353 };
25354
25355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25357 if (!SWIG_IsOK(res1)) {
25358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25359 }
25360 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25361 ecode2 = SWIG_AsVal_int(obj1, &val2);
25362 if (!SWIG_IsOK(ecode2)) {
25363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25364 }
25365 arg2 = static_cast< int >(val2);
25366 {
25367 PyThreadState* __tstate = wxPyBeginAllowThreads();
25368 (arg1)->SetToolPacking(arg2);
25369 wxPyEndAllowThreads(__tstate);
25370 if (PyErr_Occurred()) SWIG_fail;
25371 }
25372 resultobj = SWIG_Py_Void();
25373 return resultobj;
25374fail:
25375 return NULL;
25376}
25377
25378
25379SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25380 PyObject *resultobj = 0;
25381 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25382 int arg2 ;
25383 void *argp1 = 0 ;
25384 int res1 = 0 ;
25385 int val2 ;
25386 int ecode2 = 0 ;
25387 PyObject * obj0 = 0 ;
25388 PyObject * obj1 = 0 ;
25389 char * kwnames[] = {
25390 (char *) "self",(char *) "separation", NULL
25391 };
25392
25393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25395 if (!SWIG_IsOK(res1)) {
25396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25397 }
25398 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25399 ecode2 = SWIG_AsVal_int(obj1, &val2);
25400 if (!SWIG_IsOK(ecode2)) {
25401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25402 }
25403 arg2 = static_cast< int >(val2);
25404 {
25405 PyThreadState* __tstate = wxPyBeginAllowThreads();
25406 (arg1)->SetToolSeparation(arg2);
25407 wxPyEndAllowThreads(__tstate);
25408 if (PyErr_Occurred()) SWIG_fail;
25409 }
25410 resultobj = SWIG_Py_Void();
25411 return resultobj;
25412fail:
25413 return NULL;
d55e5bfc
RD
25414}
25415
25416
554f62e9
RD
25417SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25418 PyObject *resultobj = 0;
25419 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25420 wxSize result;
25421 void *argp1 = 0 ;
25422 int res1 = 0 ;
25423 PyObject *swig_obj[1] ;
25424
25425 if (!args) SWIG_fail;
25426 swig_obj[0] = args;
25427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25428 if (!SWIG_IsOK(res1)) {
25429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25430 }
25431 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25432 {
25433 PyThreadState* __tstate = wxPyBeginAllowThreads();
25434 result = (arg1)->GetToolMargins();
25435 wxPyEndAllowThreads(__tstate);
25436 if (PyErr_Occurred()) SWIG_fail;
25437 }
25438 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25439 return resultobj;
25440fail:
25441 return NULL;
d55e5bfc
RD
25442}
25443
25444
554f62e9
RD
25445SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25446 PyObject *resultobj = 0;
25447 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25448 wxSize result;
25449 void *argp1 = 0 ;
25450 int res1 = 0 ;
25451 PyObject *swig_obj[1] ;
25452
25453 if (!args) SWIG_fail;
25454 swig_obj[0] = args;
25455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25456 if (!SWIG_IsOK(res1)) {
25457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25458 }
25459 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25460 {
25461 PyThreadState* __tstate = wxPyBeginAllowThreads();
25462 result = (arg1)->GetMargins();
25463 wxPyEndAllowThreads(__tstate);
25464 if (PyErr_Occurred()) SWIG_fail;
25465 }
25466 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25467 return resultobj;
25468fail:
25469 return NULL;
d55e5bfc
RD
25470}
25471
25472
554f62e9
RD
25473SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25474 PyObject *resultobj = 0;
25475 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25476 int result;
25477 void *argp1 = 0 ;
25478 int res1 = 0 ;
25479 PyObject *swig_obj[1] ;
25480
25481 if (!args) SWIG_fail;
25482 swig_obj[0] = args;
25483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25484 if (!SWIG_IsOK(res1)) {
25485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25486 }
25487 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25488 {
25489 PyThreadState* __tstate = wxPyBeginAllowThreads();
25490 result = (int)(arg1)->GetToolPacking();
25491 wxPyEndAllowThreads(__tstate);
25492 if (PyErr_Occurred()) SWIG_fail;
25493 }
25494 resultobj = SWIG_From_int(static_cast< int >(result));
25495 return resultobj;
25496fail:
25497 return NULL;
d55e5bfc
RD
25498}
25499
25500
554f62e9
RD
25501SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25502 PyObject *resultobj = 0;
25503 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25504 int result;
25505 void *argp1 = 0 ;
25506 int res1 = 0 ;
25507 PyObject *swig_obj[1] ;
25508
25509 if (!args) SWIG_fail;
25510 swig_obj[0] = args;
25511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25512 if (!SWIG_IsOK(res1)) {
25513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25514 }
25515 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25516 {
25517 PyThreadState* __tstate = wxPyBeginAllowThreads();
25518 result = (int)(arg1)->GetToolSeparation();
25519 wxPyEndAllowThreads(__tstate);
25520 if (PyErr_Occurred()) SWIG_fail;
25521 }
25522 resultobj = SWIG_From_int(static_cast< int >(result));
25523 return resultobj;
25524fail:
25525 return NULL;
25526}
25527
25528
25529SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25530 PyObject *resultobj = 0;
25531 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25532 int arg2 ;
25533 void *argp1 = 0 ;
25534 int res1 = 0 ;
25535 int val2 ;
25536 int ecode2 = 0 ;
25537 PyObject * obj0 = 0 ;
25538 PyObject * obj1 = 0 ;
25539 char * kwnames[] = {
25540 (char *) "self",(char *) "nRows", NULL
25541 };
25542
25543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25545 if (!SWIG_IsOK(res1)) {
25546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25547 }
25548 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25549 ecode2 = SWIG_AsVal_int(obj1, &val2);
25550 if (!SWIG_IsOK(ecode2)) {
25551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25552 }
25553 arg2 = static_cast< int >(val2);
25554 {
25555 PyThreadState* __tstate = wxPyBeginAllowThreads();
25556 (arg1)->SetRows(arg2);
25557 wxPyEndAllowThreads(__tstate);
25558 if (PyErr_Occurred()) SWIG_fail;
25559 }
25560 resultobj = SWIG_Py_Void();
25561 return resultobj;
25562fail:
25563 return NULL;
25564}
25565
25566
25567SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25568 PyObject *resultobj = 0;
25569 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25570 int arg2 ;
25571 int arg3 ;
25572 void *argp1 = 0 ;
25573 int res1 = 0 ;
25574 int val2 ;
25575 int ecode2 = 0 ;
25576 int val3 ;
25577 int ecode3 = 0 ;
25578 PyObject * obj0 = 0 ;
25579 PyObject * obj1 = 0 ;
25580 PyObject * obj2 = 0 ;
25581 char * kwnames[] = {
25582 (char *) "self",(char *) "rows",(char *) "cols", NULL
25583 };
25584
25585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25587 if (!SWIG_IsOK(res1)) {
25588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25589 }
25590 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25591 ecode2 = SWIG_AsVal_int(obj1, &val2);
25592 if (!SWIG_IsOK(ecode2)) {
25593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25594 }
25595 arg2 = static_cast< int >(val2);
25596 ecode3 = SWIG_AsVal_int(obj2, &val3);
25597 if (!SWIG_IsOK(ecode3)) {
25598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25599 }
25600 arg3 = static_cast< int >(val3);
25601 {
25602 PyThreadState* __tstate = wxPyBeginAllowThreads();
25603 (arg1)->SetMaxRowsCols(arg2,arg3);
25604 wxPyEndAllowThreads(__tstate);
25605 if (PyErr_Occurred()) SWIG_fail;
25606 }
25607 resultobj = SWIG_Py_Void();
25608 return resultobj;
25609fail:
25610 return NULL;
d55e5bfc
RD
25611}
25612
25613
554f62e9
RD
25614SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25615 PyObject *resultobj = 0;
25616 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25617 int result;
25618 void *argp1 = 0 ;
25619 int res1 = 0 ;
25620 PyObject *swig_obj[1] ;
25621
25622 if (!args) SWIG_fail;
25623 swig_obj[0] = args;
25624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25625 if (!SWIG_IsOK(res1)) {
25626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25627 }
25628 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25629 {
25630 PyThreadState* __tstate = wxPyBeginAllowThreads();
25631 result = (int)(arg1)->GetMaxRows();
25632 wxPyEndAllowThreads(__tstate);
25633 if (PyErr_Occurred()) SWIG_fail;
25634 }
25635 resultobj = SWIG_From_int(static_cast< int >(result));
25636 return resultobj;
25637fail:
25638 return NULL;
d55e5bfc
RD
25639}
25640
25641
554f62e9
RD
25642SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25643 PyObject *resultobj = 0;
25644 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25645 int result;
25646 void *argp1 = 0 ;
25647 int res1 = 0 ;
25648 PyObject *swig_obj[1] ;
25649
25650 if (!args) SWIG_fail;
25651 swig_obj[0] = args;
25652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25653 if (!SWIG_IsOK(res1)) {
25654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25655 }
25656 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25657 {
25658 PyThreadState* __tstate = wxPyBeginAllowThreads();
25659 result = (int)(arg1)->GetMaxCols();
25660 wxPyEndAllowThreads(__tstate);
25661 if (PyErr_Occurred()) SWIG_fail;
25662 }
25663 resultobj = SWIG_From_int(static_cast< int >(result));
25664 return resultobj;
25665fail:
25666 return NULL;
25667}
25668
25669
25670SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25671 PyObject *resultobj = 0;
25672 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25673 wxSize *arg2 = 0 ;
25674 void *argp1 = 0 ;
25675 int res1 = 0 ;
25676 wxSize temp2 ;
25677 PyObject * obj0 = 0 ;
25678 PyObject * obj1 = 0 ;
25679 char * kwnames[] = {
25680 (char *) "self",(char *) "size", NULL
25681 };
25682
25683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25685 if (!SWIG_IsOK(res1)) {
25686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25687 }
25688 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25689 {
25690 arg2 = &temp2;
25691 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25692 }
25693 {
25694 PyThreadState* __tstate = wxPyBeginAllowThreads();
25695 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25696 wxPyEndAllowThreads(__tstate);
25697 if (PyErr_Occurred()) SWIG_fail;
25698 }
25699 resultobj = SWIG_Py_Void();
25700 return resultobj;
25701fail:
25702 return NULL;
d55e5bfc
RD
25703}
25704
25705
554f62e9
RD
25706SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25707 PyObject *resultobj = 0;
25708 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25709 wxSize result;
25710 void *argp1 = 0 ;
25711 int res1 = 0 ;
25712 PyObject *swig_obj[1] ;
25713
25714 if (!args) SWIG_fail;
25715 swig_obj[0] = args;
25716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25717 if (!SWIG_IsOK(res1)) {
25718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25719 }
25720 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25721 {
25722 PyThreadState* __tstate = wxPyBeginAllowThreads();
25723 result = (arg1)->GetToolBitmapSize();
25724 wxPyEndAllowThreads(__tstate);
25725 if (PyErr_Occurred()) SWIG_fail;
25726 }
25727 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25728 return resultobj;
25729fail:
25730 return NULL;
d55e5bfc
RD
25731}
25732
25733
554f62e9
RD
25734SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25735 PyObject *resultobj = 0;
25736 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25737 wxSize result;
25738 void *argp1 = 0 ;
25739 int res1 = 0 ;
25740 PyObject *swig_obj[1] ;
25741
25742 if (!args) SWIG_fail;
25743 swig_obj[0] = args;
25744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25745 if (!SWIG_IsOK(res1)) {
25746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25747 }
25748 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25749 {
25750 PyThreadState* __tstate = wxPyBeginAllowThreads();
25751 result = (arg1)->GetToolSize();
25752 wxPyEndAllowThreads(__tstate);
25753 if (PyErr_Occurred()) SWIG_fail;
25754 }
25755 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25756 return resultobj;
25757fail:
25758 return NULL;
25759}
25760
25761
25762SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25763 PyObject *resultobj = 0;
25764 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25765 int arg2 ;
25766 int arg3 ;
25767 wxToolBarToolBase *result = 0 ;
25768 void *argp1 = 0 ;
25769 int res1 = 0 ;
25770 int val2 ;
25771 int ecode2 = 0 ;
25772 int val3 ;
25773 int ecode3 = 0 ;
25774 PyObject * obj0 = 0 ;
25775 PyObject * obj1 = 0 ;
25776 PyObject * obj2 = 0 ;
25777 char * kwnames[] = {
25778 (char *) "self",(char *) "x",(char *) "y", NULL
25779 };
25780
25781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25783 if (!SWIG_IsOK(res1)) {
25784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25785 }
25786 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25787 ecode2 = SWIG_AsVal_int(obj1, &val2);
25788 if (!SWIG_IsOK(ecode2)) {
25789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25790 }
25791 arg2 = static_cast< int >(val2);
25792 ecode3 = SWIG_AsVal_int(obj2, &val3);
25793 if (!SWIG_IsOK(ecode3)) {
25794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25795 }
25796 arg3 = static_cast< int >(val3);
25797 {
25798 PyThreadState* __tstate = wxPyBeginAllowThreads();
25799 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25800 wxPyEndAllowThreads(__tstate);
25801 if (PyErr_Occurred()) SWIG_fail;
25802 }
25803 {
25804 resultobj = wxPyMake_wxObject(result, (bool)0);
25805 }
25806 return resultobj;
25807fail:
25808 return NULL;
25809}
25810
25811
25812SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25813 PyObject *resultobj = 0;
25814 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25815 int arg2 ;
25816 wxToolBarToolBase *result = 0 ;
25817 void *argp1 = 0 ;
25818 int res1 = 0 ;
25819 int val2 ;
25820 int ecode2 = 0 ;
25821 PyObject * obj0 = 0 ;
25822 PyObject * obj1 = 0 ;
25823 char * kwnames[] = {
25824 (char *) "self",(char *) "toolid", NULL
25825 };
25826
25827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25829 if (!SWIG_IsOK(res1)) {
25830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25831 }
25832 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25833 ecode2 = SWIG_AsVal_int(obj1, &val2);
25834 if (!SWIG_IsOK(ecode2)) {
25835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25836 }
25837 arg2 = static_cast< int >(val2);
25838 {
25839 PyThreadState* __tstate = wxPyBeginAllowThreads();
25840 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25841 wxPyEndAllowThreads(__tstate);
25842 if (PyErr_Occurred()) SWIG_fail;
25843 }
25844 {
25845 resultobj = wxPyMake_wxObject(result, (bool)0);
25846 }
25847 return resultobj;
25848fail:
25849 return NULL;
d55e5bfc
RD
25850}
25851
25852
554f62e9
RD
25853SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25854 PyObject *resultobj = 0;
25855 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25856 bool result;
25857 void *argp1 = 0 ;
25858 int res1 = 0 ;
25859 PyObject *swig_obj[1] ;
25860
25861 if (!args) SWIG_fail;
25862 swig_obj[0] = args;
25863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25864 if (!SWIG_IsOK(res1)) {
25865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25866 }
25867 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25868 {
25869 PyThreadState* __tstate = wxPyBeginAllowThreads();
25870 result = (bool)(arg1)->IsVertical();
25871 wxPyEndAllowThreads(__tstate);
25872 if (PyErr_Occurred()) SWIG_fail;
25873 }
25874 {
25875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25876 }
25877 return resultobj;
25878fail:
25879 return NULL;
d55e5bfc
RD
25880}
25881
25882
554f62e9
RD
25883SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25884 PyObject *resultobj = 0;
25885 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25886 size_t result;
25887 void *argp1 = 0 ;
25888 int res1 = 0 ;
25889 PyObject *swig_obj[1] ;
25890
25891 if (!args) SWIG_fail;
25892 swig_obj[0] = args;
25893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25894 if (!SWIG_IsOK(res1)) {
25895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25896 }
25897 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25898 {
25899 PyThreadState* __tstate = wxPyBeginAllowThreads();
25900 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25901 wxPyEndAllowThreads(__tstate);
25902 if (PyErr_Occurred()) SWIG_fail;
25903 }
25904 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25905 return resultobj;
25906fail:
25907 return NULL;
25908}
25909
25910
25911SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25912 PyObject *obj;
25913 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25914 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25915 return SWIG_Py_Void();
25916}
25917
25918SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25919 PyObject *resultobj = 0;
25920 wxWindow *arg1 = (wxWindow *) 0 ;
25921 int arg2 = (int) -1 ;
25922 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25923 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25924 wxSize const &arg4_defvalue = wxDefaultSize ;
25925 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25926 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25927 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25928 wxString *arg6 = (wxString *) &arg6_defvalue ;
25929 wxToolBar *result = 0 ;
25930 void *argp1 = 0 ;
25931 int res1 = 0 ;
25932 int val2 ;
25933 int ecode2 = 0 ;
25934 wxPoint temp3 ;
25935 wxSize temp4 ;
25936 long val5 ;
25937 int ecode5 = 0 ;
25938 bool temp6 = false ;
25939 PyObject * obj0 = 0 ;
25940 PyObject * obj1 = 0 ;
25941 PyObject * obj2 = 0 ;
25942 PyObject * obj3 = 0 ;
25943 PyObject * obj4 = 0 ;
25944 PyObject * obj5 = 0 ;
25945 char * kwnames[] = {
25946 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25947 };
25948
25949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25951 if (!SWIG_IsOK(res1)) {
25952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25953 }
25954 arg1 = reinterpret_cast< wxWindow * >(argp1);
25955 if (obj1) {
25956 ecode2 = SWIG_AsVal_int(obj1, &val2);
25957 if (!SWIG_IsOK(ecode2)) {
25958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25959 }
25960 arg2 = static_cast< int >(val2);
25961 }
25962 if (obj2) {
d55e5bfc 25963 {
554f62e9
RD
25964 arg3 = &temp3;
25965 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 25966 }
554f62e9
RD
25967 }
25968 if (obj3) {
093d3ff1 25969 {
554f62e9
RD
25970 arg4 = &temp4;
25971 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 25972 }
554f62e9
RD
25973 }
25974 if (obj4) {
25975 ecode5 = SWIG_AsVal_long(obj4, &val5);
25976 if (!SWIG_IsOK(ecode5)) {
25977 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25978 }
25979 arg5 = static_cast< long >(val5);
25980 }
25981 if (obj5) {
d55e5bfc 25982 {
554f62e9
RD
25983 arg6 = wxString_in_helper(obj5);
25984 if (arg6 == NULL) SWIG_fail;
25985 temp6 = true;
d55e5bfc 25986 }
554f62e9
RD
25987 }
25988 {
25989 if (!wxPyCheckForApp()) SWIG_fail;
25990 PyThreadState* __tstate = wxPyBeginAllowThreads();
25991 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25992 wxPyEndAllowThreads(__tstate);
25993 if (PyErr_Occurred()) SWIG_fail;
25994 }
25995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25996 {
25997 if (temp6)
25998 delete arg6;
25999 }
26000 return resultobj;
26001fail:
26002 {
26003 if (temp6)
26004 delete arg6;
26005 }
26006 return NULL;
d55e5bfc
RD
26007}
26008
26009
554f62e9
RD
26010SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26011 PyObject *resultobj = 0;
26012 wxToolBar *result = 0 ;
26013
26014 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
26015 {
26016 if (!wxPyCheckForApp()) SWIG_fail;
26017 PyThreadState* __tstate = wxPyBeginAllowThreads();
26018 result = (wxToolBar *)new wxToolBar();
26019 wxPyEndAllowThreads(__tstate);
26020 if (PyErr_Occurred()) SWIG_fail;
26021 }
26022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
26023 return resultobj;
26024fail:
26025 return NULL;
26026}
26027
26028
26029SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26030 PyObject *resultobj = 0;
26031 wxToolBar *arg1 = (wxToolBar *) 0 ;
26032 wxWindow *arg2 = (wxWindow *) 0 ;
26033 int arg3 = (int) -1 ;
26034 wxPoint const &arg4_defvalue = wxDefaultPosition ;
26035 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
26036 wxSize const &arg5_defvalue = wxDefaultSize ;
26037 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
26038 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
26039 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
26040 wxString *arg7 = (wxString *) &arg7_defvalue ;
26041 bool result;
26042 void *argp1 = 0 ;
26043 int res1 = 0 ;
26044 void *argp2 = 0 ;
26045 int res2 = 0 ;
26046 int val3 ;
26047 int ecode3 = 0 ;
26048 wxPoint temp4 ;
26049 wxSize temp5 ;
26050 long val6 ;
26051 int ecode6 = 0 ;
26052 bool temp7 = false ;
26053 PyObject * obj0 = 0 ;
26054 PyObject * obj1 = 0 ;
26055 PyObject * obj2 = 0 ;
26056 PyObject * obj3 = 0 ;
26057 PyObject * obj4 = 0 ;
26058 PyObject * obj5 = 0 ;
26059 PyObject * obj6 = 0 ;
26060 char * kwnames[] = {
26061 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
26062 };
26063
26064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26066 if (!SWIG_IsOK(res1)) {
26067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
26068 }
26069 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26070 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26071 if (!SWIG_IsOK(res2)) {
26072 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
26073 }
26074 arg2 = reinterpret_cast< wxWindow * >(argp2);
26075 if (obj2) {
26076 ecode3 = SWIG_AsVal_int(obj2, &val3);
26077 if (!SWIG_IsOK(ecode3)) {
26078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
26079 }
26080 arg3 = static_cast< int >(val3);
26081 }
26082 if (obj3) {
d55e5bfc 26083 {
554f62e9
RD
26084 arg4 = &temp4;
26085 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 26086 }
554f62e9
RD
26087 }
26088 if (obj4) {
093d3ff1 26089 {
554f62e9
RD
26090 arg5 = &temp5;
26091 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 26092 }
554f62e9
RD
26093 }
26094 if (obj5) {
26095 ecode6 = SWIG_AsVal_long(obj5, &val6);
26096 if (!SWIG_IsOK(ecode6)) {
26097 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
26098 }
26099 arg6 = static_cast< long >(val6);
26100 }
26101 if (obj6) {
26102 {
26103 arg7 = wxString_in_helper(obj6);
26104 if (arg7 == NULL) SWIG_fail;
26105 temp7 = true;
26106 }
26107 }
26108 {
26109 PyThreadState* __tstate = wxPyBeginAllowThreads();
26110 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
26111 wxPyEndAllowThreads(__tstate);
26112 if (PyErr_Occurred()) SWIG_fail;
26113 }
26114 {
26115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26116 }
26117 {
26118 if (temp7)
26119 delete arg7;
26120 }
26121 return resultobj;
26122fail:
26123 {
26124 if (temp7)
26125 delete arg7;
26126 }
26127 return NULL;
26128}
26129
26130
4976f996
RD
26131SWIGINTERN PyObject *_wrap_ToolBar_SetToolNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26132 PyObject *resultobj = 0;
26133 wxToolBar *arg1 = (wxToolBar *) 0 ;
26134 int arg2 ;
26135 wxBitmap *arg3 = 0 ;
26136 void *argp1 = 0 ;
26137 int res1 = 0 ;
26138 int val2 ;
26139 int ecode2 = 0 ;
26140 void *argp3 = 0 ;
26141 int res3 = 0 ;
26142 PyObject * obj0 = 0 ;
26143 PyObject * obj1 = 0 ;
26144 PyObject * obj2 = 0 ;
26145 char * kwnames[] = {
26146 (char *) "self",(char *) "id",(char *) "bitmap", NULL
26147 };
26148
26149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_SetToolNormalBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26151 if (!SWIG_IsOK(res1)) {
26152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "1"" of type '" "wxToolBar *""'");
26153 }
26154 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26155 ecode2 = SWIG_AsVal_int(obj1, &val2);
26156 if (!SWIG_IsOK(ecode2)) {
26157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "2"" of type '" "int""'");
26158 }
26159 arg2 = static_cast< int >(val2);
26160 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26161 if (!SWIG_IsOK(res3)) {
26162 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26163 }
26164 if (!argp3) {
26165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26166 }
26167 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26168 {
26169 PyThreadState* __tstate = wxPyBeginAllowThreads();
26170 (arg1)->SetToolNormalBitmap(arg2,(wxBitmap const &)*arg3);
26171 wxPyEndAllowThreads(__tstate);
26172 if (PyErr_Occurred()) SWIG_fail;
26173 }
26174 resultobj = SWIG_Py_Void();
26175 return resultobj;
26176fail:
26177 return NULL;
26178}
26179
26180
26181SWIGINTERN PyObject *_wrap_ToolBar_SetToolDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26182 PyObject *resultobj = 0;
26183 wxToolBar *arg1 = (wxToolBar *) 0 ;
26184 int arg2 ;
26185 wxBitmap *arg3 = 0 ;
26186 void *argp1 = 0 ;
26187 int res1 = 0 ;
26188 int val2 ;
26189 int ecode2 = 0 ;
26190 void *argp3 = 0 ;
26191 int res3 = 0 ;
26192 PyObject * obj0 = 0 ;
26193 PyObject * obj1 = 0 ;
26194 PyObject * obj2 = 0 ;
26195 char * kwnames[] = {
26196 (char *) "self",(char *) "id",(char *) "bitmap", NULL
26197 };
26198
26199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_SetToolDisabledBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26201 if (!SWIG_IsOK(res1)) {
26202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBar *""'");
26203 }
26204 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26205 ecode2 = SWIG_AsVal_int(obj1, &val2);
26206 if (!SWIG_IsOK(ecode2)) {
26207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "2"" of type '" "int""'");
26208 }
26209 arg2 = static_cast< int >(val2);
26210 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26211 if (!SWIG_IsOK(res3)) {
26212 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26213 }
26214 if (!argp3) {
26215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26216 }
26217 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26218 {
26219 PyThreadState* __tstate = wxPyBeginAllowThreads();
26220 (arg1)->SetToolDisabledBitmap(arg2,(wxBitmap const &)*arg3);
26221 wxPyEndAllowThreads(__tstate);
26222 if (PyErr_Occurred()) SWIG_fail;
26223 }
26224 resultobj = SWIG_Py_Void();
26225 return resultobj;
26226fail:
26227 return NULL;
26228}
26229
26230
554f62e9
RD
26231SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26232 PyObject *resultobj = 0;
26233 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
26234 SwigValueWrapper<wxVisualAttributes > result;
26235 int val1 ;
26236 int ecode1 = 0 ;
26237 PyObject * obj0 = 0 ;
26238 char * kwnames[] = {
26239 (char *) "variant", NULL
26240 };
26241
26242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
26243 if (obj0) {
26244 ecode1 = SWIG_AsVal_int(obj0, &val1);
26245 if (!SWIG_IsOK(ecode1)) {
26246 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
26247 }
26248 arg1 = static_cast< wxWindowVariant >(val1);
26249 }
26250 {
26251 if (!wxPyCheckForApp()) SWIG_fail;
26252 PyThreadState* __tstate = wxPyBeginAllowThreads();
26253 result = wxToolBar::GetClassDefaultAttributes(arg1);
26254 wxPyEndAllowThreads(__tstate);
26255 if (PyErr_Occurred()) SWIG_fail;
26256 }
26257 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26258 return resultobj;
26259fail:
26260 return NULL;
d55e5bfc
RD
26261}
26262
26263
554f62e9
RD
26264SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26265 PyObject *obj;
26266 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26267 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26268 return SWIG_Py_Void();
d55e5bfc
RD
26269}
26270
554f62e9
RD
26271SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26272 return SWIG_Python_InitShadowInstance(args);
26273}
d55e5bfc 26274
554f62e9
RD
26275SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26276 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26277 return 1;
d55e5bfc
RD
26278}
26279
26280
554f62e9
RD
26281SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26282 PyObject *pyobj = 0;
26283
26284 {
26285#if wxUSE_UNICODE
26286 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26287#else
26288 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26289#endif
26290 }
26291 return pyobj;
26292}
26293
26294
26295SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26296 PyObject *resultobj = 0;
26297 wxColour const &arg1_defvalue = wxNullColour ;
26298 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26299 wxColour const &arg2_defvalue = wxNullColour ;
26300 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26301 wxFont const &arg3_defvalue = wxNullFont ;
26302 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26303 wxListItemAttr *result = 0 ;
26304 wxColour temp1 ;
26305 wxColour temp2 ;
26306 void *argp3 = 0 ;
26307 int res3 = 0 ;
26308 PyObject * obj0 = 0 ;
26309 PyObject * obj1 = 0 ;
26310 PyObject * obj2 = 0 ;
26311 char * kwnames[] = {
26312 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26313 };
26314
26315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26316 if (obj0) {
093d3ff1 26317 {
554f62e9
RD
26318 arg1 = &temp1;
26319 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 26320 }
554f62e9
RD
26321 }
26322 if (obj1) {
d55e5bfc 26323 {
554f62e9
RD
26324 arg2 = &temp2;
26325 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 26326 }
554f62e9
RD
26327 }
26328 if (obj2) {
26329 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26330 if (!SWIG_IsOK(res3)) {
26331 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26332 }
26333 if (!argp3) {
26334 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26335 }
26336 arg3 = reinterpret_cast< wxFont * >(argp3);
26337 }
26338 {
26339 PyThreadState* __tstate = wxPyBeginAllowThreads();
26340 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26341 wxPyEndAllowThreads(__tstate);
26342 if (PyErr_Occurred()) SWIG_fail;
26343 }
26344 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26345 return resultobj;
26346fail:
26347 return NULL;
d55e5bfc
RD
26348}
26349
26350
554f62e9
RD
26351SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26352 PyObject *resultobj = 0;
26353 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26354 void *argp1 = 0 ;
26355 int res1 = 0 ;
26356 PyObject *swig_obj[1] ;
26357
26358 if (!args) SWIG_fail;
26359 swig_obj[0] = args;
26360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26361 if (!SWIG_IsOK(res1)) {
26362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26363 }
26364 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26365 {
26366 PyThreadState* __tstate = wxPyBeginAllowThreads();
26367 delete arg1;
d55e5bfc 26368
554f62e9
RD
26369 wxPyEndAllowThreads(__tstate);
26370 if (PyErr_Occurred()) SWIG_fail;
26371 }
26372 resultobj = SWIG_Py_Void();
26373 return resultobj;
26374fail:
26375 return NULL;
26376}
26377
26378
26379SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26380 PyObject *resultobj = 0;
26381 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26382 wxColour *arg2 = 0 ;
26383 void *argp1 = 0 ;
26384 int res1 = 0 ;
26385 wxColour temp2 ;
26386 PyObject * obj0 = 0 ;
26387 PyObject * obj1 = 0 ;
26388 char * kwnames[] = {
26389 (char *) "self",(char *) "colText", NULL
26390 };
26391
26392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26394 if (!SWIG_IsOK(res1)) {
26395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26396 }
26397 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26398 {
26399 arg2 = &temp2;
26400 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26401 }
26402 {
26403 PyThreadState* __tstate = wxPyBeginAllowThreads();
26404 (arg1)->SetTextColour((wxColour const &)*arg2);
26405 wxPyEndAllowThreads(__tstate);
26406 if (PyErr_Occurred()) SWIG_fail;
26407 }
26408 resultobj = SWIG_Py_Void();
26409 return resultobj;
26410fail:
26411 return NULL;
26412}
26413
26414
26415SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26416 PyObject *resultobj = 0;
26417 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26418 wxColour *arg2 = 0 ;
26419 void *argp1 = 0 ;
26420 int res1 = 0 ;
26421 wxColour temp2 ;
26422 PyObject * obj0 = 0 ;
26423 PyObject * obj1 = 0 ;
26424 char * kwnames[] = {
26425 (char *) "self",(char *) "colBack", NULL
26426 };
26427
26428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26430 if (!SWIG_IsOK(res1)) {
26431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26432 }
26433 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26434 {
26435 arg2 = &temp2;
26436 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26437 }
26438 {
26439 PyThreadState* __tstate = wxPyBeginAllowThreads();
26440 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26441 wxPyEndAllowThreads(__tstate);
26442 if (PyErr_Occurred()) SWIG_fail;
26443 }
26444 resultobj = SWIG_Py_Void();
26445 return resultobj;
26446fail:
26447 return NULL;
26448}
26449
26450
26451SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26452 PyObject *resultobj = 0;
26453 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26454 wxFont *arg2 = 0 ;
26455 void *argp1 = 0 ;
26456 int res1 = 0 ;
26457 void *argp2 = 0 ;
26458 int res2 = 0 ;
26459 PyObject * obj0 = 0 ;
26460 PyObject * obj1 = 0 ;
26461 char * kwnames[] = {
26462 (char *) "self",(char *) "font", NULL
26463 };
26464
26465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26467 if (!SWIG_IsOK(res1)) {
26468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26469 }
26470 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26471 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26472 if (!SWIG_IsOK(res2)) {
26473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26474 }
26475 if (!argp2) {
26476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26477 }
26478 arg2 = reinterpret_cast< wxFont * >(argp2);
26479 {
26480 PyThreadState* __tstate = wxPyBeginAllowThreads();
26481 (arg1)->SetFont((wxFont const &)*arg2);
26482 wxPyEndAllowThreads(__tstate);
26483 if (PyErr_Occurred()) SWIG_fail;
26484 }
26485 resultobj = SWIG_Py_Void();
26486 return resultobj;
26487fail:
26488 return NULL;
d55e5bfc
RD
26489}
26490
26491
554f62e9
RD
26492SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26493 PyObject *resultobj = 0;
26494 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26495 bool result;
26496 void *argp1 = 0 ;
26497 int res1 = 0 ;
26498 PyObject *swig_obj[1] ;
26499
26500 if (!args) SWIG_fail;
26501 swig_obj[0] = args;
26502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26503 if (!SWIG_IsOK(res1)) {
26504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26505 }
26506 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26507 {
26508 PyThreadState* __tstate = wxPyBeginAllowThreads();
26509 result = (bool)(arg1)->HasTextColour();
26510 wxPyEndAllowThreads(__tstate);
26511 if (PyErr_Occurred()) SWIG_fail;
26512 }
26513 {
26514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26515 }
26516 return resultobj;
26517fail:
26518 return NULL;
d55e5bfc
RD
26519}
26520
26521
554f62e9
RD
26522SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26523 PyObject *resultobj = 0;
26524 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26525 bool result;
26526 void *argp1 = 0 ;
26527 int res1 = 0 ;
26528 PyObject *swig_obj[1] ;
26529
26530 if (!args) SWIG_fail;
26531 swig_obj[0] = args;
26532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26533 if (!SWIG_IsOK(res1)) {
26534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26535 }
26536 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26537 {
26538 PyThreadState* __tstate = wxPyBeginAllowThreads();
26539 result = (bool)(arg1)->HasBackgroundColour();
26540 wxPyEndAllowThreads(__tstate);
26541 if (PyErr_Occurred()) SWIG_fail;
26542 }
26543 {
26544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26545 }
26546 return resultobj;
26547fail:
26548 return NULL;
d55e5bfc
RD
26549}
26550
26551
554f62e9
RD
26552SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26553 PyObject *resultobj = 0;
26554 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26555 bool result;
26556 void *argp1 = 0 ;
26557 int res1 = 0 ;
26558 PyObject *swig_obj[1] ;
26559
26560 if (!args) SWIG_fail;
26561 swig_obj[0] = args;
26562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26563 if (!SWIG_IsOK(res1)) {
26564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26565 }
26566 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26567 {
26568 PyThreadState* __tstate = wxPyBeginAllowThreads();
26569 result = (bool)(arg1)->HasFont();
26570 wxPyEndAllowThreads(__tstate);
26571 if (PyErr_Occurred()) SWIG_fail;
26572 }
26573 {
26574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26575 }
26576 return resultobj;
26577fail:
26578 return NULL;
d55e5bfc
RD
26579}
26580
26581
554f62e9
RD
26582SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26583 PyObject *resultobj = 0;
26584 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26585 wxColour result;
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_wxListItemAttr, 0 | 0 );
26593 if (!SWIG_IsOK(res1)) {
26594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26595 }
26596 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26597 {
26598 PyThreadState* __tstate = wxPyBeginAllowThreads();
26599 result = (arg1)->GetTextColour();
26600 wxPyEndAllowThreads(__tstate);
26601 if (PyErr_Occurred()) SWIG_fail;
26602 }
26603 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26604 return resultobj;
26605fail:
26606 return NULL;
d55e5bfc
RD
26607}
26608
26609
554f62e9
RD
26610SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26611 PyObject *resultobj = 0;
26612 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26613 wxColour result;
26614 void *argp1 = 0 ;
26615 int res1 = 0 ;
26616 PyObject *swig_obj[1] ;
26617
26618 if (!args) SWIG_fail;
26619 swig_obj[0] = args;
26620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26621 if (!SWIG_IsOK(res1)) {
26622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26623 }
26624 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26625 {
26626 PyThreadState* __tstate = wxPyBeginAllowThreads();
26627 result = (arg1)->GetBackgroundColour();
26628 wxPyEndAllowThreads(__tstate);
26629 if (PyErr_Occurred()) SWIG_fail;
26630 }
26631 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26632 return resultobj;
26633fail:
26634 return NULL;
d55e5bfc
RD
26635}
26636
26637
554f62e9
RD
26638SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26639 PyObject *resultobj = 0;
26640 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26641 wxFont result;
26642 void *argp1 = 0 ;
26643 int res1 = 0 ;
26644 PyObject *swig_obj[1] ;
26645
26646 if (!args) SWIG_fail;
26647 swig_obj[0] = args;
26648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26649 if (!SWIG_IsOK(res1)) {
26650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26651 }
26652 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26653 {
26654 PyThreadState* __tstate = wxPyBeginAllowThreads();
26655 result = (arg1)->GetFont();
26656 wxPyEndAllowThreads(__tstate);
26657 if (PyErr_Occurred()) SWIG_fail;
26658 }
26659 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26660 return resultobj;
26661fail:
26662 return NULL;
26663}
26664
26665
26666SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26667 PyObject *resultobj = 0;
26668 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26669 wxListItemAttr *arg2 = 0 ;
26670 void *argp1 = 0 ;
26671 int res1 = 0 ;
26672 void *argp2 = 0 ;
26673 int res2 = 0 ;
26674 PyObject * obj0 = 0 ;
26675 PyObject * obj1 = 0 ;
26676 char * kwnames[] = {
26677 (char *) "self",(char *) "source", NULL
26678 };
26679
26680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26682 if (!SWIG_IsOK(res1)) {
26683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26684 }
26685 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26686 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26687 if (!SWIG_IsOK(res2)) {
26688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26689 }
26690 if (!argp2) {
26691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26692 }
26693 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26694 {
26695 PyThreadState* __tstate = wxPyBeginAllowThreads();
26696 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26697 wxPyEndAllowThreads(__tstate);
26698 if (PyErr_Occurred()) SWIG_fail;
26699 }
26700 resultobj = SWIG_Py_Void();
26701 return resultobj;
26702fail:
26703 return NULL;
d55e5bfc
RD
26704}
26705
26706
554f62e9
RD
26707SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26708 PyObject *resultobj = 0;
26709 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26710 void *argp1 = 0 ;
26711 int res1 = 0 ;
26712 PyObject *swig_obj[1] ;
26713
26714 if (!args) SWIG_fail;
26715 swig_obj[0] = args;
26716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26717 if (!SWIG_IsOK(res1)) {
26718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26719 }
26720 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26721 {
26722 PyThreadState* __tstate = wxPyBeginAllowThreads();
26723 wxListItemAttr_Destroy(arg1);
26724 wxPyEndAllowThreads(__tstate);
26725 if (PyErr_Occurred()) SWIG_fail;
26726 }
26727 resultobj = SWIG_Py_Void();
26728 return resultobj;
26729fail:
26730 return NULL;
f20a2e1f
RD
26731}
26732
26733
554f62e9
RD
26734SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26735 PyObject *obj;
26736 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26737 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26738 return SWIG_Py_Void();
d55e5bfc 26739}
554f62e9
RD
26740
26741SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26742 return SWIG_Python_InitShadowInstance(args);
26743}
26744
26745SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26746 PyObject *resultobj = 0;
26747 wxListItem *result = 0 ;
26748
26749 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26750 {
26751 PyThreadState* __tstate = wxPyBeginAllowThreads();
26752 result = (wxListItem *)new wxListItem();
26753 wxPyEndAllowThreads(__tstate);
26754 if (PyErr_Occurred()) SWIG_fail;
26755 }
3ecece7e 26756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
554f62e9
RD
26757 return resultobj;
26758fail:
26759 return NULL;
d55e5bfc
RD
26760}
26761
26762
554f62e9
RD
26763SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26764 PyObject *resultobj = 0;
26765 wxListItem *arg1 = (wxListItem *) 0 ;
26766 void *argp1 = 0 ;
26767 int res1 = 0 ;
26768 PyObject *swig_obj[1] ;
26769
26770 if (!args) SWIG_fail;
26771 swig_obj[0] = args;
26772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26773 if (!SWIG_IsOK(res1)) {
26774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26775 }
26776 arg1 = reinterpret_cast< wxListItem * >(argp1);
26777 {
26778 PyThreadState* __tstate = wxPyBeginAllowThreads();
26779 delete arg1;
d55e5bfc 26780
554f62e9
RD
26781 wxPyEndAllowThreads(__tstate);
26782 if (PyErr_Occurred()) SWIG_fail;
26783 }
26784 resultobj = SWIG_Py_Void();
26785 return resultobj;
26786fail:
26787 return NULL;
d55e5bfc
RD
26788}
26789
26790
554f62e9
RD
26791SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26792 PyObject *resultobj = 0;
26793 wxListItem *arg1 = (wxListItem *) 0 ;
26794 void *argp1 = 0 ;
26795 int res1 = 0 ;
26796 PyObject *swig_obj[1] ;
26797
26798 if (!args) SWIG_fail;
26799 swig_obj[0] = args;
26800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26801 if (!SWIG_IsOK(res1)) {
26802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26803 }
26804 arg1 = reinterpret_cast< wxListItem * >(argp1);
26805 {
26806 PyThreadState* __tstate = wxPyBeginAllowThreads();
26807 (arg1)->Clear();
26808 wxPyEndAllowThreads(__tstate);
26809 if (PyErr_Occurred()) SWIG_fail;
26810 }
26811 resultobj = SWIG_Py_Void();
26812 return resultobj;
26813fail:
26814 return NULL;
d55e5bfc
RD
26815}
26816
26817
554f62e9
RD
26818SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26819 PyObject *resultobj = 0;
26820 wxListItem *arg1 = (wxListItem *) 0 ;
26821 void *argp1 = 0 ;
26822 int res1 = 0 ;
26823 PyObject *swig_obj[1] ;
26824
26825 if (!args) SWIG_fail;
26826 swig_obj[0] = args;
26827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26828 if (!SWIG_IsOK(res1)) {
26829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26830 }
26831 arg1 = reinterpret_cast< wxListItem * >(argp1);
26832 {
26833 PyThreadState* __tstate = wxPyBeginAllowThreads();
26834 (arg1)->ClearAttributes();
26835 wxPyEndAllowThreads(__tstate);
26836 if (PyErr_Occurred()) SWIG_fail;
26837 }
26838 resultobj = SWIG_Py_Void();
26839 return resultobj;
26840fail:
26841 return NULL;
26842}
26843
26844
26845SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26846 PyObject *resultobj = 0;
26847 wxListItem *arg1 = (wxListItem *) 0 ;
26848 long arg2 ;
26849 void *argp1 = 0 ;
26850 int res1 = 0 ;
26851 long val2 ;
26852 int ecode2 = 0 ;
26853 PyObject * obj0 = 0 ;
26854 PyObject * obj1 = 0 ;
26855 char * kwnames[] = {
26856 (char *) "self",(char *) "mask", NULL
26857 };
26858
26859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",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_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26863 }
26864 arg1 = reinterpret_cast< wxListItem * >(argp1);
26865 ecode2 = SWIG_AsVal_long(obj1, &val2);
26866 if (!SWIG_IsOK(ecode2)) {
26867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26868 }
26869 arg2 = static_cast< long >(val2);
26870 {
26871 PyThreadState* __tstate = wxPyBeginAllowThreads();
26872 (arg1)->SetMask(arg2);
26873 wxPyEndAllowThreads(__tstate);
26874 if (PyErr_Occurred()) SWIG_fail;
26875 }
26876 resultobj = SWIG_Py_Void();
26877 return resultobj;
26878fail:
26879 return NULL;
26880}
26881
26882
26883SWIGINTERN PyObject *_wrap_ListItem_SetId(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 *) "id", NULL
26895 };
26896
26897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",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_SetId" "', 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_SetId" "', expected argument " "2"" of type '" "long""'");
26906 }
26907 arg2 = static_cast< long >(val2);
26908 {
26909 PyThreadState* __tstate = wxPyBeginAllowThreads();
26910 (arg1)->SetId(arg2);
26911 wxPyEndAllowThreads(__tstate);
26912 if (PyErr_Occurred()) SWIG_fail;
26913 }
26914 resultobj = SWIG_Py_Void();
26915 return resultobj;
26916fail:
26917 return NULL;
26918}
26919
26920
26921SWIGINTERN PyObject *_wrap_ListItem_SetColumn(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 *) "col", NULL
26933 };
26934
26935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",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_SetColumn" "', 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_SetColumn" "', expected argument " "2"" of type '" "int""'");
26944 }
26945 arg2 = static_cast< int >(val2);
26946 {
26947 PyThreadState* __tstate = wxPyBeginAllowThreads();
26948 (arg1)->SetColumn(arg2);
26949 wxPyEndAllowThreads(__tstate);
26950 if (PyErr_Occurred()) SWIG_fail;
26951 }
26952 resultobj = SWIG_Py_Void();
26953 return resultobj;
26954fail:
26955 return NULL;
26956}
26957
26958
26959SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26960 PyObject *resultobj = 0;
26961 wxListItem *arg1 = (wxListItem *) 0 ;
26962 long arg2 ;
26963 void *argp1 = 0 ;
26964 int res1 = 0 ;
26965 long val2 ;
26966 int ecode2 = 0 ;
26967 PyObject * obj0 = 0 ;
26968 PyObject * obj1 = 0 ;
26969 char * kwnames[] = {
26970 (char *) "self",(char *) "state", NULL
26971 };
26972
26973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",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_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26977 }
26978 arg1 = reinterpret_cast< wxListItem * >(argp1);
26979 ecode2 = SWIG_AsVal_long(obj1, &val2);
26980 if (!SWIG_IsOK(ecode2)) {
26981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26982 }
26983 arg2 = static_cast< long >(val2);
26984 {
26985 PyThreadState* __tstate = wxPyBeginAllowThreads();
26986 (arg1)->SetState(arg2);
26987 wxPyEndAllowThreads(__tstate);
26988 if (PyErr_Occurred()) SWIG_fail;
26989 }
26990 resultobj = SWIG_Py_Void();
26991 return resultobj;
26992fail:
26993 return NULL;
26994}
26995
26996
26997SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26998 PyObject *resultobj = 0;
26999 wxListItem *arg1 = (wxListItem *) 0 ;
27000 long arg2 ;
27001 void *argp1 = 0 ;
27002 int res1 = 0 ;
27003 long val2 ;
27004 int ecode2 = 0 ;
27005 PyObject * obj0 = 0 ;
27006 PyObject * obj1 = 0 ;
27007 char * kwnames[] = {
27008 (char *) "self",(char *) "stateMask", NULL
27009 };
27010
27011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
27012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27013 if (!SWIG_IsOK(res1)) {
27014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27015 }
27016 arg1 = reinterpret_cast< wxListItem * >(argp1);
27017 ecode2 = SWIG_AsVal_long(obj1, &val2);
27018 if (!SWIG_IsOK(ecode2)) {
27019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
27020 }
27021 arg2 = static_cast< long >(val2);
27022 {
27023 PyThreadState* __tstate = wxPyBeginAllowThreads();
27024 (arg1)->SetStateMask(arg2);
27025 wxPyEndAllowThreads(__tstate);
27026 if (PyErr_Occurred()) SWIG_fail;
27027 }
27028 resultobj = SWIG_Py_Void();
27029 return resultobj;
27030fail:
27031 return NULL;
27032}
27033
27034
27035SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27036 PyObject *resultobj = 0;
27037 wxListItem *arg1 = (wxListItem *) 0 ;
27038 wxString *arg2 = 0 ;
27039 void *argp1 = 0 ;
27040 int res1 = 0 ;
27041 bool temp2 = false ;
27042 PyObject * obj0 = 0 ;
27043 PyObject * obj1 = 0 ;
27044 char * kwnames[] = {
27045 (char *) "self",(char *) "text", NULL
27046 };
27047
27048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
27049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27050 if (!SWIG_IsOK(res1)) {
27051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27052 }
27053 arg1 = reinterpret_cast< wxListItem * >(argp1);
27054 {
27055 arg2 = wxString_in_helper(obj1);
27056 if (arg2 == NULL) SWIG_fail;
27057 temp2 = true;
27058 }
27059 {
27060 PyThreadState* __tstate = wxPyBeginAllowThreads();
27061 (arg1)->SetText((wxString const &)*arg2);
27062 wxPyEndAllowThreads(__tstate);
27063 if (PyErr_Occurred()) SWIG_fail;
27064 }
27065 resultobj = SWIG_Py_Void();
27066 {
27067 if (temp2)
27068 delete arg2;
27069 }
27070 return resultobj;
27071fail:
27072 {
27073 if (temp2)
27074 delete arg2;
27075 }
27076 return NULL;
27077}
27078
27079
27080SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27081 PyObject *resultobj = 0;
27082 wxListItem *arg1 = (wxListItem *) 0 ;
27083 int arg2 ;
27084 void *argp1 = 0 ;
27085 int res1 = 0 ;
27086 int val2 ;
27087 int ecode2 = 0 ;
27088 PyObject * obj0 = 0 ;
27089 PyObject * obj1 = 0 ;
27090 char * kwnames[] = {
27091 (char *) "self",(char *) "image", NULL
27092 };
27093
27094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
27095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27096 if (!SWIG_IsOK(res1)) {
27097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27098 }
27099 arg1 = reinterpret_cast< wxListItem * >(argp1);
27100 ecode2 = SWIG_AsVal_int(obj1, &val2);
27101 if (!SWIG_IsOK(ecode2)) {
27102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
27103 }
27104 arg2 = static_cast< int >(val2);
27105 {
27106 PyThreadState* __tstate = wxPyBeginAllowThreads();
27107 (arg1)->SetImage(arg2);
27108 wxPyEndAllowThreads(__tstate);
27109 if (PyErr_Occurred()) SWIG_fail;
27110 }
27111 resultobj = SWIG_Py_Void();
27112 return resultobj;
27113fail:
27114 return NULL;
27115}
27116
27117
27118SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27119 PyObject *resultobj = 0;
27120 wxListItem *arg1 = (wxListItem *) 0 ;
27121 long arg2 ;
27122 void *argp1 = 0 ;
27123 int res1 = 0 ;
27124 long val2 ;
27125 int ecode2 = 0 ;
27126 PyObject * obj0 = 0 ;
27127 PyObject * obj1 = 0 ;
27128 char * kwnames[] = {
27129 (char *) "self",(char *) "data", NULL
27130 };
27131
27132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
27133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27134 if (!SWIG_IsOK(res1)) {
27135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27136 }
27137 arg1 = reinterpret_cast< wxListItem * >(argp1);
27138 ecode2 = SWIG_AsVal_long(obj1, &val2);
27139 if (!SWIG_IsOK(ecode2)) {
27140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
27141 }
27142 arg2 = static_cast< long >(val2);
27143 {
27144 PyThreadState* __tstate = wxPyBeginAllowThreads();
27145 (arg1)->SetData(arg2);
27146 wxPyEndAllowThreads(__tstate);
27147 if (PyErr_Occurred()) SWIG_fail;
27148 }
27149 resultobj = SWIG_Py_Void();
27150 return resultobj;
27151fail:
27152 return NULL;
27153}
27154
27155
27156SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27157 PyObject *resultobj = 0;
27158 wxListItem *arg1 = (wxListItem *) 0 ;
27159 int arg2 ;
27160 void *argp1 = 0 ;
27161 int res1 = 0 ;
27162 int val2 ;
27163 int ecode2 = 0 ;
27164 PyObject * obj0 = 0 ;
27165 PyObject * obj1 = 0 ;
27166 char * kwnames[] = {
27167 (char *) "self",(char *) "width", NULL
27168 };
27169
27170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
27171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27172 if (!SWIG_IsOK(res1)) {
27173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27174 }
27175 arg1 = reinterpret_cast< wxListItem * >(argp1);
27176 ecode2 = SWIG_AsVal_int(obj1, &val2);
27177 if (!SWIG_IsOK(ecode2)) {
27178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
27179 }
27180 arg2 = static_cast< int >(val2);
27181 {
27182 PyThreadState* __tstate = wxPyBeginAllowThreads();
27183 (arg1)->SetWidth(arg2);
27184 wxPyEndAllowThreads(__tstate);
27185 if (PyErr_Occurred()) SWIG_fail;
27186 }
27187 resultobj = SWIG_Py_Void();
27188 return resultobj;
27189fail:
27190 return NULL;
27191}
27192
27193
27194SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27195 PyObject *resultobj = 0;
27196 wxListItem *arg1 = (wxListItem *) 0 ;
27197 wxListColumnFormat arg2 ;
27198 void *argp1 = 0 ;
27199 int res1 = 0 ;
27200 int val2 ;
27201 int ecode2 = 0 ;
27202 PyObject * obj0 = 0 ;
27203 PyObject * obj1 = 0 ;
27204 char * kwnames[] = {
27205 (char *) "self",(char *) "align", NULL
27206 };
27207
27208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
27209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27210 if (!SWIG_IsOK(res1)) {
27211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27212 }
27213 arg1 = reinterpret_cast< wxListItem * >(argp1);
27214 ecode2 = SWIG_AsVal_int(obj1, &val2);
27215 if (!SWIG_IsOK(ecode2)) {
27216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
27217 }
27218 arg2 = static_cast< wxListColumnFormat >(val2);
27219 {
27220 PyThreadState* __tstate = wxPyBeginAllowThreads();
27221 (arg1)->SetAlign(arg2);
27222 wxPyEndAllowThreads(__tstate);
27223 if (PyErr_Occurred()) SWIG_fail;
27224 }
27225 resultobj = SWIG_Py_Void();
27226 return resultobj;
27227fail:
27228 return NULL;
27229}
27230
27231
27232SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27233 PyObject *resultobj = 0;
27234 wxListItem *arg1 = (wxListItem *) 0 ;
27235 wxColour *arg2 = 0 ;
27236 void *argp1 = 0 ;
27237 int res1 = 0 ;
27238 wxColour temp2 ;
27239 PyObject * obj0 = 0 ;
27240 PyObject * obj1 = 0 ;
27241 char * kwnames[] = {
27242 (char *) "self",(char *) "colText", NULL
27243 };
27244
27245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
27246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27247 if (!SWIG_IsOK(res1)) {
27248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27249 }
27250 arg1 = reinterpret_cast< wxListItem * >(argp1);
27251 {
27252 arg2 = &temp2;
27253 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27254 }
27255 {
27256 PyThreadState* __tstate = wxPyBeginAllowThreads();
27257 (arg1)->SetTextColour((wxColour const &)*arg2);
27258 wxPyEndAllowThreads(__tstate);
27259 if (PyErr_Occurred()) SWIG_fail;
27260 }
27261 resultobj = SWIG_Py_Void();
27262 return resultobj;
27263fail:
27264 return NULL;
27265}
27266
27267
27268SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27269 PyObject *resultobj = 0;
27270 wxListItem *arg1 = (wxListItem *) 0 ;
27271 wxColour *arg2 = 0 ;
27272 void *argp1 = 0 ;
27273 int res1 = 0 ;
27274 wxColour temp2 ;
27275 PyObject * obj0 = 0 ;
27276 PyObject * obj1 = 0 ;
27277 char * kwnames[] = {
27278 (char *) "self",(char *) "colBack", NULL
27279 };
27280
27281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27283 if (!SWIG_IsOK(res1)) {
27284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27285 }
27286 arg1 = reinterpret_cast< wxListItem * >(argp1);
27287 {
27288 arg2 = &temp2;
27289 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27290 }
27291 {
27292 PyThreadState* __tstate = wxPyBeginAllowThreads();
27293 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27294 wxPyEndAllowThreads(__tstate);
27295 if (PyErr_Occurred()) SWIG_fail;
27296 }
27297 resultobj = SWIG_Py_Void();
27298 return resultobj;
27299fail:
27300 return NULL;
27301}
27302
27303
27304SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27305 PyObject *resultobj = 0;
27306 wxListItem *arg1 = (wxListItem *) 0 ;
27307 wxFont *arg2 = 0 ;
27308 void *argp1 = 0 ;
27309 int res1 = 0 ;
27310 void *argp2 = 0 ;
27311 int res2 = 0 ;
27312 PyObject * obj0 = 0 ;
27313 PyObject * obj1 = 0 ;
27314 char * kwnames[] = {
27315 (char *) "self",(char *) "font", NULL
27316 };
27317
27318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27320 if (!SWIG_IsOK(res1)) {
27321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27322 }
27323 arg1 = reinterpret_cast< wxListItem * >(argp1);
27324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27325 if (!SWIG_IsOK(res2)) {
27326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27327 }
27328 if (!argp2) {
27329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27330 }
27331 arg2 = reinterpret_cast< wxFont * >(argp2);
27332 {
27333 PyThreadState* __tstate = wxPyBeginAllowThreads();
27334 (arg1)->SetFont((wxFont const &)*arg2);
27335 wxPyEndAllowThreads(__tstate);
27336 if (PyErr_Occurred()) SWIG_fail;
27337 }
27338 resultobj = SWIG_Py_Void();
27339 return resultobj;
27340fail:
27341 return NULL;
d55e5bfc
RD
27342}
27343
27344
554f62e9
RD
27345SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27346 PyObject *resultobj = 0;
27347 wxListItem *arg1 = (wxListItem *) 0 ;
27348 long result;
27349 void *argp1 = 0 ;
27350 int res1 = 0 ;
27351 PyObject *swig_obj[1] ;
27352
27353 if (!args) SWIG_fail;
27354 swig_obj[0] = args;
27355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27356 if (!SWIG_IsOK(res1)) {
27357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27358 }
27359 arg1 = reinterpret_cast< wxListItem * >(argp1);
27360 {
27361 PyThreadState* __tstate = wxPyBeginAllowThreads();
27362 result = (long)(arg1)->GetMask();
27363 wxPyEndAllowThreads(__tstate);
27364 if (PyErr_Occurred()) SWIG_fail;
27365 }
27366 resultobj = SWIG_From_long(static_cast< long >(result));
27367 return resultobj;
27368fail:
27369 return NULL;
d55e5bfc
RD
27370}
27371
27372
554f62e9
RD
27373SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27374 PyObject *resultobj = 0;
27375 wxListItem *arg1 = (wxListItem *) 0 ;
27376 long result;
27377 void *argp1 = 0 ;
27378 int res1 = 0 ;
27379 PyObject *swig_obj[1] ;
27380
27381 if (!args) SWIG_fail;
27382 swig_obj[0] = args;
27383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27384 if (!SWIG_IsOK(res1)) {
27385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27386 }
27387 arg1 = reinterpret_cast< wxListItem * >(argp1);
27388 {
27389 PyThreadState* __tstate = wxPyBeginAllowThreads();
27390 result = (long)(arg1)->GetId();
27391 wxPyEndAllowThreads(__tstate);
27392 if (PyErr_Occurred()) SWIG_fail;
27393 }
27394 resultobj = SWIG_From_long(static_cast< long >(result));
27395 return resultobj;
27396fail:
27397 return NULL;
d55e5bfc
RD
27398}
27399
27400
554f62e9
RD
27401SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27402 PyObject *resultobj = 0;
27403 wxListItem *arg1 = (wxListItem *) 0 ;
27404 int result;
27405 void *argp1 = 0 ;
27406 int res1 = 0 ;
27407 PyObject *swig_obj[1] ;
27408
27409 if (!args) SWIG_fail;
27410 swig_obj[0] = args;
27411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27412 if (!SWIG_IsOK(res1)) {
27413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27414 }
27415 arg1 = reinterpret_cast< wxListItem * >(argp1);
27416 {
27417 PyThreadState* __tstate = wxPyBeginAllowThreads();
27418 result = (int)(arg1)->GetColumn();
27419 wxPyEndAllowThreads(__tstate);
27420 if (PyErr_Occurred()) SWIG_fail;
27421 }
27422 resultobj = SWIG_From_int(static_cast< int >(result));
27423 return resultobj;
27424fail:
27425 return NULL;
d55e5bfc
RD
27426}
27427
27428
554f62e9
RD
27429SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27430 PyObject *resultobj = 0;
27431 wxListItem *arg1 = (wxListItem *) 0 ;
27432 long 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_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27442 }
27443 arg1 = reinterpret_cast< wxListItem * >(argp1);
27444 {
27445 PyThreadState* __tstate = wxPyBeginAllowThreads();
27446 result = (long)(arg1)->GetState();
27447 wxPyEndAllowThreads(__tstate);
27448 if (PyErr_Occurred()) SWIG_fail;
27449 }
27450 resultobj = SWIG_From_long(static_cast< long >(result));
27451 return resultobj;
27452fail:
27453 return NULL;
d55e5bfc
RD
27454}
27455
27456
554f62e9
RD
27457SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27458 PyObject *resultobj = 0;
27459 wxListItem *arg1 = (wxListItem *) 0 ;
27460 wxString *result = 0 ;
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_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27470 }
27471 arg1 = reinterpret_cast< wxListItem * >(argp1);
27472 {
27473 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 27474 {
554f62e9
RD
27475 wxString const &_result_ref = (arg1)->GetText();
27476 result = (wxString *) &_result_ref;
27477 }
27478 wxPyEndAllowThreads(__tstate);
27479 if (PyErr_Occurred()) SWIG_fail;
27480 }
27481 {
d55e5bfc 27482#if wxUSE_UNICODE
554f62e9 27483 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d55e5bfc 27484#else
554f62e9 27485 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d55e5bfc 27486#endif
554f62e9
RD
27487 }
27488 return resultobj;
27489fail:
27490 return NULL;
d55e5bfc
RD
27491}
27492
27493
554f62e9
RD
27494SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27495 PyObject *resultobj = 0;
27496 wxListItem *arg1 = (wxListItem *) 0 ;
27497 int result;
27498 void *argp1 = 0 ;
27499 int res1 = 0 ;
27500 PyObject *swig_obj[1] ;
27501
27502 if (!args) SWIG_fail;
27503 swig_obj[0] = args;
27504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27505 if (!SWIG_IsOK(res1)) {
27506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27507 }
27508 arg1 = reinterpret_cast< wxListItem * >(argp1);
27509 {
27510 PyThreadState* __tstate = wxPyBeginAllowThreads();
27511 result = (int)(arg1)->GetImage();
27512 wxPyEndAllowThreads(__tstate);
27513 if (PyErr_Occurred()) SWIG_fail;
27514 }
27515 resultobj = SWIG_From_int(static_cast< int >(result));
27516 return resultobj;
27517fail:
27518 return NULL;
d55e5bfc
RD
27519}
27520
27521
554f62e9
RD
27522SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27523 PyObject *resultobj = 0;
27524 wxListItem *arg1 = (wxListItem *) 0 ;
27525 long result;
27526 void *argp1 = 0 ;
27527 int res1 = 0 ;
27528 PyObject *swig_obj[1] ;
27529
27530 if (!args) SWIG_fail;
27531 swig_obj[0] = args;
27532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27533 if (!SWIG_IsOK(res1)) {
27534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27535 }
27536 arg1 = reinterpret_cast< wxListItem * >(argp1);
27537 {
27538 PyThreadState* __tstate = wxPyBeginAllowThreads();
27539 result = (long)(arg1)->GetData();
27540 wxPyEndAllowThreads(__tstate);
27541 if (PyErr_Occurred()) SWIG_fail;
27542 }
27543 resultobj = SWIG_From_long(static_cast< long >(result));
27544 return resultobj;
27545fail:
27546 return NULL;
8fb0e70a
RD
27547}
27548
27549
554f62e9
RD
27550SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27551 PyObject *resultobj = 0;
27552 wxListItem *arg1 = (wxListItem *) 0 ;
27553 int result;
27554 void *argp1 = 0 ;
27555 int res1 = 0 ;
27556 PyObject *swig_obj[1] ;
27557
27558 if (!args) SWIG_fail;
27559 swig_obj[0] = args;
27560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27561 if (!SWIG_IsOK(res1)) {
27562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27563 }
27564 arg1 = reinterpret_cast< wxListItem * >(argp1);
27565 {
27566 PyThreadState* __tstate = wxPyBeginAllowThreads();
27567 result = (int)(arg1)->GetWidth();
27568 wxPyEndAllowThreads(__tstate);
27569 if (PyErr_Occurred()) SWIG_fail;
27570 }
27571 resultobj = SWIG_From_int(static_cast< int >(result));
27572 return resultobj;
27573fail:
27574 return NULL;
d55e5bfc
RD
27575}
27576
27577
554f62e9
RD
27578SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27579 PyObject *resultobj = 0;
27580 wxListItem *arg1 = (wxListItem *) 0 ;
27581 wxListColumnFormat result;
27582 void *argp1 = 0 ;
27583 int res1 = 0 ;
27584 PyObject *swig_obj[1] ;
27585
27586 if (!args) SWIG_fail;
27587 swig_obj[0] = args;
27588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27589 if (!SWIG_IsOK(res1)) {
27590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27591 }
27592 arg1 = reinterpret_cast< wxListItem * >(argp1);
27593 {
27594 PyThreadState* __tstate = wxPyBeginAllowThreads();
27595 result = (wxListColumnFormat)(arg1)->GetAlign();
27596 wxPyEndAllowThreads(__tstate);
27597 if (PyErr_Occurred()) SWIG_fail;
27598 }
27599 resultobj = SWIG_From_int(static_cast< int >(result));
27600 return resultobj;
27601fail:
27602 return NULL;
d55e5bfc
RD
27603}
27604
27605
554f62e9
RD
27606SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27607 PyObject *resultobj = 0;
27608 wxListItem *arg1 = (wxListItem *) 0 ;
27609 wxListItemAttr *result = 0 ;
27610 void *argp1 = 0 ;
27611 int res1 = 0 ;
27612 PyObject *swig_obj[1] ;
27613
27614 if (!args) SWIG_fail;
27615 swig_obj[0] = args;
27616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27617 if (!SWIG_IsOK(res1)) {
27618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27619 }
27620 arg1 = reinterpret_cast< wxListItem * >(argp1);
27621 {
27622 PyThreadState* __tstate = wxPyBeginAllowThreads();
27623 result = (wxListItemAttr *)(arg1)->GetAttributes();
27624 wxPyEndAllowThreads(__tstate);
27625 if (PyErr_Occurred()) SWIG_fail;
27626 }
27627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27628 return resultobj;
27629fail:
27630 return NULL;
d55e5bfc
RD
27631}
27632
27633
554f62e9
RD
27634SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27635 PyObject *resultobj = 0;
27636 wxListItem *arg1 = (wxListItem *) 0 ;
27637 bool result;
27638 void *argp1 = 0 ;
27639 int res1 = 0 ;
27640 PyObject *swig_obj[1] ;
27641
27642 if (!args) SWIG_fail;
27643 swig_obj[0] = args;
27644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27645 if (!SWIG_IsOK(res1)) {
27646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27647 }
27648 arg1 = reinterpret_cast< wxListItem * >(argp1);
27649 {
27650 PyThreadState* __tstate = wxPyBeginAllowThreads();
27651 result = (bool)(arg1)->HasAttributes();
27652 wxPyEndAllowThreads(__tstate);
27653 if (PyErr_Occurred()) SWIG_fail;
27654 }
27655 {
27656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27657 }
27658 return resultobj;
27659fail:
27660 return NULL;
d55e5bfc
RD
27661}
27662
27663
554f62e9
RD
27664SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27665 PyObject *resultobj = 0;
27666 wxListItem *arg1 = (wxListItem *) 0 ;
27667 wxColour result;
27668 void *argp1 = 0 ;
27669 int res1 = 0 ;
27670 PyObject *swig_obj[1] ;
27671
27672 if (!args) SWIG_fail;
27673 swig_obj[0] = args;
27674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27675 if (!SWIG_IsOK(res1)) {
27676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27677 }
27678 arg1 = reinterpret_cast< wxListItem * >(argp1);
27679 {
27680 PyThreadState* __tstate = wxPyBeginAllowThreads();
27681 result = ((wxListItem const *)arg1)->GetTextColour();
27682 wxPyEndAllowThreads(__tstate);
27683 if (PyErr_Occurred()) SWIG_fail;
27684 }
27685 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27686 return resultobj;
27687fail:
27688 return NULL;
d55e5bfc
RD
27689}
27690
27691
554f62e9
RD
27692SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27693 PyObject *resultobj = 0;
27694 wxListItem *arg1 = (wxListItem *) 0 ;
27695 wxColour result;
27696 void *argp1 = 0 ;
27697 int res1 = 0 ;
27698 PyObject *swig_obj[1] ;
27699
27700 if (!args) SWIG_fail;
27701 swig_obj[0] = args;
27702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27703 if (!SWIG_IsOK(res1)) {
27704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27705 }
27706 arg1 = reinterpret_cast< wxListItem * >(argp1);
27707 {
27708 PyThreadState* __tstate = wxPyBeginAllowThreads();
27709 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27710 wxPyEndAllowThreads(__tstate);
27711 if (PyErr_Occurred()) SWIG_fail;
27712 }
27713 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27714 return resultobj;
27715fail:
27716 return NULL;
d55e5bfc
RD
27717}
27718
27719
554f62e9
RD
27720SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27721 PyObject *resultobj = 0;
27722 wxListItem *arg1 = (wxListItem *) 0 ;
27723 wxFont result;
27724 void *argp1 = 0 ;
27725 int res1 = 0 ;
27726 PyObject *swig_obj[1] ;
27727
27728 if (!args) SWIG_fail;
27729 swig_obj[0] = args;
27730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27731 if (!SWIG_IsOK(res1)) {
27732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27733 }
27734 arg1 = reinterpret_cast< wxListItem * >(argp1);
27735 {
27736 PyThreadState* __tstate = wxPyBeginAllowThreads();
27737 result = ((wxListItem const *)arg1)->GetFont();
27738 wxPyEndAllowThreads(__tstate);
27739 if (PyErr_Occurred()) SWIG_fail;
27740 }
27741 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27742 return resultobj;
27743fail:
27744 return NULL;
27745}
27746
27747
27748SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27749 PyObject *resultobj = 0;
27750 wxListItem *arg1 = (wxListItem *) 0 ;
27751 long arg2 ;
27752 void *argp1 = 0 ;
27753 int res1 = 0 ;
27754 long val2 ;
27755 int ecode2 = 0 ;
27756 PyObject *swig_obj[2] ;
27757
27758 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27760 if (!SWIG_IsOK(res1)) {
27761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27762 }
27763 arg1 = reinterpret_cast< wxListItem * >(argp1);
27764 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27765 if (!SWIG_IsOK(ecode2)) {
27766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27767 }
27768 arg2 = static_cast< long >(val2);
27769 if (arg1) (arg1)->m_mask = arg2;
27770
27771 resultobj = SWIG_Py_Void();
27772 return resultobj;
27773fail:
27774 return NULL;
d55e5bfc
RD
27775}
27776
27777
554f62e9
RD
27778SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27779 PyObject *resultobj = 0;
27780 wxListItem *arg1 = (wxListItem *) 0 ;
27781 long result;
27782 void *argp1 = 0 ;
27783 int res1 = 0 ;
27784 PyObject *swig_obj[1] ;
27785
27786 if (!args) SWIG_fail;
27787 swig_obj[0] = args;
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_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27791 }
27792 arg1 = reinterpret_cast< wxListItem * >(argp1);
27793 result = (long) ((arg1)->m_mask);
27794 resultobj = SWIG_From_long(static_cast< long >(result));
27795 return resultobj;
27796fail:
27797 return NULL;
27798}
27799
27800
27801SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27802 PyObject *resultobj = 0;
27803 wxListItem *arg1 = (wxListItem *) 0 ;
27804 long arg2 ;
27805 void *argp1 = 0 ;
27806 int res1 = 0 ;
27807 long val2 ;
27808 int ecode2 = 0 ;
27809 PyObject *swig_obj[2] ;
27810
27811 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27813 if (!SWIG_IsOK(res1)) {
27814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27815 }
27816 arg1 = reinterpret_cast< wxListItem * >(argp1);
27817 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27818 if (!SWIG_IsOK(ecode2)) {
27819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27820 }
27821 arg2 = static_cast< long >(val2);
27822 if (arg1) (arg1)->m_itemId = arg2;
27823
27824 resultobj = SWIG_Py_Void();
27825 return resultobj;
27826fail:
27827 return NULL;
d55e5bfc
RD
27828}
27829
27830
554f62e9
RD
27831SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27832 PyObject *resultobj = 0;
27833 wxListItem *arg1 = (wxListItem *) 0 ;
27834 long result;
27835 void *argp1 = 0 ;
27836 int res1 = 0 ;
27837 PyObject *swig_obj[1] ;
27838
27839 if (!args) SWIG_fail;
27840 swig_obj[0] = args;
27841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27842 if (!SWIG_IsOK(res1)) {
27843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27844 }
27845 arg1 = reinterpret_cast< wxListItem * >(argp1);
27846 result = (long) ((arg1)->m_itemId);
27847 resultobj = SWIG_From_long(static_cast< long >(result));
27848 return resultobj;
27849fail:
27850 return NULL;
27851}
27852
27853
27854SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27855 PyObject *resultobj = 0;
27856 wxListItem *arg1 = (wxListItem *) 0 ;
27857 int arg2 ;
27858 void *argp1 = 0 ;
27859 int res1 = 0 ;
27860 int val2 ;
27861 int ecode2 = 0 ;
27862 PyObject *swig_obj[2] ;
27863
27864 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27866 if (!SWIG_IsOK(res1)) {
27867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27868 }
27869 arg1 = reinterpret_cast< wxListItem * >(argp1);
27870 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27871 if (!SWIG_IsOK(ecode2)) {
27872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27873 }
27874 arg2 = static_cast< int >(val2);
27875 if (arg1) (arg1)->m_col = arg2;
27876
27877 resultobj = SWIG_Py_Void();
27878 return resultobj;
27879fail:
27880 return NULL;
d55e5bfc
RD
27881}
27882
27883
554f62e9
RD
27884SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27885 PyObject *resultobj = 0;
27886 wxListItem *arg1 = (wxListItem *) 0 ;
27887 int result;
27888 void *argp1 = 0 ;
27889 int res1 = 0 ;
27890 PyObject *swig_obj[1] ;
27891
27892 if (!args) SWIG_fail;
27893 swig_obj[0] = args;
27894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27895 if (!SWIG_IsOK(res1)) {
27896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27897 }
27898 arg1 = reinterpret_cast< wxListItem * >(argp1);
27899 result = (int) ((arg1)->m_col);
27900 resultobj = SWIG_From_int(static_cast< int >(result));
27901 return resultobj;
27902fail:
27903 return NULL;
27904}
27905
27906
27907SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27908 PyObject *resultobj = 0;
27909 wxListItem *arg1 = (wxListItem *) 0 ;
27910 long arg2 ;
27911 void *argp1 = 0 ;
27912 int res1 = 0 ;
27913 long val2 ;
27914 int ecode2 = 0 ;
27915 PyObject *swig_obj[2] ;
27916
27917 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27919 if (!SWIG_IsOK(res1)) {
27920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27921 }
27922 arg1 = reinterpret_cast< wxListItem * >(argp1);
27923 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27924 if (!SWIG_IsOK(ecode2)) {
27925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27926 }
27927 arg2 = static_cast< long >(val2);
27928 if (arg1) (arg1)->m_state = arg2;
27929
27930 resultobj = SWIG_Py_Void();
27931 return resultobj;
27932fail:
27933 return NULL;
d55e5bfc
RD
27934}
27935
27936
554f62e9
RD
27937SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27938 PyObject *resultobj = 0;
27939 wxListItem *arg1 = (wxListItem *) 0 ;
27940 long result;
27941 void *argp1 = 0 ;
27942 int res1 = 0 ;
27943 PyObject *swig_obj[1] ;
27944
27945 if (!args) SWIG_fail;
27946 swig_obj[0] = args;
27947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27948 if (!SWIG_IsOK(res1)) {
27949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27950 }
27951 arg1 = reinterpret_cast< wxListItem * >(argp1);
27952 result = (long) ((arg1)->m_state);
27953 resultobj = SWIG_From_long(static_cast< long >(result));
27954 return resultobj;
27955fail:
27956 return NULL;
27957}
27958
27959
27960SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27961 PyObject *resultobj = 0;
27962 wxListItem *arg1 = (wxListItem *) 0 ;
27963 long arg2 ;
27964 void *argp1 = 0 ;
27965 int res1 = 0 ;
27966 long val2 ;
27967 int ecode2 = 0 ;
27968 PyObject *swig_obj[2] ;
27969
27970 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27972 if (!SWIG_IsOK(res1)) {
27973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27974 }
27975 arg1 = reinterpret_cast< wxListItem * >(argp1);
27976 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27977 if (!SWIG_IsOK(ecode2)) {
27978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27979 }
27980 arg2 = static_cast< long >(val2);
27981 if (arg1) (arg1)->m_stateMask = arg2;
27982
27983 resultobj = SWIG_Py_Void();
27984 return resultobj;
27985fail:
27986 return NULL;
7e08d4ef
RD
27987}
27988
27989
554f62e9
RD
27990SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27991 PyObject *resultobj = 0;
27992 wxListItem *arg1 = (wxListItem *) 0 ;
27993 long result;
27994 void *argp1 = 0 ;
27995 int res1 = 0 ;
27996 PyObject *swig_obj[1] ;
27997
27998 if (!args) SWIG_fail;
27999 swig_obj[0] = args;
28000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28001 if (!SWIG_IsOK(res1)) {
28002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28003 }
28004 arg1 = reinterpret_cast< wxListItem * >(argp1);
28005 result = (long) ((arg1)->m_stateMask);
28006 resultobj = SWIG_From_long(static_cast< long >(result));
28007 return resultobj;
28008fail:
28009 return NULL;
28010}
28011
28012
28013SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28014 PyObject *resultobj = 0;
28015 wxListItem *arg1 = (wxListItem *) 0 ;
28016 wxString *arg2 = (wxString *) 0 ;
28017 void *argp1 = 0 ;
28018 int res1 = 0 ;
28019 bool temp2 = false ;
28020 PyObject *swig_obj[2] ;
28021
28022 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
28023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28024 if (!SWIG_IsOK(res1)) {
28025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28026 }
28027 arg1 = reinterpret_cast< wxListItem * >(argp1);
28028 {
28029 arg2 = wxString_in_helper(swig_obj[1]);
28030 if (arg2 == NULL) SWIG_fail;
28031 temp2 = true;
28032 }
28033 if (arg1) (arg1)->m_text = *arg2;
28034
28035 resultobj = SWIG_Py_Void();
28036 {
28037 if (temp2)
28038 delete arg2;
28039 }
28040 return resultobj;
28041fail:
28042 {
28043 if (temp2)
28044 delete arg2;
28045 }
28046 return NULL;
7e08d4ef
RD
28047}
28048
28049
554f62e9
RD
28050SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28051 PyObject *resultobj = 0;
28052 wxListItem *arg1 = (wxListItem *) 0 ;
28053 wxString *result = 0 ;
28054 void *argp1 = 0 ;
28055 int res1 = 0 ;
28056 PyObject *swig_obj[1] ;
28057
28058 if (!args) SWIG_fail;
28059 swig_obj[0] = args;
28060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28061 if (!SWIG_IsOK(res1)) {
28062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28063 }
28064 arg1 = reinterpret_cast< wxListItem * >(argp1);
28065 result = (wxString *)& ((arg1)->m_text);
28066 {
28067#if wxUSE_UNICODE
28068 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28069#else
28070 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28071#endif
28072 }
28073 return resultobj;
28074fail:
28075 return NULL;
7e08d4ef
RD
28076}
28077
28078
554f62e9
RD
28079SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28080 PyObject *resultobj = 0;
28081 wxListItem *arg1 = (wxListItem *) 0 ;
28082 int arg2 ;
28083 void *argp1 = 0 ;
28084 int res1 = 0 ;
28085 int val2 ;
28086 int ecode2 = 0 ;
28087 PyObject *swig_obj[2] ;
28088
28089 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
28090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28091 if (!SWIG_IsOK(res1)) {
28092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28093 }
28094 arg1 = reinterpret_cast< wxListItem * >(argp1);
28095 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28096 if (!SWIG_IsOK(ecode2)) {
28097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
28098 }
28099 arg2 = static_cast< int >(val2);
28100 if (arg1) (arg1)->m_image = arg2;
28101
28102 resultobj = SWIG_Py_Void();
28103 return resultobj;
28104fail:
28105 return NULL;
7e08d4ef
RD
28106}
28107
28108
554f62e9
RD
28109SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28110 PyObject *resultobj = 0;
28111 wxListItem *arg1 = (wxListItem *) 0 ;
28112 int result;
28113 void *argp1 = 0 ;
28114 int res1 = 0 ;
28115 PyObject *swig_obj[1] ;
28116
28117 if (!args) SWIG_fail;
28118 swig_obj[0] = args;
28119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28120 if (!SWIG_IsOK(res1)) {
28121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28122 }
28123 arg1 = reinterpret_cast< wxListItem * >(argp1);
28124 result = (int) ((arg1)->m_image);
28125 resultobj = SWIG_From_int(static_cast< int >(result));
28126 return resultobj;
28127fail:
28128 return NULL;
28129}
28130
28131
28132SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28133 PyObject *resultobj = 0;
28134 wxListItem *arg1 = (wxListItem *) 0 ;
28135 long arg2 ;
28136 void *argp1 = 0 ;
28137 int res1 = 0 ;
28138 long val2 ;
28139 int ecode2 = 0 ;
28140 PyObject *swig_obj[2] ;
28141
28142 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
28143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28144 if (!SWIG_IsOK(res1)) {
28145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28146 }
28147 arg1 = reinterpret_cast< wxListItem * >(argp1);
28148 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28149 if (!SWIG_IsOK(ecode2)) {
28150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
28151 }
28152 arg2 = static_cast< long >(val2);
28153 if (arg1) (arg1)->m_data = arg2;
28154
28155 resultobj = SWIG_Py_Void();
28156 return resultobj;
28157fail:
28158 return NULL;
7e08d4ef
RD
28159}
28160
28161
554f62e9
RD
28162SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28163 PyObject *resultobj = 0;
28164 wxListItem *arg1 = (wxListItem *) 0 ;
28165 long result;
28166 void *argp1 = 0 ;
28167 int res1 = 0 ;
28168 PyObject *swig_obj[1] ;
28169
28170 if (!args) SWIG_fail;
28171 swig_obj[0] = args;
28172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28173 if (!SWIG_IsOK(res1)) {
28174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28175 }
28176 arg1 = reinterpret_cast< wxListItem * >(argp1);
28177 result = (long) ((arg1)->m_data);
28178 resultobj = SWIG_From_long(static_cast< long >(result));
28179 return resultobj;
28180fail:
28181 return NULL;
28182}
28183
28184
28185SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28186 PyObject *resultobj = 0;
28187 wxListItem *arg1 = (wxListItem *) 0 ;
28188 int arg2 ;
28189 void *argp1 = 0 ;
28190 int res1 = 0 ;
28191 int val2 ;
28192 int ecode2 = 0 ;
28193 PyObject *swig_obj[2] ;
28194
28195 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
28196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28197 if (!SWIG_IsOK(res1)) {
28198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28199 }
28200 arg1 = reinterpret_cast< wxListItem * >(argp1);
28201 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28202 if (!SWIG_IsOK(ecode2)) {
28203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
28204 }
28205 arg2 = static_cast< int >(val2);
28206 if (arg1) (arg1)->m_format = arg2;
28207
28208 resultobj = SWIG_Py_Void();
28209 return resultobj;
28210fail:
28211 return NULL;
d55e5bfc
RD
28212}
28213
28214
554f62e9
RD
28215SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28216 PyObject *resultobj = 0;
28217 wxListItem *arg1 = (wxListItem *) 0 ;
28218 int result;
28219 void *argp1 = 0 ;
28220 int res1 = 0 ;
28221 PyObject *swig_obj[1] ;
28222
28223 if (!args) SWIG_fail;
28224 swig_obj[0] = args;
28225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28226 if (!SWIG_IsOK(res1)) {
28227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28228 }
28229 arg1 = reinterpret_cast< wxListItem * >(argp1);
28230 result = (int) ((arg1)->m_format);
28231 resultobj = SWIG_From_int(static_cast< int >(result));
28232 return resultobj;
28233fail:
28234 return NULL;
28235}
28236
28237
28238SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28239 PyObject *resultobj = 0;
28240 wxListItem *arg1 = (wxListItem *) 0 ;
28241 int arg2 ;
28242 void *argp1 = 0 ;
28243 int res1 = 0 ;
28244 int val2 ;
28245 int ecode2 = 0 ;
28246 PyObject *swig_obj[2] ;
28247
28248 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
28249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28250 if (!SWIG_IsOK(res1)) {
28251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28252 }
28253 arg1 = reinterpret_cast< wxListItem * >(argp1);
28254 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28255 if (!SWIG_IsOK(ecode2)) {
28256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28257 }
28258 arg2 = static_cast< int >(val2);
28259 if (arg1) (arg1)->m_width = arg2;
28260
28261 resultobj = SWIG_Py_Void();
28262 return resultobj;
28263fail:
28264 return NULL;
d55e5bfc
RD
28265}
28266
28267
554f62e9
RD
28268SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28269 PyObject *resultobj = 0;
28270 wxListItem *arg1 = (wxListItem *) 0 ;
28271 int result;
28272 void *argp1 = 0 ;
28273 int res1 = 0 ;
28274 PyObject *swig_obj[1] ;
28275
28276 if (!args) SWIG_fail;
28277 swig_obj[0] = args;
28278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28279 if (!SWIG_IsOK(res1)) {
28280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28281 }
28282 arg1 = reinterpret_cast< wxListItem * >(argp1);
28283 result = (int) ((arg1)->m_width);
28284 resultobj = SWIG_From_int(static_cast< int >(result));
28285 return resultobj;
28286fail:
28287 return NULL;
28288}
28289
28290
28291SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28292 PyObject *obj;
28293 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28294 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28295 return SWIG_Py_Void();
28296}
28297
28298SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28299 return SWIG_Python_InitShadowInstance(args);
28300}
28301
28302SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28303 PyObject *resultobj = 0;
28304 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28305 int arg2 = (int) 0 ;
28306 wxListEvent *result = 0 ;
28307 int val1 ;
28308 int ecode1 = 0 ;
28309 int val2 ;
28310 int ecode2 = 0 ;
28311 PyObject * obj0 = 0 ;
28312 PyObject * obj1 = 0 ;
28313 char * kwnames[] = {
28314 (char *) "commandType",(char *) "id", NULL
28315 };
28316
28317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28318 if (obj0) {
28319 ecode1 = SWIG_AsVal_int(obj0, &val1);
28320 if (!SWIG_IsOK(ecode1)) {
28321 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28322 }
28323 arg1 = static_cast< wxEventType >(val1);
28324 }
28325 if (obj1) {
28326 ecode2 = SWIG_AsVal_int(obj1, &val2);
28327 if (!SWIG_IsOK(ecode2)) {
28328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28329 }
28330 arg2 = static_cast< int >(val2);
28331 }
28332 {
28333 PyThreadState* __tstate = wxPyBeginAllowThreads();
28334 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28335 wxPyEndAllowThreads(__tstate);
28336 if (PyErr_Occurred()) SWIG_fail;
28337 }
28338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28339 return resultobj;
28340fail:
28341 return NULL;
28342}
28343
28344
28345SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28346 PyObject *resultobj = 0;
28347 wxListEvent *arg1 = (wxListEvent *) 0 ;
28348 int arg2 ;
28349 void *argp1 = 0 ;
28350 int res1 = 0 ;
28351 int val2 ;
28352 int ecode2 = 0 ;
28353 PyObject *swig_obj[2] ;
28354
28355 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28357 if (!SWIG_IsOK(res1)) {
28358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28359 }
28360 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28361 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28362 if (!SWIG_IsOK(ecode2)) {
28363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28364 }
28365 arg2 = static_cast< int >(val2);
28366 if (arg1) (arg1)->m_code = arg2;
28367
28368 resultobj = SWIG_Py_Void();
28369 return resultobj;
28370fail:
28371 return NULL;
d55e5bfc
RD
28372}
28373
28374
554f62e9
RD
28375SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28376 PyObject *resultobj = 0;
28377 wxListEvent *arg1 = (wxListEvent *) 0 ;
28378 int result;
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_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28388 }
28389 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28390 result = (int) ((arg1)->m_code);
28391 resultobj = SWIG_From_int(static_cast< int >(result));
28392 return resultobj;
28393fail:
28394 return NULL;
28395}
28396
28397
28398SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28399 PyObject *resultobj = 0;
28400 wxListEvent *arg1 = (wxListEvent *) 0 ;
28401 long arg2 ;
28402 void *argp1 = 0 ;
28403 int res1 = 0 ;
28404 long val2 ;
28405 int ecode2 = 0 ;
28406 PyObject *swig_obj[2] ;
28407
28408 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28410 if (!SWIG_IsOK(res1)) {
28411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28412 }
28413 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28414 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28415 if (!SWIG_IsOK(ecode2)) {
28416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28417 }
28418 arg2 = static_cast< long >(val2);
28419 if (arg1) (arg1)->m_oldItemIndex = arg2;
28420
28421 resultobj = SWIG_Py_Void();
28422 return resultobj;
28423fail:
28424 return NULL;
d55e5bfc
RD
28425}
28426
28427
554f62e9
RD
28428SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(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_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28441 }
28442 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28443 result = (long) ((arg1)->m_oldItemIndex);
28444 resultobj = SWIG_From_long(static_cast< long >(result));
28445 return resultobj;
28446fail:
28447 return NULL;
28448}
28449
28450
28451SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28452 PyObject *resultobj = 0;
28453 wxListEvent *arg1 = (wxListEvent *) 0 ;
28454 long arg2 ;
28455 void *argp1 = 0 ;
28456 int res1 = 0 ;
28457 long val2 ;
28458 int ecode2 = 0 ;
28459 PyObject *swig_obj[2] ;
28460
28461 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28463 if (!SWIG_IsOK(res1)) {
28464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28465 }
28466 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28467 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28468 if (!SWIG_IsOK(ecode2)) {
28469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28470 }
28471 arg2 = static_cast< long >(val2);
28472 if (arg1) (arg1)->m_itemIndex = arg2;
28473
28474 resultobj = SWIG_Py_Void();
28475 return resultobj;
28476fail:
28477 return NULL;
d55e5bfc
RD
28478}
28479
28480
554f62e9
RD
28481SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28482 PyObject *resultobj = 0;
28483 wxListEvent *arg1 = (wxListEvent *) 0 ;
28484 long result;
28485 void *argp1 = 0 ;
28486 int res1 = 0 ;
28487 PyObject *swig_obj[1] ;
28488
28489 if (!args) SWIG_fail;
28490 swig_obj[0] = args;
28491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28492 if (!SWIG_IsOK(res1)) {
28493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28494 }
28495 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28496 result = (long) ((arg1)->m_itemIndex);
28497 resultobj = SWIG_From_long(static_cast< long >(result));
28498 return resultobj;
28499fail:
28500 return NULL;
28501}
28502
28503
28504SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28505 PyObject *resultobj = 0;
28506 wxListEvent *arg1 = (wxListEvent *) 0 ;
28507 int arg2 ;
28508 void *argp1 = 0 ;
28509 int res1 = 0 ;
28510 int val2 ;
28511 int ecode2 = 0 ;
28512 PyObject *swig_obj[2] ;
28513
28514 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28516 if (!SWIG_IsOK(res1)) {
28517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28518 }
28519 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28520 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28521 if (!SWIG_IsOK(ecode2)) {
28522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28523 }
28524 arg2 = static_cast< int >(val2);
28525 if (arg1) (arg1)->m_col = arg2;
28526
28527 resultobj = SWIG_Py_Void();
28528 return resultobj;
28529fail:
28530 return NULL;
d55e5bfc
RD
28531}
28532
28533
554f62e9
RD
28534SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28535 PyObject *resultobj = 0;
28536 wxListEvent *arg1 = (wxListEvent *) 0 ;
28537 int result;
28538 void *argp1 = 0 ;
28539 int res1 = 0 ;
28540 PyObject *swig_obj[1] ;
28541
28542 if (!args) SWIG_fail;
28543 swig_obj[0] = args;
28544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28545 if (!SWIG_IsOK(res1)) {
28546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28547 }
28548 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28549 result = (int) ((arg1)->m_col);
28550 resultobj = SWIG_From_int(static_cast< int >(result));
28551 return resultobj;
28552fail:
28553 return NULL;
28554}
28555
28556
28557SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28558 PyObject *resultobj = 0;
28559 wxListEvent *arg1 = (wxListEvent *) 0 ;
28560 wxPoint *arg2 = (wxPoint *) 0 ;
28561 void *argp1 = 0 ;
28562 int res1 = 0 ;
28563 void *argp2 = 0 ;
28564 int res2 = 0 ;
28565 PyObject *swig_obj[2] ;
28566
28567 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28569 if (!SWIG_IsOK(res1)) {
28570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28571 }
28572 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28573 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28574 if (!SWIG_IsOK(res2)) {
28575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28576 }
28577 arg2 = reinterpret_cast< wxPoint * >(argp2);
28578 if (arg1) (arg1)->m_pointDrag = *arg2;
28579
28580 resultobj = SWIG_Py_Void();
28581 return resultobj;
28582fail:
28583 return NULL;
d55e5bfc
RD
28584}
28585
28586
554f62e9
RD
28587SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28588 PyObject *resultobj = 0;
28589 wxListEvent *arg1 = (wxListEvent *) 0 ;
28590 wxPoint *result = 0 ;
28591 void *argp1 = 0 ;
28592 int res1 = 0 ;
28593 PyObject *swig_obj[1] ;
28594
28595 if (!args) SWIG_fail;
28596 swig_obj[0] = args;
28597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28598 if (!SWIG_IsOK(res1)) {
28599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28600 }
28601 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28602 result = (wxPoint *)& ((arg1)->m_pointDrag);
28603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28604 return resultobj;
28605fail:
28606 return NULL;
28607}
28608
28609
28610SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28611 PyObject *resultobj = 0;
28612 wxListEvent *arg1 = (wxListEvent *) 0 ;
28613 wxListItem *result = 0 ;
28614 void *argp1 = 0 ;
28615 int res1 = 0 ;
28616 PyObject *swig_obj[1] ;
28617
28618 if (!args) SWIG_fail;
28619 swig_obj[0] = args;
28620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28621 if (!SWIG_IsOK(res1)) {
28622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28623 }
28624 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28625 result = (wxListItem *)& ((arg1)->m_item);
28626 {
3ecece7e 28627 resultobj = wxPyMake_wxObject(result, 0);
554f62e9
RD
28628 }
28629 return resultobj;
28630fail:
28631 return NULL;
f20a2e1f
RD
28632}
28633
28634
554f62e9
RD
28635SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28636 PyObject *resultobj = 0;
28637 wxListEvent *arg1 = (wxListEvent *) 0 ;
28638 int result;
28639 void *argp1 = 0 ;
28640 int res1 = 0 ;
28641 PyObject *swig_obj[1] ;
28642
28643 if (!args) SWIG_fail;
28644 swig_obj[0] = args;
28645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28646 if (!SWIG_IsOK(res1)) {
28647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28648 }
28649 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28650 {
28651 PyThreadState* __tstate = wxPyBeginAllowThreads();
28652 result = (int)(arg1)->GetKeyCode();
28653 wxPyEndAllowThreads(__tstate);
28654 if (PyErr_Occurred()) SWIG_fail;
28655 }
28656 resultobj = SWIG_From_int(static_cast< int >(result));
28657 return resultobj;
28658fail:
28659 return NULL;
d55e5bfc
RD
28660}
28661
28662
554f62e9
RD
28663SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28664 PyObject *resultobj = 0;
28665 wxListEvent *arg1 = (wxListEvent *) 0 ;
28666 long result;
28667 void *argp1 = 0 ;
28668 int res1 = 0 ;
28669 PyObject *swig_obj[1] ;
28670
28671 if (!args) SWIG_fail;
28672 swig_obj[0] = args;
28673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28674 if (!SWIG_IsOK(res1)) {
28675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28676 }
28677 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28678 {
28679 PyThreadState* __tstate = wxPyBeginAllowThreads();
28680 result = (long)(arg1)->GetIndex();
28681 wxPyEndAllowThreads(__tstate);
28682 if (PyErr_Occurred()) SWIG_fail;
28683 }
28684 resultobj = SWIG_From_long(static_cast< long >(result));
28685 return resultobj;
28686fail:
28687 return NULL;
d55e5bfc
RD
28688}
28689
28690
554f62e9
RD
28691SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28692 PyObject *resultobj = 0;
28693 wxListEvent *arg1 = (wxListEvent *) 0 ;
28694 int result;
28695 void *argp1 = 0 ;
28696 int res1 = 0 ;
28697 PyObject *swig_obj[1] ;
28698
28699 if (!args) SWIG_fail;
28700 swig_obj[0] = args;
28701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28702 if (!SWIG_IsOK(res1)) {
28703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28704 }
28705 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28706 {
28707 PyThreadState* __tstate = wxPyBeginAllowThreads();
28708 result = (int)(arg1)->GetColumn();
28709 wxPyEndAllowThreads(__tstate);
28710 if (PyErr_Occurred()) SWIG_fail;
28711 }
28712 resultobj = SWIG_From_int(static_cast< int >(result));
28713 return resultobj;
28714fail:
28715 return NULL;
d55e5bfc
RD
28716}
28717
28718
554f62e9
RD
28719SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28720 PyObject *resultobj = 0;
28721 wxListEvent *arg1 = (wxListEvent *) 0 ;
28722 wxPoint result;
28723 void *argp1 = 0 ;
28724 int res1 = 0 ;
28725 PyObject *swig_obj[1] ;
28726
28727 if (!args) SWIG_fail;
28728 swig_obj[0] = args;
28729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28730 if (!SWIG_IsOK(res1)) {
28731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28732 }
28733 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28734 {
28735 PyThreadState* __tstate = wxPyBeginAllowThreads();
28736 result = (arg1)->GetPoint();
28737 wxPyEndAllowThreads(__tstate);
28738 if (PyErr_Occurred()) SWIG_fail;
28739 }
28740 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28741 return resultobj;
28742fail:
28743 return NULL;
d55e5bfc
RD
28744}
28745
28746
554f62e9
RD
28747SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28748 PyObject *resultobj = 0;
28749 wxListEvent *arg1 = (wxListEvent *) 0 ;
28750 wxString *result = 0 ;
28751 void *argp1 = 0 ;
28752 int res1 = 0 ;
28753 PyObject *swig_obj[1] ;
28754
28755 if (!args) SWIG_fail;
28756 swig_obj[0] = args;
28757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28758 if (!SWIG_IsOK(res1)) {
28759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28760 }
28761 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28762 {
28763 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28764 {
554f62e9
RD
28765 wxString const &_result_ref = (arg1)->GetLabel();
28766 result = (wxString *) &_result_ref;
d55e5bfc 28767 }
554f62e9
RD
28768 wxPyEndAllowThreads(__tstate);
28769 if (PyErr_Occurred()) SWIG_fail;
28770 }
28771 {
28772#if wxUSE_UNICODE
28773 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28774#else
28775 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28776#endif
28777 }
28778 return resultobj;
28779fail:
28780 return NULL;
d55e5bfc
RD
28781}
28782
28783
554f62e9
RD
28784SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28785 PyObject *resultobj = 0;
28786 wxListEvent *arg1 = (wxListEvent *) 0 ;
28787 wxString *result = 0 ;
28788 void *argp1 = 0 ;
28789 int res1 = 0 ;
28790 PyObject *swig_obj[1] ;
28791
28792 if (!args) SWIG_fail;
28793 swig_obj[0] = args;
28794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28795 if (!SWIG_IsOK(res1)) {
28796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28797 }
28798 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28799 {
28800 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28801 {
554f62e9
RD
28802 wxString const &_result_ref = (arg1)->GetText();
28803 result = (wxString *) &_result_ref;
d55e5bfc 28804 }
554f62e9
RD
28805 wxPyEndAllowThreads(__tstate);
28806 if (PyErr_Occurred()) SWIG_fail;
28807 }
28808 {
28809#if wxUSE_UNICODE
28810 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28811#else
28812 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28813#endif
28814 }
28815 return resultobj;
28816fail:
28817 return NULL;
d55e5bfc
RD
28818}
28819
28820
554f62e9
RD
28821SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28822 PyObject *resultobj = 0;
28823 wxListEvent *arg1 = (wxListEvent *) 0 ;
28824 int result;
28825 void *argp1 = 0 ;
28826 int res1 = 0 ;
28827 PyObject *swig_obj[1] ;
28828
28829 if (!args) SWIG_fail;
28830 swig_obj[0] = args;
28831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28832 if (!SWIG_IsOK(res1)) {
28833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28834 }
28835 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28836 {
28837 PyThreadState* __tstate = wxPyBeginAllowThreads();
28838 result = (int)(arg1)->GetImage();
28839 wxPyEndAllowThreads(__tstate);
28840 if (PyErr_Occurred()) SWIG_fail;
28841 }
28842 resultobj = SWIG_From_int(static_cast< int >(result));
28843 return resultobj;
28844fail:
28845 return NULL;
d55e5bfc
RD
28846}
28847
28848
554f62e9
RD
28849SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28850 PyObject *resultobj = 0;
28851 wxListEvent *arg1 = (wxListEvent *) 0 ;
28852 long result;
28853 void *argp1 = 0 ;
28854 int res1 = 0 ;
28855 PyObject *swig_obj[1] ;
28856
28857 if (!args) SWIG_fail;
28858 swig_obj[0] = args;
28859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28860 if (!SWIG_IsOK(res1)) {
28861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28862 }
28863 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28864 {
28865 PyThreadState* __tstate = wxPyBeginAllowThreads();
28866 result = (long)(arg1)->GetData();
28867 wxPyEndAllowThreads(__tstate);
28868 if (PyErr_Occurred()) SWIG_fail;
28869 }
28870 resultobj = SWIG_From_long(static_cast< long >(result));
28871 return resultobj;
28872fail:
28873 return NULL;
d55e5bfc
RD
28874}
28875
28876
554f62e9
RD
28877SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28878 PyObject *resultobj = 0;
28879 wxListEvent *arg1 = (wxListEvent *) 0 ;
28880 long result;
28881 void *argp1 = 0 ;
28882 int res1 = 0 ;
28883 PyObject *swig_obj[1] ;
28884
28885 if (!args) SWIG_fail;
28886 swig_obj[0] = args;
28887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28888 if (!SWIG_IsOK(res1)) {
28889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28890 }
28891 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28892 {
28893 PyThreadState* __tstate = wxPyBeginAllowThreads();
28894 result = (long)(arg1)->GetMask();
28895 wxPyEndAllowThreads(__tstate);
28896 if (PyErr_Occurred()) SWIG_fail;
28897 }
28898 resultobj = SWIG_From_long(static_cast< long >(result));
28899 return resultobj;
28900fail:
28901 return NULL;
d55e5bfc
RD
28902}
28903
28904
554f62e9
RD
28905SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28906 PyObject *resultobj = 0;
28907 wxListEvent *arg1 = (wxListEvent *) 0 ;
28908 wxListItem *result = 0 ;
28909 void *argp1 = 0 ;
28910 int res1 = 0 ;
28911 PyObject *swig_obj[1] ;
28912
28913 if (!args) SWIG_fail;
28914 swig_obj[0] = args;
28915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28916 if (!SWIG_IsOK(res1)) {
28917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28918 }
28919 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28920 {
28921 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 28922 {
554f62e9
RD
28923 wxListItem const &_result_ref = (arg1)->GetItem();
28924 result = (wxListItem *) &_result_ref;
093d3ff1 28925 }
554f62e9
RD
28926 wxPyEndAllowThreads(__tstate);
28927 if (PyErr_Occurred()) SWIG_fail;
28928 }
28929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28930 return resultobj;
28931fail:
28932 return NULL;
d55e5bfc
RD
28933}
28934
28935
554f62e9
RD
28936SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28937 PyObject *resultobj = 0;
28938 wxListEvent *arg1 = (wxListEvent *) 0 ;
28939 long result;
28940 void *argp1 = 0 ;
28941 int res1 = 0 ;
28942 PyObject *swig_obj[1] ;
28943
28944 if (!args) SWIG_fail;
28945 swig_obj[0] = args;
28946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28947 if (!SWIG_IsOK(res1)) {
28948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28949 }
28950 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28951 {
28952 PyThreadState* __tstate = wxPyBeginAllowThreads();
28953 result = (long)(arg1)->GetCacheFrom();
28954 wxPyEndAllowThreads(__tstate);
28955 if (PyErr_Occurred()) SWIG_fail;
28956 }
28957 resultobj = SWIG_From_long(static_cast< long >(result));
28958 return resultobj;
28959fail:
28960 return NULL;
d55e5bfc
RD
28961}
28962
28963
554f62e9
RD
28964SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28965 PyObject *resultobj = 0;
28966 wxListEvent *arg1 = (wxListEvent *) 0 ;
28967 long result;
28968 void *argp1 = 0 ;
28969 int res1 = 0 ;
28970 PyObject *swig_obj[1] ;
28971
28972 if (!args) SWIG_fail;
28973 swig_obj[0] = args;
28974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28975 if (!SWIG_IsOK(res1)) {
28976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28977 }
28978 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28979 {
28980 PyThreadState* __tstate = wxPyBeginAllowThreads();
28981 result = (long)(arg1)->GetCacheTo();
28982 wxPyEndAllowThreads(__tstate);
28983 if (PyErr_Occurred()) SWIG_fail;
28984 }
28985 resultobj = SWIG_From_long(static_cast< long >(result));
28986 return resultobj;
28987fail:
28988 return NULL;
091fdbfa
RD
28989}
28990
28991
554f62e9
RD
28992SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28993 PyObject *resultobj = 0;
28994 wxListEvent *arg1 = (wxListEvent *) 0 ;
28995 bool result;
28996 void *argp1 = 0 ;
28997 int res1 = 0 ;
28998 PyObject *swig_obj[1] ;
28999
29000 if (!args) SWIG_fail;
29001 swig_obj[0] = args;
29002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29003 if (!SWIG_IsOK(res1)) {
29004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
29005 }
29006 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29007 {
29008 PyThreadState* __tstate = wxPyBeginAllowThreads();
29009 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
29010 wxPyEndAllowThreads(__tstate);
29011 if (PyErr_Occurred()) SWIG_fail;
29012 }
29013 {
29014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29015 }
29016 return resultobj;
29017fail:
29018 return NULL;
29019}
29020
29021
29022SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29023 PyObject *resultobj = 0;
29024 wxListEvent *arg1 = (wxListEvent *) 0 ;
29025 bool arg2 ;
29026 void *argp1 = 0 ;
29027 int res1 = 0 ;
29028 bool val2 ;
29029 int ecode2 = 0 ;
29030 PyObject * obj0 = 0 ;
29031 PyObject * obj1 = 0 ;
29032 char * kwnames[] = {
29033 (char *) "self",(char *) "editCancelled", NULL
29034 };
29035
29036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
29037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29038 if (!SWIG_IsOK(res1)) {
29039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
29040 }
29041 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29042 ecode2 = SWIG_AsVal_bool(obj1, &val2);
29043 if (!SWIG_IsOK(ecode2)) {
29044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
29045 }
29046 arg2 = static_cast< bool >(val2);
29047 {
29048 PyThreadState* __tstate = wxPyBeginAllowThreads();
29049 (arg1)->SetEditCanceled(arg2);
29050 wxPyEndAllowThreads(__tstate);
29051 if (PyErr_Occurred()) SWIG_fail;
29052 }
29053 resultobj = SWIG_Py_Void();
29054 return resultobj;
29055fail:
29056 return NULL;
29057}
29058
29059
29060SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29061 PyObject *obj;
29062 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29063 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
29064 return SWIG_Py_Void();
29065}
29066
29067SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29068 return SWIG_Python_InitShadowInstance(args);
29069}
29070
29071SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29072 PyObject *resultobj = 0;
29073 wxWindow *arg1 = (wxWindow *) 0 ;
29074 int arg2 = (int) -1 ;
29075 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29076 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29077 wxSize const &arg4_defvalue = wxDefaultSize ;
29078 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29079 long arg5 = (long) wxLC_ICON ;
29080 wxValidator const &arg6_defvalue = wxDefaultValidator ;
29081 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
29082 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
29083 wxString *arg7 = (wxString *) &arg7_defvalue ;
29084 wxPyListCtrl *result = 0 ;
29085 void *argp1 = 0 ;
29086 int res1 = 0 ;
29087 int val2 ;
29088 int ecode2 = 0 ;
29089 wxPoint temp3 ;
29090 wxSize temp4 ;
29091 long val5 ;
29092 int ecode5 = 0 ;
29093 void *argp6 = 0 ;
29094 int res6 = 0 ;
29095 bool temp7 = false ;
29096 PyObject * obj0 = 0 ;
29097 PyObject * obj1 = 0 ;
29098 PyObject * obj2 = 0 ;
29099 PyObject * obj3 = 0 ;
29100 PyObject * obj4 = 0 ;
29101 PyObject * obj5 = 0 ;
29102 PyObject * obj6 = 0 ;
29103 char * kwnames[] = {
29104 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29105 };
29106
29107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
29109 if (!SWIG_IsOK(res1)) {
29110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
29111 }
29112 arg1 = reinterpret_cast< wxWindow * >(argp1);
29113 if (obj1) {
29114 ecode2 = SWIG_AsVal_int(obj1, &val2);
29115 if (!SWIG_IsOK(ecode2)) {
29116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
29117 }
29118 arg2 = static_cast< int >(val2);
29119 }
29120 if (obj2) {
f20a2e1f 29121 {
554f62e9
RD
29122 arg3 = &temp3;
29123 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 29124 }
554f62e9
RD
29125 }
29126 if (obj3) {
d55e5bfc 29127 {
554f62e9
RD
29128 arg4 = &temp4;
29129 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 29130 }
554f62e9
RD
29131 }
29132 if (obj4) {
29133 ecode5 = SWIG_AsVal_long(obj4, &val5);
29134 if (!SWIG_IsOK(ecode5)) {
29135 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
29136 }
29137 arg5 = static_cast< long >(val5);
29138 }
29139 if (obj5) {
29140 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
29141 if (!SWIG_IsOK(res6)) {
29142 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 29143 }
554f62e9
RD
29144 if (!argp6) {
29145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 29146 }
554f62e9
RD
29147 arg6 = reinterpret_cast< wxValidator * >(argp6);
29148 }
29149 if (obj6) {
d55e5bfc 29150 {
554f62e9
RD
29151 arg7 = wxString_in_helper(obj6);
29152 if (arg7 == NULL) SWIG_fail;
29153 temp7 = true;
d55e5bfc 29154 }
554f62e9
RD
29155 }
29156 {
29157 if (!wxPyCheckForApp()) SWIG_fail;
29158 PyThreadState* __tstate = wxPyBeginAllowThreads();
29159 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29160 wxPyEndAllowThreads(__tstate);
29161 if (PyErr_Occurred()) SWIG_fail;
29162 }
29163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
29164 {
29165 if (temp7)
29166 delete arg7;
29167 }
29168 return resultobj;
29169fail:
29170 {
29171 if (temp7)
29172 delete arg7;
29173 }
29174 return NULL;
d55e5bfc
RD
29175}
29176
29177
554f62e9
RD
29178SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29179 PyObject *resultobj = 0;
29180 wxPyListCtrl *result = 0 ;
29181
29182 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
29183 {
29184 if (!wxPyCheckForApp()) SWIG_fail;
29185 PyThreadState* __tstate = wxPyBeginAllowThreads();
29186 result = (wxPyListCtrl *)new wxPyListCtrl();
29187 wxPyEndAllowThreads(__tstate);
29188 if (PyErr_Occurred()) SWIG_fail;
29189 }
29190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
29191 return resultobj;
29192fail:
29193 return NULL;
29194}
29195
29196
29197SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29198 PyObject *resultobj = 0;
29199 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29200 wxWindow *arg2 = (wxWindow *) 0 ;
29201 int arg3 = (int) -1 ;
29202 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29203 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29204 wxSize const &arg5_defvalue = wxDefaultSize ;
29205 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29206 long arg6 = (long) wxLC_ICON ;
29207 wxValidator const &arg7_defvalue = wxDefaultValidator ;
29208 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
29209 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
29210 wxString *arg8 = (wxString *) &arg8_defvalue ;
29211 bool result;
29212 void *argp1 = 0 ;
29213 int res1 = 0 ;
29214 void *argp2 = 0 ;
29215 int res2 = 0 ;
29216 int val3 ;
29217 int ecode3 = 0 ;
29218 wxPoint temp4 ;
29219 wxSize temp5 ;
29220 long val6 ;
29221 int ecode6 = 0 ;
29222 void *argp7 = 0 ;
29223 int res7 = 0 ;
29224 bool temp8 = false ;
29225 PyObject * obj0 = 0 ;
29226 PyObject * obj1 = 0 ;
29227 PyObject * obj2 = 0 ;
29228 PyObject * obj3 = 0 ;
29229 PyObject * obj4 = 0 ;
29230 PyObject * obj5 = 0 ;
29231 PyObject * obj6 = 0 ;
29232 PyObject * obj7 = 0 ;
29233 char * kwnames[] = {
29234 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29235 };
29236
29237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29239 if (!SWIG_IsOK(res1)) {
29240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29241 }
29242 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29243 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29244 if (!SWIG_IsOK(res2)) {
29245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
29246 }
29247 arg2 = reinterpret_cast< wxWindow * >(argp2);
29248 if (obj2) {
29249 ecode3 = SWIG_AsVal_int(obj2, &val3);
29250 if (!SWIG_IsOK(ecode3)) {
29251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29252 }
29253 arg3 = static_cast< int >(val3);
29254 }
29255 if (obj3) {
d55e5bfc 29256 {
554f62e9
RD
29257 arg4 = &temp4;
29258 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 29259 }
554f62e9
RD
29260 }
29261 if (obj4) {
d55e5bfc 29262 {
554f62e9
RD
29263 arg5 = &temp5;
29264 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 29265 }
554f62e9
RD
29266 }
29267 if (obj5) {
29268 ecode6 = SWIG_AsVal_long(obj5, &val6);
29269 if (!SWIG_IsOK(ecode6)) {
29270 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29271 }
29272 arg6 = static_cast< long >(val6);
29273 }
29274 if (obj6) {
29275 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29276 if (!SWIG_IsOK(res7)) {
29277 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 29278 }
554f62e9
RD
29279 if (!argp7) {
29280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 29281 }
554f62e9
RD
29282 arg7 = reinterpret_cast< wxValidator * >(argp7);
29283 }
29284 if (obj7) {
d55e5bfc 29285 {
554f62e9
RD
29286 arg8 = wxString_in_helper(obj7);
29287 if (arg8 == NULL) SWIG_fail;
29288 temp8 = true;
d55e5bfc 29289 }
554f62e9
RD
29290 }
29291 {
29292 PyThreadState* __tstate = wxPyBeginAllowThreads();
29293 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29294 wxPyEndAllowThreads(__tstate);
29295 if (PyErr_Occurred()) SWIG_fail;
29296 }
29297 {
29298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29299 }
29300 {
29301 if (temp8)
29302 delete arg8;
29303 }
29304 return resultobj;
29305fail:
29306 {
29307 if (temp8)
29308 delete arg8;
29309 }
29310 return NULL;
29311}
29312
29313
29314SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29315 PyObject *resultobj = 0;
29316 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29317 PyObject *arg2 = (PyObject *) 0 ;
29318 PyObject *arg3 = (PyObject *) 0 ;
29319 void *argp1 = 0 ;
29320 int res1 = 0 ;
29321 PyObject * obj0 = 0 ;
29322 PyObject * obj1 = 0 ;
29323 PyObject * obj2 = 0 ;
29324 char * kwnames[] = {
29325 (char *) "self",(char *) "self",(char *) "_class", NULL
29326 };
29327
29328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29330 if (!SWIG_IsOK(res1)) {
29331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29332 }
29333 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29334 arg2 = obj1;
29335 arg3 = obj2;
29336 {
29337 PyThreadState* __tstate = wxPyBeginAllowThreads();
29338 (arg1)->_setCallbackInfo(arg2,arg3);
29339 wxPyEndAllowThreads(__tstate);
29340 if (PyErr_Occurred()) SWIG_fail;
29341 }
29342 resultobj = SWIG_Py_Void();
29343 return resultobj;
29344fail:
29345 return NULL;
29346}
29347
29348
29349SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29350 PyObject *resultobj = 0;
29351 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29352 int arg2 ;
29353 wxListItem *result = 0 ;
29354 void *argp1 = 0 ;
29355 int res1 = 0 ;
29356 int val2 ;
29357 int ecode2 = 0 ;
29358 PyObject * obj0 = 0 ;
29359 PyObject * obj1 = 0 ;
29360 char * kwnames[] = {
29361 (char *) "self",(char *) "col", NULL
29362 };
29363
29364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29366 if (!SWIG_IsOK(res1)) {
29367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29368 }
29369 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29370 ecode2 = SWIG_AsVal_int(obj1, &val2);
29371 if (!SWIG_IsOK(ecode2)) {
29372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29373 }
29374 arg2 = static_cast< int >(val2);
29375 {
29376 PyThreadState* __tstate = wxPyBeginAllowThreads();
29377 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29378 wxPyEndAllowThreads(__tstate);
29379 if (PyErr_Occurred()) SWIG_fail;
29380 }
29381 {
3ecece7e 29382 resultobj = wxPyMake_wxObject(result, 0);
554f62e9
RD
29383 }
29384 return resultobj;
29385fail:
29386 return NULL;
29387}
29388
29389
29390SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29391 PyObject *resultobj = 0;
29392 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29393 int arg2 ;
29394 wxListItem *arg3 = 0 ;
29395 bool result;
29396 void *argp1 = 0 ;
29397 int res1 = 0 ;
29398 int val2 ;
29399 int ecode2 = 0 ;
29400 void *argp3 = 0 ;
29401 int res3 = 0 ;
29402 PyObject * obj0 = 0 ;
29403 PyObject * obj1 = 0 ;
29404 PyObject * obj2 = 0 ;
29405 char * kwnames[] = {
29406 (char *) "self",(char *) "col",(char *) "item", NULL
29407 };
29408
29409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29411 if (!SWIG_IsOK(res1)) {
29412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29413 }
29414 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29415 ecode2 = SWIG_AsVal_int(obj1, &val2);
29416 if (!SWIG_IsOK(ecode2)) {
29417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29418 }
29419 arg2 = static_cast< int >(val2);
29420 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29421 if (!SWIG_IsOK(res3)) {
29422 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29423 }
29424 if (!argp3) {
29425 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29426 }
29427 arg3 = reinterpret_cast< wxListItem * >(argp3);
29428 {
29429 PyThreadState* __tstate = wxPyBeginAllowThreads();
29430 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29431 wxPyEndAllowThreads(__tstate);
29432 if (PyErr_Occurred()) SWIG_fail;
29433 }
29434 {
29435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29436 }
29437 return resultobj;
29438fail:
29439 return NULL;
29440}
29441
29442
29443SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29444 PyObject *resultobj = 0;
29445 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29446 int arg2 ;
29447 int result;
29448 void *argp1 = 0 ;
29449 int res1 = 0 ;
29450 int val2 ;
29451 int ecode2 = 0 ;
29452 PyObject * obj0 = 0 ;
29453 PyObject * obj1 = 0 ;
29454 char * kwnames[] = {
29455 (char *) "self",(char *) "col", NULL
29456 };
29457
29458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29460 if (!SWIG_IsOK(res1)) {
29461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29462 }
29463 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29464 ecode2 = SWIG_AsVal_int(obj1, &val2);
29465 if (!SWIG_IsOK(ecode2)) {
29466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29467 }
29468 arg2 = static_cast< int >(val2);
29469 {
29470 PyThreadState* __tstate = wxPyBeginAllowThreads();
29471 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29472 wxPyEndAllowThreads(__tstate);
29473 if (PyErr_Occurred()) SWIG_fail;
29474 }
29475 resultobj = SWIG_From_int(static_cast< int >(result));
29476 return resultobj;
29477fail:
29478 return NULL;
29479}
29480
29481
29482SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29483 PyObject *resultobj = 0;
29484 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29485 int arg2 ;
29486 int arg3 ;
29487 bool result;
29488 void *argp1 = 0 ;
29489 int res1 = 0 ;
29490 int val2 ;
29491 int ecode2 = 0 ;
29492 int val3 ;
29493 int ecode3 = 0 ;
29494 PyObject * obj0 = 0 ;
29495 PyObject * obj1 = 0 ;
29496 PyObject * obj2 = 0 ;
29497 char * kwnames[] = {
29498 (char *) "self",(char *) "col",(char *) "width", NULL
29499 };
29500
29501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29503 if (!SWIG_IsOK(res1)) {
29504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29505 }
29506 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29507 ecode2 = SWIG_AsVal_int(obj1, &val2);
29508 if (!SWIG_IsOK(ecode2)) {
29509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29510 }
29511 arg2 = static_cast< int >(val2);
29512 ecode3 = SWIG_AsVal_int(obj2, &val3);
29513 if (!SWIG_IsOK(ecode3)) {
29514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29515 }
29516 arg3 = static_cast< int >(val3);
29517 {
29518 PyThreadState* __tstate = wxPyBeginAllowThreads();
29519 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29520 wxPyEndAllowThreads(__tstate);
29521 if (PyErr_Occurred()) SWIG_fail;
29522 }
29523 {
29524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29525 }
29526 return resultobj;
29527fail:
29528 return NULL;
d55e5bfc
RD
29529}
29530
29531
554f62e9
RD
29532SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29533 PyObject *resultobj = 0;
29534 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29535 int result;
29536 void *argp1 = 0 ;
29537 int res1 = 0 ;
29538 PyObject *swig_obj[1] ;
29539
29540 if (!args) SWIG_fail;
29541 swig_obj[0] = args;
29542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29543 if (!SWIG_IsOK(res1)) {
29544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29545 }
29546 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29547 {
29548 PyThreadState* __tstate = wxPyBeginAllowThreads();
29549 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29550 wxPyEndAllowThreads(__tstate);
29551 if (PyErr_Occurred()) SWIG_fail;
29552 }
29553 resultobj = SWIG_From_int(static_cast< int >(result));
29554 return resultobj;
29555fail:
29556 return NULL;
7e08d4ef
RD
29557}
29558
29559
554f62e9
RD
29560SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29561 PyObject *resultobj = 0;
29562 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29563 wxRect result;
29564 void *argp1 = 0 ;
29565 int res1 = 0 ;
29566 PyObject *swig_obj[1] ;
29567
29568 if (!args) SWIG_fail;
29569 swig_obj[0] = args;
29570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29571 if (!SWIG_IsOK(res1)) {
29572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29573 }
29574 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29575 {
29576 PyThreadState* __tstate = wxPyBeginAllowThreads();
29577 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29578 wxPyEndAllowThreads(__tstate);
29579 if (PyErr_Occurred()) SWIG_fail;
29580 }
29581 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29582 return resultobj;
29583fail:
29584 return NULL;
7e08d4ef
RD
29585}
29586
29587
554f62e9
RD
29588SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29589 PyObject *resultobj = 0;
29590 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29591 wxTextCtrl *result = 0 ;
29592 void *argp1 = 0 ;
29593 int res1 = 0 ;
29594 PyObject *swig_obj[1] ;
29595
29596 if (!args) SWIG_fail;
29597 swig_obj[0] = args;
29598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29599 if (!SWIG_IsOK(res1)) {
29600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29601 }
29602 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29603 {
29604 PyThreadState* __tstate = wxPyBeginAllowThreads();
29605 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29606 wxPyEndAllowThreads(__tstate);
29607 if (PyErr_Occurred()) SWIG_fail;
29608 }
29609 {
29610 resultobj = wxPyMake_wxObject(result, 0);
29611 }
29612 return resultobj;
29613fail:
29614 return NULL;
29615}
29616
29617
29618SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29619 PyObject *resultobj = 0;
29620 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29621 long arg2 ;
29622 int arg3 = (int) 0 ;
29623 wxListItem *result = 0 ;
29624 void *argp1 = 0 ;
29625 int res1 = 0 ;
29626 long val2 ;
29627 int ecode2 = 0 ;
29628 int val3 ;
29629 int ecode3 = 0 ;
29630 PyObject * obj0 = 0 ;
29631 PyObject * obj1 = 0 ;
29632 PyObject * obj2 = 0 ;
29633 char * kwnames[] = {
29634 (char *) "self",(char *) "itemId",(char *) "col", NULL
29635 };
29636
29637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29639 if (!SWIG_IsOK(res1)) {
29640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29641 }
29642 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29643 ecode2 = SWIG_AsVal_long(obj1, &val2);
29644 if (!SWIG_IsOK(ecode2)) {
29645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29646 }
29647 arg2 = static_cast< long >(val2);
29648 if (obj2) {
29649 ecode3 = SWIG_AsVal_int(obj2, &val3);
29650 if (!SWIG_IsOK(ecode3)) {
29651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29652 }
29653 arg3 = static_cast< int >(val3);
29654 }
29655 {
29656 PyThreadState* __tstate = wxPyBeginAllowThreads();
29657 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29658 wxPyEndAllowThreads(__tstate);
29659 if (PyErr_Occurred()) SWIG_fail;
29660 }
29661 {
3ecece7e 29662 resultobj = wxPyMake_wxObject(result, 0);
554f62e9
RD
29663 }
29664 return resultobj;
29665fail:
29666 return NULL;
29667}
29668
29669
29670SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29671 PyObject *resultobj = 0;
29672 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29673 wxListItem *arg2 = 0 ;
29674 bool result;
29675 void *argp1 = 0 ;
29676 int res1 = 0 ;
29677 void *argp2 = 0 ;
29678 int res2 = 0 ;
29679 PyObject * obj0 = 0 ;
29680 PyObject * obj1 = 0 ;
29681 char * kwnames[] = {
29682 (char *) "self",(char *) "info", NULL
29683 };
29684
29685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29687 if (!SWIG_IsOK(res1)) {
29688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29689 }
29690 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29691 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29692 if (!SWIG_IsOK(res2)) {
29693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29694 }
29695 if (!argp2) {
29696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29697 }
29698 arg2 = reinterpret_cast< wxListItem * >(argp2);
29699 {
29700 PyThreadState* __tstate = wxPyBeginAllowThreads();
29701 result = (bool)(arg1)->SetItem(*arg2);
29702 wxPyEndAllowThreads(__tstate);
29703 if (PyErr_Occurred()) SWIG_fail;
29704 }
29705 {
29706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29707 }
29708 return resultobj;
29709fail:
29710 return NULL;
29711}
29712
29713
29714SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29715 PyObject *resultobj = 0;
29716 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29717 long arg2 ;
29718 int arg3 ;
29719 wxString *arg4 = 0 ;
29720 int arg5 = (int) -1 ;
29721 long result;
29722 void *argp1 = 0 ;
29723 int res1 = 0 ;
29724 long val2 ;
29725 int ecode2 = 0 ;
29726 int val3 ;
29727 int ecode3 = 0 ;
29728 bool temp4 = false ;
29729 int val5 ;
29730 int ecode5 = 0 ;
29731 PyObject * obj0 = 0 ;
29732 PyObject * obj1 = 0 ;
29733 PyObject * obj2 = 0 ;
29734 PyObject * obj3 = 0 ;
29735 PyObject * obj4 = 0 ;
29736 char * kwnames[] = {
29737 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29738 };
29739
29740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29742 if (!SWIG_IsOK(res1)) {
29743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29744 }
29745 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29746 ecode2 = SWIG_AsVal_long(obj1, &val2);
29747 if (!SWIG_IsOK(ecode2)) {
29748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29749 }
29750 arg2 = static_cast< long >(val2);
29751 ecode3 = SWIG_AsVal_int(obj2, &val3);
29752 if (!SWIG_IsOK(ecode3)) {
29753 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29754 }
29755 arg3 = static_cast< int >(val3);
29756 {
29757 arg4 = wxString_in_helper(obj3);
29758 if (arg4 == NULL) SWIG_fail;
29759 temp4 = true;
29760 }
29761 if (obj4) {
29762 ecode5 = SWIG_AsVal_int(obj4, &val5);
29763 if (!SWIG_IsOK(ecode5)) {
29764 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29765 }
29766 arg5 = static_cast< int >(val5);
29767 }
29768 {
29769 PyThreadState* __tstate = wxPyBeginAllowThreads();
29770 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29771 wxPyEndAllowThreads(__tstate);
29772 if (PyErr_Occurred()) SWIG_fail;
29773 }
29774 resultobj = SWIG_From_long(static_cast< long >(result));
29775 {
29776 if (temp4)
29777 delete arg4;
29778 }
29779 return resultobj;
29780fail:
29781 {
29782 if (temp4)
29783 delete arg4;
29784 }
29785 return NULL;
29786}
29787
29788
29789SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29790 PyObject *resultobj = 0;
29791 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29792 long arg2 ;
29793 long arg3 ;
29794 int result;
29795 void *argp1 = 0 ;
29796 int res1 = 0 ;
29797 long val2 ;
29798 int ecode2 = 0 ;
29799 long val3 ;
29800 int ecode3 = 0 ;
29801 PyObject * obj0 = 0 ;
29802 PyObject * obj1 = 0 ;
29803 PyObject * obj2 = 0 ;
29804 char * kwnames[] = {
29805 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29806 };
29807
29808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29810 if (!SWIG_IsOK(res1)) {
29811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29812 }
29813 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29814 ecode2 = SWIG_AsVal_long(obj1, &val2);
29815 if (!SWIG_IsOK(ecode2)) {
29816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29817 }
29818 arg2 = static_cast< long >(val2);
29819 ecode3 = SWIG_AsVal_long(obj2, &val3);
29820 if (!SWIG_IsOK(ecode3)) {
29821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29822 }
29823 arg3 = static_cast< long >(val3);
29824 {
29825 PyThreadState* __tstate = wxPyBeginAllowThreads();
29826 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29827 wxPyEndAllowThreads(__tstate);
29828 if (PyErr_Occurred()) SWIG_fail;
29829 }
29830 resultobj = SWIG_From_int(static_cast< int >(result));
29831 return resultobj;
29832fail:
29833 return NULL;
29834}
29835
29836
29837SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29838 PyObject *resultobj = 0;
29839 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29840 long arg2 ;
29841 long arg3 ;
29842 long arg4 ;
29843 bool result;
29844 void *argp1 = 0 ;
29845 int res1 = 0 ;
29846 long val2 ;
29847 int ecode2 = 0 ;
29848 long val3 ;
29849 int ecode3 = 0 ;
29850 long val4 ;
29851 int ecode4 = 0 ;
29852 PyObject * obj0 = 0 ;
29853 PyObject * obj1 = 0 ;
29854 PyObject * obj2 = 0 ;
29855 PyObject * obj3 = 0 ;
29856 char * kwnames[] = {
29857 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29858 };
29859
29860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29862 if (!SWIG_IsOK(res1)) {
29863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29864 }
29865 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29866 ecode2 = SWIG_AsVal_long(obj1, &val2);
29867 if (!SWIG_IsOK(ecode2)) {
29868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29869 }
29870 arg2 = static_cast< long >(val2);
29871 ecode3 = SWIG_AsVal_long(obj2, &val3);
29872 if (!SWIG_IsOK(ecode3)) {
29873 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29874 }
29875 arg3 = static_cast< long >(val3);
29876 ecode4 = SWIG_AsVal_long(obj3, &val4);
29877 if (!SWIG_IsOK(ecode4)) {
29878 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29879 }
29880 arg4 = static_cast< long >(val4);
29881 {
29882 PyThreadState* __tstate = wxPyBeginAllowThreads();
29883 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29884 wxPyEndAllowThreads(__tstate);
29885 if (PyErr_Occurred()) SWIG_fail;
29886 }
29887 {
29888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29889 }
29890 return resultobj;
29891fail:
29892 return NULL;
29893}
29894
29895
29896SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29897 PyObject *resultobj = 0;
29898 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29899 long arg2 ;
29900 int arg3 ;
29901 int arg4 = (int) -1 ;
29902 bool result;
29903 void *argp1 = 0 ;
29904 int res1 = 0 ;
29905 long val2 ;
29906 int ecode2 = 0 ;
29907 int val3 ;
29908 int ecode3 = 0 ;
29909 int val4 ;
29910 int ecode4 = 0 ;
29911 PyObject * obj0 = 0 ;
29912 PyObject * obj1 = 0 ;
29913 PyObject * obj2 = 0 ;
29914 PyObject * obj3 = 0 ;
29915 char * kwnames[] = {
29916 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29917 };
29918
29919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29921 if (!SWIG_IsOK(res1)) {
29922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29923 }
29924 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29925 ecode2 = SWIG_AsVal_long(obj1, &val2);
29926 if (!SWIG_IsOK(ecode2)) {
29927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29928 }
29929 arg2 = static_cast< long >(val2);
29930 ecode3 = SWIG_AsVal_int(obj2, &val3);
29931 if (!SWIG_IsOK(ecode3)) {
29932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29933 }
29934 arg3 = static_cast< int >(val3);
29935 if (obj3) {
29936 ecode4 = SWIG_AsVal_int(obj3, &val4);
29937 if (!SWIG_IsOK(ecode4)) {
29938 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29939 }
29940 arg4 = static_cast< int >(val4);
29941 }
29942 {
29943 PyThreadState* __tstate = wxPyBeginAllowThreads();
29944 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29945 wxPyEndAllowThreads(__tstate);
29946 if (PyErr_Occurred()) SWIG_fail;
29947 }
29948 {
29949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29950 }
29951 return resultobj;
29952fail:
29953 return NULL;
29954}
29955
29956
29957SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29958 PyObject *resultobj = 0;
29959 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29960 long arg2 ;
29961 long arg3 ;
29962 int arg4 ;
29963 bool result;
29964 void *argp1 = 0 ;
29965 int res1 = 0 ;
29966 long val2 ;
29967 int ecode2 = 0 ;
29968 long val3 ;
29969 int ecode3 = 0 ;
29970 int val4 ;
29971 int ecode4 = 0 ;
29972 PyObject * obj0 = 0 ;
29973 PyObject * obj1 = 0 ;
29974 PyObject * obj2 = 0 ;
29975 PyObject * obj3 = 0 ;
29976 char * kwnames[] = {
29977 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29978 };
29979
29980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29982 if (!SWIG_IsOK(res1)) {
29983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29984 }
29985 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29986 ecode2 = SWIG_AsVal_long(obj1, &val2);
29987 if (!SWIG_IsOK(ecode2)) {
29988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29989 }
29990 arg2 = static_cast< long >(val2);
29991 ecode3 = SWIG_AsVal_long(obj2, &val3);
29992 if (!SWIG_IsOK(ecode3)) {
29993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29994 }
29995 arg3 = static_cast< long >(val3);
29996 ecode4 = SWIG_AsVal_int(obj3, &val4);
29997 if (!SWIG_IsOK(ecode4)) {
29998 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29999 }
30000 arg4 = static_cast< int >(val4);
30001 {
30002 PyThreadState* __tstate = wxPyBeginAllowThreads();
30003 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
30004 wxPyEndAllowThreads(__tstate);
30005 if (PyErr_Occurred()) SWIG_fail;
30006 }
30007 {
30008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30009 }
30010 return resultobj;
30011fail:
30012 return NULL;
30013}
30014
30015
30016SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30017 PyObject *resultobj = 0;
30018 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30019 long arg2 ;
30020 wxString result;
30021 void *argp1 = 0 ;
30022 int res1 = 0 ;
30023 long val2 ;
30024 int ecode2 = 0 ;
30025 PyObject * obj0 = 0 ;
30026 PyObject * obj1 = 0 ;
30027 char * kwnames[] = {
30028 (char *) "self",(char *) "item", NULL
30029 };
30030
30031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
30032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30033 if (!SWIG_IsOK(res1)) {
30034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30035 }
30036 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30037 ecode2 = SWIG_AsVal_long(obj1, &val2);
30038 if (!SWIG_IsOK(ecode2)) {
30039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
30040 }
30041 arg2 = static_cast< long >(val2);
30042 {
30043 PyThreadState* __tstate = wxPyBeginAllowThreads();
30044 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
30045 wxPyEndAllowThreads(__tstate);
30046 if (PyErr_Occurred()) SWIG_fail;
30047 }
30048 {
30049#if wxUSE_UNICODE
30050 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30051#else
30052 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30053#endif
30054 }
30055 return resultobj;
30056fail:
30057 return NULL;
30058}
30059
30060
30061SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30062 PyObject *resultobj = 0;
30063 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30064 long arg2 ;
30065 wxString *arg3 = 0 ;
30066 void *argp1 = 0 ;
30067 int res1 = 0 ;
30068 long val2 ;
30069 int ecode2 = 0 ;
30070 bool temp3 = false ;
30071 PyObject * obj0 = 0 ;
30072 PyObject * obj1 = 0 ;
30073 PyObject * obj2 = 0 ;
30074 char * kwnames[] = {
30075 (char *) "self",(char *) "item",(char *) "str", NULL
30076 };
30077
30078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30080 if (!SWIG_IsOK(res1)) {
30081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30082 }
30083 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30084 ecode2 = SWIG_AsVal_long(obj1, &val2);
30085 if (!SWIG_IsOK(ecode2)) {
30086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
30087 }
30088 arg2 = static_cast< long >(val2);
30089 {
30090 arg3 = wxString_in_helper(obj2);
30091 if (arg3 == NULL) SWIG_fail;
30092 temp3 = true;
30093 }
30094 {
30095 PyThreadState* __tstate = wxPyBeginAllowThreads();
30096 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
30097 wxPyEndAllowThreads(__tstate);
30098 if (PyErr_Occurred()) SWIG_fail;
30099 }
30100 resultobj = SWIG_Py_Void();
30101 {
30102 if (temp3)
30103 delete arg3;
30104 }
30105 return resultobj;
30106fail:
30107 {
30108 if (temp3)
30109 delete arg3;
30110 }
30111 return NULL;
30112}
30113
30114
30115SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30116 PyObject *resultobj = 0;
30117 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30118 long arg2 ;
30119 long result;
30120 void *argp1 = 0 ;
30121 int res1 = 0 ;
30122 long val2 ;
30123 int ecode2 = 0 ;
30124 PyObject * obj0 = 0 ;
30125 PyObject * obj1 = 0 ;
30126 char * kwnames[] = {
30127 (char *) "self",(char *) "item", NULL
30128 };
30129
30130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
30131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30132 if (!SWIG_IsOK(res1)) {
30133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30134 }
30135 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30136 ecode2 = SWIG_AsVal_long(obj1, &val2);
30137 if (!SWIG_IsOK(ecode2)) {
30138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
30139 }
30140 arg2 = static_cast< long >(val2);
30141 {
30142 PyThreadState* __tstate = wxPyBeginAllowThreads();
30143 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
30144 wxPyEndAllowThreads(__tstate);
30145 if (PyErr_Occurred()) SWIG_fail;
30146 }
30147 resultobj = SWIG_From_long(static_cast< long >(result));
30148 return resultobj;
30149fail:
30150 return NULL;
30151}
30152
30153
30154SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30155 PyObject *resultobj = 0;
30156 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30157 long arg2 ;
30158 long arg3 ;
30159 bool result;
30160 void *argp1 = 0 ;
30161 int res1 = 0 ;
30162 long val2 ;
30163 int ecode2 = 0 ;
30164 long val3 ;
30165 int ecode3 = 0 ;
30166 PyObject * obj0 = 0 ;
30167 PyObject * obj1 = 0 ;
30168 PyObject * obj2 = 0 ;
30169 char * kwnames[] = {
30170 (char *) "self",(char *) "item",(char *) "data", NULL
30171 };
30172
30173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30175 if (!SWIG_IsOK(res1)) {
30176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30177 }
30178 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30179 ecode2 = SWIG_AsVal_long(obj1, &val2);
30180 if (!SWIG_IsOK(ecode2)) {
30181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
30182 }
30183 arg2 = static_cast< long >(val2);
30184 ecode3 = SWIG_AsVal_long(obj2, &val3);
30185 if (!SWIG_IsOK(ecode3)) {
30186 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
30187 }
30188 arg3 = static_cast< long >(val3);
30189 {
30190 PyThreadState* __tstate = wxPyBeginAllowThreads();
30191 result = (bool)(arg1)->SetItemData(arg2,arg3);
30192 wxPyEndAllowThreads(__tstate);
30193 if (PyErr_Occurred()) SWIG_fail;
30194 }
30195 {
30196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30197 }
30198 return resultobj;
30199fail:
30200 return NULL;
30201}
30202
30203
30204SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30205 PyObject *resultobj = 0;
30206 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30207 long arg2 ;
30208 wxPoint result;
30209 void *argp1 = 0 ;
30210 int res1 = 0 ;
30211 long val2 ;
30212 int ecode2 = 0 ;
30213 PyObject * obj0 = 0 ;
30214 PyObject * obj1 = 0 ;
30215 char * kwnames[] = {
30216 (char *) "self",(char *) "item", NULL
30217 };
30218
30219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
30220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30221 if (!SWIG_IsOK(res1)) {
30222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30223 }
30224 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30225 ecode2 = SWIG_AsVal_long(obj1, &val2);
30226 if (!SWIG_IsOK(ecode2)) {
30227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
30228 }
30229 arg2 = static_cast< long >(val2);
30230 {
30231 PyThreadState* __tstate = wxPyBeginAllowThreads();
30232 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
30233 wxPyEndAllowThreads(__tstate);
30234 if (PyErr_Occurred()) SWIG_fail;
30235 }
30236 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
30237 return resultobj;
30238fail:
30239 return NULL;
30240}
30241
30242
30243SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30244 PyObject *resultobj = 0;
30245 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30246 long arg2 ;
30247 int arg3 = (int) wxLIST_RECT_BOUNDS ;
30248 wxRect result;
30249 void *argp1 = 0 ;
30250 int res1 = 0 ;
30251 long val2 ;
30252 int ecode2 = 0 ;
30253 int val3 ;
30254 int ecode3 = 0 ;
30255 PyObject * obj0 = 0 ;
30256 PyObject * obj1 = 0 ;
30257 PyObject * obj2 = 0 ;
30258 char * kwnames[] = {
30259 (char *) "self",(char *) "item",(char *) "code", NULL
30260 };
30261
30262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30264 if (!SWIG_IsOK(res1)) {
30265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30266 }
30267 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30268 ecode2 = SWIG_AsVal_long(obj1, &val2);
30269 if (!SWIG_IsOK(ecode2)) {
30270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
30271 }
30272 arg2 = static_cast< long >(val2);
30273 if (obj2) {
30274 ecode3 = SWIG_AsVal_int(obj2, &val3);
30275 if (!SWIG_IsOK(ecode3)) {
30276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30277 }
30278 arg3 = static_cast< int >(val3);
30279 }
30280 {
30281 PyThreadState* __tstate = wxPyBeginAllowThreads();
30282 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30283 wxPyEndAllowThreads(__tstate);
30284 if (PyErr_Occurred()) SWIG_fail;
30285 }
30286 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30287 return resultobj;
30288fail:
30289 return NULL;
30290}
30291
30292
30293SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30294 PyObject *resultobj = 0;
30295 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30296 long arg2 ;
30297 wxPoint *arg3 = 0 ;
30298 bool result;
30299 void *argp1 = 0 ;
30300 int res1 = 0 ;
30301 long val2 ;
30302 int ecode2 = 0 ;
30303 wxPoint temp3 ;
30304 PyObject * obj0 = 0 ;
30305 PyObject * obj1 = 0 ;
30306 PyObject * obj2 = 0 ;
30307 char * kwnames[] = {
30308 (char *) "self",(char *) "item",(char *) "pos", NULL
30309 };
30310
30311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30313 if (!SWIG_IsOK(res1)) {
30314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30315 }
30316 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30317 ecode2 = SWIG_AsVal_long(obj1, &val2);
30318 if (!SWIG_IsOK(ecode2)) {
30319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30320 }
30321 arg2 = static_cast< long >(val2);
30322 {
30323 arg3 = &temp3;
30324 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30325 }
30326 {
30327 PyThreadState* __tstate = wxPyBeginAllowThreads();
30328 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30329 wxPyEndAllowThreads(__tstate);
30330 if (PyErr_Occurred()) SWIG_fail;
30331 }
30332 {
30333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30334 }
30335 return resultobj;
30336fail:
30337 return NULL;
7e08d4ef
RD
30338}
30339
30340
554f62e9
RD
30341SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30342 PyObject *resultobj = 0;
30343 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30344 int result;
30345 void *argp1 = 0 ;
30346 int res1 = 0 ;
30347 PyObject *swig_obj[1] ;
30348
30349 if (!args) SWIG_fail;
30350 swig_obj[0] = args;
30351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30352 if (!SWIG_IsOK(res1)) {
30353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30354 }
30355 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30356 {
30357 PyThreadState* __tstate = wxPyBeginAllowThreads();
30358 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30359 wxPyEndAllowThreads(__tstate);
30360 if (PyErr_Occurred()) SWIG_fail;
30361 }
30362 resultobj = SWIG_From_int(static_cast< int >(result));
30363 return resultobj;
30364fail:
30365 return NULL;
7e08d4ef
RD
30366}
30367
30368
554f62e9
RD
30369SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30370 PyObject *resultobj = 0;
30371 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30372 int result;
30373 void *argp1 = 0 ;
30374 int res1 = 0 ;
30375 PyObject *swig_obj[1] ;
30376
30377 if (!args) SWIG_fail;
30378 swig_obj[0] = args;
30379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30380 if (!SWIG_IsOK(res1)) {
30381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30382 }
30383 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30384 {
30385 PyThreadState* __tstate = wxPyBeginAllowThreads();
30386 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30387 wxPyEndAllowThreads(__tstate);
30388 if (PyErr_Occurred()) SWIG_fail;
30389 }
30390 resultobj = SWIG_From_int(static_cast< int >(result));
30391 return resultobj;
30392fail:
30393 return NULL;
7e08d4ef
RD
30394}
30395
30396
554f62e9
RD
30397SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30398 PyObject *resultobj = 0;
30399 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30400 wxSize result;
30401 void *argp1 = 0 ;
30402 int res1 = 0 ;
30403 PyObject *swig_obj[1] ;
30404
30405 if (!args) SWIG_fail;
30406 swig_obj[0] = args;
30407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30408 if (!SWIG_IsOK(res1)) {
30409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30410 }
30411 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30412 {
30413 PyThreadState* __tstate = wxPyBeginAllowThreads();
30414 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30415 wxPyEndAllowThreads(__tstate);
30416 if (PyErr_Occurred()) SWIG_fail;
30417 }
30418 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30419 return resultobj;
30420fail:
30421 return NULL;
7e08d4ef
RD
30422}
30423
30424
554f62e9
RD
30425SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30426 PyObject *resultobj = 0;
30427 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30428 int result;
30429 void *argp1 = 0 ;
30430 int res1 = 0 ;
30431 PyObject *swig_obj[1] ;
30432
30433 if (!args) SWIG_fail;
30434 swig_obj[0] = args;
30435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30436 if (!SWIG_IsOK(res1)) {
30437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30438 }
30439 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30440 {
30441 PyThreadState* __tstate = wxPyBeginAllowThreads();
30442 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30443 wxPyEndAllowThreads(__tstate);
30444 if (PyErr_Occurred()) SWIG_fail;
30445 }
30446 resultobj = SWIG_From_int(static_cast< int >(result));
30447 return resultobj;
30448fail:
30449 return NULL;
7e08d4ef
RD
30450}
30451
30452
554f62e9
RD
30453SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30454 PyObject *resultobj = 0;
30455 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30456 wxColour result;
30457 void *argp1 = 0 ;
30458 int res1 = 0 ;
30459 PyObject *swig_obj[1] ;
30460
30461 if (!args) SWIG_fail;
30462 swig_obj[0] = args;
30463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30464 if (!SWIG_IsOK(res1)) {
30465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30466 }
30467 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30468 {
30469 PyThreadState* __tstate = wxPyBeginAllowThreads();
30470 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30471 wxPyEndAllowThreads(__tstate);
30472 if (PyErr_Occurred()) SWIG_fail;
30473 }
30474 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30475 return resultobj;
30476fail:
30477 return NULL;
30478}
30479
30480
30481SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30482 PyObject *resultobj = 0;
30483 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30484 wxColour *arg2 = 0 ;
30485 void *argp1 = 0 ;
30486 int res1 = 0 ;
30487 wxColour temp2 ;
30488 PyObject * obj0 = 0 ;
30489 PyObject * obj1 = 0 ;
30490 char * kwnames[] = {
30491 (char *) "self",(char *) "col", NULL
30492 };
30493
30494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30496 if (!SWIG_IsOK(res1)) {
30497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30498 }
30499 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30500 {
30501 arg2 = &temp2;
30502 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30503 }
30504 {
30505 PyThreadState* __tstate = wxPyBeginAllowThreads();
30506 (arg1)->SetTextColour((wxColour const &)*arg2);
30507 wxPyEndAllowThreads(__tstate);
30508 if (PyErr_Occurred()) SWIG_fail;
30509 }
30510 resultobj = SWIG_Py_Void();
30511 return resultobj;
30512fail:
30513 return NULL;
7e08d4ef
RD
30514}
30515
30516
554f62e9
RD
30517SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30518 PyObject *resultobj = 0;
30519 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30520 long result;
30521 void *argp1 = 0 ;
30522 int res1 = 0 ;
30523 PyObject *swig_obj[1] ;
30524
30525 if (!args) SWIG_fail;
30526 swig_obj[0] = args;
30527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30528 if (!SWIG_IsOK(res1)) {
30529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30530 }
30531 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30532 {
30533 PyThreadState* __tstate = wxPyBeginAllowThreads();
30534 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30535 wxPyEndAllowThreads(__tstate);
30536 if (PyErr_Occurred()) SWIG_fail;
30537 }
30538 resultobj = SWIG_From_long(static_cast< long >(result));
30539 return resultobj;
30540fail:
30541 return NULL;
30542}
30543
30544
30545SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30546 PyObject *resultobj = 0;
30547 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30548 long arg2 ;
30549 bool arg3 = (bool) true ;
30550 void *argp1 = 0 ;
30551 int res1 = 0 ;
30552 long val2 ;
30553 int ecode2 = 0 ;
30554 bool val3 ;
30555 int ecode3 = 0 ;
30556 PyObject * obj0 = 0 ;
30557 PyObject * obj1 = 0 ;
30558 PyObject * obj2 = 0 ;
30559 char * kwnames[] = {
30560 (char *) "self",(char *) "style",(char *) "add", NULL
30561 };
30562
30563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30565 if (!SWIG_IsOK(res1)) {
30566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30567 }
30568 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30569 ecode2 = SWIG_AsVal_long(obj1, &val2);
30570 if (!SWIG_IsOK(ecode2)) {
30571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30572 }
30573 arg2 = static_cast< long >(val2);
30574 if (obj2) {
30575 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30576 if (!SWIG_IsOK(ecode3)) {
30577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30578 }
30579 arg3 = static_cast< bool >(val3);
30580 }
30581 {
30582 PyThreadState* __tstate = wxPyBeginAllowThreads();
30583 (arg1)->SetSingleStyle(arg2,arg3);
30584 wxPyEndAllowThreads(__tstate);
30585 if (PyErr_Occurred()) SWIG_fail;
30586 }
30587 resultobj = SWIG_Py_Void();
30588 return resultobj;
30589fail:
30590 return NULL;
30591}
30592
30593
30594SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30595 PyObject *resultobj = 0;
30596 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30597 long arg2 ;
30598 int arg3 = (int) wxLIST_NEXT_ALL ;
30599 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30600 long result;
30601 void *argp1 = 0 ;
30602 int res1 = 0 ;
30603 long val2 ;
30604 int ecode2 = 0 ;
30605 int val3 ;
30606 int ecode3 = 0 ;
30607 int val4 ;
30608 int ecode4 = 0 ;
30609 PyObject * obj0 = 0 ;
30610 PyObject * obj1 = 0 ;
30611 PyObject * obj2 = 0 ;
30612 PyObject * obj3 = 0 ;
30613 char * kwnames[] = {
30614 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30615 };
30616
30617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30619 if (!SWIG_IsOK(res1)) {
30620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30621 }
30622 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30623 ecode2 = SWIG_AsVal_long(obj1, &val2);
30624 if (!SWIG_IsOK(ecode2)) {
30625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30626 }
30627 arg2 = static_cast< long >(val2);
30628 if (obj2) {
30629 ecode3 = SWIG_AsVal_int(obj2, &val3);
30630 if (!SWIG_IsOK(ecode3)) {
30631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30632 }
30633 arg3 = static_cast< int >(val3);
30634 }
30635 if (obj3) {
30636 ecode4 = SWIG_AsVal_int(obj3, &val4);
30637 if (!SWIG_IsOK(ecode4)) {
30638 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30639 }
30640 arg4 = static_cast< int >(val4);
30641 }
30642 {
30643 PyThreadState* __tstate = wxPyBeginAllowThreads();
30644 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30645 wxPyEndAllowThreads(__tstate);
30646 if (PyErr_Occurred()) SWIG_fail;
30647 }
30648 resultobj = SWIG_From_long(static_cast< long >(result));
30649 return resultobj;
30650fail:
30651 return NULL;
30652}
30653
30654
30655SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30656 PyObject *resultobj = 0;
30657 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30658 int arg2 ;
30659 wxImageList *result = 0 ;
30660 void *argp1 = 0 ;
30661 int res1 = 0 ;
30662 int val2 ;
30663 int ecode2 = 0 ;
30664 PyObject * obj0 = 0 ;
30665 PyObject * obj1 = 0 ;
30666 char * kwnames[] = {
30667 (char *) "self",(char *) "which", NULL
30668 };
30669
30670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30672 if (!SWIG_IsOK(res1)) {
30673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30674 }
30675 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30676 ecode2 = SWIG_AsVal_int(obj1, &val2);
30677 if (!SWIG_IsOK(ecode2)) {
30678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30679 }
30680 arg2 = static_cast< int >(val2);
30681 {
30682 PyThreadState* __tstate = wxPyBeginAllowThreads();
30683 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30684 wxPyEndAllowThreads(__tstate);
30685 if (PyErr_Occurred()) SWIG_fail;
30686 }
3ecece7e
RD
30687 {
30688 resultobj = wxPyMake_wxObject(result, (bool)0);
30689 }
554f62e9
RD
30690 return resultobj;
30691fail:
30692 return NULL;
30693}
30694
30695
30696SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30697 PyObject *resultobj = 0;
30698 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30699 wxImageList *arg2 = (wxImageList *) 0 ;
30700 int arg3 ;
30701 void *argp1 = 0 ;
30702 int res1 = 0 ;
30703 void *argp2 = 0 ;
30704 int res2 = 0 ;
30705 int val3 ;
30706 int ecode3 = 0 ;
30707 PyObject * obj0 = 0 ;
30708 PyObject * obj1 = 0 ;
30709 PyObject * obj2 = 0 ;
30710 char * kwnames[] = {
30711 (char *) "self",(char *) "imageList",(char *) "which", NULL
30712 };
30713
30714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30716 if (!SWIG_IsOK(res1)) {
30717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30718 }
30719 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30720 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30721 if (!SWIG_IsOK(res2)) {
30722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30723 }
30724 arg2 = reinterpret_cast< wxImageList * >(argp2);
30725 ecode3 = SWIG_AsVal_int(obj2, &val3);
30726 if (!SWIG_IsOK(ecode3)) {
30727 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30728 }
30729 arg3 = static_cast< int >(val3);
30730 {
30731 PyThreadState* __tstate = wxPyBeginAllowThreads();
30732 (arg1)->SetImageList(arg2,arg3);
30733 wxPyEndAllowThreads(__tstate);
30734 if (PyErr_Occurred()) SWIG_fail;
30735 }
30736 resultobj = SWIG_Py_Void();
30737 return resultobj;
30738fail:
30739 return NULL;
30740}
30741
30742
30743SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30744 PyObject *resultobj = 0;
30745 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30746 wxImageList *arg2 = (wxImageList *) 0 ;
30747 int arg3 ;
30748 void *argp1 = 0 ;
30749 int res1 = 0 ;
30750 int res2 = 0 ;
30751 int val3 ;
30752 int ecode3 = 0 ;
30753 PyObject * obj0 = 0 ;
30754 PyObject * obj1 = 0 ;
30755 PyObject * obj2 = 0 ;
30756 char * kwnames[] = {
30757 (char *) "self",(char *) "imageList",(char *) "which", NULL
30758 };
30759
30760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30762 if (!SWIG_IsOK(res1)) {
30763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30764 }
30765 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30766 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30767 if (!SWIG_IsOK(res2)) {
30768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30769 }
30770 ecode3 = SWIG_AsVal_int(obj2, &val3);
30771 if (!SWIG_IsOK(ecode3)) {
30772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30773 }
30774 arg3 = static_cast< int >(val3);
30775 {
30776 PyThreadState* __tstate = wxPyBeginAllowThreads();
30777 (arg1)->AssignImageList(arg2,arg3);
30778 wxPyEndAllowThreads(__tstate);
30779 if (PyErr_Occurred()) SWIG_fail;
30780 }
30781 resultobj = SWIG_Py_Void();
30782 return resultobj;
30783fail:
30784 return NULL;
7e08d4ef
RD
30785}
30786
30787
554f62e9
RD
30788SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30789 PyObject *resultobj = 0;
30790 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30791 bool result;
30792 void *argp1 = 0 ;
30793 int res1 = 0 ;
30794 PyObject *swig_obj[1] ;
30795
30796 if (!args) SWIG_fail;
30797 swig_obj[0] = args;
30798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30799 if (!SWIG_IsOK(res1)) {
30800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30801 }
30802 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30803 {
30804 PyThreadState* __tstate = wxPyBeginAllowThreads();
30805 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30806 wxPyEndAllowThreads(__tstate);
30807 if (PyErr_Occurred()) SWIG_fail;
30808 }
30809 {
30810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30811 }
30812 return resultobj;
30813fail:
30814 return NULL;
7e08d4ef
RD
30815}
30816
30817
554f62e9
RD
30818SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30819 PyObject *resultobj = 0;
30820 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30821 bool result;
30822 void *argp1 = 0 ;
30823 int res1 = 0 ;
30824 PyObject *swig_obj[1] ;
30825
30826 if (!args) SWIG_fail;
30827 swig_obj[0] = args;
30828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30829 if (!SWIG_IsOK(res1)) {
30830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30831 }
30832 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30833 {
30834 PyThreadState* __tstate = wxPyBeginAllowThreads();
30835 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30836 wxPyEndAllowThreads(__tstate);
30837 if (PyErr_Occurred()) SWIG_fail;
30838 }
30839 {
30840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30841 }
30842 return resultobj;
30843fail:
30844 return NULL;
30845}
30846
30847
30848SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30849 PyObject *resultobj = 0;
30850 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30851 long arg2 ;
30852 void *argp1 = 0 ;
30853 int res1 = 0 ;
30854 long val2 ;
30855 int ecode2 = 0 ;
30856 PyObject * obj0 = 0 ;
30857 PyObject * obj1 = 0 ;
30858 char * kwnames[] = {
30859 (char *) "self",(char *) "item", NULL
30860 };
30861
30862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30864 if (!SWIG_IsOK(res1)) {
30865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30866 }
30867 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30868 ecode2 = SWIG_AsVal_long(obj1, &val2);
30869 if (!SWIG_IsOK(ecode2)) {
30870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30871 }
30872 arg2 = static_cast< long >(val2);
30873 {
30874 PyThreadState* __tstate = wxPyBeginAllowThreads();
30875 (arg1)->RefreshItem(arg2);
30876 wxPyEndAllowThreads(__tstate);
30877 if (PyErr_Occurred()) SWIG_fail;
30878 }
30879 resultobj = SWIG_Py_Void();
30880 return resultobj;
30881fail:
30882 return NULL;
30883}
30884
30885
30886SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30887 PyObject *resultobj = 0;
30888 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30889 long arg2 ;
30890 long arg3 ;
30891 void *argp1 = 0 ;
30892 int res1 = 0 ;
30893 long val2 ;
30894 int ecode2 = 0 ;
30895 long val3 ;
30896 int ecode3 = 0 ;
30897 PyObject * obj0 = 0 ;
30898 PyObject * obj1 = 0 ;
30899 PyObject * obj2 = 0 ;
30900 char * kwnames[] = {
30901 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30902 };
30903
30904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30906 if (!SWIG_IsOK(res1)) {
30907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30908 }
30909 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30910 ecode2 = SWIG_AsVal_long(obj1, &val2);
30911 if (!SWIG_IsOK(ecode2)) {
30912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30913 }
30914 arg2 = static_cast< long >(val2);
30915 ecode3 = SWIG_AsVal_long(obj2, &val3);
30916 if (!SWIG_IsOK(ecode3)) {
30917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30918 }
30919 arg3 = static_cast< long >(val3);
30920 {
30921 PyThreadState* __tstate = wxPyBeginAllowThreads();
30922 (arg1)->RefreshItems(arg2,arg3);
30923 wxPyEndAllowThreads(__tstate);
30924 if (PyErr_Occurred()) SWIG_fail;
30925 }
30926 resultobj = SWIG_Py_Void();
30927 return resultobj;
30928fail:
30929 return NULL;
30930}
30931
30932
30933SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30934 PyObject *resultobj = 0;
30935 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30936 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30937 bool result;
30938 void *argp1 = 0 ;
30939 int res1 = 0 ;
30940 int val2 ;
30941 int ecode2 = 0 ;
30942 PyObject * obj0 = 0 ;
30943 PyObject * obj1 = 0 ;
30944 char * kwnames[] = {
30945 (char *) "self",(char *) "flag", NULL
30946 };
30947
30948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30950 if (!SWIG_IsOK(res1)) {
30951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30952 }
30953 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30954 if (obj1) {
30955 ecode2 = SWIG_AsVal_int(obj1, &val2);
30956 if (!SWIG_IsOK(ecode2)) {
30957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30958 }
30959 arg2 = static_cast< int >(val2);
30960 }
30961 {
30962 PyThreadState* __tstate = wxPyBeginAllowThreads();
30963 result = (bool)(arg1)->Arrange(arg2);
30964 wxPyEndAllowThreads(__tstate);
30965 if (PyErr_Occurred()) SWIG_fail;
30966 }
30967 {
30968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30969 }
30970 return resultobj;
30971fail:
30972 return NULL;
30973}
30974
30975
30976SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30977 PyObject *resultobj = 0;
30978 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30979 long arg2 ;
30980 bool result;
30981 void *argp1 = 0 ;
30982 int res1 = 0 ;
30983 long val2 ;
30984 int ecode2 = 0 ;
30985 PyObject * obj0 = 0 ;
30986 PyObject * obj1 = 0 ;
30987 char * kwnames[] = {
30988 (char *) "self",(char *) "item", NULL
30989 };
30990
30991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30993 if (!SWIG_IsOK(res1)) {
30994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30995 }
30996 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30997 ecode2 = SWIG_AsVal_long(obj1, &val2);
30998 if (!SWIG_IsOK(ecode2)) {
30999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
31000 }
31001 arg2 = static_cast< long >(val2);
31002 {
31003 PyThreadState* __tstate = wxPyBeginAllowThreads();
31004 result = (bool)(arg1)->DeleteItem(arg2);
31005 wxPyEndAllowThreads(__tstate);
31006 if (PyErr_Occurred()) SWIG_fail;
31007 }
31008 {
31009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31010 }
31011 return resultobj;
31012fail:
31013 return NULL;
7e08d4ef
RD
31014}
31015
31016
554f62e9
RD
31017SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31018 PyObject *resultobj = 0;
31019 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31020 bool result;
31021 void *argp1 = 0 ;
31022 int res1 = 0 ;
31023 PyObject *swig_obj[1] ;
31024
31025 if (!args) SWIG_fail;
31026 swig_obj[0] = args;
31027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31028 if (!SWIG_IsOK(res1)) {
31029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31030 }
31031 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31032 {
31033 PyThreadState* __tstate = wxPyBeginAllowThreads();
31034 result = (bool)(arg1)->DeleteAllItems();
31035 wxPyEndAllowThreads(__tstate);
31036 if (PyErr_Occurred()) SWIG_fail;
31037 }
31038 {
31039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31040 }
31041 return resultobj;
31042fail:
31043 return NULL;
31044}
31045
31046
31047SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31048 PyObject *resultobj = 0;
31049 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31050 int arg2 ;
31051 bool result;
31052 void *argp1 = 0 ;
31053 int res1 = 0 ;
31054 int val2 ;
31055 int ecode2 = 0 ;
31056 PyObject * obj0 = 0 ;
31057 PyObject * obj1 = 0 ;
31058 char * kwnames[] = {
31059 (char *) "self",(char *) "col", NULL
31060 };
31061
31062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
31063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31064 if (!SWIG_IsOK(res1)) {
31065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31066 }
31067 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31068 ecode2 = SWIG_AsVal_int(obj1, &val2);
31069 if (!SWIG_IsOK(ecode2)) {
31070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
31071 }
31072 arg2 = static_cast< int >(val2);
31073 {
31074 PyThreadState* __tstate = wxPyBeginAllowThreads();
31075 result = (bool)(arg1)->DeleteColumn(arg2);
31076 wxPyEndAllowThreads(__tstate);
31077 if (PyErr_Occurred()) SWIG_fail;
31078 }
31079 {
31080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31081 }
31082 return resultobj;
31083fail:
31084 return NULL;
7e08d4ef
RD
31085}
31086
31087
554f62e9
RD
31088SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31089 PyObject *resultobj = 0;
31090 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31091 bool result;
31092 void *argp1 = 0 ;
31093 int res1 = 0 ;
31094 PyObject *swig_obj[1] ;
31095
31096 if (!args) SWIG_fail;
31097 swig_obj[0] = args;
31098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31099 if (!SWIG_IsOK(res1)) {
31100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31101 }
31102 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31103 {
31104 PyThreadState* __tstate = wxPyBeginAllowThreads();
31105 result = (bool)(arg1)->DeleteAllColumns();
31106 wxPyEndAllowThreads(__tstate);
31107 if (PyErr_Occurred()) SWIG_fail;
31108 }
31109 {
31110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31111 }
31112 return resultobj;
31113fail:
31114 return NULL;
7e08d4ef
RD
31115}
31116
31117
554f62e9
RD
31118SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31119 PyObject *resultobj = 0;
31120 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31121 void *argp1 = 0 ;
31122 int res1 = 0 ;
31123 PyObject *swig_obj[1] ;
31124
31125 if (!args) SWIG_fail;
31126 swig_obj[0] = args;
31127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31128 if (!SWIG_IsOK(res1)) {
31129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31130 }
31131 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31132 {
31133 PyThreadState* __tstate = wxPyBeginAllowThreads();
31134 (arg1)->ClearAll();
31135 wxPyEndAllowThreads(__tstate);
31136 if (PyErr_Occurred()) SWIG_fail;
31137 }
31138 resultobj = SWIG_Py_Void();
31139 return resultobj;
31140fail:
31141 return NULL;
31142}
31143
31144
31145SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31146 PyObject *resultobj = 0;
31147 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31148 long arg2 ;
31149 wxTextCtrl *result = 0 ;
31150 void *argp1 = 0 ;
31151 int res1 = 0 ;
31152 long val2 ;
31153 int ecode2 = 0 ;
31154 PyObject * obj0 = 0 ;
31155 PyObject * obj1 = 0 ;
31156 char * kwnames[] = {
31157 (char *) "self",(char *) "item", NULL
31158 };
31159
31160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31162 if (!SWIG_IsOK(res1)) {
31163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31164 }
31165 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31166 ecode2 = SWIG_AsVal_long(obj1, &val2);
31167 if (!SWIG_IsOK(ecode2)) {
31168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
31169 }
31170 arg2 = static_cast< long >(val2);
31171 {
31172 PyThreadState* __tstate = wxPyBeginAllowThreads();
31173 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
31174 wxPyEndAllowThreads(__tstate);
31175 if (PyErr_Occurred()) SWIG_fail;
31176 }
31177 {
31178 resultobj = wxPyMake_wxObject(result, 0);
31179 }
31180 return resultobj;
31181fail:
31182 return NULL;
31183}
31184
31185
31186SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31187 PyObject *resultobj = 0;
31188 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31189 bool arg2 ;
31190 bool result;
31191 void *argp1 = 0 ;
31192 int res1 = 0 ;
31193 bool val2 ;
31194 int ecode2 = 0 ;
31195 PyObject * obj0 = 0 ;
31196 PyObject * obj1 = 0 ;
31197 char * kwnames[] = {
31198 (char *) "self",(char *) "cancel", NULL
31199 };
31200
31201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31203 if (!SWIG_IsOK(res1)) {
31204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31205 }
31206 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31207 ecode2 = SWIG_AsVal_bool(obj1, &val2);
31208 if (!SWIG_IsOK(ecode2)) {
31209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
31210 }
31211 arg2 = static_cast< bool >(val2);
31212 {
31213 PyThreadState* __tstate = wxPyBeginAllowThreads();
31214 result = (bool)(arg1)->EndEditLabel(arg2);
31215 wxPyEndAllowThreads(__tstate);
31216 if (PyErr_Occurred()) SWIG_fail;
31217 }
31218 {
31219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31220 }
31221 return resultobj;
31222fail:
31223 return NULL;
31224}
31225
31226
31227SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31228 PyObject *resultobj = 0;
31229 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31230 long arg2 ;
31231 bool result;
31232 void *argp1 = 0 ;
31233 int res1 = 0 ;
31234 long val2 ;
31235 int ecode2 = 0 ;
31236 PyObject * obj0 = 0 ;
31237 PyObject * obj1 = 0 ;
31238 char * kwnames[] = {
31239 (char *) "self",(char *) "item", NULL
31240 };
31241
31242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
31243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31244 if (!SWIG_IsOK(res1)) {
31245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31246 }
31247 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31248 ecode2 = SWIG_AsVal_long(obj1, &val2);
31249 if (!SWIG_IsOK(ecode2)) {
31250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31251 }
31252 arg2 = static_cast< long >(val2);
31253 {
31254 PyThreadState* __tstate = wxPyBeginAllowThreads();
31255 result = (bool)(arg1)->EnsureVisible(arg2);
31256 wxPyEndAllowThreads(__tstate);
31257 if (PyErr_Occurred()) SWIG_fail;
31258 }
31259 {
31260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31261 }
31262 return resultobj;
31263fail:
31264 return NULL;
31265}
31266
31267
31268SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31269 PyObject *resultobj = 0;
31270 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31271 long arg2 ;
31272 wxString *arg3 = 0 ;
31273 bool arg4 = (bool) false ;
31274 long result;
31275 void *argp1 = 0 ;
31276 int res1 = 0 ;
31277 long val2 ;
31278 int ecode2 = 0 ;
31279 bool temp3 = false ;
31280 bool val4 ;
31281 int ecode4 = 0 ;
31282 PyObject * obj0 = 0 ;
31283 PyObject * obj1 = 0 ;
31284 PyObject * obj2 = 0 ;
31285 PyObject * obj3 = 0 ;
31286 char * kwnames[] = {
31287 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31288 };
31289
31290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31292 if (!SWIG_IsOK(res1)) {
31293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31294 }
31295 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31296 ecode2 = SWIG_AsVal_long(obj1, &val2);
31297 if (!SWIG_IsOK(ecode2)) {
31298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31299 }
31300 arg2 = static_cast< long >(val2);
31301 {
31302 arg3 = wxString_in_helper(obj2);
31303 if (arg3 == NULL) SWIG_fail;
31304 temp3 = true;
31305 }
31306 if (obj3) {
31307 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31308 if (!SWIG_IsOK(ecode4)) {
31309 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31310 }
31311 arg4 = static_cast< bool >(val4);
31312 }
31313 {
31314 PyThreadState* __tstate = wxPyBeginAllowThreads();
31315 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31316 wxPyEndAllowThreads(__tstate);
31317 if (PyErr_Occurred()) SWIG_fail;
31318 }
31319 resultobj = SWIG_From_long(static_cast< long >(result));
31320 {
31321 if (temp3)
31322 delete arg3;
31323 }
31324 return resultobj;
31325fail:
31326 {
31327 if (temp3)
31328 delete arg3;
31329 }
31330 return NULL;
31331}
31332
31333
31334SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31335 PyObject *resultobj = 0;
31336 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31337 long arg2 ;
31338 long arg3 ;
31339 long result;
31340 void *argp1 = 0 ;
31341 int res1 = 0 ;
31342 long val2 ;
31343 int ecode2 = 0 ;
31344 long val3 ;
31345 int ecode3 = 0 ;
31346 PyObject * obj0 = 0 ;
31347 PyObject * obj1 = 0 ;
31348 PyObject * obj2 = 0 ;
31349 char * kwnames[] = {
31350 (char *) "self",(char *) "start",(char *) "data", NULL
31351 };
31352
31353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31355 if (!SWIG_IsOK(res1)) {
31356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31357 }
31358 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31359 ecode2 = SWIG_AsVal_long(obj1, &val2);
31360 if (!SWIG_IsOK(ecode2)) {
31361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31362 }
31363 arg2 = static_cast< long >(val2);
31364 ecode3 = SWIG_AsVal_long(obj2, &val3);
31365 if (!SWIG_IsOK(ecode3)) {
31366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31367 }
31368 arg3 = static_cast< long >(val3);
31369 {
31370 PyThreadState* __tstate = wxPyBeginAllowThreads();
31371 result = (long)(arg1)->FindItem(arg2,arg3);
31372 wxPyEndAllowThreads(__tstate);
31373 if (PyErr_Occurred()) SWIG_fail;
31374 }
31375 resultobj = SWIG_From_long(static_cast< long >(result));
31376 return resultobj;
31377fail:
31378 return NULL;
31379}
31380
31381
31382SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31383 PyObject *resultobj = 0;
31384 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31385 long arg2 ;
31386 wxPoint *arg3 = 0 ;
31387 int arg4 ;
31388 long result;
31389 void *argp1 = 0 ;
31390 int res1 = 0 ;
31391 long val2 ;
31392 int ecode2 = 0 ;
31393 wxPoint temp3 ;
31394 int val4 ;
31395 int ecode4 = 0 ;
31396 PyObject * obj0 = 0 ;
31397 PyObject * obj1 = 0 ;
31398 PyObject * obj2 = 0 ;
31399 PyObject * obj3 = 0 ;
31400 char * kwnames[] = {
31401 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31402 };
31403
31404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31406 if (!SWIG_IsOK(res1)) {
31407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31408 }
31409 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31410 ecode2 = SWIG_AsVal_long(obj1, &val2);
31411 if (!SWIG_IsOK(ecode2)) {
31412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31413 }
31414 arg2 = static_cast< long >(val2);
31415 {
31416 arg3 = &temp3;
31417 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31418 }
31419 ecode4 = SWIG_AsVal_int(obj3, &val4);
31420 if (!SWIG_IsOK(ecode4)) {
31421 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31422 }
31423 arg4 = static_cast< int >(val4);
31424 {
31425 PyThreadState* __tstate = wxPyBeginAllowThreads();
31426 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31427 wxPyEndAllowThreads(__tstate);
31428 if (PyErr_Occurred()) SWIG_fail;
31429 }
31430 resultobj = SWIG_From_long(static_cast< long >(result));
31431 return resultobj;
31432fail:
31433 return NULL;
31434}
31435
31436
31437SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31438 PyObject *resultobj = 0;
31439 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31440 wxPoint *arg2 = 0 ;
31441 int *arg3 = 0 ;
31442 long result;
31443 void *argp1 = 0 ;
31444 int res1 = 0 ;
31445 wxPoint temp2 ;
31446 int temp3 ;
31447 int res3 = SWIG_TMPOBJ ;
31448 PyObject * obj0 = 0 ;
31449 PyObject * obj1 = 0 ;
31450 char * kwnames[] = {
31451 (char *) "self",(char *) "point", NULL
31452 };
31453
31454 arg3 = &temp3;
31455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31457 if (!SWIG_IsOK(res1)) {
31458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31459 }
31460 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31461 {
31462 arg2 = &temp2;
31463 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31464 }
31465 {
31466 PyThreadState* __tstate = wxPyBeginAllowThreads();
31467 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31468 wxPyEndAllowThreads(__tstate);
31469 if (PyErr_Occurred()) SWIG_fail;
31470 }
31471 resultobj = SWIG_From_long(static_cast< long >(result));
31472 if (SWIG_IsTmpObj(res3)) {
31473 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31474 } else {
31475 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31476 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31477 }
31478 return resultobj;
31479fail:
31480 return NULL;
31481}
31482
31483
704eda0c
RD
31484SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31485 PyObject *resultobj = 0;
31486 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31487 wxPoint *arg2 = 0 ;
31488 int *arg3 = 0 ;
31489 long *arg4 = (long *) 0 ;
31490 long result;
31491 void *argp1 = 0 ;
31492 int res1 = 0 ;
31493 wxPoint temp2 ;
31494 int temp3 ;
31495 int res3 = SWIG_TMPOBJ ;
31496 long temp4 ;
31497 int res4 = SWIG_TMPOBJ ;
31498 PyObject * obj0 = 0 ;
31499 PyObject * obj1 = 0 ;
31500 char * kwnames[] = {
31501 (char *) "self",(char *) "point", NULL
31502 };
31503
31504 arg3 = &temp3;
31505 arg4 = &temp4;
31506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31508 if (!SWIG_IsOK(res1)) {
31509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31510 }
31511 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31512 {
31513 arg2 = &temp2;
31514 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31515 }
31516 {
31517 PyThreadState* __tstate = wxPyBeginAllowThreads();
31518 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31519 wxPyEndAllowThreads(__tstate);
31520 if (PyErr_Occurred()) SWIG_fail;
31521 }
31522 resultobj = SWIG_From_long(static_cast< long >(result));
31523 if (SWIG_IsTmpObj(res3)) {
31524 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31525 } else {
31526 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31527 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31528 }
31529 if (SWIG_IsTmpObj(res4)) {
31530 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31531 } else {
31532 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31533 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31534 }
31535 return resultobj;
31536fail:
31537 return NULL;
31538}
31539
31540
554f62e9
RD
31541SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31542 PyObject *resultobj = 0;
31543 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31544 wxListItem *arg2 = 0 ;
31545 long result;
31546 void *argp1 = 0 ;
31547 int res1 = 0 ;
31548 void *argp2 = 0 ;
31549 int res2 = 0 ;
31550 PyObject * obj0 = 0 ;
31551 PyObject * obj1 = 0 ;
31552 char * kwnames[] = {
31553 (char *) "self",(char *) "info", NULL
31554 };
31555
31556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31558 if (!SWIG_IsOK(res1)) {
31559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31560 }
31561 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31562 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31563 if (!SWIG_IsOK(res2)) {
31564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31565 }
31566 if (!argp2) {
31567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31568 }
31569 arg2 = reinterpret_cast< wxListItem * >(argp2);
31570 {
31571 PyThreadState* __tstate = wxPyBeginAllowThreads();
31572 result = (long)(arg1)->InsertItem(*arg2);
31573 wxPyEndAllowThreads(__tstate);
31574 if (PyErr_Occurred()) SWIG_fail;
31575 }
31576 resultobj = SWIG_From_long(static_cast< long >(result));
31577 return resultobj;
31578fail:
31579 return NULL;
31580}
31581
31582
31583SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31584 PyObject *resultobj = 0;
31585 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31586 long arg2 ;
31587 wxString *arg3 = 0 ;
31588 int arg4 = (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 PyObject * obj0 = 0 ;
31598 PyObject * obj1 = 0 ;
31599 PyObject * obj2 = 0 ;
31600 PyObject * obj3 = 0 ;
31601 char * kwnames[] = {
31602 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31603 };
31604
31605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31607 if (!SWIG_IsOK(res1)) {
31608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31609 }
31610 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31611 ecode2 = SWIG_AsVal_long(obj1, &val2);
31612 if (!SWIG_IsOK(ecode2)) {
31613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31614 }
31615 arg2 = static_cast< long >(val2);
31616 {
31617 arg3 = wxString_in_helper(obj2);
31618 if (arg3 == NULL) SWIG_fail;
31619 temp3 = true;
31620 }
31621 if (obj3) {
31622 ecode4 = SWIG_AsVal_int(obj3, &val4);
31623 if (!SWIG_IsOK(ecode4)) {
31624 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31625 }
31626 arg4 = static_cast< int >(val4);
31627 }
31628 {
31629 PyThreadState* __tstate = wxPyBeginAllowThreads();
31630 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31631 wxPyEndAllowThreads(__tstate);
31632 if (PyErr_Occurred()) SWIG_fail;
31633 }
31634 resultobj = SWIG_From_long(static_cast< long >(result));
31635 {
31636 if (temp3)
31637 delete arg3;
31638 }
31639 return resultobj;
31640fail:
31641 {
31642 if (temp3)
31643 delete arg3;
31644 }
31645 return NULL;
31646}
31647
31648
31649SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31650 PyObject *resultobj = 0;
31651 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31652 long arg2 ;
31653 int arg3 ;
31654 long result;
31655 void *argp1 = 0 ;
31656 int res1 = 0 ;
31657 long val2 ;
31658 int ecode2 = 0 ;
31659 int val3 ;
31660 int ecode3 = 0 ;
31661 PyObject * obj0 = 0 ;
31662 PyObject * obj1 = 0 ;
31663 PyObject * obj2 = 0 ;
31664 char * kwnames[] = {
31665 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31666 };
31667
31668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31670 if (!SWIG_IsOK(res1)) {
31671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31672 }
31673 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31674 ecode2 = SWIG_AsVal_long(obj1, &val2);
31675 if (!SWIG_IsOK(ecode2)) {
31676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31677 }
31678 arg2 = static_cast< long >(val2);
31679 ecode3 = SWIG_AsVal_int(obj2, &val3);
31680 if (!SWIG_IsOK(ecode3)) {
31681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31682 }
31683 arg3 = static_cast< int >(val3);
31684 {
31685 PyThreadState* __tstate = wxPyBeginAllowThreads();
31686 result = (long)(arg1)->InsertItem(arg2,arg3);
31687 wxPyEndAllowThreads(__tstate);
31688 if (PyErr_Occurred()) SWIG_fail;
31689 }
31690 resultobj = SWIG_From_long(static_cast< long >(result));
31691 return resultobj;
31692fail:
31693 return NULL;
31694}
31695
31696
31697SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31698 PyObject *resultobj = 0;
31699 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31700 long arg2 ;
31701 wxString *arg3 = 0 ;
31702 int arg4 ;
31703 long result;
31704 void *argp1 = 0 ;
31705 int res1 = 0 ;
31706 long val2 ;
31707 int ecode2 = 0 ;
31708 bool temp3 = false ;
31709 int val4 ;
31710 int ecode4 = 0 ;
31711 PyObject * obj0 = 0 ;
31712 PyObject * obj1 = 0 ;
31713 PyObject * obj2 = 0 ;
31714 PyObject * obj3 = 0 ;
31715 char * kwnames[] = {
31716 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31717 };
31718
31719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31721 if (!SWIG_IsOK(res1)) {
31722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31723 }
31724 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31725 ecode2 = SWIG_AsVal_long(obj1, &val2);
31726 if (!SWIG_IsOK(ecode2)) {
31727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31728 }
31729 arg2 = static_cast< long >(val2);
31730 {
31731 arg3 = wxString_in_helper(obj2);
31732 if (arg3 == NULL) SWIG_fail;
31733 temp3 = true;
31734 }
31735 ecode4 = SWIG_AsVal_int(obj3, &val4);
31736 if (!SWIG_IsOK(ecode4)) {
31737 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31738 }
31739 arg4 = static_cast< int >(val4);
31740 {
31741 PyThreadState* __tstate = wxPyBeginAllowThreads();
31742 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31743 wxPyEndAllowThreads(__tstate);
31744 if (PyErr_Occurred()) SWIG_fail;
31745 }
31746 resultobj = SWIG_From_long(static_cast< long >(result));
31747 {
31748 if (temp3)
31749 delete arg3;
31750 }
31751 return resultobj;
31752fail:
31753 {
31754 if (temp3)
31755 delete arg3;
31756 }
31757 return NULL;
31758}
31759
31760
31761SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31762 PyObject *resultobj = 0;
31763 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31764 long arg2 ;
31765 wxListItem *arg3 = 0 ;
31766 long result;
31767 void *argp1 = 0 ;
31768 int res1 = 0 ;
31769 long val2 ;
31770 int ecode2 = 0 ;
31771 void *argp3 = 0 ;
31772 int res3 = 0 ;
31773 PyObject * obj0 = 0 ;
31774 PyObject * obj1 = 0 ;
31775 PyObject * obj2 = 0 ;
31776 char * kwnames[] = {
31777 (char *) "self",(char *) "col",(char *) "info", NULL
31778 };
31779
31780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31782 if (!SWIG_IsOK(res1)) {
31783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31784 }
31785 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31786 ecode2 = SWIG_AsVal_long(obj1, &val2);
31787 if (!SWIG_IsOK(ecode2)) {
31788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31789 }
31790 arg2 = static_cast< long >(val2);
31791 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31792 if (!SWIG_IsOK(res3)) {
31793 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31794 }
31795 if (!argp3) {
31796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31797 }
31798 arg3 = reinterpret_cast< wxListItem * >(argp3);
31799 {
31800 PyThreadState* __tstate = wxPyBeginAllowThreads();
31801 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31802 wxPyEndAllowThreads(__tstate);
31803 if (PyErr_Occurred()) SWIG_fail;
31804 }
31805 resultobj = SWIG_From_long(static_cast< long >(result));
31806 return resultobj;
31807fail:
31808 return NULL;
31809}
31810
31811
31812SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31813 PyObject *resultobj = 0;
31814 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31815 long arg2 ;
31816 wxString *arg3 = 0 ;
31817 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31818 int arg5 = (int) -1 ;
31819 long result;
31820 void *argp1 = 0 ;
31821 int res1 = 0 ;
31822 long val2 ;
31823 int ecode2 = 0 ;
31824 bool temp3 = false ;
31825 int val4 ;
31826 int ecode4 = 0 ;
31827 int val5 ;
31828 int ecode5 = 0 ;
31829 PyObject * obj0 = 0 ;
31830 PyObject * obj1 = 0 ;
31831 PyObject * obj2 = 0 ;
31832 PyObject * obj3 = 0 ;
31833 PyObject * obj4 = 0 ;
31834 char * kwnames[] = {
31835 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31836 };
31837
31838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31840 if (!SWIG_IsOK(res1)) {
31841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31842 }
31843 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31844 ecode2 = SWIG_AsVal_long(obj1, &val2);
31845 if (!SWIG_IsOK(ecode2)) {
31846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31847 }
31848 arg2 = static_cast< long >(val2);
31849 {
31850 arg3 = wxString_in_helper(obj2);
31851 if (arg3 == NULL) SWIG_fail;
31852 temp3 = true;
31853 }
31854 if (obj3) {
31855 ecode4 = SWIG_AsVal_int(obj3, &val4);
31856 if (!SWIG_IsOK(ecode4)) {
31857 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31858 }
31859 arg4 = static_cast< int >(val4);
31860 }
31861 if (obj4) {
31862 ecode5 = SWIG_AsVal_int(obj4, &val5);
31863 if (!SWIG_IsOK(ecode5)) {
31864 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31865 }
31866 arg5 = static_cast< int >(val5);
31867 }
31868 {
31869 PyThreadState* __tstate = wxPyBeginAllowThreads();
31870 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31871 wxPyEndAllowThreads(__tstate);
31872 if (PyErr_Occurred()) SWIG_fail;
31873 }
31874 resultobj = SWIG_From_long(static_cast< long >(result));
31875 {
31876 if (temp3)
31877 delete arg3;
31878 }
31879 return resultobj;
31880fail:
31881 {
31882 if (temp3)
31883 delete arg3;
31884 }
31885 return NULL;
31886}
31887
31888
31889SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31890 PyObject *resultobj = 0;
31891 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31892 long arg2 ;
31893 void *argp1 = 0 ;
31894 int res1 = 0 ;
31895 long val2 ;
31896 int ecode2 = 0 ;
31897 PyObject * obj0 = 0 ;
31898 PyObject * obj1 = 0 ;
31899 char * kwnames[] = {
31900 (char *) "self",(char *) "count", NULL
31901 };
31902
31903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31905 if (!SWIG_IsOK(res1)) {
31906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31907 }
31908 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31909 ecode2 = SWIG_AsVal_long(obj1, &val2);
31910 if (!SWIG_IsOK(ecode2)) {
31911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31912 }
31913 arg2 = static_cast< long >(val2);
31914 {
31915 PyThreadState* __tstate = wxPyBeginAllowThreads();
31916 (arg1)->SetItemCount(arg2);
31917 wxPyEndAllowThreads(__tstate);
31918 if (PyErr_Occurred()) SWIG_fail;
31919 }
31920 resultobj = SWIG_Py_Void();
31921 return resultobj;
31922fail:
31923 return NULL;
31924}
31925
31926
31927SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31928 PyObject *resultobj = 0;
31929 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31930 int arg2 ;
31931 int arg3 ;
31932 bool result;
31933 void *argp1 = 0 ;
31934 int res1 = 0 ;
31935 int val2 ;
31936 int ecode2 = 0 ;
31937 int val3 ;
31938 int ecode3 = 0 ;
31939 PyObject * obj0 = 0 ;
31940 PyObject * obj1 = 0 ;
31941 PyObject * obj2 = 0 ;
31942 char * kwnames[] = {
31943 (char *) "self",(char *) "dx",(char *) "dy", NULL
31944 };
31945
31946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31948 if (!SWIG_IsOK(res1)) {
31949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31950 }
31951 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31952 ecode2 = SWIG_AsVal_int(obj1, &val2);
31953 if (!SWIG_IsOK(ecode2)) {
31954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31955 }
31956 arg2 = static_cast< int >(val2);
31957 ecode3 = SWIG_AsVal_int(obj2, &val3);
31958 if (!SWIG_IsOK(ecode3)) {
31959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31960 }
31961 arg3 = static_cast< int >(val3);
31962 {
31963 PyThreadState* __tstate = wxPyBeginAllowThreads();
31964 result = (bool)(arg1)->ScrollList(arg2,arg3);
31965 wxPyEndAllowThreads(__tstate);
31966 if (PyErr_Occurred()) SWIG_fail;
31967 }
31968 {
31969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31970 }
31971 return resultobj;
31972fail:
31973 return NULL;
31974}
31975
31976
31977SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31978 PyObject *resultobj = 0;
31979 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31980 long arg2 ;
31981 wxColour *arg3 = 0 ;
31982 void *argp1 = 0 ;
31983 int res1 = 0 ;
31984 long val2 ;
31985 int ecode2 = 0 ;
31986 wxColour temp3 ;
31987 PyObject * obj0 = 0 ;
31988 PyObject * obj1 = 0 ;
31989 PyObject * obj2 = 0 ;
31990 char * kwnames[] = {
31991 (char *) "self",(char *) "item",(char *) "col", NULL
31992 };
31993
31994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31996 if (!SWIG_IsOK(res1)) {
31997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31998 }
31999 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32000 ecode2 = SWIG_AsVal_long(obj1, &val2);
32001 if (!SWIG_IsOK(ecode2)) {
32002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
32003 }
32004 arg2 = static_cast< long >(val2);
32005 {
32006 arg3 = &temp3;
32007 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32008 }
32009 {
32010 PyThreadState* __tstate = wxPyBeginAllowThreads();
32011 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
32012 wxPyEndAllowThreads(__tstate);
32013 if (PyErr_Occurred()) SWIG_fail;
32014 }
32015 resultobj = SWIG_Py_Void();
32016 return resultobj;
32017fail:
32018 return NULL;
32019}
32020
32021
32022SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32023 PyObject *resultobj = 0;
32024 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32025 long arg2 ;
32026 wxColour result;
32027 void *argp1 = 0 ;
32028 int res1 = 0 ;
32029 long val2 ;
32030 int ecode2 = 0 ;
32031 PyObject * obj0 = 0 ;
32032 PyObject * obj1 = 0 ;
32033 char * kwnames[] = {
32034 (char *) "self",(char *) "item", NULL
32035 };
32036
32037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
32038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32039 if (!SWIG_IsOK(res1)) {
32040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32041 }
32042 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32043 ecode2 = SWIG_AsVal_long(obj1, &val2);
32044 if (!SWIG_IsOK(ecode2)) {
32045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
32046 }
32047 arg2 = static_cast< long >(val2);
32048 {
32049 PyThreadState* __tstate = wxPyBeginAllowThreads();
32050 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
32051 wxPyEndAllowThreads(__tstate);
32052 if (PyErr_Occurred()) SWIG_fail;
32053 }
32054 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32055 return resultobj;
32056fail:
32057 return NULL;
32058}
32059
32060
32061SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32062 PyObject *resultobj = 0;
32063 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32064 long arg2 ;
32065 wxColour *arg3 = 0 ;
32066 void *argp1 = 0 ;
32067 int res1 = 0 ;
32068 long val2 ;
32069 int ecode2 = 0 ;
32070 wxColour temp3 ;
32071 PyObject * obj0 = 0 ;
32072 PyObject * obj1 = 0 ;
32073 PyObject * obj2 = 0 ;
32074 char * kwnames[] = {
32075 (char *) "self",(char *) "item",(char *) "col", NULL
32076 };
32077
32078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32080 if (!SWIG_IsOK(res1)) {
32081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32082 }
32083 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32084 ecode2 = SWIG_AsVal_long(obj1, &val2);
32085 if (!SWIG_IsOK(ecode2)) {
32086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
32087 }
32088 arg2 = static_cast< long >(val2);
32089 {
32090 arg3 = &temp3;
32091 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32092 }
32093 {
32094 PyThreadState* __tstate = wxPyBeginAllowThreads();
32095 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
32096 wxPyEndAllowThreads(__tstate);
32097 if (PyErr_Occurred()) SWIG_fail;
32098 }
32099 resultobj = SWIG_Py_Void();
32100 return resultobj;
32101fail:
32102 return NULL;
32103}
32104
32105
32106SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32107 PyObject *resultobj = 0;
32108 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32109 long arg2 ;
32110 wxColour result;
32111 void *argp1 = 0 ;
32112 int res1 = 0 ;
32113 long val2 ;
32114 int ecode2 = 0 ;
32115 PyObject * obj0 = 0 ;
32116 PyObject * obj1 = 0 ;
32117 char * kwnames[] = {
32118 (char *) "self",(char *) "item", NULL
32119 };
32120
32121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
32122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32123 if (!SWIG_IsOK(res1)) {
32124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32125 }
32126 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32127 ecode2 = SWIG_AsVal_long(obj1, &val2);
32128 if (!SWIG_IsOK(ecode2)) {
32129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
32130 }
32131 arg2 = static_cast< long >(val2);
32132 {
32133 PyThreadState* __tstate = wxPyBeginAllowThreads();
32134 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
32135 wxPyEndAllowThreads(__tstate);
32136 if (PyErr_Occurred()) SWIG_fail;
32137 }
32138 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32139 return resultobj;
32140fail:
32141 return NULL;
32142}
32143
32144
32145SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32146 PyObject *resultobj = 0;
32147 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32148 long arg2 ;
32149 wxFont *arg3 = 0 ;
32150 void *argp1 = 0 ;
32151 int res1 = 0 ;
32152 long val2 ;
32153 int ecode2 = 0 ;
32154 void *argp3 = 0 ;
32155 int res3 = 0 ;
32156 PyObject * obj0 = 0 ;
32157 PyObject * obj1 = 0 ;
32158 PyObject * obj2 = 0 ;
32159 char * kwnames[] = {
32160 (char *) "self",(char *) "item",(char *) "f", NULL
32161 };
32162
32163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32165 if (!SWIG_IsOK(res1)) {
32166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32167 }
32168 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32169 ecode2 = SWIG_AsVal_long(obj1, &val2);
32170 if (!SWIG_IsOK(ecode2)) {
32171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
32172 }
32173 arg2 = static_cast< long >(val2);
32174 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
32175 if (!SWIG_IsOK(res3)) {
32176 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32177 }
32178 if (!argp3) {
32179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32180 }
32181 arg3 = reinterpret_cast< wxFont * >(argp3);
32182 {
32183 PyThreadState* __tstate = wxPyBeginAllowThreads();
32184 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
32185 wxPyEndAllowThreads(__tstate);
32186 if (PyErr_Occurred()) SWIG_fail;
32187 }
32188 resultobj = SWIG_Py_Void();
32189 return resultobj;
32190fail:
32191 return NULL;
32192}
32193
32194
32195SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32196 PyObject *resultobj = 0;
32197 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32198 long arg2 ;
32199 wxFont result;
32200 void *argp1 = 0 ;
32201 int res1 = 0 ;
32202 long val2 ;
32203 int ecode2 = 0 ;
32204 PyObject * obj0 = 0 ;
32205 PyObject * obj1 = 0 ;
32206 char * kwnames[] = {
32207 (char *) "self",(char *) "item", NULL
32208 };
32209
32210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
32211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32212 if (!SWIG_IsOK(res1)) {
32213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32214 }
32215 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32216 ecode2 = SWIG_AsVal_long(obj1, &val2);
32217 if (!SWIG_IsOK(ecode2)) {
32218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
32219 }
32220 arg2 = static_cast< long >(val2);
32221 {
32222 PyThreadState* __tstate = wxPyBeginAllowThreads();
32223 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
32224 wxPyEndAllowThreads(__tstate);
32225 if (PyErr_Occurred()) SWIG_fail;
32226 }
32227 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
32228 return resultobj;
32229fail:
32230 return NULL;
32231}
32232
32233
32234SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32235 PyObject *resultobj = 0;
32236 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32237 PyObject *arg2 = (PyObject *) 0 ;
32238 bool result;
32239 void *argp1 = 0 ;
32240 int res1 = 0 ;
32241 PyObject * obj0 = 0 ;
32242 PyObject * obj1 = 0 ;
32243 char * kwnames[] = {
32244 (char *) "self",(char *) "func", NULL
32245 };
32246
32247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32249 if (!SWIG_IsOK(res1)) {
32250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32251 }
32252 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32253 arg2 = obj1;
32254 {
32255 PyThreadState* __tstate = wxPyBeginAllowThreads();
32256 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32257 wxPyEndAllowThreads(__tstate);
32258 if (PyErr_Occurred()) SWIG_fail;
32259 }
32260 {
32261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32262 }
32263 return resultobj;
32264fail:
32265 return NULL;
1fbf26be
RD
32266}
32267
32268
554f62e9
RD
32269SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32270 PyObject *resultobj = 0;
32271 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32272 wxWindow *result = 0 ;
32273 void *argp1 = 0 ;
32274 int res1 = 0 ;
32275 PyObject *swig_obj[1] ;
32276
32277 if (!args) SWIG_fail;
32278 swig_obj[0] = args;
32279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32280 if (!SWIG_IsOK(res1)) {
32281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32282 }
32283 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32284 {
32285 PyThreadState* __tstate = wxPyBeginAllowThreads();
32286 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32287 wxPyEndAllowThreads(__tstate);
32288 if (PyErr_Occurred()) SWIG_fail;
32289 }
32290 {
32291 resultobj = wxPyMake_wxObject(result, 0);
32292 }
32293 return resultobj;
32294fail:
32295 return NULL;
32296}
32297
32298
32299SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32300 PyObject *resultobj = 0;
32301 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32302 SwigValueWrapper<wxVisualAttributes > result;
32303 int val1 ;
32304 int ecode1 = 0 ;
32305 PyObject * obj0 = 0 ;
32306 char * kwnames[] = {
32307 (char *) "variant", NULL
32308 };
32309
32310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32311 if (obj0) {
32312 ecode1 = SWIG_AsVal_int(obj0, &val1);
32313 if (!SWIG_IsOK(ecode1)) {
32314 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32315 }
32316 arg1 = static_cast< wxWindowVariant >(val1);
32317 }
32318 {
32319 if (!wxPyCheckForApp()) SWIG_fail;
32320 PyThreadState* __tstate = wxPyBeginAllowThreads();
32321 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32322 wxPyEndAllowThreads(__tstate);
32323 if (PyErr_Occurred()) SWIG_fail;
32324 }
32325 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32326 return resultobj;
32327fail:
32328 return NULL;
32329}
32330
32331
32332SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32333 PyObject *obj;
32334 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32335 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32336 return SWIG_Py_Void();
32337}
32338
32339SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32340 return SWIG_Python_InitShadowInstance(args);
32341}
32342
32343SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32344 PyObject *resultobj = 0;
32345 wxWindow *arg1 = (wxWindow *) 0 ;
32346 int arg2 = (int) -1 ;
32347 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32348 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32349 wxSize const &arg4_defvalue = wxDefaultSize ;
32350 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32351 long arg5 = (long) wxLC_REPORT ;
32352 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32353 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32354 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32355 wxString *arg7 = (wxString *) &arg7_defvalue ;
32356 wxListView *result = 0 ;
32357 void *argp1 = 0 ;
32358 int res1 = 0 ;
32359 int val2 ;
32360 int ecode2 = 0 ;
32361 wxPoint temp3 ;
32362 wxSize temp4 ;
32363 long val5 ;
32364 int ecode5 = 0 ;
32365 void *argp6 = 0 ;
32366 int res6 = 0 ;
32367 bool temp7 = false ;
32368 PyObject * obj0 = 0 ;
32369 PyObject * obj1 = 0 ;
32370 PyObject * obj2 = 0 ;
32371 PyObject * obj3 = 0 ;
32372 PyObject * obj4 = 0 ;
32373 PyObject * obj5 = 0 ;
32374 PyObject * obj6 = 0 ;
32375 char * kwnames[] = {
32376 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32377 };
32378
32379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32381 if (!SWIG_IsOK(res1)) {
32382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32383 }
32384 arg1 = reinterpret_cast< wxWindow * >(argp1);
32385 if (obj1) {
32386 ecode2 = SWIG_AsVal_int(obj1, &val2);
32387 if (!SWIG_IsOK(ecode2)) {
32388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32389 }
32390 arg2 = static_cast< int >(val2);
32391 }
32392 if (obj2) {
32393 {
32394 arg3 = &temp3;
32395 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 32396 }
554f62e9
RD
32397 }
32398 if (obj3) {
32399 {
32400 arg4 = &temp4;
32401 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 32402 }
554f62e9
RD
32403 }
32404 if (obj4) {
32405 ecode5 = SWIG_AsVal_long(obj4, &val5);
32406 if (!SWIG_IsOK(ecode5)) {
32407 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32408 }
32409 arg5 = static_cast< long >(val5);
32410 }
32411 if (obj5) {
32412 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32413 if (!SWIG_IsOK(res6)) {
32414 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 32415 }
554f62e9
RD
32416 if (!argp6) {
32417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 32418 }
554f62e9
RD
32419 arg6 = reinterpret_cast< wxValidator * >(argp6);
32420 }
32421 if (obj6) {
d55e5bfc 32422 {
554f62e9
RD
32423 arg7 = wxString_in_helper(obj6);
32424 if (arg7 == NULL) SWIG_fail;
32425 temp7 = true;
d55e5bfc 32426 }
554f62e9
RD
32427 }
32428 {
32429 if (!wxPyCheckForApp()) SWIG_fail;
32430 PyThreadState* __tstate = wxPyBeginAllowThreads();
32431 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32432 wxPyEndAllowThreads(__tstate);
32433 if (PyErr_Occurred()) SWIG_fail;
32434 }
32435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32436 {
32437 if (temp7)
32438 delete arg7;
32439 }
32440 return resultobj;
32441fail:
32442 {
32443 if (temp7)
32444 delete arg7;
32445 }
32446 return NULL;
d55e5bfc
RD
32447}
32448
32449
554f62e9
RD
32450SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32451 PyObject *resultobj = 0;
32452 wxListView *result = 0 ;
32453
32454 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32455 {
32456 if (!wxPyCheckForApp()) SWIG_fail;
32457 PyThreadState* __tstate = wxPyBeginAllowThreads();
32458 result = (wxListView *)new wxListView();
32459 wxPyEndAllowThreads(__tstate);
32460 if (PyErr_Occurred()) SWIG_fail;
32461 }
32462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32463 return resultobj;
32464fail:
32465 return NULL;
32466}
32467
32468
32469SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32470 PyObject *resultobj = 0;
32471 wxListView *arg1 = (wxListView *) 0 ;
32472 wxWindow *arg2 = (wxWindow *) 0 ;
32473 int arg3 = (int) -1 ;
32474 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32475 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32476 wxSize const &arg5_defvalue = wxDefaultSize ;
32477 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32478 long arg6 = (long) wxLC_REPORT ;
32479 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32480 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32481 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32482 wxString *arg8 = (wxString *) &arg8_defvalue ;
32483 bool result;
32484 void *argp1 = 0 ;
32485 int res1 = 0 ;
32486 void *argp2 = 0 ;
32487 int res2 = 0 ;
32488 int val3 ;
32489 int ecode3 = 0 ;
32490 wxPoint temp4 ;
32491 wxSize temp5 ;
32492 long val6 ;
32493 int ecode6 = 0 ;
32494 void *argp7 = 0 ;
32495 int res7 = 0 ;
32496 bool temp8 = false ;
32497 PyObject * obj0 = 0 ;
32498 PyObject * obj1 = 0 ;
32499 PyObject * obj2 = 0 ;
32500 PyObject * obj3 = 0 ;
32501 PyObject * obj4 = 0 ;
32502 PyObject * obj5 = 0 ;
32503 PyObject * obj6 = 0 ;
32504 PyObject * obj7 = 0 ;
32505 char * kwnames[] = {
32506 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32507 };
32508
32509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32511 if (!SWIG_IsOK(res1)) {
32512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32513 }
32514 arg1 = reinterpret_cast< wxListView * >(argp1);
32515 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32516 if (!SWIG_IsOK(res2)) {
32517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32518 }
32519 arg2 = reinterpret_cast< wxWindow * >(argp2);
32520 if (obj2) {
32521 ecode3 = SWIG_AsVal_int(obj2, &val3);
32522 if (!SWIG_IsOK(ecode3)) {
32523 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32524 }
32525 arg3 = static_cast< int >(val3);
32526 }
32527 if (obj3) {
093d3ff1 32528 {
554f62e9
RD
32529 arg4 = &temp4;
32530 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
ae8162c8 32531 }
554f62e9
RD
32532 }
32533 if (obj4) {
32534 {
32535 arg5 = &temp5;
32536 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
ae8162c8 32537 }
554f62e9
RD
32538 }
32539 if (obj5) {
32540 ecode6 = SWIG_AsVal_long(obj5, &val6);
32541 if (!SWIG_IsOK(ecode6)) {
32542 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32543 }
32544 arg6 = static_cast< long >(val6);
32545 }
32546 if (obj6) {
32547 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32548 if (!SWIG_IsOK(res7)) {
32549 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
ae8162c8 32550 }
554f62e9
RD
32551 if (!argp7) {
32552 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
ae8162c8 32553 }
554f62e9
RD
32554 arg7 = reinterpret_cast< wxValidator * >(argp7);
32555 }
32556 if (obj7) {
ae8162c8 32557 {
554f62e9
RD
32558 arg8 = wxString_in_helper(obj7);
32559 if (arg8 == NULL) SWIG_fail;
32560 temp8 = true;
ae8162c8 32561 }
554f62e9
RD
32562 }
32563 {
32564 PyThreadState* __tstate = wxPyBeginAllowThreads();
32565 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32566 wxPyEndAllowThreads(__tstate);
32567 if (PyErr_Occurred()) SWIG_fail;
32568 }
32569 {
32570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32571 }
32572 {
32573 if (temp8)
32574 delete arg8;
32575 }
32576 return resultobj;
32577fail:
32578 {
32579 if (temp8)
32580 delete arg8;
32581 }
32582 return NULL;
32583}
32584
32585
32586SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32587 PyObject *resultobj = 0;
32588 wxListView *arg1 = (wxListView *) 0 ;
32589 long arg2 ;
32590 bool arg3 = (bool) true ;
32591 void *argp1 = 0 ;
32592 int res1 = 0 ;
32593 long val2 ;
32594 int ecode2 = 0 ;
32595 bool val3 ;
32596 int ecode3 = 0 ;
32597 PyObject * obj0 = 0 ;
32598 PyObject * obj1 = 0 ;
32599 PyObject * obj2 = 0 ;
32600 char * kwnames[] = {
32601 (char *) "self",(char *) "n",(char *) "on", NULL
32602 };
32603
32604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32606 if (!SWIG_IsOK(res1)) {
32607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32608 }
32609 arg1 = reinterpret_cast< wxListView * >(argp1);
32610 ecode2 = SWIG_AsVal_long(obj1, &val2);
32611 if (!SWIG_IsOK(ecode2)) {
32612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32613 }
32614 arg2 = static_cast< long >(val2);
32615 if (obj2) {
32616 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32617 if (!SWIG_IsOK(ecode3)) {
32618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32619 }
32620 arg3 = static_cast< bool >(val3);
32621 }
32622 {
32623 PyThreadState* __tstate = wxPyBeginAllowThreads();
32624 (arg1)->Select(arg2,arg3);
32625 wxPyEndAllowThreads(__tstate);
32626 if (PyErr_Occurred()) SWIG_fail;
32627 }
32628 resultobj = SWIG_Py_Void();
32629 return resultobj;
32630fail:
32631 return NULL;
32632}
32633
32634
32635SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32636 PyObject *resultobj = 0;
32637 wxListView *arg1 = (wxListView *) 0 ;
32638 long arg2 ;
32639 void *argp1 = 0 ;
32640 int res1 = 0 ;
32641 long val2 ;
32642 int ecode2 = 0 ;
32643 PyObject * obj0 = 0 ;
32644 PyObject * obj1 = 0 ;
32645 char * kwnames[] = {
32646 (char *) "self",(char *) "index", NULL
32647 };
32648
32649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32651 if (!SWIG_IsOK(res1)) {
32652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32653 }
32654 arg1 = reinterpret_cast< wxListView * >(argp1);
32655 ecode2 = SWIG_AsVal_long(obj1, &val2);
32656 if (!SWIG_IsOK(ecode2)) {
32657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32658 }
32659 arg2 = static_cast< long >(val2);
32660 {
32661 PyThreadState* __tstate = wxPyBeginAllowThreads();
32662 (arg1)->Focus(arg2);
32663 wxPyEndAllowThreads(__tstate);
32664 if (PyErr_Occurred()) SWIG_fail;
32665 }
32666 resultobj = SWIG_Py_Void();
32667 return resultobj;
32668fail:
32669 return NULL;
ae8162c8
RD
32670}
32671
32672
554f62e9
RD
32673SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32674 PyObject *resultobj = 0;
32675 wxListView *arg1 = (wxListView *) 0 ;
32676 long result;
32677 void *argp1 = 0 ;
32678 int res1 = 0 ;
32679 PyObject *swig_obj[1] ;
32680
32681 if (!args) SWIG_fail;
32682 swig_obj[0] = args;
32683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32684 if (!SWIG_IsOK(res1)) {
32685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32686 }
32687 arg1 = reinterpret_cast< wxListView * >(argp1);
32688 {
32689 PyThreadState* __tstate = wxPyBeginAllowThreads();
32690 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32691 wxPyEndAllowThreads(__tstate);
32692 if (PyErr_Occurred()) SWIG_fail;
32693 }
32694 resultobj = SWIG_From_long(static_cast< long >(result));
32695 return resultobj;
32696fail:
32697 return NULL;
32698}
32699
32700
32701SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32702 PyObject *resultobj = 0;
32703 wxListView *arg1 = (wxListView *) 0 ;
32704 long arg2 ;
32705 long result;
32706 void *argp1 = 0 ;
32707 int res1 = 0 ;
32708 long val2 ;
32709 int ecode2 = 0 ;
32710 PyObject * obj0 = 0 ;
32711 PyObject * obj1 = 0 ;
32712 char * kwnames[] = {
32713 (char *) "self",(char *) "item", NULL
32714 };
32715
32716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32718 if (!SWIG_IsOK(res1)) {
32719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32720 }
32721 arg1 = reinterpret_cast< wxListView * >(argp1);
32722 ecode2 = SWIG_AsVal_long(obj1, &val2);
32723 if (!SWIG_IsOK(ecode2)) {
32724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32725 }
32726 arg2 = static_cast< long >(val2);
32727 {
32728 PyThreadState* __tstate = wxPyBeginAllowThreads();
32729 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32730 wxPyEndAllowThreads(__tstate);
32731 if (PyErr_Occurred()) SWIG_fail;
32732 }
32733 resultobj = SWIG_From_long(static_cast< long >(result));
32734 return resultobj;
32735fail:
32736 return NULL;
ae8162c8
RD
32737}
32738
32739
554f62e9
RD
32740SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32741 PyObject *resultobj = 0;
32742 wxListView *arg1 = (wxListView *) 0 ;
32743 long result;
32744 void *argp1 = 0 ;
32745 int res1 = 0 ;
32746 PyObject *swig_obj[1] ;
32747
32748 if (!args) SWIG_fail;
32749 swig_obj[0] = args;
32750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32751 if (!SWIG_IsOK(res1)) {
32752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32753 }
32754 arg1 = reinterpret_cast< wxListView * >(argp1);
32755 {
32756 PyThreadState* __tstate = wxPyBeginAllowThreads();
32757 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32758 wxPyEndAllowThreads(__tstate);
32759 if (PyErr_Occurred()) SWIG_fail;
32760 }
32761 resultobj = SWIG_From_long(static_cast< long >(result));
32762 return resultobj;
32763fail:
32764 return NULL;
32765}
32766
32767
32768SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32769 PyObject *resultobj = 0;
32770 wxListView *arg1 = (wxListView *) 0 ;
32771 long arg2 ;
32772 bool result;
32773 void *argp1 = 0 ;
32774 int res1 = 0 ;
32775 long val2 ;
32776 int ecode2 = 0 ;
32777 PyObject * obj0 = 0 ;
32778 PyObject * obj1 = 0 ;
32779 char * kwnames[] = {
32780 (char *) "self",(char *) "index", NULL
32781 };
32782
32783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32785 if (!SWIG_IsOK(res1)) {
32786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32787 }
32788 arg1 = reinterpret_cast< wxListView * >(argp1);
32789 ecode2 = SWIG_AsVal_long(obj1, &val2);
32790 if (!SWIG_IsOK(ecode2)) {
32791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32792 }
32793 arg2 = static_cast< long >(val2);
32794 {
32795 PyThreadState* __tstate = wxPyBeginAllowThreads();
32796 result = (bool)(arg1)->IsSelected(arg2);
32797 wxPyEndAllowThreads(__tstate);
32798 if (PyErr_Occurred()) SWIG_fail;
32799 }
32800 {
32801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32802 }
32803 return resultobj;
32804fail:
32805 return NULL;
32806}
32807
32808
32809SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32810 PyObject *resultobj = 0;
32811 wxListView *arg1 = (wxListView *) 0 ;
32812 int arg2 ;
32813 int arg3 ;
32814 void *argp1 = 0 ;
32815 int res1 = 0 ;
32816 int val2 ;
32817 int ecode2 = 0 ;
32818 int val3 ;
32819 int ecode3 = 0 ;
32820 PyObject * obj0 = 0 ;
32821 PyObject * obj1 = 0 ;
32822 PyObject * obj2 = 0 ;
32823 char * kwnames[] = {
32824 (char *) "self",(char *) "col",(char *) "image", NULL
32825 };
32826
32827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32829 if (!SWIG_IsOK(res1)) {
32830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32831 }
32832 arg1 = reinterpret_cast< wxListView * >(argp1);
32833 ecode2 = SWIG_AsVal_int(obj1, &val2);
32834 if (!SWIG_IsOK(ecode2)) {
32835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32836 }
32837 arg2 = static_cast< int >(val2);
32838 ecode3 = SWIG_AsVal_int(obj2, &val3);
32839 if (!SWIG_IsOK(ecode3)) {
32840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32841 }
32842 arg3 = static_cast< int >(val3);
32843 {
32844 PyThreadState* __tstate = wxPyBeginAllowThreads();
32845 (arg1)->SetColumnImage(arg2,arg3);
32846 wxPyEndAllowThreads(__tstate);
32847 if (PyErr_Occurred()) SWIG_fail;
32848 }
32849 resultobj = SWIG_Py_Void();
32850 return resultobj;
32851fail:
32852 return NULL;
32853}
32854
32855
32856SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32857 PyObject *resultobj = 0;
32858 wxListView *arg1 = (wxListView *) 0 ;
32859 int arg2 ;
32860 void *argp1 = 0 ;
32861 int res1 = 0 ;
32862 int val2 ;
32863 int ecode2 = 0 ;
32864 PyObject * obj0 = 0 ;
32865 PyObject * obj1 = 0 ;
32866 char * kwnames[] = {
32867 (char *) "self",(char *) "col", NULL
32868 };
32869
32870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32872 if (!SWIG_IsOK(res1)) {
32873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32874 }
32875 arg1 = reinterpret_cast< wxListView * >(argp1);
32876 ecode2 = SWIG_AsVal_int(obj1, &val2);
32877 if (!SWIG_IsOK(ecode2)) {
32878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32879 }
32880 arg2 = static_cast< int >(val2);
32881 {
32882 PyThreadState* __tstate = wxPyBeginAllowThreads();
32883 (arg1)->ClearColumnImage(arg2);
32884 wxPyEndAllowThreads(__tstate);
32885 if (PyErr_Occurred()) SWIG_fail;
32886 }
32887 resultobj = SWIG_Py_Void();
32888 return resultobj;
32889fail:
32890 return NULL;
ae8162c8
RD
32891}
32892
32893
554f62e9
RD
32894SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32895 PyObject *obj;
32896 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32897 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32898 return SWIG_Py_Void();
70b7a5fe
RD
32899}
32900
554f62e9
RD
32901SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32902 return SWIG_Python_InitShadowInstance(args);
ae8162c8
RD
32903}
32904
554f62e9
RD
32905SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32906 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32907 return 1;
ae8162c8
RD
32908}
32909
32910
554f62e9
RD
32911SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32912 PyObject *pyobj = 0;
32913
32914 {
32915#if wxUSE_UNICODE
32916 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32917#else
32918 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32919#endif
32920 }
32921 return pyobj;
d55e5bfc
RD
32922}
32923
32924
554f62e9
RD
32925SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32926 PyObject *resultobj = 0;
32927 wxTreeItemId *result = 0 ;
32928
32929 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32930 {
32931 PyThreadState* __tstate = wxPyBeginAllowThreads();
32932 result = (wxTreeItemId *)new wxTreeItemId();
32933 wxPyEndAllowThreads(__tstate);
32934 if (PyErr_Occurred()) SWIG_fail;
32935 }
32936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32937 return resultobj;
32938fail:
32939 return NULL;
d55e5bfc
RD
32940}
32941
32942
554f62e9
RD
32943SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32944 PyObject *resultobj = 0;
32945 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32946 void *argp1 = 0 ;
32947 int res1 = 0 ;
32948 PyObject *swig_obj[1] ;
32949
32950 if (!args) SWIG_fail;
32951 swig_obj[0] = args;
32952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32953 if (!SWIG_IsOK(res1)) {
32954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32955 }
32956 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32957 {
32958 PyThreadState* __tstate = wxPyBeginAllowThreads();
32959 delete arg1;
d55e5bfc 32960
554f62e9
RD
32961 wxPyEndAllowThreads(__tstate);
32962 if (PyErr_Occurred()) SWIG_fail;
32963 }
32964 resultobj = SWIG_Py_Void();
32965 return resultobj;
32966fail:
32967 return NULL;
d55e5bfc
RD
32968}
32969
32970
554f62e9
RD
32971SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32972 PyObject *resultobj = 0;
32973 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32974 bool result;
32975 void *argp1 = 0 ;
32976 int res1 = 0 ;
32977 PyObject *swig_obj[1] ;
32978
32979 if (!args) SWIG_fail;
32980 swig_obj[0] = args;
32981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32982 if (!SWIG_IsOK(res1)) {
32983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32984 }
32985 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32986 {
32987 PyThreadState* __tstate = wxPyBeginAllowThreads();
32988 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32989 wxPyEndAllowThreads(__tstate);
32990 if (PyErr_Occurred()) SWIG_fail;
32991 }
32992 {
32993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32994 }
32995 return resultobj;
32996fail:
32997 return NULL;
32998}
32999
33000
33001SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33002 PyObject *resultobj = 0;
33003 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33004 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
33005 bool result;
33006 void *argp1 = 0 ;
33007 int res1 = 0 ;
33008 void *argp2 = 0 ;
33009 int res2 = 0 ;
33010 PyObject * obj0 = 0 ;
33011 PyObject * obj1 = 0 ;
33012 char * kwnames[] = {
33013 (char *) "self",(char *) "other", NULL
33014 };
33015
33016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
33017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33018 if (!SWIG_IsOK(res1)) {
33019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33020 }
33021 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33022 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33023 if (!SWIG_IsOK(res2)) {
33024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
33025 }
33026 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33027 {
33028 PyThreadState* __tstate = wxPyBeginAllowThreads();
33029 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
33030 wxPyEndAllowThreads(__tstate);
33031 if (PyErr_Occurred()) SWIG_fail;
33032 }
33033 {
33034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33035 }
33036 return resultobj;
33037fail:
33038 return NULL;
33039}
33040
33041
33042SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33043 PyObject *resultobj = 0;
33044 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33045 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
33046 bool result;
33047 void *argp1 = 0 ;
33048 int res1 = 0 ;
33049 void *argp2 = 0 ;
33050 int res2 = 0 ;
33051 PyObject * obj0 = 0 ;
33052 PyObject * obj1 = 0 ;
33053 char * kwnames[] = {
33054 (char *) "self",(char *) "other", NULL
33055 };
33056
33057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
33058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33059 if (!SWIG_IsOK(res1)) {
33060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33061 }
33062 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33063 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33064 if (!SWIG_IsOK(res2)) {
33065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
33066 }
33067 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33068 {
33069 PyThreadState* __tstate = wxPyBeginAllowThreads();
33070 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
33071 wxPyEndAllowThreads(__tstate);
33072 if (PyErr_Occurred()) SWIG_fail;
33073 }
33074 {
33075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33076 }
33077 return resultobj;
33078fail:
33079 return NULL;
d55e5bfc
RD
33080}
33081
33082
554f62e9
RD
33083SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33084 PyObject *resultobj = 0;
33085 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33086 void *arg2 = (void *) 0 ;
33087 void *argp1 = 0 ;
33088 int res1 = 0 ;
33089 int res2 ;
33090 PyObject *swig_obj[2] ;
33091
33092 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
33093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33094 if (!SWIG_IsOK(res1)) {
33095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33096 }
33097 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33098 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
33099 if (!SWIG_IsOK(res2)) {
33100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
33101 }
33102 if (arg1) (arg1)->m_pItem = arg2;
33103
33104 resultobj = SWIG_Py_Void();
33105 return resultobj;
33106fail:
33107 return NULL;
d55e5bfc
RD
33108}
33109
33110
554f62e9
RD
33111SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33112 PyObject *resultobj = 0;
33113 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33114 void *result = 0 ;
33115 void *argp1 = 0 ;
33116 int res1 = 0 ;
33117 PyObject *swig_obj[1] ;
33118
33119 if (!args) SWIG_fail;
33120 swig_obj[0] = args;
33121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33122 if (!SWIG_IsOK(res1)) {
33123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33124 }
33125 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33126 result = (void *) ((arg1)->m_pItem);
33127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
33128 return resultobj;
33129fail:
33130 return NULL;
d55e5bfc
RD
33131}
33132
33133
554f62e9
RD
33134SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33135 PyObject *obj;
33136 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33137 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
33138 return SWIG_Py_Void();
d55e5bfc
RD
33139}
33140
554f62e9
RD
33141SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33142 return SWIG_Python_InitShadowInstance(args);
33143}
d55e5bfc 33144
554f62e9
RD
33145SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33146 PyObject *resultobj = 0;
33147 PyObject *arg1 = (PyObject *) NULL ;
33148 wxPyTreeItemData *result = 0 ;
33149 PyObject * obj0 = 0 ;
33150 char * kwnames[] = {
33151 (char *) "obj", NULL
33152 };
33153
33154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
33155 if (obj0) {
33156 arg1 = obj0;
33157 }
33158 {
33159 PyThreadState* __tstate = wxPyBeginAllowThreads();
33160 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
33161 wxPyEndAllowThreads(__tstate);
33162 if (PyErr_Occurred()) SWIG_fail;
33163 }
33164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
33165 return resultobj;
33166fail:
33167 return NULL;
d55e5bfc
RD
33168}
33169
33170
554f62e9
RD
33171SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33172 PyObject *resultobj = 0;
33173 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33174 void *argp1 = 0 ;
33175 int res1 = 0 ;
33176 PyObject *swig_obj[1] ;
33177
33178 if (!args) SWIG_fail;
33179 swig_obj[0] = args;
33180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
33181 if (!SWIG_IsOK(res1)) {
33182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33183 }
33184 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33185 {
33186 PyThreadState* __tstate = wxPyBeginAllowThreads();
33187 delete arg1;
d55e5bfc 33188
554f62e9
RD
33189 wxPyEndAllowThreads(__tstate);
33190 if (PyErr_Occurred()) SWIG_fail;
33191 }
33192 resultobj = SWIG_Py_Void();
33193 return resultobj;
33194fail:
33195 return NULL;
d55e5bfc
RD
33196}
33197
33198
554f62e9
RD
33199SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33200 PyObject *resultobj = 0;
33201 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33202 PyObject *result = 0 ;
33203 void *argp1 = 0 ;
33204 int res1 = 0 ;
33205 PyObject *swig_obj[1] ;
33206
33207 if (!args) SWIG_fail;
33208 swig_obj[0] = args;
33209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33210 if (!SWIG_IsOK(res1)) {
33211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33212 }
33213 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33214 {
33215 PyThreadState* __tstate = wxPyBeginAllowThreads();
33216 result = (PyObject *)(arg1)->GetData();
33217 wxPyEndAllowThreads(__tstate);
33218 if (PyErr_Occurred()) SWIG_fail;
33219 }
33220 resultobj = result;
33221 return resultobj;
33222fail:
33223 return NULL;
33224}
33225
33226
33227SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33228 PyObject *resultobj = 0;
33229 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33230 PyObject *arg2 = (PyObject *) 0 ;
33231 void *argp1 = 0 ;
33232 int res1 = 0 ;
33233 PyObject * obj0 = 0 ;
33234 PyObject * obj1 = 0 ;
33235 char * kwnames[] = {
33236 (char *) "self",(char *) "obj", NULL
33237 };
33238
33239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33241 if (!SWIG_IsOK(res1)) {
33242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33243 }
33244 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33245 arg2 = obj1;
33246 {
33247 PyThreadState* __tstate = wxPyBeginAllowThreads();
33248 (arg1)->SetData(arg2);
33249 wxPyEndAllowThreads(__tstate);
33250 if (PyErr_Occurred()) SWIG_fail;
33251 }
33252 resultobj = SWIG_Py_Void();
33253 return resultobj;
33254fail:
33255 return NULL;
d55e5bfc
RD
33256}
33257
33258
554f62e9
RD
33259SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33260 PyObject *resultobj = 0;
33261 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33262 wxTreeItemId *result = 0 ;
33263 void *argp1 = 0 ;
33264 int res1 = 0 ;
33265 PyObject *swig_obj[1] ;
33266
33267 if (!args) SWIG_fail;
33268 swig_obj[0] = args;
33269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33270 if (!SWIG_IsOK(res1)) {
33271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33272 }
33273 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33274 {
33275 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33276 {
554f62e9
RD
33277 wxTreeItemId const &_result_ref = (arg1)->GetId();
33278 result = (wxTreeItemId *) &_result_ref;
d55e5bfc 33279 }
554f62e9
RD
33280 wxPyEndAllowThreads(__tstate);
33281 if (PyErr_Occurred()) SWIG_fail;
33282 }
33283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33284 return resultobj;
33285fail:
33286 return NULL;
33287}
33288
33289
33290SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33291 PyObject *resultobj = 0;
33292 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33293 wxTreeItemId *arg2 = 0 ;
33294 void *argp1 = 0 ;
33295 int res1 = 0 ;
33296 void *argp2 = 0 ;
33297 int res2 = 0 ;
33298 PyObject * obj0 = 0 ;
33299 PyObject * obj1 = 0 ;
33300 char * kwnames[] = {
33301 (char *) "self",(char *) "id", NULL
33302 };
33303
33304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33306 if (!SWIG_IsOK(res1)) {
33307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33308 }
33309 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33310 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33311 if (!SWIG_IsOK(res2)) {
33312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33313 }
33314 if (!argp2) {
33315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33316 }
33317 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33318 {
33319 PyThreadState* __tstate = wxPyBeginAllowThreads();
33320 (arg1)->SetId((wxTreeItemId const &)*arg2);
33321 wxPyEndAllowThreads(__tstate);
33322 if (PyErr_Occurred()) SWIG_fail;
33323 }
33324 resultobj = SWIG_Py_Void();
33325 return resultobj;
33326fail:
33327 return NULL;
d55e5bfc
RD
33328}
33329
33330
554f62e9
RD
33331SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33332 PyObject *resultobj = 0;
33333 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33334 void *argp1 = 0 ;
33335 int res1 = 0 ;
33336 PyObject *swig_obj[1] ;
33337
33338 if (!args) SWIG_fail;
33339 swig_obj[0] = args;
33340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33341 if (!SWIG_IsOK(res1)) {
33342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33343 }
33344 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33345 {
33346 PyThreadState* __tstate = wxPyBeginAllowThreads();
33347 wxPyTreeItemData_Destroy(arg1);
33348 wxPyEndAllowThreads(__tstate);
33349 if (PyErr_Occurred()) SWIG_fail;
33350 }
33351 resultobj = SWIG_Py_Void();
33352 return resultobj;
33353fail:
33354 return NULL;
d55e5bfc
RD
33355}
33356
33357
554f62e9
RD
33358SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33359 PyObject *obj;
33360 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33361 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33362 return SWIG_Py_Void();
d55e5bfc
RD
33363}
33364
554f62e9
RD
33365SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33366 return SWIG_Python_InitShadowInstance(args);
33367}
d55e5bfc 33368
b02396e8
RD
33369SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33370 {
33371 void *argp = 0;
33372 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33373 if (!SWIG_IsOK(res)) {
33374 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33375 }
33376 if (!argp) {
33377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33378 } else {
33379 wxTreeItemId * temp;
33380 temp = reinterpret_cast< wxTreeItemId * >(argp);
33381 wxNullTreeItemId = *temp;
33382 if (SWIG_IsNewObj(res)) delete temp;
33383 }
33384 }
33385 return 0;
33386fail:
33387 return 1;
33388}
33389
33390
33391SWIGINTERN PyObject *NullTreeItemId_get(void) {
33392 PyObject *pyobj = 0;
33393
33394 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33395 return pyobj;
33396}
33397
33398
33399SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
554f62e9
RD
33400 PyObject *resultobj = 0;
33401 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33402 int arg2 = (int) 0 ;
33403 wxTreeEvent *result = 0 ;
33404 int val1 ;
33405 int ecode1 = 0 ;
33406 int val2 ;
33407 int ecode2 = 0 ;
554f62e9 33408
b02396e8
RD
33409 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33410 if (swig_obj[0]) {
33411 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
554f62e9
RD
33412 if (!SWIG_IsOK(ecode1)) {
33413 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33414 }
33415 arg1 = static_cast< wxEventType >(val1);
33416 }
b02396e8
RD
33417 if (swig_obj[1]) {
33418 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
554f62e9
RD
33419 if (!SWIG_IsOK(ecode2)) {
33420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33421 }
33422 arg2 = static_cast< int >(val2);
33423 }
33424 {
33425 PyThreadState* __tstate = wxPyBeginAllowThreads();
33426 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33427 wxPyEndAllowThreads(__tstate);
33428 if (PyErr_Occurred()) SWIG_fail;
33429 }
33430 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33431 return resultobj;
33432fail:
33433 return NULL;
d55e5bfc
RD
33434}
33435
33436
b02396e8
RD
33437SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33438 PyObject *resultobj = 0;
33439 wxEventType arg1 ;
33440 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33441 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33442 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33443 wxTreeEvent *result = 0 ;
33444 int val1 ;
33445 int ecode1 = 0 ;
33446 void *argp2 = 0 ;
33447 int res2 = 0 ;
33448 void *argp3 = 0 ;
33449 int res3 = 0 ;
33450
33451 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33452 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33453 if (!SWIG_IsOK(ecode1)) {
33454 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33455 }
33456 arg1 = static_cast< wxEventType >(val1);
33457 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33458 if (!SWIG_IsOK(res2)) {
33459 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33460 }
33461 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33462 if (swig_obj[2]) {
33463 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33464 if (!SWIG_IsOK(res3)) {
33465 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33466 }
33467 if (!argp3) {
33468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33469 }
33470 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33471 }
33472 {
33473 PyThreadState* __tstate = wxPyBeginAllowThreads();
33474 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33475 wxPyEndAllowThreads(__tstate);
33476 if (PyErr_Occurred()) SWIG_fail;
33477 }
33478 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33479 return resultobj;
33480fail:
33481 return NULL;
33482}
33483
33484
33485SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33486 int argc;
33487 PyObject *argv[4];
33488
33489 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33490 --argc;
33491 if ((argc >= 0) && (argc <= 2)) {
33492 int _v = 0;
33493 if (argc > 1) {
33494 {
33495 {
33496 int res = SWIG_AsVal_int(argv[1], NULL);
33497 _v = SWIG_CheckState(res);
33498 }
33499 }
33500 if (!_v) goto check_1;
33501 }
33502 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33503 }
33504check_1:
33505
33506 if ((argc >= 2) && (argc <= 3)) {
33507 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33508 }
33509
33510fail:
33511 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33512 return NULL;
33513}
33514
33515
554f62e9
RD
33516SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33517 PyObject *resultobj = 0;
33518 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33519 wxTreeItemId result;
33520 void *argp1 = 0 ;
33521 int res1 = 0 ;
33522 PyObject *swig_obj[1] ;
33523
33524 if (!args) SWIG_fail;
33525 swig_obj[0] = args;
33526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33527 if (!SWIG_IsOK(res1)) {
33528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33529 }
33530 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33531 {
33532 PyThreadState* __tstate = wxPyBeginAllowThreads();
33533 result = ((wxTreeEvent const *)arg1)->GetItem();
33534 wxPyEndAllowThreads(__tstate);
33535 if (PyErr_Occurred()) SWIG_fail;
33536 }
33537 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33538 return resultobj;
33539fail:
33540 return NULL;
33541}
33542
33543
33544SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33545 PyObject *resultobj = 0;
33546 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33547 wxTreeItemId *arg2 = 0 ;
33548 void *argp1 = 0 ;
33549 int res1 = 0 ;
33550 void *argp2 = 0 ;
33551 int res2 = 0 ;
33552 PyObject * obj0 = 0 ;
33553 PyObject * obj1 = 0 ;
33554 char * kwnames[] = {
33555 (char *) "self",(char *) "item", NULL
33556 };
33557
33558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33560 if (!SWIG_IsOK(res1)) {
33561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33562 }
33563 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33564 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33565 if (!SWIG_IsOK(res2)) {
33566 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33567 }
33568 if (!argp2) {
33569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33570 }
33571 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33572 {
33573 PyThreadState* __tstate = wxPyBeginAllowThreads();
33574 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33575 wxPyEndAllowThreads(__tstate);
33576 if (PyErr_Occurred()) SWIG_fail;
33577 }
33578 resultobj = SWIG_Py_Void();
33579 return resultobj;
33580fail:
33581 return NULL;
d55e5bfc
RD
33582}
33583
33584
554f62e9
RD
33585SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33586 PyObject *resultobj = 0;
33587 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33588 wxTreeItemId result;
33589 void *argp1 = 0 ;
33590 int res1 = 0 ;
33591 PyObject *swig_obj[1] ;
33592
33593 if (!args) SWIG_fail;
33594 swig_obj[0] = args;
33595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33596 if (!SWIG_IsOK(res1)) {
33597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33598 }
33599 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33600 {
33601 PyThreadState* __tstate = wxPyBeginAllowThreads();
33602 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33603 wxPyEndAllowThreads(__tstate);
33604 if (PyErr_Occurred()) SWIG_fail;
33605 }
33606 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33607 return resultobj;
33608fail:
33609 return NULL;
33610}
33611
33612
33613SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33614 PyObject *resultobj = 0;
33615 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33616 wxTreeItemId *arg2 = 0 ;
33617 void *argp1 = 0 ;
33618 int res1 = 0 ;
33619 void *argp2 = 0 ;
33620 int res2 = 0 ;
33621 PyObject * obj0 = 0 ;
33622 PyObject * obj1 = 0 ;
33623 char * kwnames[] = {
33624 (char *) "self",(char *) "item", NULL
33625 };
33626
33627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33629 if (!SWIG_IsOK(res1)) {
33630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33631 }
33632 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33634 if (!SWIG_IsOK(res2)) {
33635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33636 }
33637 if (!argp2) {
33638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33639 }
33640 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33641 {
33642 PyThreadState* __tstate = wxPyBeginAllowThreads();
33643 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33644 wxPyEndAllowThreads(__tstate);
33645 if (PyErr_Occurred()) SWIG_fail;
33646 }
33647 resultobj = SWIG_Py_Void();
33648 return resultobj;
33649fail:
33650 return NULL;
d55e5bfc
RD
33651}
33652
33653
554f62e9
RD
33654SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33655 PyObject *resultobj = 0;
33656 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33657 wxPoint result;
33658 void *argp1 = 0 ;
33659 int res1 = 0 ;
33660 PyObject *swig_obj[1] ;
33661
33662 if (!args) SWIG_fail;
33663 swig_obj[0] = args;
33664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33665 if (!SWIG_IsOK(res1)) {
33666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33667 }
33668 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33669 {
33670 PyThreadState* __tstate = wxPyBeginAllowThreads();
33671 result = ((wxTreeEvent const *)arg1)->GetPoint();
33672 wxPyEndAllowThreads(__tstate);
33673 if (PyErr_Occurred()) SWIG_fail;
33674 }
33675 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33676 return resultobj;
33677fail:
33678 return NULL;
33679}
33680
33681
33682SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33683 PyObject *resultobj = 0;
33684 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33685 wxPoint *arg2 = 0 ;
33686 void *argp1 = 0 ;
33687 int res1 = 0 ;
33688 wxPoint temp2 ;
33689 PyObject * obj0 = 0 ;
33690 PyObject * obj1 = 0 ;
33691 char * kwnames[] = {
33692 (char *) "self",(char *) "pt", NULL
33693 };
33694
33695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33697 if (!SWIG_IsOK(res1)) {
33698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33699 }
33700 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33701 {
33702 arg2 = &temp2;
33703 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33704 }
33705 {
33706 PyThreadState* __tstate = wxPyBeginAllowThreads();
33707 (arg1)->SetPoint((wxPoint const &)*arg2);
33708 wxPyEndAllowThreads(__tstate);
33709 if (PyErr_Occurred()) SWIG_fail;
33710 }
33711 resultobj = SWIG_Py_Void();
33712 return resultobj;
33713fail:
33714 return NULL;
d55e5bfc
RD
33715}
33716
33717
554f62e9
RD
33718SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33719 PyObject *resultobj = 0;
33720 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33721 wxKeyEvent *result = 0 ;
33722 void *argp1 = 0 ;
33723 int res1 = 0 ;
33724 PyObject *swig_obj[1] ;
33725
33726 if (!args) SWIG_fail;
33727 swig_obj[0] = args;
33728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33729 if (!SWIG_IsOK(res1)) {
33730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33731 }
33732 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33733 {
33734 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33735 {
554f62e9
RD
33736 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33737 result = (wxKeyEvent *) &_result_ref;
d55e5bfc 33738 }
554f62e9
RD
33739 wxPyEndAllowThreads(__tstate);
33740 if (PyErr_Occurred()) SWIG_fail;
33741 }
33742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33743 return resultobj;
33744fail:
33745 return NULL;
d55e5bfc
RD
33746}
33747
33748
554f62e9
RD
33749SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33750 PyObject *resultobj = 0;
33751 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33752 int result;
33753 void *argp1 = 0 ;
33754 int res1 = 0 ;
33755 PyObject *swig_obj[1] ;
33756
33757 if (!args) SWIG_fail;
33758 swig_obj[0] = args;
33759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33760 if (!SWIG_IsOK(res1)) {
33761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33762 }
33763 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33764 {
33765 PyThreadState* __tstate = wxPyBeginAllowThreads();
33766 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33767 wxPyEndAllowThreads(__tstate);
33768 if (PyErr_Occurred()) SWIG_fail;
33769 }
33770 resultobj = SWIG_From_int(static_cast< int >(result));
33771 return resultobj;
33772fail:
33773 return NULL;
33774}
33775
33776
33777SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33778 PyObject *resultobj = 0;
33779 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33780 wxKeyEvent *arg2 = 0 ;
33781 void *argp1 = 0 ;
33782 int res1 = 0 ;
33783 void *argp2 = 0 ;
33784 int res2 = 0 ;
33785 PyObject * obj0 = 0 ;
33786 PyObject * obj1 = 0 ;
33787 char * kwnames[] = {
33788 (char *) "self",(char *) "evt", NULL
33789 };
33790
33791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33793 if (!SWIG_IsOK(res1)) {
33794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33795 }
33796 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33797 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33798 if (!SWIG_IsOK(res2)) {
33799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33800 }
33801 if (!argp2) {
33802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33803 }
33804 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33805 {
33806 PyThreadState* __tstate = wxPyBeginAllowThreads();
33807 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33808 wxPyEndAllowThreads(__tstate);
33809 if (PyErr_Occurred()) SWIG_fail;
33810 }
33811 resultobj = SWIG_Py_Void();
33812 return resultobj;
33813fail:
33814 return NULL;
d55e5bfc
RD
33815}
33816
33817
554f62e9
RD
33818SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33819 PyObject *resultobj = 0;
33820 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33821 wxString *result = 0 ;
33822 void *argp1 = 0 ;
33823 int res1 = 0 ;
33824 PyObject *swig_obj[1] ;
33825
33826 if (!args) SWIG_fail;
33827 swig_obj[0] = args;
33828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33829 if (!SWIG_IsOK(res1)) {
33830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33831 }
33832 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33833 {
33834 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33835 {
554f62e9
RD
33836 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33837 result = (wxString *) &_result_ref;
d55e5bfc 33838 }
554f62e9
RD
33839 wxPyEndAllowThreads(__tstate);
33840 if (PyErr_Occurred()) SWIG_fail;
33841 }
33842 {
33843#if wxUSE_UNICODE
33844 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33845#else
33846 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33847#endif
33848 }
33849 return resultobj;
33850fail:
33851 return NULL;
33852}
33853
33854
33855SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33856 PyObject *resultobj = 0;
33857 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33858 wxString *arg2 = 0 ;
33859 void *argp1 = 0 ;
33860 int res1 = 0 ;
33861 bool temp2 = false ;
33862 PyObject * obj0 = 0 ;
33863 PyObject * obj1 = 0 ;
33864 char * kwnames[] = {
33865 (char *) "self",(char *) "label", NULL
33866 };
33867
33868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33870 if (!SWIG_IsOK(res1)) {
33871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33872 }
33873 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33874 {
33875 arg2 = wxString_in_helper(obj1);
33876 if (arg2 == NULL) SWIG_fail;
33877 temp2 = true;
33878 }
33879 {
33880 PyThreadState* __tstate = wxPyBeginAllowThreads();
33881 (arg1)->SetLabel((wxString const &)*arg2);
33882 wxPyEndAllowThreads(__tstate);
33883 if (PyErr_Occurred()) SWIG_fail;
33884 }
33885 resultobj = SWIG_Py_Void();
33886 {
33887 if (temp2)
33888 delete arg2;
33889 }
33890 return resultobj;
33891fail:
33892 {
33893 if (temp2)
33894 delete arg2;
33895 }
33896 return NULL;
d55e5bfc
RD
33897}
33898
33899
554f62e9
RD
33900SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33901 PyObject *resultobj = 0;
33902 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33903 bool result;
33904 void *argp1 = 0 ;
33905 int res1 = 0 ;
33906 PyObject *swig_obj[1] ;
33907
33908 if (!args) SWIG_fail;
33909 swig_obj[0] = args;
33910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33911 if (!SWIG_IsOK(res1)) {
33912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33913 }
33914 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33915 {
33916 PyThreadState* __tstate = wxPyBeginAllowThreads();
33917 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33918 wxPyEndAllowThreads(__tstate);
33919 if (PyErr_Occurred()) SWIG_fail;
33920 }
33921 {
33922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33923 }
33924 return resultobj;
33925fail:
33926 return NULL;
33927}
33928
33929
33930SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33931 PyObject *resultobj = 0;
33932 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33933 bool arg2 ;
33934 void *argp1 = 0 ;
33935 int res1 = 0 ;
33936 bool val2 ;
33937 int ecode2 = 0 ;
33938 PyObject * obj0 = 0 ;
33939 PyObject * obj1 = 0 ;
33940 char * kwnames[] = {
33941 (char *) "self",(char *) "editCancelled", NULL
33942 };
33943
33944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33946 if (!SWIG_IsOK(res1)) {
33947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33948 }
33949 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33950 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33951 if (!SWIG_IsOK(ecode2)) {
33952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33953 }
33954 arg2 = static_cast< bool >(val2);
33955 {
33956 PyThreadState* __tstate = wxPyBeginAllowThreads();
33957 (arg1)->SetEditCanceled(arg2);
33958 wxPyEndAllowThreads(__tstate);
33959 if (PyErr_Occurred()) SWIG_fail;
33960 }
33961 resultobj = SWIG_Py_Void();
33962 return resultobj;
33963fail:
33964 return NULL;
33965}
33966
33967
33968SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33969 PyObject *resultobj = 0;
33970 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33971 wxString *arg2 = 0 ;
33972 void *argp1 = 0 ;
33973 int res1 = 0 ;
33974 bool temp2 = false ;
33975 PyObject * obj0 = 0 ;
33976 PyObject * obj1 = 0 ;
33977 char * kwnames[] = {
33978 (char *) "self",(char *) "toolTip", NULL
33979 };
33980
33981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33983 if (!SWIG_IsOK(res1)) {
33984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33985 }
33986 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33987 {
33988 arg2 = wxString_in_helper(obj1);
33989 if (arg2 == NULL) SWIG_fail;
33990 temp2 = true;
33991 }
33992 {
33993 PyThreadState* __tstate = wxPyBeginAllowThreads();
33994 (arg1)->SetToolTip((wxString const &)*arg2);
33995 wxPyEndAllowThreads(__tstate);
33996 if (PyErr_Occurred()) SWIG_fail;
33997 }
33998 resultobj = SWIG_Py_Void();
33999 {
34000 if (temp2)
34001 delete arg2;
34002 }
34003 return resultobj;
34004fail:
34005 {
34006 if (temp2)
34007 delete arg2;
34008 }
34009 return NULL;
34010}
34011
34012
34013SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34014 PyObject *resultobj = 0;
34015 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
34016 wxString result;
34017 void *argp1 = 0 ;
34018 int res1 = 0 ;
34019 PyObject *swig_obj[1] ;
34020
34021 if (!args) SWIG_fail;
34022 swig_obj[0] = args;
34023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
34024 if (!SWIG_IsOK(res1)) {
34025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
34026 }
34027 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34028 {
34029 PyThreadState* __tstate = wxPyBeginAllowThreads();
34030 result = (arg1)->GetToolTip();
34031 wxPyEndAllowThreads(__tstate);
34032 if (PyErr_Occurred()) SWIG_fail;
34033 }
34034 {
34035#if wxUSE_UNICODE
34036 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34037#else
34038 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34039#endif
34040 }
34041 return resultobj;
34042fail:
34043 return NULL;
34044}
34045
34046
34047SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34048 PyObject *obj;
34049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34050 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
34051 return SWIG_Py_Void();
34052}
34053
34054SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34055 return SWIG_Python_InitShadowInstance(args);
34056}
34057
34058SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34059 PyObject *resultobj = 0;
34060 wxWindow *arg1 = (wxWindow *) 0 ;
34061 int arg2 = (int) -1 ;
34062 wxPoint const &arg3_defvalue = wxDefaultPosition ;
34063 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
34064 wxSize const &arg4_defvalue = wxDefaultSize ;
34065 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
34066 long arg5 = (long) wxTR_DEFAULT_STYLE ;
34067 wxValidator const &arg6_defvalue = wxDefaultValidator ;
34068 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
34069 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
34070 wxString *arg7 = (wxString *) &arg7_defvalue ;
34071 wxPyTreeCtrl *result = 0 ;
34072 void *argp1 = 0 ;
34073 int res1 = 0 ;
34074 int val2 ;
34075 int ecode2 = 0 ;
34076 wxPoint temp3 ;
34077 wxSize temp4 ;
34078 long val5 ;
34079 int ecode5 = 0 ;
34080 void *argp6 = 0 ;
34081 int res6 = 0 ;
34082 bool temp7 = false ;
34083 PyObject * obj0 = 0 ;
34084 PyObject * obj1 = 0 ;
34085 PyObject * obj2 = 0 ;
34086 PyObject * obj3 = 0 ;
34087 PyObject * obj4 = 0 ;
34088 PyObject * obj5 = 0 ;
34089 PyObject * obj6 = 0 ;
34090 char * kwnames[] = {
34091 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34092 };
34093
34094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34096 if (!SWIG_IsOK(res1)) {
34097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
34098 }
34099 arg1 = reinterpret_cast< wxWindow * >(argp1);
34100 if (obj1) {
34101 ecode2 = SWIG_AsVal_int(obj1, &val2);
34102 if (!SWIG_IsOK(ecode2)) {
34103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
34104 }
34105 arg2 = static_cast< int >(val2);
34106 }
34107 if (obj2) {
d55e5bfc 34108 {
554f62e9
RD
34109 arg3 = &temp3;
34110 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 34111 }
554f62e9
RD
34112 }
34113 if (obj3) {
d55e5bfc 34114 {
554f62e9
RD
34115 arg4 = &temp4;
34116 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 34117 }
554f62e9
RD
34118 }
34119 if (obj4) {
34120 ecode5 = SWIG_AsVal_long(obj4, &val5);
34121 if (!SWIG_IsOK(ecode5)) {
34122 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
34123 }
34124 arg5 = static_cast< long >(val5);
34125 }
34126 if (obj5) {
34127 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
34128 if (!SWIG_IsOK(res6)) {
34129 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 34130 }
554f62e9
RD
34131 if (!argp6) {
34132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 34133 }
554f62e9
RD
34134 arg6 = reinterpret_cast< wxValidator * >(argp6);
34135 }
34136 if (obj6) {
d55e5bfc 34137 {
554f62e9
RD
34138 arg7 = wxString_in_helper(obj6);
34139 if (arg7 == NULL) SWIG_fail;
34140 temp7 = true;
d55e5bfc 34141 }
554f62e9
RD
34142 }
34143 {
34144 if (!wxPyCheckForApp()) SWIG_fail;
34145 PyThreadState* __tstate = wxPyBeginAllowThreads();
34146 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
34147 wxPyEndAllowThreads(__tstate);
34148 if (PyErr_Occurred()) SWIG_fail;
34149 }
34150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
34151 {
34152 if (temp7)
34153 delete arg7;
34154 }
34155 return resultobj;
34156fail:
34157 {
34158 if (temp7)
34159 delete arg7;
34160 }
34161 return NULL;
d55e5bfc
RD
34162}
34163
34164
554f62e9
RD
34165SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34166 PyObject *resultobj = 0;
34167 wxPyTreeCtrl *result = 0 ;
34168
34169 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
34170 {
34171 if (!wxPyCheckForApp()) SWIG_fail;
34172 PyThreadState* __tstate = wxPyBeginAllowThreads();
34173 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
34174 wxPyEndAllowThreads(__tstate);
34175 if (PyErr_Occurred()) SWIG_fail;
34176 }
34177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
34178 return resultobj;
34179fail:
34180 return NULL;
34181}
34182
34183
34184SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34185 PyObject *resultobj = 0;
34186 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34187 wxWindow *arg2 = (wxWindow *) 0 ;
34188 int arg3 = (int) -1 ;
34189 wxPoint const &arg4_defvalue = wxDefaultPosition ;
34190 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
34191 wxSize const &arg5_defvalue = wxDefaultSize ;
34192 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
34193 long arg6 = (long) wxTR_DEFAULT_STYLE ;
34194 wxValidator const &arg7_defvalue = wxDefaultValidator ;
34195 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
34196 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
34197 wxString *arg8 = (wxString *) &arg8_defvalue ;
34198 bool result;
34199 void *argp1 = 0 ;
34200 int res1 = 0 ;
34201 void *argp2 = 0 ;
34202 int res2 = 0 ;
34203 int val3 ;
34204 int ecode3 = 0 ;
34205 wxPoint temp4 ;
34206 wxSize temp5 ;
34207 long val6 ;
34208 int ecode6 = 0 ;
34209 void *argp7 = 0 ;
34210 int res7 = 0 ;
34211 bool temp8 = false ;
34212 PyObject * obj0 = 0 ;
34213 PyObject * obj1 = 0 ;
34214 PyObject * obj2 = 0 ;
34215 PyObject * obj3 = 0 ;
34216 PyObject * obj4 = 0 ;
34217 PyObject * obj5 = 0 ;
34218 PyObject * obj6 = 0 ;
34219 PyObject * obj7 = 0 ;
34220 char * kwnames[] = {
34221 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34222 };
34223
34224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
34225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34226 if (!SWIG_IsOK(res1)) {
34227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34228 }
34229 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34230 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34231 if (!SWIG_IsOK(res2)) {
34232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
34233 }
34234 arg2 = reinterpret_cast< wxWindow * >(argp2);
34235 if (obj2) {
34236 ecode3 = SWIG_AsVal_int(obj2, &val3);
34237 if (!SWIG_IsOK(ecode3)) {
34238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
34239 }
34240 arg3 = static_cast< int >(val3);
34241 }
34242 if (obj3) {
d55e5bfc 34243 {
554f62e9
RD
34244 arg4 = &temp4;
34245 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 34246 }
554f62e9
RD
34247 }
34248 if (obj4) {
d55e5bfc 34249 {
554f62e9
RD
34250 arg5 = &temp5;
34251 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 34252 }
554f62e9
RD
34253 }
34254 if (obj5) {
34255 ecode6 = SWIG_AsVal_long(obj5, &val6);
34256 if (!SWIG_IsOK(ecode6)) {
34257 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34258 }
34259 arg6 = static_cast< long >(val6);
34260 }
34261 if (obj6) {
34262 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34263 if (!SWIG_IsOK(res7)) {
34264 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 34265 }
554f62e9
RD
34266 if (!argp7) {
34267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 34268 }
554f62e9
RD
34269 arg7 = reinterpret_cast< wxValidator * >(argp7);
34270 }
34271 if (obj7) {
d55e5bfc 34272 {
554f62e9
RD
34273 arg8 = wxString_in_helper(obj7);
34274 if (arg8 == NULL) SWIG_fail;
34275 temp8 = true;
d55e5bfc 34276 }
554f62e9
RD
34277 }
34278 {
34279 PyThreadState* __tstate = wxPyBeginAllowThreads();
34280 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34281 wxPyEndAllowThreads(__tstate);
34282 if (PyErr_Occurred()) SWIG_fail;
34283 }
34284 {
34285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34286 }
34287 {
34288 if (temp8)
34289 delete arg8;
34290 }
34291 return resultobj;
34292fail:
34293 {
34294 if (temp8)
34295 delete arg8;
34296 }
34297 return NULL;
34298}
34299
34300
34301SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34302 PyObject *resultobj = 0;
34303 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34304 PyObject *arg2 = (PyObject *) 0 ;
34305 PyObject *arg3 = (PyObject *) 0 ;
34306 void *argp1 = 0 ;
34307 int res1 = 0 ;
34308 PyObject * obj0 = 0 ;
34309 PyObject * obj1 = 0 ;
34310 PyObject * obj2 = 0 ;
34311 char * kwnames[] = {
34312 (char *) "self",(char *) "self",(char *) "_class", NULL
34313 };
34314
34315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34317 if (!SWIG_IsOK(res1)) {
34318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34319 }
34320 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34321 arg2 = obj1;
34322 arg3 = obj2;
34323 {
34324 PyThreadState* __tstate = wxPyBeginAllowThreads();
34325 (arg1)->_setCallbackInfo(arg2,arg3);
34326 wxPyEndAllowThreads(__tstate);
34327 if (PyErr_Occurred()) SWIG_fail;
34328 }
34329 resultobj = SWIG_Py_Void();
34330 return resultobj;
34331fail:
34332 return NULL;
d55e5bfc
RD
34333}
34334
34335
554f62e9
RD
34336SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34337 PyObject *resultobj = 0;
34338 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 34339 unsigned int result;
554f62e9
RD
34340 void *argp1 = 0 ;
34341 int res1 = 0 ;
34342 PyObject *swig_obj[1] ;
34343
34344 if (!args) SWIG_fail;
34345 swig_obj[0] = args;
34346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34347 if (!SWIG_IsOK(res1)) {
34348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34349 }
34350 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34351 {
34352 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 34353 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
554f62e9
RD
34354 wxPyEndAllowThreads(__tstate);
34355 if (PyErr_Occurred()) SWIG_fail;
34356 }
e9d6f3a4 34357 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
554f62e9
RD
34358 return resultobj;
34359fail:
34360 return NULL;
d55e5bfc
RD
34361}
34362
34363
554f62e9
RD
34364SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34365 PyObject *resultobj = 0;
34366 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34367 unsigned int result;
34368 void *argp1 = 0 ;
34369 int res1 = 0 ;
34370 PyObject *swig_obj[1] ;
34371
34372 if (!args) SWIG_fail;
34373 swig_obj[0] = args;
34374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34375 if (!SWIG_IsOK(res1)) {
34376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34377 }
34378 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34379 {
34380 PyThreadState* __tstate = wxPyBeginAllowThreads();
34381 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34382 wxPyEndAllowThreads(__tstate);
34383 if (PyErr_Occurred()) SWIG_fail;
34384 }
34385 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34386 return resultobj;
34387fail:
34388 return NULL;
34389}
34390
34391
34392SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34393 PyObject *resultobj = 0;
34394 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34395 unsigned int arg2 ;
34396 void *argp1 = 0 ;
34397 int res1 = 0 ;
34398 unsigned int val2 ;
34399 int ecode2 = 0 ;
34400 PyObject * obj0 = 0 ;
34401 PyObject * obj1 = 0 ;
34402 char * kwnames[] = {
34403 (char *) "self",(char *) "indent", NULL
34404 };
34405
34406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34408 if (!SWIG_IsOK(res1)) {
34409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34410 }
34411 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34412 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34413 if (!SWIG_IsOK(ecode2)) {
34414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34415 }
34416 arg2 = static_cast< unsigned int >(val2);
34417 {
34418 PyThreadState* __tstate = wxPyBeginAllowThreads();
34419 (arg1)->SetIndent(arg2);
34420 wxPyEndAllowThreads(__tstate);
34421 if (PyErr_Occurred()) SWIG_fail;
34422 }
34423 resultobj = SWIG_Py_Void();
34424 return resultobj;
34425fail:
34426 return NULL;
d55e5bfc
RD
34427}
34428
34429
554f62e9
RD
34430SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34431 PyObject *resultobj = 0;
34432 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34433 unsigned int result;
34434 void *argp1 = 0 ;
34435 int res1 = 0 ;
34436 PyObject *swig_obj[1] ;
34437
34438 if (!args) SWIG_fail;
34439 swig_obj[0] = args;
34440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34441 if (!SWIG_IsOK(res1)) {
34442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34443 }
34444 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34445 {
34446 PyThreadState* __tstate = wxPyBeginAllowThreads();
34447 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34448 wxPyEndAllowThreads(__tstate);
34449 if (PyErr_Occurred()) SWIG_fail;
34450 }
34451 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34452 return resultobj;
34453fail:
34454 return NULL;
34455}
34456
34457
34458SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34459 PyObject *resultobj = 0;
34460 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34461 unsigned int arg2 ;
34462 void *argp1 = 0 ;
34463 int res1 = 0 ;
34464 unsigned int val2 ;
34465 int ecode2 = 0 ;
34466 PyObject * obj0 = 0 ;
34467 PyObject * obj1 = 0 ;
34468 char * kwnames[] = {
34469 (char *) "self",(char *) "spacing", NULL
34470 };
34471
34472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34474 if (!SWIG_IsOK(res1)) {
34475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34476 }
34477 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34478 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34479 if (!SWIG_IsOK(ecode2)) {
34480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34481 }
34482 arg2 = static_cast< unsigned int >(val2);
34483 {
34484 PyThreadState* __tstate = wxPyBeginAllowThreads();
34485 (arg1)->SetSpacing(arg2);
34486 wxPyEndAllowThreads(__tstate);
34487 if (PyErr_Occurred()) SWIG_fail;
34488 }
34489 resultobj = SWIG_Py_Void();
34490 return resultobj;
34491fail:
34492 return NULL;
d55e5bfc
RD
34493}
34494
34495
554f62e9
RD
34496SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34497 PyObject *resultobj = 0;
34498 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34499 wxImageList *result = 0 ;
34500 void *argp1 = 0 ;
34501 int res1 = 0 ;
34502 PyObject *swig_obj[1] ;
34503
34504 if (!args) SWIG_fail;
34505 swig_obj[0] = args;
34506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34507 if (!SWIG_IsOK(res1)) {
34508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34509 }
34510 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34511 {
34512 PyThreadState* __tstate = wxPyBeginAllowThreads();
34513 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34514 wxPyEndAllowThreads(__tstate);
34515 if (PyErr_Occurred()) SWIG_fail;
34516 }
3ecece7e
RD
34517 {
34518 resultobj = wxPyMake_wxObject(result, (bool)0);
34519 }
554f62e9
RD
34520 return resultobj;
34521fail:
34522 return NULL;
d55e5bfc
RD
34523}
34524
34525
554f62e9
RD
34526SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34527 PyObject *resultobj = 0;
34528 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34529 wxImageList *result = 0 ;
34530 void *argp1 = 0 ;
34531 int res1 = 0 ;
34532 PyObject *swig_obj[1] ;
34533
34534 if (!args) SWIG_fail;
34535 swig_obj[0] = args;
34536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34537 if (!SWIG_IsOK(res1)) {
34538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34539 }
34540 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34541 {
34542 PyThreadState* __tstate = wxPyBeginAllowThreads();
34543 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34544 wxPyEndAllowThreads(__tstate);
34545 if (PyErr_Occurred()) SWIG_fail;
34546 }
3ecece7e
RD
34547 {
34548 resultobj = wxPyMake_wxObject(result, (bool)0);
34549 }
554f62e9
RD
34550 return resultobj;
34551fail:
34552 return NULL;
34553}
34554
34555
34556SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34557 PyObject *resultobj = 0;
34558 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34559 wxImageList *arg2 = (wxImageList *) 0 ;
34560 void *argp1 = 0 ;
34561 int res1 = 0 ;
34562 void *argp2 = 0 ;
34563 int res2 = 0 ;
34564 PyObject * obj0 = 0 ;
34565 PyObject * obj1 = 0 ;
34566 char * kwnames[] = {
34567 (char *) "self",(char *) "imageList", NULL
34568 };
34569
34570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34572 if (!SWIG_IsOK(res1)) {
34573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34574 }
34575 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34576 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34577 if (!SWIG_IsOK(res2)) {
34578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34579 }
34580 arg2 = reinterpret_cast< wxImageList * >(argp2);
34581 {
34582 PyThreadState* __tstate = wxPyBeginAllowThreads();
34583 (arg1)->SetImageList(arg2);
34584 wxPyEndAllowThreads(__tstate);
34585 if (PyErr_Occurred()) SWIG_fail;
34586 }
34587 resultobj = SWIG_Py_Void();
34588 return resultobj;
34589fail:
34590 return NULL;
34591}
34592
34593
34594SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34595 PyObject *resultobj = 0;
34596 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34597 wxImageList *arg2 = (wxImageList *) 0 ;
34598 void *argp1 = 0 ;
34599 int res1 = 0 ;
34600 void *argp2 = 0 ;
34601 int res2 = 0 ;
34602 PyObject * obj0 = 0 ;
34603 PyObject * obj1 = 0 ;
34604 char * kwnames[] = {
34605 (char *) "self",(char *) "imageList", NULL
34606 };
34607
34608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34610 if (!SWIG_IsOK(res1)) {
34611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34612 }
34613 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34614 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34615 if (!SWIG_IsOK(res2)) {
34616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34617 }
34618 arg2 = reinterpret_cast< wxImageList * >(argp2);
34619 {
34620 PyThreadState* __tstate = wxPyBeginAllowThreads();
34621 (arg1)->SetStateImageList(arg2);
34622 wxPyEndAllowThreads(__tstate);
34623 if (PyErr_Occurred()) SWIG_fail;
34624 }
34625 resultobj = SWIG_Py_Void();
34626 return resultobj;
34627fail:
34628 return NULL;
34629}
34630
34631
34632SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34633 PyObject *resultobj = 0;
34634 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34635 wxImageList *arg2 = (wxImageList *) 0 ;
34636 void *argp1 = 0 ;
34637 int res1 = 0 ;
34638 int res2 = 0 ;
34639 PyObject * obj0 = 0 ;
34640 PyObject * obj1 = 0 ;
34641 char * kwnames[] = {
34642 (char *) "self",(char *) "imageList", NULL
34643 };
34644
34645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34647 if (!SWIG_IsOK(res1)) {
34648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34649 }
34650 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34651 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34652 if (!SWIG_IsOK(res2)) {
34653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34654 }
34655 {
34656 PyThreadState* __tstate = wxPyBeginAllowThreads();
34657 (arg1)->AssignImageList(arg2);
34658 wxPyEndAllowThreads(__tstate);
34659 if (PyErr_Occurred()) SWIG_fail;
34660 }
34661 resultobj = SWIG_Py_Void();
34662 return resultobj;
34663fail:
34664 return NULL;
34665}
34666
34667
34668SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34669 PyObject *resultobj = 0;
34670 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34671 wxImageList *arg2 = (wxImageList *) 0 ;
34672 void *argp1 = 0 ;
34673 int res1 = 0 ;
34674 int res2 = 0 ;
34675 PyObject * obj0 = 0 ;
34676 PyObject * obj1 = 0 ;
34677 char * kwnames[] = {
34678 (char *) "self",(char *) "imageList", NULL
34679 };
34680
34681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34683 if (!SWIG_IsOK(res1)) {
34684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34685 }
34686 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34687 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34688 if (!SWIG_IsOK(res2)) {
34689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34690 }
34691 {
34692 PyThreadState* __tstate = wxPyBeginAllowThreads();
34693 (arg1)->AssignStateImageList(arg2);
34694 wxPyEndAllowThreads(__tstate);
34695 if (PyErr_Occurred()) SWIG_fail;
34696 }
34697 resultobj = SWIG_Py_Void();
34698 return resultobj;
34699fail:
34700 return NULL;
34701}
34702
34703
34704SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34705 PyObject *resultobj = 0;
34706 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34707 wxTreeItemId *arg2 = 0 ;
34708 wxString result;
34709 void *argp1 = 0 ;
34710 int res1 = 0 ;
34711 void *argp2 = 0 ;
34712 int res2 = 0 ;
34713 PyObject * obj0 = 0 ;
34714 PyObject * obj1 = 0 ;
34715 char * kwnames[] = {
34716 (char *) "self",(char *) "item", NULL
34717 };
34718
34719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34721 if (!SWIG_IsOK(res1)) {
34722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34723 }
34724 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34725 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34726 if (!SWIG_IsOK(res2)) {
34727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34728 }
34729 if (!argp2) {
34730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34731 }
34732 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34733 {
34734 PyThreadState* __tstate = wxPyBeginAllowThreads();
34735 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34736 wxPyEndAllowThreads(__tstate);
34737 if (PyErr_Occurred()) SWIG_fail;
34738 }
34739 {
34740#if wxUSE_UNICODE
34741 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34742#else
34743 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34744#endif
34745 }
34746 return resultobj;
34747fail:
34748 return NULL;
34749}
34750
34751
34752SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34753 PyObject *resultobj = 0;
34754 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34755 wxTreeItemId *arg2 = 0 ;
34756 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34757 int result;
34758 void *argp1 = 0 ;
34759 int res1 = 0 ;
34760 void *argp2 = 0 ;
34761 int res2 = 0 ;
34762 int val3 ;
34763 int ecode3 = 0 ;
34764 PyObject * obj0 = 0 ;
34765 PyObject * obj1 = 0 ;
34766 PyObject * obj2 = 0 ;
34767 char * kwnames[] = {
34768 (char *) "self",(char *) "item",(char *) "which", NULL
34769 };
34770
34771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34773 if (!SWIG_IsOK(res1)) {
34774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34775 }
34776 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34777 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34778 if (!SWIG_IsOK(res2)) {
34779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34780 }
34781 if (!argp2) {
34782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34783 }
34784 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34785 if (obj2) {
34786 ecode3 = SWIG_AsVal_int(obj2, &val3);
34787 if (!SWIG_IsOK(ecode3)) {
34788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34789 }
34790 arg3 = static_cast< wxTreeItemIcon >(val3);
34791 }
34792 {
34793 PyThreadState* __tstate = wxPyBeginAllowThreads();
34794 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34795 wxPyEndAllowThreads(__tstate);
34796 if (PyErr_Occurred()) SWIG_fail;
34797 }
34798 resultobj = SWIG_From_int(static_cast< int >(result));
34799 return resultobj;
34800fail:
34801 return NULL;
34802}
34803
34804
34805SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34806 PyObject *resultobj = 0;
34807 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34808 wxTreeItemId *arg2 = 0 ;
34809 wxPyTreeItemData *result = 0 ;
34810 void *argp1 = 0 ;
34811 int res1 = 0 ;
34812 void *argp2 = 0 ;
34813 int res2 = 0 ;
34814 PyObject * obj0 = 0 ;
34815 PyObject * obj1 = 0 ;
34816 char * kwnames[] = {
34817 (char *) "self",(char *) "item", NULL
34818 };
34819
34820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34822 if (!SWIG_IsOK(res1)) {
34823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34824 }
34825 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34826 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34827 if (!SWIG_IsOK(res2)) {
34828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34829 }
34830 if (!argp2) {
34831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34832 }
34833 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34834 {
34835 PyThreadState* __tstate = wxPyBeginAllowThreads();
34836 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34837 wxPyEndAllowThreads(__tstate);
34838 if (PyErr_Occurred()) SWIG_fail;
34839 }
34840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34841 return resultobj;
34842fail:
34843 return NULL;
34844}
34845
34846
34847SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34848 PyObject *resultobj = 0;
34849 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34850 wxTreeItemId *arg2 = 0 ;
34851 PyObject *result = 0 ;
34852 void *argp1 = 0 ;
34853 int res1 = 0 ;
34854 void *argp2 = 0 ;
34855 int res2 = 0 ;
34856 PyObject * obj0 = 0 ;
34857 PyObject * obj1 = 0 ;
34858 char * kwnames[] = {
34859 (char *) "self",(char *) "item", NULL
34860 };
34861
34862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34864 if (!SWIG_IsOK(res1)) {
34865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34866 }
34867 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34869 if (!SWIG_IsOK(res2)) {
34870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34871 }
34872 if (!argp2) {
34873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34874 }
34875 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34876 {
34877 PyThreadState* __tstate = wxPyBeginAllowThreads();
34878 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34879 wxPyEndAllowThreads(__tstate);
34880 if (PyErr_Occurred()) SWIG_fail;
34881 }
34882 resultobj = result;
34883 return resultobj;
34884fail:
34885 return NULL;
34886}
34887
34888
34889SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34890 PyObject *resultobj = 0;
34891 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34892 wxTreeItemId *arg2 = 0 ;
34893 wxColour result;
34894 void *argp1 = 0 ;
34895 int res1 = 0 ;
34896 void *argp2 = 0 ;
34897 int res2 = 0 ;
34898 PyObject * obj0 = 0 ;
34899 PyObject * obj1 = 0 ;
34900 char * kwnames[] = {
34901 (char *) "self",(char *) "item", NULL
34902 };
34903
34904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34906 if (!SWIG_IsOK(res1)) {
34907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34908 }
34909 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34910 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34911 if (!SWIG_IsOK(res2)) {
34912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34913 }
34914 if (!argp2) {
34915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34916 }
34917 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34918 {
34919 PyThreadState* __tstate = wxPyBeginAllowThreads();
34920 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34921 wxPyEndAllowThreads(__tstate);
34922 if (PyErr_Occurred()) SWIG_fail;
34923 }
34924 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34925 return resultobj;
34926fail:
34927 return NULL;
34928}
34929
34930
34931SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34932 PyObject *resultobj = 0;
34933 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34934 wxTreeItemId *arg2 = 0 ;
34935 wxColour result;
34936 void *argp1 = 0 ;
34937 int res1 = 0 ;
34938 void *argp2 = 0 ;
34939 int res2 = 0 ;
34940 PyObject * obj0 = 0 ;
34941 PyObject * obj1 = 0 ;
34942 char * kwnames[] = {
34943 (char *) "self",(char *) "item", NULL
34944 };
34945
34946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34948 if (!SWIG_IsOK(res1)) {
34949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34950 }
34951 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34952 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34953 if (!SWIG_IsOK(res2)) {
34954 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34955 }
34956 if (!argp2) {
34957 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34958 }
34959 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34960 {
34961 PyThreadState* __tstate = wxPyBeginAllowThreads();
34962 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34963 wxPyEndAllowThreads(__tstate);
34964 if (PyErr_Occurred()) SWIG_fail;
34965 }
34966 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34967 return resultobj;
34968fail:
34969 return NULL;
34970}
34971
34972
34973SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34974 PyObject *resultobj = 0;
34975 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34976 wxTreeItemId *arg2 = 0 ;
34977 wxFont result;
34978 void *argp1 = 0 ;
34979 int res1 = 0 ;
34980 void *argp2 = 0 ;
34981 int res2 = 0 ;
34982 PyObject * obj0 = 0 ;
34983 PyObject * obj1 = 0 ;
34984 char * kwnames[] = {
34985 (char *) "self",(char *) "item", NULL
34986 };
34987
34988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34990 if (!SWIG_IsOK(res1)) {
34991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34992 }
34993 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34994 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34995 if (!SWIG_IsOK(res2)) {
34996 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34997 }
34998 if (!argp2) {
34999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35000 }
35001 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35002 {
35003 PyThreadState* __tstate = wxPyBeginAllowThreads();
35004 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
35005 wxPyEndAllowThreads(__tstate);
35006 if (PyErr_Occurred()) SWIG_fail;
35007 }
35008 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
35009 return resultobj;
35010fail:
35011 return NULL;
35012}
35013
35014
35015SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35016 PyObject *resultobj = 0;
35017 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35018 wxTreeItemId *arg2 = 0 ;
35019 wxString *arg3 = 0 ;
35020 void *argp1 = 0 ;
35021 int res1 = 0 ;
35022 void *argp2 = 0 ;
35023 int res2 = 0 ;
35024 bool temp3 = false ;
35025 PyObject * obj0 = 0 ;
35026 PyObject * obj1 = 0 ;
35027 PyObject * obj2 = 0 ;
35028 char * kwnames[] = {
35029 (char *) "self",(char *) "item",(char *) "text", NULL
35030 };
35031
35032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35034 if (!SWIG_IsOK(res1)) {
35035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35036 }
35037 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35038 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35039 if (!SWIG_IsOK(res2)) {
35040 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35041 }
35042 if (!argp2) {
35043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35044 }
35045 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35046 {
35047 arg3 = wxString_in_helper(obj2);
35048 if (arg3 == NULL) SWIG_fail;
35049 temp3 = true;
35050 }
35051 {
35052 PyThreadState* __tstate = wxPyBeginAllowThreads();
35053 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
35054 wxPyEndAllowThreads(__tstate);
35055 if (PyErr_Occurred()) SWIG_fail;
35056 }
35057 resultobj = SWIG_Py_Void();
35058 {
35059 if (temp3)
35060 delete arg3;
35061 }
35062 return resultobj;
35063fail:
35064 {
35065 if (temp3)
35066 delete arg3;
35067 }
35068 return NULL;
35069}
35070
35071
35072SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35073 PyObject *resultobj = 0;
35074 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35075 wxTreeItemId *arg2 = 0 ;
35076 int arg3 ;
35077 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
35078 void *argp1 = 0 ;
35079 int res1 = 0 ;
35080 void *argp2 = 0 ;
35081 int res2 = 0 ;
35082 int val3 ;
35083 int ecode3 = 0 ;
35084 int val4 ;
35085 int ecode4 = 0 ;
35086 PyObject * obj0 = 0 ;
35087 PyObject * obj1 = 0 ;
35088 PyObject * obj2 = 0 ;
35089 PyObject * obj3 = 0 ;
35090 char * kwnames[] = {
35091 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
35092 };
35093
35094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35096 if (!SWIG_IsOK(res1)) {
35097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35098 }
35099 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35100 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35101 if (!SWIG_IsOK(res2)) {
35102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35103 }
35104 if (!argp2) {
35105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35106 }
35107 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35108 ecode3 = SWIG_AsVal_int(obj2, &val3);
35109 if (!SWIG_IsOK(ecode3)) {
35110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
35111 }
35112 arg3 = static_cast< int >(val3);
35113 if (obj3) {
35114 ecode4 = SWIG_AsVal_int(obj3, &val4);
35115 if (!SWIG_IsOK(ecode4)) {
35116 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
35117 }
35118 arg4 = static_cast< wxTreeItemIcon >(val4);
35119 }
35120 {
35121 PyThreadState* __tstate = wxPyBeginAllowThreads();
35122 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
35123 wxPyEndAllowThreads(__tstate);
35124 if (PyErr_Occurred()) SWIG_fail;
35125 }
35126 resultobj = SWIG_Py_Void();
35127 return resultobj;
35128fail:
35129 return NULL;
35130}
35131
35132
35133SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35134 PyObject *resultobj = 0;
35135 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35136 wxTreeItemId *arg2 = 0 ;
35137 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
35138 void *argp1 = 0 ;
35139 int res1 = 0 ;
35140 void *argp2 = 0 ;
35141 int res2 = 0 ;
35142 int res3 = 0 ;
35143 PyObject * obj0 = 0 ;
35144 PyObject * obj1 = 0 ;
35145 PyObject * obj2 = 0 ;
35146 char * kwnames[] = {
35147 (char *) "self",(char *) "item",(char *) "data", NULL
35148 };
35149
35150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35152 if (!SWIG_IsOK(res1)) {
35153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35154 }
35155 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35156 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35157 if (!SWIG_IsOK(res2)) {
35158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35159 }
35160 if (!argp2) {
35161 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35162 }
35163 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35164 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35165 if (!SWIG_IsOK(res3)) {
35166 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
35167 }
35168 {
35169 PyThreadState* __tstate = wxPyBeginAllowThreads();
35170 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
35171 wxPyEndAllowThreads(__tstate);
35172 if (PyErr_Occurred()) SWIG_fail;
35173 }
35174 resultobj = SWIG_Py_Void();
35175 return resultobj;
35176fail:
35177 return NULL;
35178}
35179
35180
35181SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35182 PyObject *resultobj = 0;
35183 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35184 wxTreeItemId *arg2 = 0 ;
35185 PyObject *arg3 = (PyObject *) 0 ;
35186 void *argp1 = 0 ;
35187 int res1 = 0 ;
35188 void *argp2 = 0 ;
35189 int res2 = 0 ;
35190 PyObject * obj0 = 0 ;
35191 PyObject * obj1 = 0 ;
35192 PyObject * obj2 = 0 ;
35193 char * kwnames[] = {
35194 (char *) "self",(char *) "item",(char *) "obj", NULL
35195 };
35196
35197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35199 if (!SWIG_IsOK(res1)) {
35200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35201 }
35202 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35203 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35204 if (!SWIG_IsOK(res2)) {
35205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35206 }
35207 if (!argp2) {
35208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35209 }
35210 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35211 arg3 = obj2;
35212 {
35213 PyThreadState* __tstate = wxPyBeginAllowThreads();
35214 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
35215 wxPyEndAllowThreads(__tstate);
35216 if (PyErr_Occurred()) SWIG_fail;
35217 }
35218 resultobj = SWIG_Py_Void();
35219 return resultobj;
35220fail:
35221 return NULL;
35222}
35223
35224
35225SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35226 PyObject *resultobj = 0;
35227 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35228 wxTreeItemId *arg2 = 0 ;
35229 bool arg3 = (bool) true ;
35230 void *argp1 = 0 ;
35231 int res1 = 0 ;
35232 void *argp2 = 0 ;
35233 int res2 = 0 ;
35234 bool val3 ;
35235 int ecode3 = 0 ;
35236 PyObject * obj0 = 0 ;
35237 PyObject * obj1 = 0 ;
35238 PyObject * obj2 = 0 ;
35239 char * kwnames[] = {
35240 (char *) "self",(char *) "item",(char *) "has", NULL
35241 };
35242
35243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35245 if (!SWIG_IsOK(res1)) {
35246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35247 }
35248 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35249 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35250 if (!SWIG_IsOK(res2)) {
35251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35252 }
35253 if (!argp2) {
35254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35255 }
35256 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35257 if (obj2) {
35258 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35259 if (!SWIG_IsOK(ecode3)) {
35260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35261 }
35262 arg3 = static_cast< bool >(val3);
35263 }
35264 {
35265 PyThreadState* __tstate = wxPyBeginAllowThreads();
35266 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35267 wxPyEndAllowThreads(__tstate);
35268 if (PyErr_Occurred()) SWIG_fail;
35269 }
35270 resultobj = SWIG_Py_Void();
35271 return resultobj;
35272fail:
35273 return NULL;
35274}
35275
35276
35277SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35278 PyObject *resultobj = 0;
35279 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35280 wxTreeItemId *arg2 = 0 ;
35281 bool arg3 = (bool) true ;
35282 void *argp1 = 0 ;
35283 int res1 = 0 ;
35284 void *argp2 = 0 ;
35285 int res2 = 0 ;
35286 bool val3 ;
35287 int ecode3 = 0 ;
35288 PyObject * obj0 = 0 ;
35289 PyObject * obj1 = 0 ;
35290 PyObject * obj2 = 0 ;
35291 char * kwnames[] = {
35292 (char *) "self",(char *) "item",(char *) "bold", NULL
35293 };
35294
35295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35297 if (!SWIG_IsOK(res1)) {
35298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35299 }
35300 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35301 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35302 if (!SWIG_IsOK(res2)) {
35303 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35304 }
35305 if (!argp2) {
35306 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35307 }
35308 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35309 if (obj2) {
35310 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35311 if (!SWIG_IsOK(ecode3)) {
35312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35313 }
35314 arg3 = static_cast< bool >(val3);
35315 }
35316 {
35317 PyThreadState* __tstate = wxPyBeginAllowThreads();
35318 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35319 wxPyEndAllowThreads(__tstate);
35320 if (PyErr_Occurred()) SWIG_fail;
35321 }
35322 resultobj = SWIG_Py_Void();
35323 return resultobj;
35324fail:
35325 return NULL;
35326}
35327
35328
35329SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35330 PyObject *resultobj = 0;
35331 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35332 wxTreeItemId *arg2 = 0 ;
35333 bool arg3 = (bool) true ;
35334 void *argp1 = 0 ;
35335 int res1 = 0 ;
35336 void *argp2 = 0 ;
35337 int res2 = 0 ;
35338 bool val3 ;
35339 int ecode3 = 0 ;
35340 PyObject * obj0 = 0 ;
35341 PyObject * obj1 = 0 ;
35342 PyObject * obj2 = 0 ;
35343 char * kwnames[] = {
35344 (char *) "self",(char *) "item",(char *) "highlight", NULL
35345 };
35346
35347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35349 if (!SWIG_IsOK(res1)) {
35350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35351 }
35352 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35353 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35354 if (!SWIG_IsOK(res2)) {
35355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35356 }
35357 if (!argp2) {
35358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35359 }
35360 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35361 if (obj2) {
35362 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35363 if (!SWIG_IsOK(ecode3)) {
35364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35365 }
35366 arg3 = static_cast< bool >(val3);
35367 }
35368 {
35369 PyThreadState* __tstate = wxPyBeginAllowThreads();
35370 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35371 wxPyEndAllowThreads(__tstate);
35372 if (PyErr_Occurred()) SWIG_fail;
35373 }
35374 resultobj = SWIG_Py_Void();
35375 return resultobj;
35376fail:
35377 return NULL;
35378}
35379
35380
35381SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35382 PyObject *resultobj = 0;
35383 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35384 wxTreeItemId *arg2 = 0 ;
35385 wxColour *arg3 = 0 ;
35386 void *argp1 = 0 ;
35387 int res1 = 0 ;
35388 void *argp2 = 0 ;
35389 int res2 = 0 ;
35390 wxColour temp3 ;
35391 PyObject * obj0 = 0 ;
35392 PyObject * obj1 = 0 ;
35393 PyObject * obj2 = 0 ;
35394 char * kwnames[] = {
35395 (char *) "self",(char *) "item",(char *) "col", NULL
35396 };
35397
35398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35400 if (!SWIG_IsOK(res1)) {
35401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35402 }
35403 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35404 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35405 if (!SWIG_IsOK(res2)) {
35406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35407 }
35408 if (!argp2) {
35409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35410 }
35411 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35412 {
35413 arg3 = &temp3;
35414 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35415 }
35416 {
35417 PyThreadState* __tstate = wxPyBeginAllowThreads();
35418 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35419 wxPyEndAllowThreads(__tstate);
35420 if (PyErr_Occurred()) SWIG_fail;
35421 }
35422 resultobj = SWIG_Py_Void();
35423 return resultobj;
35424fail:
35425 return NULL;
35426}
35427
35428
35429SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35430 PyObject *resultobj = 0;
35431 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35432 wxTreeItemId *arg2 = 0 ;
35433 wxColour *arg3 = 0 ;
35434 void *argp1 = 0 ;
35435 int res1 = 0 ;
35436 void *argp2 = 0 ;
35437 int res2 = 0 ;
35438 wxColour temp3 ;
35439 PyObject * obj0 = 0 ;
35440 PyObject * obj1 = 0 ;
35441 PyObject * obj2 = 0 ;
35442 char * kwnames[] = {
35443 (char *) "self",(char *) "item",(char *) "col", NULL
35444 };
35445
35446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35448 if (!SWIG_IsOK(res1)) {
35449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35450 }
35451 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35452 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35453 if (!SWIG_IsOK(res2)) {
35454 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35455 }
35456 if (!argp2) {
35457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35458 }
35459 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35460 {
35461 arg3 = &temp3;
35462 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35463 }
35464 {
35465 PyThreadState* __tstate = wxPyBeginAllowThreads();
35466 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35467 wxPyEndAllowThreads(__tstate);
35468 if (PyErr_Occurred()) SWIG_fail;
35469 }
35470 resultobj = SWIG_Py_Void();
35471 return resultobj;
35472fail:
35473 return NULL;
35474}
35475
35476
35477SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35478 PyObject *resultobj = 0;
35479 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35480 wxTreeItemId *arg2 = 0 ;
35481 wxFont *arg3 = 0 ;
35482 void *argp1 = 0 ;
35483 int res1 = 0 ;
35484 void *argp2 = 0 ;
35485 int res2 = 0 ;
35486 void *argp3 = 0 ;
35487 int res3 = 0 ;
35488 PyObject * obj0 = 0 ;
35489 PyObject * obj1 = 0 ;
35490 PyObject * obj2 = 0 ;
35491 char * kwnames[] = {
35492 (char *) "self",(char *) "item",(char *) "font", NULL
35493 };
35494
35495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35497 if (!SWIG_IsOK(res1)) {
35498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35499 }
35500 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35501 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35502 if (!SWIG_IsOK(res2)) {
35503 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35504 }
35505 if (!argp2) {
35506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35507 }
35508 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35509 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35510 if (!SWIG_IsOK(res3)) {
35511 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35512 }
35513 if (!argp3) {
35514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35515 }
35516 arg3 = reinterpret_cast< wxFont * >(argp3);
35517 {
35518 PyThreadState* __tstate = wxPyBeginAllowThreads();
35519 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35520 wxPyEndAllowThreads(__tstate);
35521 if (PyErr_Occurred()) SWIG_fail;
35522 }
35523 resultobj = SWIG_Py_Void();
35524 return resultobj;
35525fail:
35526 return NULL;
35527}
35528
35529
35530SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35531 PyObject *resultobj = 0;
35532 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35533 wxTreeItemId *arg2 = 0 ;
35534 bool result;
35535 void *argp1 = 0 ;
35536 int res1 = 0 ;
35537 void *argp2 = 0 ;
35538 int res2 = 0 ;
35539 PyObject * obj0 = 0 ;
35540 PyObject * obj1 = 0 ;
35541 char * kwnames[] = {
35542 (char *) "self",(char *) "item", NULL
35543 };
35544
35545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35547 if (!SWIG_IsOK(res1)) {
35548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35549 }
35550 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35551 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35552 if (!SWIG_IsOK(res2)) {
35553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35554 }
35555 if (!argp2) {
35556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35557 }
35558 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35559 {
35560 PyThreadState* __tstate = wxPyBeginAllowThreads();
35561 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35562 wxPyEndAllowThreads(__tstate);
35563 if (PyErr_Occurred()) SWIG_fail;
35564 }
35565 {
35566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35567 }
35568 return resultobj;
35569fail:
35570 return NULL;
35571}
35572
35573
35574SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35575 PyObject *resultobj = 0;
35576 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35577 wxTreeItemId *arg2 = 0 ;
35578 bool result;
35579 void *argp1 = 0 ;
35580 int res1 = 0 ;
35581 void *argp2 = 0 ;
35582 int res2 = 0 ;
35583 PyObject * obj0 = 0 ;
35584 PyObject * obj1 = 0 ;
35585 char * kwnames[] = {
35586 (char *) "self",(char *) "item", NULL
35587 };
35588
35589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35591 if (!SWIG_IsOK(res1)) {
35592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35593 }
35594 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35595 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35596 if (!SWIG_IsOK(res2)) {
35597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35598 }
35599 if (!argp2) {
35600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35601 }
35602 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35603 {
35604 PyThreadState* __tstate = wxPyBeginAllowThreads();
35605 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35606 wxPyEndAllowThreads(__tstate);
35607 if (PyErr_Occurred()) SWIG_fail;
35608 }
35609 {
35610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35611 }
35612 return resultobj;
35613fail:
35614 return NULL;
35615}
35616
35617
35618SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35619 PyObject *resultobj = 0;
35620 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35621 wxTreeItemId *arg2 = 0 ;
35622 bool result;
35623 void *argp1 = 0 ;
35624 int res1 = 0 ;
35625 void *argp2 = 0 ;
35626 int res2 = 0 ;
35627 PyObject * obj0 = 0 ;
35628 PyObject * obj1 = 0 ;
35629 char * kwnames[] = {
35630 (char *) "self",(char *) "item", NULL
35631 };
35632
35633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35635 if (!SWIG_IsOK(res1)) {
35636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35637 }
35638 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35639 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35640 if (!SWIG_IsOK(res2)) {
35641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35642 }
35643 if (!argp2) {
35644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35645 }
35646 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35647 {
35648 PyThreadState* __tstate = wxPyBeginAllowThreads();
35649 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35650 wxPyEndAllowThreads(__tstate);
35651 if (PyErr_Occurred()) SWIG_fail;
35652 }
35653 {
35654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35655 }
35656 return resultobj;
35657fail:
35658 return NULL;
35659}
35660
35661
35662SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35663 PyObject *resultobj = 0;
35664 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35665 wxTreeItemId *arg2 = 0 ;
35666 bool result;
35667 void *argp1 = 0 ;
35668 int res1 = 0 ;
35669 void *argp2 = 0 ;
35670 int res2 = 0 ;
35671 PyObject * obj0 = 0 ;
35672 PyObject * obj1 = 0 ;
35673 char * kwnames[] = {
35674 (char *) "self",(char *) "item", NULL
35675 };
35676
35677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35679 if (!SWIG_IsOK(res1)) {
35680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35681 }
35682 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35683 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35684 if (!SWIG_IsOK(res2)) {
35685 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35686 }
35687 if (!argp2) {
35688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35689 }
35690 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35691 {
35692 PyThreadState* __tstate = wxPyBeginAllowThreads();
35693 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35694 wxPyEndAllowThreads(__tstate);
35695 if (PyErr_Occurred()) SWIG_fail;
35696 }
35697 {
35698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35699 }
35700 return resultobj;
35701fail:
35702 return NULL;
35703}
35704
35705
35706SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35707 PyObject *resultobj = 0;
35708 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35709 wxTreeItemId *arg2 = 0 ;
35710 bool result;
35711 void *argp1 = 0 ;
35712 int res1 = 0 ;
35713 void *argp2 = 0 ;
35714 int res2 = 0 ;
35715 PyObject * obj0 = 0 ;
35716 PyObject * obj1 = 0 ;
35717 char * kwnames[] = {
35718 (char *) "self",(char *) "item", NULL
35719 };
35720
35721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35723 if (!SWIG_IsOK(res1)) {
35724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35725 }
35726 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35727 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35728 if (!SWIG_IsOK(res2)) {
35729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35730 }
35731 if (!argp2) {
35732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35733 }
35734 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35735 {
35736 PyThreadState* __tstate = wxPyBeginAllowThreads();
35737 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35738 wxPyEndAllowThreads(__tstate);
35739 if (PyErr_Occurred()) SWIG_fail;
35740 }
35741 {
35742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35743 }
35744 return resultobj;
35745fail:
35746 return NULL;
35747}
35748
35749
1ceb4f4d
RD
35750SWIGINTERN PyObject *_wrap_TreeCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35751 PyObject *resultobj = 0;
35752 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35753 bool result;
35754 void *argp1 = 0 ;
35755 int res1 = 0 ;
35756 PyObject *swig_obj[1] ;
35757
35758 if (!args) SWIG_fail;
35759 swig_obj[0] = args;
35760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35761 if (!SWIG_IsOK(res1)) {
35762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35763 }
35764 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35765 {
35766 PyThreadState* __tstate = wxPyBeginAllowThreads();
35767 result = (bool)((wxPyTreeCtrl const *)arg1)->IsEmpty();
35768 wxPyEndAllowThreads(__tstate);
35769 if (PyErr_Occurred()) SWIG_fail;
35770 }
35771 {
35772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35773 }
35774 return resultobj;
35775fail:
35776 return NULL;
35777}
35778
35779
554f62e9
RD
35780SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35781 PyObject *resultobj = 0;
35782 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35783 wxTreeItemId *arg2 = 0 ;
35784 bool arg3 = (bool) true ;
35785 size_t result;
35786 void *argp1 = 0 ;
35787 int res1 = 0 ;
35788 void *argp2 = 0 ;
35789 int res2 = 0 ;
35790 bool val3 ;
35791 int ecode3 = 0 ;
35792 PyObject * obj0 = 0 ;
35793 PyObject * obj1 = 0 ;
35794 PyObject * obj2 = 0 ;
35795 char * kwnames[] = {
35796 (char *) "self",(char *) "item",(char *) "recursively", NULL
35797 };
35798
35799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35801 if (!SWIG_IsOK(res1)) {
35802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35803 }
35804 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35805 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35806 if (!SWIG_IsOK(res2)) {
35807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35808 }
35809 if (!argp2) {
35810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35811 }
35812 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35813 if (obj2) {
35814 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35815 if (!SWIG_IsOK(ecode3)) {
35816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35817 }
35818 arg3 = static_cast< bool >(val3);
35819 }
35820 {
35821 PyThreadState* __tstate = wxPyBeginAllowThreads();
35822 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35823 wxPyEndAllowThreads(__tstate);
35824 if (PyErr_Occurred()) SWIG_fail;
35825 }
35826 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35827 return resultobj;
35828fail:
35829 return NULL;
d55e5bfc
RD
35830}
35831
35832
554f62e9
RD
35833SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35834 PyObject *resultobj = 0;
35835 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35836 wxTreeItemId result;
35837 void *argp1 = 0 ;
35838 int res1 = 0 ;
35839 PyObject *swig_obj[1] ;
35840
35841 if (!args) SWIG_fail;
35842 swig_obj[0] = args;
35843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35844 if (!SWIG_IsOK(res1)) {
35845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35846 }
35847 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35848 {
35849 PyThreadState* __tstate = wxPyBeginAllowThreads();
35850 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35851 wxPyEndAllowThreads(__tstate);
35852 if (PyErr_Occurred()) SWIG_fail;
35853 }
35854 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35855 return resultobj;
35856fail:
35857 return NULL;
d55e5bfc
RD
35858}
35859
35860
554f62e9
RD
35861SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35862 PyObject *resultobj = 0;
35863 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35864 wxTreeItemId result;
35865 void *argp1 = 0 ;
35866 int res1 = 0 ;
35867 PyObject *swig_obj[1] ;
35868
35869 if (!args) SWIG_fail;
35870 swig_obj[0] = args;
35871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35872 if (!SWIG_IsOK(res1)) {
35873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35874 }
35875 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35876 {
35877 PyThreadState* __tstate = wxPyBeginAllowThreads();
35878 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35879 wxPyEndAllowThreads(__tstate);
35880 if (PyErr_Occurred()) SWIG_fail;
35881 }
35882 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35883 return resultobj;
35884fail:
35885 return NULL;
d55e5bfc
RD
35886}
35887
35888
554f62e9
RD
35889SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35890 PyObject *resultobj = 0;
35891 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35892 PyObject *result = 0 ;
35893 void *argp1 = 0 ;
35894 int res1 = 0 ;
35895 PyObject *swig_obj[1] ;
35896
35897 if (!args) SWIG_fail;
35898 swig_obj[0] = args;
35899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35900 if (!SWIG_IsOK(res1)) {
35901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35902 }
35903 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35904 {
35905 PyThreadState* __tstate = wxPyBeginAllowThreads();
35906 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35907 wxPyEndAllowThreads(__tstate);
35908 if (PyErr_Occurred()) SWIG_fail;
35909 }
35910 resultobj = result;
35911 return resultobj;
35912fail:
35913 return NULL;
35914}
35915
35916
35917SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35918 PyObject *resultobj = 0;
35919 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35920 wxTreeItemId *arg2 = 0 ;
35921 wxTreeItemId result;
35922 void *argp1 = 0 ;
35923 int res1 = 0 ;
35924 void *argp2 = 0 ;
35925 int res2 = 0 ;
35926 PyObject * obj0 = 0 ;
35927 PyObject * obj1 = 0 ;
35928 char * kwnames[] = {
35929 (char *) "self",(char *) "item", NULL
35930 };
35931
35932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35934 if (!SWIG_IsOK(res1)) {
35935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35936 }
35937 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35938 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35939 if (!SWIG_IsOK(res2)) {
35940 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35941 }
35942 if (!argp2) {
35943 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35944 }
35945 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35946 {
35947 PyThreadState* __tstate = wxPyBeginAllowThreads();
35948 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35949 wxPyEndAllowThreads(__tstate);
35950 if (PyErr_Occurred()) SWIG_fail;
35951 }
35952 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35953 return resultobj;
35954fail:
35955 return NULL;
35956}
35957
35958
35959SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35960 PyObject *resultobj = 0;
35961 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35962 wxTreeItemId *arg2 = 0 ;
35963 PyObject *result = 0 ;
35964 void *argp1 = 0 ;
35965 int res1 = 0 ;
35966 void *argp2 = 0 ;
35967 int res2 = 0 ;
35968 PyObject * obj0 = 0 ;
35969 PyObject * obj1 = 0 ;
35970 char * kwnames[] = {
35971 (char *) "self",(char *) "item", NULL
35972 };
35973
35974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35976 if (!SWIG_IsOK(res1)) {
35977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35978 }
35979 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35980 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35981 if (!SWIG_IsOK(res2)) {
35982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35983 }
35984 if (!argp2) {
35985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35986 }
35987 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35988 {
35989 PyThreadState* __tstate = wxPyBeginAllowThreads();
35990 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35991 wxPyEndAllowThreads(__tstate);
35992 if (PyErr_Occurred()) SWIG_fail;
35993 }
35994 resultobj = result;
35995 return resultobj;
35996fail:
35997 return NULL;
35998}
35999
36000
36001SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36002 PyObject *resultobj = 0;
36003 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36004 wxTreeItemId *arg2 = 0 ;
36005 void *arg3 = (void *) 0 ;
36006 PyObject *result = 0 ;
36007 void *argp1 = 0 ;
36008 int res1 = 0 ;
36009 void *argp2 = 0 ;
36010 int res2 = 0 ;
36011 int res3 ;
36012 PyObject * obj0 = 0 ;
36013 PyObject * obj1 = 0 ;
36014 PyObject * obj2 = 0 ;
36015 char * kwnames[] = {
36016 (char *) "self",(char *) "item",(char *) "cookie", NULL
36017 };
36018
36019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36021 if (!SWIG_IsOK(res1)) {
36022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36023 }
36024 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36026 if (!SWIG_IsOK(res2)) {
36027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36028 }
36029 if (!argp2) {
36030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36031 }
36032 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36033 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
36034 if (!SWIG_IsOK(res3)) {
36035 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
36036 }
36037 {
36038 PyThreadState* __tstate = wxPyBeginAllowThreads();
36039 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
36040 wxPyEndAllowThreads(__tstate);
36041 if (PyErr_Occurred()) SWIG_fail;
36042 }
36043 resultobj = result;
36044 return resultobj;
36045fail:
36046 return NULL;
36047}
36048
36049
36050SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36051 PyObject *resultobj = 0;
36052 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36053 wxTreeItemId *arg2 = 0 ;
36054 wxTreeItemId result;
36055 void *argp1 = 0 ;
36056 int res1 = 0 ;
36057 void *argp2 = 0 ;
36058 int res2 = 0 ;
36059 PyObject * obj0 = 0 ;
36060 PyObject * obj1 = 0 ;
36061 char * kwnames[] = {
36062 (char *) "self",(char *) "item", NULL
36063 };
36064
36065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
36066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36067 if (!SWIG_IsOK(res1)) {
36068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36069 }
36070 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36071 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36072 if (!SWIG_IsOK(res2)) {
36073 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36074 }
36075 if (!argp2) {
36076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36077 }
36078 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36079 {
36080 PyThreadState* __tstate = wxPyBeginAllowThreads();
36081 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
36082 wxPyEndAllowThreads(__tstate);
36083 if (PyErr_Occurred()) SWIG_fail;
36084 }
36085 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36086 return resultobj;
36087fail:
36088 return NULL;
36089}
36090
36091
36092SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36093 PyObject *resultobj = 0;
36094 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36095 wxTreeItemId *arg2 = 0 ;
36096 wxTreeItemId result;
36097 void *argp1 = 0 ;
36098 int res1 = 0 ;
36099 void *argp2 = 0 ;
36100 int res2 = 0 ;
36101 PyObject * obj0 = 0 ;
36102 PyObject * obj1 = 0 ;
36103 char * kwnames[] = {
36104 (char *) "self",(char *) "item", NULL
36105 };
36106
36107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
36108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36109 if (!SWIG_IsOK(res1)) {
36110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36111 }
36112 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36113 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36114 if (!SWIG_IsOK(res2)) {
36115 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36116 }
36117 if (!argp2) {
36118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36119 }
36120 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36121 {
36122 PyThreadState* __tstate = wxPyBeginAllowThreads();
36123 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
36124 wxPyEndAllowThreads(__tstate);
36125 if (PyErr_Occurred()) SWIG_fail;
36126 }
36127 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36128 return resultobj;
36129fail:
36130 return NULL;
36131}
36132
36133
36134SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36135 PyObject *resultobj = 0;
36136 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36137 wxTreeItemId *arg2 = 0 ;
36138 wxTreeItemId result;
36139 void *argp1 = 0 ;
36140 int res1 = 0 ;
36141 void *argp2 = 0 ;
36142 int res2 = 0 ;
36143 PyObject * obj0 = 0 ;
36144 PyObject * obj1 = 0 ;
36145 char * kwnames[] = {
36146 (char *) "self",(char *) "item", NULL
36147 };
36148
36149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
36150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36151 if (!SWIG_IsOK(res1)) {
36152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36153 }
36154 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36155 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36156 if (!SWIG_IsOK(res2)) {
36157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36158 }
36159 if (!argp2) {
36160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36161 }
36162 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36163 {
36164 PyThreadState* __tstate = wxPyBeginAllowThreads();
36165 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
36166 wxPyEndAllowThreads(__tstate);
36167 if (PyErr_Occurred()) SWIG_fail;
36168 }
36169 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36170 return resultobj;
36171fail:
36172 return NULL;
d55e5bfc
RD
36173}
36174
36175
554f62e9
RD
36176SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36177 PyObject *resultobj = 0;
36178 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36179 wxTreeItemId result;
36180 void *argp1 = 0 ;
36181 int res1 = 0 ;
36182 PyObject *swig_obj[1] ;
36183
36184 if (!args) SWIG_fail;
36185 swig_obj[0] = args;
36186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36187 if (!SWIG_IsOK(res1)) {
36188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36189 }
36190 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36191 {
36192 PyThreadState* __tstate = wxPyBeginAllowThreads();
36193 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
36194 wxPyEndAllowThreads(__tstate);
36195 if (PyErr_Occurred()) SWIG_fail;
36196 }
36197 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36198 return resultobj;
36199fail:
36200 return NULL;
36201}
36202
36203
36204SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36205 PyObject *resultobj = 0;
36206 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36207 wxTreeItemId *arg2 = 0 ;
36208 wxTreeItemId result;
36209 void *argp1 = 0 ;
36210 int res1 = 0 ;
36211 void *argp2 = 0 ;
36212 int res2 = 0 ;
36213 PyObject * obj0 = 0 ;
36214 PyObject * obj1 = 0 ;
36215 char * kwnames[] = {
36216 (char *) "self",(char *) "item", NULL
36217 };
36218
36219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36221 if (!SWIG_IsOK(res1)) {
36222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36223 }
36224 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36225 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36226 if (!SWIG_IsOK(res2)) {
36227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36228 }
36229 if (!argp2) {
36230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36231 }
36232 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36233 {
36234 PyThreadState* __tstate = wxPyBeginAllowThreads();
36235 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
36236 wxPyEndAllowThreads(__tstate);
36237 if (PyErr_Occurred()) SWIG_fail;
36238 }
36239 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36240 return resultobj;
36241fail:
36242 return NULL;
36243}
36244
36245
36246SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36247 PyObject *resultobj = 0;
36248 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36249 wxTreeItemId *arg2 = 0 ;
36250 wxTreeItemId result;
36251 void *argp1 = 0 ;
36252 int res1 = 0 ;
36253 void *argp2 = 0 ;
36254 int res2 = 0 ;
36255 PyObject * obj0 = 0 ;
36256 PyObject * obj1 = 0 ;
36257 char * kwnames[] = {
36258 (char *) "self",(char *) "item", NULL
36259 };
36260
36261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36263 if (!SWIG_IsOK(res1)) {
36264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36265 }
36266 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36267 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36268 if (!SWIG_IsOK(res2)) {
36269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36270 }
36271 if (!argp2) {
36272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36273 }
36274 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36275 {
36276 PyThreadState* __tstate = wxPyBeginAllowThreads();
36277 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36278 wxPyEndAllowThreads(__tstate);
36279 if (PyErr_Occurred()) SWIG_fail;
36280 }
36281 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36282 return resultobj;
36283fail:
36284 return NULL;
36285}
36286
36287
36288SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36289 PyObject *resultobj = 0;
36290 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36291 wxString *arg2 = 0 ;
36292 int arg3 = (int) -1 ;
36293 int arg4 = (int) -1 ;
36294 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36295 wxTreeItemId result;
36296 void *argp1 = 0 ;
36297 int res1 = 0 ;
36298 bool temp2 = false ;
36299 int val3 ;
36300 int ecode3 = 0 ;
36301 int val4 ;
36302 int ecode4 = 0 ;
36303 int res5 = 0 ;
36304 PyObject * obj0 = 0 ;
36305 PyObject * obj1 = 0 ;
36306 PyObject * obj2 = 0 ;
36307 PyObject * obj3 = 0 ;
36308 PyObject * obj4 = 0 ;
36309 char * kwnames[] = {
36310 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36311 };
36312
36313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36315 if (!SWIG_IsOK(res1)) {
36316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36317 }
36318 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36319 {
36320 arg2 = wxString_in_helper(obj1);
36321 if (arg2 == NULL) SWIG_fail;
36322 temp2 = true;
36323 }
36324 if (obj2) {
36325 ecode3 = SWIG_AsVal_int(obj2, &val3);
36326 if (!SWIG_IsOK(ecode3)) {
36327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36328 }
36329 arg3 = static_cast< int >(val3);
36330 }
36331 if (obj3) {
36332 ecode4 = SWIG_AsVal_int(obj3, &val4);
36333 if (!SWIG_IsOK(ecode4)) {
36334 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36335 }
36336 arg4 = static_cast< int >(val4);
36337 }
36338 if (obj4) {
36339 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36340 if (!SWIG_IsOK(res5)) {
36341 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36342 }
554f62e9
RD
36343 }
36344 {
36345 PyThreadState* __tstate = wxPyBeginAllowThreads();
36346 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36347 wxPyEndAllowThreads(__tstate);
36348 if (PyErr_Occurred()) SWIG_fail;
36349 }
36350 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36351 {
36352 if (temp2)
36353 delete arg2;
36354 }
36355 return resultobj;
36356fail:
36357 {
36358 if (temp2)
36359 delete arg2;
36360 }
36361 return NULL;
36362}
36363
36364
36365SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36366 PyObject *resultobj = 0;
36367 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36368 wxTreeItemId *arg2 = 0 ;
36369 wxString *arg3 = 0 ;
36370 int arg4 = (int) -1 ;
36371 int arg5 = (int) -1 ;
36372 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36373 wxTreeItemId result;
36374 void *argp1 = 0 ;
36375 int res1 = 0 ;
36376 void *argp2 = 0 ;
36377 int res2 = 0 ;
36378 bool temp3 = false ;
36379 int val4 ;
36380 int ecode4 = 0 ;
36381 int val5 ;
36382 int ecode5 = 0 ;
36383 int res6 = 0 ;
36384 PyObject * obj0 = 0 ;
36385 PyObject * obj1 = 0 ;
36386 PyObject * obj2 = 0 ;
36387 PyObject * obj3 = 0 ;
36388 PyObject * obj4 = 0 ;
36389 PyObject * obj5 = 0 ;
36390 char * kwnames[] = {
36391 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36392 };
36393
36394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36396 if (!SWIG_IsOK(res1)) {
36397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36398 }
36399 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36400 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36401 if (!SWIG_IsOK(res2)) {
36402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36403 }
36404 if (!argp2) {
36405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36406 }
36407 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36408 {
36409 arg3 = wxString_in_helper(obj2);
36410 if (arg3 == NULL) SWIG_fail;
36411 temp3 = true;
36412 }
36413 if (obj3) {
36414 ecode4 = SWIG_AsVal_int(obj3, &val4);
36415 if (!SWIG_IsOK(ecode4)) {
36416 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36417 }
36418 arg4 = static_cast< int >(val4);
36419 }
36420 if (obj4) {
36421 ecode5 = SWIG_AsVal_int(obj4, &val5);
36422 if (!SWIG_IsOK(ecode5)) {
36423 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36424 }
36425 arg5 = static_cast< int >(val5);
36426 }
36427 if (obj5) {
36428 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36429 if (!SWIG_IsOK(res6)) {
36430 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
093d3ff1 36431 }
554f62e9
RD
36432 }
36433 {
36434 PyThreadState* __tstate = wxPyBeginAllowThreads();
36435 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36436 wxPyEndAllowThreads(__tstate);
36437 if (PyErr_Occurred()) SWIG_fail;
36438 }
36439 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36440 {
36441 if (temp3)
36442 delete arg3;
36443 }
36444 return resultobj;
36445fail:
36446 {
36447 if (temp3)
36448 delete arg3;
36449 }
36450 return NULL;
36451}
36452
36453
36454SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36455 PyObject *resultobj = 0;
36456 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36457 wxTreeItemId *arg2 = 0 ;
36458 wxTreeItemId *arg3 = 0 ;
36459 wxString *arg4 = 0 ;
36460 int arg5 = (int) -1 ;
36461 int arg6 = (int) -1 ;
36462 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36463 wxTreeItemId result;
36464 void *argp1 = 0 ;
36465 int res1 = 0 ;
36466 void *argp2 = 0 ;
36467 int res2 = 0 ;
36468 void *argp3 = 0 ;
36469 int res3 = 0 ;
36470 bool temp4 = false ;
36471 int val5 ;
36472 int ecode5 = 0 ;
36473 int val6 ;
36474 int ecode6 = 0 ;
36475 int res7 = 0 ;
36476 PyObject * obj0 = 0 ;
36477 PyObject * obj1 = 0 ;
36478 PyObject * obj2 = 0 ;
36479 PyObject * obj3 = 0 ;
36480 PyObject * obj4 = 0 ;
36481 PyObject * obj5 = 0 ;
36482 PyObject * obj6 = 0 ;
36483 char * kwnames[] = {
36484 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36485 };
36486
36487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36489 if (!SWIG_IsOK(res1)) {
36490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36491 }
36492 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36493 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36494 if (!SWIG_IsOK(res2)) {
36495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36496 }
36497 if (!argp2) {
36498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36499 }
36500 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36501 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36502 if (!SWIG_IsOK(res3)) {
36503 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36504 }
36505 if (!argp3) {
36506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36507 }
36508 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36509 {
36510 arg4 = wxString_in_helper(obj3);
36511 if (arg4 == NULL) SWIG_fail;
36512 temp4 = true;
36513 }
36514 if (obj4) {
36515 ecode5 = SWIG_AsVal_int(obj4, &val5);
36516 if (!SWIG_IsOK(ecode5)) {
36517 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36518 }
36519 arg5 = static_cast< int >(val5);
36520 }
36521 if (obj5) {
36522 ecode6 = SWIG_AsVal_int(obj5, &val6);
36523 if (!SWIG_IsOK(ecode6)) {
36524 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36525 }
36526 arg6 = static_cast< int >(val6);
36527 }
36528 if (obj6) {
36529 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36530 if (!SWIG_IsOK(res7)) {
36531 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36532 }
554f62e9
RD
36533 }
36534 {
36535 PyThreadState* __tstate = wxPyBeginAllowThreads();
36536 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36537 wxPyEndAllowThreads(__tstate);
36538 if (PyErr_Occurred()) SWIG_fail;
36539 }
36540 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36541 {
36542 if (temp4)
36543 delete arg4;
36544 }
36545 return resultobj;
36546fail:
36547 {
36548 if (temp4)
36549 delete arg4;
36550 }
36551 return NULL;
36552}
36553
36554
36555SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36556 PyObject *resultobj = 0;
36557 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36558 wxTreeItemId *arg2 = 0 ;
36559 size_t arg3 ;
36560 wxString *arg4 = 0 ;
36561 int arg5 = (int) -1 ;
36562 int arg6 = (int) -1 ;
36563 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36564 wxTreeItemId result;
36565 void *argp1 = 0 ;
36566 int res1 = 0 ;
36567 void *argp2 = 0 ;
36568 int res2 = 0 ;
36569 size_t val3 ;
36570 int ecode3 = 0 ;
36571 bool temp4 = false ;
36572 int val5 ;
36573 int ecode5 = 0 ;
36574 int val6 ;
36575 int ecode6 = 0 ;
36576 int res7 = 0 ;
36577 PyObject * obj0 = 0 ;
36578 PyObject * obj1 = 0 ;
36579 PyObject * obj2 = 0 ;
36580 PyObject * obj3 = 0 ;
36581 PyObject * obj4 = 0 ;
36582 PyObject * obj5 = 0 ;
36583 PyObject * obj6 = 0 ;
36584 char * kwnames[] = {
36585 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36586 };
36587
36588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36590 if (!SWIG_IsOK(res1)) {
36591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36592 }
36593 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36594 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36595 if (!SWIG_IsOK(res2)) {
36596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36597 }
36598 if (!argp2) {
36599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36600 }
36601 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36602 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36603 if (!SWIG_IsOK(ecode3)) {
36604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36605 }
36606 arg3 = static_cast< size_t >(val3);
36607 {
36608 arg4 = wxString_in_helper(obj3);
36609 if (arg4 == NULL) SWIG_fail;
36610 temp4 = true;
36611 }
36612 if (obj4) {
36613 ecode5 = SWIG_AsVal_int(obj4, &val5);
36614 if (!SWIG_IsOK(ecode5)) {
36615 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36616 }
36617 arg5 = static_cast< int >(val5);
36618 }
36619 if (obj5) {
36620 ecode6 = SWIG_AsVal_int(obj5, &val6);
36621 if (!SWIG_IsOK(ecode6)) {
36622 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36623 }
36624 arg6 = static_cast< int >(val6);
36625 }
36626 if (obj6) {
36627 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36628 if (!SWIG_IsOK(res7)) {
36629 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
093d3ff1 36630 }
554f62e9
RD
36631 }
36632 {
36633 PyThreadState* __tstate = wxPyBeginAllowThreads();
36634 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36635 wxPyEndAllowThreads(__tstate);
36636 if (PyErr_Occurred()) SWIG_fail;
36637 }
36638 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36639 {
36640 if (temp4)
36641 delete arg4;
36642 }
36643 return resultobj;
36644fail:
36645 {
36646 if (temp4)
36647 delete arg4;
36648 }
36649 return NULL;
36650}
36651
36652
36653SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36654 PyObject *resultobj = 0;
36655 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36656 wxTreeItemId *arg2 = 0 ;
36657 wxString *arg3 = 0 ;
36658 int arg4 = (int) -1 ;
36659 int arg5 = (int) -1 ;
36660 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36661 wxTreeItemId result;
36662 void *argp1 = 0 ;
36663 int res1 = 0 ;
36664 void *argp2 = 0 ;
36665 int res2 = 0 ;
36666 bool temp3 = false ;
36667 int val4 ;
36668 int ecode4 = 0 ;
36669 int val5 ;
36670 int ecode5 = 0 ;
36671 int res6 = 0 ;
36672 PyObject * obj0 = 0 ;
36673 PyObject * obj1 = 0 ;
36674 PyObject * obj2 = 0 ;
36675 PyObject * obj3 = 0 ;
36676 PyObject * obj4 = 0 ;
36677 PyObject * obj5 = 0 ;
36678 char * kwnames[] = {
36679 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36680 };
36681
36682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36684 if (!SWIG_IsOK(res1)) {
36685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36686 }
36687 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36688 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36689 if (!SWIG_IsOK(res2)) {
36690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36691 }
36692 if (!argp2) {
36693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36694 }
36695 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36696 {
36697 arg3 = wxString_in_helper(obj2);
36698 if (arg3 == NULL) SWIG_fail;
36699 temp3 = true;
36700 }
36701 if (obj3) {
36702 ecode4 = SWIG_AsVal_int(obj3, &val4);
36703 if (!SWIG_IsOK(ecode4)) {
36704 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36705 }
36706 arg4 = static_cast< int >(val4);
36707 }
36708 if (obj4) {
36709 ecode5 = SWIG_AsVal_int(obj4, &val5);
36710 if (!SWIG_IsOK(ecode5)) {
36711 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36712 }
36713 arg5 = static_cast< int >(val5);
36714 }
36715 if (obj5) {
36716 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36717 if (!SWIG_IsOK(res6)) {
36718 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36719 }
554f62e9
RD
36720 }
36721 {
36722 PyThreadState* __tstate = wxPyBeginAllowThreads();
36723 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36724 wxPyEndAllowThreads(__tstate);
36725 if (PyErr_Occurred()) SWIG_fail;
36726 }
36727 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36728 {
36729 if (temp3)
36730 delete arg3;
36731 }
36732 return resultobj;
36733fail:
36734 {
36735 if (temp3)
36736 delete arg3;
36737 }
36738 return NULL;
36739}
36740
36741
36742SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36743 PyObject *resultobj = 0;
36744 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36745 wxTreeItemId *arg2 = 0 ;
36746 void *argp1 = 0 ;
36747 int res1 = 0 ;
36748 void *argp2 = 0 ;
36749 int res2 = 0 ;
36750 PyObject * obj0 = 0 ;
36751 PyObject * obj1 = 0 ;
36752 char * kwnames[] = {
36753 (char *) "self",(char *) "item", NULL
36754 };
36755
36756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36758 if (!SWIG_IsOK(res1)) {
36759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36760 }
36761 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36762 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36763 if (!SWIG_IsOK(res2)) {
36764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36765 }
36766 if (!argp2) {
36767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36768 }
36769 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36770 {
36771 PyThreadState* __tstate = wxPyBeginAllowThreads();
36772 (arg1)->Delete((wxTreeItemId const &)*arg2);
36773 wxPyEndAllowThreads(__tstate);
36774 if (PyErr_Occurred()) SWIG_fail;
36775 }
36776 resultobj = SWIG_Py_Void();
36777 return resultobj;
36778fail:
36779 return NULL;
36780}
36781
36782
36783SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36784 PyObject *resultobj = 0;
36785 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36786 wxTreeItemId *arg2 = 0 ;
36787 void *argp1 = 0 ;
36788 int res1 = 0 ;
36789 void *argp2 = 0 ;
36790 int res2 = 0 ;
36791 PyObject * obj0 = 0 ;
36792 PyObject * obj1 = 0 ;
36793 char * kwnames[] = {
36794 (char *) "self",(char *) "item", NULL
36795 };
36796
36797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36799 if (!SWIG_IsOK(res1)) {
36800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36801 }
36802 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36804 if (!SWIG_IsOK(res2)) {
36805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36806 }
36807 if (!argp2) {
36808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36809 }
36810 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36811 {
36812 PyThreadState* __tstate = wxPyBeginAllowThreads();
36813 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36814 wxPyEndAllowThreads(__tstate);
36815 if (PyErr_Occurred()) SWIG_fail;
36816 }
36817 resultobj = SWIG_Py_Void();
36818 return resultobj;
36819fail:
36820 return NULL;
d55e5bfc
RD
36821}
36822
36823
554f62e9
RD
36824SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36825 PyObject *resultobj = 0;
36826 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36827 void *argp1 = 0 ;
36828 int res1 = 0 ;
36829 PyObject *swig_obj[1] ;
36830
36831 if (!args) SWIG_fail;
36832 swig_obj[0] = args;
36833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36834 if (!SWIG_IsOK(res1)) {
36835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36836 }
36837 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36838 {
36839 PyThreadState* __tstate = wxPyBeginAllowThreads();
36840 (arg1)->DeleteAllItems();
36841 wxPyEndAllowThreads(__tstate);
36842 if (PyErr_Occurred()) SWIG_fail;
36843 }
36844 resultobj = SWIG_Py_Void();
36845 return resultobj;
36846fail:
36847 return NULL;
36848}
36849
36850
36851SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36852 PyObject *resultobj = 0;
36853 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36854 wxTreeItemId *arg2 = 0 ;
36855 void *argp1 = 0 ;
36856 int res1 = 0 ;
36857 void *argp2 = 0 ;
36858 int res2 = 0 ;
36859 PyObject * obj0 = 0 ;
36860 PyObject * obj1 = 0 ;
36861 char * kwnames[] = {
36862 (char *) "self",(char *) "item", NULL
36863 };
36864
36865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36867 if (!SWIG_IsOK(res1)) {
36868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36869 }
36870 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36871 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36872 if (!SWIG_IsOK(res2)) {
36873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36874 }
36875 if (!argp2) {
36876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36877 }
36878 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36879 {
36880 PyThreadState* __tstate = wxPyBeginAllowThreads();
36881 (arg1)->Expand((wxTreeItemId const &)*arg2);
36882 wxPyEndAllowThreads(__tstate);
36883 if (PyErr_Occurred()) SWIG_fail;
36884 }
36885 resultobj = SWIG_Py_Void();
36886 return resultobj;
36887fail:
36888 return NULL;
36889}
36890
36891
453fb36b
RD
36892SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36893 PyObject *resultobj = 0;
36894 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36895 wxTreeItemId *arg2 = 0 ;
36896 void *argp1 = 0 ;
36897 int res1 = 0 ;
36898 void *argp2 = 0 ;
36899 int res2 = 0 ;
36900 PyObject * obj0 = 0 ;
36901 PyObject * obj1 = 0 ;
36902 char * kwnames[] = {
36903 (char *) "self",(char *) "item", NULL
36904 };
36905
36906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36908 if (!SWIG_IsOK(res1)) {
36909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36910 }
36911 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36913 if (!SWIG_IsOK(res2)) {
36914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36915 }
36916 if (!argp2) {
36917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36918 }
36919 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36920 {
36921 PyThreadState* __tstate = wxPyBeginAllowThreads();
36922 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36923 wxPyEndAllowThreads(__tstate);
36924 if (PyErr_Occurred()) SWIG_fail;
36925 }
36926 resultobj = SWIG_Py_Void();
36927 return resultobj;
36928fail:
36929 return NULL;
36930}
36931
36932
36933SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36934 PyObject *resultobj = 0;
36935 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36936 void *argp1 = 0 ;
36937 int res1 = 0 ;
36938 PyObject *swig_obj[1] ;
36939
36940 if (!args) SWIG_fail;
36941 swig_obj[0] = args;
36942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36943 if (!SWIG_IsOK(res1)) {
36944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36945 }
36946 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36947 {
36948 PyThreadState* __tstate = wxPyBeginAllowThreads();
36949 (arg1)->ExpandAll();
36950 wxPyEndAllowThreads(__tstate);
36951 if (PyErr_Occurred()) SWIG_fail;
36952 }
36953 resultobj = SWIG_Py_Void();
36954 return resultobj;
36955fail:
36956 return NULL;
36957}
36958
36959
554f62e9
RD
36960SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36961 PyObject *resultobj = 0;
36962 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36963 wxTreeItemId *arg2 = 0 ;
36964 void *argp1 = 0 ;
36965 int res1 = 0 ;
36966 void *argp2 = 0 ;
36967 int res2 = 0 ;
36968 PyObject * obj0 = 0 ;
36969 PyObject * obj1 = 0 ;
36970 char * kwnames[] = {
36971 (char *) "self",(char *) "item", NULL
36972 };
36973
36974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36976 if (!SWIG_IsOK(res1)) {
36977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36978 }
36979 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36980 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36981 if (!SWIG_IsOK(res2)) {
36982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36983 }
36984 if (!argp2) {
36985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36986 }
36987 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36988 {
36989 PyThreadState* __tstate = wxPyBeginAllowThreads();
36990 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36991 wxPyEndAllowThreads(__tstate);
36992 if (PyErr_Occurred()) SWIG_fail;
36993 }
36994 resultobj = SWIG_Py_Void();
36995 return resultobj;
36996fail:
36997 return NULL;
36998}
36999
37000
1ceb4f4d
RD
37001SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37002 PyObject *resultobj = 0;
37003 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37004 wxTreeItemId *arg2 = 0 ;
37005 void *argp1 = 0 ;
37006 int res1 = 0 ;
37007 void *argp2 = 0 ;
37008 int res2 = 0 ;
37009 PyObject * obj0 = 0 ;
37010 PyObject * obj1 = 0 ;
37011 char * kwnames[] = {
37012 (char *) "self",(char *) "item", NULL
37013 };
37014
37015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37017 if (!SWIG_IsOK(res1)) {
37018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37019 }
37020 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37021 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37022 if (!SWIG_IsOK(res2)) {
37023 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37024 }
37025 if (!argp2) {
37026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37027 }
37028 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37029 {
37030 PyThreadState* __tstate = wxPyBeginAllowThreads();
37031 (arg1)->CollapseAllChildren((wxTreeItemId const &)*arg2);
37032 wxPyEndAllowThreads(__tstate);
37033 if (PyErr_Occurred()) SWIG_fail;
37034 }
37035 resultobj = SWIG_Py_Void();
37036 return resultobj;
37037fail:
37038 return NULL;
37039}
37040
37041
37042SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37043 PyObject *resultobj = 0;
37044 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37045 void *argp1 = 0 ;
37046 int res1 = 0 ;
37047 PyObject *swig_obj[1] ;
37048
37049 if (!args) SWIG_fail;
37050 swig_obj[0] = args;
37051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37052 if (!SWIG_IsOK(res1)) {
37053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37054 }
37055 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37056 {
37057 PyThreadState* __tstate = wxPyBeginAllowThreads();
37058 (arg1)->CollapseAll();
37059 wxPyEndAllowThreads(__tstate);
37060 if (PyErr_Occurred()) SWIG_fail;
37061 }
37062 resultobj = SWIG_Py_Void();
37063 return resultobj;
37064fail:
37065 return NULL;
37066}
37067
37068
554f62e9
RD
37069SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37070 PyObject *resultobj = 0;
37071 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37072 wxTreeItemId *arg2 = 0 ;
37073 void *argp1 = 0 ;
37074 int res1 = 0 ;
37075 void *argp2 = 0 ;
37076 int res2 = 0 ;
37077 PyObject * obj0 = 0 ;
37078 PyObject * obj1 = 0 ;
37079 char * kwnames[] = {
37080 (char *) "self",(char *) "item", NULL
37081 };
37082
37083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
37084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37085 if (!SWIG_IsOK(res1)) {
37086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37087 }
37088 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37089 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37090 if (!SWIG_IsOK(res2)) {
37091 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37092 }
37093 if (!argp2) {
37094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37095 }
37096 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37097 {
37098 PyThreadState* __tstate = wxPyBeginAllowThreads();
37099 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
37100 wxPyEndAllowThreads(__tstate);
37101 if (PyErr_Occurred()) SWIG_fail;
37102 }
37103 resultobj = SWIG_Py_Void();
37104 return resultobj;
37105fail:
37106 return NULL;
37107}
37108
37109
37110SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37111 PyObject *resultobj = 0;
37112 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37113 wxTreeItemId *arg2 = 0 ;
37114 void *argp1 = 0 ;
37115 int res1 = 0 ;
37116 void *argp2 = 0 ;
37117 int res2 = 0 ;
37118 PyObject * obj0 = 0 ;
37119 PyObject * obj1 = 0 ;
37120 char * kwnames[] = {
37121 (char *) "self",(char *) "item", NULL
37122 };
37123
37124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
37125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37126 if (!SWIG_IsOK(res1)) {
37127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37128 }
37129 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37130 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37131 if (!SWIG_IsOK(res2)) {
37132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37133 }
37134 if (!argp2) {
37135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37136 }
37137 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37138 {
37139 PyThreadState* __tstate = wxPyBeginAllowThreads();
37140 (arg1)->Toggle((wxTreeItemId const &)*arg2);
37141 wxPyEndAllowThreads(__tstate);
37142 if (PyErr_Occurred()) SWIG_fail;
37143 }
37144 resultobj = SWIG_Py_Void();
37145 return resultobj;
37146fail:
37147 return NULL;
d55e5bfc
RD
37148}
37149
37150
554f62e9
RD
37151SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37152 PyObject *resultobj = 0;
37153 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37154 void *argp1 = 0 ;
37155 int res1 = 0 ;
37156 PyObject *swig_obj[1] ;
37157
37158 if (!args) SWIG_fail;
37159 swig_obj[0] = args;
37160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37161 if (!SWIG_IsOK(res1)) {
37162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37163 }
37164 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37165 {
37166 PyThreadState* __tstate = wxPyBeginAllowThreads();
37167 (arg1)->Unselect();
37168 wxPyEndAllowThreads(__tstate);
37169 if (PyErr_Occurred()) SWIG_fail;
37170 }
37171 resultobj = SWIG_Py_Void();
37172 return resultobj;
37173fail:
37174 return NULL;
37175}
37176
37177
37178SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37179 PyObject *resultobj = 0;
37180 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37181 wxTreeItemId *arg2 = 0 ;
37182 void *argp1 = 0 ;
37183 int res1 = 0 ;
37184 void *argp2 = 0 ;
37185 int res2 = 0 ;
37186 PyObject * obj0 = 0 ;
37187 PyObject * obj1 = 0 ;
37188 char * kwnames[] = {
37189 (char *) "self",(char *) "item", NULL
37190 };
37191
37192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
37193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37194 if (!SWIG_IsOK(res1)) {
37195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37196 }
37197 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37198 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37199 if (!SWIG_IsOK(res2)) {
37200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37201 }
37202 if (!argp2) {
37203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37204 }
37205 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37206 {
37207 PyThreadState* __tstate = wxPyBeginAllowThreads();
37208 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
37209 wxPyEndAllowThreads(__tstate);
37210 if (PyErr_Occurred()) SWIG_fail;
37211 }
37212 resultobj = SWIG_Py_Void();
37213 return resultobj;
37214fail:
37215 return NULL;
d55e5bfc
RD
37216}
37217
37218
554f62e9
RD
37219SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37220 PyObject *resultobj = 0;
37221 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37222 void *argp1 = 0 ;
37223 int res1 = 0 ;
37224 PyObject *swig_obj[1] ;
37225
37226 if (!args) SWIG_fail;
37227 swig_obj[0] = args;
37228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37229 if (!SWIG_IsOK(res1)) {
37230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37231 }
37232 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37233 {
37234 PyThreadState* __tstate = wxPyBeginAllowThreads();
37235 (arg1)->UnselectAll();
37236 wxPyEndAllowThreads(__tstate);
37237 if (PyErr_Occurred()) SWIG_fail;
37238 }
37239 resultobj = SWIG_Py_Void();
37240 return resultobj;
37241fail:
37242 return NULL;
37243}
37244
37245
37246SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37247 PyObject *resultobj = 0;
37248 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37249 wxTreeItemId *arg2 = 0 ;
37250 bool arg3 = (bool) true ;
37251 void *argp1 = 0 ;
37252 int res1 = 0 ;
37253 void *argp2 = 0 ;
37254 int res2 = 0 ;
37255 bool val3 ;
37256 int ecode3 = 0 ;
37257 PyObject * obj0 = 0 ;
37258 PyObject * obj1 = 0 ;
37259 PyObject * obj2 = 0 ;
37260 char * kwnames[] = {
37261 (char *) "self",(char *) "item",(char *) "select", NULL
37262 };
37263
37264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37266 if (!SWIG_IsOK(res1)) {
37267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37268 }
37269 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37270 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37271 if (!SWIG_IsOK(res2)) {
37272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37273 }
37274 if (!argp2) {
37275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37276 }
37277 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37278 if (obj2) {
37279 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37280 if (!SWIG_IsOK(ecode3)) {
37281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
37282 }
37283 arg3 = static_cast< bool >(val3);
37284 }
37285 {
37286 PyThreadState* __tstate = wxPyBeginAllowThreads();
37287 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
37288 wxPyEndAllowThreads(__tstate);
37289 if (PyErr_Occurred()) SWIG_fail;
37290 }
37291 resultobj = SWIG_Py_Void();
37292 return resultobj;
37293fail:
37294 return NULL;
37295}
37296
37297
37298SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37299 PyObject *resultobj = 0;
37300 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37301 wxTreeItemId *arg2 = 0 ;
37302 void *argp1 = 0 ;
37303 int res1 = 0 ;
37304 void *argp2 = 0 ;
37305 int res2 = 0 ;
37306 PyObject * obj0 = 0 ;
37307 PyObject * obj1 = 0 ;
37308 char * kwnames[] = {
37309 (char *) "self",(char *) "item", NULL
37310 };
37311
37312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
37313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37314 if (!SWIG_IsOK(res1)) {
37315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37316 }
37317 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37318 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37319 if (!SWIG_IsOK(res2)) {
37320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37321 }
37322 if (!argp2) {
37323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37324 }
37325 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37326 {
37327 PyThreadState* __tstate = wxPyBeginAllowThreads();
37328 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
37329 wxPyEndAllowThreads(__tstate);
37330 if (PyErr_Occurred()) SWIG_fail;
37331 }
37332 resultobj = SWIG_Py_Void();
37333 return resultobj;
37334fail:
37335 return NULL;
37336}
37337
37338
37339SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37340 PyObject *resultobj = 0;
37341 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37342 wxTreeItemId *arg2 = 0 ;
37343 void *argp1 = 0 ;
37344 int res1 = 0 ;
37345 void *argp2 = 0 ;
37346 int res2 = 0 ;
37347 PyObject * obj0 = 0 ;
37348 PyObject * obj1 = 0 ;
37349 char * kwnames[] = {
37350 (char *) "self",(char *) "item", NULL
37351 };
37352
37353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37355 if (!SWIG_IsOK(res1)) {
37356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37357 }
37358 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37359 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37360 if (!SWIG_IsOK(res2)) {
37361 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37362 }
37363 if (!argp2) {
37364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37365 }
37366 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37367 {
37368 PyThreadState* __tstate = wxPyBeginAllowThreads();
37369 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37370 wxPyEndAllowThreads(__tstate);
37371 if (PyErr_Occurred()) SWIG_fail;
37372 }
37373 resultobj = SWIG_Py_Void();
37374 return resultobj;
37375fail:
37376 return NULL;
37377}
37378
37379
37380SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37381 PyObject *resultobj = 0;
37382 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37383 wxTreeItemId *arg2 = 0 ;
37384 void *argp1 = 0 ;
37385 int res1 = 0 ;
37386 void *argp2 = 0 ;
37387 int res2 = 0 ;
37388 PyObject * obj0 = 0 ;
37389 PyObject * obj1 = 0 ;
37390 char * kwnames[] = {
37391 (char *) "self",(char *) "item", NULL
37392 };
37393
37394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37396 if (!SWIG_IsOK(res1)) {
37397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37398 }
37399 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37400 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37401 if (!SWIG_IsOK(res2)) {
37402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37403 }
37404 if (!argp2) {
37405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37406 }
37407 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37408 {
37409 PyThreadState* __tstate = wxPyBeginAllowThreads();
37410 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37411 wxPyEndAllowThreads(__tstate);
37412 if (PyErr_Occurred()) SWIG_fail;
37413 }
37414 resultobj = SWIG_Py_Void();
37415 return resultobj;
37416fail:
37417 return NULL;
37418}
37419
37420
37421SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37422 PyObject *resultobj = 0;
37423 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37424 wxTreeItemId *arg2 = 0 ;
37425 void *argp1 = 0 ;
37426 int res1 = 0 ;
37427 void *argp2 = 0 ;
37428 int res2 = 0 ;
37429 PyObject * obj0 = 0 ;
37430 PyObject * obj1 = 0 ;
37431 char * kwnames[] = {
37432 (char *) "self",(char *) "item", NULL
37433 };
37434
37435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37437 if (!SWIG_IsOK(res1)) {
37438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37439 }
37440 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37442 if (!SWIG_IsOK(res2)) {
37443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37444 }
37445 if (!argp2) {
37446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37447 }
37448 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37449 {
37450 PyThreadState* __tstate = wxPyBeginAllowThreads();
37451 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37452 wxPyEndAllowThreads(__tstate);
37453 if (PyErr_Occurred()) SWIG_fail;
37454 }
37455 resultobj = SWIG_Py_Void();
37456 return resultobj;
37457fail:
37458 return NULL;
d55e5bfc
RD
37459}
37460
37461
554f62e9
RD
37462SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37463 PyObject *resultobj = 0;
37464 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37465 wxTextCtrl *result = 0 ;
37466 void *argp1 = 0 ;
37467 int res1 = 0 ;
37468 PyObject *swig_obj[1] ;
37469
37470 if (!args) SWIG_fail;
37471 swig_obj[0] = args;
37472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37473 if (!SWIG_IsOK(res1)) {
37474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37475 }
37476 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37477 {
37478 PyThreadState* __tstate = wxPyBeginAllowThreads();
37479 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37480 wxPyEndAllowThreads(__tstate);
37481 if (PyErr_Occurred()) SWIG_fail;
37482 }
37483 {
37484 resultobj = wxPyMake_wxObject(result, 0);
37485 }
37486 return resultobj;
37487fail:
37488 return NULL;
37489}
37490
37491
37492SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37493 PyObject *resultobj = 0;
37494 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37495 wxTreeItemId *arg2 = 0 ;
37496 bool arg3 = (bool) false ;
37497 void *argp1 = 0 ;
37498 int res1 = 0 ;
37499 void *argp2 = 0 ;
37500 int res2 = 0 ;
37501 bool val3 ;
37502 int ecode3 = 0 ;
37503 PyObject * obj0 = 0 ;
37504 PyObject * obj1 = 0 ;
37505 PyObject * obj2 = 0 ;
37506 char * kwnames[] = {
37507 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
37508 };
37509
37510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37512 if (!SWIG_IsOK(res1)) {
37513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37514 }
37515 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37516 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37517 if (!SWIG_IsOK(res2)) {
37518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37519 }
37520 if (!argp2) {
37521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37522 }
37523 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37524 if (obj2) {
37525 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37526 if (!SWIG_IsOK(ecode3)) {
37527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
37528 }
37529 arg3 = static_cast< bool >(val3);
37530 }
37531 {
37532 PyThreadState* __tstate = wxPyBeginAllowThreads();
37533 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
37534 wxPyEndAllowThreads(__tstate);
37535 if (PyErr_Occurred()) SWIG_fail;
37536 }
37537 resultobj = SWIG_Py_Void();
37538 return resultobj;
37539fail:
37540 return NULL;
37541}
37542
37543
37544SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37545 PyObject *resultobj = 0;
37546 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37547 wxTreeItemId *arg2 = 0 ;
37548 void *argp1 = 0 ;
37549 int res1 = 0 ;
37550 void *argp2 = 0 ;
37551 int res2 = 0 ;
37552 PyObject * obj0 = 0 ;
37553 PyObject * obj1 = 0 ;
37554 char * kwnames[] = {
37555 (char *) "self",(char *) "item", NULL
37556 };
37557
37558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37560 if (!SWIG_IsOK(res1)) {
37561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37562 }
37563 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37564 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37565 if (!SWIG_IsOK(res2)) {
37566 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37567 }
37568 if (!argp2) {
37569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37570 }
37571 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37572 {
37573 PyThreadState* __tstate = wxPyBeginAllowThreads();
37574 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37575 wxPyEndAllowThreads(__tstate);
37576 if (PyErr_Occurred()) SWIG_fail;
37577 }
37578 resultobj = SWIG_Py_Void();
37579 return resultobj;
37580fail:
37581 return NULL;
37582}
37583
37584
37585SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37586 PyObject *resultobj = 0;
37587 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37588 wxPoint *arg2 = 0 ;
37589 int *arg3 = 0 ;
37590 wxTreeItemId result;
37591 void *argp1 = 0 ;
37592 int res1 = 0 ;
37593 wxPoint temp2 ;
37594 int temp3 ;
37595 int res3 = SWIG_TMPOBJ ;
37596 PyObject * obj0 = 0 ;
37597 PyObject * obj1 = 0 ;
37598 char * kwnames[] = {
37599 (char *) "self",(char *) "point", NULL
37600 };
37601
37602 arg3 = &temp3;
37603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37605 if (!SWIG_IsOK(res1)) {
37606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37607 }
37608 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37609 {
37610 arg2 = &temp2;
37611 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37612 }
37613 {
37614 PyThreadState* __tstate = wxPyBeginAllowThreads();
37615 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37616 wxPyEndAllowThreads(__tstate);
37617 if (PyErr_Occurred()) SWIG_fail;
37618 }
37619 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37620 if (SWIG_IsTmpObj(res3)) {
37621 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37622 } else {
37623 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37624 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37625 }
37626 return resultobj;
37627fail:
37628 return NULL;
37629}
37630
37631
37632SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37633 PyObject *resultobj = 0;
37634 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37635 wxTreeItemId *arg2 = 0 ;
37636 bool arg3 = (bool) false ;
37637 PyObject *result = 0 ;
37638 void *argp1 = 0 ;
37639 int res1 = 0 ;
37640 void *argp2 = 0 ;
37641 int res2 = 0 ;
37642 bool val3 ;
37643 int ecode3 = 0 ;
37644 PyObject * obj0 = 0 ;
37645 PyObject * obj1 = 0 ;
37646 PyObject * obj2 = 0 ;
37647 char * kwnames[] = {
37648 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37649 };
37650
37651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37653 if (!SWIG_IsOK(res1)) {
37654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37655 }
37656 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37657 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37658 if (!SWIG_IsOK(res2)) {
37659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37660 }
37661 if (!argp2) {
37662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37663 }
37664 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37665 if (obj2) {
37666 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37667 if (!SWIG_IsOK(ecode3)) {
37668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37669 }
37670 arg3 = static_cast< bool >(val3);
37671 }
37672 {
37673 PyThreadState* __tstate = wxPyBeginAllowThreads();
37674 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37675 wxPyEndAllowThreads(__tstate);
37676 if (PyErr_Occurred()) SWIG_fail;
37677 }
37678 resultobj = result;
37679 return resultobj;
37680fail:
37681 return NULL;
37682}
37683
37684
37685SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37686 PyObject *resultobj = 0;
37687 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37688 wxTreeItemId *arg2 = 0 ;
37689 int arg3 ;
37690 void *argp1 = 0 ;
37691 int res1 = 0 ;
37692 void *argp2 = 0 ;
37693 int res2 = 0 ;
37694 int val3 ;
37695 int ecode3 = 0 ;
37696 PyObject * obj0 = 0 ;
37697 PyObject * obj1 = 0 ;
37698 PyObject * obj2 = 0 ;
37699 char * kwnames[] = {
37700 (char *) "self",(char *) "node",(char *) "state", NULL
37701 };
37702
37703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37705 if (!SWIG_IsOK(res1)) {
37706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37707 }
37708 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37709 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37710 if (!SWIG_IsOK(res2)) {
37711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37712 }
37713 if (!argp2) {
37714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37715 }
37716 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37717 ecode3 = SWIG_AsVal_int(obj2, &val3);
37718 if (!SWIG_IsOK(ecode3)) {
37719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
37720 }
37721 arg3 = static_cast< int >(val3);
37722 {
37723 PyThreadState* __tstate = wxPyBeginAllowThreads();
37724 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
37725 wxPyEndAllowThreads(__tstate);
37726 if (PyErr_Occurred()) SWIG_fail;
37727 }
37728 resultobj = SWIG_Py_Void();
37729 return resultobj;
37730fail:
37731 return NULL;
37732}
37733
37734
37735SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37736 PyObject *resultobj = 0;
37737 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37738 wxTreeItemId *arg2 = 0 ;
37739 int result;
37740 void *argp1 = 0 ;
37741 int res1 = 0 ;
37742 void *argp2 = 0 ;
37743 int res2 = 0 ;
37744 PyObject * obj0 = 0 ;
37745 PyObject * obj1 = 0 ;
37746 char * kwnames[] = {
37747 (char *) "self",(char *) "node", NULL
37748 };
37749
37750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
37751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37752 if (!SWIG_IsOK(res1)) {
37753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37754 }
37755 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37756 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37757 if (!SWIG_IsOK(res2)) {
37758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37759 }
37760 if (!argp2) {
37761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37762 }
37763 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37764 {
37765 PyThreadState* __tstate = wxPyBeginAllowThreads();
37766 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
37767 wxPyEndAllowThreads(__tstate);
37768 if (PyErr_Occurred()) SWIG_fail;
37769 }
37770 resultobj = SWIG_From_int(static_cast< int >(result));
37771 return resultobj;
37772fail:
37773 return NULL;
37774}
37775
37776
37777SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37778 PyObject *resultobj = 0;
37779 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37780 SwigValueWrapper<wxVisualAttributes > result;
37781 int val1 ;
37782 int ecode1 = 0 ;
37783 PyObject * obj0 = 0 ;
37784 char * kwnames[] = {
37785 (char *) "variant", NULL
37786 };
37787
37788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37789 if (obj0) {
37790 ecode1 = SWIG_AsVal_int(obj0, &val1);
37791 if (!SWIG_IsOK(ecode1)) {
37792 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37793 }
37794 arg1 = static_cast< wxWindowVariant >(val1);
37795 }
37796 {
37797 if (!wxPyCheckForApp()) SWIG_fail;
37798 PyThreadState* __tstate = wxPyBeginAllowThreads();
37799 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37800 wxPyEndAllowThreads(__tstate);
37801 if (PyErr_Occurred()) SWIG_fail;
37802 }
37803 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37804 return resultobj;
37805fail:
37806 return NULL;
d55e5bfc
RD
37807}
37808
37809
2131d850
RD
37810SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37811 PyObject *resultobj = 0;
37812 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37813 bool arg2 ;
37814 void *argp1 = 0 ;
37815 int res1 = 0 ;
37816 bool val2 ;
37817 int ecode2 = 0 ;
37818 PyObject * obj0 = 0 ;
37819 PyObject * obj1 = 0 ;
37820 char * kwnames[] = {
37821 (char *) "self",(char *) "q", NULL
37822 };
37823
37824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37826 if (!SWIG_IsOK(res1)) {
37827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37828 }
37829 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37830 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37831 if (!SWIG_IsOK(ecode2)) {
37832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37833 }
37834 arg2 = static_cast< bool >(val2);
37835 {
37836 PyThreadState* __tstate = wxPyBeginAllowThreads();
37837 (arg1)->SetQuickBestSize(arg2);
37838 wxPyEndAllowThreads(__tstate);
37839 if (PyErr_Occurred()) SWIG_fail;
37840 }
37841 resultobj = SWIG_Py_Void();
37842 return resultobj;
37843fail:
37844 return NULL;
37845}
37846
37847
37848SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37849 PyObject *resultobj = 0;
37850 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37851 bool result;
37852 void *argp1 = 0 ;
37853 int res1 = 0 ;
37854 PyObject *swig_obj[1] ;
37855
37856 if (!args) SWIG_fail;
37857 swig_obj[0] = args;
37858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37859 if (!SWIG_IsOK(res1)) {
37860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37861 }
37862 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37863 {
37864 PyThreadState* __tstate = wxPyBeginAllowThreads();
37865 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37866 wxPyEndAllowThreads(__tstate);
37867 if (PyErr_Occurred()) SWIG_fail;
37868 }
37869 {
37870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37871 }
37872 return resultobj;
37873fail:
37874 return NULL;
37875}
37876
37877
554f62e9
RD
37878SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37879 PyObject *obj;
37880 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37881 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37882 return SWIG_Py_Void();
d55e5bfc
RD
37883}
37884
554f62e9
RD
37885SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37886 return SWIG_Python_InitShadowInstance(args);
37887}
d55e5bfc 37888
554f62e9
RD
37889SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37890 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37891 return 1;
d55e5bfc
RD
37892}
37893
37894
554f62e9
RD
37895SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37896 PyObject *pyobj = 0;
37897
37898 {
d55e5bfc 37899#if wxUSE_UNICODE
554f62e9 37900 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
d55e5bfc 37901#else
554f62e9 37902 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
d55e5bfc 37903#endif
554f62e9
RD
37904 }
37905 return pyobj;
37906}
37907
37908
37909SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37910 PyObject *resultobj = 0;
37911 wxWindow *arg1 = (wxWindow *) 0 ;
37912 int arg2 = (int) (int)-1 ;
37913 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37914 wxString *arg3 = (wxString *) &arg3_defvalue ;
37915 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37916 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37917 wxSize const &arg5_defvalue = wxDefaultSize ;
37918 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37919 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37920 wxString const &arg7_defvalue = wxPyEmptyString ;
37921 wxString *arg7 = (wxString *) &arg7_defvalue ;
37922 int arg8 = (int) 0 ;
37923 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37924 wxString *arg9 = (wxString *) &arg9_defvalue ;
37925 wxGenericDirCtrl *result = 0 ;
37926 void *argp1 = 0 ;
37927 int res1 = 0 ;
37928 int val2 ;
37929 int ecode2 = 0 ;
37930 bool temp3 = false ;
37931 wxPoint temp4 ;
37932 wxSize temp5 ;
37933 long val6 ;
37934 int ecode6 = 0 ;
37935 bool temp7 = false ;
37936 int val8 ;
37937 int ecode8 = 0 ;
37938 bool temp9 = false ;
37939 PyObject * obj0 = 0 ;
37940 PyObject * obj1 = 0 ;
37941 PyObject * obj2 = 0 ;
37942 PyObject * obj3 = 0 ;
37943 PyObject * obj4 = 0 ;
37944 PyObject * obj5 = 0 ;
37945 PyObject * obj6 = 0 ;
37946 PyObject * obj7 = 0 ;
37947 PyObject * obj8 = 0 ;
37948 char * kwnames[] = {
37949 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37950 };
37951
37952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37954 if (!SWIG_IsOK(res1)) {
37955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37956 }
37957 arg1 = reinterpret_cast< wxWindow * >(argp1);
37958 if (obj1) {
37959 ecode2 = SWIG_AsVal_int(obj1, &val2);
37960 if (!SWIG_IsOK(ecode2)) {
37961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37962 }
37963 arg2 = static_cast< int >(val2);
37964 }
37965 if (obj2) {
093d3ff1 37966 {
554f62e9
RD
37967 arg3 = wxString_in_helper(obj2);
37968 if (arg3 == NULL) SWIG_fail;
37969 temp3 = true;
093d3ff1 37970 }
554f62e9
RD
37971 }
37972 if (obj3) {
093d3ff1 37973 {
554f62e9
RD
37974 arg4 = &temp4;
37975 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 37976 }
554f62e9
RD
37977 }
37978 if (obj4) {
d55e5bfc 37979 {
554f62e9
RD
37980 arg5 = &temp5;
37981 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 37982 }
554f62e9
RD
37983 }
37984 if (obj5) {
37985 ecode6 = SWIG_AsVal_long(obj5, &val6);
37986 if (!SWIG_IsOK(ecode6)) {
37987 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37988 }
37989 arg6 = static_cast< long >(val6);
37990 }
37991 if (obj6) {
d55e5bfc 37992 {
554f62e9
RD
37993 arg7 = wxString_in_helper(obj6);
37994 if (arg7 == NULL) SWIG_fail;
37995 temp7 = true;
d55e5bfc 37996 }
554f62e9
RD
37997 }
37998 if (obj7) {
37999 ecode8 = SWIG_AsVal_int(obj7, &val8);
38000 if (!SWIG_IsOK(ecode8)) {
38001 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
38002 }
38003 arg8 = static_cast< int >(val8);
38004 }
38005 if (obj8) {
d55e5bfc 38006 {
554f62e9
RD
38007 arg9 = wxString_in_helper(obj8);
38008 if (arg9 == NULL) SWIG_fail;
38009 temp9 = true;
d55e5bfc 38010 }
554f62e9
RD
38011 }
38012 {
38013 if (!wxPyCheckForApp()) SWIG_fail;
38014 PyThreadState* __tstate = wxPyBeginAllowThreads();
38015 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
38016 wxPyEndAllowThreads(__tstate);
38017 if (PyErr_Occurred()) SWIG_fail;
38018 }
38019 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
38020 {
38021 if (temp3)
38022 delete arg3;
38023 }
38024 {
38025 if (temp7)
38026 delete arg7;
38027 }
38028 {
38029 if (temp9)
38030 delete arg9;
38031 }
38032 return resultobj;
38033fail:
38034 {
38035 if (temp3)
38036 delete arg3;
38037 }
38038 {
38039 if (temp7)
38040 delete arg7;
38041 }
38042 {
38043 if (temp9)
38044 delete arg9;
38045 }
38046 return NULL;
d55e5bfc
RD
38047}
38048
38049
554f62e9
RD
38050SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38051 PyObject *resultobj = 0;
38052 wxGenericDirCtrl *result = 0 ;
38053
38054 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
38055 {
38056 if (!wxPyCheckForApp()) SWIG_fail;
38057 PyThreadState* __tstate = wxPyBeginAllowThreads();
38058 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
38059 wxPyEndAllowThreads(__tstate);
38060 if (PyErr_Occurred()) SWIG_fail;
38061 }
38062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
38063 return resultobj;
38064fail:
38065 return NULL;
38066}
38067
38068
38069SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38070 PyObject *resultobj = 0;
38071 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38072 wxWindow *arg2 = (wxWindow *) 0 ;
38073 int arg3 = (int) (int)-1 ;
38074 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
38075 wxString *arg4 = (wxString *) &arg4_defvalue ;
38076 wxPoint const &arg5_defvalue = wxDefaultPosition ;
38077 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
38078 wxSize const &arg6_defvalue = wxDefaultSize ;
38079 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
38080 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
38081 wxString const &arg8_defvalue = wxPyEmptyString ;
38082 wxString *arg8 = (wxString *) &arg8_defvalue ;
38083 int arg9 = (int) 0 ;
38084 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
38085 wxString *arg10 = (wxString *) &arg10_defvalue ;
38086 bool result;
38087 void *argp1 = 0 ;
38088 int res1 = 0 ;
38089 void *argp2 = 0 ;
38090 int res2 = 0 ;
38091 int val3 ;
38092 int ecode3 = 0 ;
38093 bool temp4 = false ;
38094 wxPoint temp5 ;
38095 wxSize temp6 ;
38096 long val7 ;
38097 int ecode7 = 0 ;
38098 bool temp8 = false ;
38099 int val9 ;
38100 int ecode9 = 0 ;
38101 bool temp10 = false ;
38102 PyObject * obj0 = 0 ;
38103 PyObject * obj1 = 0 ;
38104 PyObject * obj2 = 0 ;
38105 PyObject * obj3 = 0 ;
38106 PyObject * obj4 = 0 ;
38107 PyObject * obj5 = 0 ;
38108 PyObject * obj6 = 0 ;
38109 PyObject * obj7 = 0 ;
38110 PyObject * obj8 = 0 ;
38111 PyObject * obj9 = 0 ;
38112 char * kwnames[] = {
38113 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
38114 };
38115
38116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
38117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38118 if (!SWIG_IsOK(res1)) {
38119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38120 }
38121 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38122 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
38123 if (!SWIG_IsOK(res2)) {
38124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
38125 }
38126 arg2 = reinterpret_cast< wxWindow * >(argp2);
38127 if (obj2) {
38128 ecode3 = SWIG_AsVal_int(obj2, &val3);
38129 if (!SWIG_IsOK(ecode3)) {
38130 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38131 }
38132 arg3 = static_cast< int >(val3);
38133 }
38134 if (obj3) {
d55e5bfc 38135 {
554f62e9
RD
38136 arg4 = wxString_in_helper(obj3);
38137 if (arg4 == NULL) SWIG_fail;
38138 temp4 = true;
d55e5bfc 38139 }
554f62e9
RD
38140 }
38141 if (obj4) {
093d3ff1 38142 {
554f62e9
RD
38143 arg5 = &temp5;
38144 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 38145 }
554f62e9
RD
38146 }
38147 if (obj5) {
d55e5bfc 38148 {
554f62e9
RD
38149 arg6 = &temp6;
38150 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 38151 }
554f62e9
RD
38152 }
38153 if (obj6) {
38154 ecode7 = SWIG_AsVal_long(obj6, &val7);
38155 if (!SWIG_IsOK(ecode7)) {
38156 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
38157 }
38158 arg7 = static_cast< long >(val7);
38159 }
38160 if (obj7) {
d55e5bfc 38161 {
554f62e9
RD
38162 arg8 = wxString_in_helper(obj7);
38163 if (arg8 == NULL) SWIG_fail;
38164 temp8 = true;
d55e5bfc 38165 }
554f62e9
RD
38166 }
38167 if (obj8) {
38168 ecode9 = SWIG_AsVal_int(obj8, &val9);
38169 if (!SWIG_IsOK(ecode9)) {
38170 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
38171 }
38172 arg9 = static_cast< int >(val9);
38173 }
38174 if (obj9) {
d55e5bfc 38175 {
554f62e9
RD
38176 arg10 = wxString_in_helper(obj9);
38177 if (arg10 == NULL) SWIG_fail;
38178 temp10 = true;
d55e5bfc 38179 }
554f62e9
RD
38180 }
38181 {
38182 PyThreadState* __tstate = wxPyBeginAllowThreads();
38183 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
38184 wxPyEndAllowThreads(__tstate);
38185 if (PyErr_Occurred()) SWIG_fail;
38186 }
38187 {
38188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38189 }
38190 {
38191 if (temp4)
38192 delete arg4;
38193 }
38194 {
38195 if (temp8)
38196 delete arg8;
38197 }
38198 {
38199 if (temp10)
38200 delete arg10;
38201 }
38202 return resultobj;
38203fail:
38204 {
38205 if (temp4)
38206 delete arg4;
38207 }
38208 {
38209 if (temp8)
38210 delete arg8;
38211 }
38212 {
38213 if (temp10)
38214 delete arg10;
38215 }
38216 return NULL;
38217}
38218
38219
38220SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38221 PyObject *resultobj = 0;
38222 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38223 wxString *arg2 = 0 ;
38224 bool result;
38225 void *argp1 = 0 ;
38226 int res1 = 0 ;
38227 bool temp2 = false ;
38228 PyObject * obj0 = 0 ;
38229 PyObject * obj1 = 0 ;
38230 char * kwnames[] = {
38231 (char *) "self",(char *) "path", NULL
38232 };
38233
38234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
38235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38236 if (!SWIG_IsOK(res1)) {
38237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38238 }
38239 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38240 {
38241 arg2 = wxString_in_helper(obj1);
38242 if (arg2 == NULL) SWIG_fail;
38243 temp2 = true;
38244 }
38245 {
38246 PyThreadState* __tstate = wxPyBeginAllowThreads();
38247 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
38248 wxPyEndAllowThreads(__tstate);
38249 if (PyErr_Occurred()) SWIG_fail;
38250 }
38251 {
38252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38253 }
38254 {
38255 if (temp2)
38256 delete arg2;
38257 }
38258 return resultobj;
38259fail:
38260 {
38261 if (temp2)
38262 delete arg2;
38263 }
38264 return NULL;
d55e5bfc
RD
38265}
38266
38267
704eda0c
RD
38268SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38269 PyObject *resultobj = 0;
38270 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38271 wxString *arg2 = 0 ;
38272 bool result;
38273 void *argp1 = 0 ;
38274 int res1 = 0 ;
38275 bool temp2 = false ;
38276 PyObject * obj0 = 0 ;
38277 PyObject * obj1 = 0 ;
38278 char * kwnames[] = {
38279 (char *) "self",(char *) "path", NULL
38280 };
38281
38282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
38283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38284 if (!SWIG_IsOK(res1)) {
38285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38286 }
38287 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38288 {
38289 arg2 = wxString_in_helper(obj1);
38290 if (arg2 == NULL) SWIG_fail;
38291 temp2 = true;
38292 }
38293 {
38294 PyThreadState* __tstate = wxPyBeginAllowThreads();
38295 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
38296 wxPyEndAllowThreads(__tstate);
38297 if (PyErr_Occurred()) SWIG_fail;
38298 }
38299 {
38300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38301 }
38302 {
38303 if (temp2)
38304 delete arg2;
38305 }
38306 return resultobj;
38307fail:
38308 {
38309 if (temp2)
38310 delete arg2;
38311 }
38312 return NULL;
38313}
38314
38315
554f62e9
RD
38316SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38317 PyObject *resultobj = 0;
38318 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38319 wxString result;
38320 void *argp1 = 0 ;
38321 int res1 = 0 ;
38322 PyObject *swig_obj[1] ;
38323
38324 if (!args) SWIG_fail;
38325 swig_obj[0] = args;
38326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38327 if (!SWIG_IsOK(res1)) {
38328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38329 }
38330 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38331 {
38332 PyThreadState* __tstate = wxPyBeginAllowThreads();
38333 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
38334 wxPyEndAllowThreads(__tstate);
38335 if (PyErr_Occurred()) SWIG_fail;
38336 }
38337 {
38338#if wxUSE_UNICODE
38339 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38340#else
38341 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38342#endif
38343 }
38344 return resultobj;
38345fail:
38346 return NULL;
38347}
38348
38349
38350SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38351 PyObject *resultobj = 0;
38352 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38353 wxString *arg2 = 0 ;
38354 void *argp1 = 0 ;
38355 int res1 = 0 ;
38356 bool temp2 = false ;
38357 PyObject * obj0 = 0 ;
38358 PyObject * obj1 = 0 ;
38359 char * kwnames[] = {
38360 (char *) "self",(char *) "path", NULL
38361 };
38362
38363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
38364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38365 if (!SWIG_IsOK(res1)) {
38366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38367 }
38368 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38369 {
38370 arg2 = wxString_in_helper(obj1);
38371 if (arg2 == NULL) SWIG_fail;
38372 temp2 = true;
38373 }
38374 {
38375 PyThreadState* __tstate = wxPyBeginAllowThreads();
38376 (arg1)->SetDefaultPath((wxString const &)*arg2);
38377 wxPyEndAllowThreads(__tstate);
38378 if (PyErr_Occurred()) SWIG_fail;
38379 }
38380 resultobj = SWIG_Py_Void();
38381 {
38382 if (temp2)
38383 delete arg2;
38384 }
38385 return resultobj;
38386fail:
38387 {
38388 if (temp2)
38389 delete arg2;
38390 }
38391 return NULL;
d55e5bfc
RD
38392}
38393
38394
554f62e9
RD
38395SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38396 PyObject *resultobj = 0;
38397 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38398 wxString result;
38399 void *argp1 = 0 ;
38400 int res1 = 0 ;
38401 PyObject *swig_obj[1] ;
38402
38403 if (!args) SWIG_fail;
38404 swig_obj[0] = args;
38405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38406 if (!SWIG_IsOK(res1)) {
38407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38408 }
38409 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38410 {
38411 PyThreadState* __tstate = wxPyBeginAllowThreads();
38412 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
38413 wxPyEndAllowThreads(__tstate);
38414 if (PyErr_Occurred()) SWIG_fail;
38415 }
38416 {
38417#if wxUSE_UNICODE
38418 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38419#else
38420 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38421#endif
38422 }
38423 return resultobj;
38424fail:
38425 return NULL;
d55e5bfc
RD
38426}
38427
38428
554f62e9
RD
38429SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38430 PyObject *resultobj = 0;
38431 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38432 wxString result;
38433 void *argp1 = 0 ;
38434 int res1 = 0 ;
38435 PyObject *swig_obj[1] ;
38436
38437 if (!args) SWIG_fail;
38438 swig_obj[0] = args;
38439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38440 if (!SWIG_IsOK(res1)) {
38441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38442 }
38443 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38444 {
38445 PyThreadState* __tstate = wxPyBeginAllowThreads();
38446 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
38447 wxPyEndAllowThreads(__tstate);
38448 if (PyErr_Occurred()) SWIG_fail;
38449 }
38450 {
38451#if wxUSE_UNICODE
38452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38453#else
38454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38455#endif
38456 }
38457 return resultobj;
38458fail:
38459 return NULL;
38460}
38461
38462
38463SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38464 PyObject *resultobj = 0;
38465 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38466 wxString *arg2 = 0 ;
38467 void *argp1 = 0 ;
38468 int res1 = 0 ;
38469 bool temp2 = false ;
38470 PyObject * obj0 = 0 ;
38471 PyObject * obj1 = 0 ;
38472 char * kwnames[] = {
38473 (char *) "self",(char *) "path", NULL
38474 };
38475
38476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
38477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38478 if (!SWIG_IsOK(res1)) {
38479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38480 }
38481 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38482 {
38483 arg2 = wxString_in_helper(obj1);
38484 if (arg2 == NULL) SWIG_fail;
38485 temp2 = true;
38486 }
38487 {
38488 PyThreadState* __tstate = wxPyBeginAllowThreads();
38489 (arg1)->SetPath((wxString const &)*arg2);
38490 wxPyEndAllowThreads(__tstate);
38491 if (PyErr_Occurred()) SWIG_fail;
38492 }
38493 resultobj = SWIG_Py_Void();
38494 {
38495 if (temp2)
38496 delete arg2;
38497 }
38498 return resultobj;
38499fail:
38500 {
38501 if (temp2)
38502 delete arg2;
38503 }
38504 return NULL;
38505}
38506
38507
38508SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38509 PyObject *resultobj = 0;
38510 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38511 bool arg2 ;
38512 void *argp1 = 0 ;
38513 int res1 = 0 ;
38514 bool val2 ;
38515 int ecode2 = 0 ;
38516 PyObject * obj0 = 0 ;
38517 PyObject * obj1 = 0 ;
38518 char * kwnames[] = {
38519 (char *) "self",(char *) "show", NULL
38520 };
38521
38522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38524 if (!SWIG_IsOK(res1)) {
38525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38526 }
38527 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38528 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38529 if (!SWIG_IsOK(ecode2)) {
38530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38531 }
38532 arg2 = static_cast< bool >(val2);
38533 {
38534 PyThreadState* __tstate = wxPyBeginAllowThreads();
38535 (arg1)->ShowHidden(arg2);
38536 wxPyEndAllowThreads(__tstate);
38537 if (PyErr_Occurred()) SWIG_fail;
38538 }
38539 resultobj = SWIG_Py_Void();
38540 return resultobj;
38541fail:
38542 return NULL;
d55e5bfc
RD
38543}
38544
38545
554f62e9
RD
38546SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38547 PyObject *resultobj = 0;
38548 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38549 bool result;
38550 void *argp1 = 0 ;
38551 int res1 = 0 ;
38552 PyObject *swig_obj[1] ;
38553
38554 if (!args) SWIG_fail;
38555 swig_obj[0] = args;
38556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38557 if (!SWIG_IsOK(res1)) {
38558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38559 }
38560 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38561 {
38562 PyThreadState* __tstate = wxPyBeginAllowThreads();
38563 result = (bool)(arg1)->GetShowHidden();
38564 wxPyEndAllowThreads(__tstate);
38565 if (PyErr_Occurred()) SWIG_fail;
38566 }
38567 {
38568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38569 }
38570 return resultobj;
38571fail:
38572 return NULL;
d55e5bfc
RD
38573}
38574
38575
554f62e9
RD
38576SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38577 PyObject *resultobj = 0;
38578 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38579 wxString result;
38580 void *argp1 = 0 ;
38581 int res1 = 0 ;
38582 PyObject *swig_obj[1] ;
38583
38584 if (!args) SWIG_fail;
38585 swig_obj[0] = args;
38586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38587 if (!SWIG_IsOK(res1)) {
38588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38589 }
38590 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38591 {
38592 PyThreadState* __tstate = wxPyBeginAllowThreads();
38593 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38594 wxPyEndAllowThreads(__tstate);
38595 if (PyErr_Occurred()) SWIG_fail;
38596 }
38597 {
38598#if wxUSE_UNICODE
38599 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38600#else
38601 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38602#endif
38603 }
38604 return resultobj;
38605fail:
38606 return NULL;
38607}
38608
38609
38610SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38611 PyObject *resultobj = 0;
38612 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38613 wxString *arg2 = 0 ;
38614 void *argp1 = 0 ;
38615 int res1 = 0 ;
38616 bool temp2 = false ;
38617 PyObject * obj0 = 0 ;
38618 PyObject * obj1 = 0 ;
38619 char * kwnames[] = {
38620 (char *) "self",(char *) "filter", NULL
38621 };
38622
38623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38625 if (!SWIG_IsOK(res1)) {
38626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38627 }
38628 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38629 {
38630 arg2 = wxString_in_helper(obj1);
38631 if (arg2 == NULL) SWIG_fail;
38632 temp2 = true;
38633 }
38634 {
38635 PyThreadState* __tstate = wxPyBeginAllowThreads();
38636 (arg1)->SetFilter((wxString const &)*arg2);
38637 wxPyEndAllowThreads(__tstate);
38638 if (PyErr_Occurred()) SWIG_fail;
38639 }
38640 resultobj = SWIG_Py_Void();
38641 {
38642 if (temp2)
38643 delete arg2;
38644 }
38645 return resultobj;
38646fail:
38647 {
38648 if (temp2)
38649 delete arg2;
38650 }
38651 return NULL;
d55e5bfc
RD
38652}
38653
38654
554f62e9
RD
38655SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38656 PyObject *resultobj = 0;
38657 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38658 int result;
38659 void *argp1 = 0 ;
38660 int res1 = 0 ;
38661 PyObject *swig_obj[1] ;
38662
38663 if (!args) SWIG_fail;
38664 swig_obj[0] = args;
38665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38666 if (!SWIG_IsOK(res1)) {
38667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38668 }
38669 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38670 {
38671 PyThreadState* __tstate = wxPyBeginAllowThreads();
38672 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38673 wxPyEndAllowThreads(__tstate);
38674 if (PyErr_Occurred()) SWIG_fail;
38675 }
38676 resultobj = SWIG_From_int(static_cast< int >(result));
38677 return resultobj;
38678fail:
38679 return NULL;
38680}
38681
38682
38683SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38684 PyObject *resultobj = 0;
38685 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38686 int arg2 ;
38687 void *argp1 = 0 ;
38688 int res1 = 0 ;
38689 int val2 ;
38690 int ecode2 = 0 ;
38691 PyObject * obj0 = 0 ;
38692 PyObject * obj1 = 0 ;
38693 char * kwnames[] = {
38694 (char *) "self",(char *) "n", NULL
38695 };
38696
38697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38699 if (!SWIG_IsOK(res1)) {
38700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38701 }
38702 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38703 ecode2 = SWIG_AsVal_int(obj1, &val2);
38704 if (!SWIG_IsOK(ecode2)) {
38705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38706 }
38707 arg2 = static_cast< int >(val2);
38708 {
38709 PyThreadState* __tstate = wxPyBeginAllowThreads();
38710 (arg1)->SetFilterIndex(arg2);
38711 wxPyEndAllowThreads(__tstate);
38712 if (PyErr_Occurred()) SWIG_fail;
38713 }
38714 resultobj = SWIG_Py_Void();
38715 return resultobj;
38716fail:
38717 return NULL;
d55e5bfc
RD
38718}
38719
38720
554f62e9
RD
38721SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38722 PyObject *resultobj = 0;
38723 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38724 wxTreeItemId result;
38725 void *argp1 = 0 ;
38726 int res1 = 0 ;
38727 PyObject *swig_obj[1] ;
38728
38729 if (!args) SWIG_fail;
38730 swig_obj[0] = args;
38731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38732 if (!SWIG_IsOK(res1)) {
38733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38734 }
38735 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38736 {
38737 PyThreadState* __tstate = wxPyBeginAllowThreads();
38738 result = (arg1)->GetRootId();
38739 wxPyEndAllowThreads(__tstate);
38740 if (PyErr_Occurred()) SWIG_fail;
38741 }
38742 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38743 return resultobj;
38744fail:
38745 return NULL;
d55e5bfc
RD
38746}
38747
38748
554f62e9
RD
38749SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38750 PyObject *resultobj = 0;
38751 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38752 wxPyTreeCtrl *result = 0 ;
38753 void *argp1 = 0 ;
38754 int res1 = 0 ;
38755 PyObject *swig_obj[1] ;
38756
38757 if (!args) SWIG_fail;
38758 swig_obj[0] = args;
38759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38760 if (!SWIG_IsOK(res1)) {
38761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38762 }
38763 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38764 {
38765 PyThreadState* __tstate = wxPyBeginAllowThreads();
38766 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38767 wxPyEndAllowThreads(__tstate);
38768 if (PyErr_Occurred()) SWIG_fail;
38769 }
38770 {
38771 resultobj = wxPyMake_wxObject(result, 0);
38772 }
38773 return resultobj;
38774fail:
38775 return NULL;
d55e5bfc
RD
38776}
38777
38778
554f62e9
RD
38779SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38780 PyObject *resultobj = 0;
38781 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38782 wxDirFilterListCtrl *result = 0 ;
38783 void *argp1 = 0 ;
38784 int res1 = 0 ;
38785 PyObject *swig_obj[1] ;
38786
38787 if (!args) SWIG_fail;
38788 swig_obj[0] = args;
38789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38790 if (!SWIG_IsOK(res1)) {
38791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38792 }
38793 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38794 {
38795 PyThreadState* __tstate = wxPyBeginAllowThreads();
38796 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38797 wxPyEndAllowThreads(__tstate);
38798 if (PyErr_Occurred()) SWIG_fail;
38799 }
38800 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38801 return resultobj;
38802fail:
38803 return NULL;
38804}
38805
38806
38807SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38808 PyObject *resultobj = 0;
38809 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38810 wxTreeItemId arg2 ;
38811 wxString *arg3 = 0 ;
38812 bool *arg4 = 0 ;
38813 wxTreeItemId result;
38814 void *argp1 = 0 ;
38815 int res1 = 0 ;
38816 void *argp2 ;
38817 int res2 = 0 ;
38818 bool temp3 = false ;
38819 bool temp4 ;
38820 int res4 = SWIG_TMPOBJ ;
38821 PyObject * obj0 = 0 ;
38822 PyObject * obj1 = 0 ;
38823 PyObject * obj2 = 0 ;
38824 char * kwnames[] = {
38825 (char *) "self",(char *) "parentId",(char *) "path", NULL
38826 };
38827
38828 arg4 = &temp4;
38829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38831 if (!SWIG_IsOK(res1)) {
38832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38833 }
38834 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38835 {
38836 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38837 if (!SWIG_IsOK(res2)) {
38838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38839 }
38840 if (!argp2) {
38841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38842 } else {
38843 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38844 arg2 = *temp;
38845 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 38846 }
554f62e9
RD
38847 }
38848 {
38849 arg3 = wxString_in_helper(obj2);
38850 if (arg3 == NULL) SWIG_fail;
38851 temp3 = true;
38852 }
38853 {
38854 PyThreadState* __tstate = wxPyBeginAllowThreads();
38855 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38856 wxPyEndAllowThreads(__tstate);
38857 if (PyErr_Occurred()) SWIG_fail;
38858 }
38859 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38860 if (SWIG_IsTmpObj(res4)) {
38861 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38862 } else {
38863 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38864 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38865 }
38866 {
38867 if (temp3)
38868 delete arg3;
38869 }
38870 return resultobj;
38871fail:
38872 {
38873 if (temp3)
38874 delete arg3;
38875 }
38876 return NULL;
d55e5bfc
RD
38877}
38878
38879
554f62e9
RD
38880SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38881 PyObject *resultobj = 0;
38882 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38883 void *argp1 = 0 ;
38884 int res1 = 0 ;
38885 PyObject *swig_obj[1] ;
38886
38887 if (!args) SWIG_fail;
38888 swig_obj[0] = args;
38889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38890 if (!SWIG_IsOK(res1)) {
38891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38892 }
38893 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38894 {
38895 PyThreadState* __tstate = wxPyBeginAllowThreads();
38896 (arg1)->DoResize();
38897 wxPyEndAllowThreads(__tstate);
38898 if (PyErr_Occurred()) SWIG_fail;
38899 }
38900 resultobj = SWIG_Py_Void();
38901 return resultobj;
38902fail:
38903 return NULL;
38904}
38905
38906
38907SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38908 PyObject *resultobj = 0;
38909 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38910 void *argp1 = 0 ;
38911 int res1 = 0 ;
38912 PyObject *swig_obj[1] ;
38913
38914 if (!args) SWIG_fail;
38915 swig_obj[0] = args;
38916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38917 if (!SWIG_IsOK(res1)) {
38918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38919 }
38920 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38921 {
38922 PyThreadState* __tstate = wxPyBeginAllowThreads();
38923 (arg1)->ReCreateTree();
38924 wxPyEndAllowThreads(__tstate);
38925 if (PyErr_Occurred()) SWIG_fail;
38926 }
38927 resultobj = SWIG_Py_Void();
38928 return resultobj;
38929fail:
38930 return NULL;
38931}
38932
38933
38934SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38935 PyObject *obj;
38936 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38937 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38938 return SWIG_Py_Void();
38939}
38940
38941SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38942 return SWIG_Python_InitShadowInstance(args);
38943}
38944
38945SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38946 PyObject *resultobj = 0;
38947 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38948 int arg2 = (int) (int)-1 ;
38949 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38950 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38951 wxSize const &arg4_defvalue = wxDefaultSize ;
38952 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38953 long arg5 = (long) 0 ;
38954 wxDirFilterListCtrl *result = 0 ;
38955 void *argp1 = 0 ;
38956 int res1 = 0 ;
38957 int val2 ;
38958 int ecode2 = 0 ;
38959 wxPoint temp3 ;
38960 wxSize temp4 ;
38961 long val5 ;
38962 int ecode5 = 0 ;
38963 PyObject * obj0 = 0 ;
38964 PyObject * obj1 = 0 ;
38965 PyObject * obj2 = 0 ;
38966 PyObject * obj3 = 0 ;
38967 PyObject * obj4 = 0 ;
38968 char * kwnames[] = {
38969 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38970 };
38971
38972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38974 if (!SWIG_IsOK(res1)) {
38975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38976 }
38977 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38978 if (obj1) {
38979 ecode2 = SWIG_AsVal_int(obj1, &val2);
38980 if (!SWIG_IsOK(ecode2)) {
38981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38982 }
38983 arg2 = static_cast< int >(val2);
38984 }
38985 if (obj2) {
d55e5bfc 38986 {
554f62e9
RD
38987 arg3 = &temp3;
38988 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38989 }
554f62e9
RD
38990 }
38991 if (obj3) {
d55e5bfc 38992 {
554f62e9
RD
38993 arg4 = &temp4;
38994 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38995 }
554f62e9
RD
38996 }
38997 if (obj4) {
38998 ecode5 = SWIG_AsVal_long(obj4, &val5);
38999 if (!SWIG_IsOK(ecode5)) {
39000 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
39001 }
39002 arg5 = static_cast< long >(val5);
39003 }
39004 {
39005 if (!wxPyCheckForApp()) SWIG_fail;
39006 PyThreadState* __tstate = wxPyBeginAllowThreads();
39007 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39008 wxPyEndAllowThreads(__tstate);
39009 if (PyErr_Occurred()) SWIG_fail;
39010 }
39011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
39012 return resultobj;
39013fail:
39014 return NULL;
d55e5bfc
RD
39015}
39016
39017
554f62e9
RD
39018SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39019 PyObject *resultobj = 0;
39020 wxDirFilterListCtrl *result = 0 ;
39021
39022 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
39023 {
39024 if (!wxPyCheckForApp()) SWIG_fail;
39025 PyThreadState* __tstate = wxPyBeginAllowThreads();
39026 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
39027 wxPyEndAllowThreads(__tstate);
39028 if (PyErr_Occurred()) SWIG_fail;
39029 }
39030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
39031 return resultobj;
39032fail:
39033 return NULL;
39034}
39035
39036
39037SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39038 PyObject *resultobj = 0;
39039 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
39040 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
39041 int arg3 = (int) (int)-1 ;
39042 wxPoint const &arg4_defvalue = wxDefaultPosition ;
39043 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
39044 wxSize const &arg5_defvalue = wxDefaultSize ;
39045 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
39046 long arg6 = (long) 0 ;
39047 bool result;
39048 void *argp1 = 0 ;
39049 int res1 = 0 ;
39050 void *argp2 = 0 ;
39051 int res2 = 0 ;
39052 int val3 ;
39053 int ecode3 = 0 ;
39054 wxPoint temp4 ;
39055 wxSize temp5 ;
39056 long val6 ;
39057 int ecode6 = 0 ;
39058 PyObject * obj0 = 0 ;
39059 PyObject * obj1 = 0 ;
39060 PyObject * obj2 = 0 ;
39061 PyObject * obj3 = 0 ;
39062 PyObject * obj4 = 0 ;
39063 PyObject * obj5 = 0 ;
39064 char * kwnames[] = {
39065 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39066 };
39067
39068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
39070 if (!SWIG_IsOK(res1)) {
39071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
39072 }
39073 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
39074 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
39075 if (!SWIG_IsOK(res2)) {
39076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
39077 }
39078 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
39079 if (obj2) {
39080 ecode3 = SWIG_AsVal_int(obj2, &val3);
39081 if (!SWIG_IsOK(ecode3)) {
39082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
39083 }
39084 arg3 = static_cast< int >(val3);
39085 }
39086 if (obj3) {
093d3ff1 39087 {
554f62e9
RD
39088 arg4 = &temp4;
39089 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 39090 }
554f62e9
RD
39091 }
39092 if (obj4) {
093d3ff1 39093 {
554f62e9
RD
39094 arg5 = &temp5;
39095 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 39096 }
554f62e9
RD
39097 }
39098 if (obj5) {
39099 ecode6 = SWIG_AsVal_long(obj5, &val6);
39100 if (!SWIG_IsOK(ecode6)) {
39101 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
39102 }
39103 arg6 = static_cast< long >(val6);
39104 }
39105 {
39106 PyThreadState* __tstate = wxPyBeginAllowThreads();
39107 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
39108 wxPyEndAllowThreads(__tstate);
39109 if (PyErr_Occurred()) SWIG_fail;
39110 }
39111 {
39112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39113 }
39114 return resultobj;
39115fail:
39116 return NULL;
39117}
39118
39119
39120SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39121 PyObject *resultobj = 0;
39122 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
39123 wxString *arg2 = 0 ;
39124 int arg3 ;
39125 void *argp1 = 0 ;
39126 int res1 = 0 ;
39127 bool temp2 = false ;
39128 int val3 ;
39129 int ecode3 = 0 ;
39130 PyObject * obj0 = 0 ;
39131 PyObject * obj1 = 0 ;
39132 PyObject * obj2 = 0 ;
39133 char * kwnames[] = {
39134 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
39135 };
39136
39137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
39139 if (!SWIG_IsOK(res1)) {
39140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
39141 }
39142 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
39143 {
39144 arg2 = wxString_in_helper(obj1);
39145 if (arg2 == NULL) SWIG_fail;
39146 temp2 = true;
39147 }
39148 ecode3 = SWIG_AsVal_int(obj2, &val3);
39149 if (!SWIG_IsOK(ecode3)) {
39150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
39151 }
39152 arg3 = static_cast< int >(val3);
39153 {
39154 PyThreadState* __tstate = wxPyBeginAllowThreads();
39155 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
39156 wxPyEndAllowThreads(__tstate);
39157 if (PyErr_Occurred()) SWIG_fail;
39158 }
39159 resultobj = SWIG_Py_Void();
39160 {
39161 if (temp2)
39162 delete arg2;
39163 }
39164 return resultobj;
39165fail:
39166 {
39167 if (temp2)
39168 delete arg2;
39169 }
39170 return NULL;
39171}
39172
39173
39174SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39175 PyObject *obj;
39176 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39177 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
39178 return SWIG_Py_Void();
39179}
39180
39181SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39182 return SWIG_Python_InitShadowInstance(args);
39183}
39184
39185SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39186 PyObject *resultobj = 0;
39187 wxWindow *arg1 = (wxWindow *) 0 ;
39188 int arg2 = (int) (int)-1 ;
39189 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39190 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39191 wxSize const &arg4_defvalue = wxDefaultSize ;
39192 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39193 long arg5 = (long) 0 ;
39194 wxValidator const &arg6_defvalue = wxDefaultValidator ;
39195 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
39196 wxString const &arg7_defvalue = wxPyControlNameStr ;
39197 wxString *arg7 = (wxString *) &arg7_defvalue ;
39198 wxPyControl *result = 0 ;
39199 void *argp1 = 0 ;
39200 int res1 = 0 ;
39201 int val2 ;
39202 int ecode2 = 0 ;
39203 wxPoint temp3 ;
39204 wxSize temp4 ;
39205 long val5 ;
39206 int ecode5 = 0 ;
39207 void *argp6 = 0 ;
39208 int res6 = 0 ;
39209 bool temp7 = false ;
39210 PyObject * obj0 = 0 ;
39211 PyObject * obj1 = 0 ;
39212 PyObject * obj2 = 0 ;
39213 PyObject * obj3 = 0 ;
39214 PyObject * obj4 = 0 ;
39215 PyObject * obj5 = 0 ;
39216 PyObject * obj6 = 0 ;
39217 char * kwnames[] = {
39218 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
39219 };
39220
39221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
39222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39223 if (!SWIG_IsOK(res1)) {
39224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
39225 }
39226 arg1 = reinterpret_cast< wxWindow * >(argp1);
39227 if (obj1) {
39228 ecode2 = SWIG_AsVal_int(obj1, &val2);
39229 if (!SWIG_IsOK(ecode2)) {
39230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
39231 }
39232 arg2 = static_cast< int >(val2);
39233 }
39234 if (obj2) {
d55e5bfc 39235 {
554f62e9
RD
39236 arg3 = &temp3;
39237 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39238 }
554f62e9
RD
39239 }
39240 if (obj3) {
d55e5bfc 39241 {
554f62e9
RD
39242 arg4 = &temp4;
39243 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 39244 }
554f62e9
RD
39245 }
39246 if (obj4) {
39247 ecode5 = SWIG_AsVal_long(obj4, &val5);
39248 if (!SWIG_IsOK(ecode5)) {
39249 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
39250 }
39251 arg5 = static_cast< long >(val5);
39252 }
39253 if (obj5) {
39254 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
39255 if (!SWIG_IsOK(res6)) {
39256 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
093d3ff1 39257 }
554f62e9
RD
39258 if (!argp6) {
39259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 39260 }
554f62e9
RD
39261 arg6 = reinterpret_cast< wxValidator * >(argp6);
39262 }
39263 if (obj6) {
d55e5bfc 39264 {
554f62e9
RD
39265 arg7 = wxString_in_helper(obj6);
39266 if (arg7 == NULL) SWIG_fail;
39267 temp7 = true;
d55e5bfc 39268 }
554f62e9
RD
39269 }
39270 {
39271 if (!wxPyCheckForApp()) SWIG_fail;
39272 PyThreadState* __tstate = wxPyBeginAllowThreads();
39273 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
39274 wxPyEndAllowThreads(__tstate);
39275 if (PyErr_Occurred()) SWIG_fail;
39276 }
39277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
39278 {
39279 if (temp7)
39280 delete arg7;
39281 }
39282 return resultobj;
39283fail:
39284 {
39285 if (temp7)
39286 delete arg7;
39287 }
39288 return NULL;
d55e5bfc
RD
39289}
39290
39291
554f62e9
RD
39292SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39293 PyObject *resultobj = 0;
39294 wxPyControl *result = 0 ;
39295
39296 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
39297 {
39298 if (!wxPyCheckForApp()) SWIG_fail;
39299 PyThreadState* __tstate = wxPyBeginAllowThreads();
39300 result = (wxPyControl *)new wxPyControl();
39301 wxPyEndAllowThreads(__tstate);
39302 if (PyErr_Occurred()) SWIG_fail;
39303 }
39304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
39305 return resultobj;
39306fail:
39307 return NULL;
39308}
39309
39310
39311SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39312 PyObject *resultobj = 0;
39313 wxPyControl *arg1 = (wxPyControl *) 0 ;
39314 PyObject *arg2 = (PyObject *) 0 ;
39315 PyObject *arg3 = (PyObject *) 0 ;
39316 void *argp1 = 0 ;
39317 int res1 = 0 ;
39318 PyObject * obj0 = 0 ;
39319 PyObject * obj1 = 0 ;
39320 PyObject * obj2 = 0 ;
39321 char * kwnames[] = {
39322 (char *) "self",(char *) "self",(char *) "_class", NULL
39323 };
39324
39325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39327 if (!SWIG_IsOK(res1)) {
39328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
39329 }
39330 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39331 arg2 = obj1;
39332 arg3 = obj2;
39333 {
39334 PyThreadState* __tstate = wxPyBeginAllowThreads();
39335 (arg1)->_setCallbackInfo(arg2,arg3);
39336 wxPyEndAllowThreads(__tstate);
39337 if (PyErr_Occurred()) SWIG_fail;
39338 }
39339 resultobj = SWIG_Py_Void();
39340 return resultobj;
39341fail:
39342 return NULL;
39343}
39344
39345
554f62e9
RD
39346SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39347 PyObject *resultobj = 0;
39348 wxPyControl *arg1 = (wxPyControl *) 0 ;
39349 wxDC *arg2 = (wxDC *) 0 ;
39350 bool result;
39351 void *argp1 = 0 ;
39352 int res1 = 0 ;
39353 void *argp2 = 0 ;
39354 int res2 = 0 ;
39355 PyObject * obj0 = 0 ;
39356 PyObject * obj1 = 0 ;
39357 char * kwnames[] = {
39358 (char *) "self",(char *) "dc", NULL
39359 };
39360
39361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39363 if (!SWIG_IsOK(res1)) {
39364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
39365 }
39366 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39367 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
39368 if (!SWIG_IsOK(res2)) {
39369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
39370 }
39371 arg2 = reinterpret_cast< wxDC * >(argp2);
39372 {
39373 PyThreadState* __tstate = wxPyBeginAllowThreads();
39374 result = (bool)(arg1)->DoEraseBackground(arg2);
39375 wxPyEndAllowThreads(__tstate);
39376 if (PyErr_Occurred()) SWIG_fail;
39377 }
39378 {
39379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39380 }
39381 return resultobj;
39382fail:
39383 return NULL;
39384}
39385
39386
39387SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39388 PyObject *resultobj = 0;
39389 wxPyControl *arg1 = (wxPyControl *) 0 ;
39390 int arg2 ;
39391 int arg3 ;
39392 int arg4 ;
39393 int arg5 ;
39394 void *argp1 = 0 ;
39395 int res1 = 0 ;
39396 int val2 ;
39397 int ecode2 = 0 ;
39398 int val3 ;
39399 int ecode3 = 0 ;
39400 int val4 ;
39401 int ecode4 = 0 ;
39402 int val5 ;
39403 int ecode5 = 0 ;
39404 PyObject * obj0 = 0 ;
39405 PyObject * obj1 = 0 ;
39406 PyObject * obj2 = 0 ;
39407 PyObject * obj3 = 0 ;
39408 PyObject * obj4 = 0 ;
39409 char * kwnames[] = {
39410 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
39411 };
39412
39413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39415 if (!SWIG_IsOK(res1)) {
39416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
39417 }
39418 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39419 ecode2 = SWIG_AsVal_int(obj1, &val2);
39420 if (!SWIG_IsOK(ecode2)) {
39421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
39422 }
39423 arg2 = static_cast< int >(val2);
39424 ecode3 = SWIG_AsVal_int(obj2, &val3);
39425 if (!SWIG_IsOK(ecode3)) {
39426 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
39427 }
39428 arg3 = static_cast< int >(val3);
39429 ecode4 = SWIG_AsVal_int(obj3, &val4);
39430 if (!SWIG_IsOK(ecode4)) {
39431 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
39432 }
39433 arg4 = static_cast< int >(val4);
39434 ecode5 = SWIG_AsVal_int(obj4, &val5);
39435 if (!SWIG_IsOK(ecode5)) {
39436 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
39437 }
39438 arg5 = static_cast< int >(val5);
39439 {
39440 PyThreadState* __tstate = wxPyBeginAllowThreads();
39441 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
39442 wxPyEndAllowThreads(__tstate);
39443 if (PyErr_Occurred()) SWIG_fail;
39444 }
39445 resultobj = SWIG_Py_Void();
39446 return resultobj;
39447fail:
39448 return NULL;
39449}
39450
39451
39452SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39453 PyObject *resultobj = 0;
39454 wxPyControl *arg1 = (wxPyControl *) 0 ;
39455 int arg2 ;
39456 int arg3 ;
39457 int arg4 ;
39458 int arg5 ;
39459 int arg6 = (int) wxSIZE_AUTO ;
39460 void *argp1 = 0 ;
39461 int res1 = 0 ;
39462 int val2 ;
39463 int ecode2 = 0 ;
39464 int val3 ;
39465 int ecode3 = 0 ;
39466 int val4 ;
39467 int ecode4 = 0 ;
39468 int val5 ;
39469 int ecode5 = 0 ;
39470 int val6 ;
39471 int ecode6 = 0 ;
39472 PyObject * obj0 = 0 ;
39473 PyObject * obj1 = 0 ;
39474 PyObject * obj2 = 0 ;
39475 PyObject * obj3 = 0 ;
39476 PyObject * obj4 = 0 ;
39477 PyObject * obj5 = 0 ;
39478 char * kwnames[] = {
39479 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39480 };
39481
39482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39484 if (!SWIG_IsOK(res1)) {
39485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39486 }
39487 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39488 ecode2 = SWIG_AsVal_int(obj1, &val2);
39489 if (!SWIG_IsOK(ecode2)) {
39490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39491 }
39492 arg2 = static_cast< int >(val2);
39493 ecode3 = SWIG_AsVal_int(obj2, &val3);
39494 if (!SWIG_IsOK(ecode3)) {
39495 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39496 }
39497 arg3 = static_cast< int >(val3);
39498 ecode4 = SWIG_AsVal_int(obj3, &val4);
39499 if (!SWIG_IsOK(ecode4)) {
39500 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39501 }
39502 arg4 = static_cast< int >(val4);
39503 ecode5 = SWIG_AsVal_int(obj4, &val5);
39504 if (!SWIG_IsOK(ecode5)) {
39505 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39506 }
39507 arg5 = static_cast< int >(val5);
39508 if (obj5) {
39509 ecode6 = SWIG_AsVal_int(obj5, &val6);
39510 if (!SWIG_IsOK(ecode6)) {
39511 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39512 }
39513 arg6 = static_cast< int >(val6);
39514 }
39515 {
39516 PyThreadState* __tstate = wxPyBeginAllowThreads();
39517 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39518 wxPyEndAllowThreads(__tstate);
39519 if (PyErr_Occurred()) SWIG_fail;
39520 }
39521 resultobj = SWIG_Py_Void();
39522 return resultobj;
39523fail:
39524 return NULL;
39525}
39526
39527
39528SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39529 PyObject *resultobj = 0;
39530 wxPyControl *arg1 = (wxPyControl *) 0 ;
39531 int arg2 ;
39532 int arg3 ;
39533 void *argp1 = 0 ;
39534 int res1 = 0 ;
39535 int val2 ;
39536 int ecode2 = 0 ;
39537 int val3 ;
39538 int ecode3 = 0 ;
39539 PyObject * obj0 = 0 ;
39540 PyObject * obj1 = 0 ;
39541 PyObject * obj2 = 0 ;
39542 char * kwnames[] = {
39543 (char *) "self",(char *) "width",(char *) "height", NULL
39544 };
39545
39546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39548 if (!SWIG_IsOK(res1)) {
39549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39550 }
39551 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39552 ecode2 = SWIG_AsVal_int(obj1, &val2);
39553 if (!SWIG_IsOK(ecode2)) {
39554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39555 }
39556 arg2 = static_cast< int >(val2);
39557 ecode3 = SWIG_AsVal_int(obj2, &val3);
39558 if (!SWIG_IsOK(ecode3)) {
39559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39560 }
39561 arg3 = static_cast< int >(val3);
39562 {
39563 PyThreadState* __tstate = wxPyBeginAllowThreads();
39564 (arg1)->DoSetClientSize(arg2,arg3);
39565 wxPyEndAllowThreads(__tstate);
39566 if (PyErr_Occurred()) SWIG_fail;
39567 }
39568 resultobj = SWIG_Py_Void();
39569 return resultobj;
39570fail:
39571 return NULL;
39572}
39573
39574
39575SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39576 PyObject *resultobj = 0;
39577 wxPyControl *arg1 = (wxPyControl *) 0 ;
39578 int arg2 ;
39579 int arg3 ;
39580 void *argp1 = 0 ;
39581 int res1 = 0 ;
39582 int val2 ;
39583 int ecode2 = 0 ;
39584 int val3 ;
39585 int ecode3 = 0 ;
39586 PyObject * obj0 = 0 ;
39587 PyObject * obj1 = 0 ;
39588 PyObject * obj2 = 0 ;
39589 char * kwnames[] = {
39590 (char *) "self",(char *) "x",(char *) "y", NULL
39591 };
39592
39593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39595 if (!SWIG_IsOK(res1)) {
39596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39597 }
39598 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39599 ecode2 = SWIG_AsVal_int(obj1, &val2);
39600 if (!SWIG_IsOK(ecode2)) {
39601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39602 }
39603 arg2 = static_cast< int >(val2);
39604 ecode3 = SWIG_AsVal_int(obj2, &val3);
39605 if (!SWIG_IsOK(ecode3)) {
39606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39607 }
39608 arg3 = static_cast< int >(val3);
39609 {
39610 PyThreadState* __tstate = wxPyBeginAllowThreads();
39611 (arg1)->DoSetVirtualSize(arg2,arg3);
39612 wxPyEndAllowThreads(__tstate);
39613 if (PyErr_Occurred()) SWIG_fail;
39614 }
39615 resultobj = SWIG_Py_Void();
39616 return resultobj;
39617fail:
39618 return NULL;
39619}
39620
39621
39622SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39623 PyObject *resultobj = 0;
39624 wxPyControl *arg1 = (wxPyControl *) 0 ;
39625 int *arg2 = (int *) 0 ;
39626 int *arg3 = (int *) 0 ;
39627 void *argp1 = 0 ;
39628 int res1 = 0 ;
39629 int temp2 ;
39630 int res2 = SWIG_TMPOBJ ;
39631 int temp3 ;
39632 int res3 = SWIG_TMPOBJ ;
39633 PyObject *swig_obj[1] ;
39634
39635 arg2 = &temp2;
39636 arg3 = &temp3;
39637 if (!args) SWIG_fail;
39638 swig_obj[0] = args;
39639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39640 if (!SWIG_IsOK(res1)) {
39641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39642 }
39643 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39644 {
39645 PyThreadState* __tstate = wxPyBeginAllowThreads();
39646 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39647 wxPyEndAllowThreads(__tstate);
39648 if (PyErr_Occurred()) SWIG_fail;
39649 }
39650 resultobj = SWIG_Py_Void();
39651 if (SWIG_IsTmpObj(res2)) {
39652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39653 } else {
39654 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39656 }
39657 if (SWIG_IsTmpObj(res3)) {
39658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39659 } else {
39660 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39662 }
39663 return resultobj;
39664fail:
39665 return NULL;
39666}
39667
39668
39669SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39670 PyObject *resultobj = 0;
39671 wxPyControl *arg1 = (wxPyControl *) 0 ;
39672 int *arg2 = (int *) 0 ;
39673 int *arg3 = (int *) 0 ;
39674 void *argp1 = 0 ;
39675 int res1 = 0 ;
39676 int temp2 ;
39677 int res2 = SWIG_TMPOBJ ;
39678 int temp3 ;
39679 int res3 = SWIG_TMPOBJ ;
39680 PyObject *swig_obj[1] ;
39681
39682 arg2 = &temp2;
39683 arg3 = &temp3;
39684 if (!args) SWIG_fail;
39685 swig_obj[0] = args;
39686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39687 if (!SWIG_IsOK(res1)) {
39688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39689 }
39690 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39691 {
39692 PyThreadState* __tstate = wxPyBeginAllowThreads();
39693 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39694 wxPyEndAllowThreads(__tstate);
39695 if (PyErr_Occurred()) SWIG_fail;
39696 }
39697 resultobj = SWIG_Py_Void();
39698 if (SWIG_IsTmpObj(res2)) {
39699 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39700 } else {
39701 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39702 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39703 }
39704 if (SWIG_IsTmpObj(res3)) {
39705 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39706 } else {
39707 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39708 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39709 }
39710 return resultobj;
39711fail:
39712 return NULL;
39713}
39714
39715
39716SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39717 PyObject *resultobj = 0;
39718 wxPyControl *arg1 = (wxPyControl *) 0 ;
39719 int *arg2 = (int *) 0 ;
39720 int *arg3 = (int *) 0 ;
39721 void *argp1 = 0 ;
39722 int res1 = 0 ;
39723 int temp2 ;
39724 int res2 = SWIG_TMPOBJ ;
39725 int temp3 ;
39726 int res3 = SWIG_TMPOBJ ;
39727 PyObject *swig_obj[1] ;
39728
39729 arg2 = &temp2;
39730 arg3 = &temp3;
39731 if (!args) SWIG_fail;
39732 swig_obj[0] = args;
39733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39734 if (!SWIG_IsOK(res1)) {
39735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39736 }
39737 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39738 {
39739 PyThreadState* __tstate = wxPyBeginAllowThreads();
39740 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39741 wxPyEndAllowThreads(__tstate);
39742 if (PyErr_Occurred()) SWIG_fail;
39743 }
39744 resultobj = SWIG_Py_Void();
39745 if (SWIG_IsTmpObj(res2)) {
39746 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39747 } else {
39748 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39749 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39750 }
39751 if (SWIG_IsTmpObj(res3)) {
39752 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39753 } else {
39754 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39755 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39756 }
39757 return resultobj;
39758fail:
39759 return NULL;
d55e5bfc
RD
39760}
39761
39762
554f62e9
RD
39763SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39764 PyObject *resultobj = 0;
39765 wxPyControl *arg1 = (wxPyControl *) 0 ;
39766 wxSize result;
39767 void *argp1 = 0 ;
39768 int res1 = 0 ;
39769 PyObject *swig_obj[1] ;
39770
39771 if (!args) SWIG_fail;
39772 swig_obj[0] = args;
39773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39774 if (!SWIG_IsOK(res1)) {
39775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39776 }
39777 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39778 {
39779 PyThreadState* __tstate = wxPyBeginAllowThreads();
39780 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39781 wxPyEndAllowThreads(__tstate);
39782 if (PyErr_Occurred()) SWIG_fail;
39783 }
39784 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39785 return resultobj;
39786fail:
39787 return NULL;
d55e5bfc
RD
39788}
39789
39790
554f62e9
RD
39791SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39792 PyObject *resultobj = 0;
39793 wxPyControl *arg1 = (wxPyControl *) 0 ;
39794 wxSize result;
39795 void *argp1 = 0 ;
39796 int res1 = 0 ;
39797 PyObject *swig_obj[1] ;
39798
39799 if (!args) SWIG_fail;
39800 swig_obj[0] = args;
39801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39802 if (!SWIG_IsOK(res1)) {
39803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39804 }
39805 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39806 {
39807 PyThreadState* __tstate = wxPyBeginAllowThreads();
39808 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39809 wxPyEndAllowThreads(__tstate);
39810 if (PyErr_Occurred()) SWIG_fail;
39811 }
39812 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39813 return resultobj;
39814fail:
39815 return NULL;
d55e5bfc
RD
39816}
39817
39818
554f62e9
RD
39819SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39820 PyObject *resultobj = 0;
39821 wxPyControl *arg1 = (wxPyControl *) 0 ;
39822 SwigValueWrapper<wxVisualAttributes > result;
39823 void *argp1 = 0 ;
39824 int res1 = 0 ;
39825 PyObject *swig_obj[1] ;
39826
39827 if (!args) SWIG_fail;
39828 swig_obj[0] = args;
39829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39830 if (!SWIG_IsOK(res1)) {
39831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39832 }
39833 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39834 {
39835 PyThreadState* __tstate = wxPyBeginAllowThreads();
39836 result = (arg1)->GetDefaultAttributes();
39837 wxPyEndAllowThreads(__tstate);
39838 if (PyErr_Occurred()) SWIG_fail;
39839 }
39840 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39841 return resultobj;
39842fail:
39843 return NULL;
d55e5bfc
RD
39844}
39845
39846
554f62e9
RD
39847SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39848 PyObject *resultobj = 0;
39849 wxPyControl *arg1 = (wxPyControl *) 0 ;
39850 void *argp1 = 0 ;
39851 int res1 = 0 ;
39852 PyObject *swig_obj[1] ;
39853
39854 if (!args) SWIG_fail;
39855 swig_obj[0] = args;
39856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39857 if (!SWIG_IsOK(res1)) {
39858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39859 }
39860 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39861 {
39862 PyThreadState* __tstate = wxPyBeginAllowThreads();
39863 (arg1)->OnInternalIdle();
39864 wxPyEndAllowThreads(__tstate);
39865 if (PyErr_Occurred()) SWIG_fail;
39866 }
39867 resultobj = SWIG_Py_Void();
39868 return resultobj;
39869fail:
39870 return NULL;
39871}
39872
39873
39874SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39875 PyObject *obj;
39876 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39877 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39878 return SWIG_Py_Void();
39879}
39880
39881SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39882 return SWIG_Python_InitShadowInstance(args);
39883}
39884
39885SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39886 PyObject *resultobj = 0;
39887 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39888 int arg2 = (int) 0 ;
39889 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39890 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39891 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
554f62e9
RD
39892 wxHelpEvent *result = 0 ;
39893 int val1 ;
39894 int ecode1 = 0 ;
39895 int val2 ;
39896 int ecode2 = 0 ;
39897 wxPoint temp3 ;
704eda0c
RD
39898 int val4 ;
39899 int ecode4 = 0 ;
554f62e9
RD
39900 PyObject * obj0 = 0 ;
39901 PyObject * obj1 = 0 ;
39902 PyObject * obj2 = 0 ;
704eda0c 39903 PyObject * obj3 = 0 ;
554f62e9 39904 char * kwnames[] = {
704eda0c 39905 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
554f62e9
RD
39906 };
39907
704eda0c 39908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
554f62e9
RD
39909 if (obj0) {
39910 ecode1 = SWIG_AsVal_int(obj0, &val1);
39911 if (!SWIG_IsOK(ecode1)) {
39912 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39913 }
39914 arg1 = static_cast< wxEventType >(val1);
39915 }
39916 if (obj1) {
39917 ecode2 = SWIG_AsVal_int(obj1, &val2);
39918 if (!SWIG_IsOK(ecode2)) {
39919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39920 }
39921 arg2 = static_cast< int >(val2);
39922 }
39923 if (obj2) {
d55e5bfc 39924 {
554f62e9
RD
39925 arg3 = &temp3;
39926 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39927 }
554f62e9 39928 }
704eda0c
RD
39929 if (obj3) {
39930 ecode4 = SWIG_AsVal_int(obj3, &val4);
39931 if (!SWIG_IsOK(ecode4)) {
39932 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39933 }
39934 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39935 }
554f62e9
RD
39936 {
39937 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39938 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
554f62e9
RD
39939 wxPyEndAllowThreads(__tstate);
39940 if (PyErr_Occurred()) SWIG_fail;
39941 }
39942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39943 return resultobj;
39944fail:
39945 return NULL;
d55e5bfc
RD
39946}
39947
39948
554f62e9
RD
39949SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39950 PyObject *resultobj = 0;
39951 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39952 wxPoint result;
39953 void *argp1 = 0 ;
39954 int res1 = 0 ;
39955 PyObject *swig_obj[1] ;
39956
39957 if (!args) SWIG_fail;
39958 swig_obj[0] = args;
39959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39960 if (!SWIG_IsOK(res1)) {
39961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39962 }
39963 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39964 {
39965 PyThreadState* __tstate = wxPyBeginAllowThreads();
39966 result = ((wxHelpEvent const *)arg1)->GetPosition();
39967 wxPyEndAllowThreads(__tstate);
39968 if (PyErr_Occurred()) SWIG_fail;
39969 }
39970 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39971 return resultobj;
39972fail:
39973 return NULL;
39974}
39975
39976
39977SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39978 PyObject *resultobj = 0;
39979 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39980 wxPoint *arg2 = 0 ;
39981 void *argp1 = 0 ;
39982 int res1 = 0 ;
39983 wxPoint temp2 ;
39984 PyObject * obj0 = 0 ;
39985 PyObject * obj1 = 0 ;
39986 char * kwnames[] = {
39987 (char *) "self",(char *) "pos", NULL
39988 };
39989
39990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39992 if (!SWIG_IsOK(res1)) {
39993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39994 }
39995 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39996 {
39997 arg2 = &temp2;
39998 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39999 }
40000 {
40001 PyThreadState* __tstate = wxPyBeginAllowThreads();
40002 (arg1)->SetPosition((wxPoint const &)*arg2);
40003 wxPyEndAllowThreads(__tstate);
40004 if (PyErr_Occurred()) SWIG_fail;
40005 }
40006 resultobj = SWIG_Py_Void();
40007 return resultobj;
40008fail:
40009 return NULL;
f20a2e1f
RD
40010}
40011
40012
554f62e9
RD
40013SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40014 PyObject *resultobj = 0;
40015 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40016 wxString *result = 0 ;
40017 void *argp1 = 0 ;
40018 int res1 = 0 ;
40019 PyObject *swig_obj[1] ;
40020
40021 if (!args) SWIG_fail;
40022 swig_obj[0] = args;
40023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40024 if (!SWIG_IsOK(res1)) {
40025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40026 }
40027 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40028 {
40029 PyThreadState* __tstate = wxPyBeginAllowThreads();
40030 {
40031 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
40032 result = (wxString *) &_result_ref;
40033 }
40034 wxPyEndAllowThreads(__tstate);
40035 if (PyErr_Occurred()) SWIG_fail;
40036 }
40037 {
40038#if wxUSE_UNICODE
40039 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
40040#else
40041 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
40042#endif
40043 }
40044 return resultobj;
40045fail:
40046 return NULL;
40047}
40048
40049
40050SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40051 PyObject *resultobj = 0;
40052 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40053 wxString *arg2 = 0 ;
40054 void *argp1 = 0 ;
40055 int res1 = 0 ;
40056 bool temp2 = false ;
40057 PyObject * obj0 = 0 ;
40058 PyObject * obj1 = 0 ;
40059 char * kwnames[] = {
40060 (char *) "self",(char *) "link", NULL
40061 };
40062
40063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
40064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40065 if (!SWIG_IsOK(res1)) {
40066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40067 }
40068 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40069 {
40070 arg2 = wxString_in_helper(obj1);
40071 if (arg2 == NULL) SWIG_fail;
40072 temp2 = true;
40073 }
40074 {
40075 PyThreadState* __tstate = wxPyBeginAllowThreads();
40076 (arg1)->SetLink((wxString const &)*arg2);
40077 wxPyEndAllowThreads(__tstate);
40078 if (PyErr_Occurred()) SWIG_fail;
40079 }
40080 resultobj = SWIG_Py_Void();
40081 {
40082 if (temp2)
40083 delete arg2;
40084 }
40085 return resultobj;
40086fail:
40087 {
40088 if (temp2)
40089 delete arg2;
40090 }
40091 return NULL;
d55e5bfc
RD
40092}
40093
40094
554f62e9
RD
40095SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40096 PyObject *resultobj = 0;
40097 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40098 wxString *result = 0 ;
40099 void *argp1 = 0 ;
40100 int res1 = 0 ;
40101 PyObject *swig_obj[1] ;
40102
40103 if (!args) SWIG_fail;
40104 swig_obj[0] = args;
40105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40106 if (!SWIG_IsOK(res1)) {
40107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40108 }
40109 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40110 {
40111 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 40112 {
554f62e9
RD
40113 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
40114 result = (wxString *) &_result_ref;
40115 }
40116 wxPyEndAllowThreads(__tstate);
40117 if (PyErr_Occurred()) SWIG_fail;
40118 }
40119 {
d55e5bfc 40120#if wxUSE_UNICODE
554f62e9 40121 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d55e5bfc 40122#else
554f62e9 40123 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d55e5bfc 40124#endif
554f62e9
RD
40125 }
40126 return resultobj;
40127fail:
40128 return NULL;
40129}
40130
40131
40132SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40133 PyObject *resultobj = 0;
40134 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40135 wxString *arg2 = 0 ;
40136 void *argp1 = 0 ;
40137 int res1 = 0 ;
40138 bool temp2 = false ;
40139 PyObject * obj0 = 0 ;
40140 PyObject * obj1 = 0 ;
40141 char * kwnames[] = {
40142 (char *) "self",(char *) "target", NULL
40143 };
40144
40145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
40146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40147 if (!SWIG_IsOK(res1)) {
40148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40149 }
40150 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40151 {
40152 arg2 = wxString_in_helper(obj1);
40153 if (arg2 == NULL) SWIG_fail;
40154 temp2 = true;
40155 }
40156 {
40157 PyThreadState* __tstate = wxPyBeginAllowThreads();
40158 (arg1)->SetTarget((wxString const &)*arg2);
40159 wxPyEndAllowThreads(__tstate);
40160 if (PyErr_Occurred()) SWIG_fail;
40161 }
40162 resultobj = SWIG_Py_Void();
40163 {
40164 if (temp2)
40165 delete arg2;
40166 }
40167 return resultobj;
40168fail:
40169 {
40170 if (temp2)
40171 delete arg2;
40172 }
40173 return NULL;
d55e5bfc
RD
40174}
40175
40176
704eda0c
RD
40177SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40178 PyObject *resultobj = 0;
40179 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40180 wxHelpEvent::Origin result;
40181 void *argp1 = 0 ;
40182 int res1 = 0 ;
40183 PyObject *swig_obj[1] ;
40184
40185 if (!args) SWIG_fail;
40186 swig_obj[0] = args;
40187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40188 if (!SWIG_IsOK(res1)) {
40189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40190 }
40191 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40192 {
40193 PyThreadState* __tstate = wxPyBeginAllowThreads();
40194 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
40195 wxPyEndAllowThreads(__tstate);
40196 if (PyErr_Occurred()) SWIG_fail;
40197 }
40198 resultobj = SWIG_From_int(static_cast< int >(result));
40199 return resultobj;
40200fail:
40201 return NULL;
40202}
40203
40204
40205SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40206 PyObject *resultobj = 0;
40207 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40208 wxHelpEvent::Origin arg2 ;
40209 void *argp1 = 0 ;
40210 int res1 = 0 ;
40211 int val2 ;
40212 int ecode2 = 0 ;
40213 PyObject * obj0 = 0 ;
40214 PyObject * obj1 = 0 ;
40215 char * kwnames[] = {
40216 (char *) "self",(char *) "origin", NULL
40217 };
40218
40219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
40220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40221 if (!SWIG_IsOK(res1)) {
40222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40223 }
40224 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40225 ecode2 = SWIG_AsVal_int(obj1, &val2);
40226 if (!SWIG_IsOK(ecode2)) {
40227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
40228 }
40229 arg2 = static_cast< wxHelpEvent::Origin >(val2);
40230 {
40231 PyThreadState* __tstate = wxPyBeginAllowThreads();
40232 (arg1)->SetOrigin(arg2);
40233 wxPyEndAllowThreads(__tstate);
40234 if (PyErr_Occurred()) SWIG_fail;
40235 }
40236 resultobj = SWIG_Py_Void();
40237 return resultobj;
40238fail:
40239 return NULL;
40240}
40241
40242
554f62e9
RD
40243SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40244 PyObject *obj;
40245 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40246 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
40247 return SWIG_Py_Void();
7e08d4ef
RD
40248}
40249
554f62e9
RD
40250SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40251 return SWIG_Python_InitShadowInstance(args);
40252}
7e08d4ef 40253
554f62e9
RD
40254SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40255 PyObject *resultobj = 0;
40256 wxWindow *arg1 = (wxWindow *) NULL ;
40257 bool arg2 = (bool) true ;
40258 wxContextHelp *result = 0 ;
40259 void *argp1 = 0 ;
40260 int res1 = 0 ;
40261 bool val2 ;
40262 int ecode2 = 0 ;
40263 PyObject * obj0 = 0 ;
40264 PyObject * obj1 = 0 ;
40265 char * kwnames[] = {
40266 (char *) "window",(char *) "doNow", NULL
40267 };
40268
40269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40270 if (obj0) {
40271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40272 if (!SWIG_IsOK(res1)) {
40273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 40274 }
554f62e9
RD
40275 arg1 = reinterpret_cast< wxWindow * >(argp1);
40276 }
40277 if (obj1) {
40278 ecode2 = SWIG_AsVal_bool(obj1, &val2);
40279 if (!SWIG_IsOK(ecode2)) {
40280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
40281 }
40282 arg2 = static_cast< bool >(val2);
40283 }
40284 {
40285 if (!wxPyCheckForApp()) SWIG_fail;
40286 PyThreadState* __tstate = wxPyBeginAllowThreads();
40287 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
40288 wxPyEndAllowThreads(__tstate);
40289 if (PyErr_Occurred()) SWIG_fail;
40290 }
40291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
40292 return resultobj;
40293fail:
40294 return NULL;
d55e5bfc
RD
40295}
40296
40297
554f62e9
RD
40298SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40299 PyObject *resultobj = 0;
40300 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40301 void *argp1 = 0 ;
40302 int res1 = 0 ;
40303 PyObject *swig_obj[1] ;
40304
40305 if (!args) SWIG_fail;
40306 swig_obj[0] = args;
40307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
40308 if (!SWIG_IsOK(res1)) {
40309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40310 }
40311 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40312 {
40313 PyThreadState* __tstate = wxPyBeginAllowThreads();
40314 delete arg1;
d55e5bfc 40315
554f62e9
RD
40316 wxPyEndAllowThreads(__tstate);
40317 if (PyErr_Occurred()) SWIG_fail;
40318 }
40319 resultobj = SWIG_Py_Void();
40320 return resultobj;
40321fail:
40322 return NULL;
40323}
40324
40325
40326SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40327 PyObject *resultobj = 0;
40328 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40329 wxWindow *arg2 = (wxWindow *) NULL ;
40330 bool result;
40331 void *argp1 = 0 ;
40332 int res1 = 0 ;
40333 void *argp2 = 0 ;
40334 int res2 = 0 ;
40335 PyObject * obj0 = 0 ;
40336 PyObject * obj1 = 0 ;
40337 char * kwnames[] = {
40338 (char *) "self",(char *) "window", NULL
40339 };
40340
40341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40343 if (!SWIG_IsOK(res1)) {
40344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40345 }
40346 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40347 if (obj1) {
40348 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40349 if (!SWIG_IsOK(res2)) {
40350 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 40351 }
554f62e9
RD
40352 arg2 = reinterpret_cast< wxWindow * >(argp2);
40353 }
40354 {
40355 PyThreadState* __tstate = wxPyBeginAllowThreads();
40356 result = (bool)(arg1)->BeginContextHelp(arg2);
40357 wxPyEndAllowThreads(__tstate);
40358 if (PyErr_Occurred()) SWIG_fail;
40359 }
40360 {
40361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40362 }
40363 return resultobj;
40364fail:
40365 return NULL;
d55e5bfc
RD
40366}
40367
40368
554f62e9
RD
40369SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40370 PyObject *resultobj = 0;
40371 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40372 bool result;
40373 void *argp1 = 0 ;
40374 int res1 = 0 ;
40375 PyObject *swig_obj[1] ;
40376
40377 if (!args) SWIG_fail;
40378 swig_obj[0] = args;
40379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40380 if (!SWIG_IsOK(res1)) {
40381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40382 }
40383 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40384 {
40385 PyThreadState* __tstate = wxPyBeginAllowThreads();
40386 result = (bool)(arg1)->EndContextHelp();
40387 wxPyEndAllowThreads(__tstate);
40388 if (PyErr_Occurred()) SWIG_fail;
40389 }
40390 {
40391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40392 }
40393 return resultobj;
40394fail:
40395 return NULL;
40396}
40397
40398
40399SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40400 PyObject *obj;
40401 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40402 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
40403 return SWIG_Py_Void();
40404}
40405
40406SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40407 return SWIG_Python_InitShadowInstance(args);
40408}
40409
40410SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40411 PyObject *resultobj = 0;
40412 wxWindow *arg1 = (wxWindow *) 0 ;
40413 int arg2 = (int) wxID_CONTEXT_HELP ;
40414 wxPoint const &arg3_defvalue = wxDefaultPosition ;
40415 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
40416 wxSize const &arg4_defvalue = wxDefaultSize ;
40417 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
40418 long arg5 = (long) wxBU_AUTODRAW ;
40419 wxContextHelpButton *result = 0 ;
40420 void *argp1 = 0 ;
40421 int res1 = 0 ;
40422 int val2 ;
40423 int ecode2 = 0 ;
40424 wxPoint temp3 ;
40425 wxSize temp4 ;
40426 long val5 ;
40427 int ecode5 = 0 ;
40428 PyObject * obj0 = 0 ;
40429 PyObject * obj1 = 0 ;
40430 PyObject * obj2 = 0 ;
40431 PyObject * obj3 = 0 ;
40432 PyObject * obj4 = 0 ;
40433 char * kwnames[] = {
40434 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
40435 };
40436
40437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40439 if (!SWIG_IsOK(res1)) {
40440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
40441 }
40442 arg1 = reinterpret_cast< wxWindow * >(argp1);
40443 if (obj1) {
40444 ecode2 = SWIG_AsVal_int(obj1, &val2);
40445 if (!SWIG_IsOK(ecode2)) {
40446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
40447 }
40448 arg2 = static_cast< int >(val2);
40449 }
40450 if (obj2) {
d55e5bfc 40451 {
554f62e9
RD
40452 arg3 = &temp3;
40453 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 40454 }
554f62e9
RD
40455 }
40456 if (obj3) {
d55e5bfc 40457 {
554f62e9
RD
40458 arg4 = &temp4;
40459 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 40460 }
554f62e9
RD
40461 }
40462 if (obj4) {
40463 ecode5 = SWIG_AsVal_long(obj4, &val5);
40464 if (!SWIG_IsOK(ecode5)) {
40465 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
40466 }
40467 arg5 = static_cast< long >(val5);
40468 }
40469 {
40470 if (!wxPyCheckForApp()) SWIG_fail;
40471 PyThreadState* __tstate = wxPyBeginAllowThreads();
40472 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
40473 wxPyEndAllowThreads(__tstate);
40474 if (PyErr_Occurred()) SWIG_fail;
40475 }
40476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
40477 return resultobj;
40478fail:
40479 return NULL;
d55e5bfc
RD
40480}
40481
40482
554f62e9
RD
40483SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40484 PyObject *obj;
40485 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40486 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40487 return SWIG_Py_Void();
d55e5bfc
RD
40488}
40489
554f62e9
RD
40490SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40491 return SWIG_Python_InitShadowInstance(args);
40492}
d55e5bfc 40493
f52cbe90
RD
40494SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40495 PyObject *resultobj = 0;
40496 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40497 void *argp1 = 0 ;
40498 int res1 = 0 ;
40499 PyObject *swig_obj[1] ;
40500
40501 if (!args) SWIG_fail;
40502 swig_obj[0] = args;
40503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40504 if (!SWIG_IsOK(res1)) {
40505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40506 }
40507 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40508 {
40509 PyThreadState* __tstate = wxPyBeginAllowThreads();
40510 delete arg1;
40511
40512 wxPyEndAllowThreads(__tstate);
40513 if (PyErr_Occurred()) SWIG_fail;
40514 }
40515 resultobj = SWIG_Py_Void();
40516 return resultobj;
40517fail:
40518 return NULL;
40519}
40520
40521
554f62e9
RD
40522SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40523 PyObject *resultobj = 0;
40524 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40525 wxHelpProvider *result = 0 ;
40526 int res1 = 0 ;
40527 PyObject * obj0 = 0 ;
40528 char * kwnames[] = {
40529 (char *) "helpProvider", NULL
40530 };
40531
40532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40533 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40534 if (!SWIG_IsOK(res1)) {
40535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40536 }
40537 {
40538 PyThreadState* __tstate = wxPyBeginAllowThreads();
40539 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40540 wxPyEndAllowThreads(__tstate);
40541 if (PyErr_Occurred()) SWIG_fail;
40542 }
40543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40544 return resultobj;
40545fail:
40546 return NULL;
d55e5bfc
RD
40547}
40548
40549
554f62e9
RD
40550SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40551 PyObject *resultobj = 0;
40552 wxHelpProvider *result = 0 ;
40553
40554 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40555 {
40556 PyThreadState* __tstate = wxPyBeginAllowThreads();
40557 result = (wxHelpProvider *)wxHelpProvider::Get();
40558 wxPyEndAllowThreads(__tstate);
40559 if (PyErr_Occurred()) SWIG_fail;
40560 }
40561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40562 return resultobj;
40563fail:
40564 return NULL;
40565}
40566
40567
40568SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40569 PyObject *resultobj = 0;
40570 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40571 wxWindow *arg2 = (wxWindow *) 0 ;
40572 wxString result;
40573 void *argp1 = 0 ;
40574 int res1 = 0 ;
40575 void *argp2 = 0 ;
40576 int res2 = 0 ;
40577 PyObject * obj0 = 0 ;
40578 PyObject * obj1 = 0 ;
40579 char * kwnames[] = {
40580 (char *) "self",(char *) "window", NULL
40581 };
40582
40583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40585 if (!SWIG_IsOK(res1)) {
40586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40587 }
40588 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40590 if (!SWIG_IsOK(res2)) {
40591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40592 }
40593 arg2 = reinterpret_cast< wxWindow * >(argp2);
40594 {
40595 PyThreadState* __tstate = wxPyBeginAllowThreads();
40596 result = (arg1)->GetHelp((wxWindow const *)arg2);
40597 wxPyEndAllowThreads(__tstate);
40598 if (PyErr_Occurred()) SWIG_fail;
40599 }
40600 {
40601#if wxUSE_UNICODE
40602 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40603#else
40604 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40605#endif
40606 }
40607 return resultobj;
40608fail:
40609 return NULL;
40610}
40611
40612
40613SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40614 PyObject *resultobj = 0;
40615 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40616 wxWindow *arg2 = (wxWindow *) 0 ;
40617 bool result;
40618 void *argp1 = 0 ;
40619 int res1 = 0 ;
40620 void *argp2 = 0 ;
40621 int res2 = 0 ;
40622 PyObject * obj0 = 0 ;
40623 PyObject * obj1 = 0 ;
40624 char * kwnames[] = {
40625 (char *) "self",(char *) "window", NULL
40626 };
40627
40628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40630 if (!SWIG_IsOK(res1)) {
40631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40632 }
40633 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40634 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40635 if (!SWIG_IsOK(res2)) {
40636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40637 }
40638 arg2 = reinterpret_cast< wxWindow * >(argp2);
40639 {
40640 PyThreadState* __tstate = wxPyBeginAllowThreads();
40641 result = (bool)(arg1)->ShowHelp(arg2);
40642 wxPyEndAllowThreads(__tstate);
40643 if (PyErr_Occurred()) SWIG_fail;
40644 }
40645 {
40646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40647 }
40648 return resultobj;
40649fail:
40650 return NULL;
40651}
40652
40653
b850e7f3
RD
40654SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40655 PyObject *resultobj = 0;
40656 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40657 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40658 wxPoint *arg3 = 0 ;
40659 wxHelpEvent::Origin arg4 ;
40660 bool result;
40661 void *argp1 = 0 ;
40662 int res1 = 0 ;
40663 void *argp2 = 0 ;
40664 int res2 = 0 ;
40665 wxPoint temp3 ;
40666 int val4 ;
40667 int ecode4 = 0 ;
40668 PyObject * obj0 = 0 ;
40669 PyObject * obj1 = 0 ;
40670 PyObject * obj2 = 0 ;
40671 PyObject * obj3 = 0 ;
40672 char * kwnames[] = {
40673 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40674 };
40675
40676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40678 if (!SWIG_IsOK(res1)) {
40679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40680 }
40681 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40682 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40683 if (!SWIG_IsOK(res2)) {
40684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40685 }
40686 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40687 {
40688 arg3 = &temp3;
40689 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40690 }
40691 ecode4 = SWIG_AsVal_int(obj3, &val4);
40692 if (!SWIG_IsOK(ecode4)) {
40693 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40694 }
40695 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40696 {
40697 PyThreadState* __tstate = wxPyBeginAllowThreads();
40698 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40699 wxPyEndAllowThreads(__tstate);
40700 if (PyErr_Occurred()) SWIG_fail;
40701 }
40702 {
40703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40704 }
40705 return resultobj;
40706fail:
40707 return NULL;
40708}
40709
40710
554f62e9
RD
40711SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40712 PyObject *resultobj = 0;
40713 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40714 wxWindow *arg2 = (wxWindow *) 0 ;
40715 wxString *arg3 = 0 ;
40716 void *argp1 = 0 ;
40717 int res1 = 0 ;
40718 void *argp2 = 0 ;
40719 int res2 = 0 ;
40720 bool temp3 = false ;
40721 PyObject * obj0 = 0 ;
40722 PyObject * obj1 = 0 ;
40723 PyObject * obj2 = 0 ;
40724 char * kwnames[] = {
40725 (char *) "self",(char *) "window",(char *) "text", NULL
40726 };
40727
40728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40730 if (!SWIG_IsOK(res1)) {
40731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40732 }
40733 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40734 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40735 if (!SWIG_IsOK(res2)) {
40736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40737 }
40738 arg2 = reinterpret_cast< wxWindow * >(argp2);
40739 {
40740 arg3 = wxString_in_helper(obj2);
40741 if (arg3 == NULL) SWIG_fail;
40742 temp3 = true;
40743 }
40744 {
40745 PyThreadState* __tstate = wxPyBeginAllowThreads();
40746 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40747 wxPyEndAllowThreads(__tstate);
40748 if (PyErr_Occurred()) SWIG_fail;
40749 }
40750 resultobj = SWIG_Py_Void();
40751 {
40752 if (temp3)
40753 delete arg3;
40754 }
40755 return resultobj;
40756fail:
40757 {
40758 if (temp3)
40759 delete arg3;
40760 }
40761 return NULL;
40762}
40763
40764
40765SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40766 PyObject *resultobj = 0;
40767 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40768 int arg2 ;
40769 wxString *arg3 = 0 ;
40770 void *argp1 = 0 ;
40771 int res1 = 0 ;
40772 int val2 ;
40773 int ecode2 = 0 ;
40774 bool temp3 = false ;
40775 PyObject * obj0 = 0 ;
40776 PyObject * obj1 = 0 ;
40777 PyObject * obj2 = 0 ;
40778 char * kwnames[] = {
40779 (char *) "self",(char *) "id",(char *) "text", NULL
40780 };
40781
40782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40784 if (!SWIG_IsOK(res1)) {
40785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40786 }
40787 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40788 ecode2 = SWIG_AsVal_int(obj1, &val2);
40789 if (!SWIG_IsOK(ecode2)) {
40790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40791 }
40792 arg2 = static_cast< int >(val2);
40793 {
40794 arg3 = wxString_in_helper(obj2);
40795 if (arg3 == NULL) SWIG_fail;
40796 temp3 = true;
40797 }
40798 {
40799 PyThreadState* __tstate = wxPyBeginAllowThreads();
40800 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40801 wxPyEndAllowThreads(__tstate);
40802 if (PyErr_Occurred()) SWIG_fail;
40803 }
40804 resultobj = SWIG_Py_Void();
40805 {
40806 if (temp3)
40807 delete arg3;
40808 }
40809 return resultobj;
40810fail:
40811 {
40812 if (temp3)
40813 delete arg3;
40814 }
40815 return NULL;
40816}
40817
40818
40819SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40820 PyObject *resultobj = 0;
40821 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40822 wxWindow *arg2 = (wxWindow *) 0 ;
40823 void *argp1 = 0 ;
40824 int res1 = 0 ;
40825 void *argp2 = 0 ;
40826 int res2 = 0 ;
40827 PyObject * obj0 = 0 ;
40828 PyObject * obj1 = 0 ;
40829 char * kwnames[] = {
40830 (char *) "self",(char *) "window", NULL
40831 };
40832
40833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40835 if (!SWIG_IsOK(res1)) {
40836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40837 }
40838 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40839 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40840 if (!SWIG_IsOK(res2)) {
40841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40842 }
40843 arg2 = reinterpret_cast< wxWindow * >(argp2);
40844 {
40845 PyThreadState* __tstate = wxPyBeginAllowThreads();
40846 (arg1)->RemoveHelp(arg2);
40847 wxPyEndAllowThreads(__tstate);
40848 if (PyErr_Occurred()) SWIG_fail;
40849 }
40850 resultobj = SWIG_Py_Void();
40851 return resultobj;
40852fail:
40853 return NULL;
d55e5bfc
RD
40854}
40855
40856
554f62e9
RD
40857SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40858 PyObject *resultobj = 0;
40859 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40860 void *argp1 = 0 ;
40861 int res1 = 0 ;
40862 PyObject *swig_obj[1] ;
40863
40864 if (!args) SWIG_fail;
40865 swig_obj[0] = args;
40866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40867 if (!SWIG_IsOK(res1)) {
40868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40869 }
40870 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40871 {
40872 PyThreadState* __tstate = wxPyBeginAllowThreads();
40873 wxHelpProvider_Destroy(arg1);
40874 wxPyEndAllowThreads(__tstate);
40875 if (PyErr_Occurred()) SWIG_fail;
40876 }
40877 resultobj = SWIG_Py_Void();
40878 return resultobj;
40879fail:
40880 return NULL;
d55e5bfc
RD
40881}
40882
40883
554f62e9
RD
40884SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40885 PyObject *obj;
40886 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40887 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40888 return SWIG_Py_Void();
d55e5bfc
RD
40889}
40890
554f62e9
RD
40891SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40892 PyObject *resultobj = 0;
40893 wxSimpleHelpProvider *result = 0 ;
40894
40895 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40896 {
40897 PyThreadState* __tstate = wxPyBeginAllowThreads();
40898 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40899 wxPyEndAllowThreads(__tstate);
40900 if (PyErr_Occurred()) SWIG_fail;
40901 }
40902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40903 return resultobj;
40904fail:
40905 return NULL;
40906}
40907
40908
40909SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40910 PyObject *obj;
40911 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40912 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40913 return SWIG_Py_Void();
40914}
40915
40916SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40917 return SWIG_Python_InitShadowInstance(args);
40918}
40919
40920SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40921 PyObject *resultobj = 0;
40922 wxBitmap *arg1 = 0 ;
40923 wxCursor const &arg2_defvalue = wxNullCursor ;
40924 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40925 wxGenericDragImage *result = 0 ;
40926 void *argp1 = 0 ;
40927 int res1 = 0 ;
40928 void *argp2 = 0 ;
40929 int res2 = 0 ;
40930 PyObject * obj0 = 0 ;
40931 PyObject * obj1 = 0 ;
40932 char * kwnames[] = {
40933 (char *) "image",(char *) "cursor", NULL
40934 };
40935
40936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40937 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40938 if (!SWIG_IsOK(res1)) {
40939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40940 }
40941 if (!argp1) {
40942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40943 }
40944 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40945 if (obj1) {
40946 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40947 if (!SWIG_IsOK(res2)) {
40948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 40949 }
554f62e9
RD
40950 if (!argp2) {
40951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 40952 }
554f62e9
RD
40953 arg2 = reinterpret_cast< wxCursor * >(argp2);
40954 }
40955 {
40956 if (!wxPyCheckForApp()) SWIG_fail;
40957 PyThreadState* __tstate = wxPyBeginAllowThreads();
40958 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40959 wxPyEndAllowThreads(__tstate);
40960 if (PyErr_Occurred()) SWIG_fail;
40961 }
40962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40963 return resultobj;
40964fail:
40965 return NULL;
40966}
40967
40968
40969SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40970 PyObject *resultobj = 0;
40971 wxIcon *arg1 = 0 ;
40972 wxCursor const &arg2_defvalue = wxNullCursor ;
40973 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40974 wxGenericDragImage *result = 0 ;
40975 void *argp1 = 0 ;
40976 int res1 = 0 ;
40977 void *argp2 = 0 ;
40978 int res2 = 0 ;
40979 PyObject * obj0 = 0 ;
40980 PyObject * obj1 = 0 ;
40981 char * kwnames[] = {
40982 (char *) "image",(char *) "cursor", NULL
40983 };
40984
40985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40986 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40987 if (!SWIG_IsOK(res1)) {
40988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40989 }
40990 if (!argp1) {
40991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40992 }
40993 arg1 = reinterpret_cast< wxIcon * >(argp1);
40994 if (obj1) {
40995 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40996 if (!SWIG_IsOK(res2)) {
40997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40998 }
554f62e9
RD
40999 if (!argp2) {
41000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 41001 }
554f62e9
RD
41002 arg2 = reinterpret_cast< wxCursor * >(argp2);
41003 }
41004 {
41005 if (!wxPyCheckForApp()) SWIG_fail;
41006 PyThreadState* __tstate = wxPyBeginAllowThreads();
41007 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
41008 wxPyEndAllowThreads(__tstate);
41009 if (PyErr_Occurred()) SWIG_fail;
41010 }
41011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41012 return resultobj;
41013fail:
41014 return NULL;
41015}
41016
41017
41018SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41019 PyObject *resultobj = 0;
41020 wxString *arg1 = 0 ;
41021 wxCursor const &arg2_defvalue = wxNullCursor ;
41022 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
41023 wxGenericDragImage *result = 0 ;
41024 bool temp1 = false ;
41025 void *argp2 = 0 ;
41026 int res2 = 0 ;
41027 PyObject * obj0 = 0 ;
41028 PyObject * obj1 = 0 ;
41029 char * kwnames[] = {
41030 (char *) "str",(char *) "cursor", NULL
41031 };
41032
41033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
41034 {
41035 arg1 = wxString_in_helper(obj0);
41036 if (arg1 == NULL) SWIG_fail;
41037 temp1 = true;
41038 }
41039 if (obj1) {
41040 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
41041 if (!SWIG_IsOK(res2)) {
41042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 41043 }
554f62e9
RD
41044 if (!argp2) {
41045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 41046 }
554f62e9
RD
41047 arg2 = reinterpret_cast< wxCursor * >(argp2);
41048 }
41049 {
41050 if (!wxPyCheckForApp()) SWIG_fail;
41051 PyThreadState* __tstate = wxPyBeginAllowThreads();
41052 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
41053 wxPyEndAllowThreads(__tstate);
41054 if (PyErr_Occurred()) SWIG_fail;
41055 }
41056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41057 {
41058 if (temp1)
41059 delete arg1;
41060 }
41061 return resultobj;
41062fail:
41063 {
41064 if (temp1)
41065 delete arg1;
41066 }
41067 return NULL;
41068}
41069
41070
41071SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41072 PyObject *resultobj = 0;
41073 wxPyTreeCtrl *arg1 = 0 ;
41074 wxTreeItemId *arg2 = 0 ;
41075 wxGenericDragImage *result = 0 ;
41076 void *argp1 = 0 ;
41077 int res1 = 0 ;
41078 void *argp2 = 0 ;
41079 int res2 = 0 ;
41080 PyObject * obj0 = 0 ;
41081 PyObject * obj1 = 0 ;
41082 char * kwnames[] = {
41083 (char *) "treeCtrl",(char *) "id", NULL
41084 };
41085
41086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
41087 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
41088 if (!SWIG_IsOK(res1)) {
41089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
41090 }
41091 if (!argp1) {
41092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
41093 }
41094 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
41095 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
41096 if (!SWIG_IsOK(res2)) {
41097 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
41098 }
41099 if (!argp2) {
41100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
41101 }
41102 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
41103 {
41104 if (!wxPyCheckForApp()) SWIG_fail;
41105 PyThreadState* __tstate = wxPyBeginAllowThreads();
41106 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
41107 wxPyEndAllowThreads(__tstate);
41108 if (PyErr_Occurred()) SWIG_fail;
41109 }
41110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41111 return resultobj;
41112fail:
41113 return NULL;
41114}
41115
41116
41117SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41118 PyObject *resultobj = 0;
41119 wxPyListCtrl *arg1 = 0 ;
41120 long arg2 ;
41121 wxGenericDragImage *result = 0 ;
41122 void *argp1 = 0 ;
41123 int res1 = 0 ;
41124 long val2 ;
41125 int ecode2 = 0 ;
41126 PyObject * obj0 = 0 ;
41127 PyObject * obj1 = 0 ;
41128 char * kwnames[] = {
41129 (char *) "listCtrl",(char *) "id", NULL
41130 };
41131
41132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
41133 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
41134 if (!SWIG_IsOK(res1)) {
41135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
41136 }
41137 if (!argp1) {
41138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
41139 }
41140 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
41141 ecode2 = SWIG_AsVal_long(obj1, &val2);
41142 if (!SWIG_IsOK(ecode2)) {
41143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
41144 }
41145 arg2 = static_cast< long >(val2);
41146 {
41147 if (!wxPyCheckForApp()) SWIG_fail;
41148 PyThreadState* __tstate = wxPyBeginAllowThreads();
41149 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
41150 wxPyEndAllowThreads(__tstate);
41151 if (PyErr_Occurred()) SWIG_fail;
41152 }
41153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41154 return resultobj;
41155fail:
41156 return NULL;
d55e5bfc
RD
41157}
41158
41159
554f62e9
RD
41160SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41161 PyObject *resultobj = 0;
41162 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41163 void *argp1 = 0 ;
41164 int res1 = 0 ;
41165 PyObject *swig_obj[1] ;
41166
41167 if (!args) SWIG_fail;
41168 swig_obj[0] = args;
41169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
41170 if (!SWIG_IsOK(res1)) {
41171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41172 }
41173 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41174 {
41175 PyThreadState* __tstate = wxPyBeginAllowThreads();
41176 delete arg1;
d55e5bfc 41177
554f62e9
RD
41178 wxPyEndAllowThreads(__tstate);
41179 if (PyErr_Occurred()) SWIG_fail;
41180 }
41181 resultobj = SWIG_Py_Void();
41182 return resultobj;
41183fail:
41184 return NULL;
41185}
41186
41187
41188SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41189 PyObject *resultobj = 0;
41190 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41191 wxBitmap *arg2 = (wxBitmap *) 0 ;
41192 void *argp1 = 0 ;
41193 int res1 = 0 ;
41194 void *argp2 = 0 ;
41195 int res2 = 0 ;
41196 PyObject * obj0 = 0 ;
41197 PyObject * obj1 = 0 ;
41198 char * kwnames[] = {
41199 (char *) "self",(char *) "bitmap", NULL
41200 };
41201
41202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
41203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41204 if (!SWIG_IsOK(res1)) {
41205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41206 }
41207 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41208 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
41209 if (!SWIG_IsOK(res2)) {
41210 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
41211 }
41212 arg2 = reinterpret_cast< wxBitmap * >(argp2);
41213 {
41214 PyThreadState* __tstate = wxPyBeginAllowThreads();
41215 (arg1)->SetBackingBitmap(arg2);
41216 wxPyEndAllowThreads(__tstate);
41217 if (PyErr_Occurred()) SWIG_fail;
41218 }
41219 resultobj = SWIG_Py_Void();
41220 return resultobj;
41221fail:
41222 return NULL;
41223}
41224
41225
41226SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41227 PyObject *resultobj = 0;
41228 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41229 wxPoint *arg2 = 0 ;
41230 wxWindow *arg3 = (wxWindow *) 0 ;
41231 bool arg4 = (bool) false ;
41232 wxRect *arg5 = (wxRect *) NULL ;
41233 bool result;
41234 void *argp1 = 0 ;
41235 int res1 = 0 ;
41236 wxPoint temp2 ;
41237 void *argp3 = 0 ;
41238 int res3 = 0 ;
41239 bool val4 ;
41240 int ecode4 = 0 ;
41241 void *argp5 = 0 ;
41242 int res5 = 0 ;
41243 PyObject * obj0 = 0 ;
41244 PyObject * obj1 = 0 ;
41245 PyObject * obj2 = 0 ;
41246 PyObject * obj3 = 0 ;
41247 PyObject * obj4 = 0 ;
41248 char * kwnames[] = {
41249 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
41250 };
41251
41252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41254 if (!SWIG_IsOK(res1)) {
41255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41256 }
41257 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41258 {
41259 arg2 = &temp2;
41260 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41261 }
41262 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41263 if (!SWIG_IsOK(res3)) {
41264 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
41265 }
41266 arg3 = reinterpret_cast< wxWindow * >(argp3);
41267 if (obj3) {
41268 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41269 if (!SWIG_IsOK(ecode4)) {
41270 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
41271 }
41272 arg4 = static_cast< bool >(val4);
41273 }
41274 if (obj4) {
41275 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
41276 if (!SWIG_IsOK(res5)) {
41277 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d55e5bfc 41278 }
554f62e9
RD
41279 arg5 = reinterpret_cast< wxRect * >(argp5);
41280 }
41281 {
41282 PyThreadState* __tstate = wxPyBeginAllowThreads();
41283 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
41284 wxPyEndAllowThreads(__tstate);
41285 if (PyErr_Occurred()) SWIG_fail;
41286 }
41287 {
41288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41289 }
41290 return resultobj;
41291fail:
41292 return NULL;
41293}
41294
41295
41296SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41297 PyObject *resultobj = 0;
41298 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41299 wxPoint *arg2 = 0 ;
41300 wxWindow *arg3 = (wxWindow *) 0 ;
41301 wxWindow *arg4 = (wxWindow *) 0 ;
41302 bool result;
41303 void *argp1 = 0 ;
41304 int res1 = 0 ;
41305 wxPoint temp2 ;
41306 void *argp3 = 0 ;
41307 int res3 = 0 ;
41308 void *argp4 = 0 ;
41309 int res4 = 0 ;
41310 PyObject * obj0 = 0 ;
41311 PyObject * obj1 = 0 ;
41312 PyObject * obj2 = 0 ;
41313 PyObject * obj3 = 0 ;
41314 char * kwnames[] = {
41315 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
41316 };
41317
41318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41320 if (!SWIG_IsOK(res1)) {
41321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41322 }
41323 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41324 {
41325 arg2 = &temp2;
41326 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41327 }
41328 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41329 if (!SWIG_IsOK(res3)) {
41330 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
41331 }
41332 arg3 = reinterpret_cast< wxWindow * >(argp3);
41333 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
41334 if (!SWIG_IsOK(res4)) {
41335 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
41336 }
41337 arg4 = reinterpret_cast< wxWindow * >(argp4);
41338 {
41339 PyThreadState* __tstate = wxPyBeginAllowThreads();
41340 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
41341 wxPyEndAllowThreads(__tstate);
41342 if (PyErr_Occurred()) SWIG_fail;
41343 }
41344 {
41345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41346 }
41347 return resultobj;
41348fail:
41349 return NULL;
d55e5bfc
RD
41350}
41351
41352
554f62e9
RD
41353SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41354 PyObject *resultobj = 0;
41355 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41356 bool result;
41357 void *argp1 = 0 ;
41358 int res1 = 0 ;
41359 PyObject *swig_obj[1] ;
41360
41361 if (!args) SWIG_fail;
41362 swig_obj[0] = args;
41363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41364 if (!SWIG_IsOK(res1)) {
41365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41366 }
41367 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41368 {
41369 PyThreadState* __tstate = wxPyBeginAllowThreads();
41370 result = (bool)(arg1)->EndDrag();
41371 wxPyEndAllowThreads(__tstate);
41372 if (PyErr_Occurred()) SWIG_fail;
41373 }
41374 {
41375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41376 }
41377 return resultobj;
41378fail:
41379 return NULL;
41380}
41381
41382
41383SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41384 PyObject *resultobj = 0;
41385 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41386 wxPoint *arg2 = 0 ;
41387 bool result;
41388 void *argp1 = 0 ;
41389 int res1 = 0 ;
41390 wxPoint temp2 ;
41391 PyObject * obj0 = 0 ;
41392 PyObject * obj1 = 0 ;
41393 char * kwnames[] = {
41394 (char *) "self",(char *) "pt", NULL
41395 };
41396
41397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
41398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41399 if (!SWIG_IsOK(res1)) {
41400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41401 }
41402 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41403 {
41404 arg2 = &temp2;
41405 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41406 }
41407 {
41408 PyThreadState* __tstate = wxPyBeginAllowThreads();
41409 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
41410 wxPyEndAllowThreads(__tstate);
41411 if (PyErr_Occurred()) SWIG_fail;
41412 }
41413 {
41414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41415 }
41416 return resultobj;
41417fail:
41418 return NULL;
d55e5bfc
RD
41419}
41420
41421
554f62e9
RD
41422SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41423 PyObject *resultobj = 0;
41424 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41425 bool result;
41426 void *argp1 = 0 ;
41427 int res1 = 0 ;
41428 PyObject *swig_obj[1] ;
41429
41430 if (!args) SWIG_fail;
41431 swig_obj[0] = args;
41432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41433 if (!SWIG_IsOK(res1)) {
41434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41435 }
41436 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41437 {
41438 PyThreadState* __tstate = wxPyBeginAllowThreads();
41439 result = (bool)(arg1)->Show();
41440 wxPyEndAllowThreads(__tstate);
41441 if (PyErr_Occurred()) SWIG_fail;
41442 }
41443 {
41444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41445 }
41446 return resultobj;
41447fail:
41448 return NULL;
d55e5bfc
RD
41449}
41450
41451
554f62e9
RD
41452SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41453 PyObject *resultobj = 0;
41454 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41455 bool result;
41456 void *argp1 = 0 ;
41457 int res1 = 0 ;
41458 PyObject *swig_obj[1] ;
41459
41460 if (!args) SWIG_fail;
41461 swig_obj[0] = args;
41462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41463 if (!SWIG_IsOK(res1)) {
41464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41465 }
41466 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41467 {
41468 PyThreadState* __tstate = wxPyBeginAllowThreads();
41469 result = (bool)(arg1)->Hide();
41470 wxPyEndAllowThreads(__tstate);
41471 if (PyErr_Occurred()) SWIG_fail;
41472 }
41473 {
41474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41475 }
41476 return resultobj;
41477fail:
41478 return NULL;
41479}
41480
41481
41482SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41483 PyObject *resultobj = 0;
41484 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41485 wxPoint *arg2 = 0 ;
41486 wxRect result;
41487 void *argp1 = 0 ;
41488 int res1 = 0 ;
41489 wxPoint temp2 ;
41490 PyObject * obj0 = 0 ;
41491 PyObject * obj1 = 0 ;
41492 char * kwnames[] = {
41493 (char *) "self",(char *) "pos", NULL
41494 };
41495
41496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41498 if (!SWIG_IsOK(res1)) {
41499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41500 }
41501 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41502 {
41503 arg2 = &temp2;
41504 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41505 }
41506 {
41507 PyThreadState* __tstate = wxPyBeginAllowThreads();
41508 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41509 wxPyEndAllowThreads(__tstate);
41510 if (PyErr_Occurred()) SWIG_fail;
41511 }
41512 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41513 return resultobj;
41514fail:
41515 return NULL;
41516}
41517
41518
41519SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41520 PyObject *resultobj = 0;
41521 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41522 wxDC *arg2 = 0 ;
41523 wxPoint *arg3 = 0 ;
41524 bool result;
41525 void *argp1 = 0 ;
41526 int res1 = 0 ;
41527 void *argp2 = 0 ;
41528 int res2 = 0 ;
41529 wxPoint temp3 ;
41530 PyObject * obj0 = 0 ;
41531 PyObject * obj1 = 0 ;
41532 PyObject * obj2 = 0 ;
41533 char * kwnames[] = {
41534 (char *) "self",(char *) "dc",(char *) "pos", NULL
41535 };
41536
41537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41539 if (!SWIG_IsOK(res1)) {
41540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41541 }
41542 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41543 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41544 if (!SWIG_IsOK(res2)) {
41545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41546 }
41547 if (!argp2) {
41548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41549 }
41550 arg2 = reinterpret_cast< wxDC * >(argp2);
41551 {
41552 arg3 = &temp3;
41553 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41554 }
41555 {
41556 PyThreadState* __tstate = wxPyBeginAllowThreads();
41557 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41558 wxPyEndAllowThreads(__tstate);
41559 if (PyErr_Occurred()) SWIG_fail;
41560 }
41561 {
41562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41563 }
41564 return resultobj;
41565fail:
41566 return NULL;
41567}
41568
41569
41570SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41571 PyObject *resultobj = 0;
41572 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41573 wxDC *arg2 = 0 ;
41574 wxMemoryDC *arg3 = 0 ;
41575 wxRect *arg4 = 0 ;
41576 wxRect *arg5 = 0 ;
41577 bool result;
41578 void *argp1 = 0 ;
41579 int res1 = 0 ;
41580 void *argp2 = 0 ;
41581 int res2 = 0 ;
41582 void *argp3 = 0 ;
41583 int res3 = 0 ;
41584 wxRect temp4 ;
41585 wxRect temp5 ;
41586 PyObject * obj0 = 0 ;
41587 PyObject * obj1 = 0 ;
41588 PyObject * obj2 = 0 ;
41589 PyObject * obj3 = 0 ;
41590 PyObject * obj4 = 0 ;
41591 char * kwnames[] = {
41592 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41593 };
41594
41595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41597 if (!SWIG_IsOK(res1)) {
41598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41599 }
41600 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41601 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41602 if (!SWIG_IsOK(res2)) {
41603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41604 }
41605 if (!argp2) {
41606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41607 }
41608 arg2 = reinterpret_cast< wxDC * >(argp2);
41609 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41610 if (!SWIG_IsOK(res3)) {
41611 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41612 }
41613 if (!argp3) {
41614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41615 }
41616 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41617 {
41618 arg4 = &temp4;
41619 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41620 }
41621 {
41622 arg5 = &temp5;
41623 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41624 }
41625 {
41626 PyThreadState* __tstate = wxPyBeginAllowThreads();
41627 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41628 wxPyEndAllowThreads(__tstate);
41629 if (PyErr_Occurred()) SWIG_fail;
41630 }
41631 {
41632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41633 }
41634 return resultobj;
41635fail:
41636 return NULL;
41637}
41638
41639
41640SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41641 PyObject *resultobj = 0;
41642 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41643 wxPoint *arg2 = 0 ;
41644 wxPoint *arg3 = 0 ;
41645 bool arg4 ;
41646 bool arg5 ;
41647 bool result;
41648 void *argp1 = 0 ;
41649 int res1 = 0 ;
41650 wxPoint temp2 ;
41651 wxPoint temp3 ;
41652 bool val4 ;
41653 int ecode4 = 0 ;
41654 bool val5 ;
41655 int ecode5 = 0 ;
41656 PyObject * obj0 = 0 ;
41657 PyObject * obj1 = 0 ;
41658 PyObject * obj2 = 0 ;
41659 PyObject * obj3 = 0 ;
41660 PyObject * obj4 = 0 ;
41661 char * kwnames[] = {
41662 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41663 };
41664
41665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41667 if (!SWIG_IsOK(res1)) {
41668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41669 }
41670 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41671 {
41672 arg2 = &temp2;
41673 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41674 }
41675 {
41676 arg3 = &temp3;
41677 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41678 }
41679 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41680 if (!SWIG_IsOK(ecode4)) {
41681 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41682 }
41683 arg4 = static_cast< bool >(val4);
41684 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41685 if (!SWIG_IsOK(ecode5)) {
41686 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41687 }
41688 arg5 = static_cast< bool >(val5);
41689 {
41690 PyThreadState* __tstate = wxPyBeginAllowThreads();
41691 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41692 wxPyEndAllowThreads(__tstate);
41693 if (PyErr_Occurred()) SWIG_fail;
41694 }
41695 {
41696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41697 }
41698 return resultobj;
41699fail:
41700 return NULL;
d55e5bfc
RD
41701}
41702
41703
554f62e9
RD
41704SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41705 PyObject *obj;
41706 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41707 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41708 return SWIG_Py_Void();
d55e5bfc
RD
41709}
41710
554f62e9
RD
41711SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41712 return SWIG_Python_InitShadowInstance(args);
41713}
d55e5bfc 41714
554f62e9
RD
41715SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41716 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41717 return 1;
d55e5bfc
RD
41718}
41719
41720
554f62e9
RD
41721SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41722 PyObject *pyobj = 0;
41723
41724 {
41725#if wxUSE_UNICODE
41726 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41727#else
41728 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41729#endif
41730 }
41731 return pyobj;
41732}
41733
41734
41735SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41736 PyObject *resultobj = 0;
41737 wxWindow *arg1 = (wxWindow *) 0 ;
41738 int arg2 = (int) -1 ;
41739 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41740 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41741 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41742 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41743 wxSize const &arg5_defvalue = wxDefaultSize ;
41744 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41745 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41746 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41747 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41748 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41749 wxString *arg8 = (wxString *) &arg8_defvalue ;
41750 wxDatePickerCtrl *result = 0 ;
41751 void *argp1 = 0 ;
41752 int res1 = 0 ;
41753 int val2 ;
41754 int ecode2 = 0 ;
41755 void *argp3 = 0 ;
41756 int res3 = 0 ;
41757 wxPoint temp4 ;
41758 wxSize temp5 ;
41759 long val6 ;
41760 int ecode6 = 0 ;
41761 void *argp7 = 0 ;
41762 int res7 = 0 ;
41763 bool temp8 = false ;
41764 PyObject * obj0 = 0 ;
41765 PyObject * obj1 = 0 ;
41766 PyObject * obj2 = 0 ;
41767 PyObject * obj3 = 0 ;
41768 PyObject * obj4 = 0 ;
41769 PyObject * obj5 = 0 ;
41770 PyObject * obj6 = 0 ;
41771 PyObject * obj7 = 0 ;
41772 char * kwnames[] = {
41773 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41774 };
41775
41776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41778 if (!SWIG_IsOK(res1)) {
41779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41780 }
41781 arg1 = reinterpret_cast< wxWindow * >(argp1);
41782 if (obj1) {
41783 ecode2 = SWIG_AsVal_int(obj1, &val2);
41784 if (!SWIG_IsOK(ecode2)) {
41785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41786 }
41787 arg2 = static_cast< int >(val2);
41788 }
41789 if (obj2) {
41790 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41791 if (!SWIG_IsOK(res3)) {
41792 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41793 }
554f62e9
RD
41794 if (!argp3) {
41795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41796 }
554f62e9
RD
41797 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41798 }
41799 if (obj3) {
d55e5bfc 41800 {
554f62e9
RD
41801 arg4 = &temp4;
41802 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 41803 }
554f62e9
RD
41804 }
41805 if (obj4) {
093d3ff1 41806 {
554f62e9
RD
41807 arg5 = &temp5;
41808 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 41809 }
554f62e9
RD
41810 }
41811 if (obj5) {
41812 ecode6 = SWIG_AsVal_long(obj5, &val6);
41813 if (!SWIG_IsOK(ecode6)) {
41814 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41815 }
41816 arg6 = static_cast< long >(val6);
41817 }
41818 if (obj6) {
41819 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41820 if (!SWIG_IsOK(res7)) {
41821 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 41822 }
554f62e9
RD
41823 if (!argp7) {
41824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 41825 }
554f62e9
RD
41826 arg7 = reinterpret_cast< wxValidator * >(argp7);
41827 }
41828 if (obj7) {
d55e5bfc 41829 {
554f62e9
RD
41830 arg8 = wxString_in_helper(obj7);
41831 if (arg8 == NULL) SWIG_fail;
41832 temp8 = true;
d55e5bfc 41833 }
554f62e9
RD
41834 }
41835 {
41836 if (!wxPyCheckForApp()) SWIG_fail;
41837 PyThreadState* __tstate = wxPyBeginAllowThreads();
41838 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41839 wxPyEndAllowThreads(__tstate);
41840 if (PyErr_Occurred()) SWIG_fail;
41841 }
41842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41843 {
41844 if (temp8)
41845 delete arg8;
41846 }
41847 return resultobj;
41848fail:
41849 {
41850 if (temp8)
41851 delete arg8;
41852 }
41853 return NULL;
d55e5bfc
RD
41854}
41855
41856
554f62e9
RD
41857SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41858 PyObject *resultobj = 0;
41859 wxDatePickerCtrl *result = 0 ;
41860
41861 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41862 {
41863 if (!wxPyCheckForApp()) SWIG_fail;
41864 PyThreadState* __tstate = wxPyBeginAllowThreads();
41865 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41866 wxPyEndAllowThreads(__tstate);
41867 if (PyErr_Occurred()) SWIG_fail;
41868 }
41869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41870 return resultobj;
41871fail:
41872 return NULL;
41873}
41874
41875
41876SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41877 PyObject *resultobj = 0;
41878 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41879 wxWindow *arg2 = (wxWindow *) 0 ;
41880 int arg3 = (int) -1 ;
41881 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41882 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41883 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41884 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41885 wxSize const &arg6_defvalue = wxDefaultSize ;
41886 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41887 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41888 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41889 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41890 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41891 wxString *arg9 = (wxString *) &arg9_defvalue ;
41892 bool result;
41893 void *argp1 = 0 ;
41894 int res1 = 0 ;
41895 void *argp2 = 0 ;
41896 int res2 = 0 ;
41897 int val3 ;
41898 int ecode3 = 0 ;
41899 void *argp4 = 0 ;
41900 int res4 = 0 ;
41901 wxPoint temp5 ;
41902 wxSize temp6 ;
41903 long val7 ;
41904 int ecode7 = 0 ;
41905 void *argp8 = 0 ;
41906 int res8 = 0 ;
41907 bool temp9 = false ;
41908 PyObject * obj0 = 0 ;
41909 PyObject * obj1 = 0 ;
41910 PyObject * obj2 = 0 ;
41911 PyObject * obj3 = 0 ;
41912 PyObject * obj4 = 0 ;
41913 PyObject * obj5 = 0 ;
41914 PyObject * obj6 = 0 ;
41915 PyObject * obj7 = 0 ;
41916 PyObject * obj8 = 0 ;
41917 char * kwnames[] = {
41918 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41919 };
41920
41921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41923 if (!SWIG_IsOK(res1)) {
41924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41925 }
41926 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41927 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41928 if (!SWIG_IsOK(res2)) {
41929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41930 }
41931 arg2 = reinterpret_cast< wxWindow * >(argp2);
41932 if (obj2) {
41933 ecode3 = SWIG_AsVal_int(obj2, &val3);
41934 if (!SWIG_IsOK(ecode3)) {
41935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41936 }
41937 arg3 = static_cast< int >(val3);
41938 }
41939 if (obj3) {
41940 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41941 if (!SWIG_IsOK(res4)) {
41942 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
093d3ff1 41943 }
554f62e9
RD
41944 if (!argp4) {
41945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
d55e5bfc 41946 }
554f62e9
RD
41947 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41948 }
41949 if (obj4) {
093d3ff1 41950 {
554f62e9
RD
41951 arg5 = &temp5;
41952 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 41953 }
554f62e9
RD
41954 }
41955 if (obj5) {
d55e5bfc 41956 {
554f62e9
RD
41957 arg6 = &temp6;
41958 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 41959 }
554f62e9
RD
41960 }
41961 if (obj6) {
41962 ecode7 = SWIG_AsVal_long(obj6, &val7);
41963 if (!SWIG_IsOK(ecode7)) {
41964 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41965 }
41966 arg7 = static_cast< long >(val7);
41967 }
41968 if (obj7) {
41969 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41970 if (!SWIG_IsOK(res8)) {
41971 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41972 }
41973 if (!argp8) {
41974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 41975 }
554f62e9
RD
41976 arg8 = reinterpret_cast< wxValidator * >(argp8);
41977 }
41978 if (obj8) {
d55e5bfc 41979 {
554f62e9
RD
41980 arg9 = wxString_in_helper(obj8);
41981 if (arg9 == NULL) SWIG_fail;
41982 temp9 = true;
d55e5bfc 41983 }
554f62e9
RD
41984 }
41985 {
41986 PyThreadState* __tstate = wxPyBeginAllowThreads();
41987 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41988 wxPyEndAllowThreads(__tstate);
41989 if (PyErr_Occurred()) SWIG_fail;
41990 }
41991 {
41992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41993 }
41994 {
41995 if (temp9)
41996 delete arg9;
41997 }
41998 return resultobj;
41999fail:
42000 {
42001 if (temp9)
42002 delete arg9;
42003 }
42004 return NULL;
42005}
42006
42007
42008SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42009 PyObject *resultobj = 0;
42010 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42011 wxDateTime *arg2 = 0 ;
42012 void *argp1 = 0 ;
42013 int res1 = 0 ;
42014 void *argp2 = 0 ;
42015 int res2 = 0 ;
42016 PyObject * obj0 = 0 ;
42017 PyObject * obj1 = 0 ;
42018 char * kwnames[] = {
42019 (char *) "self",(char *) "dt", NULL
42020 };
42021
42022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
42023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42024 if (!SWIG_IsOK(res1)) {
42025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42026 }
42027 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42028 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
42029 if (!SWIG_IsOK(res2)) {
42030 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42031 }
42032 if (!argp2) {
42033 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42034 }
42035 arg2 = reinterpret_cast< wxDateTime * >(argp2);
42036 {
42037 PyThreadState* __tstate = wxPyBeginAllowThreads();
42038 (arg1)->SetValue((wxDateTime const &)*arg2);
42039 wxPyEndAllowThreads(__tstate);
42040 if (PyErr_Occurred()) SWIG_fail;
42041 }
42042 resultobj = SWIG_Py_Void();
42043 return resultobj;
42044fail:
42045 return NULL;
d55e5bfc
RD
42046}
42047
42048
554f62e9
RD
42049SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42050 PyObject *resultobj = 0;
42051 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42052 wxDateTime result;
42053 void *argp1 = 0 ;
42054 int res1 = 0 ;
42055 PyObject *swig_obj[1] ;
42056
42057 if (!args) SWIG_fail;
42058 swig_obj[0] = args;
42059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42060 if (!SWIG_IsOK(res1)) {
42061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
42062 }
42063 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42064 {
42065 PyThreadState* __tstate = wxPyBeginAllowThreads();
42066 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
42067 wxPyEndAllowThreads(__tstate);
42068 if (PyErr_Occurred()) SWIG_fail;
42069 }
42070 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42071 return resultobj;
42072fail:
42073 return NULL;
42074}
42075
42076
42077SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42078 PyObject *resultobj = 0;
42079 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42080 wxDateTime *arg2 = 0 ;
42081 wxDateTime *arg3 = 0 ;
42082 void *argp1 = 0 ;
42083 int res1 = 0 ;
42084 void *argp2 = 0 ;
42085 int res2 = 0 ;
42086 void *argp3 = 0 ;
42087 int res3 = 0 ;
42088 PyObject * obj0 = 0 ;
42089 PyObject * obj1 = 0 ;
42090 PyObject * obj2 = 0 ;
42091 char * kwnames[] = {
42092 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
42093 };
42094
42095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42097 if (!SWIG_IsOK(res1)) {
42098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42099 }
42100 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42101 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
42102 if (!SWIG_IsOK(res2)) {
42103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42104 }
42105 if (!argp2) {
42106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42107 }
42108 arg2 = reinterpret_cast< wxDateTime * >(argp2);
42109 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
42110 if (!SWIG_IsOK(res3)) {
42111 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
42112 }
42113 if (!argp3) {
42114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
42115 }
42116 arg3 = reinterpret_cast< wxDateTime * >(argp3);
42117 {
42118 PyThreadState* __tstate = wxPyBeginAllowThreads();
42119 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
42120 wxPyEndAllowThreads(__tstate);
42121 if (PyErr_Occurred()) SWIG_fail;
42122 }
42123 resultobj = SWIG_Py_Void();
42124 return resultobj;
42125fail:
42126 return NULL;
d55e5bfc
RD
42127}
42128
42129
554f62e9
RD
42130SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42131 PyObject *resultobj = 0;
42132 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42133 wxDateTime result;
42134 void *argp1 = 0 ;
42135 int res1 = 0 ;
42136 PyObject *swig_obj[1] ;
42137
42138 if (!args) SWIG_fail;
42139 swig_obj[0] = args;
42140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42141 if (!SWIG_IsOK(res1)) {
42142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42143 }
42144 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42145 {
42146 PyThreadState* __tstate = wxPyBeginAllowThreads();
42147 result = wxDatePickerCtrl_GetLowerLimit(arg1);
42148 wxPyEndAllowThreads(__tstate);
42149 if (PyErr_Occurred()) SWIG_fail;
42150 }
42151 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42152 return resultobj;
42153fail:
42154 return NULL;
d55e5bfc
RD
42155}
42156
42157
554f62e9
RD
42158SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42159 PyObject *resultobj = 0;
42160 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42161 wxDateTime result;
42162 void *argp1 = 0 ;
42163 int res1 = 0 ;
42164 PyObject *swig_obj[1] ;
42165
42166 if (!args) SWIG_fail;
42167 swig_obj[0] = args;
42168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42169 if (!SWIG_IsOK(res1)) {
42170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42171 }
42172 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42173 {
42174 PyThreadState* __tstate = wxPyBeginAllowThreads();
42175 result = wxDatePickerCtrl_GetUpperLimit(arg1);
42176 wxPyEndAllowThreads(__tstate);
42177 if (PyErr_Occurred()) SWIG_fail;
42178 }
42179 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42180 return resultobj;
42181fail:
42182 return NULL;
d55e5bfc
RD
42183}
42184
42185
554f62e9
RD
42186SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42187 PyObject *obj;
42188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42189 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
42190 return SWIG_Py_Void();
d55e5bfc
RD
42191}
42192
554f62e9
RD
42193SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42194 return SWIG_Python_InitShadowInstance(args);
42195}
d55e5bfc 42196
704eda0c
RD
42197SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
42198 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
42199 return 1;
42200}
42201
42202
42203SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
42204 PyObject *pyobj = 0;
42205
42206 {
42207#if wxUSE_UNICODE
42208 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
42209#else
42210 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
42211#endif
42212 }
42213 return pyobj;
42214}
42215
42216
42217SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42218 PyObject *resultobj = 0;
42219 wxWindow *arg1 = (wxWindow *) 0 ;
42220 int arg2 ;
42221 wxString *arg3 = 0 ;
42222 wxString *arg4 = 0 ;
42223 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42224 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42225 wxSize const &arg6_defvalue = wxDefaultSize ;
42226 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42227 long arg7 = (long) wxHL_DEFAULT_STYLE ;
42228 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
42229 wxString *arg8 = (wxString *) &arg8_defvalue ;
42230 wxHyperlinkCtrl *result = 0 ;
42231 void *argp1 = 0 ;
42232 int res1 = 0 ;
42233 int val2 ;
42234 int ecode2 = 0 ;
42235 bool temp3 = false ;
42236 bool temp4 = false ;
42237 wxPoint temp5 ;
42238 wxSize temp6 ;
42239 long val7 ;
42240 int ecode7 = 0 ;
42241 bool temp8 = false ;
42242 PyObject * obj0 = 0 ;
42243 PyObject * obj1 = 0 ;
42244 PyObject * obj2 = 0 ;
42245 PyObject * obj3 = 0 ;
42246 PyObject * obj4 = 0 ;
42247 PyObject * obj5 = 0 ;
42248 PyObject * obj6 = 0 ;
42249 PyObject * obj7 = 0 ;
42250 char * kwnames[] = {
42251 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42252 };
42253
42254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42256 if (!SWIG_IsOK(res1)) {
42257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42258 }
42259 arg1 = reinterpret_cast< wxWindow * >(argp1);
42260 ecode2 = SWIG_AsVal_int(obj1, &val2);
42261 if (!SWIG_IsOK(ecode2)) {
42262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
42263 }
42264 arg2 = static_cast< int >(val2);
42265 {
42266 arg3 = wxString_in_helper(obj2);
42267 if (arg3 == NULL) SWIG_fail;
42268 temp3 = true;
42269 }
42270 {
42271 arg4 = wxString_in_helper(obj3);
42272 if (arg4 == NULL) SWIG_fail;
42273 temp4 = true;
42274 }
42275 if (obj4) {
42276 {
42277 arg5 = &temp5;
42278 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42279 }
42280 }
42281 if (obj5) {
42282 {
42283 arg6 = &temp6;
42284 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42285 }
42286 }
42287 if (obj6) {
42288 ecode7 = SWIG_AsVal_long(obj6, &val7);
42289 if (!SWIG_IsOK(ecode7)) {
42290 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
42291 }
42292 arg7 = static_cast< long >(val7);
42293 }
42294 if (obj7) {
42295 {
42296 arg8 = wxString_in_helper(obj7);
42297 if (arg8 == NULL) SWIG_fail;
42298 temp8 = true;
42299 }
42300 }
42301 {
42302 if (!wxPyCheckForApp()) SWIG_fail;
42303 PyThreadState* __tstate = wxPyBeginAllowThreads();
42304 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
42305 wxPyEndAllowThreads(__tstate);
42306 if (PyErr_Occurred()) SWIG_fail;
42307 }
42308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
42309 {
42310 if (temp3)
42311 delete arg3;
42312 }
42313 {
42314 if (temp4)
42315 delete arg4;
42316 }
42317 {
42318 if (temp8)
42319 delete arg8;
42320 }
42321 return resultobj;
42322fail:
42323 {
42324 if (temp3)
42325 delete arg3;
42326 }
42327 {
42328 if (temp4)
42329 delete arg4;
42330 }
42331 {
42332 if (temp8)
42333 delete arg8;
42334 }
42335 return NULL;
42336}
42337
42338
42339SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42340 PyObject *resultobj = 0;
42341 wxHyperlinkCtrl *result = 0 ;
42342
42343 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
42344 {
42345 if (!wxPyCheckForApp()) SWIG_fail;
42346 PyThreadState* __tstate = wxPyBeginAllowThreads();
42347 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
42348 wxPyEndAllowThreads(__tstate);
42349 if (PyErr_Occurred()) SWIG_fail;
42350 }
42351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
42352 return resultobj;
42353fail:
42354 return NULL;
42355}
42356
42357
42358SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42359 PyObject *resultobj = 0;
42360 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42361 wxWindow *arg2 = (wxWindow *) 0 ;
42362 int arg3 ;
42363 wxString *arg4 = 0 ;
42364 wxString *arg5 = 0 ;
42365 wxPoint const &arg6_defvalue = wxDefaultPosition ;
42366 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
42367 wxSize const &arg7_defvalue = wxDefaultSize ;
42368 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
42369 long arg8 = (long) wxHL_DEFAULT_STYLE ;
42370 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
42371 wxString *arg9 = (wxString *) &arg9_defvalue ;
42372 bool result;
42373 void *argp1 = 0 ;
42374 int res1 = 0 ;
42375 void *argp2 = 0 ;
42376 int res2 = 0 ;
42377 int val3 ;
42378 int ecode3 = 0 ;
42379 bool temp4 = false ;
42380 bool temp5 = false ;
42381 wxPoint temp6 ;
42382 wxSize temp7 ;
42383 long val8 ;
42384 int ecode8 = 0 ;
42385 bool temp9 = false ;
42386 PyObject * obj0 = 0 ;
42387 PyObject * obj1 = 0 ;
42388 PyObject * obj2 = 0 ;
42389 PyObject * obj3 = 0 ;
42390 PyObject * obj4 = 0 ;
42391 PyObject * obj5 = 0 ;
42392 PyObject * obj6 = 0 ;
42393 PyObject * obj7 = 0 ;
42394 PyObject * obj8 = 0 ;
42395 char * kwnames[] = {
42396 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42397 };
42398
42399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42401 if (!SWIG_IsOK(res1)) {
42402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42403 }
42404 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42405 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42406 if (!SWIG_IsOK(res2)) {
42407 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42408 }
42409 arg2 = reinterpret_cast< wxWindow * >(argp2);
42410 ecode3 = SWIG_AsVal_int(obj2, &val3);
42411 if (!SWIG_IsOK(ecode3)) {
42412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42413 }
42414 arg3 = static_cast< int >(val3);
42415 {
42416 arg4 = wxString_in_helper(obj3);
42417 if (arg4 == NULL) SWIG_fail;
42418 temp4 = true;
42419 }
42420 {
42421 arg5 = wxString_in_helper(obj4);
42422 if (arg5 == NULL) SWIG_fail;
42423 temp5 = true;
42424 }
42425 if (obj5) {
42426 {
42427 arg6 = &temp6;
42428 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
42429 }
42430 }
42431 if (obj6) {
42432 {
42433 arg7 = &temp7;
42434 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
42435 }
42436 }
42437 if (obj7) {
42438 ecode8 = SWIG_AsVal_long(obj7, &val8);
42439 if (!SWIG_IsOK(ecode8)) {
42440 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
42441 }
42442 arg8 = static_cast< long >(val8);
42443 }
42444 if (obj8) {
42445 {
42446 arg9 = wxString_in_helper(obj8);
42447 if (arg9 == NULL) SWIG_fail;
42448 temp9 = true;
42449 }
42450 }
42451 {
42452 PyThreadState* __tstate = wxPyBeginAllowThreads();
42453 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
42454 wxPyEndAllowThreads(__tstate);
42455 if (PyErr_Occurred()) SWIG_fail;
42456 }
42457 {
42458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42459 }
42460 {
42461 if (temp4)
42462 delete arg4;
42463 }
42464 {
42465 if (temp5)
42466 delete arg5;
42467 }
42468 {
42469 if (temp9)
42470 delete arg9;
42471 }
42472 return resultobj;
42473fail:
42474 {
42475 if (temp4)
42476 delete arg4;
42477 }
42478 {
42479 if (temp5)
42480 delete arg5;
42481 }
42482 {
42483 if (temp9)
42484 delete arg9;
42485 }
42486 return NULL;
42487}
42488
42489
42490SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42491 PyObject *resultobj = 0;
42492 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42493 wxColour result;
42494 void *argp1 = 0 ;
42495 int res1 = 0 ;
42496 PyObject *swig_obj[1] ;
42497
42498 if (!args) SWIG_fail;
42499 swig_obj[0] = args;
42500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42501 if (!SWIG_IsOK(res1)) {
42502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42503 }
42504 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42505 {
42506 PyThreadState* __tstate = wxPyBeginAllowThreads();
42507 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42508 wxPyEndAllowThreads(__tstate);
42509 if (PyErr_Occurred()) SWIG_fail;
42510 }
42511 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42512 return resultobj;
42513fail:
42514 return NULL;
42515}
42516
42517
42518SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42519 PyObject *resultobj = 0;
42520 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42521 wxColour *arg2 = 0 ;
42522 void *argp1 = 0 ;
42523 int res1 = 0 ;
42524 wxColour temp2 ;
42525 PyObject * obj0 = 0 ;
42526 PyObject * obj1 = 0 ;
42527 char * kwnames[] = {
42528 (char *) "self",(char *) "colour", NULL
42529 };
42530
42531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42533 if (!SWIG_IsOK(res1)) {
42534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42535 }
42536 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42537 {
42538 arg2 = &temp2;
42539 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42540 }
42541 {
42542 PyThreadState* __tstate = wxPyBeginAllowThreads();
42543 (arg1)->SetHoverColour((wxColour const &)*arg2);
42544 wxPyEndAllowThreads(__tstate);
42545 if (PyErr_Occurred()) SWIG_fail;
42546 }
42547 resultobj = SWIG_Py_Void();
42548 return resultobj;
42549fail:
42550 return NULL;
42551}
42552
42553
42554SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42555 PyObject *resultobj = 0;
42556 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42557 wxColour result;
42558 void *argp1 = 0 ;
42559 int res1 = 0 ;
42560 PyObject *swig_obj[1] ;
42561
42562 if (!args) SWIG_fail;
42563 swig_obj[0] = args;
42564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42565 if (!SWIG_IsOK(res1)) {
42566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42567 }
42568 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42569 {
42570 PyThreadState* __tstate = wxPyBeginAllowThreads();
42571 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42572 wxPyEndAllowThreads(__tstate);
42573 if (PyErr_Occurred()) SWIG_fail;
42574 }
42575 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42576 return resultobj;
42577fail:
42578 return NULL;
42579}
42580
42581
42582SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42583 PyObject *resultobj = 0;
42584 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42585 wxColour *arg2 = 0 ;
42586 void *argp1 = 0 ;
42587 int res1 = 0 ;
42588 wxColour temp2 ;
42589 PyObject * obj0 = 0 ;
42590 PyObject * obj1 = 0 ;
42591 char * kwnames[] = {
42592 (char *) "self",(char *) "colour", NULL
42593 };
42594
42595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42597 if (!SWIG_IsOK(res1)) {
42598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42599 }
42600 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42601 {
42602 arg2 = &temp2;
42603 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42604 }
42605 {
42606 PyThreadState* __tstate = wxPyBeginAllowThreads();
42607 (arg1)->SetNormalColour((wxColour const &)*arg2);
42608 wxPyEndAllowThreads(__tstate);
42609 if (PyErr_Occurred()) SWIG_fail;
42610 }
42611 resultobj = SWIG_Py_Void();
42612 return resultobj;
42613fail:
42614 return NULL;
42615}
42616
42617
42618SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42619 PyObject *resultobj = 0;
42620 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42621 wxColour result;
42622 void *argp1 = 0 ;
42623 int res1 = 0 ;
42624 PyObject *swig_obj[1] ;
42625
42626 if (!args) SWIG_fail;
42627 swig_obj[0] = args;
42628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42629 if (!SWIG_IsOK(res1)) {
42630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42631 }
42632 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42633 {
42634 PyThreadState* __tstate = wxPyBeginAllowThreads();
42635 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42636 wxPyEndAllowThreads(__tstate);
42637 if (PyErr_Occurred()) SWIG_fail;
42638 }
42639 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42640 return resultobj;
42641fail:
42642 return NULL;
42643}
42644
42645
42646SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42647 PyObject *resultobj = 0;
42648 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42649 wxColour *arg2 = 0 ;
42650 void *argp1 = 0 ;
42651 int res1 = 0 ;
42652 wxColour temp2 ;
42653 PyObject * obj0 = 0 ;
42654 PyObject * obj1 = 0 ;
42655 char * kwnames[] = {
42656 (char *) "self",(char *) "colour", NULL
42657 };
42658
42659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42661 if (!SWIG_IsOK(res1)) {
42662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42663 }
42664 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42665 {
42666 arg2 = &temp2;
42667 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42668 }
42669 {
42670 PyThreadState* __tstate = wxPyBeginAllowThreads();
42671 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42672 wxPyEndAllowThreads(__tstate);
42673 if (PyErr_Occurred()) SWIG_fail;
42674 }
42675 resultobj = SWIG_Py_Void();
42676 return resultobj;
42677fail:
42678 return NULL;
42679}
42680
42681
42682SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42683 PyObject *resultobj = 0;
42684 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42685 wxString result;
42686 void *argp1 = 0 ;
42687 int res1 = 0 ;
42688 PyObject *swig_obj[1] ;
42689
42690 if (!args) SWIG_fail;
42691 swig_obj[0] = args;
42692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42693 if (!SWIG_IsOK(res1)) {
42694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42695 }
42696 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42697 {
42698 PyThreadState* __tstate = wxPyBeginAllowThreads();
42699 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42700 wxPyEndAllowThreads(__tstate);
42701 if (PyErr_Occurred()) SWIG_fail;
42702 }
42703 {
42704#if wxUSE_UNICODE
42705 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42706#else
42707 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42708#endif
42709 }
42710 return resultobj;
42711fail:
42712 return NULL;
42713}
42714
42715
42716SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42717 PyObject *resultobj = 0;
42718 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42719 wxString *arg2 = 0 ;
42720 void *argp1 = 0 ;
42721 int res1 = 0 ;
42722 bool temp2 = false ;
42723 PyObject * obj0 = 0 ;
42724 PyObject * obj1 = 0 ;
42725 char * kwnames[] = {
42726 (char *) "self",(char *) "url", NULL
42727 };
42728
42729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42731 if (!SWIG_IsOK(res1)) {
42732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42733 }
42734 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42735 {
42736 arg2 = wxString_in_helper(obj1);
42737 if (arg2 == NULL) SWIG_fail;
42738 temp2 = true;
42739 }
42740 {
42741 PyThreadState* __tstate = wxPyBeginAllowThreads();
42742 (arg1)->SetURL((wxString const &)*arg2);
42743 wxPyEndAllowThreads(__tstate);
42744 if (PyErr_Occurred()) SWIG_fail;
42745 }
42746 resultobj = SWIG_Py_Void();
42747 {
42748 if (temp2)
42749 delete arg2;
42750 }
42751 return resultobj;
42752fail:
42753 {
42754 if (temp2)
42755 delete arg2;
42756 }
42757 return NULL;
42758}
42759
42760
42761SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42762 PyObject *resultobj = 0;
42763 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42764 bool arg2 = (bool) true ;
42765 void *argp1 = 0 ;
42766 int res1 = 0 ;
42767 bool val2 ;
42768 int ecode2 = 0 ;
42769 PyObject * obj0 = 0 ;
42770 PyObject * obj1 = 0 ;
42771 char * kwnames[] = {
42772 (char *) "self",(char *) "visited", NULL
42773 };
42774
42775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42777 if (!SWIG_IsOK(res1)) {
42778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42779 }
42780 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42781 if (obj1) {
42782 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42783 if (!SWIG_IsOK(ecode2)) {
42784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42785 }
42786 arg2 = static_cast< bool >(val2);
42787 }
42788 {
42789 PyThreadState* __tstate = wxPyBeginAllowThreads();
42790 (arg1)->SetVisited(arg2);
42791 wxPyEndAllowThreads(__tstate);
42792 if (PyErr_Occurred()) SWIG_fail;
42793 }
42794 resultobj = SWIG_Py_Void();
42795 return resultobj;
42796fail:
42797 return NULL;
42798}
42799
42800
42801SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42802 PyObject *resultobj = 0;
42803 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42804 bool result;
42805 void *argp1 = 0 ;
42806 int res1 = 0 ;
42807 PyObject *swig_obj[1] ;
42808
42809 if (!args) SWIG_fail;
42810 swig_obj[0] = args;
42811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42812 if (!SWIG_IsOK(res1)) {
42813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42814 }
42815 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42816 {
42817 PyThreadState* __tstate = wxPyBeginAllowThreads();
42818 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42819 wxPyEndAllowThreads(__tstate);
42820 if (PyErr_Occurred()) SWIG_fail;
42821 }
42822 {
42823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42824 }
42825 return resultobj;
42826fail:
42827 return NULL;
42828}
42829
42830
42831SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42832 PyObject *obj;
42833 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42834 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42835 return SWIG_Py_Void();
42836}
42837
42838SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42839 return SWIG_Python_InitShadowInstance(args);
42840}
42841
42842SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42843 PyObject *resultobj = 0;
42844 wxObject *arg1 = (wxObject *) 0 ;
42845 int arg2 ;
42846 wxString *arg3 = 0 ;
42847 wxHyperlinkEvent *result = 0 ;
42848 void *argp1 = 0 ;
42849 int res1 = 0 ;
42850 int val2 ;
42851 int ecode2 = 0 ;
42852 bool temp3 = false ;
42853 PyObject * obj0 = 0 ;
42854 PyObject * obj1 = 0 ;
42855 PyObject * obj2 = 0 ;
42856 char * kwnames[] = {
42857 (char *) "generator",(char *) "id",(char *) "url", NULL
42858 };
42859
42860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42862 if (!SWIG_IsOK(res1)) {
42863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42864 }
42865 arg1 = reinterpret_cast< wxObject * >(argp1);
42866 ecode2 = SWIG_AsVal_int(obj1, &val2);
42867 if (!SWIG_IsOK(ecode2)) {
42868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42869 }
42870 arg2 = static_cast< int >(val2);
42871 {
42872 arg3 = wxString_in_helper(obj2);
42873 if (arg3 == NULL) SWIG_fail;
42874 temp3 = true;
42875 }
42876 {
42877 PyThreadState* __tstate = wxPyBeginAllowThreads();
42878 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42879 wxPyEndAllowThreads(__tstate);
42880 if (PyErr_Occurred()) SWIG_fail;
42881 }
42882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42883 {
42884 if (temp3)
42885 delete arg3;
42886 }
42887 return resultobj;
42888fail:
42889 {
42890 if (temp3)
42891 delete arg3;
42892 }
42893 return NULL;
42894}
42895
42896
42897SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42898 PyObject *resultobj = 0;
42899 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42900 wxString result;
42901 void *argp1 = 0 ;
42902 int res1 = 0 ;
42903 PyObject *swig_obj[1] ;
42904
42905 if (!args) SWIG_fail;
42906 swig_obj[0] = args;
42907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42908 if (!SWIG_IsOK(res1)) {
42909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42910 }
42911 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42912 {
42913 PyThreadState* __tstate = wxPyBeginAllowThreads();
42914 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42915 wxPyEndAllowThreads(__tstate);
42916 if (PyErr_Occurred()) SWIG_fail;
42917 }
42918 {
42919#if wxUSE_UNICODE
42920 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42921#else
42922 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42923#endif
42924 }
42925 return resultobj;
42926fail:
42927 return NULL;
42928}
42929
42930
42931SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42932 PyObject *resultobj = 0;
42933 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42934 wxString *arg2 = 0 ;
42935 void *argp1 = 0 ;
42936 int res1 = 0 ;
42937 bool temp2 = false ;
42938 PyObject * obj0 = 0 ;
42939 PyObject * obj1 = 0 ;
42940 char * kwnames[] = {
42941 (char *) "self",(char *) "url", NULL
42942 };
42943
42944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42946 if (!SWIG_IsOK(res1)) {
42947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42948 }
42949 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42950 {
42951 arg2 = wxString_in_helper(obj1);
42952 if (arg2 == NULL) SWIG_fail;
42953 temp2 = true;
42954 }
42955 {
42956 PyThreadState* __tstate = wxPyBeginAllowThreads();
42957 (arg1)->SetURL((wxString const &)*arg2);
42958 wxPyEndAllowThreads(__tstate);
42959 if (PyErr_Occurred()) SWIG_fail;
42960 }
42961 resultobj = SWIG_Py_Void();
42962 {
42963 if (temp2)
42964 delete arg2;
42965 }
42966 return resultobj;
42967fail:
42968 {
42969 if (temp2)
42970 delete arg2;
42971 }
42972 return NULL;
42973}
42974
42975
42976SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42977 PyObject *obj;
42978 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42979 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42980 return SWIG_Py_Void();
42981}
42982
42983SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42984 return SWIG_Python_InitShadowInstance(args);
42985}
42986
b850e7f3
RD
42987SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42988 PyObject *resultobj = 0;
42989 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42990 wxWindow *arg2 = (wxWindow *) 0 ;
42991 int arg3 ;
42992 wxString const &arg4_defvalue = wxEmptyString ;
42993 wxString *arg4 = (wxString *) &arg4_defvalue ;
42994 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42995 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42996 wxSize const &arg6_defvalue = wxDefaultSize ;
42997 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42998 long arg7 = (long) 0 ;
42999 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43000 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43001 wxString const &arg9_defvalue = wxButtonNameStr ;
43002 wxString *arg9 = (wxString *) &arg9_defvalue ;
43003 bool result;
43004 void *argp1 = 0 ;
43005 int res1 = 0 ;
43006 void *argp2 = 0 ;
43007 int res2 = 0 ;
43008 int val3 ;
43009 int ecode3 = 0 ;
43010 bool temp4 = false ;
43011 wxPoint temp5 ;
43012 wxSize temp6 ;
43013 long val7 ;
43014 int ecode7 = 0 ;
43015 void *argp8 = 0 ;
43016 int res8 = 0 ;
43017 bool temp9 = false ;
43018 PyObject * obj0 = 0 ;
43019 PyObject * obj1 = 0 ;
43020 PyObject * obj2 = 0 ;
43021 PyObject * obj3 = 0 ;
43022 PyObject * obj4 = 0 ;
43023 PyObject * obj5 = 0 ;
43024 PyObject * obj6 = 0 ;
43025 PyObject * obj7 = 0 ;
43026 PyObject * obj8 = 0 ;
43027 char * kwnames[] = {
43028 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43029 };
43030
43031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43033 if (!SWIG_IsOK(res1)) {
43034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43035 }
43036 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43037 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43038 if (!SWIG_IsOK(res2)) {
43039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
43040 }
43041 arg2 = reinterpret_cast< wxWindow * >(argp2);
43042 ecode3 = SWIG_AsVal_int(obj2, &val3);
43043 if (!SWIG_IsOK(ecode3)) {
43044 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
43045 }
43046 arg3 = static_cast< int >(val3);
43047 if (obj3) {
43048 {
43049 arg4 = wxString_in_helper(obj3);
43050 if (arg4 == NULL) SWIG_fail;
43051 temp4 = true;
43052 }
43053 }
43054 if (obj4) {
43055 {
43056 arg5 = &temp5;
43057 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43058 }
43059 }
43060 if (obj5) {
43061 {
43062 arg6 = &temp6;
43063 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43064 }
43065 }
43066 if (obj6) {
43067 ecode7 = SWIG_AsVal_long(obj6, &val7);
43068 if (!SWIG_IsOK(ecode7)) {
43069 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
43070 }
43071 arg7 = static_cast< long >(val7);
43072 }
43073 if (obj7) {
43074 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43075 if (!SWIG_IsOK(res8)) {
43076 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
43077 }
43078 if (!argp8) {
43079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
43080 }
43081 arg8 = reinterpret_cast< wxValidator * >(argp8);
43082 }
43083 if (obj8) {
43084 {
43085 arg9 = wxString_in_helper(obj8);
43086 if (arg9 == NULL) SWIG_fail;
43087 temp9 = true;
43088 }
43089 }
43090 {
43091 PyThreadState* __tstate = wxPyBeginAllowThreads();
43092 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43093 wxPyEndAllowThreads(__tstate);
43094 if (PyErr_Occurred()) SWIG_fail;
43095 }
43096 {
43097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43098 }
43099 {
43100 if (temp4)
43101 delete arg4;
43102 }
43103 {
43104 if (temp9)
43105 delete arg9;
43106 }
43107 return resultobj;
43108fail:
43109 {
43110 if (temp4)
43111 delete arg4;
43112 }
43113 {
43114 if (temp9)
43115 delete arg9;
43116 }
43117 return NULL;
43118}
43119
43120
43121SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43122 PyObject *resultobj = 0;
43123 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43124 int arg2 ;
43125 void *argp1 = 0 ;
43126 int res1 = 0 ;
43127 int val2 ;
43128 int ecode2 = 0 ;
43129 PyObject * obj0 = 0 ;
43130 PyObject * obj1 = 0 ;
43131 char * kwnames[] = {
43132 (char *) "self",(char *) "newmargin", NULL
43133 };
43134
43135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
43136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43137 if (!SWIG_IsOK(res1)) {
43138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43139 }
43140 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43141 ecode2 = SWIG_AsVal_int(obj1, &val2);
43142 if (!SWIG_IsOK(ecode2)) {
43143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
43144 }
43145 arg2 = static_cast< int >(val2);
43146 {
43147 PyThreadState* __tstate = wxPyBeginAllowThreads();
43148 (arg1)->SetInternalMargin(arg2);
43149 wxPyEndAllowThreads(__tstate);
43150 if (PyErr_Occurred()) SWIG_fail;
43151 }
43152 resultobj = SWIG_Py_Void();
43153 return resultobj;
43154fail:
43155 return NULL;
43156}
43157
43158
43159SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43160 PyObject *resultobj = 0;
43161 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43162 int result;
43163 void *argp1 = 0 ;
43164 int res1 = 0 ;
43165 PyObject *swig_obj[1] ;
43166
43167 if (!args) SWIG_fail;
43168 swig_obj[0] = args;
43169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43170 if (!SWIG_IsOK(res1)) {
43171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43172 }
43173 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43174 {
43175 PyThreadState* __tstate = wxPyBeginAllowThreads();
43176 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
43177 wxPyEndAllowThreads(__tstate);
43178 if (PyErr_Occurred()) SWIG_fail;
43179 }
43180 resultobj = SWIG_From_int(static_cast< int >(result));
43181 return resultobj;
43182fail:
43183 return NULL;
43184}
43185
43186
43187SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43188 PyObject *resultobj = 0;
43189 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43190 int arg2 ;
43191 void *argp1 = 0 ;
43192 int res1 = 0 ;
43193 int val2 ;
43194 int ecode2 = 0 ;
43195 PyObject * obj0 = 0 ;
43196 PyObject * obj1 = 0 ;
43197 char * kwnames[] = {
43198 (char *) "self",(char *) "prop", NULL
43199 };
43200
43201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43203 if (!SWIG_IsOK(res1)) {
43204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43205 }
43206 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43207 ecode2 = SWIG_AsVal_int(obj1, &val2);
43208 if (!SWIG_IsOK(ecode2)) {
43209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43210 }
43211 arg2 = static_cast< int >(val2);
43212 {
43213 PyThreadState* __tstate = wxPyBeginAllowThreads();
43214 (arg1)->SetTextCtrlProportion(arg2);
43215 wxPyEndAllowThreads(__tstate);
43216 if (PyErr_Occurred()) SWIG_fail;
43217 }
43218 resultobj = SWIG_Py_Void();
43219 return resultobj;
43220fail:
43221 return NULL;
43222}
43223
43224
43225SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43226 PyObject *resultobj = 0;
43227 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43228 int result;
43229 void *argp1 = 0 ;
43230 int res1 = 0 ;
43231 PyObject *swig_obj[1] ;
43232
43233 if (!args) SWIG_fail;
43234 swig_obj[0] = args;
43235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43236 if (!SWIG_IsOK(res1)) {
43237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43238 }
43239 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43240 {
43241 PyThreadState* __tstate = wxPyBeginAllowThreads();
43242 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
43243 wxPyEndAllowThreads(__tstate);
43244 if (PyErr_Occurred()) SWIG_fail;
43245 }
43246 resultobj = SWIG_From_int(static_cast< int >(result));
43247 return resultobj;
43248fail:
43249 return NULL;
43250}
43251
43252
1eeb270e
RD
43253SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43254 PyObject *resultobj = 0;
43255 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43256 int arg2 ;
43257 void *argp1 = 0 ;
43258 int res1 = 0 ;
43259 int val2 ;
43260 int ecode2 = 0 ;
43261 PyObject * obj0 = 0 ;
43262 PyObject * obj1 = 0 ;
43263 char * kwnames[] = {
43264 (char *) "self",(char *) "prop", NULL
43265 };
43266
43267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43269 if (!SWIG_IsOK(res1)) {
43270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43271 }
43272 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43273 ecode2 = SWIG_AsVal_int(obj1, &val2);
43274 if (!SWIG_IsOK(ecode2)) {
43275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43276 }
43277 arg2 = static_cast< int >(val2);
43278 {
43279 PyThreadState* __tstate = wxPyBeginAllowThreads();
43280 (arg1)->SetPickerCtrlProportion(arg2);
43281 wxPyEndAllowThreads(__tstate);
43282 if (PyErr_Occurred()) SWIG_fail;
43283 }
43284 resultobj = SWIG_Py_Void();
43285 return resultobj;
43286fail:
43287 return NULL;
43288}
43289
43290
43291SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43292 PyObject *resultobj = 0;
43293 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43294 int result;
43295 void *argp1 = 0 ;
43296 int res1 = 0 ;
43297 PyObject *swig_obj[1] ;
43298
43299 if (!args) SWIG_fail;
43300 swig_obj[0] = args;
43301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43302 if (!SWIG_IsOK(res1)) {
43303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43304 }
43305 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43306 {
43307 PyThreadState* __tstate = wxPyBeginAllowThreads();
43308 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
43309 wxPyEndAllowThreads(__tstate);
43310 if (PyErr_Occurred()) SWIG_fail;
43311 }
43312 resultobj = SWIG_From_int(static_cast< int >(result));
43313 return resultobj;
43314fail:
43315 return NULL;
43316}
43317
43318
b02396e8
RD
43319SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43320 PyObject *resultobj = 0;
43321 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43322 bool result;
43323 void *argp1 = 0 ;
43324 int res1 = 0 ;
43325 PyObject *swig_obj[1] ;
43326
43327 if (!args) SWIG_fail;
43328 swig_obj[0] = args;
43329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43330 if (!SWIG_IsOK(res1)) {
43331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43332 }
43333 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43334 {
43335 PyThreadState* __tstate = wxPyBeginAllowThreads();
43336 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
43337 wxPyEndAllowThreads(__tstate);
43338 if (PyErr_Occurred()) SWIG_fail;
43339 }
43340 {
43341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43342 }
43343 return resultobj;
43344fail:
43345 return NULL;
43346}
43347
43348
43349SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43350 PyObject *resultobj = 0;
43351 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43352 bool arg2 = (bool) true ;
43353 void *argp1 = 0 ;
43354 int res1 = 0 ;
43355 bool val2 ;
43356 int ecode2 = 0 ;
43357 PyObject * obj0 = 0 ;
43358 PyObject * obj1 = 0 ;
43359 char * kwnames[] = {
43360 (char *) "self",(char *) "grow", NULL
43361 };
43362
43363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43365 if (!SWIG_IsOK(res1)) {
43366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43367 }
43368 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43369 if (obj1) {
43370 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43371 if (!SWIG_IsOK(ecode2)) {
43372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43373 }
43374 arg2 = static_cast< bool >(val2);
43375 }
43376 {
43377 PyThreadState* __tstate = wxPyBeginAllowThreads();
43378 (arg1)->SetTextCtrlGrowable(arg2);
43379 wxPyEndAllowThreads(__tstate);
43380 if (PyErr_Occurred()) SWIG_fail;
43381 }
43382 resultobj = SWIG_Py_Void();
43383 return resultobj;
43384fail:
43385 return NULL;
43386}
43387
43388
43389SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43390 PyObject *resultobj = 0;
43391 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43392 bool result;
43393 void *argp1 = 0 ;
43394 int res1 = 0 ;
43395 PyObject *swig_obj[1] ;
43396
43397 if (!args) SWIG_fail;
43398 swig_obj[0] = args;
43399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43400 if (!SWIG_IsOK(res1)) {
43401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43402 }
43403 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43404 {
43405 PyThreadState* __tstate = wxPyBeginAllowThreads();
43406 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
43407 wxPyEndAllowThreads(__tstate);
43408 if (PyErr_Occurred()) SWIG_fail;
43409 }
43410 {
43411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43412 }
43413 return resultobj;
43414fail:
43415 return NULL;
43416}
43417
43418
43419SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43420 PyObject *resultobj = 0;
43421 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43422 bool arg2 = (bool) true ;
43423 void *argp1 = 0 ;
43424 int res1 = 0 ;
43425 bool val2 ;
43426 int ecode2 = 0 ;
43427 PyObject * obj0 = 0 ;
43428 PyObject * obj1 = 0 ;
43429 char * kwnames[] = {
43430 (char *) "self",(char *) "grow", NULL
43431 };
43432
43433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43435 if (!SWIG_IsOK(res1)) {
43436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43437 }
43438 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43439 if (obj1) {
43440 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43441 if (!SWIG_IsOK(ecode2)) {
43442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43443 }
43444 arg2 = static_cast< bool >(val2);
43445 }
43446 {
43447 PyThreadState* __tstate = wxPyBeginAllowThreads();
43448 (arg1)->SetPickerCtrlGrowable(arg2);
43449 wxPyEndAllowThreads(__tstate);
43450 if (PyErr_Occurred()) SWIG_fail;
43451 }
43452 resultobj = SWIG_Py_Void();
43453 return resultobj;
43454fail:
43455 return NULL;
43456}
43457
43458
b850e7f3
RD
43459SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43460 PyObject *resultobj = 0;
43461 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43462 bool result;
43463 void *argp1 = 0 ;
43464 int res1 = 0 ;
43465 PyObject *swig_obj[1] ;
43466
43467 if (!args) SWIG_fail;
43468 swig_obj[0] = args;
43469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43470 if (!SWIG_IsOK(res1)) {
43471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43472 }
43473 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43474 {
43475 PyThreadState* __tstate = wxPyBeginAllowThreads();
43476 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
43477 wxPyEndAllowThreads(__tstate);
43478 if (PyErr_Occurred()) SWIG_fail;
43479 }
43480 {
43481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43482 }
43483 return resultobj;
43484fail:
43485 return NULL;
43486}
43487
43488
43489SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43490 PyObject *resultobj = 0;
43491 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43492 wxTextCtrl *result = 0 ;
43493 void *argp1 = 0 ;
43494 int res1 = 0 ;
43495 PyObject *swig_obj[1] ;
43496
43497 if (!args) SWIG_fail;
43498 swig_obj[0] = args;
43499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43500 if (!SWIG_IsOK(res1)) {
43501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43502 }
43503 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43504 {
43505 PyThreadState* __tstate = wxPyBeginAllowThreads();
43506 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43507 wxPyEndAllowThreads(__tstate);
43508 if (PyErr_Occurred()) SWIG_fail;
43509 }
43510 {
43511 resultobj = wxPyMake_wxObject(result, 0);
43512 }
43513 return resultobj;
43514fail:
43515 return NULL;
43516}
43517
43518
43519SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43520 PyObject *resultobj = 0;
43521 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43522 wxControl *result = 0 ;
43523 void *argp1 = 0 ;
43524 int res1 = 0 ;
43525 PyObject *swig_obj[1] ;
43526
43527 if (!args) SWIG_fail;
43528 swig_obj[0] = args;
43529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43530 if (!SWIG_IsOK(res1)) {
43531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43532 }
43533 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43534 {
43535 PyThreadState* __tstate = wxPyBeginAllowThreads();
43536 result = (wxControl *)(arg1)->GetPickerCtrl();
43537 wxPyEndAllowThreads(__tstate);
43538 if (PyErr_Occurred()) SWIG_fail;
43539 }
43540 {
43541 resultobj = wxPyMake_wxObject(result, 0);
43542 }
43543 return resultobj;
43544fail:
43545 return NULL;
43546}
43547
43548
43549SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43550 PyObject *obj;
43551 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43552 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43553 return SWIG_Py_Void();
43554}
43555
43556SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43557 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43558 return 1;
43559}
43560
43561
43562SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43563 PyObject *pyobj = 0;
43564
43565 {
43566#if wxUSE_UNICODE
43567 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43568#else
43569 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43570#endif
43571 }
43572 return pyobj;
43573}
43574
43575
43576SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43577 PyObject *resultobj = 0;
43578 wxWindow *arg1 = (wxWindow *) 0 ;
43579 int arg2 = (int) -1 ;
43580 wxColour const &arg3_defvalue = *wxBLACK ;
43581 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43582 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43583 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43584 wxSize const &arg5_defvalue = wxDefaultSize ;
43585 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43586 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43587 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43588 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43589 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43590 wxString *arg8 = (wxString *) &arg8_defvalue ;
43591 wxColourPickerCtrl *result = 0 ;
43592 void *argp1 = 0 ;
43593 int res1 = 0 ;
43594 int val2 ;
43595 int ecode2 = 0 ;
43596 wxColour temp3 ;
43597 wxPoint temp4 ;
43598 wxSize temp5 ;
43599 long val6 ;
43600 int ecode6 = 0 ;
43601 void *argp7 = 0 ;
43602 int res7 = 0 ;
43603 bool temp8 = false ;
43604 PyObject * obj0 = 0 ;
43605 PyObject * obj1 = 0 ;
43606 PyObject * obj2 = 0 ;
43607 PyObject * obj3 = 0 ;
43608 PyObject * obj4 = 0 ;
43609 PyObject * obj5 = 0 ;
43610 PyObject * obj6 = 0 ;
43611 PyObject * obj7 = 0 ;
43612 char * kwnames[] = {
43613 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43614 };
43615
43616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43618 if (!SWIG_IsOK(res1)) {
43619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43620 }
43621 arg1 = reinterpret_cast< wxWindow * >(argp1);
43622 if (obj1) {
43623 ecode2 = SWIG_AsVal_int(obj1, &val2);
43624 if (!SWIG_IsOK(ecode2)) {
43625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43626 }
43627 arg2 = static_cast< int >(val2);
43628 }
43629 if (obj2) {
43630 {
43631 arg3 = &temp3;
43632 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43633 }
43634 }
43635 if (obj3) {
43636 {
43637 arg4 = &temp4;
43638 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43639 }
43640 }
43641 if (obj4) {
43642 {
43643 arg5 = &temp5;
43644 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43645 }
43646 }
43647 if (obj5) {
43648 ecode6 = SWIG_AsVal_long(obj5, &val6);
43649 if (!SWIG_IsOK(ecode6)) {
43650 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43651 }
43652 arg6 = static_cast< long >(val6);
43653 }
43654 if (obj6) {
43655 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43656 if (!SWIG_IsOK(res7)) {
43657 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43658 }
43659 if (!argp7) {
43660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43661 }
43662 arg7 = reinterpret_cast< wxValidator * >(argp7);
43663 }
43664 if (obj7) {
43665 {
43666 arg8 = wxString_in_helper(obj7);
43667 if (arg8 == NULL) SWIG_fail;
43668 temp8 = true;
43669 }
43670 }
43671 {
43672 if (!wxPyCheckForApp()) SWIG_fail;
43673 PyThreadState* __tstate = wxPyBeginAllowThreads();
43674 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43675 wxPyEndAllowThreads(__tstate);
43676 if (PyErr_Occurred()) SWIG_fail;
43677 }
43678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43679 {
43680 if (temp8)
43681 delete arg8;
43682 }
43683 return resultobj;
43684fail:
43685 {
43686 if (temp8)
43687 delete arg8;
43688 }
43689 return NULL;
43690}
43691
43692
43693SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43694 PyObject *resultobj = 0;
43695 wxColourPickerCtrl *result = 0 ;
43696
43697 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43698 {
43699 if (!wxPyCheckForApp()) SWIG_fail;
43700 PyThreadState* __tstate = wxPyBeginAllowThreads();
43701 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43702 wxPyEndAllowThreads(__tstate);
43703 if (PyErr_Occurred()) SWIG_fail;
43704 }
43705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43706 return resultobj;
43707fail:
43708 return NULL;
43709}
43710
43711
43712SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43713 PyObject *resultobj = 0;
43714 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43715 wxWindow *arg2 = (wxWindow *) 0 ;
43716 int arg3 ;
43717 wxColour const &arg4_defvalue = *wxBLACK ;
43718 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43719 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43720 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43721 wxSize const &arg6_defvalue = wxDefaultSize ;
43722 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43723 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43724 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43725 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43726 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43727 wxString *arg9 = (wxString *) &arg9_defvalue ;
43728 bool result;
43729 void *argp1 = 0 ;
43730 int res1 = 0 ;
43731 void *argp2 = 0 ;
43732 int res2 = 0 ;
43733 int val3 ;
43734 int ecode3 = 0 ;
43735 wxColour temp4 ;
43736 wxPoint temp5 ;
43737 wxSize temp6 ;
43738 long val7 ;
43739 int ecode7 = 0 ;
43740 void *argp8 = 0 ;
43741 int res8 = 0 ;
43742 bool temp9 = false ;
43743 PyObject * obj0 = 0 ;
43744 PyObject * obj1 = 0 ;
43745 PyObject * obj2 = 0 ;
43746 PyObject * obj3 = 0 ;
43747 PyObject * obj4 = 0 ;
43748 PyObject * obj5 = 0 ;
43749 PyObject * obj6 = 0 ;
43750 PyObject * obj7 = 0 ;
43751 PyObject * obj8 = 0 ;
43752 char * kwnames[] = {
43753 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43754 };
43755
43756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43758 if (!SWIG_IsOK(res1)) {
43759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43760 }
43761 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43762 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43763 if (!SWIG_IsOK(res2)) {
43764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43765 }
43766 arg2 = reinterpret_cast< wxWindow * >(argp2);
43767 ecode3 = SWIG_AsVal_int(obj2, &val3);
43768 if (!SWIG_IsOK(ecode3)) {
43769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43770 }
43771 arg3 = static_cast< int >(val3);
43772 if (obj3) {
43773 {
43774 arg4 = &temp4;
43775 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43776 }
43777 }
43778 if (obj4) {
43779 {
43780 arg5 = &temp5;
43781 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43782 }
43783 }
43784 if (obj5) {
43785 {
43786 arg6 = &temp6;
43787 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43788 }
43789 }
43790 if (obj6) {
43791 ecode7 = SWIG_AsVal_long(obj6, &val7);
43792 if (!SWIG_IsOK(ecode7)) {
43793 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43794 }
43795 arg7 = static_cast< long >(val7);
43796 }
43797 if (obj7) {
43798 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43799 if (!SWIG_IsOK(res8)) {
43800 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43801 }
43802 if (!argp8) {
43803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43804 }
43805 arg8 = reinterpret_cast< wxValidator * >(argp8);
43806 }
43807 if (obj8) {
43808 {
43809 arg9 = wxString_in_helper(obj8);
43810 if (arg9 == NULL) SWIG_fail;
43811 temp9 = true;
43812 }
43813 }
43814 {
43815 PyThreadState* __tstate = wxPyBeginAllowThreads();
43816 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43817 wxPyEndAllowThreads(__tstate);
43818 if (PyErr_Occurred()) SWIG_fail;
43819 }
43820 {
43821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43822 }
43823 {
43824 if (temp9)
43825 delete arg9;
43826 }
43827 return resultobj;
43828fail:
43829 {
43830 if (temp9)
43831 delete arg9;
43832 }
43833 return NULL;
43834}
43835
43836
43837SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43838 PyObject *resultobj = 0;
43839 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43840 wxColour result;
43841 void *argp1 = 0 ;
43842 int res1 = 0 ;
43843 PyObject *swig_obj[1] ;
43844
43845 if (!args) SWIG_fail;
43846 swig_obj[0] = args;
43847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43848 if (!SWIG_IsOK(res1)) {
43849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43850 }
43851 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43852 {
43853 PyThreadState* __tstate = wxPyBeginAllowThreads();
43854 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43855 wxPyEndAllowThreads(__tstate);
43856 if (PyErr_Occurred()) SWIG_fail;
43857 }
43858 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43859 return resultobj;
43860fail:
43861 return NULL;
43862}
43863
43864
43865SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43866 PyObject *resultobj = 0;
43867 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43868 wxColour *arg2 = 0 ;
43869 void *argp1 = 0 ;
43870 int res1 = 0 ;
43871 wxColour temp2 ;
43872 PyObject * obj0 = 0 ;
43873 PyObject * obj1 = 0 ;
43874 char * kwnames[] = {
43875 (char *) "self",(char *) "col", NULL
43876 };
43877
43878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43880 if (!SWIG_IsOK(res1)) {
43881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43882 }
43883 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43884 {
43885 arg2 = &temp2;
43886 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43887 }
43888 {
43889 PyThreadState* __tstate = wxPyBeginAllowThreads();
43890 (arg1)->SetColour((wxColour const &)*arg2);
43891 wxPyEndAllowThreads(__tstate);
43892 if (PyErr_Occurred()) SWIG_fail;
43893 }
43894 resultobj = SWIG_Py_Void();
43895 return resultobj;
43896fail:
43897 return NULL;
43898}
43899
43900
43901SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43902 PyObject *obj;
43903 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43904 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43905 return SWIG_Py_Void();
43906}
43907
43908SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43909 return SWIG_Python_InitShadowInstance(args);
43910}
43911
43912SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43913 PyObject *resultobj = 0;
43914 wxObject *arg1 = (wxObject *) 0 ;
43915 int arg2 ;
43916 wxColour *arg3 = 0 ;
43917 wxColourPickerEvent *result = 0 ;
43918 void *argp1 = 0 ;
43919 int res1 = 0 ;
43920 int val2 ;
43921 int ecode2 = 0 ;
43922 wxColour temp3 ;
43923 PyObject * obj0 = 0 ;
43924 PyObject * obj1 = 0 ;
43925 PyObject * obj2 = 0 ;
43926 char * kwnames[] = {
43927 (char *) "generator",(char *) "id",(char *) "col", NULL
43928 };
43929
43930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43932 if (!SWIG_IsOK(res1)) {
43933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43934 }
43935 arg1 = reinterpret_cast< wxObject * >(argp1);
43936 ecode2 = SWIG_AsVal_int(obj1, &val2);
43937 if (!SWIG_IsOK(ecode2)) {
43938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43939 }
43940 arg2 = static_cast< int >(val2);
43941 {
43942 arg3 = &temp3;
43943 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43944 }
43945 {
43946 PyThreadState* __tstate = wxPyBeginAllowThreads();
43947 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43948 wxPyEndAllowThreads(__tstate);
43949 if (PyErr_Occurred()) SWIG_fail;
43950 }
43951 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43952 return resultobj;
43953fail:
43954 return NULL;
43955}
43956
43957
43958SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43959 PyObject *resultobj = 0;
43960 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43961 wxColour result;
43962 void *argp1 = 0 ;
43963 int res1 = 0 ;
43964 PyObject *swig_obj[1] ;
43965
43966 if (!args) SWIG_fail;
43967 swig_obj[0] = args;
43968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43969 if (!SWIG_IsOK(res1)) {
43970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43971 }
43972 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43973 {
43974 PyThreadState* __tstate = wxPyBeginAllowThreads();
43975 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43976 wxPyEndAllowThreads(__tstate);
43977 if (PyErr_Occurred()) SWIG_fail;
43978 }
43979 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43980 return resultobj;
43981fail:
43982 return NULL;
43983}
43984
43985
43986SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43987 PyObject *resultobj = 0;
43988 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43989 wxColour *arg2 = 0 ;
43990 void *argp1 = 0 ;
43991 int res1 = 0 ;
43992 wxColour temp2 ;
43993 PyObject * obj0 = 0 ;
43994 PyObject * obj1 = 0 ;
43995 char * kwnames[] = {
43996 (char *) "self",(char *) "c", NULL
43997 };
43998
43999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
44000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
44001 if (!SWIG_IsOK(res1)) {
44002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
44003 }
44004 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
44005 {
44006 arg2 = &temp2;
44007 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
44008 }
44009 {
44010 PyThreadState* __tstate = wxPyBeginAllowThreads();
44011 (arg1)->SetColour((wxColour const &)*arg2);
44012 wxPyEndAllowThreads(__tstate);
44013 if (PyErr_Occurred()) SWIG_fail;
44014 }
44015 resultobj = SWIG_Py_Void();
44016 return resultobj;
44017fail:
44018 return NULL;
44019}
44020
44021
44022SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44023 PyObject *obj;
44024 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44025 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
44026 return SWIG_Py_Void();
44027}
44028
44029SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44030 return SWIG_Python_InitShadowInstance(args);
44031}
44032
44033SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
44034 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
44035 return 1;
44036}
44037
44038
44039SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
44040 PyObject *pyobj = 0;
44041
44042 {
44043#if wxUSE_UNICODE
44044 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
44045#else
44046 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
44047#endif
44048 }
44049 return pyobj;
44050}
44051
44052
44053SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
44054 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
44055 return 1;
44056}
44057
44058
44059SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
44060 PyObject *pyobj = 0;
44061
44062 {
44063#if wxUSE_UNICODE
44064 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
44065#else
44066 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
44067#endif
44068 }
44069 return pyobj;
44070}
44071
44072
44073SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
44074 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
44075 return 1;
44076}
44077
44078
44079SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
44080 PyObject *pyobj = 0;
44081
44082 {
44083#if wxUSE_UNICODE
44084 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
44085#else
44086 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
44087#endif
44088 }
44089 return pyobj;
44090}
44091
44092
44093SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
44094 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
44095 return 1;
44096}
44097
44098
44099SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
44100 PyObject *pyobj = 0;
44101
44102 {
44103#if wxUSE_UNICODE
44104 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
44105#else
44106 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
44107#endif
44108 }
44109 return pyobj;
44110}
44111
44112
44113SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
44114 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
44115 return 1;
44116}
44117
44118
44119SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
44120 PyObject *pyobj = 0;
44121
44122 {
44123#if wxUSE_UNICODE
44124 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
44125#else
44126 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
44127#endif
44128 }
44129 return pyobj;
44130}
44131
44132
44133SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44134 PyObject *resultobj = 0;
44135 wxWindow *arg1 = (wxWindow *) 0 ;
44136 int arg2 = (int) -1 ;
44137 wxString const &arg3_defvalue = wxPyEmptyString ;
44138 wxString *arg3 = (wxString *) &arg3_defvalue ;
44139 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
44140 wxString *arg4 = (wxString *) &arg4_defvalue ;
44141 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44142 wxString *arg5 = (wxString *) &arg5_defvalue ;
44143 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44144 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44145 wxSize const &arg7_defvalue = wxDefaultSize ;
44146 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44147 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
44148 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44149 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44150 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
44151 wxString *arg10 = (wxString *) &arg10_defvalue ;
44152 wxFilePickerCtrl *result = 0 ;
44153 void *argp1 = 0 ;
44154 int res1 = 0 ;
44155 int val2 ;
44156 int ecode2 = 0 ;
44157 bool temp3 = false ;
44158 bool temp4 = false ;
44159 bool temp5 = false ;
44160 wxPoint temp6 ;
44161 wxSize temp7 ;
44162 long val8 ;
44163 int ecode8 = 0 ;
44164 void *argp9 = 0 ;
44165 int res9 = 0 ;
44166 bool temp10 = false ;
44167 PyObject * obj0 = 0 ;
44168 PyObject * obj1 = 0 ;
44169 PyObject * obj2 = 0 ;
44170 PyObject * obj3 = 0 ;
44171 PyObject * obj4 = 0 ;
44172 PyObject * obj5 = 0 ;
44173 PyObject * obj6 = 0 ;
44174 PyObject * obj7 = 0 ;
44175 PyObject * obj8 = 0 ;
44176 PyObject * obj9 = 0 ;
44177 char * kwnames[] = {
44178 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44179 };
44180
44181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44183 if (!SWIG_IsOK(res1)) {
44184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44185 }
44186 arg1 = reinterpret_cast< wxWindow * >(argp1);
44187 if (obj1) {
44188 ecode2 = SWIG_AsVal_int(obj1, &val2);
44189 if (!SWIG_IsOK(ecode2)) {
44190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
44191 }
44192 arg2 = static_cast< int >(val2);
44193 }
44194 if (obj2) {
44195 {
44196 arg3 = wxString_in_helper(obj2);
44197 if (arg3 == NULL) SWIG_fail;
44198 temp3 = true;
44199 }
44200 }
44201 if (obj3) {
44202 {
44203 arg4 = wxString_in_helper(obj3);
44204 if (arg4 == NULL) SWIG_fail;
44205 temp4 = true;
44206 }
44207 }
44208 if (obj4) {
44209 {
44210 arg5 = wxString_in_helper(obj4);
44211 if (arg5 == NULL) SWIG_fail;
44212 temp5 = true;
44213 }
44214 }
44215 if (obj5) {
44216 {
44217 arg6 = &temp6;
44218 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44219 }
44220 }
44221 if (obj6) {
44222 {
44223 arg7 = &temp7;
44224 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44225 }
44226 }
44227 if (obj7) {
44228 ecode8 = SWIG_AsVal_long(obj7, &val8);
44229 if (!SWIG_IsOK(ecode8)) {
44230 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
44231 }
44232 arg8 = static_cast< long >(val8);
44233 }
44234 if (obj8) {
44235 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44236 if (!SWIG_IsOK(res9)) {
44237 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44238 }
44239 if (!argp9) {
44240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44241 }
44242 arg9 = reinterpret_cast< wxValidator * >(argp9);
44243 }
44244 if (obj9) {
44245 {
44246 arg10 = wxString_in_helper(obj9);
44247 if (arg10 == NULL) SWIG_fail;
44248 temp10 = true;
44249 }
44250 }
44251 {
44252 if (!wxPyCheckForApp()) SWIG_fail;
44253 PyThreadState* __tstate = wxPyBeginAllowThreads();
44254 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);
44255 wxPyEndAllowThreads(__tstate);
44256 if (PyErr_Occurred()) SWIG_fail;
44257 }
44258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
44259 {
44260 if (temp3)
44261 delete arg3;
44262 }
44263 {
44264 if (temp4)
44265 delete arg4;
44266 }
44267 {
44268 if (temp5)
44269 delete arg5;
44270 }
44271 {
44272 if (temp10)
44273 delete arg10;
44274 }
44275 return resultobj;
44276fail:
44277 {
44278 if (temp3)
44279 delete arg3;
44280 }
44281 {
44282 if (temp4)
44283 delete arg4;
44284 }
44285 {
44286 if (temp5)
44287 delete arg5;
44288 }
44289 {
44290 if (temp10)
44291 delete arg10;
44292 }
44293 return NULL;
44294}
44295
44296
44297SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44298 PyObject *resultobj = 0;
44299 wxFilePickerCtrl *result = 0 ;
44300
44301 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
44302 {
44303 if (!wxPyCheckForApp()) SWIG_fail;
44304 PyThreadState* __tstate = wxPyBeginAllowThreads();
44305 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
44306 wxPyEndAllowThreads(__tstate);
44307 if (PyErr_Occurred()) SWIG_fail;
44308 }
44309 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
44310 return resultobj;
44311fail:
44312 return NULL;
44313}
44314
44315
44316SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44317 PyObject *resultobj = 0;
44318 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44319 wxWindow *arg2 = (wxWindow *) 0 ;
44320 int arg3 = (int) -1 ;
44321 wxString const &arg4_defvalue = wxPyEmptyString ;
44322 wxString *arg4 = (wxString *) &arg4_defvalue ;
44323 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
44324 wxString *arg5 = (wxString *) &arg5_defvalue ;
44325 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44326 wxString *arg6 = (wxString *) &arg6_defvalue ;
44327 wxPoint const &arg7_defvalue = wxDefaultPosition ;
44328 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
44329 wxSize const &arg8_defvalue = wxDefaultSize ;
44330 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
44331 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
44332 wxValidator const &arg10_defvalue = wxDefaultValidator ;
44333 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
44334 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
44335 wxString *arg11 = (wxString *) &arg11_defvalue ;
44336 bool result;
44337 void *argp1 = 0 ;
44338 int res1 = 0 ;
44339 void *argp2 = 0 ;
44340 int res2 = 0 ;
44341 int val3 ;
44342 int ecode3 = 0 ;
44343 bool temp4 = false ;
44344 bool temp5 = false ;
44345 bool temp6 = false ;
44346 wxPoint temp7 ;
44347 wxSize temp8 ;
44348 long val9 ;
44349 int ecode9 = 0 ;
44350 void *argp10 = 0 ;
44351 int res10 = 0 ;
44352 bool temp11 = false ;
44353 PyObject * obj0 = 0 ;
44354 PyObject * obj1 = 0 ;
44355 PyObject * obj2 = 0 ;
44356 PyObject * obj3 = 0 ;
44357 PyObject * obj4 = 0 ;
44358 PyObject * obj5 = 0 ;
44359 PyObject * obj6 = 0 ;
44360 PyObject * obj7 = 0 ;
44361 PyObject * obj8 = 0 ;
44362 PyObject * obj9 = 0 ;
44363 PyObject * obj10 = 0 ;
44364 char * kwnames[] = {
44365 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44366 };
44367
44368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
44369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44370 if (!SWIG_IsOK(res1)) {
44371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44372 }
44373 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44374 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44375 if (!SWIG_IsOK(res2)) {
44376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44377 }
44378 arg2 = reinterpret_cast< wxWindow * >(argp2);
44379 if (obj2) {
44380 ecode3 = SWIG_AsVal_int(obj2, &val3);
44381 if (!SWIG_IsOK(ecode3)) {
44382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44383 }
44384 arg3 = static_cast< int >(val3);
44385 }
44386 if (obj3) {
44387 {
44388 arg4 = wxString_in_helper(obj3);
44389 if (arg4 == NULL) SWIG_fail;
44390 temp4 = true;
44391 }
44392 }
44393 if (obj4) {
44394 {
44395 arg5 = wxString_in_helper(obj4);
44396 if (arg5 == NULL) SWIG_fail;
44397 temp5 = true;
44398 }
44399 }
44400 if (obj5) {
44401 {
44402 arg6 = wxString_in_helper(obj5);
44403 if (arg6 == NULL) SWIG_fail;
44404 temp6 = true;
44405 }
44406 }
44407 if (obj6) {
44408 {
44409 arg7 = &temp7;
44410 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
44411 }
44412 }
44413 if (obj7) {
44414 {
44415 arg8 = &temp8;
44416 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
44417 }
44418 }
44419 if (obj8) {
44420 ecode9 = SWIG_AsVal_long(obj8, &val9);
44421 if (!SWIG_IsOK(ecode9)) {
44422 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
44423 }
44424 arg9 = static_cast< long >(val9);
44425 }
44426 if (obj9) {
44427 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
44428 if (!SWIG_IsOK(res10)) {
44429 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44430 }
44431 if (!argp10) {
44432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44433 }
44434 arg10 = reinterpret_cast< wxValidator * >(argp10);
44435 }
44436 if (obj10) {
44437 {
44438 arg11 = wxString_in_helper(obj10);
44439 if (arg11 == NULL) SWIG_fail;
44440 temp11 = true;
44441 }
44442 }
44443 {
44444 PyThreadState* __tstate = wxPyBeginAllowThreads();
44445 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);
44446 wxPyEndAllowThreads(__tstate);
44447 if (PyErr_Occurred()) SWIG_fail;
44448 }
44449 {
44450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44451 }
44452 {
44453 if (temp4)
44454 delete arg4;
44455 }
44456 {
44457 if (temp5)
44458 delete arg5;
44459 }
44460 {
44461 if (temp6)
44462 delete arg6;
44463 }
44464 {
44465 if (temp11)
44466 delete arg11;
44467 }
44468 return resultobj;
44469fail:
44470 {
44471 if (temp4)
44472 delete arg4;
44473 }
44474 {
44475 if (temp5)
44476 delete arg5;
44477 }
44478 {
44479 if (temp6)
44480 delete arg6;
44481 }
44482 {
44483 if (temp11)
44484 delete arg11;
44485 }
44486 return NULL;
44487}
44488
44489
44490SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44491 PyObject *resultobj = 0;
44492 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44493 wxString result;
44494 void *argp1 = 0 ;
44495 int res1 = 0 ;
44496 PyObject *swig_obj[1] ;
44497
44498 if (!args) SWIG_fail;
44499 swig_obj[0] = args;
44500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44501 if (!SWIG_IsOK(res1)) {
44502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44503 }
44504 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44505 {
44506 PyThreadState* __tstate = wxPyBeginAllowThreads();
44507 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44508 wxPyEndAllowThreads(__tstate);
44509 if (PyErr_Occurred()) SWIG_fail;
44510 }
44511 {
44512#if wxUSE_UNICODE
44513 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44514#else
44515 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44516#endif
44517 }
44518 return resultobj;
44519fail:
44520 return NULL;
44521}
44522
44523
44524SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44525 PyObject *resultobj = 0;
44526 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44527 wxString *arg2 = 0 ;
44528 void *argp1 = 0 ;
44529 int res1 = 0 ;
44530 bool temp2 = false ;
44531 PyObject * obj0 = 0 ;
44532 PyObject * obj1 = 0 ;
44533 char * kwnames[] = {
44534 (char *) "self",(char *) "str", NULL
44535 };
44536
44537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44539 if (!SWIG_IsOK(res1)) {
44540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44541 }
44542 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44543 {
44544 arg2 = wxString_in_helper(obj1);
44545 if (arg2 == NULL) SWIG_fail;
44546 temp2 = true;
44547 }
44548 {
44549 PyThreadState* __tstate = wxPyBeginAllowThreads();
44550 (arg1)->SetPath((wxString const &)*arg2);
44551 wxPyEndAllowThreads(__tstate);
44552 if (PyErr_Occurred()) SWIG_fail;
44553 }
44554 resultobj = SWIG_Py_Void();
44555 {
44556 if (temp2)
44557 delete arg2;
44558 }
44559 return resultobj;
44560fail:
44561 {
44562 if (temp2)
44563 delete arg2;
44564 }
44565 return NULL;
44566}
44567
44568
b02396e8
RD
44569SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44570 PyObject *resultobj = 0;
44571 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44572 wxString *arg2 = 0 ;
44573 bool result;
44574 void *argp1 = 0 ;
44575 int res1 = 0 ;
44576 bool temp2 = false ;
44577 PyObject * obj0 = 0 ;
44578 PyObject * obj1 = 0 ;
44579 char * kwnames[] = {
44580 (char *) "self",(char *) "path", NULL
44581 };
44582
44583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44585 if (!SWIG_IsOK(res1)) {
44586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44587 }
44588 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44589 {
44590 arg2 = wxString_in_helper(obj1);
44591 if (arg2 == NULL) SWIG_fail;
44592 temp2 = true;
44593 }
44594 {
44595 PyThreadState* __tstate = wxPyBeginAllowThreads();
44596 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44597 wxPyEndAllowThreads(__tstate);
44598 if (PyErr_Occurred()) SWIG_fail;
44599 }
44600 {
44601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44602 }
44603 {
44604 if (temp2)
44605 delete arg2;
44606 }
44607 return resultobj;
44608fail:
44609 {
44610 if (temp2)
44611 delete arg2;
44612 }
44613 return NULL;
44614}
44615
44616
44617SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44618 PyObject *resultobj = 0;
44619 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44620 wxString result;
44621 void *argp1 = 0 ;
44622 int res1 = 0 ;
44623 PyObject *swig_obj[1] ;
44624
44625 if (!args) SWIG_fail;
44626 swig_obj[0] = args;
44627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44628 if (!SWIG_IsOK(res1)) {
44629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44630 }
44631 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44632 {
44633 PyThreadState* __tstate = wxPyBeginAllowThreads();
44634 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44635 wxPyEndAllowThreads(__tstate);
44636 if (PyErr_Occurred()) SWIG_fail;
44637 }
44638 {
44639#if wxUSE_UNICODE
44640 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44641#else
44642 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44643#endif
44644 }
44645 return resultobj;
44646fail:
44647 return NULL;
44648}
44649
44650
b850e7f3
RD
44651SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44652 PyObject *obj;
44653 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44654 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44655 return SWIG_Py_Void();
44656}
44657
44658SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44659 return SWIG_Python_InitShadowInstance(args);
44660}
44661
44662SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44663 PyObject *resultobj = 0;
44664 wxWindow *arg1 = (wxWindow *) 0 ;
44665 int arg2 = (int) -1 ;
44666 wxString const &arg3_defvalue = wxPyEmptyString ;
44667 wxString *arg3 = (wxString *) &arg3_defvalue ;
44668 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44669 wxString *arg4 = (wxString *) &arg4_defvalue ;
44670 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44671 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44672 wxSize const &arg6_defvalue = wxDefaultSize ;
44673 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44674 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44675 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44676 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44677 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44678 wxString *arg9 = (wxString *) &arg9_defvalue ;
44679 wxDirPickerCtrl *result = 0 ;
44680 void *argp1 = 0 ;
44681 int res1 = 0 ;
44682 int val2 ;
44683 int ecode2 = 0 ;
44684 bool temp3 = false ;
44685 bool temp4 = false ;
44686 wxPoint temp5 ;
44687 wxSize temp6 ;
44688 long val7 ;
44689 int ecode7 = 0 ;
44690 void *argp8 = 0 ;
44691 int res8 = 0 ;
44692 bool temp9 = false ;
44693 PyObject * obj0 = 0 ;
44694 PyObject * obj1 = 0 ;
44695 PyObject * obj2 = 0 ;
44696 PyObject * obj3 = 0 ;
44697 PyObject * obj4 = 0 ;
44698 PyObject * obj5 = 0 ;
44699 PyObject * obj6 = 0 ;
44700 PyObject * obj7 = 0 ;
44701 PyObject * obj8 = 0 ;
44702 char * kwnames[] = {
44703 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44704 };
44705
44706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44708 if (!SWIG_IsOK(res1)) {
44709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44710 }
44711 arg1 = reinterpret_cast< wxWindow * >(argp1);
44712 if (obj1) {
44713 ecode2 = SWIG_AsVal_int(obj1, &val2);
44714 if (!SWIG_IsOK(ecode2)) {
44715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44716 }
44717 arg2 = static_cast< int >(val2);
44718 }
44719 if (obj2) {
44720 {
44721 arg3 = wxString_in_helper(obj2);
44722 if (arg3 == NULL) SWIG_fail;
44723 temp3 = true;
44724 }
44725 }
44726 if (obj3) {
44727 {
44728 arg4 = wxString_in_helper(obj3);
44729 if (arg4 == NULL) SWIG_fail;
44730 temp4 = true;
44731 }
44732 }
44733 if (obj4) {
44734 {
44735 arg5 = &temp5;
44736 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44737 }
44738 }
44739 if (obj5) {
44740 {
44741 arg6 = &temp6;
44742 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44743 }
44744 }
44745 if (obj6) {
44746 ecode7 = SWIG_AsVal_long(obj6, &val7);
44747 if (!SWIG_IsOK(ecode7)) {
44748 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44749 }
44750 arg7 = static_cast< long >(val7);
44751 }
44752 if (obj7) {
44753 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44754 if (!SWIG_IsOK(res8)) {
44755 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44756 }
44757 if (!argp8) {
44758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44759 }
44760 arg8 = reinterpret_cast< wxValidator * >(argp8);
44761 }
44762 if (obj8) {
44763 {
44764 arg9 = wxString_in_helper(obj8);
44765 if (arg9 == NULL) SWIG_fail;
44766 temp9 = true;
44767 }
44768 }
44769 {
44770 if (!wxPyCheckForApp()) SWIG_fail;
44771 PyThreadState* __tstate = wxPyBeginAllowThreads();
44772 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);
44773 wxPyEndAllowThreads(__tstate);
44774 if (PyErr_Occurred()) SWIG_fail;
44775 }
44776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44777 {
44778 if (temp3)
44779 delete arg3;
44780 }
44781 {
44782 if (temp4)
44783 delete arg4;
44784 }
44785 {
44786 if (temp9)
44787 delete arg9;
44788 }
44789 return resultobj;
44790fail:
44791 {
44792 if (temp3)
44793 delete arg3;
44794 }
44795 {
44796 if (temp4)
44797 delete arg4;
44798 }
44799 {
44800 if (temp9)
44801 delete arg9;
44802 }
44803 return NULL;
44804}
44805
44806
44807SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44808 PyObject *resultobj = 0;
44809 wxDirPickerCtrl *result = 0 ;
44810
44811 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44812 {
44813 if (!wxPyCheckForApp()) SWIG_fail;
44814 PyThreadState* __tstate = wxPyBeginAllowThreads();
44815 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44816 wxPyEndAllowThreads(__tstate);
44817 if (PyErr_Occurred()) SWIG_fail;
44818 }
44819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44820 return resultobj;
44821fail:
44822 return NULL;
44823}
44824
44825
44826SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44827 PyObject *resultobj = 0;
44828 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44829 wxWindow *arg2 = (wxWindow *) 0 ;
44830 int arg3 = (int) -1 ;
44831 wxString const &arg4_defvalue = wxPyEmptyString ;
44832 wxString *arg4 = (wxString *) &arg4_defvalue ;
44833 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44834 wxString *arg5 = (wxString *) &arg5_defvalue ;
44835 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44836 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44837 wxSize const &arg7_defvalue = wxDefaultSize ;
44838 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44839 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44840 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44841 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44842 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44843 wxString *arg10 = (wxString *) &arg10_defvalue ;
44844 bool result;
44845 void *argp1 = 0 ;
44846 int res1 = 0 ;
44847 void *argp2 = 0 ;
44848 int res2 = 0 ;
44849 int val3 ;
44850 int ecode3 = 0 ;
44851 bool temp4 = false ;
44852 bool temp5 = false ;
44853 wxPoint temp6 ;
44854 wxSize temp7 ;
44855 long val8 ;
44856 int ecode8 = 0 ;
44857 void *argp9 = 0 ;
44858 int res9 = 0 ;
44859 bool temp10 = false ;
44860 PyObject * obj0 = 0 ;
44861 PyObject * obj1 = 0 ;
44862 PyObject * obj2 = 0 ;
44863 PyObject * obj3 = 0 ;
44864 PyObject * obj4 = 0 ;
44865 PyObject * obj5 = 0 ;
44866 PyObject * obj6 = 0 ;
44867 PyObject * obj7 = 0 ;
44868 PyObject * obj8 = 0 ;
44869 PyObject * obj9 = 0 ;
44870 char * kwnames[] = {
44871 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44872 };
44873
44874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44876 if (!SWIG_IsOK(res1)) {
44877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44878 }
44879 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44880 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44881 if (!SWIG_IsOK(res2)) {
44882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44883 }
44884 arg2 = reinterpret_cast< wxWindow * >(argp2);
44885 if (obj2) {
44886 ecode3 = SWIG_AsVal_int(obj2, &val3);
44887 if (!SWIG_IsOK(ecode3)) {
44888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44889 }
44890 arg3 = static_cast< int >(val3);
44891 }
44892 if (obj3) {
44893 {
44894 arg4 = wxString_in_helper(obj3);
44895 if (arg4 == NULL) SWIG_fail;
44896 temp4 = true;
44897 }
44898 }
44899 if (obj4) {
44900 {
44901 arg5 = wxString_in_helper(obj4);
44902 if (arg5 == NULL) SWIG_fail;
44903 temp5 = true;
44904 }
44905 }
44906 if (obj5) {
44907 {
44908 arg6 = &temp6;
44909 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44910 }
44911 }
44912 if (obj6) {
44913 {
44914 arg7 = &temp7;
44915 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44916 }
44917 }
44918 if (obj7) {
44919 ecode8 = SWIG_AsVal_long(obj7, &val8);
44920 if (!SWIG_IsOK(ecode8)) {
44921 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44922 }
44923 arg8 = static_cast< long >(val8);
44924 }
44925 if (obj8) {
44926 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44927 if (!SWIG_IsOK(res9)) {
44928 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44929 }
44930 if (!argp9) {
44931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44932 }
44933 arg9 = reinterpret_cast< wxValidator * >(argp9);
44934 }
44935 if (obj9) {
44936 {
44937 arg10 = wxString_in_helper(obj9);
44938 if (arg10 == NULL) SWIG_fail;
44939 temp10 = true;
44940 }
44941 }
44942 {
44943 PyThreadState* __tstate = wxPyBeginAllowThreads();
44944 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);
44945 wxPyEndAllowThreads(__tstate);
44946 if (PyErr_Occurred()) SWIG_fail;
44947 }
44948 {
44949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44950 }
44951 {
44952 if (temp4)
44953 delete arg4;
44954 }
44955 {
44956 if (temp5)
44957 delete arg5;
44958 }
44959 {
44960 if (temp10)
44961 delete arg10;
44962 }
44963 return resultobj;
44964fail:
44965 {
44966 if (temp4)
44967 delete arg4;
44968 }
44969 {
44970 if (temp5)
44971 delete arg5;
44972 }
44973 {
44974 if (temp10)
44975 delete arg10;
44976 }
44977 return NULL;
44978}
44979
44980
44981SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44982 PyObject *resultobj = 0;
44983 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44984 wxString result;
44985 void *argp1 = 0 ;
44986 int res1 = 0 ;
44987 PyObject *swig_obj[1] ;
44988
44989 if (!args) SWIG_fail;
44990 swig_obj[0] = args;
44991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44992 if (!SWIG_IsOK(res1)) {
44993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44994 }
44995 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44996 {
44997 PyThreadState* __tstate = wxPyBeginAllowThreads();
44998 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44999 wxPyEndAllowThreads(__tstate);
45000 if (PyErr_Occurred()) SWIG_fail;
45001 }
45002 {
45003#if wxUSE_UNICODE
45004 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45005#else
45006 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45007#endif
45008 }
45009 return resultobj;
45010fail:
45011 return NULL;
45012}
45013
45014
45015SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45016 PyObject *resultobj = 0;
45017 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
45018 wxString *arg2 = 0 ;
45019 void *argp1 = 0 ;
45020 int res1 = 0 ;
45021 bool temp2 = false ;
45022 PyObject * obj0 = 0 ;
45023 PyObject * obj1 = 0 ;
45024 char * kwnames[] = {
45025 (char *) "self",(char *) "str", NULL
45026 };
45027
45028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
45029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
45030 if (!SWIG_IsOK(res1)) {
45031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
45032 }
45033 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
45034 {
45035 arg2 = wxString_in_helper(obj1);
45036 if (arg2 == NULL) SWIG_fail;
45037 temp2 = true;
45038 }
45039 {
45040 PyThreadState* __tstate = wxPyBeginAllowThreads();
45041 (arg1)->SetPath((wxString const &)*arg2);
45042 wxPyEndAllowThreads(__tstate);
45043 if (PyErr_Occurred()) SWIG_fail;
45044 }
45045 resultobj = SWIG_Py_Void();
45046 {
45047 if (temp2)
45048 delete arg2;
45049 }
45050 return resultobj;
45051fail:
45052 {
45053 if (temp2)
45054 delete arg2;
45055 }
45056 return NULL;
45057}
45058
45059
b02396e8
RD
45060SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45061 PyObject *resultobj = 0;
45062 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
45063 wxString *arg2 = 0 ;
45064 bool result;
45065 void *argp1 = 0 ;
45066 int res1 = 0 ;
45067 bool temp2 = false ;
45068 PyObject * obj0 = 0 ;
45069 PyObject * obj1 = 0 ;
45070 char * kwnames[] = {
45071 (char *) "self",(char *) "path", NULL
45072 };
45073
45074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
45075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
45076 if (!SWIG_IsOK(res1)) {
45077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
45078 }
45079 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
45080 {
45081 arg2 = wxString_in_helper(obj1);
45082 if (arg2 == NULL) SWIG_fail;
45083 temp2 = true;
45084 }
45085 {
45086 PyThreadState* __tstate = wxPyBeginAllowThreads();
45087 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
45088 wxPyEndAllowThreads(__tstate);
45089 if (PyErr_Occurred()) SWIG_fail;
45090 }
45091 {
45092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45093 }
45094 {
45095 if (temp2)
45096 delete arg2;
45097 }
45098 return resultobj;
45099fail:
45100 {
45101 if (temp2)
45102 delete arg2;
45103 }
45104 return NULL;
45105}
45106
45107
45108SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45109 PyObject *resultobj = 0;
45110 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
45111 wxString result;
45112 void *argp1 = 0 ;
45113 int res1 = 0 ;
45114 PyObject *swig_obj[1] ;
45115
45116 if (!args) SWIG_fail;
45117 swig_obj[0] = args;
45118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
45119 if (!SWIG_IsOK(res1)) {
45120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
45121 }
45122 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
45123 {
45124 PyThreadState* __tstate = wxPyBeginAllowThreads();
45125 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
45126 wxPyEndAllowThreads(__tstate);
45127 if (PyErr_Occurred()) SWIG_fail;
45128 }
45129 {
45130#if wxUSE_UNICODE
45131 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45132#else
45133 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45134#endif
45135 }
45136 return resultobj;
45137fail:
45138 return NULL;
45139}
45140
45141
b850e7f3
RD
45142SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45143 PyObject *obj;
45144 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45145 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
45146 return SWIG_Py_Void();
45147}
45148
45149SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45150 return SWIG_Python_InitShadowInstance(args);
45151}
45152
45153SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45154 PyObject *resultobj = 0;
45155 wxEventType arg1 ;
45156 wxObject *arg2 = (wxObject *) 0 ;
45157 int arg3 ;
45158 wxString *arg4 = 0 ;
45159 wxFileDirPickerEvent *result = 0 ;
45160 int val1 ;
45161 int ecode1 = 0 ;
45162 void *argp2 = 0 ;
45163 int res2 = 0 ;
45164 int val3 ;
45165 int ecode3 = 0 ;
45166 bool temp4 = false ;
45167 PyObject * obj0 = 0 ;
45168 PyObject * obj1 = 0 ;
45169 PyObject * obj2 = 0 ;
45170 PyObject * obj3 = 0 ;
45171 char * kwnames[] = {
45172 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
45173 };
45174
45175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
45176 ecode1 = SWIG_AsVal_int(obj0, &val1);
45177 if (!SWIG_IsOK(ecode1)) {
45178 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
45179 }
45180 arg1 = static_cast< wxEventType >(val1);
45181 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
45182 if (!SWIG_IsOK(res2)) {
45183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
45184 }
45185 arg2 = reinterpret_cast< wxObject * >(argp2);
45186 ecode3 = SWIG_AsVal_int(obj2, &val3);
45187 if (!SWIG_IsOK(ecode3)) {
45188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
45189 }
45190 arg3 = static_cast< int >(val3);
45191 {
45192 arg4 = wxString_in_helper(obj3);
45193 if (arg4 == NULL) SWIG_fail;
45194 temp4 = true;
45195 }
45196 {
45197 PyThreadState* __tstate = wxPyBeginAllowThreads();
45198 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
45199 wxPyEndAllowThreads(__tstate);
45200 if (PyErr_Occurred()) SWIG_fail;
45201 }
45202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
45203 {
45204 if (temp4)
45205 delete arg4;
45206 }
45207 return resultobj;
45208fail:
45209 {
45210 if (temp4)
45211 delete arg4;
45212 }
45213 return NULL;
45214}
45215
45216
45217SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45218 PyObject *resultobj = 0;
45219 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45220 wxString result;
45221 void *argp1 = 0 ;
45222 int res1 = 0 ;
45223 PyObject *swig_obj[1] ;
45224
45225 if (!args) SWIG_fail;
45226 swig_obj[0] = args;
45227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45228 if (!SWIG_IsOK(res1)) {
45229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
45230 }
45231 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45232 {
45233 PyThreadState* __tstate = wxPyBeginAllowThreads();
45234 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
45235 wxPyEndAllowThreads(__tstate);
45236 if (PyErr_Occurred()) SWIG_fail;
45237 }
45238 {
45239#if wxUSE_UNICODE
45240 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45241#else
45242 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45243#endif
45244 }
45245 return resultobj;
45246fail:
45247 return NULL;
45248}
45249
45250
45251SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45252 PyObject *resultobj = 0;
45253 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45254 wxString *arg2 = 0 ;
45255 void *argp1 = 0 ;
45256 int res1 = 0 ;
45257 bool temp2 = false ;
45258 PyObject * obj0 = 0 ;
45259 PyObject * obj1 = 0 ;
45260 char * kwnames[] = {
45261 (char *) "self",(char *) "p", NULL
45262 };
45263
45264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
45265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45266 if (!SWIG_IsOK(res1)) {
45267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
45268 }
45269 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45270 {
45271 arg2 = wxString_in_helper(obj1);
45272 if (arg2 == NULL) SWIG_fail;
45273 temp2 = true;
45274 }
45275 {
45276 PyThreadState* __tstate = wxPyBeginAllowThreads();
45277 (arg1)->SetPath((wxString const &)*arg2);
45278 wxPyEndAllowThreads(__tstate);
45279 if (PyErr_Occurred()) SWIG_fail;
45280 }
45281 resultobj = SWIG_Py_Void();
45282 {
45283 if (temp2)
45284 delete arg2;
45285 }
45286 return resultobj;
45287fail:
45288 {
45289 if (temp2)
45290 delete arg2;
45291 }
45292 return NULL;
45293}
45294
45295
45296SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45297 PyObject *obj;
45298 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45299 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
45300 return SWIG_Py_Void();
45301}
45302
45303SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45304 return SWIG_Python_InitShadowInstance(args);
45305}
45306
45307SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
45308 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
45309 return 1;
45310}
45311
45312
45313SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
45314 PyObject *pyobj = 0;
45315
45316 {
45317#if wxUSE_UNICODE
45318 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45319#else
45320 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45321#endif
45322 }
45323 return pyobj;
45324}
45325
45326
45327SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45328 PyObject *resultobj = 0;
45329 wxWindow *arg1 = (wxWindow *) 0 ;
45330 int arg2 = (int) -1 ;
f89238b9 45331 wxFont const &arg3_defvalue = wxNullFont ;
b850e7f3
RD
45332 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
45333 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45334 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45335 wxSize const &arg5_defvalue = wxDefaultSize ;
45336 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45337 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
45338 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45339 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45340 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
45341 wxString *arg8 = (wxString *) &arg8_defvalue ;
45342 wxFontPickerCtrl *result = 0 ;
45343 void *argp1 = 0 ;
45344 int res1 = 0 ;
45345 int val2 ;
45346 int ecode2 = 0 ;
45347 void *argp3 = 0 ;
45348 int res3 = 0 ;
45349 wxPoint temp4 ;
45350 wxSize temp5 ;
45351 long val6 ;
45352 int ecode6 = 0 ;
45353 void *argp7 = 0 ;
45354 int res7 = 0 ;
45355 bool temp8 = false ;
45356 PyObject * obj0 = 0 ;
45357 PyObject * obj1 = 0 ;
45358 PyObject * obj2 = 0 ;
45359 PyObject * obj3 = 0 ;
45360 PyObject * obj4 = 0 ;
45361 PyObject * obj5 = 0 ;
45362 PyObject * obj6 = 0 ;
45363 PyObject * obj7 = 0 ;
45364 char * kwnames[] = {
45365 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45366 };
45367
45368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45370 if (!SWIG_IsOK(res1)) {
45371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
45372 }
45373 arg1 = reinterpret_cast< wxWindow * >(argp1);
45374 if (obj1) {
45375 ecode2 = SWIG_AsVal_int(obj1, &val2);
45376 if (!SWIG_IsOK(ecode2)) {
45377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
45378 }
45379 arg2 = static_cast< int >(val2);
45380 }
45381 if (obj2) {
45382 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45383 if (!SWIG_IsOK(res3)) {
45384 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45385 }
45386 if (!argp3) {
45387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45388 }
45389 arg3 = reinterpret_cast< wxFont * >(argp3);
45390 }
45391 if (obj3) {
45392 {
45393 arg4 = &temp4;
45394 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45395 }
45396 }
45397 if (obj4) {
45398 {
45399 arg5 = &temp5;
45400 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45401 }
45402 }
45403 if (obj5) {
45404 ecode6 = SWIG_AsVal_long(obj5, &val6);
45405 if (!SWIG_IsOK(ecode6)) {
45406 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
45407 }
45408 arg6 = static_cast< long >(val6);
45409 }
45410 if (obj6) {
45411 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45412 if (!SWIG_IsOK(res7)) {
45413 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45414 }
45415 if (!argp7) {
45416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45417 }
45418 arg7 = reinterpret_cast< wxValidator * >(argp7);
45419 }
45420 if (obj7) {
45421 {
45422 arg8 = wxString_in_helper(obj7);
45423 if (arg8 == NULL) SWIG_fail;
45424 temp8 = true;
45425 }
45426 }
45427 {
45428 if (!wxPyCheckForApp()) SWIG_fail;
45429 PyThreadState* __tstate = wxPyBeginAllowThreads();
45430 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45431 wxPyEndAllowThreads(__tstate);
45432 if (PyErr_Occurred()) SWIG_fail;
45433 }
45434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
45435 {
45436 if (temp8)
45437 delete arg8;
45438 }
45439 return resultobj;
45440fail:
45441 {
45442 if (temp8)
45443 delete arg8;
45444 }
45445 return NULL;
45446}
45447
45448
45449SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45450 PyObject *resultobj = 0;
45451 wxFontPickerCtrl *result = 0 ;
45452
45453 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
45454 {
45455 if (!wxPyCheckForApp()) SWIG_fail;
45456 PyThreadState* __tstate = wxPyBeginAllowThreads();
45457 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
45458 wxPyEndAllowThreads(__tstate);
45459 if (PyErr_Occurred()) SWIG_fail;
45460 }
45461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
45462 return resultobj;
45463fail:
45464 return NULL;
45465}
45466
45467
45468SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45469 PyObject *resultobj = 0;
45470 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45471 wxWindow *arg2 = (wxWindow *) 0 ;
45472 int arg3 = (int) -1 ;
f89238b9 45473 wxFont const &arg4_defvalue = wxNullFont ;
b850e7f3
RD
45474 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
45475 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45476 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45477 wxSize const &arg6_defvalue = wxDefaultSize ;
45478 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45479 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45480 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45481 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45482 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45483 wxString *arg9 = (wxString *) &arg9_defvalue ;
45484 bool result;
45485 void *argp1 = 0 ;
45486 int res1 = 0 ;
45487 void *argp2 = 0 ;
45488 int res2 = 0 ;
45489 int val3 ;
45490 int ecode3 = 0 ;
45491 void *argp4 = 0 ;
45492 int res4 = 0 ;
45493 wxPoint temp5 ;
45494 wxSize temp6 ;
45495 long val7 ;
45496 int ecode7 = 0 ;
45497 void *argp8 = 0 ;
45498 int res8 = 0 ;
45499 bool temp9 = false ;
45500 PyObject * obj0 = 0 ;
45501 PyObject * obj1 = 0 ;
45502 PyObject * obj2 = 0 ;
45503 PyObject * obj3 = 0 ;
45504 PyObject * obj4 = 0 ;
45505 PyObject * obj5 = 0 ;
45506 PyObject * obj6 = 0 ;
45507 PyObject * obj7 = 0 ;
45508 PyObject * obj8 = 0 ;
45509 char * kwnames[] = {
45510 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45511 };
45512
45513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45515 if (!SWIG_IsOK(res1)) {
45516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45517 }
45518 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45519 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45520 if (!SWIG_IsOK(res2)) {
45521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45522 }
45523 arg2 = reinterpret_cast< wxWindow * >(argp2);
45524 if (obj2) {
45525 ecode3 = SWIG_AsVal_int(obj2, &val3);
45526 if (!SWIG_IsOK(ecode3)) {
45527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45528 }
45529 arg3 = static_cast< int >(val3);
45530 }
45531 if (obj3) {
45532 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45533 if (!SWIG_IsOK(res4)) {
45534 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45535 }
45536 if (!argp4) {
45537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45538 }
45539 arg4 = reinterpret_cast< wxFont * >(argp4);
45540 }
45541 if (obj4) {
45542 {
45543 arg5 = &temp5;
45544 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45545 }
45546 }
45547 if (obj5) {
45548 {
45549 arg6 = &temp6;
45550 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45551 }
45552 }
45553 if (obj6) {
45554 ecode7 = SWIG_AsVal_long(obj6, &val7);
45555 if (!SWIG_IsOK(ecode7)) {
45556 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45557 }
45558 arg7 = static_cast< long >(val7);
45559 }
45560 if (obj7) {
45561 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45562 if (!SWIG_IsOK(res8)) {
45563 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45564 }
45565 if (!argp8) {
45566 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45567 }
45568 arg8 = reinterpret_cast< wxValidator * >(argp8);
45569 }
45570 if (obj8) {
45571 {
45572 arg9 = wxString_in_helper(obj8);
45573 if (arg9 == NULL) SWIG_fail;
45574 temp9 = true;
45575 }
45576 }
45577 {
45578 PyThreadState* __tstate = wxPyBeginAllowThreads();
45579 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45580 wxPyEndAllowThreads(__tstate);
45581 if (PyErr_Occurred()) SWIG_fail;
45582 }
45583 {
45584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45585 }
45586 {
45587 if (temp9)
45588 delete arg9;
45589 }
45590 return resultobj;
45591fail:
45592 {
45593 if (temp9)
45594 delete arg9;
45595 }
45596 return NULL;
45597}
45598
45599
45600SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45601 PyObject *resultobj = 0;
45602 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45603 wxFont result;
45604 void *argp1 = 0 ;
45605 int res1 = 0 ;
45606 PyObject *swig_obj[1] ;
45607
45608 if (!args) SWIG_fail;
45609 swig_obj[0] = args;
45610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45611 if (!SWIG_IsOK(res1)) {
45612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45613 }
45614 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45615 {
45616 PyThreadState* __tstate = wxPyBeginAllowThreads();
45617 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45618 wxPyEndAllowThreads(__tstate);
45619 if (PyErr_Occurred()) SWIG_fail;
45620 }
45621 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45622 return resultobj;
45623fail:
45624 return NULL;
45625}
45626
45627
45628SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45629 PyObject *resultobj = 0;
45630 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45631 wxFont *arg2 = 0 ;
45632 void *argp1 = 0 ;
45633 int res1 = 0 ;
45634 void *argp2 = 0 ;
45635 int res2 = 0 ;
45636 PyObject * obj0 = 0 ;
45637 PyObject * obj1 = 0 ;
45638 char * kwnames[] = {
45639 (char *) "self",(char *) "f", NULL
45640 };
45641
45642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45644 if (!SWIG_IsOK(res1)) {
45645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45646 }
45647 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45648 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45649 if (!SWIG_IsOK(res2)) {
45650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45651 }
45652 if (!argp2) {
45653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45654 }
45655 arg2 = reinterpret_cast< wxFont * >(argp2);
45656 {
45657 PyThreadState* __tstate = wxPyBeginAllowThreads();
45658 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45659 wxPyEndAllowThreads(__tstate);
45660 if (PyErr_Occurred()) SWIG_fail;
45661 }
45662 resultobj = SWIG_Py_Void();
45663 return resultobj;
45664fail:
45665 return NULL;
45666}
45667
45668
45669SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45670 PyObject *resultobj = 0;
45671 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45672 unsigned int arg2 ;
45673 void *argp1 = 0 ;
45674 int res1 = 0 ;
45675 unsigned int val2 ;
45676 int ecode2 = 0 ;
45677 PyObject * obj0 = 0 ;
45678 PyObject * obj1 = 0 ;
45679 char * kwnames[] = {
45680 (char *) "self",(char *) "max", NULL
45681 };
45682
45683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45685 if (!SWIG_IsOK(res1)) {
45686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45687 }
45688 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45689 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45690 if (!SWIG_IsOK(ecode2)) {
45691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45692 }
45693 arg2 = static_cast< unsigned int >(val2);
45694 {
45695 PyThreadState* __tstate = wxPyBeginAllowThreads();
45696 (arg1)->SetMaxPointSize(arg2);
45697 wxPyEndAllowThreads(__tstate);
45698 if (PyErr_Occurred()) SWIG_fail;
45699 }
45700 resultobj = SWIG_Py_Void();
45701 return resultobj;
45702fail:
45703 return NULL;
45704}
45705
45706
45707SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45708 PyObject *resultobj = 0;
45709 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45710 unsigned int result;
45711 void *argp1 = 0 ;
45712 int res1 = 0 ;
45713 PyObject *swig_obj[1] ;
45714
45715 if (!args) SWIG_fail;
45716 swig_obj[0] = args;
45717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45718 if (!SWIG_IsOK(res1)) {
45719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45720 }
45721 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45722 {
45723 PyThreadState* __tstate = wxPyBeginAllowThreads();
45724 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45725 wxPyEndAllowThreads(__tstate);
45726 if (PyErr_Occurred()) SWIG_fail;
45727 }
45728 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45729 return resultobj;
45730fail:
45731 return NULL;
45732}
45733
45734
45735SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45736 PyObject *obj;
45737 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45738 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45739 return SWIG_Py_Void();
45740}
45741
45742SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45743 return SWIG_Python_InitShadowInstance(args);
45744}
45745
45746SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45747 PyObject *resultobj = 0;
45748 wxObject *arg1 = (wxObject *) 0 ;
45749 int arg2 ;
45750 wxFont *arg3 = 0 ;
45751 wxFontPickerEvent *result = 0 ;
45752 void *argp1 = 0 ;
45753 int res1 = 0 ;
45754 int val2 ;
45755 int ecode2 = 0 ;
45756 void *argp3 = 0 ;
45757 int res3 = 0 ;
45758 PyObject * obj0 = 0 ;
45759 PyObject * obj1 = 0 ;
45760 PyObject * obj2 = 0 ;
45761 char * kwnames[] = {
45762 (char *) "generator",(char *) "id",(char *) "f", NULL
45763 };
45764
45765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45767 if (!SWIG_IsOK(res1)) {
45768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45769 }
45770 arg1 = reinterpret_cast< wxObject * >(argp1);
45771 ecode2 = SWIG_AsVal_int(obj1, &val2);
45772 if (!SWIG_IsOK(ecode2)) {
45773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45774 }
45775 arg2 = static_cast< int >(val2);
45776 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45777 if (!SWIG_IsOK(res3)) {
45778 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45779 }
45780 if (!argp3) {
45781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45782 }
45783 arg3 = reinterpret_cast< wxFont * >(argp3);
45784 {
45785 PyThreadState* __tstate = wxPyBeginAllowThreads();
45786 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45787 wxPyEndAllowThreads(__tstate);
45788 if (PyErr_Occurred()) SWIG_fail;
45789 }
45790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45791 return resultobj;
45792fail:
45793 return NULL;
45794}
45795
45796
45797SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45798 PyObject *resultobj = 0;
45799 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45800 wxFont result;
45801 void *argp1 = 0 ;
45802 int res1 = 0 ;
45803 PyObject *swig_obj[1] ;
45804
45805 if (!args) SWIG_fail;
45806 swig_obj[0] = args;
45807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45808 if (!SWIG_IsOK(res1)) {
45809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45810 }
45811 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45812 {
45813 PyThreadState* __tstate = wxPyBeginAllowThreads();
45814 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45815 wxPyEndAllowThreads(__tstate);
45816 if (PyErr_Occurred()) SWIG_fail;
45817 }
45818 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45819 return resultobj;
45820fail:
45821 return NULL;
45822}
45823
45824
45825SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45826 PyObject *resultobj = 0;
45827 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45828 wxFont *arg2 = 0 ;
45829 void *argp1 = 0 ;
45830 int res1 = 0 ;
45831 void *argp2 = 0 ;
45832 int res2 = 0 ;
45833 PyObject * obj0 = 0 ;
45834 PyObject * obj1 = 0 ;
45835 char * kwnames[] = {
45836 (char *) "self",(char *) "c", NULL
45837 };
45838
45839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45841 if (!SWIG_IsOK(res1)) {
45842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45843 }
45844 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45845 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45846 if (!SWIG_IsOK(res2)) {
45847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45848 }
45849 if (!argp2) {
45850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45851 }
45852 arg2 = reinterpret_cast< wxFont * >(argp2);
45853 {
45854 PyThreadState* __tstate = wxPyBeginAllowThreads();
45855 (arg1)->SetFont((wxFont const &)*arg2);
45856 wxPyEndAllowThreads(__tstate);
45857 if (PyErr_Occurred()) SWIG_fail;
45858 }
45859 resultobj = SWIG_Py_Void();
45860 return resultobj;
45861fail:
45862 return NULL;
45863}
45864
45865
45866SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45867 PyObject *obj;
45868 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45869 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45870 return SWIG_Py_Void();
45871}
45872
45873SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45874 return SWIG_Python_InitShadowInstance(args);
45875}
45876
5172800e
RD
45877SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45878 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45879 return 1;
45880}
45881
45882
45883SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45884 PyObject *pyobj = 0;
45885
45886 {
45887#if wxUSE_UNICODE
45888 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45889#else
45890 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45891#endif
45892 }
45893 return pyobj;
45894}
45895
45896
45897SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45898 PyObject *resultobj = 0;
45899 wxWindow *arg1 = (wxWindow *) 0 ;
45900 int arg2 = (int) -1 ;
45901 wxString const &arg3_defvalue = wxPyEmptyString ;
45902 wxString *arg3 = (wxString *) &arg3_defvalue ;
45903 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45904 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45905 wxSize const &arg5_defvalue = wxDefaultSize ;
45906 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45907 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45908 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45909 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45910 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45911 wxString *arg8 = (wxString *) &arg8_defvalue ;
45912 wxCollapsiblePane *result = 0 ;
45913 void *argp1 = 0 ;
45914 int res1 = 0 ;
45915 int val2 ;
45916 int ecode2 = 0 ;
45917 bool temp3 = false ;
45918 wxPoint temp4 ;
45919 wxSize temp5 ;
45920 long val6 ;
45921 int ecode6 = 0 ;
45922 void *argp7 = 0 ;
45923 int res7 = 0 ;
45924 bool temp8 = false ;
45925 PyObject * obj0 = 0 ;
45926 PyObject * obj1 = 0 ;
45927 PyObject * obj2 = 0 ;
45928 PyObject * obj3 = 0 ;
45929 PyObject * obj4 = 0 ;
45930 PyObject * obj5 = 0 ;
45931 PyObject * obj6 = 0 ;
45932 PyObject * obj7 = 0 ;
45933 char * kwnames[] = {
45934 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45935 };
45936
45937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45939 if (!SWIG_IsOK(res1)) {
45940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45941 }
45942 arg1 = reinterpret_cast< wxWindow * >(argp1);
45943 if (obj1) {
45944 ecode2 = SWIG_AsVal_int(obj1, &val2);
45945 if (!SWIG_IsOK(ecode2)) {
45946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45947 }
45948 arg2 = static_cast< int >(val2);
45949 }
45950 if (obj2) {
45951 {
45952 arg3 = wxString_in_helper(obj2);
45953 if (arg3 == NULL) SWIG_fail;
45954 temp3 = true;
45955 }
45956 }
45957 if (obj3) {
45958 {
45959 arg4 = &temp4;
45960 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45961 }
45962 }
45963 if (obj4) {
45964 {
45965 arg5 = &temp5;
45966 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45967 }
45968 }
45969 if (obj5) {
45970 ecode6 = SWIG_AsVal_long(obj5, &val6);
45971 if (!SWIG_IsOK(ecode6)) {
45972 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45973 }
45974 arg6 = static_cast< long >(val6);
45975 }
45976 if (obj6) {
45977 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45978 if (!SWIG_IsOK(res7)) {
45979 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45980 }
45981 if (!argp7) {
45982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45983 }
45984 arg7 = reinterpret_cast< wxValidator * >(argp7);
45985 }
45986 if (obj7) {
45987 {
45988 arg8 = wxString_in_helper(obj7);
45989 if (arg8 == NULL) SWIG_fail;
45990 temp8 = true;
45991 }
45992 }
45993 {
45994 if (!wxPyCheckForApp()) SWIG_fail;
45995 PyThreadState* __tstate = wxPyBeginAllowThreads();
45996 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45997 wxPyEndAllowThreads(__tstate);
45998 if (PyErr_Occurred()) SWIG_fail;
45999 }
46000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
46001 {
46002 if (temp3)
46003 delete arg3;
46004 }
46005 {
46006 if (temp8)
46007 delete arg8;
46008 }
46009 return resultobj;
46010fail:
46011 {
46012 if (temp3)
46013 delete arg3;
46014 }
46015 {
46016 if (temp8)
46017 delete arg8;
46018 }
46019 return NULL;
46020}
46021
46022
46023SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46024 PyObject *resultobj = 0;
46025 wxCollapsiblePane *result = 0 ;
46026
46027 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
46028 {
46029 if (!wxPyCheckForApp()) SWIG_fail;
46030 PyThreadState* __tstate = wxPyBeginAllowThreads();
46031 result = (wxCollapsiblePane *)new wxCollapsiblePane();
46032 wxPyEndAllowThreads(__tstate);
46033 if (PyErr_Occurred()) SWIG_fail;
46034 }
46035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
46036 return resultobj;
46037fail:
46038 return NULL;
46039}
46040
46041
46042SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46043 PyObject *resultobj = 0;
46044 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46045 wxWindow *arg2 = (wxWindow *) 0 ;
46046 int arg3 = (int) -1 ;
46047 wxString const &arg4_defvalue = wxPyEmptyString ;
46048 wxString *arg4 = (wxString *) &arg4_defvalue ;
46049 wxPoint const &arg5_defvalue = wxDefaultPosition ;
46050 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
46051 wxSize const &arg6_defvalue = wxDefaultSize ;
46052 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
46053 long arg7 = (long) wxCP_DEFAULT_STYLE ;
46054 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46055 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46056 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
46057 wxString *arg9 = (wxString *) &arg9_defvalue ;
46058 bool result;
46059 void *argp1 = 0 ;
46060 int res1 = 0 ;
46061 void *argp2 = 0 ;
46062 int res2 = 0 ;
46063 int val3 ;
46064 int ecode3 = 0 ;
46065 bool temp4 = false ;
46066 wxPoint temp5 ;
46067 wxSize temp6 ;
46068 long val7 ;
46069 int ecode7 = 0 ;
46070 void *argp8 = 0 ;
46071 int res8 = 0 ;
46072 bool temp9 = false ;
46073 PyObject * obj0 = 0 ;
46074 PyObject * obj1 = 0 ;
46075 PyObject * obj2 = 0 ;
46076 PyObject * obj3 = 0 ;
46077 PyObject * obj4 = 0 ;
46078 PyObject * obj5 = 0 ;
46079 PyObject * obj6 = 0 ;
46080 PyObject * obj7 = 0 ;
46081 PyObject * obj8 = 0 ;
46082 char * kwnames[] = {
46083 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
46084 };
46085
46086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46088 if (!SWIG_IsOK(res1)) {
46089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46090 }
46091 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46092 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46093 if (!SWIG_IsOK(res2)) {
46094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46095 }
46096 arg2 = reinterpret_cast< wxWindow * >(argp2);
46097 if (obj2) {
46098 ecode3 = SWIG_AsVal_int(obj2, &val3);
46099 if (!SWIG_IsOK(ecode3)) {
46100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
46101 }
46102 arg3 = static_cast< int >(val3);
46103 }
46104 if (obj3) {
46105 {
46106 arg4 = wxString_in_helper(obj3);
46107 if (arg4 == NULL) SWIG_fail;
46108 temp4 = true;
46109 }
46110 }
46111 if (obj4) {
46112 {
46113 arg5 = &temp5;
46114 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46115 }
46116 }
46117 if (obj5) {
46118 {
46119 arg6 = &temp6;
46120 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46121 }
46122 }
46123 if (obj6) {
46124 ecode7 = SWIG_AsVal_long(obj6, &val7);
46125 if (!SWIG_IsOK(ecode7)) {
46126 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
46127 }
46128 arg7 = static_cast< long >(val7);
46129 }
46130 if (obj7) {
46131 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46132 if (!SWIG_IsOK(res8)) {
46133 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46134 }
46135 if (!argp8) {
46136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46137 }
46138 arg8 = reinterpret_cast< wxValidator * >(argp8);
46139 }
46140 if (obj8) {
46141 {
46142 arg9 = wxString_in_helper(obj8);
46143 if (arg9 == NULL) SWIG_fail;
46144 temp9 = true;
46145 }
46146 }
46147 {
46148 PyThreadState* __tstate = wxPyBeginAllowThreads();
46149 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46150 wxPyEndAllowThreads(__tstate);
46151 if (PyErr_Occurred()) SWIG_fail;
46152 }
46153 {
46154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46155 }
46156 {
46157 if (temp4)
46158 delete arg4;
46159 }
46160 {
46161 if (temp9)
46162 delete arg9;
46163 }
46164 return resultobj;
46165fail:
46166 {
46167 if (temp4)
46168 delete arg4;
46169 }
46170 {
46171 if (temp9)
46172 delete arg9;
46173 }
46174 return NULL;
46175}
46176
46177
46178SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46179 PyObject *resultobj = 0;
46180 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46181 bool arg2 = (bool) true ;
46182 void *argp1 = 0 ;
46183 int res1 = 0 ;
46184 bool val2 ;
46185 int ecode2 = 0 ;
46186 PyObject * obj0 = 0 ;
46187 PyObject * obj1 = 0 ;
46188 char * kwnames[] = {
46189 (char *) "self",(char *) "collapse", NULL
46190 };
46191
46192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
46193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46194 if (!SWIG_IsOK(res1)) {
46195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46196 }
46197 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46198 if (obj1) {
46199 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46200 if (!SWIG_IsOK(ecode2)) {
46201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
46202 }
46203 arg2 = static_cast< bool >(val2);
46204 }
46205 {
46206 PyThreadState* __tstate = wxPyBeginAllowThreads();
46207 (arg1)->Collapse(arg2);
46208 wxPyEndAllowThreads(__tstate);
46209 if (PyErr_Occurred()) SWIG_fail;
46210 }
46211 resultobj = SWIG_Py_Void();
46212 return resultobj;
46213fail:
46214 return NULL;
46215}
46216
46217
46218SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46219 PyObject *resultobj = 0;
46220 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46221 void *argp1 = 0 ;
46222 int res1 = 0 ;
46223 PyObject *swig_obj[1] ;
46224
46225 if (!args) SWIG_fail;
46226 swig_obj[0] = args;
46227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46228 if (!SWIG_IsOK(res1)) {
46229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46230 }
46231 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46232 {
46233 PyThreadState* __tstate = wxPyBeginAllowThreads();
46234 (arg1)->Expand();
46235 wxPyEndAllowThreads(__tstate);
46236 if (PyErr_Occurred()) SWIG_fail;
46237 }
46238 resultobj = SWIG_Py_Void();
46239 return resultobj;
46240fail:
46241 return NULL;
46242}
46243
46244
46245SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46246 PyObject *resultobj = 0;
46247 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46248 bool result;
46249 void *argp1 = 0 ;
46250 int res1 = 0 ;
46251 PyObject *swig_obj[1] ;
46252
46253 if (!args) SWIG_fail;
46254 swig_obj[0] = args;
46255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46256 if (!SWIG_IsOK(res1)) {
46257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46258 }
46259 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46260 {
46261 PyThreadState* __tstate = wxPyBeginAllowThreads();
46262 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
46263 wxPyEndAllowThreads(__tstate);
46264 if (PyErr_Occurred()) SWIG_fail;
46265 }
46266 {
46267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46268 }
46269 return resultobj;
46270fail:
46271 return NULL;
46272}
46273
46274
46275SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46276 PyObject *resultobj = 0;
46277 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46278 bool result;
46279 void *argp1 = 0 ;
46280 int res1 = 0 ;
46281 PyObject *swig_obj[1] ;
46282
46283 if (!args) SWIG_fail;
46284 swig_obj[0] = args;
46285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46286 if (!SWIG_IsOK(res1)) {
46287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46288 }
46289 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46290 {
46291 PyThreadState* __tstate = wxPyBeginAllowThreads();
46292 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
46293 wxPyEndAllowThreads(__tstate);
46294 if (PyErr_Occurred()) SWIG_fail;
46295 }
46296 {
46297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46298 }
46299 return resultobj;
46300fail:
46301 return NULL;
46302}
46303
46304
46305SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46306 PyObject *resultobj = 0;
46307 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46308 wxWindow *result = 0 ;
46309 void *argp1 = 0 ;
46310 int res1 = 0 ;
46311 PyObject *swig_obj[1] ;
46312
46313 if (!args) SWIG_fail;
46314 swig_obj[0] = args;
46315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46316 if (!SWIG_IsOK(res1)) {
46317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46318 }
46319 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46320 {
46321 PyThreadState* __tstate = wxPyBeginAllowThreads();
46322 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
46323 wxPyEndAllowThreads(__tstate);
46324 if (PyErr_Occurred()) SWIG_fail;
46325 }
46326 {
46327 resultobj = wxPyMake_wxObject(result, 0);
46328 }
46329 return resultobj;
46330fail:
46331 return NULL;
46332}
46333
46334
46335SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46336 PyObject *obj;
46337 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46338 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
46339 return SWIG_Py_Void();
46340}
46341
46342SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46343 return SWIG_Python_InitShadowInstance(args);
46344}
46345
46346SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46347 PyObject *resultobj = 0;
46348 wxObject *arg1 = (wxObject *) 0 ;
46349 int arg2 ;
46350 bool arg3 ;
46351 wxCollapsiblePaneEvent *result = 0 ;
46352 void *argp1 = 0 ;
46353 int res1 = 0 ;
46354 int val2 ;
46355 int ecode2 = 0 ;
46356 bool val3 ;
46357 int ecode3 = 0 ;
46358 PyObject * obj0 = 0 ;
46359 PyObject * obj1 = 0 ;
46360 PyObject * obj2 = 0 ;
46361 char * kwnames[] = {
46362 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
46363 };
46364
46365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
46366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
46367 if (!SWIG_IsOK(res1)) {
46368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
46369 }
46370 arg1 = reinterpret_cast< wxObject * >(argp1);
46371 ecode2 = SWIG_AsVal_int(obj1, &val2);
46372 if (!SWIG_IsOK(ecode2)) {
46373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
46374 }
46375 arg2 = static_cast< int >(val2);
46376 ecode3 = SWIG_AsVal_bool(obj2, &val3);
46377 if (!SWIG_IsOK(ecode3)) {
46378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
46379 }
46380 arg3 = static_cast< bool >(val3);
46381 {
46382 PyThreadState* __tstate = wxPyBeginAllowThreads();
46383 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
46384 wxPyEndAllowThreads(__tstate);
46385 if (PyErr_Occurred()) SWIG_fail;
46386 }
46387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
46388 return resultobj;
46389fail:
46390 return NULL;
46391}
46392
46393
46394SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46395 PyObject *resultobj = 0;
46396 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46397 bool result;
46398 void *argp1 = 0 ;
46399 int res1 = 0 ;
46400 PyObject *swig_obj[1] ;
46401
46402 if (!args) SWIG_fail;
46403 swig_obj[0] = args;
46404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46405 if (!SWIG_IsOK(res1)) {
46406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
46407 }
46408 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46409 {
46410 PyThreadState* __tstate = wxPyBeginAllowThreads();
46411 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
46412 wxPyEndAllowThreads(__tstate);
46413 if (PyErr_Occurred()) SWIG_fail;
46414 }
46415 {
46416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46417 }
46418 return resultobj;
46419fail:
46420 return NULL;
46421}
46422
46423
46424SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46425 PyObject *resultobj = 0;
46426 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46427 bool arg2 ;
46428 void *argp1 = 0 ;
46429 int res1 = 0 ;
46430 bool val2 ;
46431 int ecode2 = 0 ;
46432 PyObject * obj0 = 0 ;
46433 PyObject * obj1 = 0 ;
46434 char * kwnames[] = {
46435 (char *) "self",(char *) "c", NULL
46436 };
46437
46438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
46439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46440 if (!SWIG_IsOK(res1)) {
46441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
46442 }
46443 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46444 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46445 if (!SWIG_IsOK(ecode2)) {
46446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
46447 }
46448 arg2 = static_cast< bool >(val2);
46449 {
46450 PyThreadState* __tstate = wxPyBeginAllowThreads();
46451 (arg1)->SetCollapsed(arg2);
46452 wxPyEndAllowThreads(__tstate);
46453 if (PyErr_Occurred()) SWIG_fail;
46454 }
46455 resultobj = SWIG_Py_Void();
46456 return resultobj;
46457fail:
46458 return NULL;
46459}
46460
46461
46462SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46463 PyObject *obj;
46464 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46465 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
46466 return SWIG_Py_Void();
46467}
46468
46469SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46470 return SWIG_Python_InitShadowInstance(args);
46471}
46472
3f7f284d
RD
46473SWIGINTERN int SearchCtrlNameStr_set(PyObject *) {
46474 SWIG_Error(SWIG_AttributeError,"Variable SearchCtrlNameStr is read-only.");
46475 return 1;
46476}
46477
46478
46479SWIGINTERN PyObject *SearchCtrlNameStr_get(void) {
46480 PyObject *pyobj = 0;
46481
46482 {
46483#if wxUSE_UNICODE
46484 pyobj = PyUnicode_FromWideChar((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46485#else
46486 pyobj = PyString_FromStringAndSize((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46487#endif
46488 }
46489 return pyobj;
46490}
46491
46492
46493SWIGINTERN PyObject *_wrap_new_SearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46494 PyObject *resultobj = 0;
46495 wxWindow *arg1 = (wxWindow *) 0 ;
46496 int arg2 = (int) -1 ;
46497 wxString const &arg3_defvalue = wxEmptyString ;
46498 wxString *arg3 = (wxString *) &arg3_defvalue ;
46499 wxPoint const &arg4_defvalue = wxDefaultPosition ;
46500 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
46501 wxSize const &arg5_defvalue = wxDefaultSize ;
46502 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
46503 long arg6 = (long) 0 ;
46504 wxValidator const &arg7_defvalue = wxDefaultValidator ;
46505 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
46506 wxString const &arg8_defvalue = wxPySearchCtrlNameStr ;
46507 wxString *arg8 = (wxString *) &arg8_defvalue ;
46508 wxSearchCtrl *result = 0 ;
46509 void *argp1 = 0 ;
46510 int res1 = 0 ;
46511 int val2 ;
46512 int ecode2 = 0 ;
46513 bool temp3 = false ;
46514 wxPoint temp4 ;
46515 wxSize temp5 ;
46516 long val6 ;
46517 int ecode6 = 0 ;
46518 void *argp7 = 0 ;
46519 int res7 = 0 ;
46520 bool temp8 = false ;
46521 PyObject * obj0 = 0 ;
46522 PyObject * obj1 = 0 ;
46523 PyObject * obj2 = 0 ;
46524 PyObject * obj3 = 0 ;
46525 PyObject * obj4 = 0 ;
46526 PyObject * obj5 = 0 ;
46527 PyObject * obj6 = 0 ;
46528 PyObject * obj7 = 0 ;
46529 char * kwnames[] = {
46530 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46531 };
46532
46533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SearchCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
46534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
46535 if (!SWIG_IsOK(res1)) {
46536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SearchCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
46537 }
46538 arg1 = reinterpret_cast< wxWindow * >(argp1);
46539 if (obj1) {
46540 ecode2 = SWIG_AsVal_int(obj1, &val2);
46541 if (!SWIG_IsOK(ecode2)) {
46542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SearchCtrl" "', expected argument " "2"" of type '" "int""'");
46543 }
46544 arg2 = static_cast< int >(val2);
46545 }
46546 if (obj2) {
46547 {
46548 arg3 = wxString_in_helper(obj2);
46549 if (arg3 == NULL) SWIG_fail;
46550 temp3 = true;
46551 }
46552 }
46553 if (obj3) {
46554 {
46555 arg4 = &temp4;
46556 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
46557 }
46558 }
46559 if (obj4) {
46560 {
46561 arg5 = &temp5;
46562 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
46563 }
46564 }
46565 if (obj5) {
46566 ecode6 = SWIG_AsVal_long(obj5, &val6);
46567 if (!SWIG_IsOK(ecode6)) {
46568 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SearchCtrl" "', expected argument " "6"" of type '" "long""'");
46569 }
46570 arg6 = static_cast< long >(val6);
46571 }
46572 if (obj6) {
46573 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
46574 if (!SWIG_IsOK(res7)) {
46575 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46576 }
46577 if (!argp7) {
46578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46579 }
46580 arg7 = reinterpret_cast< wxValidator * >(argp7);
46581 }
46582 if (obj7) {
46583 {
46584 arg8 = wxString_in_helper(obj7);
46585 if (arg8 == NULL) SWIG_fail;
46586 temp8 = true;
46587 }
46588 }
46589 {
46590 if (!wxPyCheckForApp()) SWIG_fail;
46591 PyThreadState* __tstate = wxPyBeginAllowThreads();
46592 result = (wxSearchCtrl *)new wxSearchCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
46593 wxPyEndAllowThreads(__tstate);
46594 if (PyErr_Occurred()) SWIG_fail;
46595 }
46596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_NEW | 0 );
46597 {
46598 if (temp3)
46599 delete arg3;
46600 }
46601 {
46602 if (temp8)
46603 delete arg8;
46604 }
46605 return resultobj;
46606fail:
46607 {
46608 if (temp3)
46609 delete arg3;
46610 }
46611 {
46612 if (temp8)
46613 delete arg8;
46614 }
46615 return NULL;
46616}
46617
46618
46619SWIGINTERN PyObject *_wrap_new_PreSearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46620 PyObject *resultobj = 0;
46621 wxSearchCtrl *result = 0 ;
46622
46623 if (!SWIG_Python_UnpackTuple(args,"new_PreSearchCtrl",0,0,0)) SWIG_fail;
46624 {
46625 if (!wxPyCheckForApp()) SWIG_fail;
46626 PyThreadState* __tstate = wxPyBeginAllowThreads();
46627 result = (wxSearchCtrl *)new wxSearchCtrl();
46628 wxPyEndAllowThreads(__tstate);
46629 if (PyErr_Occurred()) SWIG_fail;
46630 }
46631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_OWN | 0 );
46632 return resultobj;
46633fail:
46634 return NULL;
46635}
46636
46637
46638SWIGINTERN PyObject *_wrap_SearchCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46639 PyObject *resultobj = 0;
46640 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46641 wxWindow *arg2 = (wxWindow *) 0 ;
46642 int arg3 = (int) -1 ;
46643 wxString const &arg4_defvalue = wxEmptyString ;
46644 wxString *arg4 = (wxString *) &arg4_defvalue ;
46645 wxPoint const &arg5_defvalue = wxDefaultPosition ;
46646 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
46647 wxSize const &arg6_defvalue = wxDefaultSize ;
46648 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
46649 long arg7 = (long) 0 ;
46650 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46651 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46652 wxString const &arg9_defvalue = wxPySearchCtrlNameStr ;
46653 wxString *arg9 = (wxString *) &arg9_defvalue ;
46654 bool result;
46655 void *argp1 = 0 ;
46656 int res1 = 0 ;
46657 void *argp2 = 0 ;
46658 int res2 = 0 ;
46659 int val3 ;
46660 int ecode3 = 0 ;
46661 bool temp4 = false ;
46662 wxPoint temp5 ;
46663 wxSize temp6 ;
46664 long val7 ;
46665 int ecode7 = 0 ;
46666 void *argp8 = 0 ;
46667 int res8 = 0 ;
46668 bool temp9 = false ;
46669 PyObject * obj0 = 0 ;
46670 PyObject * obj1 = 0 ;
46671 PyObject * obj2 = 0 ;
46672 PyObject * obj3 = 0 ;
46673 PyObject * obj4 = 0 ;
46674 PyObject * obj5 = 0 ;
46675 PyObject * obj6 = 0 ;
46676 PyObject * obj7 = 0 ;
46677 PyObject * obj8 = 0 ;
46678 char * kwnames[] = {
46679 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46680 };
46681
46682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SearchCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46684 if (!SWIG_IsOK(res1)) {
46685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_Create" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46686 }
46687 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46688 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46689 if (!SWIG_IsOK(res2)) {
46690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46691 }
46692 arg2 = reinterpret_cast< wxWindow * >(argp2);
46693 if (obj2) {
46694 ecode3 = SWIG_AsVal_int(obj2, &val3);
46695 if (!SWIG_IsOK(ecode3)) {
46696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchCtrl_Create" "', expected argument " "3"" of type '" "int""'");
46697 }
46698 arg3 = static_cast< int >(val3);
46699 }
46700 if (obj3) {
46701 {
46702 arg4 = wxString_in_helper(obj3);
46703 if (arg4 == NULL) SWIG_fail;
46704 temp4 = true;
46705 }
46706 }
46707 if (obj4) {
46708 {
46709 arg5 = &temp5;
46710 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46711 }
46712 }
46713 if (obj5) {
46714 {
46715 arg6 = &temp6;
46716 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46717 }
46718 }
46719 if (obj6) {
46720 ecode7 = SWIG_AsVal_long(obj6, &val7);
46721 if (!SWIG_IsOK(ecode7)) {
46722 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SearchCtrl_Create" "', expected argument " "7"" of type '" "long""'");
46723 }
46724 arg7 = static_cast< long >(val7);
46725 }
46726 if (obj7) {
46727 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46728 if (!SWIG_IsOK(res8)) {
46729 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46730 }
46731 if (!argp8) {
46732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46733 }
46734 arg8 = reinterpret_cast< wxValidator * >(argp8);
46735 }
46736 if (obj8) {
46737 {
46738 arg9 = wxString_in_helper(obj8);
46739 if (arg9 == NULL) SWIG_fail;
46740 temp9 = true;
46741 }
46742 }
46743 {
46744 PyThreadState* __tstate = wxPyBeginAllowThreads();
46745 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46746 wxPyEndAllowThreads(__tstate);
46747 if (PyErr_Occurred()) SWIG_fail;
46748 }
46749 {
46750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46751 }
46752 {
46753 if (temp4)
46754 delete arg4;
46755 }
46756 {
46757 if (temp9)
46758 delete arg9;
46759 }
46760 return resultobj;
46761fail:
46762 {
46763 if (temp4)
46764 delete arg4;
46765 }
46766 {
46767 if (temp9)
46768 delete arg9;
46769 }
46770 return NULL;
46771}
46772
46773
46774SWIGINTERN PyObject *_wrap_SearchCtrl_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46775 PyObject *resultobj = 0;
46776 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46777 wxMenu *arg2 = (wxMenu *) 0 ;
46778 void *argp1 = 0 ;
46779 int res1 = 0 ;
46780 void *argp2 = 0 ;
46781 int res2 = 0 ;
46782 PyObject * obj0 = 0 ;
46783 PyObject * obj1 = 0 ;
46784 char * kwnames[] = {
46785 (char *) "self",(char *) "menu", NULL
46786 };
46787
46788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
46789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46790 if (!SWIG_IsOK(res1)) {
46791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46792 }
46793 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46794 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
46795 if (!SWIG_IsOK(res2)) {
46796 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
46797 }
46798 arg2 = reinterpret_cast< wxMenu * >(argp2);
46799 {
46800 PyThreadState* __tstate = wxPyBeginAllowThreads();
46801 (arg1)->SetMenu(arg2);
46802 wxPyEndAllowThreads(__tstate);
46803 if (PyErr_Occurred()) SWIG_fail;
46804 }
46805 resultobj = SWIG_Py_Void();
46806 return resultobj;
46807fail:
46808 return NULL;
46809}
46810
46811
46812SWIGINTERN PyObject *_wrap_SearchCtrl_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46813 PyObject *resultobj = 0;
46814 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46815 wxMenu *result = 0 ;
46816 void *argp1 = 0 ;
46817 int res1 = 0 ;
46818 PyObject *swig_obj[1] ;
46819
46820 if (!args) SWIG_fail;
46821 swig_obj[0] = args;
46822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46823 if (!SWIG_IsOK(res1)) {
46824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46825 }
46826 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46827 {
46828 PyThreadState* __tstate = wxPyBeginAllowThreads();
46829 result = (wxMenu *)(arg1)->GetMenu();
46830 wxPyEndAllowThreads(__tstate);
46831 if (PyErr_Occurred()) SWIG_fail;
46832 }
46833 {
46834 resultobj = wxPyMake_wxObject(result, 0);
46835 }
46836 return resultobj;
46837fail:
46838 return NULL;
46839}
46840
46841
70b63a99 46842SWIGINTERN PyObject *_wrap_SearchCtrl_ShowSearchButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3f7f284d
RD
46843 PyObject *resultobj = 0;
46844 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46845 bool arg2 ;
46846 void *argp1 = 0 ;
46847 int res1 = 0 ;
46848 bool val2 ;
46849 int ecode2 = 0 ;
46850 PyObject * obj0 = 0 ;
46851 PyObject * obj1 = 0 ;
46852 char * kwnames[] = {
46853 (char *) "self",(char *) "show", NULL
46854 };
46855
70b63a99 46856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowSearchButton",kwnames,&obj0,&obj1)) SWIG_fail;
3f7f284d
RD
46857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46858 if (!SWIG_IsOK(res1)) {
70b63a99 46859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
3f7f284d
RD
46860 }
46861 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46862 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46863 if (!SWIG_IsOK(ecode2)) {
70b63a99 46864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "2"" of type '" "bool""'");
3f7f284d
RD
46865 }
46866 arg2 = static_cast< bool >(val2);
46867 {
46868 PyThreadState* __tstate = wxPyBeginAllowThreads();
70b63a99 46869 (arg1)->ShowSearchButton(arg2);
3f7f284d
RD
46870 wxPyEndAllowThreads(__tstate);
46871 if (PyErr_Occurred()) SWIG_fail;
46872 }
46873 resultobj = SWIG_Py_Void();
46874 return resultobj;
46875fail:
46876 return NULL;
46877}
46878
46879
70b63a99 46880SWIGINTERN PyObject *_wrap_SearchCtrl_IsSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3f7f284d
RD
46881 PyObject *resultobj = 0;
46882 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46883 bool result;
46884 void *argp1 = 0 ;
46885 int res1 = 0 ;
46886 PyObject *swig_obj[1] ;
46887
46888 if (!args) SWIG_fail;
46889 swig_obj[0] = args;
46890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46891 if (!SWIG_IsOK(res1)) {
70b63a99 46892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
3f7f284d
RD
46893 }
46894 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46895 {
46896 PyThreadState* __tstate = wxPyBeginAllowThreads();
70b63a99 46897 result = (bool)((wxSearchCtrl const *)arg1)->IsSearchButtonVisible();
3f7f284d
RD
46898 wxPyEndAllowThreads(__tstate);
46899 if (PyErr_Occurred()) SWIG_fail;
46900 }
46901 {
46902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46903 }
46904 return resultobj;
46905fail:
46906 return NULL;
46907}
46908
46909
70b63a99 46910SWIGINTERN PyObject *_wrap_SearchCtrl_ShowCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3f7f284d
RD
46911 PyObject *resultobj = 0;
46912 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46913 bool arg2 ;
46914 void *argp1 = 0 ;
46915 int res1 = 0 ;
46916 bool val2 ;
46917 int ecode2 = 0 ;
46918 PyObject * obj0 = 0 ;
46919 PyObject * obj1 = 0 ;
46920 char * kwnames[] = {
46921 (char *) "self",(char *) "show", NULL
46922 };
46923
70b63a99 46924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowCancelButton",kwnames,&obj0,&obj1)) SWIG_fail;
3f7f284d
RD
46925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46926 if (!SWIG_IsOK(res1)) {
70b63a99 46927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
3f7f284d
RD
46928 }
46929 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46930 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46931 if (!SWIG_IsOK(ecode2)) {
70b63a99 46932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "2"" of type '" "bool""'");
3f7f284d
RD
46933 }
46934 arg2 = static_cast< bool >(val2);
46935 {
46936 PyThreadState* __tstate = wxPyBeginAllowThreads();
70b63a99 46937 (arg1)->ShowCancelButton(arg2);
3f7f284d
RD
46938 wxPyEndAllowThreads(__tstate);
46939 if (PyErr_Occurred()) SWIG_fail;
46940 }
46941 resultobj = SWIG_Py_Void();
46942 return resultobj;
46943fail:
46944 return NULL;
46945}
46946
46947
70b63a99 46948SWIGINTERN PyObject *_wrap_SearchCtrl_IsCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3f7f284d
RD
46949 PyObject *resultobj = 0;
46950 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46951 bool result;
46952 void *argp1 = 0 ;
46953 int res1 = 0 ;
46954 PyObject *swig_obj[1] ;
46955
46956 if (!args) SWIG_fail;
46957 swig_obj[0] = args;
46958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46959 if (!SWIG_IsOK(res1)) {
70b63a99 46960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
3f7f284d
RD
46961 }
46962 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46963 {
46964 PyThreadState* __tstate = wxPyBeginAllowThreads();
70b63a99 46965 result = (bool)((wxSearchCtrl const *)arg1)->IsCancelButtonVisible();
3f7f284d
RD
46966 wxPyEndAllowThreads(__tstate);
46967 if (PyErr_Occurred()) SWIG_fail;
46968 }
46969 {
46970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46971 }
46972 return resultobj;
46973fail:
46974 return NULL;
46975}
46976
46977
6646ca90
RD
46978SWIGINTERN PyObject *_wrap_SearchCtrl_SetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46979 PyObject *resultobj = 0;
46980 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46981 wxString *arg2 = 0 ;
46982 void *argp1 = 0 ;
46983 int res1 = 0 ;
46984 bool temp2 = false ;
46985 PyObject * obj0 = 0 ;
46986 PyObject * obj1 = 0 ;
46987 char * kwnames[] = {
46988 (char *) "self",(char *) "text", NULL
46989 };
46990
46991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetDescriptiveText",kwnames,&obj0,&obj1)) SWIG_fail;
46992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46993 if (!SWIG_IsOK(res1)) {
46994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46995 }
46996 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46997 {
46998 arg2 = wxString_in_helper(obj1);
46999 if (arg2 == NULL) SWIG_fail;
47000 temp2 = true;
47001 }
47002 {
47003 PyThreadState* __tstate = wxPyBeginAllowThreads();
47004 (arg1)->SetDescriptiveText((wxString const &)*arg2);
47005 wxPyEndAllowThreads(__tstate);
47006 if (PyErr_Occurred()) SWIG_fail;
47007 }
47008 resultobj = SWIG_Py_Void();
47009 {
47010 if (temp2)
47011 delete arg2;
47012 }
47013 return resultobj;
47014fail:
47015 {
47016 if (temp2)
47017 delete arg2;
47018 }
47019 return NULL;
47020}
47021
47022
47023SWIGINTERN PyObject *_wrap_SearchCtrl_GetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47024 PyObject *resultobj = 0;
47025 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47026 wxString result;
47027 void *argp1 = 0 ;
47028 int res1 = 0 ;
47029 PyObject *swig_obj[1] ;
47030
47031 if (!args) SWIG_fail;
47032 swig_obj[0] = args;
47033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47034 if (!SWIG_IsOK(res1)) {
47035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
47036 }
47037 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47038 {
47039 PyThreadState* __tstate = wxPyBeginAllowThreads();
47040 result = ((wxSearchCtrl const *)arg1)->GetDescriptiveText();
47041 wxPyEndAllowThreads(__tstate);
47042 if (PyErr_Occurred()) SWIG_fail;
47043 }
47044 {
47045#if wxUSE_UNICODE
47046 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
47047#else
47048 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
47049#endif
47050 }
47051 return resultobj;
47052fail:
47053 return NULL;
47054}
47055
47056
3f7f284d
RD
47057SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47058 PyObject *resultobj = 0;
47059 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47060 wxBitmap *arg2 = 0 ;
47061 void *argp1 = 0 ;
47062 int res1 = 0 ;
47063 void *argp2 = 0 ;
47064 int res2 = 0 ;
47065 PyObject * obj0 = 0 ;
47066 PyObject * obj1 = 0 ;
47067 char * kwnames[] = {
47068 (char *) "self",(char *) "bitmap", NULL
47069 };
47070
47071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
47072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47073 if (!SWIG_IsOK(res1)) {
47074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47075 }
47076 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47077 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
47078 if (!SWIG_IsOK(res2)) {
47079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47080 }
47081 if (!argp2) {
47082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47083 }
47084 arg2 = reinterpret_cast< wxBitmap * >(argp2);
47085 {
47086 PyThreadState* __tstate = wxPyBeginAllowThreads();
47087 (arg1)->SetSearchBitmap((wxBitmap const &)*arg2);
47088 wxPyEndAllowThreads(__tstate);
47089 if (PyErr_Occurred()) SWIG_fail;
47090 }
47091 resultobj = SWIG_Py_Void();
47092 return resultobj;
47093fail:
47094 return NULL;
47095}
47096
47097
47098SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchMenuBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47099 PyObject *resultobj = 0;
47100 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47101 wxBitmap *arg2 = 0 ;
47102 void *argp1 = 0 ;
47103 int res1 = 0 ;
47104 void *argp2 = 0 ;
47105 int res2 = 0 ;
47106 PyObject * obj0 = 0 ;
47107 PyObject * obj1 = 0 ;
47108 char * kwnames[] = {
47109 (char *) "self",(char *) "bitmap", NULL
47110 };
47111
47112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchMenuBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
47113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47114 if (!SWIG_IsOK(res1)) {
47115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47116 }
47117 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47118 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
47119 if (!SWIG_IsOK(res2)) {
47120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47121 }
47122 if (!argp2) {
47123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47124 }
47125 arg2 = reinterpret_cast< wxBitmap * >(argp2);
47126 {
47127 PyThreadState* __tstate = wxPyBeginAllowThreads();
47128 (arg1)->SetSearchMenuBitmap((wxBitmap const &)*arg2);
47129 wxPyEndAllowThreads(__tstate);
47130 if (PyErr_Occurred()) SWIG_fail;
47131 }
47132 resultobj = SWIG_Py_Void();
47133 return resultobj;
47134fail:
47135 return NULL;
47136}
47137
47138
47139SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47140 PyObject *resultobj = 0;
47141 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47142 wxBitmap *arg2 = 0 ;
47143 void *argp1 = 0 ;
47144 int res1 = 0 ;
47145 void *argp2 = 0 ;
47146 int res2 = 0 ;
47147 PyObject * obj0 = 0 ;
47148 PyObject * obj1 = 0 ;
47149 char * kwnames[] = {
47150 (char *) "self",(char *) "bitmap", NULL
47151 };
47152
47153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
47154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47155 if (!SWIG_IsOK(res1)) {
47156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47157 }
47158 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47159 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
47160 if (!SWIG_IsOK(res2)) {
47161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47162 }
47163 if (!argp2) {
47164 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47165 }
47166 arg2 = reinterpret_cast< wxBitmap * >(argp2);
47167 {
47168 PyThreadState* __tstate = wxPyBeginAllowThreads();
47169 (arg1)->SetCancelBitmap((wxBitmap const &)*arg2);
47170 wxPyEndAllowThreads(__tstate);
47171 if (PyErr_Occurred()) SWIG_fail;
47172 }
47173 resultobj = SWIG_Py_Void();
47174 return resultobj;
47175fail:
47176 return NULL;
47177}
47178
47179
47180SWIGINTERN PyObject *SearchCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47181 PyObject *obj;
47182 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
47183 SWIG_TypeNewClientData(SWIGTYPE_p_wxSearchCtrl, SWIG_NewClientData(obj));
47184 return SWIG_Py_Void();
47185}
47186
47187SWIGINTERN PyObject *SearchCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47188 return SWIG_Python_InitShadowInstance(args);
47189}
47190
b850e7f3
RD
47191static PyMethodDef SwigMethods[] = {
47192 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
47193 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
47194 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47195 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
47196 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
47197 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47198 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
47199 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
47200 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
47201 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
47202 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47203 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
47204 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
47205 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
47206 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
47207 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
47208 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
47209 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
47210 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47211 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47212 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
47213 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47214 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
47215 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
47216 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
47217 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
47218 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
47219 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
47220 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47221 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
47222 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
47223 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47224 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
47225 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
47226 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
47227 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
47228 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47229 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
47230 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
47231 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
47232 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
47233 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47234 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
47235 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47236 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
47237 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
47238 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
47239 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
47240 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47241 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
47242 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47243 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
47244 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
47245 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
47246 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47247 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
47248 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
47249 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
47250 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
47251 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
47252 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
47253 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
47254 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
47255 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
47256 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
47257 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
47258 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
47259 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
47260 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
47261 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
47262 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
47263 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
47264 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
47265 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
47266 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47267 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
47268 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
47269 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
47270 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
47271 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47272 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47273 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
47274 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47275 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
0d2c9713 47276 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
b850e7f3
RD
47277 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
47278 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47279 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
47280 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
47281 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
47282 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47283 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
47284 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
47285 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
47286 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
47287 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47288 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47289 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
47290 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
47291 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
47292 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
47293 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47294 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
47295 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
47296 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47297 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
47298 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
47299 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
47300 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
47301 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47302 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
47303 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47304 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
47305 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
47306 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47307 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
47308 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47309 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
47310 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47311 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47312 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47313 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
47314 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
47315 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
47316 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
47317 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47318 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
47319 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
47320 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47321 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47322 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47323 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47324 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
47325 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
47326 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47327 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
47328 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
47329 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
47330 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47331 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47332 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
47333 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47334 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47335 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47336 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47337 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47338 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
47339 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
47340 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
47341 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
47342 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47343 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
47344 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
47345 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
47346 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
47347 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
47348 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47349 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
47350 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
47351 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
47352 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47353 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47354 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47355 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
47356 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
47357 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47358 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47359 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
47360 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
47361 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
47362 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
47363 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
47364 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
47365 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
47366 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
47367 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
47368 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
47369 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
47370 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
47371 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
47372 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
47373 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
47374 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
47375 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
47376 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
47377 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
47378 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
47379 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
47380 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
47381 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47382 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
47383 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47384 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
47385 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
47386 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
47387 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
47388 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47389 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
47390 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
47391 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
47392 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
47393 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
47394 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
47395 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
47396 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
47397 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
47398 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
47399 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
47400 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
47401 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
47402 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
47403 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
47404 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 47405 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
47406 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
47407 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
47408 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
47409 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
47410 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47411 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47412 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47413 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
47414 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47415 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
47416 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47417 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47418 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
47419 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
47420 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
47421 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
47422 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
47423 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
47424 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
47425 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
47426 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
47427 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
47428 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
47429 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47430 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
47431 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
47432 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
47433 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47434 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
47435 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
d7645bfd 47436 { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 47437 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
b850e7f3
RD
47438 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
47439 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
47440 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
47441 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47442 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47443 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
47444 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
47445 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47446 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
47447 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
47448 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
47449 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
47450 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
47451 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
47452 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
47453 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47454 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
47455 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
47456 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
47457 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
47458 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
47459 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47460 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47461 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
47462 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
47463 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
47464 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
47465 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47466 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
47467 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
47468 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
47469 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47470 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47471 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47472 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47473 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
47474 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47475 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
47476 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
47477 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47478 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
47479 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47480 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
47481 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47482 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
47483 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47484 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
47485 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
47486 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47487 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47488 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
47489 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
47490 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47491 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
47492 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47493 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
47494 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
47495 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
47496 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
47497 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47498 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47499 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
47500 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
47501 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47502 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
47503 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
47504 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47505 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
47506 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
47507 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
47508 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47509 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
47510 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
47511 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
47512 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47513 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47514 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47515 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47516 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47517 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47518 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
47519 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
47520 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
47521 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
47522 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47523 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
47524 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47525 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47526 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
47527 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
47528 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
47529 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
47530 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47531 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
47532 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47533 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47534 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
47535 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
47536 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47537 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47538 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
47539 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47540 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
47541 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
47542 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
47543 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
47544 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
47545 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
47546 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
47547 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
47548 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
47549 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
47550 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
47551 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47552 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47553 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
47554 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
47555 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
47556 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
47557 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47558 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47559 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
47560 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47561 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
47562 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
47563 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
47564 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
47565 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
47566 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
47567 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47568 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47569 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47570 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47571 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
47572 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47573 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47574 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47575 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
47576 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
47577 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
47578 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
e9d6f3a4
RD
47579 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47580 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
554f62e9
RD
47581 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
47582 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 47583 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
554f62e9
RD
47584 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
47585 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
47586 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
47587 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
47588 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
47589 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 47590 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 47591 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 47592 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
47593 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47594 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
47595 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47596 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
47597 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47598 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
47599 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47600 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
47601 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
47602 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
47603 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
47604 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47605 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
47606 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
47607 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
47608 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
47609 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
47610 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47611 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
47612 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
47613 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
47614 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47615 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
47616 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
47617 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
47618 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
47619 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47620 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
47621 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
47622 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
47623 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47624 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
47625 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
47626 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
47627 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
47628 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47629 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
47630 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
47631 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
47632 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47633 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
47634 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
47635 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
47636 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
47637 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47638 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47639 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47640 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47641 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
47642 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
47643 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
47644 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
47645 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
47646 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
47647 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47648 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
47649 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
47650 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
47651 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
47652 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47653 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
47654 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
47655 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
47656 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
47657 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47658 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
47659 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
47660 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
47661 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
47662 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
47663 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
47664 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
47665 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
47666 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
47667 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
47668 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
47669 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
47670 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
47671 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
47672 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
47673 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
47674 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
47675 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
47676 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
47677 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
47678 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
47679 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47680 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47681 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47682 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47683 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47684 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47685 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
47686 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
47687 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
47688 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47689 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
47690 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
47691 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
47692 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47693 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47694 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
47695 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
47696 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
47697 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
47698 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
47699 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
47700 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
47701 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
47702 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
47703 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
47704 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
47705 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
47706 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47707 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47708 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47709 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
47710 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
47711 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47712 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47713 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47714 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47715 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47716 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
47717 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47718 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
47719 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
47720 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
47721 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
47722 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
47723 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
47724 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
47725 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
47726 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
47727 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
47728 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
47729 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
47730 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
47731 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47732 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
47733 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
47734 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
47735 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
47736 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
47737 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
47738 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
4976f996
RD
47739 { (char *)"ToolBar_SetToolNormalBitmap", (PyCFunction) _wrap_ToolBar_SetToolNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47740 { (char *)"ToolBar_SetToolDisabledBitmap", (PyCFunction) _wrap_ToolBar_SetToolDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
47741 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47742 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
47743 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
47744 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47745 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
47746 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47747 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47748 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47749 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
47750 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
47751 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
47752 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
47753 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
47754 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
47755 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
47756 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
47757 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
47758 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
47759 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
47760 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
47761 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
47762 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
47763 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
47764 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47765 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47766 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47767 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
47768 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
47769 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
47770 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47771 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47772 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
47773 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47774 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47775 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47776 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
47777 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
47778 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
47779 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
47780 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
47781 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
47782 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
47783 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
47784 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
47785 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
47786 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
47787 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
47788 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
47789 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
47790 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
47791 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
47792 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
47793 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
47794 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
47795 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
47796 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
47797 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
47798 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
47799 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
47800 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
47801 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
47802 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
47803 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
47804 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
47805 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
47806 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
47807 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
47808 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
47809 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
47810 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
47811 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
47812 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47813 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
47814 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
47815 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
47816 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
47817 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
47818 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
47819 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
47820 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
47821 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
47822 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
47823 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
47824 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
47825 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
47826 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
47827 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
47828 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
47829 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
47830 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
47831 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
47832 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
47833 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
47834 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
47835 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
47836 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
47837 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47838 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
47839 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
47840 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47841 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
47842 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47843 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47844 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47845 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47846 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47847 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47848 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
47849 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
47850 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
47851 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47852 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47853 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47854 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47855 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47856 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47857 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47858 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47859 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47860 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47861 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47862 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47863 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
47864 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47865 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
47866 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
47867 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
47868 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
47869 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
47870 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47871 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
47872 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47873 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47874 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47875 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47876 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47877 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
47878 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
47879 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
47880 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
47881 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
47882 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
47883 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
47884 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47885 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
47886 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
47887 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47888 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47889 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47890 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
47891 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47892 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
47893 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 47894 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
47895 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47896 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47897 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
47898 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47899 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
47900 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47901 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
47902 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
47903 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47904 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47905 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47906 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47907 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47908 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47909 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
47910 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
47911 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47912 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
47913 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
47914 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
47915 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
47916 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47917 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47918 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
47919 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
47920 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47921 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
47922 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47923 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47924 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47925 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
47926 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
47927 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
47928 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
47929 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
47930 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
47931 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
47932 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
47933 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
47934 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
47935 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
47936 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47937 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
47938 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
47939 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47940 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
47941 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47942 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
47943 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
47944 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 47945 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
554f62e9
RD
47946 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
47947 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47948 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
47949 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
47950 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
47951 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47952 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
47953 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
47954 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47955 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
47956 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47957 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
47958 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47959 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47960 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
47961 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
47962 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
47963 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47964 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
47965 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47966 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47967 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
47968 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
47969 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47970 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
47971 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47972 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
47973 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
47974 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47975 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47976 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47977 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47978 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47979 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47980 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47981 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47982 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47983 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47984 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47985 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47986 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47987 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47988 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47989 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47990 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
47991 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
47992 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47993 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47994 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47995 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47996 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47997 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47998 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47999 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
1ceb4f4d 48000 { (char *)"TreeCtrl_IsEmpty", (PyCFunction)_wrap_TreeCtrl_IsEmpty, METH_O, NULL},
554f62e9
RD
48001 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
48002 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
48003 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
48004 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
48005 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
48006 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
48007 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
48008 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
48009 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
48010 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
48011 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
48012 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
48013 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
48014 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
48015 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
48016 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
48017 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
48018 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
48019 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
48020 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
48021 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
48022 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
453fb36b
RD
48023 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
48024 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
554f62e9 48025 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
1ceb4f4d
RD
48026 { (char *)"TreeCtrl_CollapseAllChildren", (PyCFunction) _wrap_TreeCtrl_CollapseAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
48027 { (char *)"TreeCtrl_CollapseAll", (PyCFunction)_wrap_TreeCtrl_CollapseAll, METH_O, NULL},
554f62e9
RD
48028 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
48029 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
48030 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
48031 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
48032 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
48033 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
48034 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
48035 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
48036 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
48037 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
48038 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
48039 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
48040 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
48041 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
48042 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
48043 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
48044 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
48045 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
48046 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
48047 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
554f62e9
RD
48048 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
48049 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
48050 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48051 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
48052 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48053 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 48054 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
48055 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
48056 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
48057 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
48058 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
48059 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48060 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
48061 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
48062 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
48063 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
48064 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
48065 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
48066 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
48067 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
48068 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
48069 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
48070 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
48071 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
48072 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
48073 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
48074 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48075 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
48076 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48077 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
48078 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
48079 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
48080 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
48081 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
48082 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
48083 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
48084 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
48085 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
48086 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
48087 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
48088 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
48089 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
48090 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
48091 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
48092 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
48093 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
48094 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
48095 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
48096 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
48097 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48098 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
48099 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
48100 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
48101 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
48102 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
48103 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
48104 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
48105 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
48106 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
48107 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
48108 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48109 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
48110 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48111 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
48112 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
48113 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
48114 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
48115 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
48116 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 48117 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
554f62e9
RD
48118 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
48119 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
48120 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48121 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 48122 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
48123 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48124 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
48125 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48126 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
48127 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
48128 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
48129 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
48130 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
48131 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
48132 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
48133 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
48134 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
48135 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
48136 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
48137 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48138 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
48139 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
48140 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
48141 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
48142 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
48143 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
48144 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
48145 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
48146 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
48147 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
48148 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
48149 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
48150 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48151 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
48152 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48153 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
48154 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
48155 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
48156 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
48157 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
48158 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
48159 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
48160 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48161 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
48162 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48163 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
48164 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
48165 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
48166 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
48167 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
48168 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
48169 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
48170 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
48171 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
48172 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
48173 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
48174 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
48175 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48176 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
48177 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
48178 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
48179 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
48180 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
48181 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
48182 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
48183 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
48184 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
1eeb270e
RD
48185 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
48186 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
b02396e8
RD
48187 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
48188 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
48189 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
48190 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
48191 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
48192 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
48193 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
48194 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
48195 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48196 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
48197 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48198 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
48199 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
48200 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
48201 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
48202 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48203 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
48204 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
48205 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
48206 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
48207 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48208 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
48209 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48210 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
48211 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
48212 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
48213 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
48214 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
48215 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
48216 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48217 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
48218 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48219 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
48220 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
48221 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
48222 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
48223 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
48224 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
48225 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48226 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
48227 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48228 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
48229 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
48230 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48231 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
48232 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48233 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
48234 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
48235 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
48236 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
48237 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
48238 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
48239 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48240 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
48241 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
48242 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
48243 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
5172800e
RD
48244 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
48245 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
48246 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48247 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
48248 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
48249 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
48250 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
48251 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
48252 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
48253 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
48254 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48255 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
48256 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
48257 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
48258 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
3f7f284d
RD
48259 { (char *)"new_SearchCtrl", (PyCFunction) _wrap_new_SearchCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48260 { (char *)"new_PreSearchCtrl", (PyCFunction)_wrap_new_PreSearchCtrl, METH_NOARGS, NULL},
48261 { (char *)"SearchCtrl_Create", (PyCFunction) _wrap_SearchCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48262 { (char *)"SearchCtrl_SetMenu", (PyCFunction) _wrap_SearchCtrl_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
48263 { (char *)"SearchCtrl_GetMenu", (PyCFunction)_wrap_SearchCtrl_GetMenu, METH_O, NULL},
70b63a99
RD
48264 { (char *)"SearchCtrl_ShowSearchButton", (PyCFunction) _wrap_SearchCtrl_ShowSearchButton, METH_VARARGS | METH_KEYWORDS, NULL},
48265 { (char *)"SearchCtrl_IsSearchButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsSearchButtonVisible, METH_O, NULL},
48266 { (char *)"SearchCtrl_ShowCancelButton", (PyCFunction) _wrap_SearchCtrl_ShowCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
48267 { (char *)"SearchCtrl_IsCancelButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsCancelButtonVisible, METH_O, NULL},
6646ca90
RD
48268 { (char *)"SearchCtrl_SetDescriptiveText", (PyCFunction) _wrap_SearchCtrl_SetDescriptiveText, METH_VARARGS | METH_KEYWORDS, NULL},
48269 { (char *)"SearchCtrl_GetDescriptiveText", (PyCFunction)_wrap_SearchCtrl_GetDescriptiveText, METH_O, NULL},
3f7f284d
RD
48270 { (char *)"SearchCtrl_SetSearchBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48271 { (char *)"SearchCtrl_SetSearchMenuBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchMenuBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48272 { (char *)"SearchCtrl_SetCancelBitmap", (PyCFunction) _wrap_SearchCtrl_SetCancelBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48273 { (char *)"SearchCtrl_swigregister", SearchCtrl_swigregister, METH_VARARGS, NULL},
48274 { (char *)"SearchCtrl_swiginit", SearchCtrl_swiginit, METH_VARARGS, NULL},
554f62e9
RD
48275 { NULL, NULL, 0, NULL }
48276};
48277
48278
48279/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
48280
48281static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
48282 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
48283}
48284static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
48285 return (void *)((wxEvent *) ((wxMenuEvent *) x));
48286}
48287static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
48288 return (void *)((wxEvent *) ((wxCloseEvent *) x));
48289}
48290static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
48291 return (void *)((wxEvent *) ((wxMouseEvent *) x));
48292}
48293static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
48294 return (void *)((wxEvent *) ((wxEraseEvent *) x));
48295}
48296static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
48297 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48298}
48299static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
48300 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
48301}
48302static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
48303 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
48304}
b850e7f3
RD
48305static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
48306 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
48307}
48308static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
48309 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48310}
48311static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
48312 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
48313}
554f62e9
RD
48314static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
48315 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
48316}
48317static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
48318 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
48319}
48320static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
48321 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
48322}
554f62e9
RD
48323static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
48324 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
48325}
0f83f5da
RD
48326static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
48327 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
48328}
2131d850
RD
48329static void *_p_wxPyEventTo_p_wxEvent(void *x) {
48330 return (void *)((wxEvent *) ((wxPyEvent *) x));
48331}
554f62e9
RD
48332static void *_p_wxListEventTo_p_wxEvent(void *x) {
48333 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48334}
48335static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
48336 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48337}
48338static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
48339 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48340}
48341static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
48342 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48343}
48344static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
48345 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48346}
48347static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
48348 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48349}
48350static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
48351 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
48352}
48353static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
48354 return (void *)((wxEvent *) ((wxIdleEvent *) x));
48355}
48356static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
48357 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
48358}
48359static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
48360 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
48361}
48362static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
48363 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
48364}
48365static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
48366 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
48367}
48368static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
48369 return (void *)((wxEvent *) ((wxActivateEvent *) x));
48370}
48371static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
48372 return (void *)((wxEvent *) ((wxSizeEvent *) x));
48373}
48374static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
48375 return (void *)((wxEvent *) ((wxMoveEvent *) x));
48376}
48377static void *_p_wxDateEventTo_p_wxEvent(void *x) {
48378 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
48379}
5172800e
RD
48380static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
48381 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48382}
554f62e9
RD
48383static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
48384 return (void *)((wxEvent *) ((wxPaintEvent *) x));
48385}
48386static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
48387 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
48388}
0f83f5da
RD
48389static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
48390 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
48391}
554f62e9
RD
48392static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
48393 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
48394}
48395static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
48396 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
48397}
48398static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
48399 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
48400}
48401static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
48402 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48403}
48404static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
48405 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
48406}
704eda0c
RD
48407static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
48408 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
48409}
554f62e9
RD
48410static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
48411 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
48412}
48413static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
48414 return (void *)((wxEvent *) ((wxFocusEvent *) x));
48415}
48416static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
48417 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
48418}
48419static void *_p_wxShowEventTo_p_wxEvent(void *x) {
48420 return (void *)((wxEvent *) ((wxShowEvent *) x));
48421}
48422static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
48423 return (void *)((wxEvent *) ((wxCommandEvent *) x));
48424}
48425static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
48426 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
48427}
48428static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
48429 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48430}
48431static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
48432 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
48433}
48434static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
48435 return (void *)((wxEvent *) ((wxKeyEvent *) x));
48436}
48437static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
48438 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
48439}
48440static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
48441 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48442}
b850e7f3
RD
48443static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
48444 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
48445}
48446static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
48447 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
48448}
48449static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
48450 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
48451}
48452static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
48453 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
48454}
554f62e9
RD
48455static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
48456 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48457}
48458static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
48459 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48460}
48461static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
48462 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
48463}
48464static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
48465 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
48466}
48467static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
48468 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
48469}
48470static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
48471 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48472}
48473static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
48474 return (void *)((wxPyListCtrl *) ((wxListView *) x));
48475}
5172800e
RD
48476static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
48477 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
48478}
554f62e9
RD
48479static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
48480 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
48481}
48482static void *_p_wxToolBarTo_p_wxControl(void *x) {
48483 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
48484}
b850e7f3
RD
48485static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
48486 return (void *)((wxControl *) ((wxPickerBase *) x));
48487}
554f62e9
RD
48488static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
48489 return (void *)((wxControl *) ((wxToggleButton *) x));
48490}
48491static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
48492 return (void *)((wxControl *) ((wxRadioButton *) x));
48493}
3f7f284d
RD
48494static void *_p_wxSearchCtrlTo_p_wxControl(void *x) {
48495 return (void *)((wxControl *) (wxTextCtrl *) ((wxSearchCtrl *) x));
48496}
554f62e9
RD
48497static void *_p_wxToolbookTo_p_wxControl(void *x) {
48498 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
48499}
48500static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
48501 return (void *)((wxControl *) ((wxToolBarBase *) x));
48502}
48503static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
48504 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48505}
48506static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
48507 return (void *)((wxControl *) ((wxPyListCtrl *) x));
48508}
48509static void *_p_wxComboBoxTo_p_wxControl(void *x) {
48510 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48511}
48512static void *_p_wxPyControlTo_p_wxControl(void *x) {
48513 return (void *)((wxControl *) ((wxPyControl *) x));
48514}
48515static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
48516 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
48517}
48518static void *_p_wxScrollBarTo_p_wxControl(void *x) {
48519 return (void *)((wxControl *) ((wxScrollBar *) x));
48520}
48521static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
48522 return (void *)((wxControl *) ((wxControlWithItems *) x));
48523}
48524static void *_p_wxGaugeTo_p_wxControl(void *x) {
48525 return (void *)((wxControl *) ((wxGauge *) x));
48526}
48527static void *_p_wxStaticLineTo_p_wxControl(void *x) {
48528 return (void *)((wxControl *) ((wxStaticLine *) x));
48529}
48530static void *_p_wxChoicebookTo_p_wxControl(void *x) {
48531 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
48532}
48533static void *_p_wxListbookTo_p_wxControl(void *x) {
48534 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
48535}
704eda0c
RD
48536static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
48537 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
48538}
554f62e9
RD
48539static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
48540 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
48541}
48542static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
48543 return (void *)((wxControl *) ((wxCheckBox *) x));
48544}
48545static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
48546 return (void *)((wxControl *) ((wxRadioBox *) x));
48547}
48548static void *_p_wxChoiceTo_p_wxControl(void *x) {
48549 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
48550}
48551static void *_p_wxListBoxTo_p_wxControl(void *x) {
48552 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
48553}
48554static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
48555 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48556}
48557static void *_p_wxListViewTo_p_wxControl(void *x) {
48558 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
48559}
48560static void *_p_wxNotebookTo_p_wxControl(void *x) {
48561 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
48562}
48563static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
48564 return (void *)((wxControl *) ((wxStaticBitmap *) x));
48565}
48566static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
48567 return (void *)((wxControl *) ((wxSpinCtrl *) x));
48568}
48569static void *_p_wxStaticTextTo_p_wxControl(void *x) {
48570 return (void *)((wxControl *) ((wxStaticText *) x));
48571}
48572static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
48573 return (void *)((wxControl *) ((wxStaticBox *) x));
48574}
48575static void *_p_wxSliderTo_p_wxControl(void *x) {
48576 return (void *)((wxControl *) ((wxSlider *) x));
48577}
48578static void *_p_wxTreebookTo_p_wxControl(void *x) {
48579 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
48580}
48581static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
48582 return (void *)((wxControl *) ((wxSpinButton *) x));
48583}
48584static void *_p_wxButtonTo_p_wxControl(void *x) {
48585 return (void *)((wxControl *) ((wxButton *) x));
48586}
48587static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
48588 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
48589}
48590static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
48591 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48592}
48593static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
48594 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
48595}
b850e7f3
RD
48596static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
48597 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
48598}
48599static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
48600 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
48601}
48602static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
48603 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
48604}
48605static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
48606 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
48607}
554f62e9
RD
48608static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
48609 return (void *)((wxControl *) ((wxTextCtrl *) x));
48610}
48611static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
48612 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
48613}
48614static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
48615 return (void *)((wxChoice *) ((wxComboBox *) x));
48616}
48617static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
48618 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
48619}
3f7f284d
RD
48620static void *_p_wxSearchCtrlTo_p_wxTextCtrl(void *x) {
48621 return (void *)((wxTextCtrl *) ((wxSearchCtrl *) x));
48622}
554f62e9
RD
48623static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
48624 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48625}
48626static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
48627 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
48628}
48629static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
48630 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
48631}
48632static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
48633 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
48634}
48635static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
48636 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48637}
48638static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
48639 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48640}
48641static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
48642 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48643}
48644static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
48645 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48646}
48647static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
48648 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48649}
48650static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
48651 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
48652}
48653static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
48654 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
48655}
48656static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
48657 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
48658}
48659static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
48660 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
48661}
48662static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
48663 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
48664}
5172800e
RD
48665static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
48666 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48667}
4976f996
RD
48668static void *_p_wxEventBlockerTo_p_wxEvtHandler(void *x) {
48669 return (void *)((wxEvtHandler *) ((wxEventBlocker *) x));
48670}
554f62e9
RD
48671static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
48672 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
48673}
48674static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
48675 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48676}
48677static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
48678 return (void *)((wxEvtHandler *) ((wxValidator *) x));
48679}
48680static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
48681 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
48682}
48683static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
48684 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48685}
b850e7f3
RD
48686static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
48687 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
48688}
554f62e9
RD
48689static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
48690 return (void *)((wxEvtHandler *) ((wxMenu *) x));
48691}
48692static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
48693 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
48694}
48695static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
48696 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
48697}
3f7f284d
RD
48698static void *_p_wxSearchCtrlTo_p_wxEvtHandler(void *x) {
48699 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48700}
554f62e9
RD
48701static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
48702 return (void *)((wxEvtHandler *) ((wxWindow *) x));
48703}
4976f996
RD
48704static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
48705 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48706}
554f62e9
RD
48707static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
48708 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
48709}
48710static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
48711 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48712}
48713static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
48714 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48715}
48716static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
48717 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48718}
48719static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
48720 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48721}
48722static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
48723 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
48724}
48725static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
48726 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
48727}
48728static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
48729 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48730}
48731static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
48732 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
48733}
48734static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
48735 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48736}
48737static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
48738 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
48739}
48740static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
48741 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
48742}
48743static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
48744 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48745}
48746static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
48747 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48748}
704eda0c
RD
48749static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
48750 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48751}
554f62e9
RD
48752static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
48753 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48754}
48755static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
48756 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
48757}
48758static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
48759 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
48760}
48761static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
48762 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48763}
48764static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
48765 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48766}
48767static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
48768 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48769}
48770static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
48771 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48772}
48773static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
48774 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48775}
48776static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
48777 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48778}
48779static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
48780 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48781}
48782static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
48783 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
48784}
48785static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
48786 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
48787}
48788static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
48789 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
48790}
48791static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
48792 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48793}
48794static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
48795 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
48796}
48797static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
48798 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
48799}
48800static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
48801 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48802}
48803static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
48804 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48805}
48806static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
48807 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48808}
b850e7f3
RD
48809static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
48810 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48811}
48812static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
48813 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48814}
48815static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
48816 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48817}
48818static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
48819 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48820}
554f62e9
RD
48821static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
48822 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48823}
48824static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
48825 return (void *)((wxListBox *) ((wxCheckListBox *) x));
48826}
48827static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
48828 return (void *)((wxButton *) ((wxBitmapButton *) x));
48829}
48830static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
48831 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
48832}
48833static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
48834 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
48835}
48836static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
48837 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
48838}
48839static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
48840 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
48841}
48842static void *_p_wxToolbookTo_p_wxObject(void *x) {
48843 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48844}
4976f996
RD
48845static void *_p_wxEventBlockerTo_p_wxObject(void *x) {
48846 return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x));
48847}
554f62e9
RD
48848static void *_p_wxSizerItemTo_p_wxObject(void *x) {
48849 return (void *)((wxObject *) ((wxSizerItem *) x));
48850}
0f83f5da
RD
48851static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
48852 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
48853}
554f62e9
RD
48854static void *_p_wxScrollEventTo_p_wxObject(void *x) {
48855 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
48856}
48857static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
48858 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
48859}
48860static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
48861 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
48862}
48863static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
48864 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
48865}
48866static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
48867 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
48868}
48869static void *_p_wxSizerTo_p_wxObject(void *x) {
48870 return (void *)((wxObject *) ((wxSizer *) x));
48871}
48872static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
48873 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
48874}
48875static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
48876 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
48877}
48878static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
48879 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48880}
48881static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
48882 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
48883}
48884static void *_p_wxEventTo_p_wxObject(void *x) {
48885 return (void *)((wxObject *) ((wxEvent *) x));
48886}
554f62e9
RD
48887static void *_p_wxGridSizerTo_p_wxObject(void *x) {
48888 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
48889}
4976f996
RD
48890static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
48891 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
48892}
3f7f284d
RD
48893static void *_p_wxSearchCtrlTo_p_wxObject(void *x) {
48894 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48895}
554f62e9
RD
48896static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
48897 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
48898}
48899static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
48900 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48901}
b850e7f3
RD
48902static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
48903 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
48904}
554f62e9
RD
48905static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
48906 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48907}
48908static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
48909 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48910}
2131d850
RD
48911static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
48912 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
48913}
554f62e9
RD
48914static void *_p_wxPaintEventTo_p_wxObject(void *x) {
48915 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
48916}
48917static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
48918 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
48919}
48920static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
48921 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
48922}
48923static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
48924 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
48925}
48926static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
48927 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48928}
48929static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
48930 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
48931}
48932static void *_p_wxStaticLineTo_p_wxObject(void *x) {
48933 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
48934}
48935static void *_p_wxControlTo_p_wxObject(void *x) {
48936 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
48937}
48938static void *_p_wxPyControlTo_p_wxObject(void *x) {
48939 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
48940}
48941static void *_p_wxGaugeTo_p_wxObject(void *x) {
48942 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
48943}
48944static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
48945 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
48946}
48947static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
48948 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
48949}
48950static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
48951 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48952}
48953static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
48954 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
48955}
b850e7f3
RD
48956static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
48957 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
48958}
48959static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
48960 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48961}
48962static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
48963 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
48964}
554f62e9
RD
48965static void *_p_wxChoiceTo_p_wxObject(void *x) {
48966 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48967}
48968static void *_p_wxFSFileTo_p_wxObject(void *x) {
48969 return (void *)((wxObject *) ((wxFSFile *) x));
48970}
48971static void *_p_wxPySizerTo_p_wxObject(void *x) {
48972 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
48973}
48974static void *_p_wxTreebookTo_p_wxObject(void *x) {
48975 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48976}
48977static void *_p_wxListViewTo_p_wxObject(void *x) {
48978 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48979}
704eda0c
RD
48980static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
48981 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
48982}
554f62e9
RD
48983static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
48984 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48985}
48986static void *_p_wxNotebookTo_p_wxObject(void *x) {
48987 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48988}
48989static void *_p_wxPyEventTo_p_wxObject(void *x) {
48990 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
48991}
48992static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
48993 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
48994}
48995static void *_p_wxChoicebookTo_p_wxObject(void *x) {
48996 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48997}
48998static void *_p_wxListbookTo_p_wxObject(void *x) {
48999 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
49000}
49001static void *_p_wxShowEventTo_p_wxObject(void *x) {
49002 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
49003}
49004static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
49005 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
49006}
49007static void *_p_wxSliderTo_p_wxObject(void *x) {
49008 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
49009}
49010static void *_p_wxMenuItemTo_p_wxObject(void *x) {
49011 return (void *)((wxObject *) ((wxMenuItem *) x));
49012}
49013static void *_p_wxDateEventTo_p_wxObject(void *x) {
49014 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
49015}
49016static void *_p_wxIdleEventTo_p_wxObject(void *x) {
49017 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
49018}
49019static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
49020 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
49021}
49022static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
49023 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
49024}
49025static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
49026 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
49027}
49028static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
49029 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
49030}
49031static void *_p_wxSizeEventTo_p_wxObject(void *x) {
49032 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
49033}
49034static void *_p_wxMoveEventTo_p_wxObject(void *x) {
49035 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
49036}
49037static void *_p_wxActivateEventTo_p_wxObject(void *x) {
49038 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
49039}
49040static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
49041 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
49042}
49043static void *_p_wxContextHelpTo_p_wxObject(void *x) {
49044 return (void *)((wxObject *) ((wxContextHelp *) x));
49045}
5172800e
RD
49046static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
49047 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
49048}
554f62e9
RD
49049static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
49050 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
49051}
49052static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
49053 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
49054}
49055static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
49056 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
49057}
49058static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
49059 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
49060}
49061static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
49062 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
49063}
49064static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
49065 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
49066}
49067static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
49068 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
49069}
49070static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
49071 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
49072}
49073static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
49074 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
49075}
49076static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
49077 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
49078}
49079static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
49080 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
49081}
49082static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
49083 return (void *)((wxObject *) ((wxImageHandler *) x));
49084}
49085static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
49086 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
49087}
49088static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
49089 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
49090}
580080c5
RD
49091static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
49092 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
49093}
554f62e9
RD
49094static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
49095 return (void *)((wxObject *) ((wxEvtHandler *) x));
49096}
0f83f5da
RD
49097static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
49098 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
49099}
554f62e9
RD
49100static void *_p_wxListEventTo_p_wxObject(void *x) {
49101 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
49102}
49103static void *_p_wxListBoxTo_p_wxObject(void *x) {
49104 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
49105}
49106static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
49107 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
49108}
49109static void *_p_wxButtonTo_p_wxObject(void *x) {
49110 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
49111}
49112static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
49113 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
49114}
49115static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
49116 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
49117}
49118static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
49119 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
49120}
554f62e9
RD
49121static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
49122 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
49123}
580080c5
RD
49124static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
49125 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
49126}
554f62e9
RD
49127static void *_p_wxScrollBarTo_p_wxObject(void *x) {
49128 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
49129}
49130static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
49131 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
49132}
49133static void *_p_wxComboBoxTo_p_wxObject(void *x) {
49134 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
49135}
49136static void *_p_wxHelpEventTo_p_wxObject(void *x) {
49137 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
49138}
49139static void *_p_wxListItemTo_p_wxObject(void *x) {
49140 return (void *)((wxObject *) ((wxListItem *) x));
49141}
49142static void *_p_wxImageTo_p_wxObject(void *x) {
49143 return (void *)((wxObject *) ((wxImage *) x));
49144}
49145static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
49146 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
49147}
49148static void *_p_wxSpinEventTo_p_wxObject(void *x) {
49149 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
49150}
49151static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
49152 return (void *)((wxObject *) ((wxGenericDragImage *) x));
49153}
49154static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
49155 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
49156}
49157static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
49158 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49159}
49160static void *_p_wxListbookEventTo_p_wxObject(void *x) {
49161 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49162}
49163static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
49164 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49165}
49166static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
49167 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49168}
49169static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
49170 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49171}
49172static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
49173 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
49174}
49175static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
49176 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
49177}
49178static void *_p_wxKeyEventTo_p_wxObject(void *x) {
49179 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
49180}
49181static void *_p_wxWindowTo_p_wxObject(void *x) {
49182 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
49183}
49184static void *_p_wxMenuTo_p_wxObject(void *x) {
49185 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
49186}
49187static void *_p_wxMenuBarTo_p_wxObject(void *x) {
49188 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
49189}
49190static void *_p_wxFileSystemTo_p_wxObject(void *x) {
49191 return (void *)((wxObject *) ((wxFileSystem *) x));
49192}
5172800e
RD
49193static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
49194 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
49195}
554f62e9
RD
49196static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
49197 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
49198}
49199static void *_p_wxMenuEventTo_p_wxObject(void *x) {
49200 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
49201}
49202static void *_p_wxPyAppTo_p_wxObject(void *x) {
49203 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
49204}
49205static void *_p_wxCloseEventTo_p_wxObject(void *x) {
49206 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
49207}
49208static void *_p_wxMouseEventTo_p_wxObject(void *x) {
49209 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
49210}
49211static void *_p_wxEraseEventTo_p_wxObject(void *x) {
49212 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
49213}
49214static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
49215 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49216}
49217static void *_p_wxTreeEventTo_p_wxObject(void *x) {
49218 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
49219}
49220static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
49221 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
49222}
49223static void *_p_wxCommandEventTo_p_wxObject(void *x) {
49224 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
49225}
49226static void *_p_wxStaticTextTo_p_wxObject(void *x) {
49227 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
49228}
49229static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
49230 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
49231}
49232static void *_p_wxFocusEventTo_p_wxObject(void *x) {
49233 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
49234}
49235static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
49236 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
49237}
49238static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
49239 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
49240}
b850e7f3
RD
49241static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
49242 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
49243}
49244static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
49245 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
49246}
49247static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
49248 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
49249}
49250static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
49251 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
49252}
554f62e9
RD
49253static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
49254 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
49255}
704eda0c
RD
49256static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
49257 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
49258}
554f62e9
RD
49259static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
49260 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
49261}
49262static void *_p_wxToolBarTo_p_wxObject(void *x) {
49263 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
49264}
49265static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
49266 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
49267}
49268static void *_p_wxValidatorTo_p_wxObject(void *x) {
49269 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
49270}
5172800e
RD
49271static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
49272 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
49273}
554f62e9
RD
49274static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
49275 return (void *)((wxWindow *) ((wxMenuBar *) x));
49276}
49277static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
49278 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
49279}
49280static void *_p_wxToolBarTo_p_wxWindow(void *x) {
49281 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
49282}
b850e7f3
RD
49283static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
49284 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
49285}
554f62e9
RD
49286static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
49287 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
49288}
49289static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
49290 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
49291}
3f7f284d
RD
49292static void *_p_wxSearchCtrlTo_p_wxWindow(void *x) {
49293 return (void *)((wxWindow *) (wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
49294}
554f62e9
RD
49295static void *_p_wxToolbookTo_p_wxWindow(void *x) {
49296 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
49297}
49298static void *_p_wxControlTo_p_wxWindow(void *x) {
49299 return (void *)((wxWindow *) ((wxControl *) x));
49300}
49301static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
49302 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
49303}
49304static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
49305 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
49306}
49307static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
49308 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
49309}
49310static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
49311 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
49312}
49313static void *_p_wxPyControlTo_p_wxWindow(void *x) {
49314 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
49315}
49316static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
49317 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
49318}
49319static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
49320 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
49321}
49322static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
49323 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
49324}
49325static void *_p_wxGaugeTo_p_wxWindow(void *x) {
49326 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
49327}
49328static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
49329 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
49330}
49331static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
49332 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
49333}
49334static void *_p_wxListbookTo_p_wxWindow(void *x) {
49335 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
49336}
704eda0c
RD
49337static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
49338 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
49339}
554f62e9
RD
49340static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
49341 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
49342}
49343static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
49344 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
49345}
49346static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
49347 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
49348}
49349static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
49350 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
49351}
49352static void *_p_wxChoiceTo_p_wxWindow(void *x) {
49353 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
49354}
49355static void *_p_wxListBoxTo_p_wxWindow(void *x) {
49356 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
49357}
49358static void *_p_wxListViewTo_p_wxWindow(void *x) {
49359 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
49360}
49361static void *_p_wxNotebookTo_p_wxWindow(void *x) {
49362 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
49363}
49364static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
49365 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
49366}
49367static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
49368 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
49369}
49370static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
49371 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
49372}
49373static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
49374 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
49375}
49376static void *_p_wxSliderTo_p_wxWindow(void *x) {
49377 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
49378}
49379static void *_p_wxTreebookTo_p_wxWindow(void *x) {
49380 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
49381}
49382static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
49383 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
49384}
49385static void *_p_wxButtonTo_p_wxWindow(void *x) {
49386 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
49387}
49388static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
49389 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
49390}
49391static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
49392 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
49393}
49394static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
49395 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
49396}
b850e7f3
RD
49397static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
49398 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
49399}
49400static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
49401 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
49402}
49403static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
49404 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
49405}
49406static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
49407 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
49408}
554f62e9
RD
49409static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
49410 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
49411}
49412static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49413 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49414}
49415static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49416 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49417}
49418static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49419 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49420}
49421static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49422 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49423}
49424static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49425 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49426}
49427static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
49428 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
49429}
704eda0c
RD
49430static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
49431 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
49432}
2131d850
RD
49433static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
49434 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
49435}
b850e7f3
RD
49436static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
49437 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
49438}
49439static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
49440 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
49441}
49442static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
49443 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
49444}
554f62e9
RD
49445static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
49446 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
49447}
49448static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
49449 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
49450}
49451static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
49452 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
49453}
49454static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
49455 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
49456}
49457static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
49458 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
49459}
554f62e9
RD
49460static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
49461 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49462}
2131d850
RD
49463static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
49464 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49465}
554f62e9
RD
49466static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
49467 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49468}
49469static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
49470 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49471}
49472static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
49473 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49474}
49475static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
49476 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
49477}
49478static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
49479 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
49480}
49481static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
49482 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
49483}
5172800e
RD
49484static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
49485 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
49486}
554f62e9
RD
49487static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
49488 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49489}
49490static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
49491 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
49492}
49493static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
49494 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
49495}
49496static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
49497 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
49498}
49499static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
49500 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
49501}
49502static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
49503 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
49504}
49505static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
49506 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
49507}
49508static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
49509 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
49510}
49511static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
49512 return (void *)((wxControlWithItems *) ((wxChoice *) x));
49513}
49514static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
49515 return (void *)((wxControlWithItems *) ((wxListBox *) x));
49516}
49517static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
49518 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
49519}
49520static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
49521 return (void *)((wxValidator *) ((wxPyValidator *) x));
49522}
49523static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
49524static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
49525static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
49526static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
49527static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
49528static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
49529static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
49530static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
49531static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
49532static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
49533static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
49534static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
49535static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
49536static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
49537static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
49538static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
49539static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
49540static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
49541static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
49542static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
49543static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
5172800e
RD
49544static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
49545static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
554f62e9 49546static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
49547static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
49548static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
49549static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
49550static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
49551static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 49552static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
554f62e9
RD
49553static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
49554static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
49555static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
49556static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
49557static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
49558static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
49559static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
49560static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
49561static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
49562static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
49563static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
49564static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
49565static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
49566static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
49567static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
49568static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 49569static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
554f62e9
RD
49570static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
49571static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
49572static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
49573static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
49574static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
49575static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
49576static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
49577static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
0f83f5da 49578static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
554f62e9
RD
49579static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
49580static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
49581static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
49582static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
49583static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
49584static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
0f83f5da 49585static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
554f62e9
RD
49586static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
49587static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
49588static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
49589static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
49590static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
49591static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
49592static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
49593static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
49594static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
49595static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
49596static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
49597static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
4976f996 49598static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0};
554f62e9
RD
49599static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
49600static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
49601static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
b850e7f3
RD
49602static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
49603static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
554f62e9 49604static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
49605static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
49606static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
49607static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
49608static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
49609static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
49610static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
49611static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
49612static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
49613static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
49614static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
49615static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
49616static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
49617static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
49618static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
49619static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
49620static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
49621static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
49622static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
49623static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
49624static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
49625static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
3f7f284d 49626static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
554f62e9
RD
49627static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
49628static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
49629static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
49630static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
49631static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
49632static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
554f62e9 49633static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
0f83f5da 49634static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
554f62e9
RD
49635static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
49636static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
49637static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
49638static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
49639static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
554f62e9 49640static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
4976f996 49641static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
554f62e9
RD
49642static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
49643static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
49644static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
554f62e9
RD
49645static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
49646static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
4976f996 49647static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
3f7f284d 49648static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
5172800e 49649static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
49650static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
49651static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
49652static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
49653static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 49654static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 49655static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
554f62e9
RD
49656static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
49657static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
580080c5 49658static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
554f62e9 49659static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 49660static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
554f62e9
RD
49661static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
49662static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
49663static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 49664static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
554f62e9
RD
49665static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
49666static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
49667static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
49668static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
49669static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
49670static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
49671static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
49672static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
49673static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
3f7f284d 49674static swig_type_info _swigt__p_wxSearchCtrl = {"_p_wxSearchCtrl", "wxSearchCtrl *", 0, 0, (void*)0, 0};
554f62e9
RD
49675static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
49676static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
49677static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
49678static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
49679static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
49680static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
49681static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
49682static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
49683static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
49684static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
49685static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
49686static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
49687static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
49688static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
49689static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
49690static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
49691static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
49692static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
49693static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
49694static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
554f62e9
RD
49695static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
49696static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
49697static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
49698static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
49699static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
49700static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
49701static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 49702static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
554f62e9
RD
49703
49704static swig_type_info *swig_type_initial[] = {
49705 &_swigt__p_bool,
49706 &_swigt__p_char,
49707 &_swigt__p_form_ops_t,
49708 &_swigt__p_int,
49709 &_swigt__p_long,
49710 &_swigt__p_unsigned_char,
49711 &_swigt__p_unsigned_int,
49712 &_swigt__p_unsigned_long,
49713 &_swigt__p_void,
49714 &_swigt__p_wxANIHandler,
49715 &_swigt__p_wxAcceleratorTable,
49716 &_swigt__p_wxActivateEvent,
49717 &_swigt__p_wxArrayInt,
49718 &_swigt__p_wxArrayString,
49719 &_swigt__p_wxBMPHandler,
49720 &_swigt__p_wxBitmap,
49721 &_swigt__p_wxBitmapButton,
49722 &_swigt__p_wxBookCtrlBase,
49723 &_swigt__p_wxBookCtrlBaseEvent,
49724 &_swigt__p_wxBoxSizer,
49725 &_swigt__p_wxButton,
49726 &_swigt__p_wxCURHandler,
49727 &_swigt__p_wxCheckBox,
49728 &_swigt__p_wxCheckListBox,
49729 &_swigt__p_wxChildFocusEvent,
49730 &_swigt__p_wxChoice,
49731 &_swigt__p_wxChoicebook,
49732 &_swigt__p_wxChoicebookEvent,
2131d850 49733 &_swigt__p_wxClipboardTextEvent,
554f62e9 49734 &_swigt__p_wxCloseEvent,
5172800e
RD
49735 &_swigt__p_wxCollapsiblePane,
49736 &_swigt__p_wxCollapsiblePaneEvent,
554f62e9 49737 &_swigt__p_wxColour,
b850e7f3
RD
49738 &_swigt__p_wxColourPickerCtrl,
49739 &_swigt__p_wxColourPickerEvent,
554f62e9
RD
49740 &_swigt__p_wxComboBox,
49741 &_swigt__p_wxCommandEvent,
49742 &_swigt__p_wxContextHelp,
49743 &_swigt__p_wxContextHelpButton,
49744 &_swigt__p_wxContextMenuEvent,
49745 &_swigt__p_wxControl,
49746 &_swigt__p_wxControlWithItems,
49747 &_swigt__p_wxCursor,
49748 &_swigt__p_wxDC,
49749 &_swigt__p_wxDateEvent,
49750 &_swigt__p_wxDatePickerCtrl,
49751 &_swigt__p_wxDateTime,
49752 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 49753 &_swigt__p_wxDirPickerCtrl,
554f62e9
RD
49754 &_swigt__p_wxDisplayChangedEvent,
49755 &_swigt__p_wxDropFilesEvent,
49756 &_swigt__p_wxDuplexMode,
49757 &_swigt__p_wxEraseEvent,
49758 &_swigt__p_wxEvent,
4976f996 49759 &_swigt__p_wxEventBlocker,
554f62e9
RD
49760 &_swigt__p_wxEvtHandler,
49761 &_swigt__p_wxFSFile,
b850e7f3
RD
49762 &_swigt__p_wxFileDirPickerEvent,
49763 &_swigt__p_wxFilePickerCtrl,
554f62e9
RD
49764 &_swigt__p_wxFileSystem,
49765 &_swigt__p_wxFlexGridSizer,
49766 &_swigt__p_wxFocusEvent,
49767 &_swigt__p_wxFont,
b850e7f3
RD
49768 &_swigt__p_wxFontPickerCtrl,
49769 &_swigt__p_wxFontPickerEvent,
554f62e9
RD
49770 &_swigt__p_wxGBSizerItem,
49771 &_swigt__p_wxGIFHandler,
49772 &_swigt__p_wxGauge,
49773 &_swigt__p_wxGenericDirCtrl,
49774 &_swigt__p_wxGenericDragImage,
49775 &_swigt__p_wxGridBagSizer,
49776 &_swigt__p_wxGridSizer,
49777 &_swigt__p_wxHelpEvent,
49778 &_swigt__p_wxHelpProvider,
704eda0c
RD
49779 &_swigt__p_wxHyperlinkCtrl,
49780 &_swigt__p_wxHyperlinkEvent,
554f62e9
RD
49781 &_swigt__p_wxICOHandler,
49782 &_swigt__p_wxIcon,
49783 &_swigt__p_wxIconizeEvent,
49784 &_swigt__p_wxIdleEvent,
49785 &_swigt__p_wxImage,
49786 &_swigt__p_wxImageHandler,
49787 &_swigt__p_wxImageList,
49788 &_swigt__p_wxIndividualLayoutConstraint,
49789 &_swigt__p_wxInitDialogEvent,
49790 &_swigt__p_wxItemContainer,
49791 &_swigt__p_wxJPEGHandler,
49792 &_swigt__p_wxKeyEvent,
49793 &_swigt__p_wxLayoutConstraints,
49794 &_swigt__p_wxListBox,
49795 &_swigt__p_wxListEvent,
49796 &_swigt__p_wxListItem,
49797 &_swigt__p_wxListItemAttr,
49798 &_swigt__p_wxListView,
49799 &_swigt__p_wxListbook,
49800 &_swigt__p_wxListbookEvent,
49801 &_swigt__p_wxMaximizeEvent,
49802 &_swigt__p_wxMemoryDC,
49803 &_swigt__p_wxMenu,
49804 &_swigt__p_wxMenuBar,
49805 &_swigt__p_wxMenuEvent,
49806 &_swigt__p_wxMenuItem,
49807 &_swigt__p_wxMouseCaptureChangedEvent,
0f83f5da 49808 &_swigt__p_wxMouseCaptureLostEvent,
554f62e9
RD
49809 &_swigt__p_wxMouseEvent,
49810 &_swigt__p_wxMoveEvent,
49811 &_swigt__p_wxNavigationKeyEvent,
49812 &_swigt__p_wxNcPaintEvent,
49813 &_swigt__p_wxNotebook,
49814 &_swigt__p_wxNotebookEvent,
49815 &_swigt__p_wxNotifyEvent,
49816 &_swigt__p_wxObject,
49817 &_swigt__p_wxPCXHandler,
49818 &_swigt__p_wxPNGHandler,
49819 &_swigt__p_wxPNMHandler,
49820 &_swigt__p_wxPaintEvent,
49821 &_swigt__p_wxPaletteChangedEvent,
49822 &_swigt__p_wxPaperSize,
b850e7f3 49823 &_swigt__p_wxPickerBase,
554f62e9
RD
49824 &_swigt__p_wxPoint,
49825 &_swigt__p_wxPyApp,
49826 &_swigt__p_wxPyCommandEvent,
49827 &_swigt__p_wxPyControl,
49828 &_swigt__p_wxPyEvent,
49829 &_swigt__p_wxPyImageHandler,
49830 &_swigt__p_wxPyListCtrl,
49831 &_swigt__p_wxPySizer,
49832 &_swigt__p_wxPyTreeCtrl,
49833 &_swigt__p_wxPyTreeItemData,
49834 &_swigt__p_wxPyValidator,
49835 &_swigt__p_wxQueryNewPaletteEvent,
49836 &_swigt__p_wxRadioBox,
49837 &_swigt__p_wxRadioButton,
49838 &_swigt__p_wxRect,
49839 &_swigt__p_wxScrollBar,
49840 &_swigt__p_wxScrollEvent,
49841 &_swigt__p_wxScrollWinEvent,
3f7f284d 49842 &_swigt__p_wxSearchCtrl,
554f62e9
RD
49843 &_swigt__p_wxSetCursorEvent,
49844 &_swigt__p_wxShowEvent,
49845 &_swigt__p_wxSimpleHelpProvider,
49846 &_swigt__p_wxSize,
49847 &_swigt__p_wxSizeEvent,
49848 &_swigt__p_wxSizer,
49849 &_swigt__p_wxSizerItem,
49850 &_swigt__p_wxSlider,
49851 &_swigt__p_wxSpinButton,
49852 &_swigt__p_wxSpinCtrl,
49853 &_swigt__p_wxSpinEvent,
49854 &_swigt__p_wxStaticBitmap,
49855 &_swigt__p_wxStaticBox,
49856 &_swigt__p_wxStaticBoxSizer,
49857 &_swigt__p_wxStaticLine,
49858 &_swigt__p_wxStaticText,
49859 &_swigt__p_wxStdDialogButtonSizer,
49860 &_swigt__p_wxString,
49861 &_swigt__p_wxSysColourChangedEvent,
580080c5 49862 &_swigt__p_wxTGAHandler,
554f62e9
RD
49863 &_swigt__p_wxTIFFHandler,
49864 &_swigt__p_wxTextAttr,
49865 &_swigt__p_wxTextCtrl,
49866 &_swigt__p_wxTextUrlEvent,
49867 &_swigt__p_wxToggleButton,
49868 &_swigt__p_wxToolBar,
49869 &_swigt__p_wxToolBarBase,
49870 &_swigt__p_wxToolBarToolBase,
49871 &_swigt__p_wxToolbook,
49872 &_swigt__p_wxToolbookEvent,
554f62e9
RD
49873 &_swigt__p_wxTreeEvent,
49874 &_swigt__p_wxTreeItemId,
49875 &_swigt__p_wxTreebook,
49876 &_swigt__p_wxTreebookEvent,
49877 &_swigt__p_wxUpdateUIEvent,
49878 &_swigt__p_wxValidator,
49879 &_swigt__p_wxVisualAttributes,
49880 &_swigt__p_wxWindow,
b850e7f3 49881 &_swigt__p_wxWindowBase,
554f62e9
RD
49882 &_swigt__p_wxWindowCreateEvent,
49883 &_swigt__p_wxWindowDestroyEvent,
49884 &_swigt__p_wxXPMHandler,
49885};
49886
49887static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
49888static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
49889static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
49890static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
49891static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
49892static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
49893static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
49894static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
49895static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
49896static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
49897static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
49898static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
49899static 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}};
49900static 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}};
49901static 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}};
49902static 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}};
49903static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
49904static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
49905static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxChoice, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
49906static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
49907static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e
RD
49908static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
49909static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 49910static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
49911static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49912static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49913static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
49914static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 49915static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49916static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
49917static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
49918static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49919static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49920static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
49921static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
49922static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e 49923static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49924static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
49925static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49926static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxControl, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49927static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControlWithItems, 0, 0}, {&_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}};
49928static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
49929static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
49930static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49931static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
49932static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 49933static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49934static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
49935static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49936static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
49937static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
49938static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
49939static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
49940static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 49941static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49942static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
49943static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49944static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49945static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
49946static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49947static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 49948static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49949static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49950static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49951static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49952static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49953static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49954static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49955static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
49956static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49957static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
49958static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49959static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e 49960static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
4976f996 49961static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49962static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
49963static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
49964static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
4976f996 49965static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEventBlocker, _p_wxEventBlockerTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
49966static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49967static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 49968static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
49969static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49970static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49971static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
49972static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
49973static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
49974static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
49975static 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
49976static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
49977static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49978static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
49979static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
49980static 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}};
49981static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49982static 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}};
49983static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
49984static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
49985static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
49986static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
49987static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
49988static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49989static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49990static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49991static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
49992static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
49993static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49994static 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}};
49995static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 49996static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 49997static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
49998static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
49999static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
50000static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
50001static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
50002static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 50003static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
4976f996 50004static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
50005static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
50006static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
50007static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
50008static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
50009static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
4976f996 50010static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 50011static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
5172800e 50012static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
50013static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
50014static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
50015static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
50016static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 50017static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 50018static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
50019static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
50020static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 50021static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 50022static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 50023static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
50024static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
50025static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
4976f996 50026static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxEventBlocker, _p_wxEventBlockerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
554f62e9 50027static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 50028static 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}};
554f62e9
RD
50029static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
50030static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
50031static 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}};
50032static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
50033static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
50034static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
50035static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
50036static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
50037static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 50038static swig_cast_info _swigc__p_wxSearchCtrl[] = { {&_swigt__p_wxSearchCtrl, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
50039static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
50040static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
50041static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
50042static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
50043static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
50044static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
50045static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
50046static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
50047static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
50048static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
50049static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
50050static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 50051static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxTextCtrl, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
50052static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
50053static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
50054static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
50055static 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}};
50056static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
50057static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
50058static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
50059static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
50060static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
50061static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
50062static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
50063static 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}};
50064static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 50065static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
b850e7f3 50066static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
50067
50068static swig_cast_info *swig_cast_initial[] = {
50069 _swigc__p_bool,
50070 _swigc__p_char,
50071 _swigc__p_form_ops_t,
50072 _swigc__p_int,
50073 _swigc__p_long,
50074 _swigc__p_unsigned_char,
50075 _swigc__p_unsigned_int,
50076 _swigc__p_unsigned_long,
50077 _swigc__p_void,
50078 _swigc__p_wxANIHandler,
50079 _swigc__p_wxAcceleratorTable,
50080 _swigc__p_wxActivateEvent,
50081 _swigc__p_wxArrayInt,
50082 _swigc__p_wxArrayString,
50083 _swigc__p_wxBMPHandler,
50084 _swigc__p_wxBitmap,
50085 _swigc__p_wxBitmapButton,
50086 _swigc__p_wxBookCtrlBase,
50087 _swigc__p_wxBookCtrlBaseEvent,
50088 _swigc__p_wxBoxSizer,
50089 _swigc__p_wxButton,
50090 _swigc__p_wxCURHandler,
50091 _swigc__p_wxCheckBox,
50092 _swigc__p_wxCheckListBox,
50093 _swigc__p_wxChildFocusEvent,
50094 _swigc__p_wxChoice,
50095 _swigc__p_wxChoicebook,
50096 _swigc__p_wxChoicebookEvent,
2131d850 50097 _swigc__p_wxClipboardTextEvent,
554f62e9 50098 _swigc__p_wxCloseEvent,
5172800e
RD
50099 _swigc__p_wxCollapsiblePane,
50100 _swigc__p_wxCollapsiblePaneEvent,
554f62e9 50101 _swigc__p_wxColour,
b850e7f3
RD
50102 _swigc__p_wxColourPickerCtrl,
50103 _swigc__p_wxColourPickerEvent,
554f62e9
RD
50104 _swigc__p_wxComboBox,
50105 _swigc__p_wxCommandEvent,
50106 _swigc__p_wxContextHelp,
50107 _swigc__p_wxContextHelpButton,
50108 _swigc__p_wxContextMenuEvent,
50109 _swigc__p_wxControl,
50110 _swigc__p_wxControlWithItems,
50111 _swigc__p_wxCursor,
50112 _swigc__p_wxDC,
50113 _swigc__p_wxDateEvent,
50114 _swigc__p_wxDatePickerCtrl,
50115 _swigc__p_wxDateTime,
50116 _swigc__p_wxDirFilterListCtrl,
b850e7f3 50117 _swigc__p_wxDirPickerCtrl,
554f62e9
RD
50118 _swigc__p_wxDisplayChangedEvent,
50119 _swigc__p_wxDropFilesEvent,
50120 _swigc__p_wxDuplexMode,
50121 _swigc__p_wxEraseEvent,
50122 _swigc__p_wxEvent,
4976f996 50123 _swigc__p_wxEventBlocker,
554f62e9
RD
50124 _swigc__p_wxEvtHandler,
50125 _swigc__p_wxFSFile,
b850e7f3
RD
50126 _swigc__p_wxFileDirPickerEvent,
50127 _swigc__p_wxFilePickerCtrl,
554f62e9
RD
50128 _swigc__p_wxFileSystem,
50129 _swigc__p_wxFlexGridSizer,
50130 _swigc__p_wxFocusEvent,
50131 _swigc__p_wxFont,
b850e7f3
RD
50132 _swigc__p_wxFontPickerCtrl,
50133 _swigc__p_wxFontPickerEvent,
554f62e9
RD
50134 _swigc__p_wxGBSizerItem,
50135 _swigc__p_wxGIFHandler,
50136 _swigc__p_wxGauge,
50137 _swigc__p_wxGenericDirCtrl,
50138 _swigc__p_wxGenericDragImage,
50139 _swigc__p_wxGridBagSizer,
50140 _swigc__p_wxGridSizer,
50141 _swigc__p_wxHelpEvent,
50142 _swigc__p_wxHelpProvider,
704eda0c
RD
50143 _swigc__p_wxHyperlinkCtrl,
50144 _swigc__p_wxHyperlinkEvent,
554f62e9
RD
50145 _swigc__p_wxICOHandler,
50146 _swigc__p_wxIcon,
50147 _swigc__p_wxIconizeEvent,
50148 _swigc__p_wxIdleEvent,
50149 _swigc__p_wxImage,
50150 _swigc__p_wxImageHandler,
50151 _swigc__p_wxImageList,
50152 _swigc__p_wxIndividualLayoutConstraint,
50153 _swigc__p_wxInitDialogEvent,
50154 _swigc__p_wxItemContainer,
50155 _swigc__p_wxJPEGHandler,
50156 _swigc__p_wxKeyEvent,
50157 _swigc__p_wxLayoutConstraints,
50158 _swigc__p_wxListBox,
50159 _swigc__p_wxListEvent,
50160 _swigc__p_wxListItem,
50161 _swigc__p_wxListItemAttr,
50162 _swigc__p_wxListView,
50163 _swigc__p_wxListbook,
50164 _swigc__p_wxListbookEvent,
50165 _swigc__p_wxMaximizeEvent,
50166 _swigc__p_wxMemoryDC,
50167 _swigc__p_wxMenu,
50168 _swigc__p_wxMenuBar,
50169 _swigc__p_wxMenuEvent,
50170 _swigc__p_wxMenuItem,
50171 _swigc__p_wxMouseCaptureChangedEvent,
0f83f5da 50172 _swigc__p_wxMouseCaptureLostEvent,
554f62e9
RD
50173 _swigc__p_wxMouseEvent,
50174 _swigc__p_wxMoveEvent,
50175 _swigc__p_wxNavigationKeyEvent,
50176 _swigc__p_wxNcPaintEvent,
50177 _swigc__p_wxNotebook,
50178 _swigc__p_wxNotebookEvent,
50179 _swigc__p_wxNotifyEvent,
50180 _swigc__p_wxObject,
50181 _swigc__p_wxPCXHandler,
50182 _swigc__p_wxPNGHandler,
50183 _swigc__p_wxPNMHandler,
50184 _swigc__p_wxPaintEvent,
50185 _swigc__p_wxPaletteChangedEvent,
50186 _swigc__p_wxPaperSize,
b850e7f3 50187 _swigc__p_wxPickerBase,
554f62e9
RD
50188 _swigc__p_wxPoint,
50189 _swigc__p_wxPyApp,
50190 _swigc__p_wxPyCommandEvent,
50191 _swigc__p_wxPyControl,
50192 _swigc__p_wxPyEvent,
50193 _swigc__p_wxPyImageHandler,
50194 _swigc__p_wxPyListCtrl,
50195 _swigc__p_wxPySizer,
50196 _swigc__p_wxPyTreeCtrl,
50197 _swigc__p_wxPyTreeItemData,
50198 _swigc__p_wxPyValidator,
50199 _swigc__p_wxQueryNewPaletteEvent,
50200 _swigc__p_wxRadioBox,
50201 _swigc__p_wxRadioButton,
50202 _swigc__p_wxRect,
50203 _swigc__p_wxScrollBar,
50204 _swigc__p_wxScrollEvent,
50205 _swigc__p_wxScrollWinEvent,
3f7f284d 50206 _swigc__p_wxSearchCtrl,
554f62e9
RD
50207 _swigc__p_wxSetCursorEvent,
50208 _swigc__p_wxShowEvent,
50209 _swigc__p_wxSimpleHelpProvider,
50210 _swigc__p_wxSize,
50211 _swigc__p_wxSizeEvent,
50212 _swigc__p_wxSizer,
50213 _swigc__p_wxSizerItem,
50214 _swigc__p_wxSlider,
50215 _swigc__p_wxSpinButton,
50216 _swigc__p_wxSpinCtrl,
50217 _swigc__p_wxSpinEvent,
50218 _swigc__p_wxStaticBitmap,
50219 _swigc__p_wxStaticBox,
50220 _swigc__p_wxStaticBoxSizer,
50221 _swigc__p_wxStaticLine,
50222 _swigc__p_wxStaticText,
50223 _swigc__p_wxStdDialogButtonSizer,
50224 _swigc__p_wxString,
50225 _swigc__p_wxSysColourChangedEvent,
580080c5 50226 _swigc__p_wxTGAHandler,
554f62e9
RD
50227 _swigc__p_wxTIFFHandler,
50228 _swigc__p_wxTextAttr,
50229 _swigc__p_wxTextCtrl,
50230 _swigc__p_wxTextUrlEvent,
50231 _swigc__p_wxToggleButton,
50232 _swigc__p_wxToolBar,
50233 _swigc__p_wxToolBarBase,
50234 _swigc__p_wxToolBarToolBase,
50235 _swigc__p_wxToolbook,
50236 _swigc__p_wxToolbookEvent,
554f62e9
RD
50237 _swigc__p_wxTreeEvent,
50238 _swigc__p_wxTreeItemId,
50239 _swigc__p_wxTreebook,
50240 _swigc__p_wxTreebookEvent,
50241 _swigc__p_wxUpdateUIEvent,
50242 _swigc__p_wxValidator,
50243 _swigc__p_wxVisualAttributes,
50244 _swigc__p_wxWindow,
b850e7f3 50245 _swigc__p_wxWindowBase,
554f62e9
RD
50246 _swigc__p_wxWindowCreateEvent,
50247 _swigc__p_wxWindowDestroyEvent,
50248 _swigc__p_wxXPMHandler,
50249};
50250
50251
50252/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
50253
50254static swig_const_info swig_const_table[] = {
50255{0, 0, 0, 0.0, 0, 0}};
50256
50257#ifdef __cplusplus
50258}
50259#endif
50260/* -----------------------------------------------------------------------------
50261 * Type initialization:
50262 * This problem is tough by the requirement that no dynamic
50263 * memory is used. Also, since swig_type_info structures store pointers to
50264 * swig_cast_info structures and swig_cast_info structures store pointers back
50265 * to swig_type_info structures, we need some lookup code at initialization.
50266 * The idea is that swig generates all the structures that are needed.
50267 * The runtime then collects these partially filled structures.
50268 * The SWIG_InitializeModule function takes these initial arrays out of
50269 * swig_module, and does all the lookup, filling in the swig_module.types
50270 * array with the correct data and linking the correct swig_cast_info
50271 * structures together.
50272 *
50273 * The generated swig_type_info structures are assigned staticly to an initial
50274 * array. We just loop though that array, and handle each type individually.
50275 * First we lookup if this type has been already loaded, and if so, use the
50276 * loaded structure instead of the generated one. Then we have to fill in the
50277 * cast linked list. The cast data is initially stored in something like a
50278 * two-dimensional array. Each row corresponds to a type (there are the same
50279 * number of rows as there are in the swig_type_initial array). Each entry in
50280 * a column is one of the swig_cast_info structures for that type.
50281 * The cast_initial array is actually an array of arrays, because each row has
50282 * a variable number of columns. So to actually build the cast linked list,
50283 * we find the array of casts associated with the type, and loop through it
50284 * adding the casts to the list. The one last trick we need to do is making
50285 * sure the type pointer in the swig_cast_info struct is correct.
50286 *
50287 * First off, we lookup the cast->type name to see if it is already loaded.
50288 * There are three cases to handle:
50289 * 1) If the cast->type has already been loaded AND the type we are adding
50290 * casting info to has not been loaded (it is in this module), THEN we
50291 * replace the cast->type pointer with the type pointer that has already
50292 * been loaded.
50293 * 2) If BOTH types (the one we are adding casting info to, and the
50294 * cast->type) are loaded, THEN the cast info has already been loaded by
50295 * the previous module so we just ignore it.
50296 * 3) Finally, if cast->type has not already been loaded, then we add that
50297 * swig_cast_info to the linked list (because the cast->type) pointer will
50298 * be correct.
50299 * ----------------------------------------------------------------------------- */
50300
50301#ifdef __cplusplus
50302extern "C" {
50303#if 0
50304} /* c-mode */
50305#endif
50306#endif
50307
50308#if 0
50309#define SWIGRUNTIME_DEBUG
50310#endif
50311
50312SWIGRUNTIME void
50313SWIG_InitializeModule(void *clientdata) {
50314 size_t i;
50315 swig_module_info *module_head;
50316 static int init_run = 0;
50317
50318 clientdata = clientdata;
50319
50320 if (init_run) return;
50321 init_run = 1;
50322
50323 /* Initialize the swig_module */
50324 swig_module.type_initial = swig_type_initial;
50325 swig_module.cast_initial = swig_cast_initial;
50326
50327 /* Try and load any already created modules */
50328 module_head = SWIG_GetModule(clientdata);
50329 if (module_head) {
50330 swig_module.next = module_head->next;
50331 module_head->next = &swig_module;
50332 } else {
50333 /* This is the first module loaded */
50334 swig_module.next = &swig_module;
50335 SWIG_SetModule(clientdata, &swig_module);
50336 }
50337
50338 /* Now work on filling in swig_module.types */
50339#ifdef SWIGRUNTIME_DEBUG
50340 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
50341#endif
50342 for (i = 0; i < swig_module.size; ++i) {
50343 swig_type_info *type = 0;
50344 swig_type_info *ret;
50345 swig_cast_info *cast;
d55e5bfc 50346
554f62e9
RD
50347#ifdef SWIGRUNTIME_DEBUG
50348 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
50349#endif
d55e5bfc 50350
554f62e9
RD
50351 /* if there is another module already loaded */
50352 if (swig_module.next != &swig_module) {
50353 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
093d3ff1 50354 }
554f62e9
RD
50355 if (type) {
50356 /* Overwrite clientdata field */
50357#ifdef SWIGRUNTIME_DEBUG
50358 printf("SWIG_InitializeModule: found type %s\n", type->name);
50359#endif
50360 if (swig_module.type_initial[i]->clientdata) {
50361 type->clientdata = swig_module.type_initial[i]->clientdata;
50362#ifdef SWIGRUNTIME_DEBUG
50363 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
50364#endif
50365 }
50366 } else {
50367 type = swig_module.type_initial[i];
093d3ff1 50368 }
d55e5bfc 50369
554f62e9
RD
50370 /* Insert casting types */
50371 cast = swig_module.cast_initial[i];
50372 while (cast->type) {
50373 /* Don't need to add information already in the list */
50374 ret = 0;
50375#ifdef SWIGRUNTIME_DEBUG
50376 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
50377#endif
50378 if (swig_module.next != &swig_module) {
50379 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
50380#ifdef SWIGRUNTIME_DEBUG
50381 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
50382#endif
50383 }
50384 if (ret) {
50385 if (type == swig_module.type_initial[i]) {
50386#ifdef SWIGRUNTIME_DEBUG
50387 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
50388#endif
50389 cast->type = ret;
50390 ret = 0;
50391 } else {
50392 /* Check for casting already in the list */
50393 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
50394#ifdef SWIGRUNTIME_DEBUG
50395 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
50396#endif
50397 if (!ocast) ret = 0;
50398 }
50399 }
50400
50401 if (!ret) {
50402#ifdef SWIGRUNTIME_DEBUG
50403 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
50404#endif
50405 if (type->cast) {
50406 type->cast->prev = cast;
50407 cast->next = type->cast;
50408 }
50409 type->cast = cast;
50410 }
50411 cast++;
093d3ff1 50412 }
554f62e9
RD
50413 /* Set entry in modules->types array equal to the type */
50414 swig_module.types[i] = type;
50415 }
50416 swig_module.types[i] = 0;
50417
50418#ifdef SWIGRUNTIME_DEBUG
50419 printf("**** SWIG_InitializeModule: Cast List ******\n");
50420 for (i = 0; i < swig_module.size; ++i) {
50421 int j = 0;
50422 swig_cast_info *cast = swig_module.cast_initial[i];
50423 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
50424 while (cast->type) {
50425 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
50426 cast++;
50427 ++j;
50428 }
50429 printf("---- Total casts: %d\n",j);
50430 }
50431 printf("**** SWIG_InitializeModule: Cast List ******\n");
50432#endif
50433}
50434
50435/* This function will propagate the clientdata field of type to
50436* any new swig_type_info structures that have been added into the list
50437* of equivalent types. It is like calling
50438* SWIG_TypeClientData(type, clientdata) a second time.
50439*/
50440SWIGRUNTIME void
50441SWIG_PropagateClientData(void) {
50442 size_t i;
50443 swig_cast_info *equiv;
50444 static int init_run = 0;
50445
50446 if (init_run) return;
50447 init_run = 1;
50448
50449 for (i = 0; i < swig_module.size; i++) {
50450 if (swig_module.types[i]->clientdata) {
50451 equiv = swig_module.types[i]->cast;
50452 while (equiv) {
50453 if (!equiv->converter) {
50454 if (equiv->type && !equiv->type->clientdata)
50455 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
50456 }
50457 equiv = equiv->next;
50458 }
093d3ff1 50459 }
554f62e9
RD
50460 }
50461}
50462
50463#ifdef __cplusplus
50464#if 0
50465{
50466 /* c-mode */
50467#endif
50468}
50469#endif
50470
50471
50472
50473#ifdef __cplusplus
50474extern "C" {
50475#endif
50476
50477 /* Python-specific SWIG API */
50478#define SWIG_newvarlink() SWIG_Python_newvarlink()
50479#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
50480#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
50481
50482 /* -----------------------------------------------------------------------------
50483 * global variable support code.
50484 * ----------------------------------------------------------------------------- */
50485
50486 typedef struct swig_globalvar {
50487 char *name; /* Name of global variable */
50488 PyObject *(*get_attr)(void); /* Return the current value */
50489 int (*set_attr)(PyObject *); /* Set the value */
50490 struct swig_globalvar *next;
50491 } swig_globalvar;
50492
50493 typedef struct swig_varlinkobject {
50494 PyObject_HEAD
50495 swig_globalvar *vars;
50496 } swig_varlinkobject;
50497
50498 SWIGINTERN PyObject *
50499 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
50500 return PyString_FromString("<Swig global variables>");
50501 }
50502
50503 SWIGINTERN PyObject *
50504 swig_varlink_str(swig_varlinkobject *v) {
50505 PyObject *str = PyString_FromString("(");
50506 swig_globalvar *var;
50507 for (var = v->vars; var; var=var->next) {
50508 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
50509 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
50510 }
50511 PyString_ConcatAndDel(&str,PyString_FromString(")"));
50512 return str;
50513 }
50514
50515 SWIGINTERN int
50516 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
50517 PyObject *str = swig_varlink_str(v);
50518 fprintf(fp,"Swig global variables ");
50519 fprintf(fp,"%s\n", PyString_AsString(str));
50520 Py_DECREF(str);
50521 return 0;
50522 }
50523
50524 SWIGINTERN void
50525 swig_varlink_dealloc(swig_varlinkobject *v) {
50526 swig_globalvar *var = v->vars;
50527 while (var) {
50528 swig_globalvar *n = var->next;
50529 free(var->name);
50530 free(var);
50531 var = n;
093d3ff1 50532 }
554f62e9
RD
50533 }
50534
50535 SWIGINTERN PyObject *
50536 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
50537 PyObject *res = NULL;
50538 swig_globalvar *var = v->vars;
50539 while (var) {
50540 if (strcmp(var->name,n) == 0) {
50541 res = (*var->get_attr)();
50542 break;
50543 }
50544 var = var->next;
093d3ff1 50545 }
554f62e9
RD
50546 if (res == NULL && !PyErr_Occurred()) {
50547 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 50548 }
554f62e9
RD
50549 return res;
50550 }
50551
50552 SWIGINTERN int
50553 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
50554 int res = 1;
50555 swig_globalvar *var = v->vars;
50556 while (var) {
50557 if (strcmp(var->name,n) == 0) {
50558 res = (*var->set_attr)(p);
50559 break;
50560 }
50561 var = var->next;
093d3ff1 50562 }
554f62e9
RD
50563 if (res == 1 && !PyErr_Occurred()) {
50564 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 50565 }
554f62e9
RD
50566 return res;
50567 }
50568
50569 SWIGINTERN PyTypeObject*
50570 swig_varlink_type(void) {
50571 static char varlink__doc__[] = "Swig var link object";
50572 static PyTypeObject varlink_type;
50573 static int type_init = 0;
50574 if (!type_init) {
50575 const PyTypeObject tmp
50576 = {
50577 PyObject_HEAD_INIT(NULL)
50578 0, /* Number of items in variable part (ob_size) */
50579 (char *)"swigvarlink", /* Type name (tp_name) */
50580 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
50581 0, /* Itemsize (tp_itemsize) */
50582 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
50583 (printfunc) swig_varlink_print, /* Print (tp_print) */
50584 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
50585 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
50586 0, /* tp_compare */
50587 (reprfunc) swig_varlink_repr, /* tp_repr */
50588 0, /* tp_as_number */
50589 0, /* tp_as_sequence */
50590 0, /* tp_as_mapping */
50591 0, /* tp_hash */
50592 0, /* tp_call */
50593 (reprfunc)swig_varlink_str, /* tp_str */
50594 0, /* tp_getattro */
50595 0, /* tp_setattro */
50596 0, /* tp_as_buffer */
50597 0, /* tp_flags */
50598 varlink__doc__, /* tp_doc */
50599 0, /* tp_traverse */
50600 0, /* tp_clear */
50601 0, /* tp_richcompare */
50602 0, /* tp_weaklistoffset */
50603#if PY_VERSION_HEX >= 0x02020000
50604 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
50605#endif
50606#if PY_VERSION_HEX >= 0x02030000
50607 0, /* tp_del */
50608#endif
50609#ifdef COUNT_ALLOCS
50610 0,0,0,0 /* tp_alloc -> tp_next */
50611#endif
50612 };
50613 varlink_type = tmp;
50614 varlink_type.ob_type = &PyType_Type;
50615 type_init = 1;
53aa7709 50616 }
554f62e9
RD
50617 return &varlink_type;
50618 }
50619
50620 /* Create a variable linking object for use later */
50621 SWIGINTERN PyObject *
50622 SWIG_Python_newvarlink(void) {
50623 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
50624 if (result) {
50625 result->vars = 0;
50626 }
50627 return ((PyObject*) result);
50628 }
50629
50630 SWIGINTERN void
50631 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
50632 swig_varlinkobject *v = (swig_varlinkobject *) p;
50633 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
50634 if (gv) {
50635 size_t size = strlen(name)+1;
50636 gv->name = (char *)malloc(size);
50637 if (gv->name) {
50638 strncpy(gv->name,name,size);
50639 gv->get_attr = get_attr;
50640 gv->set_attr = set_attr;
50641 gv->next = v->vars;
50642 }
53aa7709 50643 }
554f62e9
RD
50644 v->vars = gv;
50645 }
50646
50647 SWIGINTERN PyObject *
50648 SWIG_globals() {
50649 static PyObject *_SWIG_globals = 0;
50650 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
50651 return _SWIG_globals;
50652 }
50653
50654 /* -----------------------------------------------------------------------------
50655 * constants/methods manipulation
50656 * ----------------------------------------------------------------------------- */
50657
50658 /* Install Constants */
50659 SWIGINTERN void
50660 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
50661 PyObject *obj = 0;
50662 size_t i;
50663 for (i = 0; constants[i].type; ++i) {
50664 switch(constants[i].type) {
50665 case SWIG_PY_POINTER:
50666 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
50667 break;
50668 case SWIG_PY_BINARY:
50669 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
50670 break;
50671 default:
50672 obj = 0;
50673 break;
50674 }
50675 if (obj) {
50676 PyDict_SetItemString(d, constants[i].name, obj);
50677 Py_DECREF(obj);
50678 }
53aa7709 50679 }
554f62e9
RD
50680 }
50681
50682 /* -----------------------------------------------------------------------------*/
50683 /* Fix SwigMethods to carry the callback ptrs when needed */
50684 /* -----------------------------------------------------------------------------*/
50685
50686 SWIGINTERN void
50687 SWIG_Python_FixMethods(PyMethodDef *methods,
50688 swig_const_info *const_table,
50689 swig_type_info **types,
50690 swig_type_info **types_initial) {
50691 size_t i;
50692 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 50693 const char *c = methods[i].ml_doc;
554f62e9
RD
50694 if (c && (c = strstr(c, "swig_ptr: "))) {
50695 int j;
50696 swig_const_info *ci = 0;
453fb36b 50697 const char *name = c + 10;
554f62e9
RD
50698 for (j = 0; const_table[j].type; ++j) {
50699 if (strncmp(const_table[j].name, name,
50700 strlen(const_table[j].name)) == 0) {
50701 ci = &(const_table[j]);
50702 break;
50703 }
50704 }
50705 if (ci) {
50706 size_t shift = (ci->ptype) - types;
50707 swig_type_info *ty = types_initial[shift];
50708 size_t ldoc = (c - methods[i].ml_doc);
50709 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
50710 char *ndoc = (char*)malloc(ldoc + lptr + 10);
50711 if (ndoc) {
50712 char *buff = ndoc;
50713 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
50714 if (ptr) {
50715 strncpy(buff, methods[i].ml_doc, ldoc);
50716 buff += ldoc;
50717 strncpy(buff, "swig_ptr: ", 10);
50718 buff += 10;
50719 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
50720 methods[i].ml_doc = ndoc;
50721 }
50722 }
50723 }
50724 }
53aa7709 50725 }
554f62e9
RD
50726 }
50727
50728#ifdef __cplusplus
50729}
50730#endif
50731
50732/* -----------------------------------------------------------------------------*
50733 * Partial Init method
50734 * -----------------------------------------------------------------------------*/
50735
50736#ifdef __cplusplus
50737extern "C"
50738#endif
50739SWIGEXPORT void SWIG_init(void) {
50740 PyObject *m, *d;
50741
50742 /* Fix SwigMethods to carry the callback ptrs when needed */
50743 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
50744
50745 m = Py_InitModule((char *) SWIG_name, SwigMethods);
50746 d = PyModule_GetDict(m);
50747
50748 SWIG_InitializeModule(0);
50749 SWIG_InstallConstants(d,swig_const_table);
50750
50751
50752 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
50753 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
50754 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
50755 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
50756 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
50757 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
50758 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
50759 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
50760 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
50761 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
50762 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
50763 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
50764 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
50765 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
50766 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
50767 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
50768 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
50769 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
50770 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
50771 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
50772 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
50773 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
554f62e9
RD
50774 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
50775 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
50776 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
3f7f284d 50777 SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
554f62e9
RD
50778 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
50779 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
50780 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
50781 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
50782 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
50783 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
50784 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
50785 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
50786 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
50787 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
50788 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
50789 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
50790 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
50791 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
50792 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
50793 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
50794 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
50795 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
50796 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
50797 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
554f62e9
RD
50798 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
50799 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
50800 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
50801 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
50802 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
50803 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
50804 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
50805 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
50806 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
50807 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
50808 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
50809 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
50810 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
50811 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
50812 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
50813 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
50814 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
50815 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
50816 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
50817 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
50818 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
50819 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
50820 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
50821 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
50822 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
50823 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
50824 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
f5263701 50825 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
554f62e9
RD
50826 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
50827 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
50828 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
50829 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
50830 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
50831 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
50832 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
50833 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
50834 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
50835 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
50836 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
50837 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
50838 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
50839 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
50840 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
50841 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
50842 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
50843 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
50844 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
50845 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
50846 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
50847 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
50848 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
50849 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
50850 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
50851 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
50852 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
50853 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
50854 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
50855 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
50856 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
50857 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
50858 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
50859 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
50860 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
50861 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 50862 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
50863 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
50864 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
50865 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
50866 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
50867 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
554f62e9
RD
50868 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
50869 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
50870 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
50871 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
50872 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
50873 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
50874 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
50875 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
50876 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
50877 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
50878 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 50879 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
554f62e9
RD
50880 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
50881 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
50882 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
50883 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
50884 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
50885 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
50886 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
50887 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
50888 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
50889 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
50890 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
50891 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
50892 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
50893 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
50894 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
50895 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
50896 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
50897 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
50898 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
50899 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
50900 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
50901 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
50902 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
50903 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
50904 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
50905 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
50906 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
50907 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
50908 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
8f514ab4
RD
50909 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
50910 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
50911 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
50912 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
554f62e9
RD
50913 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
50914 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
50915 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
50916 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
50917 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
50918 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
50919 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
50920 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
50921 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 50922 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
554f62e9
RD
50923 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
50924 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
50925 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
50926 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
50927 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
50928 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
50929 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
50930 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
50931 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
50932 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
50933 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
50934 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
50935 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
50936 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
50937 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
50938 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
50939 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
50940 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
50941 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
50942 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
50943 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
50944 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
50945 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
50946 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
50947 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
50948 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
50949 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
50950 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
50951 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
50952 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
50953 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
50954 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
50955 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
50956 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
50957 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
50958 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
50959 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
50960 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
50961 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
50962 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
50963 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
50964 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
50965 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
50966 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
50967 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
50968 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
50969 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 50970 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
554f62e9
RD
50971 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
50972 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
50973 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
50974 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
50975 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
50976 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
50977 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
50978 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
50979 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
50980 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
50981 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
50982 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
50983 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
50984 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
50985 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
50986 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
50987 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
50988 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
50989 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
50990 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
50991 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
50992 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
50993 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
50994 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
50995 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
50996 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
50997 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
50998 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
50999 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
51000 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
51001 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
51002 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
51003 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
51004 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
51005 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
51006 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
51007 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
51008 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
51009 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
51010 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
51011 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
51012 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
51013
51014 // Map renamed classes back to their common name for OOR
51015 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
51016
51017 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
51018 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
51019 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
51020 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
51021 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
51022 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
51023 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
51024 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
51025 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
51026 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
51027 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
51028 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
51029 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
51030 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
51031 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
554f62e9
RD
51032 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
51033 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
51034 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
51035 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
51036 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
51037 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
51038 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
51039 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
51040 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
51041 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
51042 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
51043 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
51044 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
51045 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
51046 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
51047 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
51048 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
51049 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
51050 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
51051 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
51052 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
51053 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
51054 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
51055 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
51056 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
51057 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
51058 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
51059 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
51060 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
51061 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
51062 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
51063 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
51064 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
51065 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
51066 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
51067 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
51068 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
51069 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
51070 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
51071 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 51072 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
554f62e9
RD
51073
51074 // Map renamed classes back to their common name for OOR
51075 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
51076 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
51077
51078 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
51079 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
51080 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
51081 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
51082 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
51083 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
554f62e9
RD
51084 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
51085 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
51086 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
51087 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
51088 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
554f62e9
RD
51089
51090 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
51091
51092 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
51093 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
51094 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
51095 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
51096 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
51097 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
51098 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
51099 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
33d6fd3b
RD
51100 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
51101 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
51102 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
704eda0c
RD
51103 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
51104 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
51105 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
51106 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
51107 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
51108 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
51109 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
51110 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
51111 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
51112 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
51113 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
51114 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
51115 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
51116 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
51117 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
51118 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
51119 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
51120 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
51121 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
51122 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
51123 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
51124 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
51125 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
51126 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
51127 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
51128 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
51129 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
51130 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
51131 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
51132 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
51133 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
51134 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
5172800e
RD
51135 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
51136 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
51137 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
51138 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
3f7f284d 51139 SWIG_addvarlink(SWIG_globals(),(char*)"SearchCtrlNameStr",SearchCtrlNameStr_get, SearchCtrlNameStr_set);
4ed51f4d
RD
51140 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN));
51141 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN));
d55e5bfc
RD
51142}
51143