]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_controls_wrap.cpp
discard time part of m_date, otherwise comparisons with other dates fail
[wxWidgets.git] / wxPython / src / gtk / _controls_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
0085ce49 3 * Version 1.3.29
d14a1e28
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
0085ce49 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d14a1e28
RD
13
14#ifdef __cplusplus
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};
d14a1e28
RD
28#endif
29
0085ce49 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
0085ce49 33 * ----------------------------------------------------------------------------- */
d14a1e28 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
0085ce49
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
093d3ff1 46#endif
d14a1e28 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
0085ce49
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
0085ce49
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
0085ce49
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
0085ce49
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
0085ce49
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
c9c7117a 127
0085ce49 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d14a1e28 130
0085ce49 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d14a1e28 133 *
0085ce49
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d14a1e28 137
093d3ff1
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d14a1e28 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d14a1e28 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
093d3ff1 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
32fe5131 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d14a1e28
RD
166#endif
167
0085ce49
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
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
32fe5131
RD
309#include <string.h>
310
d14a1e28
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
32fe5131 318/* Structure to store inforomation on one type */
d14a1e28 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
0085ce49 325 int owndata; /* flag if the structure owns the clientdata */
d14a1e28
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
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;
0085ce49 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
093d3ff1
RD
369*/
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 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
093d3ff1 388*/
32fe5131
RD
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 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
32fe5131 401 return equiv;
093d3ff1
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
093d3ff1
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
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 *
32fe5131 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. */
0085ce49 481 if (!type) return NULL;
093d3ff1
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
093d3ff1
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
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;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
093d3ff1 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
0085ce49
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
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 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
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 }
32fe5131
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) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
093d3ff1 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
093d3ff1
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
0085ce49 622 register unsigned char uu;
093d3ff1
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
093d3ff1
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
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}
d14a1e28 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}
d14a1e28
RD
695
696#ifdef __cplusplus
697}
698#endif
699
0085ce49
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d14a1e28 714
0085ce49
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
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
0085ce49
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
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/* -----------------------------------------------------------------------------
0085ce49 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d14a1e28 803
0085ce49
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}
d14a1e28 846
0085ce49
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
d14a1e28 936
0085ce49
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
0085ce49
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d14a1e28 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
0085ce49
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d14a1e28 965
994141e6 966#ifdef __cplusplus
0085ce49
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
994141e6 972
15afbcd0 973
0085ce49
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
093d3ff1
RD
978 * pyrun.swg
979 *
0085ce49
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
0085ce49 984 * ----------------------------------------------------------------------------- */
15afbcd0 985
093d3ff1 986/* Common SWIG API */
994141e6 987
d1a49b78
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
0085ce49
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
994141e6 1000
0085ce49
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
994141e6 1004
0085ce49
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d14a1e28 1008
0085ce49
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
4d5c3d91 1012
0085ce49
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
4d5c3d91 1017
0085ce49 1018/* Runtime API */
15afbcd0 1019
0085ce49
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
0085ce49
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
15afbcd0 1030
0085ce49 1031/* Runtime API implementation */
093d3ff1 1032
0085ce49 1033/* Error manipulation */
093d3ff1 1034
0085ce49
RD
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;
15afbcd0
RD
1041}
1042
0085ce49
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}
15afbcd0 1049
0085ce49 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
0085ce49 1052/* Set a constant value */
093d3ff1 1053
0085ce49
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
15afbcd0
RD
1058}
1059
0085ce49 1060/* Append a value to the result obj */
15afbcd0 1061
0085ce49
RD
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 {
0085ce49
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
c32bde28 1100 }
0085ce49
RD
1101 return result;
1102#endif
994141e6 1103}
093d3ff1 1104
0085ce49 1105/* Unpack the argument tuple */
093d3ff1 1106
0085ce49
RD
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*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
1613#endif
1614 };
1615
0085ce49 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
0085ce49
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
093d3ff1 1632#endif
0085ce49
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
093d3ff1 1651#if PY_VERSION_HEX >= 0x02020000
0085ce49
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
15afbcd0 1672#endif
093d3ff1 1673#if PY_VERSION_HEX >= 0x02030000
0085ce49 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
0085ce49 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
0085ce49 1679 };
32fe5131 1680 pyswigobject_type = tmp;
0085ce49 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1
RD
1682 type_init = 1;
1683 }
32fe5131 1684 return &pyswigobject_type;
093d3ff1
RD
1685}
1686
1687SWIGRUNTIME PyObject *
0085ce49 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
0085ce49
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
0085ce49 1697 return (PyObject *)sobj;
093d3ff1
RD
1698}
1699
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
0085ce49 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
0085ce49 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 }
0085ce49 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
1723}
1724
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))) {
0085ce49 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
0085ce49 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1
RD
1733 }
1734}
1735
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))){
0085ce49 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
0085ce49 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
1746
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749{
0085ce49
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
093d3ff1
RD
1754}
1755
0085ce49 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
0085ce49
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
0085ce49 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
0085ce49 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
0085ce49 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
0085ce49 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
0085ce49 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1852{
0085ce49
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
0085ce49
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
093d3ff1 1865 }
0085ce49 1866 return (PyObject *) sobj;
093d3ff1
RD
1867}
1868
0085ce49 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
0085ce49
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
093d3ff1
RD
1880}
1881
093d3ff1 1882/* -----------------------------------------------------------------------------
0085ce49 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
0085ce49
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
0085ce49
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
0085ce49 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
0085ce49
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1903{
0085ce49
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
093d3ff1 1926 } else {
0085ce49
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
0085ce49
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
093d3ff1
RD
1947 }
1948}
1949
0085ce49
RD
1950/* Acquire a pointer value */
1951
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 }
0085ce49 1962 return 0;
093d3ff1
RD
1963}
1964
0085ce49
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
0085ce49
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 {
0085ce49
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
0085ce49
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
093d3ff1
RD
2042 }
2043}
2044
0085ce49
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
0085ce49
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 {
0085ce49
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
d1a49b78 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
0085ce49
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
093d3ff1
RD
2069 }
2070}
2071
0085ce49 2072/* Convert a packed value value */
093d3ff1 2073
093d3ff1 2074SWIGRUNTIME int
0085ce49
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 }
0085ce49
RD
2085 return SWIG_OK;
2086}
093d3ff1 2087
0085ce49
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
093d3ff1 2091
0085ce49
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
093d3ff1 2096
0085ce49
RD
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 }
0085ce49
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
0085ce49
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
093d3ff1 2126 }
0085ce49
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
093d3ff1 2140 }
0085ce49
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
093d3ff1 2147 }
0085ce49
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
093d3ff1
RD
2158}
2159
0085ce49
RD
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
0085ce49
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
093d3ff1 2180
0085ce49
RD
2181
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 {
0085ce49 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
0085ce49 2194 return SWIG_Py_Void();
093d3ff1 2195 }
0085ce49
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
0085ce49 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
0085ce49
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
093d3ff1 2213 }
093d3ff1 2214 }
0085ce49 2215 return robj;
093d3ff1 2216 }
093d3ff1
RD
2217}
2218
0085ce49
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
0085ce49 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1
RD
2224}
2225
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
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
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1
RD
2251}
2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
0085ce49 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
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");
0085ce49 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
0085ce49 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
0085ce49 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
0085ce49 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
0085ce49 2281 return SWIG_OK;
093d3ff1 2282}
32fe5131 2283#endif
093d3ff1 2284
0085ce49
RD
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
32fe5131
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);
0085ce49 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
0085ce49
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
093d3ff1 2314
0085ce49
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
093d3ff1 2320}
093d3ff1 2321
0085ce49
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]
32fe5131
RD
2468#define SWIGTYPE_p_form_ops_t swig_types[2]
2469#define SWIGTYPE_p_int swig_types[3]
2470#define SWIGTYPE_p_long swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxArrayInt swig_types[12]
2479#define SWIGTYPE_p_wxArrayString swig_types[13]
2480#define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481#define SWIGTYPE_p_wxBitmap swig_types[15]
2482#define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483#define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484#define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485#define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486#define SWIGTYPE_p_wxButton swig_types[20]
2487#define SWIGTYPE_p_wxCURHandler swig_types[21]
2488#define SWIGTYPE_p_wxCheckBox swig_types[22]
2489#define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxChoice swig_types[25]
2492#define SWIGTYPE_p_wxChoicebook swig_types[26]
2493#define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2131d850
RD
2494#define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495#define SWIGTYPE_p_wxCloseEvent swig_types[29]
5172800e
RD
2496#define SWIGTYPE_p_wxCollapsiblePane swig_types[30]
2497#define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498#define SWIGTYPE_p_wxColour swig_types[32]
2499#define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500#define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501#define SWIGTYPE_p_wxComboBox swig_types[35]
2502#define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503#define SWIGTYPE_p_wxContextHelp swig_types[37]
2504#define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505#define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506#define SWIGTYPE_p_wxControl swig_types[40]
2507#define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508#define SWIGTYPE_p_wxCursor swig_types[42]
2509#define SWIGTYPE_p_wxDC swig_types[43]
2510#define SWIGTYPE_p_wxDateEvent swig_types[44]
2511#define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512#define SWIGTYPE_p_wxDateTime swig_types[46]
2513#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514#define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516#define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517#define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518#define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519#define SWIGTYPE_p_wxEvent swig_types[53]
2520#define SWIGTYPE_p_wxEvtHandler swig_types[54]
2521#define SWIGTYPE_p_wxFSFile swig_types[55]
2522#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[56]
2523#define SWIGTYPE_p_wxFilePickerCtrl swig_types[57]
2524#define SWIGTYPE_p_wxFileSystem swig_types[58]
2525#define SWIGTYPE_p_wxFlexGridSizer swig_types[59]
2526#define SWIGTYPE_p_wxFocusEvent swig_types[60]
2527#define SWIGTYPE_p_wxFont swig_types[61]
2528#define SWIGTYPE_p_wxFontPickerCtrl swig_types[62]
2529#define SWIGTYPE_p_wxFontPickerEvent swig_types[63]
2530#define SWIGTYPE_p_wxGBSizerItem swig_types[64]
2531#define SWIGTYPE_p_wxGIFHandler swig_types[65]
2532#define SWIGTYPE_p_wxGauge swig_types[66]
2533#define SWIGTYPE_p_wxGenericDirCtrl swig_types[67]
2534#define SWIGTYPE_p_wxGenericDragImage swig_types[68]
2535#define SWIGTYPE_p_wxGridBagSizer swig_types[69]
2536#define SWIGTYPE_p_wxGridSizer swig_types[70]
2537#define SWIGTYPE_p_wxHelpEvent swig_types[71]
2538#define SWIGTYPE_p_wxHelpProvider swig_types[72]
2539#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[73]
2540#define SWIGTYPE_p_wxHyperlinkEvent swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconizeEvent swig_types[77]
2544#define SWIGTYPE_p_wxIdleEvent swig_types[78]
2545#define SWIGTYPE_p_wxImage swig_types[79]
2546#define SWIGTYPE_p_wxImageHandler swig_types[80]
2547#define SWIGTYPE_p_wxImageList swig_types[81]
2548#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[82]
2549#define SWIGTYPE_p_wxInitDialogEvent swig_types[83]
2550#define SWIGTYPE_p_wxItemContainer swig_types[84]
2551#define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552#define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553#define SWIGTYPE_p_wxLayoutConstraints swig_types[87]
2554#define SWIGTYPE_p_wxListBox swig_types[88]
2555#define SWIGTYPE_p_wxListEvent swig_types[89]
2556#define SWIGTYPE_p_wxListItem swig_types[90]
2557#define SWIGTYPE_p_wxListItemAttr swig_types[91]
2558#define SWIGTYPE_p_wxListView swig_types[92]
2559#define SWIGTYPE_p_wxListbook swig_types[93]
2560#define SWIGTYPE_p_wxListbookEvent swig_types[94]
2561#define SWIGTYPE_p_wxMaximizeEvent swig_types[95]
2562#define SWIGTYPE_p_wxMemoryDC swig_types[96]
2563#define SWIGTYPE_p_wxMenu swig_types[97]
2564#define SWIGTYPE_p_wxMenuBar swig_types[98]
2565#define SWIGTYPE_p_wxMenuEvent swig_types[99]
2566#define SWIGTYPE_p_wxMenuItem swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[105]
2572#define SWIGTYPE_p_wxNcPaintEvent swig_types[106]
2573#define SWIGTYPE_p_wxNotebook swig_types[107]
2574#define SWIGTYPE_p_wxNotebookEvent swig_types[108]
2575#define SWIGTYPE_p_wxNotifyEvent swig_types[109]
2576#define SWIGTYPE_p_wxObject swig_types[110]
2577#define SWIGTYPE_p_wxPCXHandler swig_types[111]
2578#define SWIGTYPE_p_wxPNGHandler swig_types[112]
2579#define SWIGTYPE_p_wxPNMHandler swig_types[113]
2580#define SWIGTYPE_p_wxPaintEvent swig_types[114]
2581#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[115]
2582#define SWIGTYPE_p_wxPaperSize swig_types[116]
2583#define SWIGTYPE_p_wxPickerBase swig_types[117]
2584#define SWIGTYPE_p_wxPoint swig_types[118]
2585#define SWIGTYPE_p_wxPyApp swig_types[119]
2586#define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyControl swig_types[121]
2588#define SWIGTYPE_p_wxPyEvent swig_types[122]
2589#define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590#define SWIGTYPE_p_wxPyListCtrl swig_types[124]
2591#define SWIGTYPE_p_wxPySizer swig_types[125]
2592#define SWIGTYPE_p_wxPyTreeCtrl swig_types[126]
2593#define SWIGTYPE_p_wxPyTreeItemData swig_types[127]
2594#define SWIGTYPE_p_wxPyValidator swig_types[128]
2595#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596#define SWIGTYPE_p_wxRadioBox swig_types[130]
2597#define SWIGTYPE_p_wxRadioButton swig_types[131]
2598#define SWIGTYPE_p_wxRect swig_types[132]
2599#define SWIGTYPE_p_wxScrollBar swig_types[133]
2600#define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601#define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
3f7f284d
RD
2602#define SWIGTYPE_p_wxSearchCtrl swig_types[136]
2603#define SWIGTYPE_p_wxSetCursorEvent swig_types[137]
2604#define SWIGTYPE_p_wxShowEvent swig_types[138]
2605#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[139]
2606#define SWIGTYPE_p_wxSize swig_types[140]
2607#define SWIGTYPE_p_wxSizeEvent swig_types[141]
2608#define SWIGTYPE_p_wxSizer swig_types[142]
2609#define SWIGTYPE_p_wxSizerItem swig_types[143]
2610#define SWIGTYPE_p_wxSlider swig_types[144]
2611#define SWIGTYPE_p_wxSpinButton swig_types[145]
2612#define SWIGTYPE_p_wxSpinCtrl swig_types[146]
2613#define SWIGTYPE_p_wxSpinEvent swig_types[147]
2614#define SWIGTYPE_p_wxStaticBitmap swig_types[148]
2615#define SWIGTYPE_p_wxStaticBox swig_types[149]
2616#define SWIGTYPE_p_wxStaticBoxSizer swig_types[150]
2617#define SWIGTYPE_p_wxStaticLine swig_types[151]
2618#define SWIGTYPE_p_wxStaticText swig_types[152]
2619#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[153]
2620#define SWIGTYPE_p_wxString swig_types[154]
2621#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[155]
2622#define SWIGTYPE_p_wxTGAHandler swig_types[156]
2623#define SWIGTYPE_p_wxTIFFHandler swig_types[157]
2624#define SWIGTYPE_p_wxTextAttr swig_types[158]
2625#define SWIGTYPE_p_wxTextCtrl swig_types[159]
2626#define SWIGTYPE_p_wxTextUrlEvent swig_types[160]
2627#define SWIGTYPE_p_wxToggleButton swig_types[161]
2628#define SWIGTYPE_p_wxToolBar swig_types[162]
2629#define SWIGTYPE_p_wxToolBarBase swig_types[163]
2630#define SWIGTYPE_p_wxToolBarToolBase swig_types[164]
2631#define SWIGTYPE_p_wxToolbook swig_types[165]
2632#define SWIGTYPE_p_wxToolbookEvent swig_types[166]
2633#define SWIGTYPE_p_wxTreeEvent swig_types[167]
2634#define SWIGTYPE_p_wxTreeItemId swig_types[168]
2635#define SWIGTYPE_p_wxTreebook swig_types[169]
2636#define SWIGTYPE_p_wxTreebookEvent swig_types[170]
2637#define SWIGTYPE_p_wxUpdateUIEvent swig_types[171]
2638#define SWIGTYPE_p_wxValidator swig_types[172]
2639#define SWIGTYPE_p_wxVisualAttributes swig_types[173]
2640#define SWIGTYPE_p_wxWindow swig_types[174]
2641#define SWIGTYPE_p_wxWindowBase swig_types[175]
2642#define SWIGTYPE_p_wxWindowCreateEvent swig_types[176]
2643#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[177]
2644#define SWIGTYPE_p_wxXPMHandler swig_types[178]
2645static swig_type_info *swig_types[180];
2646static swig_module_info swig_module = {swig_types, 179, 0, 0, 0, 0};
32fe5131
RD
2647#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2648#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
093d3ff1
RD
2649
2650/* -------- TYPES TABLE (END) -------- */
2651
0085ce49
RD
2652#if (PY_VERSION_HEX <= 0x02000000)
2653# if !defined(SWIG_PYTHON_CLASSIC)
2654# error "This python version requires to use swig with the '-classic' option"
2655# endif
2656#endif
2657#if (PY_VERSION_HEX <= 0x02020000)
2658# error "This python version requires to use swig with the '-nomodern' option"
2659#endif
2660#if (PY_VERSION_HEX <= 0x02020000)
2661# error "This python version requires to use swig with the '-nomodernargs' option"
2662#endif
2663#ifndef METH_O
2664# error "This python version requires to use swig with the '-nofastunpack' option"
2665#endif
093d3ff1
RD
2666
2667/*-----------------------------------------------
2668 @(target):= _controls_.so
2669 ------------------------------------------------*/
2670#define SWIG_init init_controls_
2671
2672#define SWIG_name "_controls_"
2673
0085ce49
RD
2674#define SWIGVERSION 0x010329
2675
2676
2677#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2678#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2679
2680
2681#include <stdexcept>
2682
2683
2684namespace swig {
2685 class PyObject_ptr {
2686 protected:
2687 PyObject *_obj;
2688
2689 public:
2690 PyObject_ptr() :_obj(0)
2691 {
2692 }
2693
2694 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2695 {
2696 Py_XINCREF(_obj);
2697 }
2698
2699 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2700 {
2701 if (initial_ref) Py_XINCREF(_obj);
2702 }
2703
2704 PyObject_ptr & operator=(const PyObject_ptr& item)
2705 {
2706 Py_XINCREF(item._obj);
2707 Py_XDECREF(_obj);
2708 _obj = item._obj;
2709 return *this;
2710 }
2711
2712 ~PyObject_ptr()
2713 {
2714 Py_XDECREF(_obj);
2715 }
2716
2717 operator PyObject *() const
2718 {
2719 return _obj;
2720 }
2721
2722 PyObject *operator->() const
2723 {
2724 return _obj;
2725 }
2726 };
2727}
2728
2729
2730namespace swig {
2731 struct PyObject_var : PyObject_ptr {
2732 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2733
2734 PyObject_var & operator = (PyObject* obj)
2735 {
2736 Py_XDECREF(_obj);
2737 _obj = obj;
2738 return *this;
2739 }
2740 };
2741}
2742
2743
093d3ff1
RD
2744#include "wx/wxPython/wxPython.h"
2745#include "wx/wxPython/pyclasses.h"
2746
2747 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2748 static const wxString wxPyEmptyString(wxEmptyString);
2749 static const wxString wxPyControlNameStr(wxControlNameStr);
2750
2751 const wxArrayString wxPyEmptyStringArray;
2752
2753 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2754
0085ce49 2755 #define SWIG_From_long PyInt_FromLong
093d3ff1
RD
2756
2757
0085ce49
RD
2758SWIGINTERNINLINE PyObject *
2759SWIG_From_int (int value)
2760{
2761 return SWIG_From_long (value);
2762}
093d3ff1
RD
2763
2764
0085ce49
RD
2765#include <limits.h>
2766#ifndef LLONG_MIN
2767# define LLONG_MIN LONG_LONG_MIN
2768#endif
2769#ifndef LLONG_MAX
2770# define LLONG_MAX LONG_LONG_MAX
2771#endif
2772#ifndef ULLONG_MAX
2773# define ULLONG_MAX ULONG_LONG_MAX
2774#endif
093d3ff1
RD
2775
2776
2777SWIGINTERN int
0085ce49 2778SWIG_AsVal_long (PyObject* obj, long* val)
093d3ff1
RD
2779{
2780 if (PyNumber_Check(obj)) {
2781 if (val) *val = PyInt_AsLong(obj);
0085ce49 2782 return SWIG_OK;
093d3ff1 2783 }
0085ce49 2784 return SWIG_TypeError;
093d3ff1
RD
2785}
2786
2787
093d3ff1 2788SWIGINTERN int
0085ce49
RD
2789SWIG_AsVal_int (PyObject * obj, int *val)
2790{
093d3ff1 2791 long v;
0085ce49
RD
2792 int res = SWIG_AsVal_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v < INT_MIN || v > INT_MAX)) {
2795 return SWIG_OverflowError;
093d3ff1 2796 } else {
0085ce49 2797 if (val) *val = static_cast< int >(v);
093d3ff1 2798 }
0085ce49
RD
2799 }
2800 return res;
994141e6
RD
2801}
2802
c32bde28 2803 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
15afbcd0 2804
093d3ff1 2805SWIGINTERN int
0085ce49 2806SWIG_AsVal_bool (PyObject *obj, bool *val)
15afbcd0 2807{
c32bde28
RD
2808 if (obj == Py_True) {
2809 if (val) *val = true;
0085ce49
RD
2810 return SWIG_OK;
2811 } else if (obj == Py_False) {
c32bde28 2812 if (val) *val = false;
0085ce49 2813 return SWIG_OK;
093d3ff1 2814 } else {
0085ce49
RD
2815 long v = 0;
2816 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2817 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2818 return res;
c32bde28 2819 }
15afbcd0
RD
2820}
2821
b2dc1044
RD
2822 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2823 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2824 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2825 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2826 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2827 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
3f7f284d 2828 static const wxString wxPyStaticLineNameStr(wxStaticLineNameStr);
d14a1e28
RD
2829
2830#include <wx/checklst.h>
d14a1e28 2831
b2dc1044 2832 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
0085ce49 2833SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2834 if (clientData)
2835 {
d14a1e28
RD
2836 wxPyClientData* data = new wxPyClientData(clientData);
2837 self->Insert(item, pos, data);
e9d6f3a4
RD
2838 }
2839 else
d14a1e28
RD
2840 self->Insert(item, pos);
2841 }
50f151d7
RD
2842
2843SWIGINTERN int
2844SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2845{
2846 long v = 0;
2847 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2848 return SWIG_TypeError;
2849 }
2850 else if (val)
2851 *val = (unsigned long)v;
2852 return SWIG_OK;
2853}
2854
2855
2856SWIGINTERN int
2857SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2858{
2859 unsigned long v;
2860 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2861 if (SWIG_IsOK(res)) {
2862 if ((v > UINT_MAX)) {
2863 return SWIG_OverflowError;
2864 } else {
2865 if (val) *val = static_cast< unsigned int >(v);
2866 }
2867 }
2868 return res;
2869}
2870
0085ce49 2871SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2873 wxArrayInt lst;
2874 self->GetSelections(lst);
2875 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2876 for (size_t i=0; i<lst.GetCount(); i++)
2877 {
7e08d4ef
RD
2878 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2879 }
e9d6f3a4 2880 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2881 return tup;
2882 }
0085ce49 2883SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
c3eb6258
RD
2884 #ifdef __WXMSW__
2885 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2886 self->GetItem(item)->SetTextColour(c);
2887 #endif
2888 }
0085ce49 2889SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
c3eb6258
RD
2890 #ifdef __WXMSW__
2891 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2892 self->GetItem(item)->SetBackgroundColour(c);
2893 #endif
2894 }
0085ce49 2895SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
c3eb6258
RD
2896 #ifdef __WXMSW__
2897 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2898 self->GetItem(item)->SetFont(f);
2899 #endif
2900 }
b2dc1044 2901 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
d7645bfd 2902SWIGINTERN void wxTextCtrl_MacCheckSpelling(wxTextCtrl *self,bool check){}
0085ce49 2903SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d14a1e28
RD
2904 self->AppendText(text);
2905 }
0085ce49 2906SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d14a1e28
RD
2907 return self->GetValue().Mid(from, to - from);
2908 }
b2dc1044
RD
2909 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2910 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
33b885b9 2911 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
b2dc1044
RD
2912 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2913 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
75219dcb
RD
2914
2915SWIGINTERNINLINE PyObject*
2916SWIG_From_unsigned_SS_long (unsigned long value)
2917{
2918 return (value > LONG_MAX) ?
2919 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2920}
2921
2922
2923SWIGINTERNINLINE PyObject *
2924SWIG_From_size_t (size_t value)
2925{
2926 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2927}
2928
50f151d7
RD
2929
2930SWIGINTERNINLINE PyObject *
2931SWIG_From_unsigned_SS_int (unsigned int value)
2932{
2933 return SWIG_From_unsigned_SS_long (value);
2934}
2935
d14a1e28
RD
2936
2937#include <wx/slider.h>
2938
d14a1e28 2939
b2dc1044 2940 static const wxString wxPySliderNameStr(wxSliderNameStr);
33b885b9 2941 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
d14a1e28 2942
15afbcd0
RD
2943#if !wxUSE_TOGGLEBTN
2944// implement dummy items for platforms that don't have this class
d14a1e28
RD
2945
2946#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2947
2948class wxToggleButton : public wxControl
2949{
2950public:
2951 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2952 const wxPoint&, const wxSize&, long,
2953 const wxValidator&, const wxString&)
39f61e25 2954 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
2955
2956 wxToggleButton()
39f61e25 2957 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
2958};
2959#endif
2960
51b83b37 2961 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
994141e6 2962
7e08d4ef 2963SWIGINTERNINLINE int
0085ce49 2964SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2965{
7e08d4ef 2966 unsigned long v;
0085ce49
RD
2967 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2968 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2969 return res;
7e08d4ef 2970}
7e08d4ef 2971
b2dc1044 2972 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
0085ce49 2973SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d14a1e28
RD
2974 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2975 if (udata) {
2976 Py_INCREF(udata->m_obj);
2977 return udata->m_obj;
2978 } else {
2979 Py_INCREF(Py_None);
2980 return Py_None;
2981 }
2982 }
0085ce49 2983SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d14a1e28
RD
2984 self->SetClientData(new wxPyUserData(clientData));
2985 }
0085ce49 2986SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d14a1e28
RD
2987 wxPyUserData* udata = NULL;
2988 if (clientData && clientData != Py_None)
2989 udata = new wxPyUserData(clientData);
2990 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2991 shortHelp, longHelp, udata);
2992 }
0085ce49 2993SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d14a1e28
RD
2994 wxPyUserData* udata = NULL;
2995 if (clientData && clientData != Py_None)
2996 udata = new wxPyUserData(clientData);
2997 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2998 shortHelp, longHelp, udata);
2999 }
0085ce49 3000SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d14a1e28
RD
3001 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
3002 if (udata) {
3003 Py_INCREF(udata->m_obj);
3004 return udata->m_obj;
3005 } else {
3006 Py_INCREF(Py_None);
3007 return Py_None;
3008 }
3009 }
0085ce49 3010SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d14a1e28
RD
3011 self->SetToolClientData(id, new wxPyUserData(clientData));
3012 }
3013
3014#include <wx/listctrl.h>
3015
7557b9b5 3016 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
0085ce49 3017SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d14a1e28
RD
3018 // Python aware sorting function for wxPyListCtrl
3019 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3020 int retval = 0;
3021 PyObject* func = (PyObject*)funcPtr;
5a446332 3022 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28
RD
3023
3024 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3025 PyObject* result = PyEval_CallObject(func, args);
3026 Py_DECREF(args);
3027 if (result) {
3028 retval = PyInt_AsLong(result);
3029 Py_DECREF(result);
3030 }
3031
4f89f6a3 3032 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3033 return retval;
3034 }
3035
3036 // C++ Version of a Python aware class
3037class wxPyListCtrl : public wxListCtrl {
32fe5131 3038 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d14a1e28
RD
3039public:
3040 wxPyListCtrl() : wxListCtrl() {}
3041 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3042 const wxPoint& pos,
3043 const wxSize& size,
3044 long style,
3045 const wxValidator& validator,
3046 const wxString& name) :
3047 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3048
3049 bool Create(wxWindow* parent, wxWindowID id,
3050 const wxPoint& pos,
3051 const wxSize& size,
3052 long style,
3053 const wxValidator& validator,
3054 const wxString& name) {
3055 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3056 }
3057
3058 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d14a1e28
RD
3059 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3060
84f85550
RD
3061 // use the virtual version to avoid a confusing assert in the base class
3062 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3063 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3064
d14a1e28
RD
3065 PYPRIVATE;
3066};
3067
3068IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3069
3070IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d14a1e28 3071IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3072IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
c25f90f6 3073IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
7e08d4ef 3074
d14a1e28 3075
0085ce49 3076SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d14a1e28
RD
3077 wxListItem item;
3078 item.SetMask( wxLIST_MASK_STATE |
3079 wxLIST_MASK_TEXT |
3080 wxLIST_MASK_IMAGE |
3081 wxLIST_MASK_DATA |
3082 wxLIST_SET_ITEM |
3083 wxLIST_MASK_WIDTH |
3084 wxLIST_MASK_FORMAT
3085 );
3086 if (self->GetColumn(col, item))
3087 return new wxListItem(item);
3088 else
3089 return NULL;
3090 }
0085ce49 3091SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d14a1e28
RD
3092 wxListItem* info = new wxListItem;
3093 info->m_itemId = itemId;
3094 info->m_col = col;
3095 info->m_mask = 0xFFFF;
3096 self->GetItem(*info);
3097 return info;
3098 }
0085ce49 3099SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d14a1e28
RD
3100 wxPoint pos;
3101 self->GetItemPosition(item, pos);
3102 return pos;
3103 }
0085ce49 3104SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d14a1e28
RD
3105 wxRect rect;
3106 self->GetItemRect(item, rect, code);
3107 return rect;
3108 }
0085ce49 3109SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d14a1e28 3110 if (!PyCallable_Check(func))
ae8162c8 3111 return false;
d14a1e28
RD
3112 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3113 }
0085ce49 3114SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d14a1e28
RD
3115
3116
3117
3118 return (wxWindow*)self->m_mainWin;
3119
3120 }
3121
3122#include <wx/treectrl.h>
3123#include "wx/wxPython/pytree.h"
d14a1e28 3124
33b885b9 3125 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
0085ce49
RD
3126SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3127SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3128SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
b02396e8
RD
3129
3130 static wxTreeItemId wxNullTreeItemId;
3131
d14a1e28
RD
3132 // C++ version of Python aware wxTreeCtrl
3133class wxPyTreeCtrl : public wxTreeCtrl {
32fe5131 3134 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d14a1e28
RD
3135public:
3136 wxPyTreeCtrl() : wxTreeCtrl() {}
3137 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3138 const wxPoint& pos,
3139 const wxSize& size,
3140 long style,
3141 const wxValidator& validator,
3142 const wxString& name) :
3143 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3144
3145 bool Create(wxWindow *parent, wxWindowID id,
3146 const wxPoint& pos,
3147 const wxSize& size,
3148 long style,
3149 const wxValidator& validator,
3150 const wxString& name) {
3151 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3152 }
3153
3154
3155 int OnCompareItems(const wxTreeItemId& item1,
3156 const wxTreeItemId& item2) {
3157 int rval = 0;
3158 bool found;
5a446332 3159 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3160 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
ae8162c8
RD
3161 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3162 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d14a1e28
RD
3163 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3164 Py_DECREF(o1);
3165 Py_DECREF(o2);
3166 }
4f89f6a3 3167 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3168 if (! found)
3169 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3170 return rval;
3171 }
3172 PYPRIVATE;
3173};
3174
3175IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3176
3177
0085ce49 3178SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d14a1e28
RD
3179 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3180 if (data == NULL) {
3181 data = new wxPyTreeItemData();
3182 data->SetId(item); // set the id
3183 self->SetItemData(item, data);
3184 }
3185 return data;
3186 }
0085ce49 3187SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d14a1e28
RD
3188 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3189 if (data == NULL) {
3190 data = new wxPyTreeItemData();
3191 data->SetId(item); // set the id
3192 self->SetItemData(item, data);
3193 }
3194 return data->GetData();
3195 }
0085ce49 3196SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d14a1e28
RD
3197 data->SetId(item); // set the id
3198 self->SetItemData(item, data);
3199 }
0085ce49 3200SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d14a1e28
RD
3201 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3202 if (data == NULL) {
3203 data = new wxPyTreeItemData(obj);
3204 data->SetId(item); // set the id
3205 self->SetItemData(item, data);
3206 } else
3207 data->SetData(obj);
3208 }
0085ce49 3209SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3210 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28
RD
3211 PyObject* rval = PyList_New(0);
3212 wxArrayTreeItemIds array;
3213 size_t num, x;
3214 num = self->GetSelections(array);
3215 for (x=0; x < num; x++) {
3216 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
ae8162c8 3217 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d14a1e28 3218 PyList_Append(rval, item);
1a10c483 3219 Py_DECREF(item);
d14a1e28 3220 }
4f89f6a3 3221 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3222 return rval;
3223 }
0085ce49 3224SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
58203fa6
RD
3225 void* cookie = 0;
3226 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3227 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3228 PyObject* tup = PyTuple_New(2);
ae8162c8 3229 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
58203fa6 3230 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
4f89f6a3 3231 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3232 return tup;
3233 }
0085ce49 3234SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
58203fa6 3235 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3236 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3237 PyObject* tup = PyTuple_New(2);
ae8162c8 3238 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
58203fa6 3239 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
4f89f6a3 3240 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3241 return tup;
3242 }
0085ce49 3243SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d14a1e28
RD
3244 wxRect rect;
3245 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3246 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d14a1e28 3247 wxRect* r = new wxRect(rect);
ae8162c8 3248 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
4f89f6a3 3249 wxPyEndBlockThreads(blocked);
d14a1e28
RD
3250 return val;
3251 }
3252 else
3253 RETURN_NONE();
3254 }
b2dc1044 3255 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c32bde28 3256
32fe5131 3257SWIGINTERNINLINE PyObject*
0085ce49 3258 SWIG_From_bool (bool value)
c32bde28 3259{
0085ce49 3260 return PyBool_FromLong(value ? 1 : 0);
c32bde28
RD
3261}
3262
d14a1e28
RD
3263 // C++ version of Python aware wxControl
3264class wxPyControl : public wxControl
3265{
3266 DECLARE_DYNAMIC_CLASS(wxPyControl)
3267public:
3268 wxPyControl() : wxControl() {}
3269 wxPyControl(wxWindow* parent, const wxWindowID id,
3270 const wxPoint& pos = wxDefaultPosition,
3271 const wxSize& size = wxDefaultSize,
3272 long style = 0,
3273 const wxValidator& validator=wxDefaultValidator,
3274 const wxString& name = wxPyControlNameStr)
3275 : wxControl(parent, id, pos, size, style, validator, name) {}
3276
3277
976dbff5
RD
3278 bool DoEraseBackground(wxDC* dc) {
3279#ifdef __WXMSW__
3280 return wxWindow::DoEraseBackground(dc->GetHDC());
3281#else
3282 dc->SetBackground(wxBrush(GetBackgroundColour()));
3283 dc->Clear();
3284 return true;
3285#endif
3286 }
3287
d14a1e28
RD
3288 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3289 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3290 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3291 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3292
3293 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3294 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3295 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3296
3297 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3298 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3299
3300 DEC_PYCALLBACK__(InitDialog);
3301 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3302 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3303 DEC_PYCALLBACK_BOOL_(Validate);
3304
3305 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3306 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3307 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3308
3309 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3310 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3311
db3e571a 3312 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
db3e571a 3313 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
4276dc52 3314
51b83b37
RD
3315 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3316
8d38bd1d
RD
3317 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3318
d14a1e28
RD
3319 PYPRIVATE;
3320};
3321
3322IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3323
3324IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3325IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3326IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3327IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3328
3329IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3330IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3331IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3332
3333IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3334IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3335
3336IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3337IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3338IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3339IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3340
3341IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3342IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3343IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3344
3345IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3346IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3347
db3e571a 3348IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
db3e571a 3349IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d14a1e28 3350
51b83b37 3351IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3352
3353IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3354
d14a1e28
RD
3355
3356
0085ce49 3357SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
e811c8ce
RD
3358
3359#include <wx/generic/dragimgg.h>
3360
53aa7709 3361 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
0085ce49 3362SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3363 wxDateTime rv;
3364 self->GetRange(&rv, NULL);
3365 return rv;
3366 }
0085ce49 3367SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3368 wxDateTime rv;
3369 self->GetRange(NULL, &rv);
3370 return rv;
3371 }
704eda0c 3372 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
b850e7f3
RD
3373 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3374 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3375 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3376 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3377 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3378 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3379 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
5172800e 3380 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3f7f284d 3381 static const wxString wxPySearchCtrlNameStr(wxSearchCtrlNameStr);
62358578
RD
3382
3383#if !defined(wxUSE_SEARCHCTRL) || !wxUSE_SEARCHCTRL
3384// define a dummy class for builds that don't have wxSearchCtrl
3385
3386enum {
4ed51f4d
RD
3387 wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN,
3388 wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN
62358578
RD
3389};
3390
3391class wxSearchCtrl : public wxTextCtrl
3392{
3393public:
3394 wxSearchCtrl() { wxPyRaiseNotImplemented(); }
3395 wxSearchCtrl(wxWindow*, wxWindowID,
3396 const wxString&,
3397 const wxPoint&,
3398 const wxSize&,
3399 long style,
3400 const wxValidator&,
3401 const wxString& name)
3402 { wxPyRaiseNotImplemented(); }
3403
3404 bool Create( wxWindow*, wxWindowID,
3405 const wxString&,
3406 const wxPoint&,
3407 const wxSize&,
3408 long style,
3409 const wxValidator&,
3410 const wxString& name) {}
3411
3412 virtual void SetMenu( wxMenu* ) {}
3413 virtual wxMenu* GetMenu() { return NULL; }
3414
3415 // get/set search options
3416 // ----------------------
3417 virtual void ShowSearchButton( bool ) {}
3418 virtual bool IsSearchButtonVisible() const { return false; }
3419
3420 virtual void ShowCancelButton( bool ) {}
3421 virtual bool IsCancelButtonVisible() const { return false; }
3422};
3423#endif
3424
d14a1e28
RD
3425#ifdef __cplusplus
3426extern "C" {
3427#endif
0085ce49
RD
3428SWIGINTERN int ButtonNameStr_set(PyObject *) {
3429 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3430 return 1;
b2dc1044
RD
3431}
3432
3433
0085ce49
RD
3434SWIGINTERN PyObject *ButtonNameStr_get(void) {
3435 PyObject *pyobj = 0;
3436
3437 {
b2dc1044 3438#if wxUSE_UNICODE
0085ce49 3439 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
b2dc1044 3440#else
0085ce49 3441 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
b2dc1044 3442#endif
0085ce49
RD
3443 }
3444 return pyobj;
3445}
3446
3447
3448SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3449 PyObject *resultobj = 0;
3450 wxWindow *arg1 = (wxWindow *) 0 ;
3451 int arg2 = (int) -1 ;
3452 wxString const &arg3_defvalue = wxPyEmptyString ;
3453 wxString *arg3 = (wxString *) &arg3_defvalue ;
3454 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3455 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3456 wxSize const &arg5_defvalue = wxDefaultSize ;
3457 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3458 long arg6 = (long) 0 ;
3459 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3460 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3461 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3462 wxString *arg8 = (wxString *) &arg8_defvalue ;
3463 wxButton *result = 0 ;
3464 void *argp1 = 0 ;
3465 int res1 = 0 ;
3466 int val2 ;
3467 int ecode2 = 0 ;
3468 bool temp3 = false ;
3469 wxPoint temp4 ;
3470 wxSize temp5 ;
3471 long val6 ;
3472 int ecode6 = 0 ;
3473 void *argp7 = 0 ;
3474 int res7 = 0 ;
3475 bool temp8 = false ;
3476 PyObject * obj0 = 0 ;
3477 PyObject * obj1 = 0 ;
3478 PyObject * obj2 = 0 ;
3479 PyObject * obj3 = 0 ;
3480 PyObject * obj4 = 0 ;
3481 PyObject * obj5 = 0 ;
3482 PyObject * obj6 = 0 ;
3483 PyObject * obj7 = 0 ;
3484 char * kwnames[] = {
3485 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3486 };
3487
3488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3490 if (!SWIG_IsOK(res1)) {
3491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3492 }
3493 arg1 = reinterpret_cast< wxWindow * >(argp1);
3494 if (obj1) {
3495 ecode2 = SWIG_AsVal_int(obj1, &val2);
3496 if (!SWIG_IsOK(ecode2)) {
3497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3498 }
3499 arg2 = static_cast< int >(val2);
3500 }
3501 if (obj2) {
d14a1e28 3502 {
0085ce49
RD
3503 arg3 = wxString_in_helper(obj2);
3504 if (arg3 == NULL) SWIG_fail;
3505 temp3 = true;
d14a1e28 3506 }
0085ce49
RD
3507 }
3508 if (obj3) {
d14a1e28 3509 {
0085ce49
RD
3510 arg4 = &temp4;
3511 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 3512 }
0085ce49
RD
3513 }
3514 if (obj4) {
d14a1e28 3515 {
0085ce49
RD
3516 arg5 = &temp5;
3517 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3518 }
0085ce49
RD
3519 }
3520 if (obj5) {
3521 ecode6 = SWIG_AsVal_long(obj5, &val6);
3522 if (!SWIG_IsOK(ecode6)) {
3523 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3524 }
3525 arg6 = static_cast< long >(val6);
3526 }
3527 if (obj6) {
3528 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3529 if (!SWIG_IsOK(res7)) {
3530 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 3531 }
0085ce49
RD
3532 if (!argp7) {
3533 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 3534 }
0085ce49
RD
3535 arg7 = reinterpret_cast< wxValidator * >(argp7);
3536 }
3537 if (obj7) {
d14a1e28 3538 {
0085ce49
RD
3539 arg8 = wxString_in_helper(obj7);
3540 if (arg8 == NULL) SWIG_fail;
3541 temp8 = true;
d14a1e28 3542 }
0085ce49
RD
3543 }
3544 {
3545 if (!wxPyCheckForApp()) SWIG_fail;
3546 PyThreadState* __tstate = wxPyBeginAllowThreads();
3547 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3548 wxPyEndAllowThreads(__tstate);
3549 if (PyErr_Occurred()) SWIG_fail;
3550 }
3551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3552 {
3553 if (temp3)
3554 delete arg3;
3555 }
3556 {
3557 if (temp8)
3558 delete arg8;
3559 }
3560 return resultobj;
3561fail:
3562 {
3563 if (temp3)
3564 delete arg3;
3565 }
3566 {
3567 if (temp8)
3568 delete arg8;
3569 }
3570 return NULL;
d14a1e28
RD
3571}
3572
3573
0085ce49
RD
3574SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3575 PyObject *resultobj = 0;
3576 wxButton *result = 0 ;
3577
3578 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3579 {
3580 if (!wxPyCheckForApp()) SWIG_fail;
3581 PyThreadState* __tstate = wxPyBeginAllowThreads();
3582 result = (wxButton *)new wxButton();
3583 wxPyEndAllowThreads(__tstate);
3584 if (PyErr_Occurred()) SWIG_fail;
3585 }
3586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3587 return resultobj;
3588fail:
3589 return NULL;
3590}
3591
3592
3593SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3594 PyObject *resultobj = 0;
3595 wxButton *arg1 = (wxButton *) 0 ;
3596 wxWindow *arg2 = (wxWindow *) 0 ;
3597 int arg3 = (int) -1 ;
3598 wxString const &arg4_defvalue = wxPyEmptyString ;
3599 wxString *arg4 = (wxString *) &arg4_defvalue ;
3600 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3601 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3602 wxSize const &arg6_defvalue = wxDefaultSize ;
3603 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3604 long arg7 = (long) 0 ;
3605 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3606 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3607 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3608 wxString *arg9 = (wxString *) &arg9_defvalue ;
3609 bool result;
3610 void *argp1 = 0 ;
3611 int res1 = 0 ;
3612 void *argp2 = 0 ;
3613 int res2 = 0 ;
3614 int val3 ;
3615 int ecode3 = 0 ;
3616 bool temp4 = false ;
3617 wxPoint temp5 ;
3618 wxSize temp6 ;
3619 long val7 ;
3620 int ecode7 = 0 ;
3621 void *argp8 = 0 ;
3622 int res8 = 0 ;
3623 bool temp9 = false ;
3624 PyObject * obj0 = 0 ;
3625 PyObject * obj1 = 0 ;
3626 PyObject * obj2 = 0 ;
3627 PyObject * obj3 = 0 ;
3628 PyObject * obj4 = 0 ;
3629 PyObject * obj5 = 0 ;
3630 PyObject * obj6 = 0 ;
3631 PyObject * obj7 = 0 ;
3632 PyObject * obj8 = 0 ;
3633 char * kwnames[] = {
3634 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3635 };
3636
3637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3639 if (!SWIG_IsOK(res1)) {
3640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3641 }
3642 arg1 = reinterpret_cast< wxButton * >(argp1);
3643 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3644 if (!SWIG_IsOK(res2)) {
3645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3646 }
3647 arg2 = reinterpret_cast< wxWindow * >(argp2);
3648 if (obj2) {
3649 ecode3 = SWIG_AsVal_int(obj2, &val3);
3650 if (!SWIG_IsOK(ecode3)) {
3651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3652 }
3653 arg3 = static_cast< int >(val3);
3654 }
3655 if (obj3) {
d14a1e28 3656 {
0085ce49
RD
3657 arg4 = wxString_in_helper(obj3);
3658 if (arg4 == NULL) SWIG_fail;
3659 temp4 = true;
d14a1e28 3660 }
0085ce49
RD
3661 }
3662 if (obj4) {
4f89f6a3 3663 {
0085ce49
RD
3664 arg5 = &temp5;
3665 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4f89f6a3 3666 }
0085ce49
RD
3667 }
3668 if (obj5) {
d14a1e28 3669 {
0085ce49
RD
3670 arg6 = &temp6;
3671 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 3672 }
0085ce49
RD
3673 }
3674 if (obj6) {
3675 ecode7 = SWIG_AsVal_long(obj6, &val7);
3676 if (!SWIG_IsOK(ecode7)) {
3677 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3678 }
3679 arg7 = static_cast< long >(val7);
3680 }
3681 if (obj7) {
3682 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3683 if (!SWIG_IsOK(res8)) {
3684 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 3685 }
0085ce49
RD
3686 if (!argp8) {
3687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 3688 }
0085ce49
RD
3689 arg8 = reinterpret_cast< wxValidator * >(argp8);
3690 }
3691 if (obj8) {
d14a1e28 3692 {
0085ce49
RD
3693 arg9 = wxString_in_helper(obj8);
3694 if (arg9 == NULL) SWIG_fail;
3695 temp9 = true;
d14a1e28 3696 }
0085ce49
RD
3697 }
3698 {
3699 PyThreadState* __tstate = wxPyBeginAllowThreads();
3700 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3701 wxPyEndAllowThreads(__tstate);
3702 if (PyErr_Occurred()) SWIG_fail;
3703 }
3704 {
3705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3706 }
3707 {
3708 if (temp4)
3709 delete arg4;
3710 }
3711 {
3712 if (temp9)
3713 delete arg9;
3714 }
3715 return resultobj;
3716fail:
3717 {
3718 if (temp4)
3719 delete arg4;
3720 }
3721 {
3722 if (temp9)
3723 delete arg9;
3724 }
3725 return NULL;
d14a1e28
RD
3726}
3727
3728
0085ce49
RD
3729SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3730 PyObject *resultobj = 0;
3731 wxButton *arg1 = (wxButton *) 0 ;
3732 void *argp1 = 0 ;
3733 int res1 = 0 ;
3734 PyObject *swig_obj[1] ;
3735
3736 if (!args) SWIG_fail;
3737 swig_obj[0] = args;
3738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3739 if (!SWIG_IsOK(res1)) {
3740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3741 }
3742 arg1 = reinterpret_cast< wxButton * >(argp1);
3743 {
3744 PyThreadState* __tstate = wxPyBeginAllowThreads();
3745 (arg1)->SetDefault();
3746 wxPyEndAllowThreads(__tstate);
3747 if (PyErr_Occurred()) SWIG_fail;
3748 }
3749 resultobj = SWIG_Py_Void();
3750 return resultobj;
3751fail:
3752 return NULL;
d14a1e28
RD
3753}
3754
3755
0085ce49
RD
3756SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3757 PyObject *resultobj = 0;
3758 wxSize result;
3759
3760 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3761 {
3762 PyThreadState* __tstate = wxPyBeginAllowThreads();
3763 result = wxButton::GetDefaultSize();
3764 wxPyEndAllowThreads(__tstate);
3765 if (PyErr_Occurred()) SWIG_fail;
3766 }
3767 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3768 return resultobj;
3769fail:
3770 return NULL;
3771}
3772
3773
3774SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3775 PyObject *resultobj = 0;
3776 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3777 SwigValueWrapper<wxVisualAttributes > result;
3778 int val1 ;
3779 int ecode1 = 0 ;
3780 PyObject * obj0 = 0 ;
3781 char * kwnames[] = {
3782 (char *) "variant", NULL
3783 };
3784
3785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3786 if (obj0) {
3787 ecode1 = SWIG_AsVal_int(obj0, &val1);
3788 if (!SWIG_IsOK(ecode1)) {
3789 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3790 }
3791 arg1 = static_cast< wxWindowVariant >(val1);
3792 }
3793 {
3794 if (!wxPyCheckForApp()) SWIG_fail;
3795 PyThreadState* __tstate = wxPyBeginAllowThreads();
3796 result = wxButton::GetClassDefaultAttributes(arg1);
3797 wxPyEndAllowThreads(__tstate);
3798 if (PyErr_Occurred()) SWIG_fail;
3799 }
3800 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3801 return resultobj;
3802fail:
3803 return NULL;
3804}
3805
3806
3807SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3808 PyObject *obj;
3809 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3810 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3811 return SWIG_Py_Void();
3812}
3813
3814SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3815 return SWIG_Python_InitShadowInstance(args);
3816}
3817
3818SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3819 PyObject *resultobj = 0;
3820 wxWindow *arg1 = (wxWindow *) 0 ;
3821 int arg2 = (int) -1 ;
3822 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3823 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3824 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3825 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3826 wxSize const &arg5_defvalue = wxDefaultSize ;
3827 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3828 long arg6 = (long) wxBU_AUTODRAW ;
3829 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3830 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3831 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3832 wxString *arg8 = (wxString *) &arg8_defvalue ;
3833 wxBitmapButton *result = 0 ;
3834 void *argp1 = 0 ;
3835 int res1 = 0 ;
3836 int val2 ;
3837 int ecode2 = 0 ;
3838 void *argp3 = 0 ;
3839 int res3 = 0 ;
3840 wxPoint temp4 ;
3841 wxSize temp5 ;
3842 long val6 ;
3843 int ecode6 = 0 ;
3844 void *argp7 = 0 ;
3845 int res7 = 0 ;
3846 bool temp8 = false ;
3847 PyObject * obj0 = 0 ;
3848 PyObject * obj1 = 0 ;
3849 PyObject * obj2 = 0 ;
3850 PyObject * obj3 = 0 ;
3851 PyObject * obj4 = 0 ;
3852 PyObject * obj5 = 0 ;
3853 PyObject * obj6 = 0 ;
3854 PyObject * obj7 = 0 ;
3855 char * kwnames[] = {
3856 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3857 };
3858
3859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3861 if (!SWIG_IsOK(res1)) {
3862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3863 }
3864 arg1 = reinterpret_cast< wxWindow * >(argp1);
3865 if (obj1) {
3866 ecode2 = SWIG_AsVal_int(obj1, &val2);
3867 if (!SWIG_IsOK(ecode2)) {
3868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3869 }
3870 arg2 = static_cast< int >(val2);
3871 }
3872 if (obj2) {
3873 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3874 if (!SWIG_IsOK(res3)) {
3875 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3876 }
3877 if (!argp3) {
3878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3879 }
3880 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3881 }
3882 if (obj3) {
d14a1e28 3883 {
0085ce49
RD
3884 arg4 = &temp4;
3885 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 3886 }
0085ce49
RD
3887 }
3888 if (obj4) {
d14a1e28 3889 {
0085ce49
RD
3890 arg5 = &temp5;
3891 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 3892 }
0085ce49
RD
3893 }
3894 if (obj5) {
3895 ecode6 = SWIG_AsVal_long(obj5, &val6);
3896 if (!SWIG_IsOK(ecode6)) {
3897 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3898 }
3899 arg6 = static_cast< long >(val6);
3900 }
3901 if (obj6) {
3902 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3903 if (!SWIG_IsOK(res7)) {
3904 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
22bfe96c 3905 }
0085ce49
RD
3906 if (!argp7) {
3907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
22bfe96c 3908 }
0085ce49
RD
3909 arg7 = reinterpret_cast< wxValidator * >(argp7);
3910 }
3911 if (obj7) {
22bfe96c 3912 {
0085ce49
RD
3913 arg8 = wxString_in_helper(obj7);
3914 if (arg8 == NULL) SWIG_fail;
3915 temp8 = true;
22bfe96c 3916 }
0085ce49
RD
3917 }
3918 {
3919 if (!wxPyCheckForApp()) SWIG_fail;
3920 PyThreadState* __tstate = wxPyBeginAllowThreads();
3921 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3922 wxPyEndAllowThreads(__tstate);
3923 if (PyErr_Occurred()) SWIG_fail;
3924 }
3925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3926 {
3927 if (temp8)
3928 delete arg8;
3929 }
3930 return resultobj;
3931fail:
3932 {
3933 if (temp8)
3934 delete arg8;
3935 }
3936 return NULL;
22bfe96c
RD
3937}
3938
3939
0085ce49
RD
3940SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3941 PyObject *resultobj = 0;
3942 wxBitmapButton *result = 0 ;
3943
3944 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3945 {
3946 if (!wxPyCheckForApp()) SWIG_fail;
3947 PyThreadState* __tstate = wxPyBeginAllowThreads();
3948 result = (wxBitmapButton *)new wxBitmapButton();
3949 wxPyEndAllowThreads(__tstate);
3950 if (PyErr_Occurred()) SWIG_fail;
3951 }
3952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3953 return resultobj;
3954fail:
3955 return NULL;
3956}
3957
3958
3959SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3960 PyObject *resultobj = 0;
3961 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3962 wxWindow *arg2 = (wxWindow *) 0 ;
3963 int arg3 = (int) -1 ;
3964 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3965 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3966 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3967 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3968 wxSize const &arg6_defvalue = wxDefaultSize ;
3969 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3970 long arg7 = (long) wxBU_AUTODRAW ;
3971 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3972 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3973 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3974 wxString *arg9 = (wxString *) &arg9_defvalue ;
3975 bool result;
3976 void *argp1 = 0 ;
3977 int res1 = 0 ;
3978 void *argp2 = 0 ;
3979 int res2 = 0 ;
3980 int val3 ;
3981 int ecode3 = 0 ;
3982 void *argp4 = 0 ;
3983 int res4 = 0 ;
3984 wxPoint temp5 ;
3985 wxSize temp6 ;
3986 long val7 ;
3987 int ecode7 = 0 ;
3988 void *argp8 = 0 ;
3989 int res8 = 0 ;
3990 bool temp9 = false ;
3991 PyObject * obj0 = 0 ;
3992 PyObject * obj1 = 0 ;
3993 PyObject * obj2 = 0 ;
3994 PyObject * obj3 = 0 ;
3995 PyObject * obj4 = 0 ;
3996 PyObject * obj5 = 0 ;
3997 PyObject * obj6 = 0 ;
3998 PyObject * obj7 = 0 ;
3999 PyObject * obj8 = 0 ;
4000 char * kwnames[] = {
4001 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4002 };
4003
4004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4006 if (!SWIG_IsOK(res1)) {
4007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4008 }
4009 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4010 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4011 if (!SWIG_IsOK(res2)) {
4012 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4013 }
4014 arg2 = reinterpret_cast< wxWindow * >(argp2);
4015 if (obj2) {
4016 ecode3 = SWIG_AsVal_int(obj2, &val3);
4017 if (!SWIG_IsOK(ecode3)) {
4018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
4019 }
4020 arg3 = static_cast< int >(val3);
4021 }
4022 if (obj3) {
4023 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
4024 if (!SWIG_IsOK(res4)) {
4025 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d14a1e28 4026 }
0085ce49
RD
4027 if (!argp4) {
4028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d14a1e28 4029 }
0085ce49
RD
4030 arg4 = reinterpret_cast< wxBitmap * >(argp4);
4031 }
4032 if (obj4) {
d14a1e28 4033 {
0085ce49
RD
4034 arg5 = &temp5;
4035 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 4036 }
0085ce49
RD
4037 }
4038 if (obj5) {
d14a1e28 4039 {
0085ce49
RD
4040 arg6 = &temp6;
4041 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4042 }
4043 }
4044 if (obj6) {
4045 ecode7 = SWIG_AsVal_long(obj6, &val7);
4046 if (!SWIG_IsOK(ecode7)) {
4047 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4048 }
4049 arg7 = static_cast< long >(val7);
4050 }
4051 if (obj7) {
4052 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4053 if (!SWIG_IsOK(res8)) {
4054 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4055 }
4056 if (!argp8) {
4057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 4058 }
0085ce49
RD
4059 arg8 = reinterpret_cast< wxValidator * >(argp8);
4060 }
4061 if (obj8) {
d14a1e28 4062 {
0085ce49
RD
4063 arg9 = wxString_in_helper(obj8);
4064 if (arg9 == NULL) SWIG_fail;
4065 temp9 = true;
d14a1e28 4066 }
0085ce49
RD
4067 }
4068 {
4069 PyThreadState* __tstate = wxPyBeginAllowThreads();
4070 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4071 wxPyEndAllowThreads(__tstate);
4072 if (PyErr_Occurred()) SWIG_fail;
4073 }
4074 {
4075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4076 }
4077 {
4078 if (temp9)
4079 delete arg9;
4080 }
4081 return resultobj;
4082fail:
4083 {
4084 if (temp9)
4085 delete arg9;
4086 }
4087 return NULL;
d14a1e28
RD
4088}
4089
4090
0085ce49
RD
4091SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4092 PyObject *resultobj = 0;
4093 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4094 wxBitmap result;
4095 void *argp1 = 0 ;
4096 int res1 = 0 ;
4097 PyObject *swig_obj[1] ;
4098
4099 if (!args) SWIG_fail;
4100 swig_obj[0] = args;
4101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4102 if (!SWIG_IsOK(res1)) {
4103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4104 }
4105 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4106 {
4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
4108 result = (arg1)->GetBitmapLabel();
4109 wxPyEndAllowThreads(__tstate);
4110 if (PyErr_Occurred()) SWIG_fail;
4111 }
4112 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4113 return resultobj;
4114fail:
4115 return NULL;
d14a1e28
RD
4116}
4117
4118
0085ce49
RD
4119SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4120 PyObject *resultobj = 0;
4121 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4122 wxBitmap result;
4123 void *argp1 = 0 ;
4124 int res1 = 0 ;
4125 PyObject *swig_obj[1] ;
4126
4127 if (!args) SWIG_fail;
4128 swig_obj[0] = args;
4129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4130 if (!SWIG_IsOK(res1)) {
4131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4132 }
4133 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4134 {
4135 PyThreadState* __tstate = wxPyBeginAllowThreads();
4136 result = (arg1)->GetBitmapDisabled();
4137 wxPyEndAllowThreads(__tstate);
4138 if (PyErr_Occurred()) SWIG_fail;
4139 }
4140 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4141 return resultobj;
4142fail:
4143 return NULL;
d14a1e28
RD
4144}
4145
4146
0085ce49
RD
4147SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4148 PyObject *resultobj = 0;
4149 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4150 wxBitmap result;
4151 void *argp1 = 0 ;
4152 int res1 = 0 ;
4153 PyObject *swig_obj[1] ;
4154
4155 if (!args) SWIG_fail;
4156 swig_obj[0] = args;
4157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4158 if (!SWIG_IsOK(res1)) {
4159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4160 }
4161 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4162 {
4163 PyThreadState* __tstate = wxPyBeginAllowThreads();
4164 result = (arg1)->GetBitmapFocus();
4165 wxPyEndAllowThreads(__tstate);
4166 if (PyErr_Occurred()) SWIG_fail;
4167 }
4168 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4169 return resultobj;
4170fail:
4171 return NULL;
d14a1e28
RD
4172}
4173
4174
0085ce49
RD
4175SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4176 PyObject *resultobj = 0;
4177 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4178 wxBitmap result;
4179 void *argp1 = 0 ;
4180 int res1 = 0 ;
4181 PyObject *swig_obj[1] ;
4182
4183 if (!args) SWIG_fail;
4184 swig_obj[0] = args;
4185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4186 if (!SWIG_IsOK(res1)) {
4187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4188 }
4189 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4190 {
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 result = (arg1)->GetBitmapSelected();
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4197 return resultobj;
4198fail:
4199 return NULL;
d14a1e28
RD
4200}
4201
4202
0085ce49
RD
4203SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4204 PyObject *resultobj = 0;
4205 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4206 wxBitmap result;
4207 void *argp1 = 0 ;
4208 int res1 = 0 ;
4209 PyObject *swig_obj[1] ;
4210
4211 if (!args) SWIG_fail;
4212 swig_obj[0] = args;
4213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4214 if (!SWIG_IsOK(res1)) {
4215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4216 }
4217 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4218 {
4219 PyThreadState* __tstate = wxPyBeginAllowThreads();
4220 result = (arg1)->GetBitmapHover();
4221 wxPyEndAllowThreads(__tstate);
4222 if (PyErr_Occurred()) SWIG_fail;
4223 }
4224 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4225 return resultobj;
4226fail:
4227 return NULL;
4228}
4229
4230
4231SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4232 PyObject *resultobj = 0;
4233 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4234 wxBitmap *arg2 = 0 ;
4235 void *argp1 = 0 ;
4236 int res1 = 0 ;
4237 void *argp2 = 0 ;
4238 int res2 = 0 ;
4239 PyObject * obj0 = 0 ;
4240 PyObject * obj1 = 0 ;
4241 char * kwnames[] = {
4242 (char *) "self",(char *) "bitmap", NULL
4243 };
4244
4245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4247 if (!SWIG_IsOK(res1)) {
4248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4249 }
4250 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4251 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4252 if (!SWIG_IsOK(res2)) {
4253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4254 }
4255 if (!argp2) {
4256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4257 }
4258 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4259 {
4260 PyThreadState* __tstate = wxPyBeginAllowThreads();
4261 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4262 wxPyEndAllowThreads(__tstate);
4263 if (PyErr_Occurred()) SWIG_fail;
4264 }
4265 resultobj = SWIG_Py_Void();
4266 return resultobj;
4267fail:
4268 return NULL;
4269}
4270
4271
4272SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4273 PyObject *resultobj = 0;
4274 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4275 wxBitmap *arg2 = 0 ;
4276 void *argp1 = 0 ;
4277 int res1 = 0 ;
4278 void *argp2 = 0 ;
4279 int res2 = 0 ;
4280 PyObject * obj0 = 0 ;
4281 PyObject * obj1 = 0 ;
4282 char * kwnames[] = {
4283 (char *) "self",(char *) "bitmap", NULL
4284 };
4285
4286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4288 if (!SWIG_IsOK(res1)) {
4289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4290 }
4291 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4292 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4293 if (!SWIG_IsOK(res2)) {
4294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4295 }
4296 if (!argp2) {
4297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4298 }
4299 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4300 {
4301 PyThreadState* __tstate = wxPyBeginAllowThreads();
4302 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4303 wxPyEndAllowThreads(__tstate);
4304 if (PyErr_Occurred()) SWIG_fail;
4305 }
4306 resultobj = SWIG_Py_Void();
4307 return resultobj;
4308fail:
4309 return NULL;
4310}
4311
4312
4313SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4314 PyObject *resultobj = 0;
4315 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4316 wxBitmap *arg2 = 0 ;
4317 void *argp1 = 0 ;
4318 int res1 = 0 ;
4319 void *argp2 = 0 ;
4320 int res2 = 0 ;
4321 PyObject * obj0 = 0 ;
4322 PyObject * obj1 = 0 ;
4323 char * kwnames[] = {
4324 (char *) "self",(char *) "bitmap", NULL
4325 };
4326
4327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4329 if (!SWIG_IsOK(res1)) {
4330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4331 }
4332 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4333 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4334 if (!SWIG_IsOK(res2)) {
4335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4336 }
4337 if (!argp2) {
4338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4339 }
4340 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4341 {
4342 PyThreadState* __tstate = wxPyBeginAllowThreads();
4343 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4344 wxPyEndAllowThreads(__tstate);
4345 if (PyErr_Occurred()) SWIG_fail;
4346 }
4347 resultobj = SWIG_Py_Void();
4348 return resultobj;
4349fail:
4350 return NULL;
4351}
4352
4353
4354SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4355 PyObject *resultobj = 0;
4356 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4357 wxBitmap *arg2 = 0 ;
4358 void *argp1 = 0 ;
4359 int res1 = 0 ;
4360 void *argp2 = 0 ;
4361 int res2 = 0 ;
4362 PyObject * obj0 = 0 ;
4363 PyObject * obj1 = 0 ;
4364 char * kwnames[] = {
4365 (char *) "self",(char *) "bitmap", NULL
4366 };
4367
4368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4370 if (!SWIG_IsOK(res1)) {
4371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4372 }
4373 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4374 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4375 if (!SWIG_IsOK(res2)) {
4376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4377 }
4378 if (!argp2) {
4379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4380 }
4381 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4382 {
4383 PyThreadState* __tstate = wxPyBeginAllowThreads();
4384 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4385 wxPyEndAllowThreads(__tstate);
4386 if (PyErr_Occurred()) SWIG_fail;
4387 }
4388 resultobj = SWIG_Py_Void();
4389 return resultobj;
4390fail:
4391 return NULL;
4392}
4393
4394
4395SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4396 PyObject *resultobj = 0;
4397 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4398 wxBitmap *arg2 = 0 ;
4399 void *argp1 = 0 ;
4400 int res1 = 0 ;
4401 void *argp2 = 0 ;
4402 int res2 = 0 ;
4403 PyObject * obj0 = 0 ;
4404 PyObject * obj1 = 0 ;
4405 char * kwnames[] = {
4406 (char *) "self",(char *) "hover", NULL
4407 };
4408
4409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4411 if (!SWIG_IsOK(res1)) {
4412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4413 }
4414 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4415 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4416 if (!SWIG_IsOK(res2)) {
4417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4418 }
4419 if (!argp2) {
4420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4421 }
4422 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4423 {
4424 PyThreadState* __tstate = wxPyBeginAllowThreads();
4425 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4426 wxPyEndAllowThreads(__tstate);
4427 if (PyErr_Occurred()) SWIG_fail;
4428 }
4429 resultobj = SWIG_Py_Void();
4430 return resultobj;
4431fail:
4432 return NULL;
4433}
4434
4435
4436SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4437 PyObject *resultobj = 0;
4438 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4439 int arg2 ;
4440 int arg3 ;
4441 void *argp1 = 0 ;
4442 int res1 = 0 ;
4443 int val2 ;
4444 int ecode2 = 0 ;
4445 int val3 ;
4446 int ecode3 = 0 ;
4447 PyObject * obj0 = 0 ;
4448 PyObject * obj1 = 0 ;
4449 PyObject * obj2 = 0 ;
4450 char * kwnames[] = {
4451 (char *) "self",(char *) "x",(char *) "y", NULL
4452 };
4453
4454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4456 if (!SWIG_IsOK(res1)) {
4457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4458 }
4459 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4460 ecode2 = SWIG_AsVal_int(obj1, &val2);
4461 if (!SWIG_IsOK(ecode2)) {
4462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4463 }
4464 arg2 = static_cast< int >(val2);
4465 ecode3 = SWIG_AsVal_int(obj2, &val3);
4466 if (!SWIG_IsOK(ecode3)) {
4467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4468 }
4469 arg3 = static_cast< int >(val3);
4470 {
4471 PyThreadState* __tstate = wxPyBeginAllowThreads();
4472 (arg1)->SetMargins(arg2,arg3);
4473 wxPyEndAllowThreads(__tstate);
4474 if (PyErr_Occurred()) SWIG_fail;
4475 }
4476 resultobj = SWIG_Py_Void();
4477 return resultobj;
4478fail:
4479 return NULL;
d14a1e28
RD
4480}
4481
4482
0085ce49
RD
4483SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4484 PyObject *resultobj = 0;
4485 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4486 int result;
4487 void *argp1 = 0 ;
4488 int res1 = 0 ;
4489 PyObject *swig_obj[1] ;
4490
4491 if (!args) SWIG_fail;
4492 swig_obj[0] = args;
4493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4494 if (!SWIG_IsOK(res1)) {
4495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4496 }
4497 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4498 {
4499 PyThreadState* __tstate = wxPyBeginAllowThreads();
4500 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4501 wxPyEndAllowThreads(__tstate);
4502 if (PyErr_Occurred()) SWIG_fail;
4503 }
4504 resultobj = SWIG_From_int(static_cast< int >(result));
4505 return resultobj;
4506fail:
4507 return NULL;
d14a1e28
RD
4508}
4509
4510
0085ce49
RD
4511SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4512 PyObject *resultobj = 0;
4513 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4514 int result;
4515 void *argp1 = 0 ;
4516 int res1 = 0 ;
4517 PyObject *swig_obj[1] ;
4518
4519 if (!args) SWIG_fail;
4520 swig_obj[0] = args;
4521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4522 if (!SWIG_IsOK(res1)) {
4523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4524 }
4525 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4526 {
4527 PyThreadState* __tstate = wxPyBeginAllowThreads();
4528 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4529 wxPyEndAllowThreads(__tstate);
4530 if (PyErr_Occurred()) SWIG_fail;
4531 }
4532 resultobj = SWIG_From_int(static_cast< int >(result));
4533 return resultobj;
4534fail:
4535 return NULL;
b1fcee84
RD
4536}
4537
4538
0085ce49
RD
4539SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4540 PyObject *obj;
4541 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4542 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4543 return SWIG_Py_Void();
d14a1e28
RD
4544}
4545
0085ce49
RD
4546SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4547 return SWIG_Python_InitShadowInstance(args);
4548}
d14a1e28 4549
0085ce49
RD
4550SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4551 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4552 return 1;
d14a1e28
RD
4553}
4554
4555
0085ce49
RD
4556SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4557 PyObject *pyobj = 0;
4558
4559 {
4560#if wxUSE_UNICODE
4561 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4562#else
4563 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4564#endif
4565 }
4566 return pyobj;
4567}
4568
4569
4570SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4571 PyObject *resultobj = 0;
4572 wxWindow *arg1 = (wxWindow *) 0 ;
4573 int arg2 = (int) -1 ;
4574 wxString const &arg3_defvalue = wxPyEmptyString ;
4575 wxString *arg3 = (wxString *) &arg3_defvalue ;
4576 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4577 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4578 wxSize const &arg5_defvalue = wxDefaultSize ;
4579 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4580 long arg6 = (long) 0 ;
4581 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4582 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4583 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4584 wxString *arg8 = (wxString *) &arg8_defvalue ;
4585 wxCheckBox *result = 0 ;
4586 void *argp1 = 0 ;
4587 int res1 = 0 ;
4588 int val2 ;
4589 int ecode2 = 0 ;
4590 bool temp3 = false ;
4591 wxPoint temp4 ;
4592 wxSize temp5 ;
4593 long val6 ;
4594 int ecode6 = 0 ;
4595 void *argp7 = 0 ;
4596 int res7 = 0 ;
4597 bool temp8 = false ;
4598 PyObject * obj0 = 0 ;
4599 PyObject * obj1 = 0 ;
4600 PyObject * obj2 = 0 ;
4601 PyObject * obj3 = 0 ;
4602 PyObject * obj4 = 0 ;
4603 PyObject * obj5 = 0 ;
4604 PyObject * obj6 = 0 ;
4605 PyObject * obj7 = 0 ;
4606 char * kwnames[] = {
4607 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4608 };
4609
4610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4612 if (!SWIG_IsOK(res1)) {
4613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4614 }
4615 arg1 = reinterpret_cast< wxWindow * >(argp1);
4616 if (obj1) {
4617 ecode2 = SWIG_AsVal_int(obj1, &val2);
4618 if (!SWIG_IsOK(ecode2)) {
4619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4620 }
4621 arg2 = static_cast< int >(val2);
4622 }
4623 if (obj2) {
d14a1e28 4624 {
0085ce49
RD
4625 arg3 = wxString_in_helper(obj2);
4626 if (arg3 == NULL) SWIG_fail;
4627 temp3 = true;
d14a1e28 4628 }
0085ce49
RD
4629 }
4630 if (obj3) {
4631 {
4632 arg4 = &temp4;
4633 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 4634 }
0085ce49
RD
4635 }
4636 if (obj4) {
d14a1e28 4637 {
0085ce49
RD
4638 arg5 = &temp5;
4639 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 4640 }
0085ce49
RD
4641 }
4642 if (obj5) {
4643 ecode6 = SWIG_AsVal_long(obj5, &val6);
4644 if (!SWIG_IsOK(ecode6)) {
4645 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4646 }
4647 arg6 = static_cast< long >(val6);
4648 }
4649 if (obj6) {
4650 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4651 if (!SWIG_IsOK(res7)) {
4652 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4653 }
0085ce49
RD
4654 if (!argp7) {
4655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4656 }
4657 arg7 = reinterpret_cast< wxValidator * >(argp7);
4658 }
4659 if (obj7) {
b1fcee84 4660 {
0085ce49
RD
4661 arg8 = wxString_in_helper(obj7);
4662 if (arg8 == NULL) SWIG_fail;
4663 temp8 = true;
b1fcee84 4664 }
0085ce49
RD
4665 }
4666 {
4667 if (!wxPyCheckForApp()) SWIG_fail;
4668 PyThreadState* __tstate = wxPyBeginAllowThreads();
4669 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4670 wxPyEndAllowThreads(__tstate);
4671 if (PyErr_Occurred()) SWIG_fail;
4672 }
4673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4674 {
4675 if (temp3)
4676 delete arg3;
4677 }
4678 {
4679 if (temp8)
4680 delete arg8;
4681 }
4682 return resultobj;
4683fail:
4684 {
4685 if (temp3)
4686 delete arg3;
4687 }
4688 {
4689 if (temp8)
4690 delete arg8;
4691 }
4692 return NULL;
b1fcee84
RD
4693}
4694
4695
0085ce49
RD
4696SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4697 PyObject *resultobj = 0;
4698 wxCheckBox *result = 0 ;
4699
4700 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4701 {
4702 if (!wxPyCheckForApp()) SWIG_fail;
4703 PyThreadState* __tstate = wxPyBeginAllowThreads();
4704 result = (wxCheckBox *)new wxCheckBox();
4705 wxPyEndAllowThreads(__tstate);
4706 if (PyErr_Occurred()) SWIG_fail;
4707 }
4708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4709 return resultobj;
4710fail:
4711 return NULL;
4712}
4713
4714
4715SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4716 PyObject *resultobj = 0;
4717 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4718 wxWindow *arg2 = (wxWindow *) 0 ;
4719 int arg3 = (int) -1 ;
4720 wxString const &arg4_defvalue = wxPyEmptyString ;
4721 wxString *arg4 = (wxString *) &arg4_defvalue ;
4722 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4723 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4724 wxSize const &arg6_defvalue = wxDefaultSize ;
4725 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4726 long arg7 = (long) 0 ;
4727 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4728 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4729 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4730 wxString *arg9 = (wxString *) &arg9_defvalue ;
4731 bool result;
4732 void *argp1 = 0 ;
4733 int res1 = 0 ;
4734 void *argp2 = 0 ;
4735 int res2 = 0 ;
4736 int val3 ;
4737 int ecode3 = 0 ;
4738 bool temp4 = false ;
4739 wxPoint temp5 ;
4740 wxSize temp6 ;
4741 long val7 ;
4742 int ecode7 = 0 ;
4743 void *argp8 = 0 ;
4744 int res8 = 0 ;
4745 bool temp9 = false ;
4746 PyObject * obj0 = 0 ;
4747 PyObject * obj1 = 0 ;
4748 PyObject * obj2 = 0 ;
4749 PyObject * obj3 = 0 ;
4750 PyObject * obj4 = 0 ;
4751 PyObject * obj5 = 0 ;
4752 PyObject * obj6 = 0 ;
4753 PyObject * obj7 = 0 ;
4754 PyObject * obj8 = 0 ;
4755 char * kwnames[] = {
4756 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4757 };
4758
4759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4761 if (!SWIG_IsOK(res1)) {
4762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4763 }
4764 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4765 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4766 if (!SWIG_IsOK(res2)) {
4767 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4768 }
4769 arg2 = reinterpret_cast< wxWindow * >(argp2);
4770 if (obj2) {
4771 ecode3 = SWIG_AsVal_int(obj2, &val3);
4772 if (!SWIG_IsOK(ecode3)) {
4773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4774 }
4775 arg3 = static_cast< int >(val3);
4776 }
4777 if (obj3) {
093d3ff1 4778 {
0085ce49
RD
4779 arg4 = wxString_in_helper(obj3);
4780 if (arg4 == NULL) SWIG_fail;
4781 temp4 = true;
093d3ff1 4782 }
0085ce49
RD
4783 }
4784 if (obj4) {
093d3ff1 4785 {
0085ce49
RD
4786 arg5 = &temp5;
4787 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 4788 }
0085ce49
RD
4789 }
4790 if (obj5) {
d14a1e28 4791 {
0085ce49
RD
4792 arg6 = &temp6;
4793 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 4794 }
0085ce49
RD
4795 }
4796 if (obj6) {
4797 ecode7 = SWIG_AsVal_long(obj6, &val7);
4798 if (!SWIG_IsOK(ecode7)) {
4799 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4800 }
4801 arg7 = static_cast< long >(val7);
4802 }
4803 if (obj7) {
4804 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4805 if (!SWIG_IsOK(res8)) {
4806 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 4807 }
0085ce49
RD
4808 if (!argp8) {
4809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4810 }
4811 arg8 = reinterpret_cast< wxValidator * >(argp8);
4812 }
4813 if (obj8) {
093d3ff1 4814 {
0085ce49
RD
4815 arg9 = wxString_in_helper(obj8);
4816 if (arg9 == NULL) SWIG_fail;
4817 temp9 = true;
093d3ff1 4818 }
0085ce49
RD
4819 }
4820 {
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4823 wxPyEndAllowThreads(__tstate);
4824 if (PyErr_Occurred()) SWIG_fail;
4825 }
4826 {
4827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4828 }
4829 {
4830 if (temp4)
4831 delete arg4;
4832 }
4833 {
4834 if (temp9)
4835 delete arg9;
4836 }
4837 return resultobj;
4838fail:
4839 {
4840 if (temp4)
4841 delete arg4;
4842 }
4843 {
4844 if (temp9)
4845 delete arg9;
4846 }
4847 return NULL;
d14a1e28
RD
4848}
4849
4850
0085ce49
RD
4851SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4852 PyObject *resultobj = 0;
4853 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4854 bool result;
4855 void *argp1 = 0 ;
4856 int res1 = 0 ;
4857 PyObject *swig_obj[1] ;
4858
4859 if (!args) SWIG_fail;
4860 swig_obj[0] = args;
4861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4862 if (!SWIG_IsOK(res1)) {
4863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4864 }
4865 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4866 {
4867 PyThreadState* __tstate = wxPyBeginAllowThreads();
4868 result = (bool)(arg1)->GetValue();
4869 wxPyEndAllowThreads(__tstate);
4870 if (PyErr_Occurred()) SWIG_fail;
4871 }
4872 {
4873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4874 }
4875 return resultobj;
4876fail:
4877 return NULL;
d14a1e28
RD
4878}
4879
4880
0085ce49
RD
4881SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4882 PyObject *resultobj = 0;
4883 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4884 bool result;
4885 void *argp1 = 0 ;
4886 int res1 = 0 ;
4887 PyObject *swig_obj[1] ;
4888
4889 if (!args) SWIG_fail;
4890 swig_obj[0] = args;
4891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4892 if (!SWIG_IsOK(res1)) {
4893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4894 }
4895 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4896 {
4897 PyThreadState* __tstate = wxPyBeginAllowThreads();
4898 result = (bool)(arg1)->IsChecked();
4899 wxPyEndAllowThreads(__tstate);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 }
4902 {
4903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4904 }
4905 return resultobj;
4906fail:
4907 return NULL;
4908}
4909
4910
4911SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4912 PyObject *resultobj = 0;
4913 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4914 bool arg2 ;
4915 void *argp1 = 0 ;
4916 int res1 = 0 ;
4917 bool val2 ;
4918 int ecode2 = 0 ;
4919 PyObject * obj0 = 0 ;
4920 PyObject * obj1 = 0 ;
4921 char * kwnames[] = {
4922 (char *) "self",(char *) "state", NULL
4923 };
4924
4925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4927 if (!SWIG_IsOK(res1)) {
4928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4929 }
4930 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4931 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4932 if (!SWIG_IsOK(ecode2)) {
4933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4934 }
4935 arg2 = static_cast< bool >(val2);
4936 {
4937 PyThreadState* __tstate = wxPyBeginAllowThreads();
4938 (arg1)->SetValue(arg2);
4939 wxPyEndAllowThreads(__tstate);
4940 if (PyErr_Occurred()) SWIG_fail;
4941 }
4942 resultobj = SWIG_Py_Void();
4943 return resultobj;
4944fail:
4945 return NULL;
d14a1e28 4946}
0085ce49
RD
4947
4948
4949SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4950 PyObject *resultobj = 0;
4951 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4952 wxCheckBoxState result;
4953 void *argp1 = 0 ;
4954 int res1 = 0 ;
4955 PyObject *swig_obj[1] ;
4956
4957 if (!args) SWIG_fail;
4958 swig_obj[0] = args;
4959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4960 if (!SWIG_IsOK(res1)) {
4961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4962 }
4963 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4964 {
4965 PyThreadState* __tstate = wxPyBeginAllowThreads();
4966 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4967 wxPyEndAllowThreads(__tstate);
4968 if (PyErr_Occurred()) SWIG_fail;
4969 }
4970 resultobj = SWIG_From_int(static_cast< int >(result));
4971 return resultobj;
4972fail:
4973 return NULL;
4974}
4975
4976
4977SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4978 PyObject *resultobj = 0;
4979 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4980 wxCheckBoxState arg2 ;
4981 void *argp1 = 0 ;
4982 int res1 = 0 ;
4983 int val2 ;
4984 int ecode2 = 0 ;
4985 PyObject * obj0 = 0 ;
4986 PyObject * obj1 = 0 ;
4987 char * kwnames[] = {
4988 (char *) "self",(char *) "state", NULL
4989 };
4990
4991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4993 if (!SWIG_IsOK(res1)) {
4994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4995 }
4996 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4997 ecode2 = SWIG_AsVal_int(obj1, &val2);
4998 if (!SWIG_IsOK(ecode2)) {
4999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
5000 }
5001 arg2 = static_cast< wxCheckBoxState >(val2);
5002 {
5003 PyThreadState* __tstate = wxPyBeginAllowThreads();
5004 (arg1)->Set3StateValue(arg2);
5005 wxPyEndAllowThreads(__tstate);
5006 if (PyErr_Occurred()) SWIG_fail;
5007 }
5008 resultobj = SWIG_Py_Void();
5009 return resultobj;
5010fail:
5011 return NULL;
b2dc1044
RD
5012}
5013
5014
0085ce49
RD
5015SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5016 PyObject *resultobj = 0;
5017 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5018 bool result;
5019 void *argp1 = 0 ;
5020 int res1 = 0 ;
5021 PyObject *swig_obj[1] ;
5022
5023 if (!args) SWIG_fail;
5024 swig_obj[0] = args;
5025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5026 if (!SWIG_IsOK(res1)) {
5027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5028 }
5029 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5030 {
5031 PyThreadState* __tstate = wxPyBeginAllowThreads();
5032 result = (bool)((wxCheckBox const *)arg1)->Is3State();
5033 wxPyEndAllowThreads(__tstate);
5034 if (PyErr_Occurred()) SWIG_fail;
5035 }
5036 {
5037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5038 }
5039 return resultobj;
5040fail:
5041 return NULL;
d14a1e28
RD
5042}
5043
5044
0085ce49
RD
5045SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5046 PyObject *resultobj = 0;
5047 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5048 bool result;
5049 void *argp1 = 0 ;
5050 int res1 = 0 ;
5051 PyObject *swig_obj[1] ;
5052
5053 if (!args) SWIG_fail;
5054 swig_obj[0] = args;
5055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5056 if (!SWIG_IsOK(res1)) {
5057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5058 }
5059 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5060 {
5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
5062 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5063 wxPyEndAllowThreads(__tstate);
5064 if (PyErr_Occurred()) SWIG_fail;
5065 }
5066 {
5067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5068 }
5069 return resultobj;
5070fail:
5071 return NULL;
d14a1e28
RD
5072}
5073
5074
0085ce49
RD
5075SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5076 PyObject *resultobj = 0;
5077 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5078 SwigValueWrapper<wxVisualAttributes > result;
5079 int val1 ;
5080 int ecode1 = 0 ;
5081 PyObject * obj0 = 0 ;
5082 char * kwnames[] = {
5083 (char *) "variant", NULL
5084 };
5085
5086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5087 if (obj0) {
5088 ecode1 = SWIG_AsVal_int(obj0, &val1);
5089 if (!SWIG_IsOK(ecode1)) {
5090 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5091 }
5092 arg1 = static_cast< wxWindowVariant >(val1);
5093 }
5094 {
5095 if (!wxPyCheckForApp()) SWIG_fail;
5096 PyThreadState* __tstate = wxPyBeginAllowThreads();
5097 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5098 wxPyEndAllowThreads(__tstate);
5099 if (PyErr_Occurred()) SWIG_fail;
5100 }
5101 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5102 return resultobj;
5103fail:
5104 return NULL;
d14a1e28
RD
5105}
5106
5107
0085ce49
RD
5108SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5109 PyObject *obj;
5110 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5111 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5112 return SWIG_Py_Void();
d14a1e28
RD
5113}
5114
0085ce49
RD
5115SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5116 return SWIG_Python_InitShadowInstance(args);
5117}
d14a1e28 5118
0085ce49
RD
5119SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5120 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5121 return 1;
d14a1e28
RD
5122}
5123
5124
0085ce49
RD
5125SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5126 PyObject *pyobj = 0;
5127
5128 {
5129#if wxUSE_UNICODE
5130 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5131#else
5132 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5133#endif
5134 }
5135 return pyobj;
5136}
5137
5138
5139SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5140 PyObject *resultobj = 0;
5141 wxWindow *arg1 = (wxWindow *) 0 ;
5142 int arg2 = (int) -1 ;
5143 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5144 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5145 wxSize const &arg4_defvalue = wxDefaultSize ;
5146 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5147 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5148 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5149 long arg6 = (long) 0 ;
5150 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5151 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5152 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5153 wxString *arg8 = (wxString *) &arg8_defvalue ;
5154 wxChoice *result = 0 ;
5155 void *argp1 = 0 ;
5156 int res1 = 0 ;
5157 int val2 ;
5158 int ecode2 = 0 ;
5159 wxPoint temp3 ;
5160 wxSize temp4 ;
5161 bool temp5 = false ;
5162 long val6 ;
5163 int ecode6 = 0 ;
5164 void *argp7 = 0 ;
5165 int res7 = 0 ;
5166 bool temp8 = false ;
5167 PyObject * obj0 = 0 ;
5168 PyObject * obj1 = 0 ;
5169 PyObject * obj2 = 0 ;
5170 PyObject * obj3 = 0 ;
5171 PyObject * obj4 = 0 ;
5172 PyObject * obj5 = 0 ;
5173 PyObject * obj6 = 0 ;
5174 PyObject * obj7 = 0 ;
5175 char * kwnames[] = {
5176 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5177 };
5178
5179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5181 if (!SWIG_IsOK(res1)) {
5182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5183 }
5184 arg1 = reinterpret_cast< wxWindow * >(argp1);
5185 if (obj1) {
5186 ecode2 = SWIG_AsVal_int(obj1, &val2);
5187 if (!SWIG_IsOK(ecode2)) {
5188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5189 }
5190 arg2 = static_cast< int >(val2);
5191 }
5192 if (obj2) {
093d3ff1 5193 {
0085ce49
RD
5194 arg3 = &temp3;
5195 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 5196 }
0085ce49
RD
5197 }
5198 if (obj3) {
d14a1e28 5199 {
0085ce49
RD
5200 arg4 = &temp4;
5201 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5202 }
0085ce49
RD
5203 }
5204 if (obj4) {
d14a1e28 5205 {
0085ce49
RD
5206 if (! PySequence_Check(obj4)) {
5207 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5208 SWIG_fail;
5209 }
5210 arg5 = new wxArrayString;
5211 temp5 = true;
5212 int i, len=PySequence_Length(obj4);
5213 for (i=0; i<len; i++) {
5214 PyObject* item = PySequence_GetItem(obj4, i);
5215 wxString* s = wxString_in_helper(item);
5216 if (PyErr_Occurred()) SWIG_fail;
5217 arg5->Add(*s);
5218 delete s;
5219 Py_DECREF(item);
5220 }
d14a1e28 5221 }
0085ce49
RD
5222 }
5223 if (obj5) {
5224 ecode6 = SWIG_AsVal_long(obj5, &val6);
5225 if (!SWIG_IsOK(ecode6)) {
5226 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5227 }
5228 arg6 = static_cast< long >(val6);
5229 }
5230 if (obj6) {
5231 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5232 if (!SWIG_IsOK(res7)) {
5233 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 5234 }
0085ce49
RD
5235 if (!argp7) {
5236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5237 }
5238 arg7 = reinterpret_cast< wxValidator * >(argp7);
5239 }
5240 if (obj7) {
d14a1e28 5241 {
0085ce49
RD
5242 arg8 = wxString_in_helper(obj7);
5243 if (arg8 == NULL) SWIG_fail;
5244 temp8 = true;
d14a1e28 5245 }
0085ce49
RD
5246 }
5247 {
5248 if (!wxPyCheckForApp()) SWIG_fail;
5249 PyThreadState* __tstate = wxPyBeginAllowThreads();
5250 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5251 wxPyEndAllowThreads(__tstate);
5252 if (PyErr_Occurred()) SWIG_fail;
5253 }
5254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5255 {
5256 if (temp5) delete arg5;
5257 }
5258 {
5259 if (temp8)
5260 delete arg8;
5261 }
5262 return resultobj;
5263fail:
5264 {
5265 if (temp5) delete arg5;
5266 }
5267 {
5268 if (temp8)
5269 delete arg8;
5270 }
5271 return NULL;
d14a1e28
RD
5272}
5273
5274
0085ce49
RD
5275SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5276 PyObject *resultobj = 0;
5277 wxChoice *result = 0 ;
5278
5279 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5280 {
5281 if (!wxPyCheckForApp()) SWIG_fail;
5282 PyThreadState* __tstate = wxPyBeginAllowThreads();
5283 result = (wxChoice *)new wxChoice();
5284 wxPyEndAllowThreads(__tstate);
5285 if (PyErr_Occurred()) SWIG_fail;
5286 }
5287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5288 return resultobj;
5289fail:
5290 return NULL;
5291}
5292
5293
5294SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5295 PyObject *resultobj = 0;
5296 wxChoice *arg1 = (wxChoice *) 0 ;
5297 wxWindow *arg2 = (wxWindow *) 0 ;
5298 int arg3 = (int) -1 ;
5299 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5300 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5301 wxSize const &arg5_defvalue = wxDefaultSize ;
5302 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5303 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5304 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5305 long arg7 = (long) 0 ;
5306 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5307 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5308 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5309 wxString *arg9 = (wxString *) &arg9_defvalue ;
5310 bool result;
5311 void *argp1 = 0 ;
5312 int res1 = 0 ;
5313 void *argp2 = 0 ;
5314 int res2 = 0 ;
5315 int val3 ;
5316 int ecode3 = 0 ;
5317 wxPoint temp4 ;
5318 wxSize temp5 ;
5319 bool temp6 = false ;
5320 long val7 ;
5321 int ecode7 = 0 ;
5322 void *argp8 = 0 ;
5323 int res8 = 0 ;
5324 bool temp9 = false ;
5325 PyObject * obj0 = 0 ;
5326 PyObject * obj1 = 0 ;
5327 PyObject * obj2 = 0 ;
5328 PyObject * obj3 = 0 ;
5329 PyObject * obj4 = 0 ;
5330 PyObject * obj5 = 0 ;
5331 PyObject * obj6 = 0 ;
5332 PyObject * obj7 = 0 ;
5333 PyObject * obj8 = 0 ;
5334 char * kwnames[] = {
5335 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5336 };
5337
5338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5340 if (!SWIG_IsOK(res1)) {
5341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5342 }
5343 arg1 = reinterpret_cast< wxChoice * >(argp1);
5344 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5345 if (!SWIG_IsOK(res2)) {
5346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5347 }
5348 arg2 = reinterpret_cast< wxWindow * >(argp2);
5349 if (obj2) {
5350 ecode3 = SWIG_AsVal_int(obj2, &val3);
5351 if (!SWIG_IsOK(ecode3)) {
5352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5353 }
5354 arg3 = static_cast< int >(val3);
5355 }
5356 if (obj3) {
d14a1e28 5357 {
0085ce49
RD
5358 arg4 = &temp4;
5359 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5360 }
0085ce49
RD
5361 }
5362 if (obj4) {
4f89f6a3 5363 {
0085ce49
RD
5364 arg5 = &temp5;
5365 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4f89f6a3 5366 }
0085ce49
RD
5367 }
5368 if (obj5) {
d14a1e28 5369 {
0085ce49
RD
5370 if (! PySequence_Check(obj5)) {
5371 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5372 SWIG_fail;
5373 }
5374 arg6 = new wxArrayString;
5375 temp6 = true;
5376 int i, len=PySequence_Length(obj5);
5377 for (i=0; i<len; i++) {
5378 PyObject* item = PySequence_GetItem(obj5, i);
5379 wxString* s = wxString_in_helper(item);
5380 if (PyErr_Occurred()) SWIG_fail;
5381 arg6->Add(*s);
5382 delete s;
5383 Py_DECREF(item);
5384 }
5385 }
5386 }
5387 if (obj6) {
5388 ecode7 = SWIG_AsVal_long(obj6, &val7);
5389 if (!SWIG_IsOK(ecode7)) {
5390 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5391 }
5392 arg7 = static_cast< long >(val7);
5393 }
5394 if (obj7) {
5395 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5396 if (!SWIG_IsOK(res8)) {
5397 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 5398 }
0085ce49
RD
5399 if (!argp8) {
5400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5401 }
5402 arg8 = reinterpret_cast< wxValidator * >(argp8);
5403 }
5404 if (obj8) {
4f89f6a3 5405 {
0085ce49
RD
5406 arg9 = wxString_in_helper(obj8);
5407 if (arg9 == NULL) SWIG_fail;
5408 temp9 = true;
4f89f6a3 5409 }
0085ce49
RD
5410 }
5411 {
5412 PyThreadState* __tstate = wxPyBeginAllowThreads();
5413 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5414 wxPyEndAllowThreads(__tstate);
5415 if (PyErr_Occurred()) SWIG_fail;
5416 }
5417 {
5418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5419 }
5420 {
5421 if (temp6) delete arg6;
5422 }
5423 {
5424 if (temp9)
5425 delete arg9;
5426 }
5427 return resultobj;
5428fail:
5429 {
5430 if (temp6) delete arg6;
5431 }
5432 {
5433 if (temp9)
5434 delete arg9;
5435 }
5436 return NULL;
d14a1e28
RD
5437}
5438
5439
0085ce49
RD
5440SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5441 PyObject *resultobj = 0;
5442 wxChoice *arg1 = (wxChoice *) 0 ;
5443 int result;
5444 void *argp1 = 0 ;
5445 int res1 = 0 ;
5446 PyObject *swig_obj[1] ;
5447
5448 if (!args) SWIG_fail;
5449 swig_obj[0] = args;
5450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5451 if (!SWIG_IsOK(res1)) {
5452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5453 }
5454 arg1 = reinterpret_cast< wxChoice * >(argp1);
5455 {
5456 PyThreadState* __tstate = wxPyBeginAllowThreads();
5457 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5458 wxPyEndAllowThreads(__tstate);
5459 if (PyErr_Occurred()) SWIG_fail;
5460 }
5461 resultobj = SWIG_From_int(static_cast< int >(result));
5462 return resultobj;
5463fail:
5464 return NULL;
5465}
5466
5467
5468SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5469 PyObject *resultobj = 0;
5470 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5471 SwigValueWrapper<wxVisualAttributes > result;
5472 int val1 ;
5473 int ecode1 = 0 ;
5474 PyObject * obj0 = 0 ;
5475 char * kwnames[] = {
5476 (char *) "variant", NULL
5477 };
5478
5479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5480 if (obj0) {
5481 ecode1 = SWIG_AsVal_int(obj0, &val1);
5482 if (!SWIG_IsOK(ecode1)) {
5483 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5484 }
5485 arg1 = static_cast< wxWindowVariant >(val1);
5486 }
5487 {
5488 if (!wxPyCheckForApp()) SWIG_fail;
5489 PyThreadState* __tstate = wxPyBeginAllowThreads();
5490 result = wxChoice::GetClassDefaultAttributes(arg1);
5491 wxPyEndAllowThreads(__tstate);
5492 if (PyErr_Occurred()) SWIG_fail;
5493 }
5494 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5495 return resultobj;
5496fail:
5497 return NULL;
22bfe96c
RD
5498}
5499
5500
0085ce49
RD
5501SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5502 PyObject *obj;
5503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5504 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5505 return SWIG_Py_Void();
d14a1e28 5506}
0085ce49
RD
5507
5508SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5509 return SWIG_Python_InitShadowInstance(args);
5510}
5511
5512SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5513 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5514 return 1;
b2dc1044
RD
5515}
5516
5517
0085ce49
RD
5518SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5519 PyObject *pyobj = 0;
5520
5521 {
b2dc1044 5522#if wxUSE_UNICODE
0085ce49 5523 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
b2dc1044 5524#else
0085ce49 5525 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
b2dc1044 5526#endif
0085ce49
RD
5527 }
5528 return pyobj;
5529}
5530
5531
5532SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5533 PyObject *resultobj = 0;
5534 wxWindow *arg1 = (wxWindow *) 0 ;
5535 int arg2 = (int) -1 ;
5536 wxString const &arg3_defvalue = wxPyEmptyString ;
5537 wxString *arg3 = (wxString *) &arg3_defvalue ;
5538 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5539 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5540 wxSize const &arg5_defvalue = wxDefaultSize ;
5541 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5542 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5543 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5544 long arg7 = (long) 0 ;
5545 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5546 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5547 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5548 wxString *arg9 = (wxString *) &arg9_defvalue ;
5549 wxComboBox *result = 0 ;
5550 void *argp1 = 0 ;
5551 int res1 = 0 ;
5552 int val2 ;
5553 int ecode2 = 0 ;
5554 bool temp3 = false ;
5555 wxPoint temp4 ;
5556 wxSize temp5 ;
5557 bool temp6 = false ;
5558 long val7 ;
5559 int ecode7 = 0 ;
5560 void *argp8 = 0 ;
5561 int res8 = 0 ;
5562 bool temp9 = false ;
5563 PyObject * obj0 = 0 ;
5564 PyObject * obj1 = 0 ;
5565 PyObject * obj2 = 0 ;
5566 PyObject * obj3 = 0 ;
5567 PyObject * obj4 = 0 ;
5568 PyObject * obj5 = 0 ;
5569 PyObject * obj6 = 0 ;
5570 PyObject * obj7 = 0 ;
5571 PyObject * obj8 = 0 ;
5572 char * kwnames[] = {
5573 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5574 };
5575
5576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5578 if (!SWIG_IsOK(res1)) {
5579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5580 }
5581 arg1 = reinterpret_cast< wxWindow * >(argp1);
5582 if (obj1) {
5583 ecode2 = SWIG_AsVal_int(obj1, &val2);
5584 if (!SWIG_IsOK(ecode2)) {
5585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5586 }
5587 arg2 = static_cast< int >(val2);
5588 }
5589 if (obj2) {
d14a1e28 5590 {
0085ce49
RD
5591 arg3 = wxString_in_helper(obj2);
5592 if (arg3 == NULL) SWIG_fail;
5593 temp3 = true;
d14a1e28 5594 }
0085ce49
RD
5595 }
5596 if (obj3) {
d14a1e28 5597 {
0085ce49
RD
5598 arg4 = &temp4;
5599 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 5600 }
0085ce49
RD
5601 }
5602 if (obj4) {
d14a1e28 5603 {
0085ce49
RD
5604 arg5 = &temp5;
5605 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 5606 }
0085ce49
RD
5607 }
5608 if (obj5) {
d14a1e28 5609 {
0085ce49
RD
5610 if (! PySequence_Check(obj5)) {
5611 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5612 SWIG_fail;
5613 }
5614 arg6 = new wxArrayString;
5615 temp6 = true;
5616 int i, len=PySequence_Length(obj5);
5617 for (i=0; i<len; i++) {
5618 PyObject* item = PySequence_GetItem(obj5, i);
5619 wxString* s = wxString_in_helper(item);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 arg6->Add(*s);
5622 delete s;
5623 Py_DECREF(item);
5624 }
d14a1e28 5625 }
0085ce49
RD
5626 }
5627 if (obj6) {
5628 ecode7 = SWIG_AsVal_long(obj6, &val7);
5629 if (!SWIG_IsOK(ecode7)) {
5630 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5631 }
5632 arg7 = static_cast< long >(val7);
5633 }
5634 if (obj7) {
5635 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5636 if (!SWIG_IsOK(res8)) {
5637 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5638 }
5639 if (!argp8) {
5640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5641 }
5642 arg8 = reinterpret_cast< wxValidator * >(argp8);
5643 }
5644 if (obj8) {
d14a1e28 5645 {
0085ce49
RD
5646 arg9 = wxString_in_helper(obj8);
5647 if (arg9 == NULL) SWIG_fail;
5648 temp9 = true;
d14a1e28 5649 }
0085ce49
RD
5650 }
5651 {
5652 if (!wxPyCheckForApp()) SWIG_fail;
5653 PyThreadState* __tstate = wxPyBeginAllowThreads();
5654 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);
5655 wxPyEndAllowThreads(__tstate);
5656 if (PyErr_Occurred()) SWIG_fail;
5657 }
5658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5659 {
5660 if (temp3)
5661 delete arg3;
5662 }
5663 {
5664 if (temp6) delete arg6;
5665 }
5666 {
5667 if (temp9)
5668 delete arg9;
5669 }
5670 return resultobj;
5671fail:
5672 {
5673 if (temp3)
5674 delete arg3;
5675 }
5676 {
5677 if (temp6) delete arg6;
5678 }
5679 {
5680 if (temp9)
5681 delete arg9;
5682 }
5683 return NULL;
d14a1e28
RD
5684}
5685
5686
0085ce49
RD
5687SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5688 PyObject *resultobj = 0;
5689 wxComboBox *result = 0 ;
5690
5691 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5692 {
5693 if (!wxPyCheckForApp()) SWIG_fail;
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 result = (wxComboBox *)new wxComboBox();
5696 wxPyEndAllowThreads(__tstate);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 }
5699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5700 return resultobj;
5701fail:
5702 return NULL;
5703}
5704
5705
5706SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5707 PyObject *resultobj = 0;
5708 wxComboBox *arg1 = (wxComboBox *) 0 ;
5709 wxWindow *arg2 = (wxWindow *) 0 ;
5710 int arg3 = (int) -1 ;
5711 wxString const &arg4_defvalue = wxPyEmptyString ;
5712 wxString *arg4 = (wxString *) &arg4_defvalue ;
5713 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5714 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5715 wxSize const &arg6_defvalue = wxDefaultSize ;
5716 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5717 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5718 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5719 long arg8 = (long) 0 ;
5720 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5721 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5722 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5723 wxString *arg10 = (wxString *) &arg10_defvalue ;
5724 bool result;
5725 void *argp1 = 0 ;
5726 int res1 = 0 ;
5727 void *argp2 = 0 ;
5728 int res2 = 0 ;
5729 int val3 ;
5730 int ecode3 = 0 ;
5731 bool temp4 = false ;
5732 wxPoint temp5 ;
5733 wxSize temp6 ;
5734 bool temp7 = false ;
5735 long val8 ;
5736 int ecode8 = 0 ;
5737 void *argp9 = 0 ;
5738 int res9 = 0 ;
5739 bool temp10 = false ;
5740 PyObject * obj0 = 0 ;
5741 PyObject * obj1 = 0 ;
5742 PyObject * obj2 = 0 ;
5743 PyObject * obj3 = 0 ;
5744 PyObject * obj4 = 0 ;
5745 PyObject * obj5 = 0 ;
5746 PyObject * obj6 = 0 ;
5747 PyObject * obj7 = 0 ;
5748 PyObject * obj8 = 0 ;
5749 PyObject * obj9 = 0 ;
5750 char * kwnames[] = {
5751 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5752 };
5753
5754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5756 if (!SWIG_IsOK(res1)) {
5757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5758 }
5759 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5760 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5761 if (!SWIG_IsOK(res2)) {
5762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5763 }
5764 arg2 = reinterpret_cast< wxWindow * >(argp2);
5765 if (obj2) {
5766 ecode3 = SWIG_AsVal_int(obj2, &val3);
5767 if (!SWIG_IsOK(ecode3)) {
5768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5769 }
5770 arg3 = static_cast< int >(val3);
5771 }
5772 if (obj3) {
4f89f6a3 5773 {
0085ce49
RD
5774 arg4 = wxString_in_helper(obj3);
5775 if (arg4 == NULL) SWIG_fail;
5776 temp4 = true;
4f89f6a3 5777 }
0085ce49
RD
5778 }
5779 if (obj4) {
d14a1e28 5780 {
0085ce49
RD
5781 arg5 = &temp5;
5782 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 5783 }
0085ce49
RD
5784 }
5785 if (obj5) {
d14a1e28 5786 {
0085ce49
RD
5787 arg6 = &temp6;
5788 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 5789 }
0085ce49
RD
5790 }
5791 if (obj6) {
d14a1e28 5792 {
0085ce49
RD
5793 if (! PySequence_Check(obj6)) {
5794 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5795 SWIG_fail;
5796 }
5797 arg7 = new wxArrayString;
5798 temp7 = true;
5799 int i, len=PySequence_Length(obj6);
5800 for (i=0; i<len; i++) {
5801 PyObject* item = PySequence_GetItem(obj6, i);
5802 wxString* s = wxString_in_helper(item);
5803 if (PyErr_Occurred()) SWIG_fail;
5804 arg7->Add(*s);
5805 delete s;
5806 Py_DECREF(item);
5807 }
d14a1e28 5808 }
0085ce49
RD
5809 }
5810 if (obj7) {
5811 ecode8 = SWIG_AsVal_long(obj7, &val8);
5812 if (!SWIG_IsOK(ecode8)) {
5813 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5814 }
5815 arg8 = static_cast< long >(val8);
5816 }
5817 if (obj8) {
5818 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5819 if (!SWIG_IsOK(res9)) {
5820 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 5821 }
0085ce49
RD
5822 if (!argp9) {
5823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 5824 }
0085ce49
RD
5825 arg9 = reinterpret_cast< wxValidator * >(argp9);
5826 }
5827 if (obj9) {
d14a1e28 5828 {
0085ce49
RD
5829 arg10 = wxString_in_helper(obj9);
5830 if (arg10 == NULL) SWIG_fail;
5831 temp10 = true;
d14a1e28 5832 }
0085ce49
RD
5833 }
5834 {
5835 PyThreadState* __tstate = wxPyBeginAllowThreads();
5836 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);
5837 wxPyEndAllowThreads(__tstate);
5838 if (PyErr_Occurred()) SWIG_fail;
5839 }
5840 {
5841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5842 }
5843 {
5844 if (temp4)
5845 delete arg4;
5846 }
5847 {
5848 if (temp7) delete arg7;
5849 }
5850 {
5851 if (temp10)
5852 delete arg10;
5853 }
5854 return resultobj;
5855fail:
5856 {
5857 if (temp4)
5858 delete arg4;
5859 }
5860 {
5861 if (temp7) delete arg7;
5862 }
5863 {
5864 if (temp10)
5865 delete arg10;
5866 }
5867 return NULL;
d14a1e28
RD
5868}
5869
5870
0085ce49
RD
5871SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5872 PyObject *resultobj = 0;
5873 wxComboBox *arg1 = (wxComboBox *) 0 ;
5874 wxString result;
5875 void *argp1 = 0 ;
5876 int res1 = 0 ;
5877 PyObject *swig_obj[1] ;
5878
5879 if (!args) SWIG_fail;
5880 swig_obj[0] = args;
5881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5882 if (!SWIG_IsOK(res1)) {
5883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5884 }
5885 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5886 {
5887 PyThreadState* __tstate = wxPyBeginAllowThreads();
5888 result = ((wxComboBox const *)arg1)->GetValue();
5889 wxPyEndAllowThreads(__tstate);
5890 if (PyErr_Occurred()) SWIG_fail;
5891 }
5892 {
d14a1e28 5893#if wxUSE_UNICODE
0085ce49 5894 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 5895#else
0085ce49 5896 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 5897#endif
0085ce49
RD
5898 }
5899 return resultobj;
5900fail:
5901 return NULL;
5902}
5903
5904
5905SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5906 PyObject *resultobj = 0;
5907 wxComboBox *arg1 = (wxComboBox *) 0 ;
5908 wxString *arg2 = 0 ;
5909 void *argp1 = 0 ;
5910 int res1 = 0 ;
5911 bool temp2 = false ;
5912 PyObject * obj0 = 0 ;
5913 PyObject * obj1 = 0 ;
5914 char * kwnames[] = {
5915 (char *) "self",(char *) "value", NULL
5916 };
5917
5918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5920 if (!SWIG_IsOK(res1)) {
5921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5922 }
5923 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5924 {
5925 arg2 = wxString_in_helper(obj1);
5926 if (arg2 == NULL) SWIG_fail;
5927 temp2 = true;
5928 }
5929 {
5930 PyThreadState* __tstate = wxPyBeginAllowThreads();
5931 (arg1)->SetValue((wxString const &)*arg2);
5932 wxPyEndAllowThreads(__tstate);
5933 if (PyErr_Occurred()) SWIG_fail;
5934 }
5935 resultobj = SWIG_Py_Void();
5936 {
5937 if (temp2)
5938 delete arg2;
5939 }
5940 return resultobj;
5941fail:
5942 {
5943 if (temp2)
5944 delete arg2;
5945 }
5946 return NULL;
d14a1e28
RD
5947}
5948
5949
0085ce49
RD
5950SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5951 PyObject *resultobj = 0;
5952 wxComboBox *arg1 = (wxComboBox *) 0 ;
5953 void *argp1 = 0 ;
5954 int res1 = 0 ;
5955 PyObject *swig_obj[1] ;
5956
5957 if (!args) SWIG_fail;
5958 swig_obj[0] = args;
5959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5960 if (!SWIG_IsOK(res1)) {
5961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5962 }
5963 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5964 {
5965 PyThreadState* __tstate = wxPyBeginAllowThreads();
5966 (arg1)->Copy();
5967 wxPyEndAllowThreads(__tstate);
5968 if (PyErr_Occurred()) SWIG_fail;
5969 }
5970 resultobj = SWIG_Py_Void();
5971 return resultobj;
5972fail:
5973 return NULL;
d14a1e28
RD
5974}
5975
5976
0085ce49
RD
5977SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5978 PyObject *resultobj = 0;
5979 wxComboBox *arg1 = (wxComboBox *) 0 ;
5980 void *argp1 = 0 ;
5981 int res1 = 0 ;
5982 PyObject *swig_obj[1] ;
5983
5984 if (!args) SWIG_fail;
5985 swig_obj[0] = args;
5986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5987 if (!SWIG_IsOK(res1)) {
5988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5989 }
5990 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5991 {
5992 PyThreadState* __tstate = wxPyBeginAllowThreads();
5993 (arg1)->Cut();
5994 wxPyEndAllowThreads(__tstate);
5995 if (PyErr_Occurred()) SWIG_fail;
5996 }
5997 resultobj = SWIG_Py_Void();
5998 return resultobj;
5999fail:
6000 return NULL;
d14a1e28
RD
6001}
6002
6003
0085ce49
RD
6004SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6005 PyObject *resultobj = 0;
6006 wxComboBox *arg1 = (wxComboBox *) 0 ;
6007 void *argp1 = 0 ;
6008 int res1 = 0 ;
6009 PyObject *swig_obj[1] ;
6010
6011 if (!args) SWIG_fail;
6012 swig_obj[0] = args;
6013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6014 if (!SWIG_IsOK(res1)) {
6015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
6016 }
6017 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6018 {
6019 PyThreadState* __tstate = wxPyBeginAllowThreads();
6020 (arg1)->Paste();
6021 wxPyEndAllowThreads(__tstate);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 }
6024 resultobj = SWIG_Py_Void();
6025 return resultobj;
6026fail:
6027 return NULL;
6028}
6029
6030
6031SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6032 PyObject *resultobj = 0;
6033 wxComboBox *arg1 = (wxComboBox *) 0 ;
6034 long arg2 ;
6035 void *argp1 = 0 ;
6036 int res1 = 0 ;
6037 long val2 ;
6038 int ecode2 = 0 ;
6039 PyObject * obj0 = 0 ;
6040 PyObject * obj1 = 0 ;
6041 char * kwnames[] = {
6042 (char *) "self",(char *) "pos", NULL
6043 };
6044
6045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
6046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6047 if (!SWIG_IsOK(res1)) {
6048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6049 }
6050 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6051 ecode2 = SWIG_AsVal_long(obj1, &val2);
6052 if (!SWIG_IsOK(ecode2)) {
6053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6054 }
6055 arg2 = static_cast< long >(val2);
6056 {
6057 PyThreadState* __tstate = wxPyBeginAllowThreads();
6058 (arg1)->SetInsertionPoint(arg2);
6059 wxPyEndAllowThreads(__tstate);
6060 if (PyErr_Occurred()) SWIG_fail;
6061 }
6062 resultobj = SWIG_Py_Void();
6063 return resultobj;
6064fail:
6065 return NULL;
d14a1e28
RD
6066}
6067
6068
0085ce49
RD
6069SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6070 PyObject *resultobj = 0;
6071 wxComboBox *arg1 = (wxComboBox *) 0 ;
6072 long result;
6073 void *argp1 = 0 ;
6074 int res1 = 0 ;
6075 PyObject *swig_obj[1] ;
6076
6077 if (!args) SWIG_fail;
6078 swig_obj[0] = args;
6079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6080 if (!SWIG_IsOK(res1)) {
6081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6082 }
6083 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6084 {
6085 PyThreadState* __tstate = wxPyBeginAllowThreads();
6086 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6087 wxPyEndAllowThreads(__tstate);
6088 if (PyErr_Occurred()) SWIG_fail;
6089 }
6090 resultobj = SWIG_From_long(static_cast< long >(result));
6091 return resultobj;
6092fail:
6093 return NULL;
d14a1e28
RD
6094}
6095
6096
0085ce49
RD
6097SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6098 PyObject *resultobj = 0;
6099 wxComboBox *arg1 = (wxComboBox *) 0 ;
6100 long result;
6101 void *argp1 = 0 ;
6102 int res1 = 0 ;
6103 PyObject *swig_obj[1] ;
6104
6105 if (!args) SWIG_fail;
6106 swig_obj[0] = args;
6107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6108 if (!SWIG_IsOK(res1)) {
6109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6110 }
6111 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6112 {
6113 PyThreadState* __tstate = wxPyBeginAllowThreads();
6114 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6115 wxPyEndAllowThreads(__tstate);
6116 if (PyErr_Occurred()) SWIG_fail;
6117 }
6118 resultobj = SWIG_From_long(static_cast< long >(result));
6119 return resultobj;
6120fail:
6121 return NULL;
6122}
6123
6124
6125SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6126 PyObject *resultobj = 0;
6127 wxComboBox *arg1 = (wxComboBox *) 0 ;
6128 long arg2 ;
6129 long arg3 ;
6130 wxString *arg4 = 0 ;
6131 void *argp1 = 0 ;
6132 int res1 = 0 ;
6133 long val2 ;
6134 int ecode2 = 0 ;
6135 long val3 ;
6136 int ecode3 = 0 ;
6137 bool temp4 = false ;
6138 PyObject * obj0 = 0 ;
6139 PyObject * obj1 = 0 ;
6140 PyObject * obj2 = 0 ;
6141 PyObject * obj3 = 0 ;
6142 char * kwnames[] = {
2131d850 6143 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
0085ce49
RD
6144 };
6145
6146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6148 if (!SWIG_IsOK(res1)) {
6149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6150 }
6151 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6152 ecode2 = SWIG_AsVal_long(obj1, &val2);
6153 if (!SWIG_IsOK(ecode2)) {
6154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6155 }
6156 arg2 = static_cast< long >(val2);
6157 ecode3 = SWIG_AsVal_long(obj2, &val3);
6158 if (!SWIG_IsOK(ecode3)) {
6159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6160 }
6161 arg3 = static_cast< long >(val3);
6162 {
6163 arg4 = wxString_in_helper(obj3);
6164 if (arg4 == NULL) SWIG_fail;
6165 temp4 = true;
6166 }
6167 {
6168 PyThreadState* __tstate = wxPyBeginAllowThreads();
6169 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6170 wxPyEndAllowThreads(__tstate);
6171 if (PyErr_Occurred()) SWIG_fail;
6172 }
6173 resultobj = SWIG_Py_Void();
6174 {
6175 if (temp4)
6176 delete arg4;
6177 }
6178 return resultobj;
6179fail:
6180 {
6181 if (temp4)
6182 delete arg4;
6183 }
6184 return NULL;
6185}
6186
6187
6188SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6189 PyObject *resultobj = 0;
6190 wxComboBox *arg1 = (wxComboBox *) 0 ;
6191 long arg2 ;
6192 long arg3 ;
6193 void *argp1 = 0 ;
6194 int res1 = 0 ;
6195 long val2 ;
6196 int ecode2 = 0 ;
6197 long val3 ;
6198 int ecode3 = 0 ;
6199 PyObject * obj0 = 0 ;
6200 PyObject * obj1 = 0 ;
6201 PyObject * obj2 = 0 ;
6202 char * kwnames[] = {
2131d850 6203 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
6204 };
6205
6206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6208 if (!SWIG_IsOK(res1)) {
6209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6210 }
6211 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6212 ecode2 = SWIG_AsVal_long(obj1, &val2);
6213 if (!SWIG_IsOK(ecode2)) {
6214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6215 }
6216 arg2 = static_cast< long >(val2);
6217 ecode3 = SWIG_AsVal_long(obj2, &val3);
6218 if (!SWIG_IsOK(ecode3)) {
6219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6220 }
6221 arg3 = static_cast< long >(val3);
6222 {
6223 PyThreadState* __tstate = wxPyBeginAllowThreads();
6224 (arg1)->SetSelection(arg2,arg3);
6225 wxPyEndAllowThreads(__tstate);
6226 if (PyErr_Occurred()) SWIG_fail;
6227 }
6228 resultobj = SWIG_Py_Void();
6229 return resultobj;
6230fail:
6231 return NULL;
6232}
6233
6234
6235SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6236 PyObject *resultobj = 0;
6237 wxComboBox *arg1 = (wxComboBox *) 0 ;
6238 long *arg2 = (long *) 0 ;
6239 long *arg3 = (long *) 0 ;
6240 void *argp1 = 0 ;
6241 int res1 = 0 ;
6242 long temp2 ;
6243 int res2 = SWIG_TMPOBJ ;
6244 long temp3 ;
6245 int res3 = SWIG_TMPOBJ ;
6246 PyObject *swig_obj[1] ;
6247
6248 arg2 = &temp2;
6249 arg3 = &temp3;
6250 if (!args) SWIG_fail;
6251 swig_obj[0] = args;
6252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6253 if (!SWIG_IsOK(res1)) {
6254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6255 }
6256 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6257 {
6258 PyThreadState* __tstate = wxPyBeginAllowThreads();
6259 (arg1)->GetSelection(arg2,arg3);
6260 wxPyEndAllowThreads(__tstate);
6261 if (PyErr_Occurred()) SWIG_fail;
6262 }
6263 resultobj = SWIG_Py_Void();
6264 if (SWIG_IsTmpObj(res2)) {
6265 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6266 } else {
6267 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6268 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6269 }
6270 if (SWIG_IsTmpObj(res3)) {
6271 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6272 } else {
6273 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6274 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6275 }
6276 return resultobj;
6277fail:
6278 return NULL;
d14a1e28
RD
6279}
6280
6281
0085ce49
RD
6282SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6283 PyObject *resultobj = 0;
6284 wxComboBox *arg1 = (wxComboBox *) 0 ;
6285 int result;
6286 void *argp1 = 0 ;
6287 int res1 = 0 ;
6288 PyObject *swig_obj[1] ;
6289
6290 if (!args) SWIG_fail;
6291 swig_obj[0] = args;
6292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6293 if (!SWIG_IsOK(res1)) {
6294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6295 }
6296 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6297 {
6298 PyThreadState* __tstate = wxPyBeginAllowThreads();
6299 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6300 wxPyEndAllowThreads(__tstate);
6301 if (PyErr_Occurred()) SWIG_fail;
6302 }
6303 resultobj = SWIG_From_int(static_cast< int >(result));
6304 return resultobj;
6305fail:
6306 return NULL;
6307}
6308
6309
6310SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6311 PyObject *resultobj = 0;
6312 wxComboBox *arg1 = (wxComboBox *) 0 ;
6313 wxString *arg2 = 0 ;
6314 bool result;
6315 void *argp1 = 0 ;
6316 int res1 = 0 ;
6317 bool temp2 = false ;
6318 PyObject * obj0 = 0 ;
6319 PyObject * obj1 = 0 ;
6320 char * kwnames[] = {
6321 (char *) "self",(char *) "string", NULL
6322 };
6323
6324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6326 if (!SWIG_IsOK(res1)) {
6327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6328 }
6329 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6330 {
6331 arg2 = wxString_in_helper(obj1);
6332 if (arg2 == NULL) SWIG_fail;
6333 temp2 = true;
6334 }
6335 {
6336 PyThreadState* __tstate = wxPyBeginAllowThreads();
6337 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6338 wxPyEndAllowThreads(__tstate);
6339 if (PyErr_Occurred()) SWIG_fail;
6340 }
6341 {
6342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6343 }
6344 {
6345 if (temp2)
6346 delete arg2;
6347 }
6348 return resultobj;
6349fail:
6350 {
6351 if (temp2)
6352 delete arg2;
6353 }
6354 return NULL;
6355}
6356
6357
6358SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6359 PyObject *resultobj = 0;
6360 wxComboBox *arg1 = (wxComboBox *) 0 ;
6361 bool arg2 ;
6362 void *argp1 = 0 ;
6363 int res1 = 0 ;
6364 bool val2 ;
6365 int ecode2 = 0 ;
6366 PyObject * obj0 = 0 ;
6367 PyObject * obj1 = 0 ;
6368 char * kwnames[] = {
6369 (char *) "self",(char *) "editable", NULL
6370 };
6371
6372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6374 if (!SWIG_IsOK(res1)) {
6375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6376 }
6377 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6378 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6379 if (!SWIG_IsOK(ecode2)) {
6380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6381 }
6382 arg2 = static_cast< bool >(val2);
6383 {
6384 PyThreadState* __tstate = wxPyBeginAllowThreads();
6385 (arg1)->SetEditable(arg2);
6386 wxPyEndAllowThreads(__tstate);
6387 if (PyErr_Occurred()) SWIG_fail;
6388 }
6389 resultobj = SWIG_Py_Void();
6390 return resultobj;
6391fail:
6392 return NULL;
d14a1e28
RD
6393}
6394
6395
0085ce49
RD
6396SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6397 PyObject *resultobj = 0;
6398 wxComboBox *arg1 = (wxComboBox *) 0 ;
6399 void *argp1 = 0 ;
6400 int res1 = 0 ;
6401 PyObject *swig_obj[1] ;
6402
6403 if (!args) SWIG_fail;
6404 swig_obj[0] = args;
6405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6406 if (!SWIG_IsOK(res1)) {
6407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6408 }
6409 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6410 {
6411 PyThreadState* __tstate = wxPyBeginAllowThreads();
6412 (arg1)->SetInsertionPointEnd();
6413 wxPyEndAllowThreads(__tstate);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 resultobj = SWIG_Py_Void();
6417 return resultobj;
6418fail:
6419 return NULL;
6420}
6421
6422
6423SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6424 PyObject *resultobj = 0;
6425 wxComboBox *arg1 = (wxComboBox *) 0 ;
6426 long arg2 ;
6427 long arg3 ;
6428 void *argp1 = 0 ;
6429 int res1 = 0 ;
6430 long val2 ;
6431 int ecode2 = 0 ;
6432 long val3 ;
6433 int ecode3 = 0 ;
6434 PyObject * obj0 = 0 ;
6435 PyObject * obj1 = 0 ;
6436 PyObject * obj2 = 0 ;
6437 char * kwnames[] = {
2131d850 6438 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
6439 };
6440
6441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6443 if (!SWIG_IsOK(res1)) {
6444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6445 }
6446 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6447 ecode2 = SWIG_AsVal_long(obj1, &val2);
6448 if (!SWIG_IsOK(ecode2)) {
6449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6450 }
6451 arg2 = static_cast< long >(val2);
6452 ecode3 = SWIG_AsVal_long(obj2, &val3);
6453 if (!SWIG_IsOK(ecode3)) {
6454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6455 }
6456 arg3 = static_cast< long >(val3);
6457 {
6458 PyThreadState* __tstate = wxPyBeginAllowThreads();
6459 (arg1)->Remove(arg2,arg3);
6460 wxPyEndAllowThreads(__tstate);
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 resultobj = SWIG_Py_Void();
6464 return resultobj;
6465fail:
6466 return NULL;
d14a1e28
RD
6467}
6468
6469
0085ce49
RD
6470SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6471 PyObject *resultobj = 0;
6472 wxComboBox *arg1 = (wxComboBox *) 0 ;
6473 bool result;
6474 void *argp1 = 0 ;
6475 int res1 = 0 ;
6476 PyObject *swig_obj[1] ;
6477
6478 if (!args) SWIG_fail;
6479 swig_obj[0] = args;
6480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6481 if (!SWIG_IsOK(res1)) {
6482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6483 }
6484 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6485 {
6486 PyThreadState* __tstate = wxPyBeginAllowThreads();
6487 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6488 wxPyEndAllowThreads(__tstate);
6489 if (PyErr_Occurred()) SWIG_fail;
6490 }
6491 {
6492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6493 }
6494 return resultobj;
6495fail:
6496 return NULL;
d14a1e28
RD
6497}
6498
6499
0085ce49
RD
6500SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6501 PyObject *resultobj = 0;
6502 wxComboBox *arg1 = (wxComboBox *) 0 ;
6503 void *argp1 = 0 ;
6504 int res1 = 0 ;
6505 PyObject *swig_obj[1] ;
6506
6507 if (!args) SWIG_fail;
6508 swig_obj[0] = args;
6509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6510 if (!SWIG_IsOK(res1)) {
6511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6512 }
6513 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6514 {
6515 PyThreadState* __tstate = wxPyBeginAllowThreads();
6516 (arg1)->Undo();
6517 wxPyEndAllowThreads(__tstate);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 resultobj = SWIG_Py_Void();
6521 return resultobj;
6522fail:
6523 return NULL;
fd3f2efe
RD
6524}
6525
6526
0085ce49
RD
6527SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6528 PyObject *resultobj = 0;
6529 wxComboBox *arg1 = (wxComboBox *) 0 ;
6530 void *argp1 = 0 ;
6531 int res1 = 0 ;
6532 PyObject *swig_obj[1] ;
6533
6534 if (!args) SWIG_fail;
6535 swig_obj[0] = args;
6536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6537 if (!SWIG_IsOK(res1)) {
6538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6539 }
6540 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6541 {
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 (arg1)->Redo();
6544 wxPyEndAllowThreads(__tstate);
6545 if (PyErr_Occurred()) SWIG_fail;
6546 }
6547 resultobj = SWIG_Py_Void();
6548 return resultobj;
6549fail:
6550 return NULL;
d14a1e28
RD
6551}
6552
6553
0085ce49
RD
6554SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6555 PyObject *resultobj = 0;
6556 wxComboBox *arg1 = (wxComboBox *) 0 ;
6557 void *argp1 = 0 ;
6558 int res1 = 0 ;
6559 PyObject *swig_obj[1] ;
6560
6561 if (!args) SWIG_fail;
6562 swig_obj[0] = args;
6563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6564 if (!SWIG_IsOK(res1)) {
6565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6566 }
6567 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6568 {
6569 PyThreadState* __tstate = wxPyBeginAllowThreads();
6570 (arg1)->SelectAll();
6571 wxPyEndAllowThreads(__tstate);
6572 if (PyErr_Occurred()) SWIG_fail;
6573 }
6574 resultobj = SWIG_Py_Void();
6575 return resultobj;
6576fail:
6577 return NULL;
b9d6a5f3
RD
6578}
6579
6580
0085ce49
RD
6581SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6582 PyObject *resultobj = 0;
6583 wxComboBox *arg1 = (wxComboBox *) 0 ;
6584 bool result;
6585 void *argp1 = 0 ;
6586 int res1 = 0 ;
6587 PyObject *swig_obj[1] ;
6588
6589 if (!args) SWIG_fail;
6590 swig_obj[0] = args;
6591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6592 if (!SWIG_IsOK(res1)) {
6593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6594 }
6595 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6596 {
6597 PyThreadState* __tstate = wxPyBeginAllowThreads();
6598 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6599 wxPyEndAllowThreads(__tstate);
6600 if (PyErr_Occurred()) SWIG_fail;
6601 }
6602 {
6603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6604 }
6605 return resultobj;
6606fail:
6607 return NULL;
943e8dfd
RD
6608}
6609
6610
0085ce49
RD
6611SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6612 PyObject *resultobj = 0;
6613 wxComboBox *arg1 = (wxComboBox *) 0 ;
6614 bool result;
6615 void *argp1 = 0 ;
6616 int res1 = 0 ;
6617 PyObject *swig_obj[1] ;
6618
6619 if (!args) SWIG_fail;
6620 swig_obj[0] = args;
6621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6622 if (!SWIG_IsOK(res1)) {
6623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6624 }
6625 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6626 {
6627 PyThreadState* __tstate = wxPyBeginAllowThreads();
6628 result = (bool)((wxComboBox const *)arg1)->CanCut();
6629 wxPyEndAllowThreads(__tstate);
6630 if (PyErr_Occurred()) SWIG_fail;
6631 }
6632 {
6633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6634 }
6635 return resultobj;
6636fail:
6637 return NULL;
121b9a67
RD
6638}
6639
6640
0085ce49
RD
6641SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6642 PyObject *resultobj = 0;
6643 wxComboBox *arg1 = (wxComboBox *) 0 ;
6644 bool result;
6645 void *argp1 = 0 ;
6646 int res1 = 0 ;
6647 PyObject *swig_obj[1] ;
6648
6649 if (!args) SWIG_fail;
6650 swig_obj[0] = args;
6651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6652 if (!SWIG_IsOK(res1)) {
6653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6654 }
6655 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6656 {
6657 PyThreadState* __tstate = wxPyBeginAllowThreads();
6658 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6659 wxPyEndAllowThreads(__tstate);
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 {
6663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6664 }
6665 return resultobj;
6666fail:
6667 return NULL;
121b9a67
RD
6668}
6669
6670
0085ce49
RD
6671SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6672 PyObject *resultobj = 0;
6673 wxComboBox *arg1 = (wxComboBox *) 0 ;
6674 bool result;
6675 void *argp1 = 0 ;
6676 int res1 = 0 ;
6677 PyObject *swig_obj[1] ;
6678
6679 if (!args) SWIG_fail;
6680 swig_obj[0] = args;
6681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6682 if (!SWIG_IsOK(res1)) {
6683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6684 }
6685 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6686 {
6687 PyThreadState* __tstate = wxPyBeginAllowThreads();
6688 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6689 wxPyEndAllowThreads(__tstate);
6690 if (PyErr_Occurred()) SWIG_fail;
6691 }
6692 {
6693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6694 }
6695 return resultobj;
6696fail:
6697 return NULL;
d14a1e28
RD
6698}
6699
6700
0085ce49
RD
6701SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6702 PyObject *resultobj = 0;
6703 wxComboBox *arg1 = (wxComboBox *) 0 ;
6704 bool result;
6705 void *argp1 = 0 ;
6706 int res1 = 0 ;
6707 PyObject *swig_obj[1] ;
6708
6709 if (!args) SWIG_fail;
6710 swig_obj[0] = args;
6711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6712 if (!SWIG_IsOK(res1)) {
6713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6714 }
6715 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6716 {
6717 PyThreadState* __tstate = wxPyBeginAllowThreads();
6718 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6719 wxPyEndAllowThreads(__tstate);
6720 if (PyErr_Occurred()) SWIG_fail;
6721 }
6722 {
6723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6724 }
6725 return resultobj;
6726fail:
6727 return NULL;
d14a1e28
RD
6728}
6729
6730
0085ce49
RD
6731SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6732 PyObject *resultobj = 0;
6733 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6734 SwigValueWrapper<wxVisualAttributes > result;
6735 int val1 ;
6736 int ecode1 = 0 ;
6737 PyObject * obj0 = 0 ;
6738 char * kwnames[] = {
6739 (char *) "variant", NULL
6740 };
6741
6742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6743 if (obj0) {
6744 ecode1 = SWIG_AsVal_int(obj0, &val1);
6745 if (!SWIG_IsOK(ecode1)) {
6746 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6747 }
6748 arg1 = static_cast< wxWindowVariant >(val1);
6749 }
6750 {
6751 if (!wxPyCheckForApp()) SWIG_fail;
6752 PyThreadState* __tstate = wxPyBeginAllowThreads();
6753 result = wxComboBox::GetClassDefaultAttributes(arg1);
6754 wxPyEndAllowThreads(__tstate);
6755 if (PyErr_Occurred()) SWIG_fail;
6756 }
6757 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6758 return resultobj;
6759fail:
6760 return NULL;
d14a1e28
RD
6761}
6762
6763
0085ce49
RD
6764SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6765 PyObject *obj;
6766 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6767 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6768 return SWIG_Py_Void();
5cbf236d
RD
6769}
6770
0085ce49
RD
6771SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6772 return SWIG_Python_InitShadowInstance(args);
6773}
5cbf236d 6774
0085ce49
RD
6775SWIGINTERN int GaugeNameStr_set(PyObject *) {
6776 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6777 return 1;
5cbf236d
RD
6778}
6779
6780
0085ce49
RD
6781SWIGINTERN PyObject *GaugeNameStr_get(void) {
6782 PyObject *pyobj = 0;
6783
6784 {
6785#if wxUSE_UNICODE
6786 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6787#else
6788 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6789#endif
6790 }
6791 return pyobj;
6792}
6793
6794
6795SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6796 PyObject *resultobj = 0;
6797 wxWindow *arg1 = (wxWindow *) 0 ;
6798 int arg2 = (int) -1 ;
6799 int arg3 = (int) 100 ;
6800 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6801 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6802 wxSize const &arg5_defvalue = wxDefaultSize ;
6803 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6804 long arg6 = (long) wxGA_HORIZONTAL ;
6805 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6806 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6807 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6808 wxString *arg8 = (wxString *) &arg8_defvalue ;
6809 wxGauge *result = 0 ;
6810 void *argp1 = 0 ;
6811 int res1 = 0 ;
6812 int val2 ;
6813 int ecode2 = 0 ;
6814 int val3 ;
6815 int ecode3 = 0 ;
6816 wxPoint temp4 ;
6817 wxSize temp5 ;
6818 long val6 ;
6819 int ecode6 = 0 ;
6820 void *argp7 = 0 ;
6821 int res7 = 0 ;
6822 bool temp8 = false ;
6823 PyObject * obj0 = 0 ;
6824 PyObject * obj1 = 0 ;
6825 PyObject * obj2 = 0 ;
6826 PyObject * obj3 = 0 ;
6827 PyObject * obj4 = 0 ;
6828 PyObject * obj5 = 0 ;
6829 PyObject * obj6 = 0 ;
6830 PyObject * obj7 = 0 ;
6831 char * kwnames[] = {
6832 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6833 };
6834
6835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6837 if (!SWIG_IsOK(res1)) {
6838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6839 }
6840 arg1 = reinterpret_cast< wxWindow * >(argp1);
6841 if (obj1) {
6842 ecode2 = SWIG_AsVal_int(obj1, &val2);
6843 if (!SWIG_IsOK(ecode2)) {
6844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6845 }
6846 arg2 = static_cast< int >(val2);
6847 }
6848 if (obj2) {
6849 ecode3 = SWIG_AsVal_int(obj2, &val3);
6850 if (!SWIG_IsOK(ecode3)) {
6851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6852 }
6853 arg3 = static_cast< int >(val3);
6854 }
6855 if (obj3) {
5cbf236d 6856 {
0085ce49
RD
6857 arg4 = &temp4;
6858 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5cbf236d 6859 }
0085ce49
RD
6860 }
6861 if (obj4) {
5cbf236d 6862 {
0085ce49
RD
6863 arg5 = &temp5;
6864 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6865 }
0085ce49
RD
6866 }
6867 if (obj5) {
6868 ecode6 = SWIG_AsVal_long(obj5, &val6);
6869 if (!SWIG_IsOK(ecode6)) {
6870 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6871 }
6872 arg6 = static_cast< long >(val6);
6873 }
6874 if (obj6) {
6875 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6876 if (!SWIG_IsOK(res7)) {
6877 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6878 }
6879 if (!argp7) {
6880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
5cbf236d 6881 }
0085ce49
RD
6882 arg7 = reinterpret_cast< wxValidator * >(argp7);
6883 }
6884 if (obj7) {
5cbf236d 6885 {
0085ce49
RD
6886 arg8 = wxString_in_helper(obj7);
6887 if (arg8 == NULL) SWIG_fail;
6888 temp8 = true;
5cbf236d 6889 }
0085ce49
RD
6890 }
6891 {
6892 if (!wxPyCheckForApp()) SWIG_fail;
6893 PyThreadState* __tstate = wxPyBeginAllowThreads();
6894 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6895 wxPyEndAllowThreads(__tstate);
6896 if (PyErr_Occurred()) SWIG_fail;
6897 }
6898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6899 {
6900 if (temp8)
6901 delete arg8;
6902 }
6903 return resultobj;
6904fail:
6905 {
6906 if (temp8)
6907 delete arg8;
6908 }
6909 return NULL;
5cbf236d
RD
6910}
6911
6912
0085ce49
RD
6913SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6914 PyObject *resultobj = 0;
6915 wxGauge *result = 0 ;
6916
6917 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6918 {
6919 if (!wxPyCheckForApp()) SWIG_fail;
6920 PyThreadState* __tstate = wxPyBeginAllowThreads();
6921 result = (wxGauge *)new wxGauge();
6922 wxPyEndAllowThreads(__tstate);
6923 if (PyErr_Occurred()) SWIG_fail;
6924 }
6925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6926 return resultobj;
6927fail:
6928 return NULL;
6929}
6930
6931
6932SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6933 PyObject *resultobj = 0;
6934 wxGauge *arg1 = (wxGauge *) 0 ;
6935 wxWindow *arg2 = (wxWindow *) 0 ;
6936 int arg3 = (int) -1 ;
6937 int arg4 = (int) 100 ;
6938 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6939 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6940 wxSize const &arg6_defvalue = wxDefaultSize ;
6941 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6942 long arg7 = (long) wxGA_HORIZONTAL ;
6943 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6944 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6945 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6946 wxString *arg9 = (wxString *) &arg9_defvalue ;
6947 bool result;
6948 void *argp1 = 0 ;
6949 int res1 = 0 ;
6950 void *argp2 = 0 ;
6951 int res2 = 0 ;
6952 int val3 ;
6953 int ecode3 = 0 ;
6954 int val4 ;
6955 int ecode4 = 0 ;
6956 wxPoint temp5 ;
6957 wxSize temp6 ;
6958 long val7 ;
6959 int ecode7 = 0 ;
6960 void *argp8 = 0 ;
6961 int res8 = 0 ;
6962 bool temp9 = false ;
6963 PyObject * obj0 = 0 ;
6964 PyObject * obj1 = 0 ;
6965 PyObject * obj2 = 0 ;
6966 PyObject * obj3 = 0 ;
6967 PyObject * obj4 = 0 ;
6968 PyObject * obj5 = 0 ;
6969 PyObject * obj6 = 0 ;
6970 PyObject * obj7 = 0 ;
6971 PyObject * obj8 = 0 ;
6972 char * kwnames[] = {
6973 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6974 };
6975
6976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6978 if (!SWIG_IsOK(res1)) {
6979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6980 }
6981 arg1 = reinterpret_cast< wxGauge * >(argp1);
6982 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6983 if (!SWIG_IsOK(res2)) {
6984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6985 }
6986 arg2 = reinterpret_cast< wxWindow * >(argp2);
6987 if (obj2) {
6988 ecode3 = SWIG_AsVal_int(obj2, &val3);
6989 if (!SWIG_IsOK(ecode3)) {
6990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6991 }
6992 arg3 = static_cast< int >(val3);
6993 }
6994 if (obj3) {
6995 ecode4 = SWIG_AsVal_int(obj3, &val4);
6996 if (!SWIG_IsOK(ecode4)) {
6997 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6998 }
6999 arg4 = static_cast< int >(val4);
7000 }
7001 if (obj4) {
5cbf236d 7002 {
0085ce49
RD
7003 arg5 = &temp5;
7004 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 7005 }
0085ce49
RD
7006 }
7007 if (obj5) {
5cbf236d 7008 {
0085ce49
RD
7009 arg6 = &temp6;
7010 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5cbf236d 7011 }
0085ce49
RD
7012 }
7013 if (obj6) {
7014 ecode7 = SWIG_AsVal_long(obj6, &val7);
7015 if (!SWIG_IsOK(ecode7)) {
7016 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7017 }
7018 arg7 = static_cast< long >(val7);
7019 }
7020 if (obj7) {
7021 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7022 if (!SWIG_IsOK(res8)) {
7023 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5cbf236d 7024 }
0085ce49
RD
7025 if (!argp8) {
7026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7027 }
7028 arg8 = reinterpret_cast< wxValidator * >(argp8);
7029 }
7030 if (obj8) {
5cbf236d 7031 {
0085ce49
RD
7032 arg9 = wxString_in_helper(obj8);
7033 if (arg9 == NULL) SWIG_fail;
7034 temp9 = true;
5cbf236d 7035 }
0085ce49
RD
7036 }
7037 {
7038 PyThreadState* __tstate = wxPyBeginAllowThreads();
7039 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7040 wxPyEndAllowThreads(__tstate);
7041 if (PyErr_Occurred()) SWIG_fail;
7042 }
7043 {
7044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7045 }
7046 {
7047 if (temp9)
7048 delete arg9;
7049 }
7050 return resultobj;
7051fail:
7052 {
7053 if (temp9)
7054 delete arg9;
7055 }
7056 return NULL;
7057}
7058
7059
7060SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7061 PyObject *resultobj = 0;
7062 wxGauge *arg1 = (wxGauge *) 0 ;
7063 int arg2 ;
7064 void *argp1 = 0 ;
7065 int res1 = 0 ;
7066 int val2 ;
7067 int ecode2 = 0 ;
7068 PyObject * obj0 = 0 ;
7069 PyObject * obj1 = 0 ;
7070 char * kwnames[] = {
7071 (char *) "self",(char *) "range", NULL
7072 };
7073
7074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7076 if (!SWIG_IsOK(res1)) {
7077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7078 }
7079 arg1 = reinterpret_cast< wxGauge * >(argp1);
7080 ecode2 = SWIG_AsVal_int(obj1, &val2);
7081 if (!SWIG_IsOK(ecode2)) {
7082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7083 }
7084 arg2 = static_cast< int >(val2);
7085 {
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 (arg1)->SetRange(arg2);
7088 wxPyEndAllowThreads(__tstate);
7089 if (PyErr_Occurred()) SWIG_fail;
7090 }
7091 resultobj = SWIG_Py_Void();
7092 return resultobj;
7093fail:
7094 return NULL;
5cbf236d
RD
7095}
7096
7097
0085ce49
RD
7098SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7099 PyObject *resultobj = 0;
7100 wxGauge *arg1 = (wxGauge *) 0 ;
7101 int result;
7102 void *argp1 = 0 ;
7103 int res1 = 0 ;
7104 PyObject *swig_obj[1] ;
7105
7106 if (!args) SWIG_fail;
7107 swig_obj[0] = args;
7108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7109 if (!SWIG_IsOK(res1)) {
7110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7111 }
7112 arg1 = reinterpret_cast< wxGauge * >(argp1);
7113 {
7114 PyThreadState* __tstate = wxPyBeginAllowThreads();
7115 result = (int)((wxGauge const *)arg1)->GetRange();
7116 wxPyEndAllowThreads(__tstate);
7117 if (PyErr_Occurred()) SWIG_fail;
7118 }
7119 resultobj = SWIG_From_int(static_cast< int >(result));
7120 return resultobj;
7121fail:
7122 return NULL;
7123}
7124
7125
7126SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7127 PyObject *resultobj = 0;
7128 wxGauge *arg1 = (wxGauge *) 0 ;
7129 int arg2 ;
7130 void *argp1 = 0 ;
7131 int res1 = 0 ;
7132 int val2 ;
7133 int ecode2 = 0 ;
7134 PyObject * obj0 = 0 ;
7135 PyObject * obj1 = 0 ;
7136 char * kwnames[] = {
7137 (char *) "self",(char *) "pos", NULL
7138 };
7139
7140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7142 if (!SWIG_IsOK(res1)) {
7143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7144 }
7145 arg1 = reinterpret_cast< wxGauge * >(argp1);
7146 ecode2 = SWIG_AsVal_int(obj1, &val2);
7147 if (!SWIG_IsOK(ecode2)) {
7148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7149 }
7150 arg2 = static_cast< int >(val2);
7151 {
7152 PyThreadState* __tstate = wxPyBeginAllowThreads();
7153 (arg1)->SetValue(arg2);
7154 wxPyEndAllowThreads(__tstate);
7155 if (PyErr_Occurred()) SWIG_fail;
7156 }
7157 resultobj = SWIG_Py_Void();
7158 return resultobj;
7159fail:
7160 return NULL;
5cbf236d
RD
7161}
7162
7163
0085ce49
RD
7164SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7165 PyObject *resultobj = 0;
7166 wxGauge *arg1 = (wxGauge *) 0 ;
7167 int result;
7168 void *argp1 = 0 ;
7169 int res1 = 0 ;
7170 PyObject *swig_obj[1] ;
7171
7172 if (!args) SWIG_fail;
7173 swig_obj[0] = args;
7174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7175 if (!SWIG_IsOK(res1)) {
7176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7177 }
7178 arg1 = reinterpret_cast< wxGauge * >(argp1);
7179 {
7180 PyThreadState* __tstate = wxPyBeginAllowThreads();
7181 result = (int)((wxGauge const *)arg1)->GetValue();
7182 wxPyEndAllowThreads(__tstate);
7183 if (PyErr_Occurred()) SWIG_fail;
7184 }
7185 resultobj = SWIG_From_int(static_cast< int >(result));
7186 return resultobj;
7187fail:
7188 return NULL;
5cbf236d
RD
7189}
7190
7191
ae5bc7f3
RD
7192SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7193 PyObject *resultobj = 0;
7194 wxGauge *arg1 = (wxGauge *) 0 ;
7195 void *argp1 = 0 ;
7196 int res1 = 0 ;
7197 PyObject *swig_obj[1] ;
7198
7199 if (!args) SWIG_fail;
7200 swig_obj[0] = args;
7201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7202 if (!SWIG_IsOK(res1)) {
7203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7204 }
7205 arg1 = reinterpret_cast< wxGauge * >(argp1);
7206 {
7207 PyThreadState* __tstate = wxPyBeginAllowThreads();
7208 (arg1)->Pulse();
7209 wxPyEndAllowThreads(__tstate);
7210 if (PyErr_Occurred()) SWIG_fail;
7211 }
7212 resultobj = SWIG_Py_Void();
7213 return resultobj;
7214fail:
7215 return NULL;
7216}
7217
7218
0085ce49
RD
7219SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7220 PyObject *resultobj = 0;
7221 wxGauge *arg1 = (wxGauge *) 0 ;
7222 bool result;
7223 void *argp1 = 0 ;
7224 int res1 = 0 ;
7225 PyObject *swig_obj[1] ;
7226
7227 if (!args) SWIG_fail;
7228 swig_obj[0] = args;
7229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7230 if (!SWIG_IsOK(res1)) {
7231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7232 }
7233 arg1 = reinterpret_cast< wxGauge * >(argp1);
7234 {
7235 PyThreadState* __tstate = wxPyBeginAllowThreads();
7236 result = (bool)((wxGauge const *)arg1)->IsVertical();
7237 wxPyEndAllowThreads(__tstate);
7238 if (PyErr_Occurred()) SWIG_fail;
7239 }
7240 {
7241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7242 }
7243 return resultobj;
7244fail:
7245 return NULL;
7246}
7247
7248
7249SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7250 PyObject *resultobj = 0;
7251 wxGauge *arg1 = (wxGauge *) 0 ;
7252 int arg2 ;
7253 void *argp1 = 0 ;
7254 int res1 = 0 ;
7255 int val2 ;
7256 int ecode2 = 0 ;
7257 PyObject * obj0 = 0 ;
7258 PyObject * obj1 = 0 ;
7259 char * kwnames[] = {
7260 (char *) "self",(char *) "w", NULL
7261 };
7262
7263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7265 if (!SWIG_IsOK(res1)) {
7266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7267 }
7268 arg1 = reinterpret_cast< wxGauge * >(argp1);
7269 ecode2 = SWIG_AsVal_int(obj1, &val2);
7270 if (!SWIG_IsOK(ecode2)) {
7271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7272 }
7273 arg2 = static_cast< int >(val2);
7274 {
7275 PyThreadState* __tstate = wxPyBeginAllowThreads();
7276 (arg1)->SetShadowWidth(arg2);
7277 wxPyEndAllowThreads(__tstate);
7278 if (PyErr_Occurred()) SWIG_fail;
7279 }
7280 resultobj = SWIG_Py_Void();
7281 return resultobj;
7282fail:
7283 return NULL;
22bfe96c
RD
7284}
7285
7286
0085ce49
RD
7287SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7288 PyObject *resultobj = 0;
7289 wxGauge *arg1 = (wxGauge *) 0 ;
7290 int result;
7291 void *argp1 = 0 ;
7292 int res1 = 0 ;
7293 PyObject *swig_obj[1] ;
7294
7295 if (!args) SWIG_fail;
7296 swig_obj[0] = args;
7297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7298 if (!SWIG_IsOK(res1)) {
7299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7300 }
7301 arg1 = reinterpret_cast< wxGauge * >(argp1);
7302 {
7303 PyThreadState* __tstate = wxPyBeginAllowThreads();
7304 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7305 wxPyEndAllowThreads(__tstate);
7306 if (PyErr_Occurred()) SWIG_fail;
7307 }
7308 resultobj = SWIG_From_int(static_cast< int >(result));
7309 return resultobj;
7310fail:
7311 return NULL;
7312}
7313
7314
7315SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7316 PyObject *resultobj = 0;
7317 wxGauge *arg1 = (wxGauge *) 0 ;
7318 int arg2 ;
7319 void *argp1 = 0 ;
7320 int res1 = 0 ;
7321 int val2 ;
7322 int ecode2 = 0 ;
7323 PyObject * obj0 = 0 ;
7324 PyObject * obj1 = 0 ;
7325 char * kwnames[] = {
7326 (char *) "self",(char *) "w", NULL
7327 };
7328
7329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7331 if (!SWIG_IsOK(res1)) {
7332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7333 }
7334 arg1 = reinterpret_cast< wxGauge * >(argp1);
7335 ecode2 = SWIG_AsVal_int(obj1, &val2);
7336 if (!SWIG_IsOK(ecode2)) {
7337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7338 }
7339 arg2 = static_cast< int >(val2);
7340 {
7341 PyThreadState* __tstate = wxPyBeginAllowThreads();
7342 (arg1)->SetBezelFace(arg2);
7343 wxPyEndAllowThreads(__tstate);
7344 if (PyErr_Occurred()) SWIG_fail;
7345 }
7346 resultobj = SWIG_Py_Void();
7347 return resultobj;
7348fail:
7349 return NULL;
d14a1e28 7350}
0085ce49
RD
7351
7352
7353SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7354 PyObject *resultobj = 0;
7355 wxGauge *arg1 = (wxGauge *) 0 ;
7356 int result;
7357 void *argp1 = 0 ;
7358 int res1 = 0 ;
7359 PyObject *swig_obj[1] ;
7360
7361 if (!args) SWIG_fail;
7362 swig_obj[0] = args;
7363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7364 if (!SWIG_IsOK(res1)) {
7365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7366 }
7367 arg1 = reinterpret_cast< wxGauge * >(argp1);
7368 {
7369 PyThreadState* __tstate = wxPyBeginAllowThreads();
7370 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 resultobj = SWIG_From_int(static_cast< int >(result));
7375 return resultobj;
7376fail:
7377 return NULL;
7378}
7379
7380
7381SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7382 PyObject *resultobj = 0;
7383 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7384 SwigValueWrapper<wxVisualAttributes > result;
7385 int val1 ;
7386 int ecode1 = 0 ;
7387 PyObject * obj0 = 0 ;
7388 char * kwnames[] = {
7389 (char *) "variant", NULL
7390 };
7391
7392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7393 if (obj0) {
7394 ecode1 = SWIG_AsVal_int(obj0, &val1);
7395 if (!SWIG_IsOK(ecode1)) {
7396 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7397 }
7398 arg1 = static_cast< wxWindowVariant >(val1);
7399 }
7400 {
7401 if (!wxPyCheckForApp()) SWIG_fail;
7402 PyThreadState* __tstate = wxPyBeginAllowThreads();
7403 result = wxGauge::GetClassDefaultAttributes(arg1);
7404 wxPyEndAllowThreads(__tstate);
7405 if (PyErr_Occurred()) SWIG_fail;
7406 }
7407 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7408 return resultobj;
7409fail:
7410 return NULL;
b2dc1044
RD
7411}
7412
7413
0085ce49
RD
7414SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7415 PyObject *obj;
7416 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7417 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7418 return SWIG_Py_Void();
7419}
7420
7421SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7422 return SWIG_Python_InitShadowInstance(args);
7423}
7424
7425SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7426 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7427 return 1;
7428}
7429
7430
7431SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7432 PyObject *pyobj = 0;
7433
7434 {
b2dc1044 7435#if wxUSE_UNICODE
0085ce49 7436 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7437#else
0085ce49 7438 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
b2dc1044 7439#endif
0085ce49
RD
7440 }
7441 return pyobj;
d14a1e28
RD
7442}
7443
7444
0085ce49
RD
7445SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7446 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7447 return 1;
d14a1e28
RD
7448}
7449
7450
0085ce49
RD
7451SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7452 PyObject *pyobj = 0;
7453
7454 {
7455#if wxUSE_UNICODE
7456 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7457#else
7458 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7459#endif
7460 }
7461 return pyobj;
7462}
7463
7464
7465SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7466 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7467 return 1;
7468}
7469
7470
7471SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7472 PyObject *pyobj = 0;
7473
7474 {
7475#if wxUSE_UNICODE
7476 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7477#else
7478 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7479#endif
7480 }
7481 return pyobj;
7482}
7483
7484
3f7f284d
RD
7485SWIGINTERN int StaticLineNameStr_set(PyObject *) {
7486 SWIG_Error(SWIG_AttributeError,"Variable StaticLineNameStr is read-only.");
7487 return 1;
7488}
7489
7490
7491SWIGINTERN PyObject *StaticLineNameStr_get(void) {
7492 PyObject *pyobj = 0;
7493
7494 {
7495#if wxUSE_UNICODE
7496 pyobj = PyUnicode_FromWideChar((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7497#else
7498 pyobj = PyString_FromStringAndSize((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7499#endif
7500 }
7501 return pyobj;
7502}
7503
7504
0085ce49
RD
7505SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7506 PyObject *resultobj = 0;
7507 wxWindow *arg1 = (wxWindow *) 0 ;
7508 int arg2 = (int) -1 ;
7509 wxString const &arg3_defvalue = wxPyEmptyString ;
7510 wxString *arg3 = (wxString *) &arg3_defvalue ;
7511 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7512 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7513 wxSize const &arg5_defvalue = wxDefaultSize ;
7514 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7515 long arg6 = (long) 0 ;
7516 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7517 wxString *arg7 = (wxString *) &arg7_defvalue ;
7518 wxStaticBox *result = 0 ;
7519 void *argp1 = 0 ;
7520 int res1 = 0 ;
7521 int val2 ;
7522 int ecode2 = 0 ;
7523 bool temp3 = false ;
7524 wxPoint temp4 ;
7525 wxSize temp5 ;
7526 long val6 ;
7527 int ecode6 = 0 ;
7528 bool temp7 = false ;
7529 PyObject * obj0 = 0 ;
7530 PyObject * obj1 = 0 ;
7531 PyObject * obj2 = 0 ;
7532 PyObject * obj3 = 0 ;
7533 PyObject * obj4 = 0 ;
7534 PyObject * obj5 = 0 ;
7535 PyObject * obj6 = 0 ;
7536 char * kwnames[] = {
7537 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7538 };
7539
7540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7542 if (!SWIG_IsOK(res1)) {
7543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7544 }
7545 arg1 = reinterpret_cast< wxWindow * >(argp1);
7546 if (obj1) {
7547 ecode2 = SWIG_AsVal_int(obj1, &val2);
7548 if (!SWIG_IsOK(ecode2)) {
7549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7550 }
7551 arg2 = static_cast< int >(val2);
7552 }
7553 if (obj2) {
d14a1e28 7554 {
0085ce49
RD
7555 arg3 = wxString_in_helper(obj2);
7556 if (arg3 == NULL) SWIG_fail;
7557 temp3 = true;
d14a1e28 7558 }
0085ce49
RD
7559 }
7560 if (obj3) {
4f89f6a3 7561 {
0085ce49
RD
7562 arg4 = &temp4;
7563 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 7564 }
0085ce49
RD
7565 }
7566 if (obj4) {
d14a1e28 7567 {
0085ce49
RD
7568 arg5 = &temp5;
7569 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7570 }
0085ce49
RD
7571 }
7572 if (obj5) {
7573 ecode6 = SWIG_AsVal_long(obj5, &val6);
7574 if (!SWIG_IsOK(ecode6)) {
7575 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7576 }
7577 arg6 = static_cast< long >(val6);
7578 }
7579 if (obj6) {
d14a1e28 7580 {
0085ce49
RD
7581 arg7 = wxString_in_helper(obj6);
7582 if (arg7 == NULL) SWIG_fail;
7583 temp7 = true;
d14a1e28 7584 }
0085ce49
RD
7585 }
7586 {
7587 if (!wxPyCheckForApp()) SWIG_fail;
7588 PyThreadState* __tstate = wxPyBeginAllowThreads();
7589 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7590 wxPyEndAllowThreads(__tstate);
7591 if (PyErr_Occurred()) SWIG_fail;
7592 }
7593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7594 {
7595 if (temp3)
7596 delete arg3;
7597 }
7598 {
7599 if (temp7)
7600 delete arg7;
7601 }
7602 return resultobj;
7603fail:
7604 {
7605 if (temp3)
7606 delete arg3;
7607 }
7608 {
7609 if (temp7)
7610 delete arg7;
7611 }
7612 return NULL;
d14a1e28
RD
7613}
7614
7615
0085ce49
RD
7616SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7617 PyObject *resultobj = 0;
7618 wxStaticBox *result = 0 ;
7619
7620 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7621 {
7622 if (!wxPyCheckForApp()) SWIG_fail;
7623 PyThreadState* __tstate = wxPyBeginAllowThreads();
7624 result = (wxStaticBox *)new wxStaticBox();
7625 wxPyEndAllowThreads(__tstate);
7626 if (PyErr_Occurred()) SWIG_fail;
7627 }
7628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7629 return resultobj;
7630fail:
7631 return NULL;
7632}
7633
7634
7635SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7636 PyObject *resultobj = 0;
7637 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7638 wxWindow *arg2 = (wxWindow *) 0 ;
7639 int arg3 = (int) -1 ;
7640 wxString const &arg4_defvalue = wxPyEmptyString ;
7641 wxString *arg4 = (wxString *) &arg4_defvalue ;
7642 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7643 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7644 wxSize const &arg6_defvalue = wxDefaultSize ;
7645 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7646 long arg7 = (long) 0 ;
7647 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7648 wxString *arg8 = (wxString *) &arg8_defvalue ;
7649 bool result;
7650 void *argp1 = 0 ;
7651 int res1 = 0 ;
7652 void *argp2 = 0 ;
7653 int res2 = 0 ;
7654 int val3 ;
7655 int ecode3 = 0 ;
7656 bool temp4 = false ;
7657 wxPoint temp5 ;
7658 wxSize temp6 ;
7659 long val7 ;
7660 int ecode7 = 0 ;
7661 bool temp8 = false ;
7662 PyObject * obj0 = 0 ;
7663 PyObject * obj1 = 0 ;
7664 PyObject * obj2 = 0 ;
7665 PyObject * obj3 = 0 ;
7666 PyObject * obj4 = 0 ;
7667 PyObject * obj5 = 0 ;
7668 PyObject * obj6 = 0 ;
7669 PyObject * obj7 = 0 ;
7670 char * kwnames[] = {
7671 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7672 };
7673
7674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7676 if (!SWIG_IsOK(res1)) {
7677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7678 }
7679 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7680 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7681 if (!SWIG_IsOK(res2)) {
7682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7683 }
7684 arg2 = reinterpret_cast< wxWindow * >(argp2);
7685 if (obj2) {
7686 ecode3 = SWIG_AsVal_int(obj2, &val3);
7687 if (!SWIG_IsOK(ecode3)) {
7688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7689 }
7690 arg3 = static_cast< int >(val3);
7691 }
7692 if (obj3) {
093d3ff1 7693 {
0085ce49
RD
7694 arg4 = wxString_in_helper(obj3);
7695 if (arg4 == NULL) SWIG_fail;
7696 temp4 = true;
093d3ff1 7697 }
0085ce49
RD
7698 }
7699 if (obj4) {
d14a1e28 7700 {
0085ce49
RD
7701 arg5 = &temp5;
7702 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 7703 }
0085ce49
RD
7704 }
7705 if (obj5) {
d14a1e28 7706 {
0085ce49
RD
7707 arg6 = &temp6;
7708 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 7709 }
0085ce49
RD
7710 }
7711 if (obj6) {
7712 ecode7 = SWIG_AsVal_long(obj6, &val7);
7713 if (!SWIG_IsOK(ecode7)) {
7714 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7715 }
7716 arg7 = static_cast< long >(val7);
7717 }
7718 if (obj7) {
093d3ff1 7719 {
0085ce49
RD
7720 arg8 = wxString_in_helper(obj7);
7721 if (arg8 == NULL) SWIG_fail;
7722 temp8 = true;
093d3ff1 7723 }
0085ce49
RD
7724 }
7725 {
7726 PyThreadState* __tstate = wxPyBeginAllowThreads();
7727 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7728 wxPyEndAllowThreads(__tstate);
7729 if (PyErr_Occurred()) SWIG_fail;
7730 }
7731 {
7732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7733 }
7734 {
7735 if (temp4)
7736 delete arg4;
7737 }
7738 {
7739 if (temp8)
7740 delete arg8;
7741 }
7742 return resultobj;
7743fail:
7744 {
7745 if (temp4)
7746 delete arg4;
7747 }
7748 {
7749 if (temp8)
7750 delete arg8;
7751 }
7752 return NULL;
7753}
d14a1e28 7754
0085ce49
RD
7755
7756SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7757 PyObject *resultobj = 0;
7758 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7759 SwigValueWrapper<wxVisualAttributes > result;
7760 int val1 ;
7761 int ecode1 = 0 ;
7762 PyObject * obj0 = 0 ;
7763 char * kwnames[] = {
7764 (char *) "variant", NULL
7765 };
7766
7767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7768 if (obj0) {
7769 ecode1 = SWIG_AsVal_int(obj0, &val1);
7770 if (!SWIG_IsOK(ecode1)) {
7771 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7772 }
7773 arg1 = static_cast< wxWindowVariant >(val1);
7774 }
7775 {
7776 if (!wxPyCheckForApp()) SWIG_fail;
7777 PyThreadState* __tstate = wxPyBeginAllowThreads();
7778 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7779 wxPyEndAllowThreads(__tstate);
7780 if (PyErr_Occurred()) SWIG_fail;
7781 }
7782 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7783 return resultobj;
7784fail:
7785 return NULL;
7786}
7787
7788
7789SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7790 PyObject *obj;
7791 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7792 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7793 return SWIG_Py_Void();
7794}
7795
7796SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7797 return SWIG_Python_InitShadowInstance(args);
7798}
7799
7800SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7801 PyObject *resultobj = 0;
7802 wxWindow *arg1 = (wxWindow *) 0 ;
7803 int arg2 = (int) -1 ;
7804 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7805 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7806 wxSize const &arg4_defvalue = wxDefaultSize ;
7807 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7808 long arg5 = (long) wxLI_HORIZONTAL ;
3f7f284d 7809 wxString const &arg6_defvalue = wxPyStaticLineNameStr ;
0085ce49
RD
7810 wxString *arg6 = (wxString *) &arg6_defvalue ;
7811 wxStaticLine *result = 0 ;
7812 void *argp1 = 0 ;
7813 int res1 = 0 ;
7814 int val2 ;
7815 int ecode2 = 0 ;
7816 wxPoint temp3 ;
7817 wxSize temp4 ;
7818 long val5 ;
7819 int ecode5 = 0 ;
7820 bool temp6 = false ;
7821 PyObject * obj0 = 0 ;
7822 PyObject * obj1 = 0 ;
7823 PyObject * obj2 = 0 ;
7824 PyObject * obj3 = 0 ;
7825 PyObject * obj4 = 0 ;
7826 PyObject * obj5 = 0 ;
7827 char * kwnames[] = {
7828 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7829 };
7830
7831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7833 if (!SWIG_IsOK(res1)) {
7834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7835 }
7836 arg1 = reinterpret_cast< wxWindow * >(argp1);
7837 if (obj1) {
7838 ecode2 = SWIG_AsVal_int(obj1, &val2);
7839 if (!SWIG_IsOK(ecode2)) {
7840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7841 }
7842 arg2 = static_cast< int >(val2);
7843 }
7844 if (obj2) {
093d3ff1 7845 {
0085ce49
RD
7846 arg3 = &temp3;
7847 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 7848 }
0085ce49
RD
7849 }
7850 if (obj3) {
d14a1e28 7851 {
0085ce49
RD
7852 arg4 = &temp4;
7853 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7854 }
0085ce49
RD
7855 }
7856 if (obj4) {
7857 ecode5 = SWIG_AsVal_long(obj4, &val5);
7858 if (!SWIG_IsOK(ecode5)) {
7859 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7860 }
7861 arg5 = static_cast< long >(val5);
7862 }
7863 if (obj5) {
7864 {
7865 arg6 = wxString_in_helper(obj5);
7866 if (arg6 == NULL) SWIG_fail;
7867 temp6 = true;
7868 }
7869 }
7870 {
7871 if (!wxPyCheckForApp()) SWIG_fail;
7872 PyThreadState* __tstate = wxPyBeginAllowThreads();
7873 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7874 wxPyEndAllowThreads(__tstate);
7875 if (PyErr_Occurred()) SWIG_fail;
7876 }
7877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7878 {
7879 if (temp6)
7880 delete arg6;
7881 }
7882 return resultobj;
7883fail:
7884 {
7885 if (temp6)
7886 delete arg6;
7887 }
7888 return NULL;
d14a1e28
RD
7889}
7890
7891
0085ce49
RD
7892SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7893 PyObject *resultobj = 0;
7894 wxStaticLine *result = 0 ;
7895
7896 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7897 {
7898 if (!wxPyCheckForApp()) SWIG_fail;
7899 PyThreadState* __tstate = wxPyBeginAllowThreads();
7900 result = (wxStaticLine *)new wxStaticLine();
7901 wxPyEndAllowThreads(__tstate);
7902 if (PyErr_Occurred()) SWIG_fail;
7903 }
7904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7905 return resultobj;
7906fail:
7907 return NULL;
7908}
7909
7910
7911SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7912 PyObject *resultobj = 0;
7913 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7914 wxWindow *arg2 = (wxWindow *) 0 ;
7915 int arg3 = (int) -1 ;
7916 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7917 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7918 wxSize const &arg5_defvalue = wxDefaultSize ;
7919 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7920 long arg6 = (long) wxLI_HORIZONTAL ;
3f7f284d 7921 wxString const &arg7_defvalue = wxPyStaticLineNameStr ;
0085ce49
RD
7922 wxString *arg7 = (wxString *) &arg7_defvalue ;
7923 bool result;
7924 void *argp1 = 0 ;
7925 int res1 = 0 ;
7926 void *argp2 = 0 ;
7927 int res2 = 0 ;
7928 int val3 ;
7929 int ecode3 = 0 ;
7930 wxPoint temp4 ;
7931 wxSize temp5 ;
7932 long val6 ;
7933 int ecode6 = 0 ;
7934 bool temp7 = false ;
7935 PyObject * obj0 = 0 ;
7936 PyObject * obj1 = 0 ;
7937 PyObject * obj2 = 0 ;
7938 PyObject * obj3 = 0 ;
7939 PyObject * obj4 = 0 ;
7940 PyObject * obj5 = 0 ;
7941 PyObject * obj6 = 0 ;
7942 char * kwnames[] = {
7943 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7944 };
7945
7946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7948 if (!SWIG_IsOK(res1)) {
7949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7950 }
7951 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7952 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7953 if (!SWIG_IsOK(res2)) {
7954 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7955 }
7956 arg2 = reinterpret_cast< wxWindow * >(argp2);
7957 if (obj2) {
7958 ecode3 = SWIG_AsVal_int(obj2, &val3);
7959 if (!SWIG_IsOK(ecode3)) {
7960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7961 }
7962 arg3 = static_cast< int >(val3);
7963 }
7964 if (obj3) {
d14a1e28 7965 {
0085ce49
RD
7966 arg4 = &temp4;
7967 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 7968 }
0085ce49
RD
7969 }
7970 if (obj4) {
093d3ff1 7971 {
0085ce49
RD
7972 arg5 = &temp5;
7973 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 7974 }
0085ce49
RD
7975 }
7976 if (obj5) {
7977 ecode6 = SWIG_AsVal_long(obj5, &val6);
7978 if (!SWIG_IsOK(ecode6)) {
7979 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7980 }
7981 arg6 = static_cast< long >(val6);
7982 }
7983 if (obj6) {
7984 {
7985 arg7 = wxString_in_helper(obj6);
7986 if (arg7 == NULL) SWIG_fail;
7987 temp7 = true;
7988 }
7989 }
7990 {
7991 PyThreadState* __tstate = wxPyBeginAllowThreads();
7992 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7993 wxPyEndAllowThreads(__tstate);
7994 if (PyErr_Occurred()) SWIG_fail;
7995 }
7996 {
7997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7998 }
7999 {
8000 if (temp7)
8001 delete arg7;
8002 }
8003 return resultobj;
8004fail:
8005 {
8006 if (temp7)
8007 delete arg7;
8008 }
8009 return NULL;
d14a1e28
RD
8010}
8011
8012
0085ce49
RD
8013SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8014 PyObject *resultobj = 0;
8015 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
8016 bool result;
8017 void *argp1 = 0 ;
8018 int res1 = 0 ;
8019 PyObject *swig_obj[1] ;
8020
8021 if (!args) SWIG_fail;
8022 swig_obj[0] = args;
8023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
8024 if (!SWIG_IsOK(res1)) {
8025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
8026 }
8027 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
8028 {
8029 PyThreadState* __tstate = wxPyBeginAllowThreads();
8030 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
8031 wxPyEndAllowThreads(__tstate);
8032 if (PyErr_Occurred()) SWIG_fail;
8033 }
8034 {
8035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8036 }
8037 return resultobj;
8038fail:
8039 return NULL;
8040}
8041
8042
8043SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8044 PyObject *resultobj = 0;
8045 int result;
8046
8047 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8048 {
8049 PyThreadState* __tstate = wxPyBeginAllowThreads();
8050 result = (int)wxStaticLine::GetDefaultSize();
8051 wxPyEndAllowThreads(__tstate);
8052 if (PyErr_Occurred()) SWIG_fail;
8053 }
8054 resultobj = SWIG_From_int(static_cast< int >(result));
8055 return resultobj;
8056fail:
8057 return NULL;
8058}
8059
8060
8061SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8062 PyObject *resultobj = 0;
8063 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8064 SwigValueWrapper<wxVisualAttributes > result;
8065 int val1 ;
8066 int ecode1 = 0 ;
8067 PyObject * obj0 = 0 ;
8068 char * kwnames[] = {
8069 (char *) "variant", NULL
8070 };
8071
8072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8073 if (obj0) {
8074 ecode1 = SWIG_AsVal_int(obj0, &val1);
8075 if (!SWIG_IsOK(ecode1)) {
8076 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8077 }
8078 arg1 = static_cast< wxWindowVariant >(val1);
8079 }
8080 {
8081 if (!wxPyCheckForApp()) SWIG_fail;
8082 PyThreadState* __tstate = wxPyBeginAllowThreads();
8083 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8084 wxPyEndAllowThreads(__tstate);
8085 if (PyErr_Occurred()) SWIG_fail;
8086 }
8087 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8088 return resultobj;
8089fail:
8090 return NULL;
8091}
8092
8093
8094SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8095 PyObject *obj;
8096 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8097 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8098 return SWIG_Py_Void();
8099}
8100
8101SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8102 return SWIG_Python_InitShadowInstance(args);
8103}
8104
8105SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8106 PyObject *resultobj = 0;
8107 wxWindow *arg1 = (wxWindow *) 0 ;
8108 int arg2 = (int) -1 ;
8109 wxString const &arg3_defvalue = wxPyEmptyString ;
8110 wxString *arg3 = (wxString *) &arg3_defvalue ;
8111 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8112 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8113 wxSize const &arg5_defvalue = wxDefaultSize ;
8114 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8115 long arg6 = (long) 0 ;
8116 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8117 wxString *arg7 = (wxString *) &arg7_defvalue ;
8118 wxStaticText *result = 0 ;
8119 void *argp1 = 0 ;
8120 int res1 = 0 ;
8121 int val2 ;
8122 int ecode2 = 0 ;
8123 bool temp3 = false ;
8124 wxPoint temp4 ;
8125 wxSize temp5 ;
8126 long val6 ;
8127 int ecode6 = 0 ;
8128 bool temp7 = false ;
8129 PyObject * obj0 = 0 ;
8130 PyObject * obj1 = 0 ;
8131 PyObject * obj2 = 0 ;
8132 PyObject * obj3 = 0 ;
8133 PyObject * obj4 = 0 ;
8134 PyObject * obj5 = 0 ;
8135 PyObject * obj6 = 0 ;
8136 char * kwnames[] = {
8137 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8138 };
8139
8140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8142 if (!SWIG_IsOK(res1)) {
8143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8144 }
8145 arg1 = reinterpret_cast< wxWindow * >(argp1);
8146 if (obj1) {
8147 ecode2 = SWIG_AsVal_int(obj1, &val2);
8148 if (!SWIG_IsOK(ecode2)) {
8149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8150 }
8151 arg2 = static_cast< int >(val2);
8152 }
8153 if (obj2) {
d14a1e28 8154 {
0085ce49
RD
8155 arg3 = wxString_in_helper(obj2);
8156 if (arg3 == NULL) SWIG_fail;
8157 temp3 = true;
d14a1e28 8158 }
0085ce49
RD
8159 }
8160 if (obj3) {
4f89f6a3 8161 {
0085ce49
RD
8162 arg4 = &temp4;
8163 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 8164 }
0085ce49
RD
8165 }
8166 if (obj4) {
093d3ff1 8167 {
0085ce49
RD
8168 arg5 = &temp5;
8169 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 8170 }
0085ce49
RD
8171 }
8172 if (obj5) {
8173 ecode6 = SWIG_AsVal_long(obj5, &val6);
8174 if (!SWIG_IsOK(ecode6)) {
8175 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8176 }
8177 arg6 = static_cast< long >(val6);
8178 }
8179 if (obj6) {
d14a1e28 8180 {
0085ce49
RD
8181 arg7 = wxString_in_helper(obj6);
8182 if (arg7 == NULL) SWIG_fail;
8183 temp7 = true;
d14a1e28 8184 }
0085ce49
RD
8185 }
8186 {
8187 if (!wxPyCheckForApp()) SWIG_fail;
8188 PyThreadState* __tstate = wxPyBeginAllowThreads();
8189 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8190 wxPyEndAllowThreads(__tstate);
8191 if (PyErr_Occurred()) SWIG_fail;
8192 }
8193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8194 {
8195 if (temp3)
8196 delete arg3;
8197 }
8198 {
8199 if (temp7)
8200 delete arg7;
8201 }
8202 return resultobj;
8203fail:
8204 {
8205 if (temp3)
8206 delete arg3;
8207 }
8208 {
8209 if (temp7)
8210 delete arg7;
8211 }
8212 return NULL;
d14a1e28
RD
8213}
8214
8215
0085ce49
RD
8216SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8217 PyObject *resultobj = 0;
8218 wxStaticText *result = 0 ;
8219
8220 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8221 {
8222 if (!wxPyCheckForApp()) SWIG_fail;
8223 PyThreadState* __tstate = wxPyBeginAllowThreads();
8224 result = (wxStaticText *)new wxStaticText();
8225 wxPyEndAllowThreads(__tstate);
8226 if (PyErr_Occurred()) SWIG_fail;
8227 }
8228 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8229 return resultobj;
8230fail:
8231 return NULL;
8232}
8233
8234
8235SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8236 PyObject *resultobj = 0;
8237 wxStaticText *arg1 = (wxStaticText *) 0 ;
8238 wxWindow *arg2 = (wxWindow *) 0 ;
8239 int arg3 = (int) -1 ;
8240 wxString const &arg4_defvalue = wxPyEmptyString ;
8241 wxString *arg4 = (wxString *) &arg4_defvalue ;
8242 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8243 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8244 wxSize const &arg6_defvalue = wxDefaultSize ;
8245 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8246 long arg7 = (long) 0 ;
8247 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8248 wxString *arg8 = (wxString *) &arg8_defvalue ;
8249 bool result;
8250 void *argp1 = 0 ;
8251 int res1 = 0 ;
8252 void *argp2 = 0 ;
8253 int res2 = 0 ;
8254 int val3 ;
8255 int ecode3 = 0 ;
8256 bool temp4 = false ;
8257 wxPoint temp5 ;
8258 wxSize temp6 ;
8259 long val7 ;
8260 int ecode7 = 0 ;
8261 bool temp8 = false ;
8262 PyObject * obj0 = 0 ;
8263 PyObject * obj1 = 0 ;
8264 PyObject * obj2 = 0 ;
8265 PyObject * obj3 = 0 ;
8266 PyObject * obj4 = 0 ;
8267 PyObject * obj5 = 0 ;
8268 PyObject * obj6 = 0 ;
8269 PyObject * obj7 = 0 ;
8270 char * kwnames[] = {
8271 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8272 };
8273
8274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8276 if (!SWIG_IsOK(res1)) {
8277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8278 }
8279 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8280 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8281 if (!SWIG_IsOK(res2)) {
8282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8283 }
8284 arg2 = reinterpret_cast< wxWindow * >(argp2);
8285 if (obj2) {
8286 ecode3 = SWIG_AsVal_int(obj2, &val3);
8287 if (!SWIG_IsOK(ecode3)) {
8288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8289 }
8290 arg3 = static_cast< int >(val3);
8291 }
8292 if (obj3) {
d14a1e28 8293 {
0085ce49
RD
8294 arg4 = wxString_in_helper(obj3);
8295 if (arg4 == NULL) SWIG_fail;
8296 temp4 = true;
8297 }
8298 }
8299 if (obj4) {
8300 {
8301 arg5 = &temp5;
8302 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 8303 }
0085ce49
RD
8304 }
8305 if (obj5) {
093d3ff1 8306 {
0085ce49
RD
8307 arg6 = &temp6;
8308 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 8309 }
0085ce49
RD
8310 }
8311 if (obj6) {
8312 ecode7 = SWIG_AsVal_long(obj6, &val7);
8313 if (!SWIG_IsOK(ecode7)) {
8314 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8315 }
8316 arg7 = static_cast< long >(val7);
8317 }
8318 if (obj7) {
093d3ff1 8319 {
0085ce49
RD
8320 arg8 = wxString_in_helper(obj7);
8321 if (arg8 == NULL) SWIG_fail;
8322 temp8 = true;
8323 }
8324 }
8325 {
8326 PyThreadState* __tstate = wxPyBeginAllowThreads();
8327 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8328 wxPyEndAllowThreads(__tstate);
8329 if (PyErr_Occurred()) SWIG_fail;
8330 }
8331 {
8332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8333 }
8334 {
8335 if (temp4)
8336 delete arg4;
8337 }
8338 {
8339 if (temp8)
8340 delete arg8;
8341 }
8342 return resultobj;
8343fail:
8344 {
8345 if (temp4)
8346 delete arg4;
8347 }
8348 {
8349 if (temp8)
8350 delete arg8;
8351 }
8352 return NULL;
8353}
8354
8355
8356SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8357 PyObject *resultobj = 0;
8358 wxStaticText *arg1 = (wxStaticText *) 0 ;
8359 int arg2 ;
8360 void *argp1 = 0 ;
8361 int res1 = 0 ;
8362 int val2 ;
8363 int ecode2 = 0 ;
8364 PyObject * obj0 = 0 ;
8365 PyObject * obj1 = 0 ;
8366 char * kwnames[] = {
8367 (char *) "self",(char *) "width", NULL
8368 };
8369
8370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8372 if (!SWIG_IsOK(res1)) {
8373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8374 }
8375 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8376 ecode2 = SWIG_AsVal_int(obj1, &val2);
8377 if (!SWIG_IsOK(ecode2)) {
8378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8379 }
8380 arg2 = static_cast< int >(val2);
8381 {
8382 PyThreadState* __tstate = wxPyBeginAllowThreads();
8383 (arg1)->Wrap(arg2);
8384 wxPyEndAllowThreads(__tstate);
8385 if (PyErr_Occurred()) SWIG_fail;
8386 }
8387 resultobj = SWIG_Py_Void();
8388 return resultobj;
8389fail:
8390 return NULL;
8391}
8392
8393
8394SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8395 PyObject *resultobj = 0;
8396 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8397 SwigValueWrapper<wxVisualAttributes > result;
8398 int val1 ;
8399 int ecode1 = 0 ;
8400 PyObject * obj0 = 0 ;
8401 char * kwnames[] = {
8402 (char *) "variant", NULL
8403 };
8404
8405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8406 if (obj0) {
8407 ecode1 = SWIG_AsVal_int(obj0, &val1);
8408 if (!SWIG_IsOK(ecode1)) {
8409 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8410 }
8411 arg1 = static_cast< wxWindowVariant >(val1);
8412 }
8413 {
8414 if (!wxPyCheckForApp()) SWIG_fail;
8415 PyThreadState* __tstate = wxPyBeginAllowThreads();
8416 result = wxStaticText::GetClassDefaultAttributes(arg1);
8417 wxPyEndAllowThreads(__tstate);
8418 if (PyErr_Occurred()) SWIG_fail;
8419 }
8420 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8421 return resultobj;
8422fail:
8423 return NULL;
8424}
8425
8426
8427SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8428 PyObject *obj;
8429 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8430 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8431 return SWIG_Py_Void();
8432}
8433
8434SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8435 return SWIG_Python_InitShadowInstance(args);
8436}
8437
8438SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8439 PyObject *resultobj = 0;
8440 wxWindow *arg1 = (wxWindow *) 0 ;
8441 int arg2 = (int) -1 ;
8442 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8443 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8444 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8445 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8446 wxSize const &arg5_defvalue = wxDefaultSize ;
8447 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8448 long arg6 = (long) 0 ;
8449 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8450 wxString *arg7 = (wxString *) &arg7_defvalue ;
8451 wxStaticBitmap *result = 0 ;
8452 void *argp1 = 0 ;
8453 int res1 = 0 ;
8454 int val2 ;
8455 int ecode2 = 0 ;
8456 void *argp3 = 0 ;
8457 int res3 = 0 ;
8458 wxPoint temp4 ;
8459 wxSize temp5 ;
8460 long val6 ;
8461 int ecode6 = 0 ;
8462 bool temp7 = false ;
8463 PyObject * obj0 = 0 ;
8464 PyObject * obj1 = 0 ;
8465 PyObject * obj2 = 0 ;
8466 PyObject * obj3 = 0 ;
8467 PyObject * obj4 = 0 ;
8468 PyObject * obj5 = 0 ;
8469 PyObject * obj6 = 0 ;
8470 char * kwnames[] = {
8471 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8472 };
8473
8474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8476 if (!SWIG_IsOK(res1)) {
8477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8478 }
8479 arg1 = reinterpret_cast< wxWindow * >(argp1);
8480 if (obj1) {
8481 ecode2 = SWIG_AsVal_int(obj1, &val2);
8482 if (!SWIG_IsOK(ecode2)) {
8483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8484 }
8485 arg2 = static_cast< int >(val2);
8486 }
8487 if (obj2) {
8488 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8489 if (!SWIG_IsOK(res3)) {
8490 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8491 }
8492 if (!argp3) {
8493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 8494 }
0085ce49
RD
8495 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8496 }
8497 if (obj3) {
d14a1e28 8498 {
0085ce49
RD
8499 arg4 = &temp4;
8500 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8501 }
0085ce49
RD
8502 }
8503 if (obj4) {
d14a1e28 8504 {
0085ce49
RD
8505 arg5 = &temp5;
8506 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 8507 }
0085ce49
RD
8508 }
8509 if (obj5) {
8510 ecode6 = SWIG_AsVal_long(obj5, &val6);
8511 if (!SWIG_IsOK(ecode6)) {
8512 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8513 }
8514 arg6 = static_cast< long >(val6);
8515 }
8516 if (obj6) {
093d3ff1 8517 {
0085ce49
RD
8518 arg7 = wxString_in_helper(obj6);
8519 if (arg7 == NULL) SWIG_fail;
8520 temp7 = true;
093d3ff1 8521 }
0085ce49
RD
8522 }
8523 {
8524 if (!wxPyCheckForApp()) SWIG_fail;
8525 PyThreadState* __tstate = wxPyBeginAllowThreads();
8526 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8527 wxPyEndAllowThreads(__tstate);
8528 if (PyErr_Occurred()) SWIG_fail;
8529 }
8530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8531 {
8532 if (temp7)
8533 delete arg7;
8534 }
8535 return resultobj;
8536fail:
8537 {
8538 if (temp7)
8539 delete arg7;
8540 }
8541 return NULL;
d14a1e28
RD
8542}
8543
8544
0085ce49
RD
8545SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8546 PyObject *resultobj = 0;
8547 wxStaticBitmap *result = 0 ;
8548
8549 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8550 {
8551 if (!wxPyCheckForApp()) SWIG_fail;
8552 PyThreadState* __tstate = wxPyBeginAllowThreads();
8553 result = (wxStaticBitmap *)new wxStaticBitmap();
8554 wxPyEndAllowThreads(__tstate);
8555 if (PyErr_Occurred()) SWIG_fail;
8556 }
8557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8558 return resultobj;
8559fail:
8560 return NULL;
8561}
8562
8563
8564SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8565 PyObject *resultobj = 0;
8566 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8567 wxWindow *arg2 = (wxWindow *) 0 ;
8568 int arg3 = (int) -1 ;
8569 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8570 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8571 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8572 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8573 wxSize const &arg6_defvalue = wxDefaultSize ;
8574 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8575 long arg7 = (long) 0 ;
8576 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8577 wxString *arg8 = (wxString *) &arg8_defvalue ;
8578 bool result;
8579 void *argp1 = 0 ;
8580 int res1 = 0 ;
8581 void *argp2 = 0 ;
8582 int res2 = 0 ;
8583 int val3 ;
8584 int ecode3 = 0 ;
8585 void *argp4 = 0 ;
8586 int res4 = 0 ;
8587 wxPoint temp5 ;
8588 wxSize temp6 ;
8589 long val7 ;
8590 int ecode7 = 0 ;
8591 bool temp8 = false ;
8592 PyObject * obj0 = 0 ;
8593 PyObject * obj1 = 0 ;
8594 PyObject * obj2 = 0 ;
8595 PyObject * obj3 = 0 ;
8596 PyObject * obj4 = 0 ;
8597 PyObject * obj5 = 0 ;
8598 PyObject * obj6 = 0 ;
8599 PyObject * obj7 = 0 ;
8600 char * kwnames[] = {
8601 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8602 };
8603
8604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8606 if (!SWIG_IsOK(res1)) {
8607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8608 }
8609 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8610 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8611 if (!SWIG_IsOK(res2)) {
8612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8613 }
8614 arg2 = reinterpret_cast< wxWindow * >(argp2);
8615 if (obj2) {
8616 ecode3 = SWIG_AsVal_int(obj2, &val3);
8617 if (!SWIG_IsOK(ecode3)) {
8618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8619 }
8620 arg3 = static_cast< int >(val3);
8621 }
8622 if (obj3) {
8623 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8624 if (!SWIG_IsOK(res4)) {
8625 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8626 }
8627 if (!argp4) {
8628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22bfe96c 8629 }
0085ce49
RD
8630 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8631 }
8632 if (obj4) {
22bfe96c 8633 {
0085ce49
RD
8634 arg5 = &temp5;
8635 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 8636 }
0085ce49
RD
8637 }
8638 if (obj5) {
22bfe96c 8639 {
0085ce49
RD
8640 arg6 = &temp6;
8641 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
22bfe96c 8642 }
0085ce49
RD
8643 }
8644 if (obj6) {
8645 ecode7 = SWIG_AsVal_long(obj6, &val7);
8646 if (!SWIG_IsOK(ecode7)) {
8647 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8648 }
8649 arg7 = static_cast< long >(val7);
8650 }
8651 if (obj7) {
b2dc1044 8652 {
0085ce49
RD
8653 arg8 = wxString_in_helper(obj7);
8654 if (arg8 == NULL) SWIG_fail;
8655 temp8 = true;
b2dc1044 8656 }
0085ce49
RD
8657 }
8658 {
8659 PyThreadState* __tstate = wxPyBeginAllowThreads();
8660 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8661 wxPyEndAllowThreads(__tstate);
8662 if (PyErr_Occurred()) SWIG_fail;
8663 }
8664 {
8665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8666 }
8667 {
8668 if (temp8)
8669 delete arg8;
8670 }
8671 return resultobj;
8672fail:
8673 {
8674 if (temp8)
8675 delete arg8;
8676 }
8677 return NULL;
b2dc1044
RD
8678}
8679
8680
0085ce49
RD
8681SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8682 PyObject *resultobj = 0;
8683 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8684 wxBitmap result;
8685 void *argp1 = 0 ;
8686 int res1 = 0 ;
8687 PyObject *swig_obj[1] ;
8688
8689 if (!args) SWIG_fail;
8690 swig_obj[0] = args;
8691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8692 if (!SWIG_IsOK(res1)) {
8693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8694 }
8695 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8696 {
8697 PyThreadState* __tstate = wxPyBeginAllowThreads();
8698 result = (arg1)->GetBitmap();
8699 wxPyEndAllowThreads(__tstate);
8700 if (PyErr_Occurred()) SWIG_fail;
8701 }
8702 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8703 return resultobj;
8704fail:
8705 return NULL;
8706}
8707
8708
8709SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8710 PyObject *resultobj = 0;
8711 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8712 wxBitmap *arg2 = 0 ;
8713 void *argp1 = 0 ;
8714 int res1 = 0 ;
8715 void *argp2 = 0 ;
8716 int res2 = 0 ;
8717 PyObject * obj0 = 0 ;
8718 PyObject * obj1 = 0 ;
8719 char * kwnames[] = {
8720 (char *) "self",(char *) "bitmap", NULL
8721 };
8722
8723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8725 if (!SWIG_IsOK(res1)) {
8726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8727 }
8728 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8729 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8730 if (!SWIG_IsOK(res2)) {
8731 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8732 }
8733 if (!argp2) {
8734 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8735 }
8736 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8737 {
8738 PyThreadState* __tstate = wxPyBeginAllowThreads();
8739 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8740 wxPyEndAllowThreads(__tstate);
8741 if (PyErr_Occurred()) SWIG_fail;
8742 }
8743 resultobj = SWIG_Py_Void();
8744 return resultobj;
8745fail:
8746 return NULL;
8747}
8748
8749
8750SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8751 PyObject *resultobj = 0;
8752 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8753 wxIcon *arg2 = 0 ;
8754 void *argp1 = 0 ;
8755 int res1 = 0 ;
8756 void *argp2 = 0 ;
8757 int res2 = 0 ;
8758 PyObject * obj0 = 0 ;
8759 PyObject * obj1 = 0 ;
8760 char * kwnames[] = {
8761 (char *) "self",(char *) "icon", NULL
8762 };
8763
8764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8766 if (!SWIG_IsOK(res1)) {
8767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8768 }
8769 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8770 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8771 if (!SWIG_IsOK(res2)) {
8772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8773 }
8774 if (!argp2) {
8775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8776 }
8777 arg2 = reinterpret_cast< wxIcon * >(argp2);
8778 {
8779 PyThreadState* __tstate = wxPyBeginAllowThreads();
8780 (arg1)->SetIcon((wxIcon const &)*arg2);
8781 wxPyEndAllowThreads(__tstate);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 }
8784 resultobj = SWIG_Py_Void();
8785 return resultobj;
8786fail:
8787 return NULL;
8788}
8789
8790
8791SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8792 PyObject *resultobj = 0;
8793 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8794 SwigValueWrapper<wxVisualAttributes > result;
8795 int val1 ;
8796 int ecode1 = 0 ;
8797 PyObject * obj0 = 0 ;
8798 char * kwnames[] = {
8799 (char *) "variant", NULL
8800 };
8801
8802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8803 if (obj0) {
8804 ecode1 = SWIG_AsVal_int(obj0, &val1);
8805 if (!SWIG_IsOK(ecode1)) {
8806 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8807 }
8808 arg1 = static_cast< wxWindowVariant >(val1);
8809 }
8810 {
8811 if (!wxPyCheckForApp()) SWIG_fail;
8812 PyThreadState* __tstate = wxPyBeginAllowThreads();
8813 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8814 wxPyEndAllowThreads(__tstate);
8815 if (PyErr_Occurred()) SWIG_fail;
8816 }
8817 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8818 return resultobj;
8819fail:
8820 return NULL;
b2dc1044
RD
8821}
8822
8823
0085ce49
RD
8824SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8825 PyObject *obj;
8826 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8827 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8828 return SWIG_Py_Void();
b2dc1044
RD
8829}
8830
0085ce49
RD
8831SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8832 return SWIG_Python_InitShadowInstance(args);
8833}
b2dc1044 8834
0085ce49
RD
8835SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8836 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8837 return 1;
b2dc1044
RD
8838}
8839
8840
0085ce49
RD
8841SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8842 PyObject *pyobj = 0;
8843
8844 {
b2dc1044 8845#if wxUSE_UNICODE
0085ce49 8846 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8847#else
0085ce49 8848 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
b2dc1044 8849#endif
0085ce49
RD
8850 }
8851 return pyobj;
8852}
8853
8854
8855SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8856 PyObject *resultobj = 0;
8857 wxWindow *arg1 = (wxWindow *) 0 ;
8858 int arg2 = (int) -1 ;
8859 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8860 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8861 wxSize const &arg4_defvalue = wxDefaultSize ;
8862 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8863 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8864 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8865 long arg6 = (long) 0 ;
8866 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8867 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8868 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8869 wxString *arg8 = (wxString *) &arg8_defvalue ;
8870 wxListBox *result = 0 ;
8871 void *argp1 = 0 ;
8872 int res1 = 0 ;
8873 int val2 ;
8874 int ecode2 = 0 ;
8875 wxPoint temp3 ;
8876 wxSize temp4 ;
8877 bool temp5 = false ;
8878 long val6 ;
8879 int ecode6 = 0 ;
8880 void *argp7 = 0 ;
8881 int res7 = 0 ;
8882 bool temp8 = false ;
8883 PyObject * obj0 = 0 ;
8884 PyObject * obj1 = 0 ;
8885 PyObject * obj2 = 0 ;
8886 PyObject * obj3 = 0 ;
8887 PyObject * obj4 = 0 ;
8888 PyObject * obj5 = 0 ;
8889 PyObject * obj6 = 0 ;
8890 PyObject * obj7 = 0 ;
8891 char * kwnames[] = {
8892 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8893 };
8894
8895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8897 if (!SWIG_IsOK(res1)) {
8898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8899 }
8900 arg1 = reinterpret_cast< wxWindow * >(argp1);
8901 if (obj1) {
8902 ecode2 = SWIG_AsVal_int(obj1, &val2);
8903 if (!SWIG_IsOK(ecode2)) {
8904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8905 }
8906 arg2 = static_cast< int >(val2);
8907 }
8908 if (obj2) {
d14a1e28 8909 {
0085ce49
RD
8910 arg3 = &temp3;
8911 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 8912 }
0085ce49
RD
8913 }
8914 if (obj3) {
d14a1e28 8915 {
0085ce49
RD
8916 arg4 = &temp4;
8917 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 8918 }
0085ce49
RD
8919 }
8920 if (obj4) {
d14a1e28 8921 {
0085ce49
RD
8922 if (! PySequence_Check(obj4)) {
8923 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8924 SWIG_fail;
8925 }
8926 arg5 = new wxArrayString;
8927 temp5 = true;
8928 int i, len=PySequence_Length(obj4);
8929 for (i=0; i<len; i++) {
8930 PyObject* item = PySequence_GetItem(obj4, i);
8931 wxString* s = wxString_in_helper(item);
8932 if (PyErr_Occurred()) SWIG_fail;
8933 arg5->Add(*s);
8934 delete s;
8935 Py_DECREF(item);
8936 }
d14a1e28 8937 }
0085ce49
RD
8938 }
8939 if (obj5) {
8940 ecode6 = SWIG_AsVal_long(obj5, &val6);
8941 if (!SWIG_IsOK(ecode6)) {
8942 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8943 }
8944 arg6 = static_cast< long >(val6);
8945 }
8946 if (obj6) {
8947 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8948 if (!SWIG_IsOK(res7)) {
8949 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 8950 }
0085ce49
RD
8951 if (!argp7) {
8952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 8953 }
0085ce49
RD
8954 arg7 = reinterpret_cast< wxValidator * >(argp7);
8955 }
8956 if (obj7) {
d14a1e28 8957 {
0085ce49
RD
8958 arg8 = wxString_in_helper(obj7);
8959 if (arg8 == NULL) SWIG_fail;
8960 temp8 = true;
d14a1e28 8961 }
0085ce49
RD
8962 }
8963 {
8964 if (!wxPyCheckForApp()) SWIG_fail;
8965 PyThreadState* __tstate = wxPyBeginAllowThreads();
8966 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8967 wxPyEndAllowThreads(__tstate);
8968 if (PyErr_Occurred()) SWIG_fail;
8969 }
8970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8971 {
8972 if (temp5) delete arg5;
8973 }
8974 {
8975 if (temp8)
8976 delete arg8;
8977 }
8978 return resultobj;
8979fail:
8980 {
8981 if (temp5) delete arg5;
8982 }
8983 {
8984 if (temp8)
8985 delete arg8;
8986 }
8987 return NULL;
d14a1e28
RD
8988}
8989
8990
0085ce49
RD
8991SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8992 PyObject *resultobj = 0;
8993 wxListBox *result = 0 ;
8994
8995 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8996 {
8997 if (!wxPyCheckForApp()) SWIG_fail;
8998 PyThreadState* __tstate = wxPyBeginAllowThreads();
8999 result = (wxListBox *)new wxListBox();
9000 wxPyEndAllowThreads(__tstate);
9001 if (PyErr_Occurred()) SWIG_fail;
9002 }
9003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
9004 return resultobj;
9005fail:
9006 return NULL;
9007}
9008
9009
9010SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9011 PyObject *resultobj = 0;
9012 wxListBox *arg1 = (wxListBox *) 0 ;
9013 wxWindow *arg2 = (wxWindow *) 0 ;
9014 int arg3 = (int) -1 ;
9015 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9016 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9017 wxSize const &arg5_defvalue = wxDefaultSize ;
9018 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9019 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
9020 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
9021 long arg7 = (long) 0 ;
9022 wxValidator const &arg8_defvalue = wxDefaultValidator ;
9023 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
9024 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
9025 wxString *arg9 = (wxString *) &arg9_defvalue ;
9026 bool result;
9027 void *argp1 = 0 ;
9028 int res1 = 0 ;
9029 void *argp2 = 0 ;
9030 int res2 = 0 ;
9031 int val3 ;
9032 int ecode3 = 0 ;
9033 wxPoint temp4 ;
9034 wxSize temp5 ;
9035 bool temp6 = false ;
9036 long val7 ;
9037 int ecode7 = 0 ;
9038 void *argp8 = 0 ;
9039 int res8 = 0 ;
9040 bool temp9 = false ;
9041 PyObject * obj0 = 0 ;
9042 PyObject * obj1 = 0 ;
9043 PyObject * obj2 = 0 ;
9044 PyObject * obj3 = 0 ;
9045 PyObject * obj4 = 0 ;
9046 PyObject * obj5 = 0 ;
9047 PyObject * obj6 = 0 ;
9048 PyObject * obj7 = 0 ;
9049 PyObject * obj8 = 0 ;
9050 char * kwnames[] = {
9051 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9052 };
9053
9054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9056 if (!SWIG_IsOK(res1)) {
9057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9058 }
9059 arg1 = reinterpret_cast< wxListBox * >(argp1);
9060 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9061 if (!SWIG_IsOK(res2)) {
9062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9063 }
9064 arg2 = reinterpret_cast< wxWindow * >(argp2);
9065 if (obj2) {
9066 ecode3 = SWIG_AsVal_int(obj2, &val3);
9067 if (!SWIG_IsOK(ecode3)) {
9068 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9069 }
9070 arg3 = static_cast< int >(val3);
9071 }
9072 if (obj3) {
d14a1e28 9073 {
0085ce49
RD
9074 arg4 = &temp4;
9075 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 9076 }
0085ce49
RD
9077 }
9078 if (obj4) {
d14a1e28 9079 {
0085ce49
RD
9080 arg5 = &temp5;
9081 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 9082 }
0085ce49
RD
9083 }
9084 if (obj5) {
d14a1e28 9085 {
0085ce49
RD
9086 if (! PySequence_Check(obj5)) {
9087 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9088 SWIG_fail;
9089 }
9090 arg6 = new wxArrayString;
9091 temp6 = true;
9092 int i, len=PySequence_Length(obj5);
9093 for (i=0; i<len; i++) {
9094 PyObject* item = PySequence_GetItem(obj5, i);
9095 wxString* s = wxString_in_helper(item);
9096 if (PyErr_Occurred()) SWIG_fail;
9097 arg6->Add(*s);
9098 delete s;
9099 Py_DECREF(item);
9100 }
d14a1e28 9101 }
0085ce49
RD
9102 }
9103 if (obj6) {
9104 ecode7 = SWIG_AsVal_long(obj6, &val7);
9105 if (!SWIG_IsOK(ecode7)) {
9106 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9107 }
9108 arg7 = static_cast< long >(val7);
9109 }
9110 if (obj7) {
9111 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9112 if (!SWIG_IsOK(res8)) {
9113 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 9114 }
0085ce49
RD
9115 if (!argp8) {
9116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
22bfe96c 9117 }
0085ce49
RD
9118 arg8 = reinterpret_cast< wxValidator * >(argp8);
9119 }
9120 if (obj8) {
22bfe96c 9121 {
0085ce49
RD
9122 arg9 = wxString_in_helper(obj8);
9123 if (arg9 == NULL) SWIG_fail;
9124 temp9 = true;
22bfe96c 9125 }
0085ce49
RD
9126 }
9127 {
9128 PyThreadState* __tstate = wxPyBeginAllowThreads();
9129 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9130 wxPyEndAllowThreads(__tstate);
9131 if (PyErr_Occurred()) SWIG_fail;
9132 }
9133 {
9134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9135 }
9136 {
9137 if (temp6) delete arg6;
9138 }
9139 {
9140 if (temp9)
9141 delete arg9;
9142 }
9143 return resultobj;
9144fail:
9145 {
9146 if (temp6) delete arg6;
9147 }
9148 {
9149 if (temp9)
9150 delete arg9;
9151 }
9152 return NULL;
9153}
9154
9155
9156SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9157 PyObject *resultobj = 0;
9158 wxListBox *arg1 = (wxListBox *) 0 ;
9159 wxString *arg2 = 0 ;
9160 int arg3 ;
9161 PyObject *arg4 = (PyObject *) NULL ;
9162 void *argp1 = 0 ;
9163 int res1 = 0 ;
9164 bool temp2 = false ;
9165 int val3 ;
9166 int ecode3 = 0 ;
9167 PyObject * obj0 = 0 ;
9168 PyObject * obj1 = 0 ;
9169 PyObject * obj2 = 0 ;
9170 PyObject * obj3 = 0 ;
9171 char * kwnames[] = {
9172 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9173 };
9174
9175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9177 if (!SWIG_IsOK(res1)) {
9178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9179 }
9180 arg1 = reinterpret_cast< wxListBox * >(argp1);
9181 {
9182 arg2 = wxString_in_helper(obj1);
9183 if (arg2 == NULL) SWIG_fail;
9184 temp2 = true;
9185 }
9186 ecode3 = SWIG_AsVal_int(obj2, &val3);
9187 if (!SWIG_IsOK(ecode3)) {
9188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9189 }
9190 arg3 = static_cast< int >(val3);
9191 if (obj3) {
9192 arg4 = obj3;
9193 }
9194 {
9195 PyThreadState* __tstate = wxPyBeginAllowThreads();
9196 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9197 wxPyEndAllowThreads(__tstate);
9198 if (PyErr_Occurred()) SWIG_fail;
9199 }
9200 resultobj = SWIG_Py_Void();
9201 {
9202 if (temp2)
9203 delete arg2;
9204 }
9205 return resultobj;
9206fail:
9207 {
9208 if (temp2)
9209 delete arg2;
9210 }
9211 return NULL;
9212}
9213
9214
9215SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9216 PyObject *resultobj = 0;
9217 wxListBox *arg1 = (wxListBox *) 0 ;
9218 wxArrayString *arg2 = 0 ;
50f151d7 9219 unsigned int arg3 ;
0085ce49
RD
9220 void *argp1 = 0 ;
9221 int res1 = 0 ;
9222 bool temp2 = false ;
50f151d7 9223 unsigned int val3 ;
0085ce49
RD
9224 int ecode3 = 0 ;
9225 PyObject * obj0 = 0 ;
9226 PyObject * obj1 = 0 ;
9227 PyObject * obj2 = 0 ;
9228 char * kwnames[] = {
9229 (char *) "self",(char *) "items",(char *) "pos", NULL
9230 };
9231
9232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9234 if (!SWIG_IsOK(res1)) {
9235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9236 }
9237 arg1 = reinterpret_cast< wxListBox * >(argp1);
9238 {
9239 if (! PySequence_Check(obj1)) {
9240 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9241 SWIG_fail;
9242 }
9243 arg2 = new wxArrayString;
9244 temp2 = true;
9245 int i, len=PySequence_Length(obj1);
9246 for (i=0; i<len; i++) {
9247 PyObject* item = PySequence_GetItem(obj1, i);
9248 wxString* s = wxString_in_helper(item);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 arg2->Add(*s);
9251 delete s;
9252 Py_DECREF(item);
22bfe96c 9253 }
0085ce49 9254 }
50f151d7 9255 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
0085ce49 9256 if (!SWIG_IsOK(ecode3)) {
50f151d7 9257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
0085ce49 9258 }
50f151d7 9259 arg3 = static_cast< unsigned int >(val3);
0085ce49
RD
9260 {
9261 PyThreadState* __tstate = wxPyBeginAllowThreads();
9262 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9263 wxPyEndAllowThreads(__tstate);
9264 if (PyErr_Occurred()) SWIG_fail;
9265 }
9266 resultobj = SWIG_Py_Void();
9267 {
9268 if (temp2) delete arg2;
9269 }
9270 return resultobj;
9271fail:
9272 {
9273 if (temp2) delete arg2;
9274 }
9275 return NULL;
22bfe96c
RD
9276}
9277
9278
0085ce49
RD
9279SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9280 PyObject *resultobj = 0;
9281 wxListBox *arg1 = (wxListBox *) 0 ;
9282 wxArrayString *arg2 = 0 ;
9283 void *argp1 = 0 ;
9284 int res1 = 0 ;
9285 bool temp2 = false ;
9286 PyObject * obj0 = 0 ;
9287 PyObject * obj1 = 0 ;
9288 char * kwnames[] = {
9289 (char *) "self",(char *) "items", NULL
9290 };
9291
9292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9294 if (!SWIG_IsOK(res1)) {
9295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9296 }
9297 arg1 = reinterpret_cast< wxListBox * >(argp1);
9298 {
9299 if (! PySequence_Check(obj1)) {
9300 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9301 SWIG_fail;
9302 }
9303 arg2 = new wxArrayString;
9304 temp2 = true;
9305 int i, len=PySequence_Length(obj1);
9306 for (i=0; i<len; i++) {
9307 PyObject* item = PySequence_GetItem(obj1, i);
9308 wxString* s = wxString_in_helper(item);
9309 if (PyErr_Occurred()) SWIG_fail;
9310 arg2->Add(*s);
9311 delete s;
9312 Py_DECREF(item);
d14a1e28 9313 }
0085ce49
RD
9314 }
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 (arg1)->Set((wxArrayString const &)*arg2);
9318 wxPyEndAllowThreads(__tstate);
9319 if (PyErr_Occurred()) SWIG_fail;
9320 }
9321 resultobj = SWIG_Py_Void();
9322 {
9323 if (temp2) delete arg2;
9324 }
9325 return resultobj;
9326fail:
9327 {
9328 if (temp2) delete arg2;
9329 }
9330 return NULL;
9331}
9332
9333
9334SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9335 PyObject *resultobj = 0;
9336 wxListBox *arg1 = (wxListBox *) 0 ;
9337 int arg2 ;
9338 bool result;
9339 void *argp1 = 0 ;
9340 int res1 = 0 ;
9341 int val2 ;
9342 int ecode2 = 0 ;
9343 PyObject * obj0 = 0 ;
9344 PyObject * obj1 = 0 ;
9345 char * kwnames[] = {
9346 (char *) "self",(char *) "n", NULL
9347 };
9348
9349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9351 if (!SWIG_IsOK(res1)) {
9352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9353 }
9354 arg1 = reinterpret_cast< wxListBox * >(argp1);
9355 ecode2 = SWIG_AsVal_int(obj1, &val2);
9356 if (!SWIG_IsOK(ecode2)) {
9357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9358 }
9359 arg2 = static_cast< int >(val2);
9360 {
9361 PyThreadState* __tstate = wxPyBeginAllowThreads();
9362 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9363 wxPyEndAllowThreads(__tstate);
9364 if (PyErr_Occurred()) SWIG_fail;
9365 }
9366 {
9367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9368 }
9369 return resultobj;
9370fail:
9371 return NULL;
9372}
9373
9374
9375SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9376 PyObject *resultobj = 0;
9377 wxListBox *arg1 = (wxListBox *) 0 ;
9378 int arg2 ;
9379 bool arg3 = (bool) true ;
9380 void *argp1 = 0 ;
9381 int res1 = 0 ;
9382 int val2 ;
9383 int ecode2 = 0 ;
9384 bool val3 ;
9385 int ecode3 = 0 ;
9386 PyObject * obj0 = 0 ;
9387 PyObject * obj1 = 0 ;
9388 PyObject * obj2 = 0 ;
9389 char * kwnames[] = {
9390 (char *) "self",(char *) "n",(char *) "select", NULL
9391 };
9392
9393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9395 if (!SWIG_IsOK(res1)) {
9396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9397 }
9398 arg1 = reinterpret_cast< wxListBox * >(argp1);
9399 ecode2 = SWIG_AsVal_int(obj1, &val2);
9400 if (!SWIG_IsOK(ecode2)) {
9401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9402 }
9403 arg2 = static_cast< int >(val2);
9404 if (obj2) {
9405 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9406 if (!SWIG_IsOK(ecode3)) {
9407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9408 }
9409 arg3 = static_cast< bool >(val3);
9410 }
9411 {
9412 PyThreadState* __tstate = wxPyBeginAllowThreads();
9413 (arg1)->SetSelection(arg2,arg3);
9414 wxPyEndAllowThreads(__tstate);
9415 if (PyErr_Occurred()) SWIG_fail;
9416 }
9417 resultobj = SWIG_Py_Void();
9418 return resultobj;
9419fail:
9420 return NULL;
9421}
9422
9423
9424SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9425 PyObject *resultobj = 0;
9426 wxListBox *arg1 = (wxListBox *) 0 ;
9427 int arg2 ;
9428 void *argp1 = 0 ;
9429 int res1 = 0 ;
9430 int val2 ;
9431 int ecode2 = 0 ;
9432 PyObject * obj0 = 0 ;
9433 PyObject * obj1 = 0 ;
9434 char * kwnames[] = {
9435 (char *) "self",(char *) "n", NULL
9436 };
9437
9438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9440 if (!SWIG_IsOK(res1)) {
9441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9442 }
9443 arg1 = reinterpret_cast< wxListBox * >(argp1);
9444 ecode2 = SWIG_AsVal_int(obj1, &val2);
9445 if (!SWIG_IsOK(ecode2)) {
9446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9447 }
9448 arg2 = static_cast< int >(val2);
9449 {
9450 PyThreadState* __tstate = wxPyBeginAllowThreads();
9451 (arg1)->Select(arg2);
9452 wxPyEndAllowThreads(__tstate);
9453 if (PyErr_Occurred()) SWIG_fail;
9454 }
9455 resultobj = SWIG_Py_Void();
9456 return resultobj;
9457fail:
9458 return NULL;
9459}
9460
9461
9462SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9463 PyObject *resultobj = 0;
9464 wxListBox *arg1 = (wxListBox *) 0 ;
9465 int arg2 ;
9466 void *argp1 = 0 ;
9467 int res1 = 0 ;
9468 int val2 ;
9469 int ecode2 = 0 ;
9470 PyObject * obj0 = 0 ;
9471 PyObject * obj1 = 0 ;
9472 char * kwnames[] = {
9473 (char *) "self",(char *) "n", NULL
9474 };
9475
9476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9478 if (!SWIG_IsOK(res1)) {
9479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9480 }
9481 arg1 = reinterpret_cast< wxListBox * >(argp1);
9482 ecode2 = SWIG_AsVal_int(obj1, &val2);
9483 if (!SWIG_IsOK(ecode2)) {
9484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9485 }
9486 arg2 = static_cast< int >(val2);
9487 {
9488 PyThreadState* __tstate = wxPyBeginAllowThreads();
9489 (arg1)->Deselect(arg2);
9490 wxPyEndAllowThreads(__tstate);
9491 if (PyErr_Occurred()) SWIG_fail;
9492 }
9493 resultobj = SWIG_Py_Void();
9494 return resultobj;
9495fail:
9496 return NULL;
9497}
9498
9499
9500SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9501 PyObject *resultobj = 0;
9502 wxListBox *arg1 = (wxListBox *) 0 ;
9503 int arg2 = (int) -1 ;
9504 void *argp1 = 0 ;
9505 int res1 = 0 ;
9506 int val2 ;
9507 int ecode2 = 0 ;
9508 PyObject * obj0 = 0 ;
9509 PyObject * obj1 = 0 ;
9510 char * kwnames[] = {
9511 (char *) "self",(char *) "itemToLeaveSelected", NULL
9512 };
9513
9514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9516 if (!SWIG_IsOK(res1)) {
9517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9518 }
9519 arg1 = reinterpret_cast< wxListBox * >(argp1);
9520 if (obj1) {
9521 ecode2 = SWIG_AsVal_int(obj1, &val2);
9522 if (!SWIG_IsOK(ecode2)) {
9523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9524 }
9525 arg2 = static_cast< int >(val2);
9526 }
9527 {
9528 PyThreadState* __tstate = wxPyBeginAllowThreads();
9529 (arg1)->DeselectAll(arg2);
9530 wxPyEndAllowThreads(__tstate);
9531 if (PyErr_Occurred()) SWIG_fail;
9532 }
9533 resultobj = SWIG_Py_Void();
9534 return resultobj;
9535fail:
9536 return NULL;
9537}
9538
9539
9540SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9541 PyObject *resultobj = 0;
9542 wxListBox *arg1 = (wxListBox *) 0 ;
9543 wxString *arg2 = 0 ;
9544 bool arg3 = (bool) true ;
9545 bool result;
9546 void *argp1 = 0 ;
9547 int res1 = 0 ;
9548 bool temp2 = false ;
9549 bool val3 ;
9550 int ecode3 = 0 ;
9551 PyObject * obj0 = 0 ;
9552 PyObject * obj1 = 0 ;
9553 PyObject * obj2 = 0 ;
9554 char * kwnames[] = {
9555 (char *) "self",(char *) "s",(char *) "select", NULL
9556 };
9557
9558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9560 if (!SWIG_IsOK(res1)) {
9561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9562 }
9563 arg1 = reinterpret_cast< wxListBox * >(argp1);
9564 {
9565 arg2 = wxString_in_helper(obj1);
9566 if (arg2 == NULL) SWIG_fail;
9567 temp2 = true;
9568 }
9569 if (obj2) {
9570 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9571 if (!SWIG_IsOK(ecode3)) {
9572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9573 }
9574 arg3 = static_cast< bool >(val3);
9575 }
9576 {
9577 PyThreadState* __tstate = wxPyBeginAllowThreads();
9578 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9579 wxPyEndAllowThreads(__tstate);
9580 if (PyErr_Occurred()) SWIG_fail;
9581 }
9582 {
9583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9584 }
9585 {
9586 if (temp2)
9587 delete arg2;
9588 }
9589 return resultobj;
9590fail:
9591 {
9592 if (temp2)
9593 delete arg2;
9594 }
9595 return NULL;
d14a1e28
RD
9596}
9597
9598
0085ce49
RD
9599SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9600 PyObject *resultobj = 0;
9601 wxListBox *arg1 = (wxListBox *) 0 ;
9602 PyObject *result = 0 ;
9603 void *argp1 = 0 ;
9604 int res1 = 0 ;
9605 PyObject *swig_obj[1] ;
9606
9607 if (!args) SWIG_fail;
9608 swig_obj[0] = args;
9609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9610 if (!SWIG_IsOK(res1)) {
9611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9612 }
9613 arg1 = reinterpret_cast< wxListBox * >(argp1);
9614 {
9615 PyThreadState* __tstate = wxPyBeginAllowThreads();
9616 result = (PyObject *)wxListBox_GetSelections(arg1);
9617 wxPyEndAllowThreads(__tstate);
9618 if (PyErr_Occurred()) SWIG_fail;
9619 }
9620 resultobj = result;
9621 return resultobj;
9622fail:
9623 return NULL;
9624}
9625
9626
9627SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9628 PyObject *resultobj = 0;
9629 wxListBox *arg1 = (wxListBox *) 0 ;
9630 int arg2 ;
9631 void *argp1 = 0 ;
9632 int res1 = 0 ;
9633 int val2 ;
9634 int ecode2 = 0 ;
9635 PyObject * obj0 = 0 ;
9636 PyObject * obj1 = 0 ;
9637 char * kwnames[] = {
9638 (char *) "self",(char *) "n", NULL
9639 };
9640
9641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9643 if (!SWIG_IsOK(res1)) {
9644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9645 }
9646 arg1 = reinterpret_cast< wxListBox * >(argp1);
9647 ecode2 = SWIG_AsVal_int(obj1, &val2);
9648 if (!SWIG_IsOK(ecode2)) {
9649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9650 }
9651 arg2 = static_cast< int >(val2);
9652 {
9653 PyThreadState* __tstate = wxPyBeginAllowThreads();
9654 (arg1)->SetFirstItem(arg2);
9655 wxPyEndAllowThreads(__tstate);
9656 if (PyErr_Occurred()) SWIG_fail;
9657 }
9658 resultobj = SWIG_Py_Void();
9659 return resultobj;
9660fail:
9661 return NULL;
9662}
9663
9664
9665SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9666 PyObject *resultobj = 0;
9667 wxListBox *arg1 = (wxListBox *) 0 ;
9668 wxString *arg2 = 0 ;
9669 void *argp1 = 0 ;
9670 int res1 = 0 ;
9671 bool temp2 = false ;
9672 PyObject * obj0 = 0 ;
9673 PyObject * obj1 = 0 ;
9674 char * kwnames[] = {
9675 (char *) "self",(char *) "s", NULL
9676 };
9677
9678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9680 if (!SWIG_IsOK(res1)) {
9681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9682 }
9683 arg1 = reinterpret_cast< wxListBox * >(argp1);
9684 {
9685 arg2 = wxString_in_helper(obj1);
9686 if (arg2 == NULL) SWIG_fail;
9687 temp2 = true;
9688 }
9689 {
9690 PyThreadState* __tstate = wxPyBeginAllowThreads();
9691 (arg1)->SetFirstItem((wxString const &)*arg2);
9692 wxPyEndAllowThreads(__tstate);
9693 if (PyErr_Occurred()) SWIG_fail;
9694 }
9695 resultobj = SWIG_Py_Void();
9696 {
9697 if (temp2)
9698 delete arg2;
9699 }
9700 return resultobj;
9701fail:
9702 {
9703 if (temp2)
9704 delete arg2;
9705 }
9706 return NULL;
9707}
9708
9709
9710SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9711 PyObject *resultobj = 0;
9712 wxListBox *arg1 = (wxListBox *) 0 ;
9713 int arg2 ;
9714 void *argp1 = 0 ;
9715 int res1 = 0 ;
9716 int val2 ;
9717 int ecode2 = 0 ;
9718 PyObject * obj0 = 0 ;
9719 PyObject * obj1 = 0 ;
9720 char * kwnames[] = {
9721 (char *) "self",(char *) "n", NULL
9722 };
9723
9724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9726 if (!SWIG_IsOK(res1)) {
9727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9728 }
9729 arg1 = reinterpret_cast< wxListBox * >(argp1);
9730 ecode2 = SWIG_AsVal_int(obj1, &val2);
9731 if (!SWIG_IsOK(ecode2)) {
9732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9733 }
9734 arg2 = static_cast< int >(val2);
9735 {
9736 PyThreadState* __tstate = wxPyBeginAllowThreads();
9737 (arg1)->EnsureVisible(arg2);
9738 wxPyEndAllowThreads(__tstate);
9739 if (PyErr_Occurred()) SWIG_fail;
9740 }
9741 resultobj = SWIG_Py_Void();
9742 return resultobj;
9743fail:
9744 return NULL;
9745}
9746
9747
9748SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9749 PyObject *resultobj = 0;
9750 wxListBox *arg1 = (wxListBox *) 0 ;
9751 wxString *arg2 = 0 ;
9752 void *argp1 = 0 ;
9753 int res1 = 0 ;
9754 bool temp2 = false ;
9755 PyObject * obj0 = 0 ;
9756 PyObject * obj1 = 0 ;
9757 char * kwnames[] = {
9758 (char *) "self",(char *) "s", NULL
9759 };
9760
9761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9763 if (!SWIG_IsOK(res1)) {
9764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9765 }
9766 arg1 = reinterpret_cast< wxListBox * >(argp1);
9767 {
9768 arg2 = wxString_in_helper(obj1);
9769 if (arg2 == NULL) SWIG_fail;
9770 temp2 = true;
9771 }
9772 {
9773 PyThreadState* __tstate = wxPyBeginAllowThreads();
9774 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9775 wxPyEndAllowThreads(__tstate);
9776 if (PyErr_Occurred()) SWIG_fail;
9777 }
9778 resultobj = SWIG_Py_Void();
9779 {
9780 if (temp2)
9781 delete arg2;
9782 }
9783 return resultobj;
9784fail:
9785 {
9786 if (temp2)
9787 delete arg2;
9788 }
9789 return NULL;
d14a1e28
RD
9790}
9791
9792
0085ce49
RD
9793SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9794 PyObject *resultobj = 0;
9795 wxListBox *arg1 = (wxListBox *) 0 ;
9796 bool result;
9797 void *argp1 = 0 ;
9798 int res1 = 0 ;
9799 PyObject *swig_obj[1] ;
9800
9801 if (!args) SWIG_fail;
9802 swig_obj[0] = args;
9803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9804 if (!SWIG_IsOK(res1)) {
9805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9806 }
9807 arg1 = reinterpret_cast< wxListBox * >(argp1);
9808 {
9809 PyThreadState* __tstate = wxPyBeginAllowThreads();
9810 result = (bool)((wxListBox const *)arg1)->IsSorted();
9811 wxPyEndAllowThreads(__tstate);
9812 if (PyErr_Occurred()) SWIG_fail;
9813 }
9814 {
9815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9816 }
9817 return resultobj;
9818fail:
9819 return NULL;
9820}
9821
9822
9823SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9824 PyObject *resultobj = 0;
9825 wxListBox *arg1 = (wxListBox *) 0 ;
9826 wxPoint *arg2 = 0 ;
9827 int result;
9828 void *argp1 = 0 ;
9829 int res1 = 0 ;
9830 wxPoint temp2 ;
9831 PyObject * obj0 = 0 ;
9832 PyObject * obj1 = 0 ;
9833 char * kwnames[] = {
9834 (char *) "self",(char *) "pt", NULL
9835 };
9836
9837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9839 if (!SWIG_IsOK(res1)) {
9840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9841 }
9842 arg1 = reinterpret_cast< wxListBox * >(argp1);
9843 {
9844 arg2 = &temp2;
9845 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9846 }
9847 {
9848 PyThreadState* __tstate = wxPyBeginAllowThreads();
9849 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 resultobj = SWIG_From_int(static_cast< int >(result));
9854 return resultobj;
9855fail:
9856 return NULL;
9857}
9858
9859
9860SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj = 0;
9862 wxListBox *arg1 = (wxListBox *) 0 ;
9863 int arg2 ;
9864 wxColour *arg3 = 0 ;
9865 void *argp1 = 0 ;
9866 int res1 = 0 ;
9867 int val2 ;
9868 int ecode2 = 0 ;
9869 wxColour temp3 ;
9870 PyObject * obj0 = 0 ;
9871 PyObject * obj1 = 0 ;
9872 PyObject * obj2 = 0 ;
9873 char * kwnames[] = {
9874 (char *) "self",(char *) "item",(char *) "c", NULL
9875 };
9876
9877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9879 if (!SWIG_IsOK(res1)) {
9880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9881 }
9882 arg1 = reinterpret_cast< wxListBox * >(argp1);
9883 ecode2 = SWIG_AsVal_int(obj1, &val2);
9884 if (!SWIG_IsOK(ecode2)) {
9885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9886 }
9887 arg2 = static_cast< int >(val2);
9888 {
9889 arg3 = &temp3;
9890 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9891 }
9892 {
9893 PyThreadState* __tstate = wxPyBeginAllowThreads();
9894 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9895 wxPyEndAllowThreads(__tstate);
9896 if (PyErr_Occurred()) SWIG_fail;
9897 }
9898 resultobj = SWIG_Py_Void();
9899 return resultobj;
9900fail:
9901 return NULL;
9902}
9903
9904
9905SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9906 PyObject *resultobj = 0;
9907 wxListBox *arg1 = (wxListBox *) 0 ;
9908 int arg2 ;
9909 wxColour *arg3 = 0 ;
9910 void *argp1 = 0 ;
9911 int res1 = 0 ;
9912 int val2 ;
9913 int ecode2 = 0 ;
9914 wxColour temp3 ;
9915 PyObject * obj0 = 0 ;
9916 PyObject * obj1 = 0 ;
9917 PyObject * obj2 = 0 ;
9918 char * kwnames[] = {
9919 (char *) "self",(char *) "item",(char *) "c", NULL
9920 };
9921
9922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9924 if (!SWIG_IsOK(res1)) {
9925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9926 }
9927 arg1 = reinterpret_cast< wxListBox * >(argp1);
9928 ecode2 = SWIG_AsVal_int(obj1, &val2);
9929 if (!SWIG_IsOK(ecode2)) {
9930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9931 }
9932 arg2 = static_cast< int >(val2);
9933 {
9934 arg3 = &temp3;
9935 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9936 }
9937 {
9938 PyThreadState* __tstate = wxPyBeginAllowThreads();
9939 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9940 wxPyEndAllowThreads(__tstate);
9941 if (PyErr_Occurred()) SWIG_fail;
9942 }
9943 resultobj = SWIG_Py_Void();
9944 return resultobj;
9945fail:
9946 return NULL;
9947}
9948
9949
9950SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9951 PyObject *resultobj = 0;
9952 wxListBox *arg1 = (wxListBox *) 0 ;
9953 int arg2 ;
9954 wxFont *arg3 = 0 ;
9955 void *argp1 = 0 ;
9956 int res1 = 0 ;
9957 int val2 ;
9958 int ecode2 = 0 ;
9959 void *argp3 = 0 ;
9960 int res3 = 0 ;
9961 PyObject * obj0 = 0 ;
9962 PyObject * obj1 = 0 ;
9963 PyObject * obj2 = 0 ;
9964 char * kwnames[] = {
9965 (char *) "self",(char *) "item",(char *) "f", NULL
9966 };
9967
9968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9970 if (!SWIG_IsOK(res1)) {
9971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9972 }
9973 arg1 = reinterpret_cast< wxListBox * >(argp1);
9974 ecode2 = SWIG_AsVal_int(obj1, &val2);
9975 if (!SWIG_IsOK(ecode2)) {
9976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9977 }
9978 arg2 = static_cast< int >(val2);
9979 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9980 if (!SWIG_IsOK(res3)) {
9981 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9982 }
9983 if (!argp3) {
9984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9985 }
9986 arg3 = reinterpret_cast< wxFont * >(argp3);
9987 {
9988 PyThreadState* __tstate = wxPyBeginAllowThreads();
9989 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9990 wxPyEndAllowThreads(__tstate);
9991 if (PyErr_Occurred()) SWIG_fail;
9992 }
9993 resultobj = SWIG_Py_Void();
9994 return resultobj;
9995fail:
9996 return NULL;
9997}
9998
9999
10000SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10001 PyObject *resultobj = 0;
10002 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
10003 SwigValueWrapper<wxVisualAttributes > result;
10004 int val1 ;
10005 int ecode1 = 0 ;
10006 PyObject * obj0 = 0 ;
10007 char * kwnames[] = {
10008 (char *) "variant", NULL
10009 };
10010
10011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
10012 if (obj0) {
10013 ecode1 = SWIG_AsVal_int(obj0, &val1);
10014 if (!SWIG_IsOK(ecode1)) {
10015 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
10016 }
10017 arg1 = static_cast< wxWindowVariant >(val1);
10018 }
10019 {
10020 if (!wxPyCheckForApp()) SWIG_fail;
10021 PyThreadState* __tstate = wxPyBeginAllowThreads();
10022 result = wxListBox::GetClassDefaultAttributes(arg1);
10023 wxPyEndAllowThreads(__tstate);
10024 if (PyErr_Occurred()) SWIG_fail;
10025 }
10026 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
10027 return resultobj;
10028fail:
10029 return NULL;
10030}
10031
10032
10033SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10034 PyObject *obj;
10035 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10036 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
10037 return SWIG_Py_Void();
10038}
10039
10040SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10041 return SWIG_Python_InitShadowInstance(args);
10042}
10043
10044SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10045 PyObject *resultobj = 0;
10046 wxWindow *arg1 = (wxWindow *) 0 ;
10047 int arg2 = (int) -1 ;
10048 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10049 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10050 wxSize const &arg4_defvalue = wxDefaultSize ;
10051 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10052 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10053 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10054 long arg6 = (long) 0 ;
10055 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10056 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10057 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10058 wxString *arg8 = (wxString *) &arg8_defvalue ;
10059 wxCheckListBox *result = 0 ;
10060 void *argp1 = 0 ;
10061 int res1 = 0 ;
10062 int val2 ;
10063 int ecode2 = 0 ;
10064 wxPoint temp3 ;
10065 wxSize temp4 ;
10066 bool temp5 = false ;
10067 long val6 ;
10068 int ecode6 = 0 ;
10069 void *argp7 = 0 ;
10070 int res7 = 0 ;
10071 bool temp8 = false ;
10072 PyObject * obj0 = 0 ;
10073 PyObject * obj1 = 0 ;
10074 PyObject * obj2 = 0 ;
10075 PyObject * obj3 = 0 ;
10076 PyObject * obj4 = 0 ;
10077 PyObject * obj5 = 0 ;
10078 PyObject * obj6 = 0 ;
10079 PyObject * obj7 = 0 ;
10080 char * kwnames[] = {
10081 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10082 };
10083
10084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10086 if (!SWIG_IsOK(res1)) {
10087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10088 }
10089 arg1 = reinterpret_cast< wxWindow * >(argp1);
10090 if (obj1) {
10091 ecode2 = SWIG_AsVal_int(obj1, &val2);
10092 if (!SWIG_IsOK(ecode2)) {
10093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10094 }
10095 arg2 = static_cast< int >(val2);
10096 }
10097 if (obj2) {
d14a1e28 10098 {
0085ce49
RD
10099 arg3 = &temp3;
10100 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 10101 }
0085ce49
RD
10102 }
10103 if (obj3) {
d14a1e28 10104 {
0085ce49
RD
10105 arg4 = &temp4;
10106 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10107 }
0085ce49
RD
10108 }
10109 if (obj4) {
d14a1e28 10110 {
0085ce49
RD
10111 if (! PySequence_Check(obj4)) {
10112 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10113 SWIG_fail;
10114 }
10115 arg5 = new wxArrayString;
10116 temp5 = true;
10117 int i, len=PySequence_Length(obj4);
10118 for (i=0; i<len; i++) {
10119 PyObject* item = PySequence_GetItem(obj4, i);
10120 wxString* s = wxString_in_helper(item);
10121 if (PyErr_Occurred()) SWIG_fail;
10122 arg5->Add(*s);
10123 delete s;
10124 Py_DECREF(item);
10125 }
d14a1e28 10126 }
0085ce49
RD
10127 }
10128 if (obj5) {
10129 ecode6 = SWIG_AsVal_long(obj5, &val6);
10130 if (!SWIG_IsOK(ecode6)) {
10131 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10132 }
10133 arg6 = static_cast< long >(val6);
10134 }
10135 if (obj6) {
10136 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10137 if (!SWIG_IsOK(res7)) {
10138 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 10139 }
0085ce49
RD
10140 if (!argp7) {
10141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 10142 }
0085ce49
RD
10143 arg7 = reinterpret_cast< wxValidator * >(argp7);
10144 }
10145 if (obj7) {
093d3ff1 10146 {
0085ce49
RD
10147 arg8 = wxString_in_helper(obj7);
10148 if (arg8 == NULL) SWIG_fail;
10149 temp8 = true;
093d3ff1 10150 }
0085ce49
RD
10151 }
10152 {
10153 if (!wxPyCheckForApp()) SWIG_fail;
10154 PyThreadState* __tstate = wxPyBeginAllowThreads();
10155 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10156 wxPyEndAllowThreads(__tstate);
10157 if (PyErr_Occurred()) SWIG_fail;
10158 }
10159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10160 {
10161 if (temp5) delete arg5;
10162 }
10163 {
10164 if (temp8)
10165 delete arg8;
10166 }
10167 return resultobj;
10168fail:
10169 {
10170 if (temp5) delete arg5;
10171 }
10172 {
10173 if (temp8)
10174 delete arg8;
10175 }
10176 return NULL;
d14a1e28
RD
10177}
10178
10179
0085ce49
RD
10180SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10181 PyObject *resultobj = 0;
10182 wxCheckListBox *result = 0 ;
10183
10184 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10185 {
10186 if (!wxPyCheckForApp()) SWIG_fail;
10187 PyThreadState* __tstate = wxPyBeginAllowThreads();
10188 result = (wxCheckListBox *)new wxCheckListBox();
10189 wxPyEndAllowThreads(__tstate);
10190 if (PyErr_Occurred()) SWIG_fail;
10191 }
10192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10193 return resultobj;
10194fail:
10195 return NULL;
10196}
10197
10198
10199SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10200 PyObject *resultobj = 0;
10201 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10202 wxWindow *arg2 = (wxWindow *) 0 ;
10203 int arg3 = (int) -1 ;
10204 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10205 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10206 wxSize const &arg5_defvalue = wxDefaultSize ;
10207 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10208 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10209 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10210 long arg7 = (long) 0 ;
10211 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10212 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10213 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10214 wxString *arg9 = (wxString *) &arg9_defvalue ;
10215 bool result;
10216 void *argp1 = 0 ;
10217 int res1 = 0 ;
10218 void *argp2 = 0 ;
10219 int res2 = 0 ;
10220 int val3 ;
10221 int ecode3 = 0 ;
10222 wxPoint temp4 ;
10223 wxSize temp5 ;
10224 bool temp6 = false ;
10225 long val7 ;
10226 int ecode7 = 0 ;
10227 void *argp8 = 0 ;
10228 int res8 = 0 ;
10229 bool temp9 = false ;
10230 PyObject * obj0 = 0 ;
10231 PyObject * obj1 = 0 ;
10232 PyObject * obj2 = 0 ;
10233 PyObject * obj3 = 0 ;
10234 PyObject * obj4 = 0 ;
10235 PyObject * obj5 = 0 ;
10236 PyObject * obj6 = 0 ;
10237 PyObject * obj7 = 0 ;
10238 PyObject * obj8 = 0 ;
10239 char * kwnames[] = {
10240 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10241 };
10242
10243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10245 if (!SWIG_IsOK(res1)) {
10246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10247 }
10248 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10249 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10250 if (!SWIG_IsOK(res2)) {
10251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10252 }
10253 arg2 = reinterpret_cast< wxWindow * >(argp2);
10254 if (obj2) {
10255 ecode3 = SWIG_AsVal_int(obj2, &val3);
10256 if (!SWIG_IsOK(ecode3)) {
10257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10258 }
10259 arg3 = static_cast< int >(val3);
10260 }
10261 if (obj3) {
22bfe96c 10262 {
0085ce49
RD
10263 arg4 = &temp4;
10264 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 10265 }
0085ce49
RD
10266 }
10267 if (obj4) {
d14a1e28 10268 {
0085ce49
RD
10269 arg5 = &temp5;
10270 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 10271 }
0085ce49
RD
10272 }
10273 if (obj5) {
d14a1e28 10274 {
0085ce49
RD
10275 if (! PySequence_Check(obj5)) {
10276 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10277 SWIG_fail;
10278 }
10279 arg6 = new wxArrayString;
10280 temp6 = true;
10281 int i, len=PySequence_Length(obj5);
10282 for (i=0; i<len; i++) {
10283 PyObject* item = PySequence_GetItem(obj5, i);
10284 wxString* s = wxString_in_helper(item);
10285 if (PyErr_Occurred()) SWIG_fail;
10286 arg6->Add(*s);
10287 delete s;
10288 Py_DECREF(item);
10289 }
d14a1e28 10290 }
0085ce49
RD
10291 }
10292 if (obj6) {
10293 ecode7 = SWIG_AsVal_long(obj6, &val7);
10294 if (!SWIG_IsOK(ecode7)) {
10295 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10296 }
10297 arg7 = static_cast< long >(val7);
10298 }
10299 if (obj7) {
10300 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10301 if (!SWIG_IsOK(res8)) {
10302 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 10303 }
0085ce49
RD
10304 if (!argp8) {
10305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 10306 }
0085ce49
RD
10307 arg8 = reinterpret_cast< wxValidator * >(argp8);
10308 }
10309 if (obj8) {
d14a1e28 10310 {
0085ce49
RD
10311 arg9 = wxString_in_helper(obj8);
10312 if (arg9 == NULL) SWIG_fail;
10313 temp9 = true;
d14a1e28 10314 }
0085ce49
RD
10315 }
10316 {
10317 PyThreadState* __tstate = wxPyBeginAllowThreads();
10318 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10319 wxPyEndAllowThreads(__tstate);
10320 if (PyErr_Occurred()) SWIG_fail;
10321 }
10322 {
10323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10324 }
10325 {
10326 if (temp6) delete arg6;
10327 }
10328 {
10329 if (temp9)
10330 delete arg9;
10331 }
10332 return resultobj;
10333fail:
10334 {
10335 if (temp6) delete arg6;
10336 }
10337 {
10338 if (temp9)
10339 delete arg9;
10340 }
10341 return NULL;
10342}
10343
10344
10345SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10346 PyObject *resultobj = 0;
10347 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10348 unsigned int arg2 ;
0085ce49
RD
10349 bool result;
10350 void *argp1 = 0 ;
10351 int res1 = 0 ;
50f151d7 10352 unsigned int val2 ;
0085ce49
RD
10353 int ecode2 = 0 ;
10354 PyObject * obj0 = 0 ;
10355 PyObject * obj1 = 0 ;
10356 char * kwnames[] = {
10357 (char *) "self",(char *) "index", NULL
10358 };
10359
10360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10362 if (!SWIG_IsOK(res1)) {
10363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10364 }
10365 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10366 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 10367 if (!SWIG_IsOK(ecode2)) {
50f151d7 10368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10369 }
50f151d7 10370 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
10371 {
10372 PyThreadState* __tstate = wxPyBeginAllowThreads();
10373 result = (bool)(arg1)->IsChecked(arg2);
10374 wxPyEndAllowThreads(__tstate);
10375 if (PyErr_Occurred()) SWIG_fail;
10376 }
10377 {
10378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10379 }
10380 return resultobj;
10381fail:
10382 return NULL;
10383}
10384
10385
10386SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10387 PyObject *resultobj = 0;
10388 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10389 unsigned int arg2 ;
0085ce49
RD
10390 int arg3 = (int) true ;
10391 void *argp1 = 0 ;
10392 int res1 = 0 ;
50f151d7 10393 unsigned int val2 ;
0085ce49
RD
10394 int ecode2 = 0 ;
10395 int val3 ;
10396 int ecode3 = 0 ;
10397 PyObject * obj0 = 0 ;
10398 PyObject * obj1 = 0 ;
10399 PyObject * obj2 = 0 ;
10400 char * kwnames[] = {
10401 (char *) "self",(char *) "index",(char *) "check", NULL
10402 };
10403
10404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10406 if (!SWIG_IsOK(res1)) {
10407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10408 }
10409 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10410 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 10411 if (!SWIG_IsOK(ecode2)) {
50f151d7 10412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 10413 }
50f151d7 10414 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
10415 if (obj2) {
10416 ecode3 = SWIG_AsVal_int(obj2, &val3);
10417 if (!SWIG_IsOK(ecode3)) {
10418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10419 }
10420 arg3 = static_cast< int >(val3);
10421 }
10422 {
10423 PyThreadState* __tstate = wxPyBeginAllowThreads();
10424 (arg1)->Check(arg2,arg3);
10425 wxPyEndAllowThreads(__tstate);
10426 if (PyErr_Occurred()) SWIG_fail;
10427 }
10428 resultobj = SWIG_Py_Void();
10429 return resultobj;
10430fail:
10431 return NULL;
d14a1e28
RD
10432}
10433
10434
0085ce49
RD
10435SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10436 PyObject *resultobj = 0;
10437 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10438 int result;
10439 void *argp1 = 0 ;
10440 int res1 = 0 ;
10441 PyObject *swig_obj[1] ;
10442
10443 if (!args) SWIG_fail;
10444 swig_obj[0] = args;
10445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10446 if (!SWIG_IsOK(res1)) {
10447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10448 }
10449 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10450 {
10451 PyThreadState* __tstate = wxPyBeginAllowThreads();
10452 result = (int)(arg1)->GetItemHeight();
10453 wxPyEndAllowThreads(__tstate);
10454 if (PyErr_Occurred()) SWIG_fail;
10455 }
10456 resultobj = SWIG_From_int(static_cast< int >(result));
10457 return resultobj;
10458fail:
10459 return NULL;
d14a1e28
RD
10460}
10461
10462
0085ce49
RD
10463SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10464 PyObject *obj;
10465 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10466 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10467 return SWIG_Py_Void();
d14a1e28
RD
10468}
10469
0085ce49
RD
10470SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10471 return SWIG_Python_InitShadowInstance(args);
943e8dfd
RD
10472}
10473
0085ce49
RD
10474SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10475 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10476 return 1;
22bfe96c
RD
10477}
10478
10479
0085ce49
RD
10480SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10481 PyObject *pyobj = 0;
10482
10483 {
10484#if wxUSE_UNICODE
10485 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10486#else
10487 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10488#endif
10489 }
10490 return pyobj;
10491}
10492
10493
10494SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10495 PyObject *resultobj = 0;
10496 wxColour const &arg1_defvalue = wxNullColour ;
10497 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10498 wxColour const &arg2_defvalue = wxNullColour ;
10499 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10500 wxFont const &arg3_defvalue = wxNullFont ;
10501 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10502 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10503 wxTextAttr *result = 0 ;
10504 wxColour temp1 ;
10505 wxColour temp2 ;
10506 void *argp3 = 0 ;
10507 int res3 = 0 ;
10508 int val4 ;
10509 int ecode4 = 0 ;
10510 PyObject * obj0 = 0 ;
10511 PyObject * obj1 = 0 ;
10512 PyObject * obj2 = 0 ;
10513 PyObject * obj3 = 0 ;
10514 char * kwnames[] = {
10515 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10516 };
10517
10518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10519 if (obj0) {
d14a1e28 10520 {
0085ce49
RD
10521 arg1 = &temp1;
10522 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 10523 }
0085ce49
RD
10524 }
10525 if (obj1) {
d14a1e28 10526 {
0085ce49
RD
10527 arg2 = &temp2;
10528 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 10529 }
0085ce49
RD
10530 }
10531 if (obj2) {
10532 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10533 if (!SWIG_IsOK(res3)) {
10534 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 10535 }
0085ce49
RD
10536 if (!argp3) {
10537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10538 }
10539 arg3 = reinterpret_cast< wxFont * >(argp3);
10540 }
10541 if (obj3) {
10542 ecode4 = SWIG_AsVal_int(obj3, &val4);
10543 if (!SWIG_IsOK(ecode4)) {
10544 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10545 }
10546 arg4 = static_cast< wxTextAttrAlignment >(val4);
10547 }
10548 {
10549 PyThreadState* __tstate = wxPyBeginAllowThreads();
10550 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10551 wxPyEndAllowThreads(__tstate);
10552 if (PyErr_Occurred()) SWIG_fail;
10553 }
10554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10555 return resultobj;
10556fail:
10557 return NULL;
d14a1e28
RD
10558}
10559
10560
0085ce49
RD
10561SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10562 PyObject *resultobj = 0;
10563 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10564 void *argp1 = 0 ;
10565 int res1 = 0 ;
10566 PyObject *swig_obj[1] ;
10567
10568 if (!args) SWIG_fail;
10569 swig_obj[0] = args;
10570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10571 if (!SWIG_IsOK(res1)) {
10572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10573 }
10574 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10575 {
10576 PyThreadState* __tstate = wxPyBeginAllowThreads();
10577 delete arg1;
d14a1e28 10578
0085ce49
RD
10579 wxPyEndAllowThreads(__tstate);
10580 if (PyErr_Occurred()) SWIG_fail;
10581 }
10582 resultobj = SWIG_Py_Void();
10583 return resultobj;
10584fail:
10585 return NULL;
d14a1e28
RD
10586}
10587
10588
0085ce49
RD
10589SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10590 PyObject *resultobj = 0;
10591 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10592 void *argp1 = 0 ;
10593 int res1 = 0 ;
10594 PyObject *swig_obj[1] ;
10595
10596 if (!args) SWIG_fail;
10597 swig_obj[0] = args;
10598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10599 if (!SWIG_IsOK(res1)) {
10600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10601 }
10602 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10603 {
10604 PyThreadState* __tstate = wxPyBeginAllowThreads();
10605 (arg1)->Init();
10606 wxPyEndAllowThreads(__tstate);
10607 if (PyErr_Occurred()) SWIG_fail;
10608 }
10609 resultobj = SWIG_Py_Void();
10610 return resultobj;
10611fail:
10612 return NULL;
10613}
10614
10615
01f6b6d3
RD
10616SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10617 PyObject *resultobj = 0;
10618 wxTextAttr *arg1 = 0 ;
10619 wxTextAttr *arg2 = 0 ;
10620 wxTextAttr result;
10621 void *argp1 = 0 ;
10622 int res1 = 0 ;
10623 void *argp2 = 0 ;
10624 int res2 = 0 ;
10625 PyObject * obj0 = 0 ;
10626 PyObject * obj1 = 0 ;
10627 char * kwnames[] = {
10628 (char *) "base",(char *) "overlay", NULL
10629 };
10630
10631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10632 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10633 if (!SWIG_IsOK(res1)) {
10634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10635 }
10636 if (!argp1) {
10637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10638 }
10639 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10640 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10641 if (!SWIG_IsOK(res2)) {
10642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10643 }
10644 if (!argp2) {
10645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10646 }
10647 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10648 {
10649 PyThreadState* __tstate = wxPyBeginAllowThreads();
10650 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10651 wxPyEndAllowThreads(__tstate);
10652 if (PyErr_Occurred()) SWIG_fail;
10653 }
10654 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10655 return resultobj;
10656fail:
10657 return NULL;
10658}
10659
10660
0085ce49
RD
10661SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10662 PyObject *resultobj = 0;
10663 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10664 wxColour *arg2 = 0 ;
10665 void *argp1 = 0 ;
10666 int res1 = 0 ;
10667 wxColour temp2 ;
10668 PyObject * obj0 = 0 ;
10669 PyObject * obj1 = 0 ;
10670 char * kwnames[] = {
10671 (char *) "self",(char *) "colText", NULL
10672 };
10673
10674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10676 if (!SWIG_IsOK(res1)) {
10677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10678 }
10679 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10680 {
10681 arg2 = &temp2;
10682 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10683 }
10684 {
10685 PyThreadState* __tstate = wxPyBeginAllowThreads();
10686 (arg1)->SetTextColour((wxColour const &)*arg2);
10687 wxPyEndAllowThreads(__tstate);
10688 if (PyErr_Occurred()) SWIG_fail;
10689 }
10690 resultobj = SWIG_Py_Void();
10691 return resultobj;
10692fail:
10693 return NULL;
10694}
10695
10696
10697SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10698 PyObject *resultobj = 0;
10699 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10700 wxColour *arg2 = 0 ;
10701 void *argp1 = 0 ;
10702 int res1 = 0 ;
10703 wxColour temp2 ;
10704 PyObject * obj0 = 0 ;
10705 PyObject * obj1 = 0 ;
10706 char * kwnames[] = {
10707 (char *) "self",(char *) "colBack", NULL
10708 };
10709
10710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10712 if (!SWIG_IsOK(res1)) {
10713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10714 }
10715 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10716 {
10717 arg2 = &temp2;
10718 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10719 }
10720 {
10721 PyThreadState* __tstate = wxPyBeginAllowThreads();
10722 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10723 wxPyEndAllowThreads(__tstate);
10724 if (PyErr_Occurred()) SWIG_fail;
10725 }
10726 resultobj = SWIG_Py_Void();
10727 return resultobj;
10728fail:
10729 return NULL;
10730}
10731
10732
10733SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10734 PyObject *resultobj = 0;
10735 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10736 wxFont *arg2 = 0 ;
10737 long arg3 = (long) wxTEXT_ATTR_FONT ;
10738 void *argp1 = 0 ;
10739 int res1 = 0 ;
10740 void *argp2 = 0 ;
10741 int res2 = 0 ;
10742 long val3 ;
10743 int ecode3 = 0 ;
10744 PyObject * obj0 = 0 ;
10745 PyObject * obj1 = 0 ;
10746 PyObject * obj2 = 0 ;
10747 char * kwnames[] = {
10748 (char *) "self",(char *) "font",(char *) "flags", NULL
10749 };
10750
10751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10753 if (!SWIG_IsOK(res1)) {
10754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10755 }
10756 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10757 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10758 if (!SWIG_IsOK(res2)) {
10759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10760 }
10761 if (!argp2) {
10762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10763 }
10764 arg2 = reinterpret_cast< wxFont * >(argp2);
10765 if (obj2) {
10766 ecode3 = SWIG_AsVal_long(obj2, &val3);
10767 if (!SWIG_IsOK(ecode3)) {
10768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10769 }
10770 arg3 = static_cast< long >(val3);
10771 }
10772 {
10773 PyThreadState* __tstate = wxPyBeginAllowThreads();
10774 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10775 wxPyEndAllowThreads(__tstate);
10776 if (PyErr_Occurred()) SWIG_fail;
10777 }
10778 resultobj = SWIG_Py_Void();
10779 return resultobj;
10780fail:
10781 return NULL;
10782}
10783
10784
10785SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10786 PyObject *resultobj = 0;
10787 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10788 wxTextAttrAlignment arg2 ;
10789 void *argp1 = 0 ;
10790 int res1 = 0 ;
10791 int val2 ;
10792 int ecode2 = 0 ;
10793 PyObject * obj0 = 0 ;
10794 PyObject * obj1 = 0 ;
10795 char * kwnames[] = {
10796 (char *) "self",(char *) "alignment", NULL
10797 };
10798
10799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10801 if (!SWIG_IsOK(res1)) {
10802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10803 }
10804 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10805 ecode2 = SWIG_AsVal_int(obj1, &val2);
10806 if (!SWIG_IsOK(ecode2)) {
10807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10808 }
10809 arg2 = static_cast< wxTextAttrAlignment >(val2);
10810 {
10811 PyThreadState* __tstate = wxPyBeginAllowThreads();
10812 (arg1)->SetAlignment(arg2);
10813 wxPyEndAllowThreads(__tstate);
10814 if (PyErr_Occurred()) SWIG_fail;
10815 }
10816 resultobj = SWIG_Py_Void();
10817 return resultobj;
10818fail:
10819 return NULL;
10820}
10821
10822
10823SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10824 PyObject *resultobj = 0;
10825 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10826 wxArrayInt *arg2 = 0 ;
10827 void *argp1 = 0 ;
10828 int res1 = 0 ;
10829 bool temp2 = false ;
10830 PyObject * obj0 = 0 ;
10831 PyObject * obj1 = 0 ;
10832 char * kwnames[] = {
10833 (char *) "self",(char *) "tabs", NULL
10834 };
10835
10836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10838 if (!SWIG_IsOK(res1)) {
10839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10840 }
10841 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10842 {
10843 if (! PySequence_Check(obj1)) {
10844 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10845 SWIG_fail;
10846 }
10847 arg2 = new wxArrayInt;
10848 temp2 = true;
10849 int i, len=PySequence_Length(obj1);
10850 for (i=0; i<len; i++) {
10851 PyObject* item = PySequence_GetItem(obj1, i);
10852 PyObject* number = PyNumber_Int(item);
ec8a7755
RD
10853 if (!number) {
10854 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10855 SWIG_fail;
10856 }
0085ce49
RD
10857 arg2->Add(PyInt_AS_LONG(number));
10858 Py_DECREF(item);
10859 Py_DECREF(number);
d14a1e28 10860 }
0085ce49
RD
10861 }
10862 {
10863 PyThreadState* __tstate = wxPyBeginAllowThreads();
10864 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10865 wxPyEndAllowThreads(__tstate);
10866 if (PyErr_Occurred()) SWIG_fail;
10867 }
10868 resultobj = SWIG_Py_Void();
10869 {
10870 if (temp2) delete arg2;
10871 }
10872 return resultobj;
10873fail:
10874 {
10875 if (temp2) delete arg2;
10876 }
10877 return NULL;
10878}
10879
10880
10881SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10882 PyObject *resultobj = 0;
10883 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10884 int arg2 ;
10885 int arg3 = (int) 0 ;
10886 void *argp1 = 0 ;
10887 int res1 = 0 ;
10888 int val2 ;
10889 int ecode2 = 0 ;
10890 int val3 ;
10891 int ecode3 = 0 ;
10892 PyObject * obj0 = 0 ;
10893 PyObject * obj1 = 0 ;
10894 PyObject * obj2 = 0 ;
10895 char * kwnames[] = {
10896 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10897 };
10898
10899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10901 if (!SWIG_IsOK(res1)) {
10902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10903 }
10904 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10905 ecode2 = SWIG_AsVal_int(obj1, &val2);
10906 if (!SWIG_IsOK(ecode2)) {
10907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10908 }
10909 arg2 = static_cast< int >(val2);
10910 if (obj2) {
10911 ecode3 = SWIG_AsVal_int(obj2, &val3);
10912 if (!SWIG_IsOK(ecode3)) {
10913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10914 }
10915 arg3 = static_cast< int >(val3);
10916 }
10917 {
10918 PyThreadState* __tstate = wxPyBeginAllowThreads();
10919 (arg1)->SetLeftIndent(arg2,arg3);
10920 wxPyEndAllowThreads(__tstate);
10921 if (PyErr_Occurred()) SWIG_fail;
10922 }
10923 resultobj = SWIG_Py_Void();
10924 return resultobj;
10925fail:
10926 return NULL;
10927}
10928
10929
10930SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10931 PyObject *resultobj = 0;
10932 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10933 int arg2 ;
10934 void *argp1 = 0 ;
10935 int res1 = 0 ;
10936 int val2 ;
10937 int ecode2 = 0 ;
10938 PyObject * obj0 = 0 ;
10939 PyObject * obj1 = 0 ;
10940 char * kwnames[] = {
10941 (char *) "self",(char *) "indent", NULL
10942 };
10943
10944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10946 if (!SWIG_IsOK(res1)) {
10947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10948 }
10949 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10950 ecode2 = SWIG_AsVal_int(obj1, &val2);
10951 if (!SWIG_IsOK(ecode2)) {
10952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10953 }
10954 arg2 = static_cast< int >(val2);
10955 {
10956 PyThreadState* __tstate = wxPyBeginAllowThreads();
10957 (arg1)->SetRightIndent(arg2);
10958 wxPyEndAllowThreads(__tstate);
10959 if (PyErr_Occurred()) SWIG_fail;
10960 }
10961 resultobj = SWIG_Py_Void();
10962 return resultobj;
10963fail:
10964 return NULL;
10965}
10966
10967
10968SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10969 PyObject *resultobj = 0;
10970 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10971 long arg2 ;
10972 void *argp1 = 0 ;
10973 int res1 = 0 ;
10974 long val2 ;
10975 int ecode2 = 0 ;
10976 PyObject * obj0 = 0 ;
10977 PyObject * obj1 = 0 ;
10978 char * kwnames[] = {
10979 (char *) "self",(char *) "flags", NULL
10980 };
10981
10982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10984 if (!SWIG_IsOK(res1)) {
10985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10986 }
10987 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10988 ecode2 = SWIG_AsVal_long(obj1, &val2);
10989 if (!SWIG_IsOK(ecode2)) {
10990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10991 }
10992 arg2 = static_cast< long >(val2);
10993 {
10994 PyThreadState* __tstate = wxPyBeginAllowThreads();
10995 (arg1)->SetFlags(arg2);
10996 wxPyEndAllowThreads(__tstate);
10997 if (PyErr_Occurred()) SWIG_fail;
10998 }
10999 resultobj = SWIG_Py_Void();
11000 return resultobj;
11001fail:
11002 return NULL;
d14a1e28
RD
11003}
11004
11005
0085ce49
RD
11006SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11007 PyObject *resultobj = 0;
11008 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11009 bool result;
11010 void *argp1 = 0 ;
11011 int res1 = 0 ;
11012 PyObject *swig_obj[1] ;
11013
11014 if (!args) SWIG_fail;
11015 swig_obj[0] = args;
11016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11017 if (!SWIG_IsOK(res1)) {
11018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11019 }
11020 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11021 {
11022 PyThreadState* __tstate = wxPyBeginAllowThreads();
11023 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
11024 wxPyEndAllowThreads(__tstate);
11025 if (PyErr_Occurred()) SWIG_fail;
11026 }
11027 {
11028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11029 }
11030 return resultobj;
11031fail:
11032 return NULL;
d14a1e28
RD
11033}
11034
11035
0085ce49
RD
11036SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11037 PyObject *resultobj = 0;
11038 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11039 bool result;
11040 void *argp1 = 0 ;
11041 int res1 = 0 ;
11042 PyObject *swig_obj[1] ;
11043
11044 if (!args) SWIG_fail;
11045 swig_obj[0] = args;
11046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11047 if (!SWIG_IsOK(res1)) {
11048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11049 }
11050 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11051 {
11052 PyThreadState* __tstate = wxPyBeginAllowThreads();
11053 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11054 wxPyEndAllowThreads(__tstate);
11055 if (PyErr_Occurred()) SWIG_fail;
11056 }
11057 {
11058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11059 }
11060 return resultobj;
11061fail:
11062 return NULL;
d14a1e28
RD
11063}
11064
11065
0085ce49
RD
11066SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11067 PyObject *resultobj = 0;
11068 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11069 bool result;
11070 void *argp1 = 0 ;
11071 int res1 = 0 ;
11072 PyObject *swig_obj[1] ;
11073
11074 if (!args) SWIG_fail;
11075 swig_obj[0] = args;
11076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11077 if (!SWIG_IsOK(res1)) {
11078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11079 }
11080 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11081 {
11082 PyThreadState* __tstate = wxPyBeginAllowThreads();
11083 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11084 wxPyEndAllowThreads(__tstate);
11085 if (PyErr_Occurred()) SWIG_fail;
11086 }
11087 {
11088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11089 }
11090 return resultobj;
11091fail:
11092 return NULL;
d14a1e28
RD
11093}
11094
11095
0085ce49
RD
11096SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11097 PyObject *resultobj = 0;
11098 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11099 bool result;
11100 void *argp1 = 0 ;
11101 int res1 = 0 ;
11102 PyObject *swig_obj[1] ;
11103
11104 if (!args) SWIG_fail;
11105 swig_obj[0] = args;
11106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11107 if (!SWIG_IsOK(res1)) {
11108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11109 }
11110 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11111 {
11112 PyThreadState* __tstate = wxPyBeginAllowThreads();
11113 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11114 wxPyEndAllowThreads(__tstate);
11115 if (PyErr_Occurred()) SWIG_fail;
11116 }
11117 {
11118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11119 }
11120 return resultobj;
11121fail:
11122 return NULL;
22bfe96c
RD
11123}
11124
11125
0085ce49
RD
11126SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11127 PyObject *resultobj = 0;
11128 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11129 bool result;
11130 void *argp1 = 0 ;
11131 int res1 = 0 ;
11132 PyObject *swig_obj[1] ;
11133
11134 if (!args) SWIG_fail;
11135 swig_obj[0] = args;
11136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11137 if (!SWIG_IsOK(res1)) {
11138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11139 }
11140 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11141 {
11142 PyThreadState* __tstate = wxPyBeginAllowThreads();
11143 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11144 wxPyEndAllowThreads(__tstate);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 }
11147 {
11148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11149 }
11150 return resultobj;
11151fail:
11152 return NULL;
b2dc1044
RD
11153}
11154
11155
0085ce49
RD
11156SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11157 PyObject *resultobj = 0;
11158 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11159 bool result;
11160 void *argp1 = 0 ;
11161 int res1 = 0 ;
11162 PyObject *swig_obj[1] ;
11163
11164 if (!args) SWIG_fail;
11165 swig_obj[0] = args;
11166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11167 if (!SWIG_IsOK(res1)) {
11168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11169 }
11170 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11174 wxPyEndAllowThreads(__tstate);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 }
11177 {
11178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11179 }
11180 return resultobj;
11181fail:
11182 return NULL;
d14a1e28
RD
11183}
11184
11185
0085ce49
RD
11186SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11187 PyObject *resultobj = 0;
11188 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11189 bool result;
11190 void *argp1 = 0 ;
11191 int res1 = 0 ;
11192 PyObject *swig_obj[1] ;
11193
11194 if (!args) SWIG_fail;
11195 swig_obj[0] = args;
11196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11197 if (!SWIG_IsOK(res1)) {
11198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11199 }
11200 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11201 {
11202 PyThreadState* __tstate = wxPyBeginAllowThreads();
11203 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11204 wxPyEndAllowThreads(__tstate);
11205 if (PyErr_Occurred()) SWIG_fail;
11206 }
11207 {
11208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11209 }
11210 return resultobj;
11211fail:
11212 return NULL;
11213}
11214
11215
11216SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11217 PyObject *resultobj = 0;
11218 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11219 long arg2 ;
11220 bool result;
11221 void *argp1 = 0 ;
11222 int res1 = 0 ;
11223 long val2 ;
11224 int ecode2 = 0 ;
11225 PyObject * obj0 = 0 ;
11226 PyObject * obj1 = 0 ;
11227 char * kwnames[] = {
11228 (char *) "self",(char *) "flag", NULL
11229 };
11230
11231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11233 if (!SWIG_IsOK(res1)) {
11234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11235 }
11236 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11237 ecode2 = SWIG_AsVal_long(obj1, &val2);
11238 if (!SWIG_IsOK(ecode2)) {
11239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11240 }
11241 arg2 = static_cast< long >(val2);
11242 {
11243 PyThreadState* __tstate = wxPyBeginAllowThreads();
11244 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11245 wxPyEndAllowThreads(__tstate);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 }
11248 {
11249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11250 }
11251 return resultobj;
11252fail:
11253 return NULL;
d14a1e28
RD
11254}
11255
11256
0085ce49
RD
11257SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11258 PyObject *resultobj = 0;
11259 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11260 wxColour *result = 0 ;
11261 void *argp1 = 0 ;
11262 int res1 = 0 ;
11263 PyObject *swig_obj[1] ;
11264
11265 if (!args) SWIG_fail;
11266 swig_obj[0] = args;
11267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11268 if (!SWIG_IsOK(res1)) {
11269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11270 }
11271 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11272 {
11273 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11274 {
0085ce49
RD
11275 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11276 result = (wxColour *) &_result_ref;
d14a1e28 11277 }
0085ce49
RD
11278 wxPyEndAllowThreads(__tstate);
11279 if (PyErr_Occurred()) SWIG_fail;
11280 }
11281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11282 return resultobj;
11283fail:
11284 return NULL;
d14a1e28
RD
11285}
11286
11287
0085ce49
RD
11288SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11289 PyObject *resultobj = 0;
11290 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11291 wxColour *result = 0 ;
11292 void *argp1 = 0 ;
11293 int res1 = 0 ;
11294 PyObject *swig_obj[1] ;
11295
11296 if (!args) SWIG_fail;
11297 swig_obj[0] = args;
11298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11299 if (!SWIG_IsOK(res1)) {
11300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11301 }
11302 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11303 {
11304 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11305 {
0085ce49
RD
11306 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11307 result = (wxColour *) &_result_ref;
d14a1e28 11308 }
0085ce49
RD
11309 wxPyEndAllowThreads(__tstate);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 }
11312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11313 return resultobj;
11314fail:
11315 return NULL;
d14a1e28
RD
11316}
11317
11318
0085ce49
RD
11319SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11320 PyObject *resultobj = 0;
11321 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11322 wxFont *result = 0 ;
11323 void *argp1 = 0 ;
11324 int res1 = 0 ;
11325 PyObject *swig_obj[1] ;
11326
11327 if (!args) SWIG_fail;
11328 swig_obj[0] = args;
11329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11330 if (!SWIG_IsOK(res1)) {
11331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11332 }
11333 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11334 {
11335 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11336 {
0085ce49
RD
11337 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11338 result = (wxFont *) &_result_ref;
d14a1e28 11339 }
0085ce49
RD
11340 wxPyEndAllowThreads(__tstate);
11341 if (PyErr_Occurred()) SWIG_fail;
11342 }
11343 {
11344 wxFont* resultptr = new wxFont(*result);
11345 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11346 }
11347 return resultobj;
11348fail:
11349 return NULL;
d14a1e28
RD
11350}
11351
11352
0085ce49
RD
11353SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11354 PyObject *resultobj = 0;
11355 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11356 wxTextAttrAlignment result;
11357 void *argp1 = 0 ;
11358 int res1 = 0 ;
11359 PyObject *swig_obj[1] ;
11360
11361 if (!args) SWIG_fail;
11362 swig_obj[0] = args;
11363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11364 if (!SWIG_IsOK(res1)) {
11365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11366 }
11367 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
11370 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 resultobj = SWIG_From_int(static_cast< int >(result));
11375 return resultobj;
11376fail:
11377 return NULL;
d14a1e28
RD
11378}
11379
11380
0085ce49
RD
11381SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11382 PyObject *resultobj = 0;
11383 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11384 wxArrayInt *result = 0 ;
11385 void *argp1 = 0 ;
11386 int res1 = 0 ;
11387 PyObject *swig_obj[1] ;
11388
11389 if (!args) SWIG_fail;
11390 swig_obj[0] = args;
11391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11392 if (!SWIG_IsOK(res1)) {
11393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11394 }
11395 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11396 {
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 11398 {
0085ce49
RD
11399 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11400 result = (wxArrayInt *) &_result_ref;
d14a1e28 11401 }
0085ce49
RD
11402 wxPyEndAllowThreads(__tstate);
11403 if (PyErr_Occurred()) SWIG_fail;
11404 }
11405 {
b39fe951 11406 resultobj = wxArrayInt2PyList_helper(*result);
0085ce49
RD
11407 }
11408 return resultobj;
11409fail:
11410 return NULL;
d14a1e28
RD
11411}
11412
11413
0085ce49
RD
11414SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11415 PyObject *resultobj = 0;
11416 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11417 long result;
11418 void *argp1 = 0 ;
11419 int res1 = 0 ;
11420 PyObject *swig_obj[1] ;
11421
11422 if (!args) SWIG_fail;
11423 swig_obj[0] = args;
11424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11425 if (!SWIG_IsOK(res1)) {
11426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11427 }
11428 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11429 {
11430 PyThreadState* __tstate = wxPyBeginAllowThreads();
11431 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11432 wxPyEndAllowThreads(__tstate);
11433 if (PyErr_Occurred()) SWIG_fail;
11434 }
11435 resultobj = SWIG_From_long(static_cast< long >(result));
11436 return resultobj;
11437fail:
11438 return NULL;
d14a1e28
RD
11439}
11440
11441
0085ce49
RD
11442SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11443 PyObject *resultobj = 0;
11444 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11445 long result;
11446 void *argp1 = 0 ;
11447 int res1 = 0 ;
11448 PyObject *swig_obj[1] ;
11449
11450 if (!args) SWIG_fail;
11451 swig_obj[0] = args;
11452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11453 if (!SWIG_IsOK(res1)) {
11454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11455 }
11456 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11457 {
11458 PyThreadState* __tstate = wxPyBeginAllowThreads();
11459 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11460 wxPyEndAllowThreads(__tstate);
11461 if (PyErr_Occurred()) SWIG_fail;
11462 }
11463 resultobj = SWIG_From_long(static_cast< long >(result));
11464 return resultobj;
11465fail:
11466 return NULL;
d14a1e28
RD
11467}
11468
11469
0085ce49
RD
11470SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11471 PyObject *resultobj = 0;
11472 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11473 long result;
11474 void *argp1 = 0 ;
11475 int res1 = 0 ;
11476 PyObject *swig_obj[1] ;
11477
11478 if (!args) SWIG_fail;
11479 swig_obj[0] = args;
11480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11481 if (!SWIG_IsOK(res1)) {
11482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11483 }
11484 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11485 {
11486 PyThreadState* __tstate = wxPyBeginAllowThreads();
11487 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11488 wxPyEndAllowThreads(__tstate);
11489 if (PyErr_Occurred()) SWIG_fail;
11490 }
11491 resultobj = SWIG_From_long(static_cast< long >(result));
11492 return resultobj;
11493fail:
11494 return NULL;
d14a1e28
RD
11495}
11496
11497
0085ce49
RD
11498SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11499 PyObject *resultobj = 0;
11500 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11501 long result;
11502 void *argp1 = 0 ;
11503 int res1 = 0 ;
11504 PyObject *swig_obj[1] ;
11505
11506 if (!args) SWIG_fail;
11507 swig_obj[0] = args;
11508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11509 if (!SWIG_IsOK(res1)) {
11510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11511 }
11512 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11513 {
11514 PyThreadState* __tstate = wxPyBeginAllowThreads();
11515 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11516 wxPyEndAllowThreads(__tstate);
11517 if (PyErr_Occurred()) SWIG_fail;
11518 }
11519 resultobj = SWIG_From_long(static_cast< long >(result));
11520 return resultobj;
11521fail:
11522 return NULL;
d14a1e28
RD
11523}
11524
11525
0085ce49
RD
11526SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11527 PyObject *resultobj = 0;
11528 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11529 bool result;
11530 void *argp1 = 0 ;
11531 int res1 = 0 ;
11532 PyObject *swig_obj[1] ;
11533
11534 if (!args) SWIG_fail;
11535 swig_obj[0] = args;
11536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11537 if (!SWIG_IsOK(res1)) {
11538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11539 }
11540 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11541 {
11542 PyThreadState* __tstate = wxPyBeginAllowThreads();
11543 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11544 wxPyEndAllowThreads(__tstate);
11545 if (PyErr_Occurred()) SWIG_fail;
11546 }
11547 {
11548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11549 }
11550 return resultobj;
11551fail:
11552 return NULL;
11553}
11554
11555
11556SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11557 PyObject *resultobj = 0;
11558 wxTextAttr *arg1 = 0 ;
11559 wxTextAttr *arg2 = 0 ;
11560 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11561 wxTextAttr result;
11562 void *argp1 = 0 ;
11563 int res1 = 0 ;
11564 void *argp2 = 0 ;
11565 int res2 = 0 ;
11566 void *argp3 = 0 ;
11567 int res3 = 0 ;
11568 PyObject * obj0 = 0 ;
11569 PyObject * obj1 = 0 ;
11570 PyObject * obj2 = 0 ;
11571 char * kwnames[] = {
11572 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11573 };
11574
11575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11576 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11577 if (!SWIG_IsOK(res1)) {
11578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11579 }
11580 if (!argp1) {
11581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11582 }
11583 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11584 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11585 if (!SWIG_IsOK(res2)) {
11586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11587 }
11588 if (!argp2) {
11589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11590 }
11591 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11592 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11593 if (!SWIG_IsOK(res3)) {
11594 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11595 }
11596 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11597 {
11598 PyThreadState* __tstate = wxPyBeginAllowThreads();
11599 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11600 wxPyEndAllowThreads(__tstate);
11601 if (PyErr_Occurred()) SWIG_fail;
11602 }
11603 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11604 return resultobj;
11605fail:
11606 return NULL;
11607}
11608
11609
11610SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11611 PyObject *obj;
11612 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11613 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11614 return SWIG_Py_Void();
11615}
11616
11617SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11618 return SWIG_Python_InitShadowInstance(args);
11619}
11620
11621SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11622 PyObject *resultobj = 0;
11623 wxWindow *arg1 = (wxWindow *) 0 ;
11624 int arg2 = (int) -1 ;
11625 wxString const &arg3_defvalue = wxPyEmptyString ;
11626 wxString *arg3 = (wxString *) &arg3_defvalue ;
11627 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11628 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11629 wxSize const &arg5_defvalue = wxDefaultSize ;
11630 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11631 long arg6 = (long) 0 ;
11632 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11633 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11634 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11635 wxString *arg8 = (wxString *) &arg8_defvalue ;
11636 wxTextCtrl *result = 0 ;
11637 void *argp1 = 0 ;
11638 int res1 = 0 ;
11639 int val2 ;
11640 int ecode2 = 0 ;
11641 bool temp3 = false ;
11642 wxPoint temp4 ;
11643 wxSize temp5 ;
11644 long val6 ;
11645 int ecode6 = 0 ;
11646 void *argp7 = 0 ;
11647 int res7 = 0 ;
11648 bool temp8 = false ;
11649 PyObject * obj0 = 0 ;
11650 PyObject * obj1 = 0 ;
11651 PyObject * obj2 = 0 ;
11652 PyObject * obj3 = 0 ;
11653 PyObject * obj4 = 0 ;
11654 PyObject * obj5 = 0 ;
11655 PyObject * obj6 = 0 ;
11656 PyObject * obj7 = 0 ;
11657 char * kwnames[] = {
11658 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11659 };
11660
11661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11663 if (!SWIG_IsOK(res1)) {
11664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11665 }
11666 arg1 = reinterpret_cast< wxWindow * >(argp1);
11667 if (obj1) {
11668 ecode2 = SWIG_AsVal_int(obj1, &val2);
11669 if (!SWIG_IsOK(ecode2)) {
11670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11671 }
11672 arg2 = static_cast< int >(val2);
11673 }
11674 if (obj2) {
4f89f6a3 11675 {
0085ce49
RD
11676 arg3 = wxString_in_helper(obj2);
11677 if (arg3 == NULL) SWIG_fail;
11678 temp3 = true;
4f89f6a3 11679 }
0085ce49
RD
11680 }
11681 if (obj3) {
d14a1e28 11682 {
0085ce49
RD
11683 arg4 = &temp4;
11684 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 11685 }
0085ce49
RD
11686 }
11687 if (obj4) {
d14a1e28 11688 {
0085ce49
RD
11689 arg5 = &temp5;
11690 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11691 }
0085ce49
RD
11692 }
11693 if (obj5) {
11694 ecode6 = SWIG_AsVal_long(obj5, &val6);
11695 if (!SWIG_IsOK(ecode6)) {
11696 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11697 }
11698 arg6 = static_cast< long >(val6);
11699 }
11700 if (obj6) {
11701 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11702 if (!SWIG_IsOK(res7)) {
11703 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 11704 }
0085ce49
RD
11705 if (!argp7) {
11706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 11707 }
0085ce49
RD
11708 arg7 = reinterpret_cast< wxValidator * >(argp7);
11709 }
11710 if (obj7) {
d14a1e28 11711 {
0085ce49
RD
11712 arg8 = wxString_in_helper(obj7);
11713 if (arg8 == NULL) SWIG_fail;
11714 temp8 = true;
d14a1e28 11715 }
0085ce49
RD
11716 }
11717 {
11718 if (!wxPyCheckForApp()) SWIG_fail;
11719 PyThreadState* __tstate = wxPyBeginAllowThreads();
11720 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11721 wxPyEndAllowThreads(__tstate);
11722 if (PyErr_Occurred()) SWIG_fail;
11723 }
11724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11725 {
11726 if (temp3)
11727 delete arg3;
11728 }
11729 {
11730 if (temp8)
11731 delete arg8;
11732 }
11733 return resultobj;
11734fail:
11735 {
11736 if (temp3)
11737 delete arg3;
11738 }
11739 {
11740 if (temp8)
11741 delete arg8;
11742 }
11743 return NULL;
d14a1e28
RD
11744}
11745
11746
0085ce49
RD
11747SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11748 PyObject *resultobj = 0;
11749 wxTextCtrl *result = 0 ;
11750
11751 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11752 {
11753 if (!wxPyCheckForApp()) SWIG_fail;
11754 PyThreadState* __tstate = wxPyBeginAllowThreads();
11755 result = (wxTextCtrl *)new wxTextCtrl();
11756 wxPyEndAllowThreads(__tstate);
11757 if (PyErr_Occurred()) SWIG_fail;
11758 }
11759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11760 return resultobj;
11761fail:
11762 return NULL;
11763}
11764
11765
11766SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11767 PyObject *resultobj = 0;
11768 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11769 wxWindow *arg2 = (wxWindow *) 0 ;
11770 int arg3 = (int) -1 ;
11771 wxString const &arg4_defvalue = wxPyEmptyString ;
11772 wxString *arg4 = (wxString *) &arg4_defvalue ;
11773 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11774 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11775 wxSize const &arg6_defvalue = wxDefaultSize ;
11776 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11777 long arg7 = (long) 0 ;
11778 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11779 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11780 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11781 wxString *arg9 = (wxString *) &arg9_defvalue ;
11782 bool result;
11783 void *argp1 = 0 ;
11784 int res1 = 0 ;
11785 void *argp2 = 0 ;
11786 int res2 = 0 ;
11787 int val3 ;
11788 int ecode3 = 0 ;
11789 bool temp4 = false ;
11790 wxPoint temp5 ;
11791 wxSize temp6 ;
11792 long val7 ;
11793 int ecode7 = 0 ;
11794 void *argp8 = 0 ;
11795 int res8 = 0 ;
11796 bool temp9 = false ;
11797 PyObject * obj0 = 0 ;
11798 PyObject * obj1 = 0 ;
11799 PyObject * obj2 = 0 ;
11800 PyObject * obj3 = 0 ;
11801 PyObject * obj4 = 0 ;
11802 PyObject * obj5 = 0 ;
11803 PyObject * obj6 = 0 ;
11804 PyObject * obj7 = 0 ;
11805 PyObject * obj8 = 0 ;
11806 char * kwnames[] = {
11807 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11808 };
11809
11810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11812 if (!SWIG_IsOK(res1)) {
11813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11814 }
11815 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11816 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11817 if (!SWIG_IsOK(res2)) {
11818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11819 }
11820 arg2 = reinterpret_cast< wxWindow * >(argp2);
11821 if (obj2) {
11822 ecode3 = SWIG_AsVal_int(obj2, &val3);
11823 if (!SWIG_IsOK(ecode3)) {
11824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11825 }
11826 arg3 = static_cast< int >(val3);
11827 }
11828 if (obj3) {
d14a1e28 11829 {
0085ce49
RD
11830 arg4 = wxString_in_helper(obj3);
11831 if (arg4 == NULL) SWIG_fail;
11832 temp4 = true;
d14a1e28 11833 }
0085ce49
RD
11834 }
11835 if (obj4) {
d14a1e28 11836 {
0085ce49
RD
11837 arg5 = &temp5;
11838 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 11839 }
0085ce49
RD
11840 }
11841 if (obj5) {
d14a1e28 11842 {
0085ce49
RD
11843 arg6 = &temp6;
11844 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 11845 }
0085ce49
RD
11846 }
11847 if (obj6) {
11848 ecode7 = SWIG_AsVal_long(obj6, &val7);
11849 if (!SWIG_IsOK(ecode7)) {
11850 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11851 }
11852 arg7 = static_cast< long >(val7);
11853 }
11854 if (obj7) {
11855 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11856 if (!SWIG_IsOK(res8)) {
11857 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 11858 }
0085ce49
RD
11859 if (!argp8) {
11860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
093d3ff1 11861 }
0085ce49
RD
11862 arg8 = reinterpret_cast< wxValidator * >(argp8);
11863 }
11864 if (obj8) {
d14a1e28 11865 {
0085ce49
RD
11866 arg9 = wxString_in_helper(obj8);
11867 if (arg9 == NULL) SWIG_fail;
11868 temp9 = true;
d14a1e28 11869 }
0085ce49
RD
11870 }
11871 {
11872 PyThreadState* __tstate = wxPyBeginAllowThreads();
11873 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11874 wxPyEndAllowThreads(__tstate);
11875 if (PyErr_Occurred()) SWIG_fail;
11876 }
11877 {
11878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11879 }
11880 {
11881 if (temp4)
11882 delete arg4;
11883 }
11884 {
11885 if (temp9)
11886 delete arg9;
11887 }
11888 return resultobj;
11889fail:
11890 {
11891 if (temp4)
11892 delete arg4;
11893 }
11894 {
11895 if (temp9)
11896 delete arg9;
11897 }
11898 return NULL;
d14a1e28
RD
11899}
11900
11901
0085ce49
RD
11902SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11903 PyObject *resultobj = 0;
11904 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11905 wxString result;
11906 void *argp1 = 0 ;
11907 int res1 = 0 ;
11908 PyObject *swig_obj[1] ;
11909
11910 if (!args) SWIG_fail;
11911 swig_obj[0] = args;
11912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11913 if (!SWIG_IsOK(res1)) {
11914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11915 }
11916 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11917 {
11918 PyThreadState* __tstate = wxPyBeginAllowThreads();
11919 result = ((wxTextCtrl const *)arg1)->GetValue();
11920 wxPyEndAllowThreads(__tstate);
11921 if (PyErr_Occurred()) SWIG_fail;
11922 }
11923 {
11924#if wxUSE_UNICODE
11925 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11926#else
11927 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11928#endif
11929 }
11930 return resultobj;
11931fail:
11932 return NULL;
11933}
11934
11935
11936SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11937 PyObject *resultobj = 0;
11938 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11939 wxString *arg2 = 0 ;
11940 void *argp1 = 0 ;
11941 int res1 = 0 ;
11942 bool temp2 = false ;
11943 PyObject * obj0 = 0 ;
11944 PyObject * obj1 = 0 ;
11945 char * kwnames[] = {
11946 (char *) "self",(char *) "value", NULL
11947 };
11948
11949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11951 if (!SWIG_IsOK(res1)) {
11952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11953 }
11954 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11955 {
11956 arg2 = wxString_in_helper(obj1);
11957 if (arg2 == NULL) SWIG_fail;
11958 temp2 = true;
11959 }
11960 {
11961 PyThreadState* __tstate = wxPyBeginAllowThreads();
11962 (arg1)->SetValue((wxString const &)*arg2);
11963 wxPyEndAllowThreads(__tstate);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 }
11966 resultobj = SWIG_Py_Void();
11967 {
11968 if (temp2)
11969 delete arg2;
11970 }
11971 return resultobj;
11972fail:
11973 {
11974 if (temp2)
11975 delete arg2;
11976 }
11977 return NULL;
11978}
11979
11980
b39fe951
RD
11981SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11982 PyObject *resultobj = 0;
11983 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11984 bool result;
11985 void *argp1 = 0 ;
11986 int res1 = 0 ;
11987 PyObject *swig_obj[1] ;
11988
11989 if (!args) SWIG_fail;
11990 swig_obj[0] = args;
11991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11992 if (!SWIG_IsOK(res1)) {
11993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11994 }
11995 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11996 {
11997 PyThreadState* __tstate = wxPyBeginAllowThreads();
11998 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11999 wxPyEndAllowThreads(__tstate);
12000 if (PyErr_Occurred()) SWIG_fail;
12001 }
12002 {
12003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12004 }
12005 return resultobj;
12006fail:
12007 return NULL;
12008}
12009
12010
12011SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12012 PyObject *resultobj = 0;
12013 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12014 wxString *arg2 = 0 ;
12015 void *argp1 = 0 ;
12016 int res1 = 0 ;
12017 bool temp2 = false ;
12018 PyObject * obj0 = 0 ;
12019 PyObject * obj1 = 0 ;
12020 char * kwnames[] = {
12021 (char *) "self",(char *) "value", NULL
12022 };
12023
12024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
12025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12026 if (!SWIG_IsOK(res1)) {
12027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12028 }
12029 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12030 {
12031 arg2 = wxString_in_helper(obj1);
12032 if (arg2 == NULL) SWIG_fail;
12033 temp2 = true;
12034 }
12035 {
12036 PyThreadState* __tstate = wxPyBeginAllowThreads();
12037 (arg1)->ChangeValue((wxString const &)*arg2);
12038 wxPyEndAllowThreads(__tstate);
12039 if (PyErr_Occurred()) SWIG_fail;
12040 }
12041 resultobj = SWIG_Py_Void();
12042 {
12043 if (temp2)
12044 delete arg2;
12045 }
12046 return resultobj;
12047fail:
12048 {
12049 if (temp2)
12050 delete arg2;
12051 }
12052 return NULL;
12053}
12054
12055
0085ce49
RD
12056SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12057 PyObject *resultobj = 0;
12058 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12059 long arg2 ;
12060 long arg3 ;
12061 wxString result;
12062 void *argp1 = 0 ;
12063 int res1 = 0 ;
12064 long val2 ;
12065 int ecode2 = 0 ;
12066 long val3 ;
12067 int ecode3 = 0 ;
12068 PyObject * obj0 = 0 ;
12069 PyObject * obj1 = 0 ;
12070 PyObject * obj2 = 0 ;
12071 char * kwnames[] = {
2131d850 12072 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
12073 };
12074
12075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12077 if (!SWIG_IsOK(res1)) {
12078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12079 }
12080 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12081 ecode2 = SWIG_AsVal_long(obj1, &val2);
12082 if (!SWIG_IsOK(ecode2)) {
12083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12084 }
12085 arg2 = static_cast< long >(val2);
12086 ecode3 = SWIG_AsVal_long(obj2, &val3);
12087 if (!SWIG_IsOK(ecode3)) {
12088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12089 }
12090 arg3 = static_cast< long >(val3);
12091 {
12092 PyThreadState* __tstate = wxPyBeginAllowThreads();
12093 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12094 wxPyEndAllowThreads(__tstate);
12095 if (PyErr_Occurred()) SWIG_fail;
12096 }
12097 {
12098#if wxUSE_UNICODE
12099 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12100#else
12101 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12102#endif
12103 }
12104 return resultobj;
12105fail:
12106 return NULL;
12107}
12108
12109
12110SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12111 PyObject *resultobj = 0;
12112 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12113 long arg2 ;
12114 int result;
12115 void *argp1 = 0 ;
12116 int res1 = 0 ;
12117 long val2 ;
12118 int ecode2 = 0 ;
12119 PyObject * obj0 = 0 ;
12120 PyObject * obj1 = 0 ;
12121 char * kwnames[] = {
12122 (char *) "self",(char *) "lineNo", NULL
12123 };
12124
12125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12127 if (!SWIG_IsOK(res1)) {
12128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12129 }
12130 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12131 ecode2 = SWIG_AsVal_long(obj1, &val2);
12132 if (!SWIG_IsOK(ecode2)) {
12133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12134 }
12135 arg2 = static_cast< long >(val2);
12136 {
12137 PyThreadState* __tstate = wxPyBeginAllowThreads();
12138 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12139 wxPyEndAllowThreads(__tstate);
12140 if (PyErr_Occurred()) SWIG_fail;
12141 }
12142 resultobj = SWIG_From_int(static_cast< int >(result));
12143 return resultobj;
12144fail:
12145 return NULL;
12146}
12147
12148
12149SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12150 PyObject *resultobj = 0;
12151 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12152 long arg2 ;
12153 wxString result;
12154 void *argp1 = 0 ;
12155 int res1 = 0 ;
12156 long val2 ;
12157 int ecode2 = 0 ;
12158 PyObject * obj0 = 0 ;
12159 PyObject * obj1 = 0 ;
12160 char * kwnames[] = {
12161 (char *) "self",(char *) "lineNo", NULL
12162 };
12163
12164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12166 if (!SWIG_IsOK(res1)) {
12167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12168 }
12169 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12170 ecode2 = SWIG_AsVal_long(obj1, &val2);
12171 if (!SWIG_IsOK(ecode2)) {
12172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12173 }
12174 arg2 = static_cast< long >(val2);
12175 {
12176 PyThreadState* __tstate = wxPyBeginAllowThreads();
12177 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12178 wxPyEndAllowThreads(__tstate);
12179 if (PyErr_Occurred()) SWIG_fail;
12180 }
12181 {
12182#if wxUSE_UNICODE
12183 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12184#else
12185 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12186#endif
12187 }
12188 return resultobj;
12189fail:
12190 return NULL;
d14a1e28
RD
12191}
12192
12193
0085ce49
RD
12194SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12195 PyObject *resultobj = 0;
12196 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12197 int result;
12198 void *argp1 = 0 ;
12199 int res1 = 0 ;
12200 PyObject *swig_obj[1] ;
12201
12202 if (!args) SWIG_fail;
12203 swig_obj[0] = args;
12204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12205 if (!SWIG_IsOK(res1)) {
12206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12207 }
12208 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12209 {
12210 PyThreadState* __tstate = wxPyBeginAllowThreads();
12211 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12212 wxPyEndAllowThreads(__tstate);
12213 if (PyErr_Occurred()) SWIG_fail;
12214 }
12215 resultobj = SWIG_From_int(static_cast< int >(result));
12216 return resultobj;
12217fail:
12218 return NULL;
d14a1e28
RD
12219}
12220
12221
0085ce49
RD
12222SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12223 PyObject *resultobj = 0;
12224 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12225 bool result;
12226 void *argp1 = 0 ;
12227 int res1 = 0 ;
12228 PyObject *swig_obj[1] ;
12229
12230 if (!args) SWIG_fail;
12231 swig_obj[0] = args;
12232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12233 if (!SWIG_IsOK(res1)) {
12234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12235 }
12236 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12237 {
12238 PyThreadState* __tstate = wxPyBeginAllowThreads();
12239 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12240 wxPyEndAllowThreads(__tstate);
12241 if (PyErr_Occurred()) SWIG_fail;
12242 }
12243 {
12244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12245 }
12246 return resultobj;
12247fail:
12248 return NULL;
c3eb6258
RD
12249}
12250
12251
0085ce49
RD
12252SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12253 PyObject *resultobj = 0;
12254 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12255 bool result;
12256 void *argp1 = 0 ;
12257 int res1 = 0 ;
12258 PyObject *swig_obj[1] ;
12259
12260 if (!args) SWIG_fail;
12261 swig_obj[0] = args;
12262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12263 if (!SWIG_IsOK(res1)) {
12264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12265 }
12266 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12267 {
12268 PyThreadState* __tstate = wxPyBeginAllowThreads();
12269 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12270 wxPyEndAllowThreads(__tstate);
12271 if (PyErr_Occurred()) SWIG_fail;
12272 }
12273 {
12274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12275 }
12276 return resultobj;
12277fail:
12278 return NULL;
74a57fcd
RD
12279}
12280
12281
0085ce49
RD
12282SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12283 PyObject *resultobj = 0;
12284 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12285 bool result;
12286 void *argp1 = 0 ;
12287 int res1 = 0 ;
12288 PyObject *swig_obj[1] ;
12289
12290 if (!args) SWIG_fail;
12291 swig_obj[0] = args;
12292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12293 if (!SWIG_IsOK(res1)) {
12294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12295 }
12296 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12297 {
12298 PyThreadState* __tstate = wxPyBeginAllowThreads();
12299 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12300 wxPyEndAllowThreads(__tstate);
12301 if (PyErr_Occurred()) SWIG_fail;
12302 }
12303 {
12304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12305 }
12306 return resultobj;
12307fail:
12308 return NULL;
d14a1e28
RD
12309}
12310
12311
0085ce49
RD
12312SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12313 PyObject *resultobj = 0;
12314 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12315 bool result;
12316 void *argp1 = 0 ;
12317 int res1 = 0 ;
12318 PyObject *swig_obj[1] ;
12319
12320 if (!args) SWIG_fail;
12321 swig_obj[0] = args;
12322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12323 if (!SWIG_IsOK(res1)) {
12324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12325 }
12326 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12327 {
12328 PyThreadState* __tstate = wxPyBeginAllowThreads();
12329 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12330 wxPyEndAllowThreads(__tstate);
12331 if (PyErr_Occurred()) SWIG_fail;
12332 }
12333 {
12334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12335 }
12336 return resultobj;
12337fail:
12338 return NULL;
12339}
12340
12341
12342SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12343 PyObject *resultobj = 0;
12344 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12345 long *arg2 = (long *) 0 ;
12346 long *arg3 = (long *) 0 ;
12347 void *argp1 = 0 ;
12348 int res1 = 0 ;
12349 long temp2 ;
12350 int res2 = SWIG_TMPOBJ ;
12351 long temp3 ;
12352 int res3 = SWIG_TMPOBJ ;
12353 PyObject *swig_obj[1] ;
12354
12355 arg2 = &temp2;
12356 arg3 = &temp3;
12357 if (!args) SWIG_fail;
12358 swig_obj[0] = args;
12359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12360 if (!SWIG_IsOK(res1)) {
12361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12362 }
12363 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12364 {
12365 PyThreadState* __tstate = wxPyBeginAllowThreads();
12366 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12367 wxPyEndAllowThreads(__tstate);
12368 if (PyErr_Occurred()) SWIG_fail;
12369 }
12370 resultobj = SWIG_Py_Void();
12371 if (SWIG_IsTmpObj(res2)) {
12372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12373 } else {
12374 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12376 }
12377 if (SWIG_IsTmpObj(res3)) {
12378 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12379 } else {
12380 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12381 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12382 }
12383 return resultobj;
12384fail:
12385 return NULL;
d14a1e28
RD
12386}
12387
12388
0085ce49
RD
12389SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12390 PyObject *resultobj = 0;
12391 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12392 wxString result;
12393 void *argp1 = 0 ;
12394 int res1 = 0 ;
12395 PyObject *swig_obj[1] ;
12396
12397 if (!args) SWIG_fail;
12398 swig_obj[0] = args;
12399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12400 if (!SWIG_IsOK(res1)) {
12401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12402 }
12403 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12404 {
12405 PyThreadState* __tstate = wxPyBeginAllowThreads();
12406 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12407 wxPyEndAllowThreads(__tstate);
12408 if (PyErr_Occurred()) SWIG_fail;
12409 }
12410 {
12411#if wxUSE_UNICODE
12412 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12413#else
12414 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12415#endif
12416 }
12417 return resultobj;
12418fail:
12419 return NULL;
d14a1e28
RD
12420}
12421
12422
0085ce49
RD
12423SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12424 PyObject *resultobj = 0;
12425 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12426 void *argp1 = 0 ;
12427 int res1 = 0 ;
12428 PyObject *swig_obj[1] ;
12429
12430 if (!args) SWIG_fail;
12431 swig_obj[0] = args;
12432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12433 if (!SWIG_IsOK(res1)) {
12434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12435 }
12436 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12437 {
12438 PyThreadState* __tstate = wxPyBeginAllowThreads();
12439 (arg1)->Clear();
12440 wxPyEndAllowThreads(__tstate);
12441 if (PyErr_Occurred()) SWIG_fail;
12442 }
12443 resultobj = SWIG_Py_Void();
12444 return resultobj;
12445fail:
12446 return NULL;
12447}
12448
12449
12450SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12451 PyObject *resultobj = 0;
12452 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12453 long arg2 ;
12454 long arg3 ;
12455 wxString *arg4 = 0 ;
12456 void *argp1 = 0 ;
12457 int res1 = 0 ;
12458 long val2 ;
12459 int ecode2 = 0 ;
12460 long val3 ;
12461 int ecode3 = 0 ;
12462 bool temp4 = false ;
12463 PyObject * obj0 = 0 ;
12464 PyObject * obj1 = 0 ;
12465 PyObject * obj2 = 0 ;
12466 PyObject * obj3 = 0 ;
12467 char * kwnames[] = {
2131d850 12468 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
0085ce49
RD
12469 };
12470
12471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12473 if (!SWIG_IsOK(res1)) {
12474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12475 }
12476 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12477 ecode2 = SWIG_AsVal_long(obj1, &val2);
12478 if (!SWIG_IsOK(ecode2)) {
12479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12480 }
12481 arg2 = static_cast< long >(val2);
12482 ecode3 = SWIG_AsVal_long(obj2, &val3);
12483 if (!SWIG_IsOK(ecode3)) {
12484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12485 }
12486 arg3 = static_cast< long >(val3);
12487 {
12488 arg4 = wxString_in_helper(obj3);
12489 if (arg4 == NULL) SWIG_fail;
12490 temp4 = true;
12491 }
12492 {
12493 PyThreadState* __tstate = wxPyBeginAllowThreads();
12494 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12495 wxPyEndAllowThreads(__tstate);
12496 if (PyErr_Occurred()) SWIG_fail;
12497 }
12498 resultobj = SWIG_Py_Void();
12499 {
12500 if (temp4)
12501 delete arg4;
12502 }
12503 return resultobj;
12504fail:
12505 {
12506 if (temp4)
12507 delete arg4;
12508 }
12509 return NULL;
12510}
12511
12512
12513SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12514 PyObject *resultobj = 0;
12515 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12516 long arg2 ;
12517 long arg3 ;
12518 void *argp1 = 0 ;
12519 int res1 = 0 ;
12520 long val2 ;
12521 int ecode2 = 0 ;
12522 long val3 ;
12523 int ecode3 = 0 ;
12524 PyObject * obj0 = 0 ;
12525 PyObject * obj1 = 0 ;
12526 PyObject * obj2 = 0 ;
12527 char * kwnames[] = {
2131d850 12528 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
12529 };
12530
12531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12533 if (!SWIG_IsOK(res1)) {
12534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12535 }
12536 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12537 ecode2 = SWIG_AsVal_long(obj1, &val2);
12538 if (!SWIG_IsOK(ecode2)) {
12539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12540 }
12541 arg2 = static_cast< long >(val2);
12542 ecode3 = SWIG_AsVal_long(obj2, &val3);
12543 if (!SWIG_IsOK(ecode3)) {
12544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12545 }
12546 arg3 = static_cast< long >(val3);
12547 {
12548 PyThreadState* __tstate = wxPyBeginAllowThreads();
12549 (arg1)->Remove(arg2,arg3);
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 resultobj = SWIG_Py_Void();
12554 return resultobj;
12555fail:
12556 return NULL;
12557}
12558
12559
12560SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12561 PyObject *resultobj = 0;
12562 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12563 wxString *arg2 = 0 ;
f5263701 12564 int arg3 = (int) wxTEXT_TYPE_ANY ;
0085ce49
RD
12565 bool result;
12566 void *argp1 = 0 ;
12567 int res1 = 0 ;
12568 bool temp2 = false ;
f5263701
RD
12569 int val3 ;
12570 int ecode3 = 0 ;
0085ce49
RD
12571 PyObject * obj0 = 0 ;
12572 PyObject * obj1 = 0 ;
f5263701 12573 PyObject * obj2 = 0 ;
0085ce49 12574 char * kwnames[] = {
f5263701 12575 (char *) "self",(char *) "file",(char *) "fileType", NULL
0085ce49
RD
12576 };
12577
f5263701 12578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
0085ce49
RD
12579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12580 if (!SWIG_IsOK(res1)) {
12581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12582 }
12583 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12584 {
12585 arg2 = wxString_in_helper(obj1);
12586 if (arg2 == NULL) SWIG_fail;
12587 temp2 = true;
12588 }
f5263701
RD
12589 if (obj2) {
12590 ecode3 = SWIG_AsVal_int(obj2, &val3);
12591 if (!SWIG_IsOK(ecode3)) {
12592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12593 }
12594 arg3 = static_cast< int >(val3);
12595 }
0085ce49
RD
12596 {
12597 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12598 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
0085ce49
RD
12599 wxPyEndAllowThreads(__tstate);
12600 if (PyErr_Occurred()) SWIG_fail;
12601 }
12602 {
12603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12604 }
12605 {
12606 if (temp2)
12607 delete arg2;
12608 }
12609 return resultobj;
12610fail:
12611 {
12612 if (temp2)
12613 delete arg2;
12614 }
12615 return NULL;
12616}
12617
12618
12619SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12620 PyObject *resultobj = 0;
12621 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12622 wxString const &arg2_defvalue = wxPyEmptyString ;
12623 wxString *arg2 = (wxString *) &arg2_defvalue ;
f5263701 12624 int arg3 = (int) wxTEXT_TYPE_ANY ;
0085ce49
RD
12625 bool result;
12626 void *argp1 = 0 ;
12627 int res1 = 0 ;
12628 bool temp2 = false ;
f5263701
RD
12629 int val3 ;
12630 int ecode3 = 0 ;
0085ce49
RD
12631 PyObject * obj0 = 0 ;
12632 PyObject * obj1 = 0 ;
f5263701 12633 PyObject * obj2 = 0 ;
0085ce49 12634 char * kwnames[] = {
f5263701 12635 (char *) "self",(char *) "file",(char *) "fileType", NULL
0085ce49
RD
12636 };
12637
f5263701 12638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
0085ce49
RD
12639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12640 if (!SWIG_IsOK(res1)) {
12641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12642 }
12643 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12644 if (obj1) {
4f89f6a3 12645 {
0085ce49
RD
12646 arg2 = wxString_in_helper(obj1);
12647 if (arg2 == NULL) SWIG_fail;
12648 temp2 = true;
4f89f6a3 12649 }
0085ce49 12650 }
f5263701
RD
12651 if (obj2) {
12652 ecode3 = SWIG_AsVal_int(obj2, &val3);
12653 if (!SWIG_IsOK(ecode3)) {
12654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12655 }
12656 arg3 = static_cast< int >(val3);
12657 }
0085ce49
RD
12658 {
12659 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12660 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
0085ce49
RD
12661 wxPyEndAllowThreads(__tstate);
12662 if (PyErr_Occurred()) SWIG_fail;
12663 }
12664 {
12665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12666 }
12667 {
12668 if (temp2)
12669 delete arg2;
12670 }
12671 return resultobj;
12672fail:
12673 {
12674 if (temp2)
12675 delete arg2;
12676 }
12677 return NULL;
d14a1e28
RD
12678}
12679
12680
0085ce49
RD
12681SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12682 PyObject *resultobj = 0;
12683 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12684 void *argp1 = 0 ;
12685 int res1 = 0 ;
12686 PyObject *swig_obj[1] ;
12687
12688 if (!args) SWIG_fail;
12689 swig_obj[0] = args;
12690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12691 if (!SWIG_IsOK(res1)) {
12692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12693 }
12694 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12695 {
12696 PyThreadState* __tstate = wxPyBeginAllowThreads();
12697 (arg1)->MarkDirty();
12698 wxPyEndAllowThreads(__tstate);
12699 if (PyErr_Occurred()) SWIG_fail;
12700 }
12701 resultobj = SWIG_Py_Void();
12702 return resultobj;
12703fail:
12704 return NULL;
d14a1e28
RD
12705}
12706
12707
0085ce49
RD
12708SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12709 PyObject *resultobj = 0;
12710 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12711 void *argp1 = 0 ;
12712 int res1 = 0 ;
12713 PyObject *swig_obj[1] ;
12714
12715 if (!args) SWIG_fail;
12716 swig_obj[0] = args;
12717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12718 if (!SWIG_IsOK(res1)) {
12719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12720 }
12721 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12722 {
12723 PyThreadState* __tstate = wxPyBeginAllowThreads();
12724 (arg1)->DiscardEdits();
12725 wxPyEndAllowThreads(__tstate);
12726 if (PyErr_Occurred()) SWIG_fail;
12727 }
12728 resultobj = SWIG_Py_Void();
12729 return resultobj;
12730fail:
12731 return NULL;
12732}
12733
12734
b02396e8
RD
12735SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12736 PyObject *resultobj = 0;
12737 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12738 bool arg2 ;
12739 void *argp1 = 0 ;
12740 int res1 = 0 ;
12741 bool val2 ;
12742 int ecode2 = 0 ;
12743 PyObject * obj0 = 0 ;
12744 PyObject * obj1 = 0 ;
12745 char * kwnames[] = {
12746 (char *) "self",(char *) "modified", NULL
12747 };
12748
12749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12751 if (!SWIG_IsOK(res1)) {
12752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12753 }
12754 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12755 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12756 if (!SWIG_IsOK(ecode2)) {
12757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12758 }
12759 arg2 = static_cast< bool >(val2);
12760 {
12761 PyThreadState* __tstate = wxPyBeginAllowThreads();
12762 (arg1)->SetModified(arg2);
12763 wxPyEndAllowThreads(__tstate);
12764 if (PyErr_Occurred()) SWIG_fail;
12765 }
12766 resultobj = SWIG_Py_Void();
12767 return resultobj;
12768fail:
12769 return NULL;
12770}
12771
12772
0085ce49
RD
12773SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12774 PyObject *resultobj = 0;
12775 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12776 unsigned long arg2 ;
12777 void *argp1 = 0 ;
12778 int res1 = 0 ;
12779 unsigned long val2 ;
12780 int ecode2 = 0 ;
12781 PyObject * obj0 = 0 ;
12782 PyObject * obj1 = 0 ;
12783 char * kwnames[] = {
12784 (char *) "self",(char *) "len", NULL
12785 };
12786
12787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12789 if (!SWIG_IsOK(res1)) {
12790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12791 }
12792 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12793 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12794 if (!SWIG_IsOK(ecode2)) {
12795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12796 }
12797 arg2 = static_cast< unsigned long >(val2);
12798 {
12799 PyThreadState* __tstate = wxPyBeginAllowThreads();
12800 (arg1)->SetMaxLength(arg2);
12801 wxPyEndAllowThreads(__tstate);
12802 if (PyErr_Occurred()) SWIG_fail;
12803 }
12804 resultobj = SWIG_Py_Void();
12805 return resultobj;
12806fail:
12807 return NULL;
12808}
12809
12810
12811SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12812 PyObject *resultobj = 0;
12813 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12814 wxString *arg2 = 0 ;
12815 void *argp1 = 0 ;
12816 int res1 = 0 ;
12817 bool temp2 = false ;
12818 PyObject * obj0 = 0 ;
12819 PyObject * obj1 = 0 ;
12820 char * kwnames[] = {
12821 (char *) "self",(char *) "text", NULL
12822 };
12823
12824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12826 if (!SWIG_IsOK(res1)) {
12827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12828 }
12829 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12830 {
12831 arg2 = wxString_in_helper(obj1);
12832 if (arg2 == NULL) SWIG_fail;
12833 temp2 = true;
12834 }
12835 {
12836 PyThreadState* __tstate = wxPyBeginAllowThreads();
12837 (arg1)->WriteText((wxString const &)*arg2);
12838 wxPyEndAllowThreads(__tstate);
12839 if (PyErr_Occurred()) SWIG_fail;
12840 }
12841 resultobj = SWIG_Py_Void();
12842 {
12843 if (temp2)
12844 delete arg2;
12845 }
12846 return resultobj;
12847fail:
12848 {
12849 if (temp2)
12850 delete arg2;
12851 }
12852 return NULL;
d14a1e28
RD
12853}
12854
12855
0085ce49
RD
12856SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12857 PyObject *resultobj = 0;
12858 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12859 wxString *arg2 = 0 ;
12860 void *argp1 = 0 ;
12861 int res1 = 0 ;
12862 bool temp2 = false ;
12863 PyObject * obj0 = 0 ;
12864 PyObject * obj1 = 0 ;
12865 char * kwnames[] = {
12866 (char *) "self",(char *) "text", NULL
12867 };
12868
12869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12871 if (!SWIG_IsOK(res1)) {
12872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12873 }
12874 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12875 {
12876 arg2 = wxString_in_helper(obj1);
12877 if (arg2 == NULL) SWIG_fail;
12878 temp2 = true;
12879 }
12880 {
12881 PyThreadState* __tstate = wxPyBeginAllowThreads();
12882 (arg1)->AppendText((wxString const &)*arg2);
12883 wxPyEndAllowThreads(__tstate);
12884 if (PyErr_Occurred()) SWIG_fail;
12885 }
12886 resultobj = SWIG_Py_Void();
12887 {
12888 if (temp2)
12889 delete arg2;
12890 }
12891 return resultobj;
12892fail:
12893 {
12894 if (temp2)
12895 delete arg2;
12896 }
12897 return NULL;
12898}
12899
12900
12901SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12902 PyObject *resultobj = 0;
12903 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12904 wxKeyEvent *arg2 = 0 ;
12905 bool result;
12906 void *argp1 = 0 ;
12907 int res1 = 0 ;
12908 void *argp2 = 0 ;
12909 int res2 = 0 ;
12910 PyObject * obj0 = 0 ;
12911 PyObject * obj1 = 0 ;
12912 char * kwnames[] = {
12913 (char *) "self",(char *) "event", NULL
12914 };
12915
12916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12918 if (!SWIG_IsOK(res1)) {
12919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12920 }
12921 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12922 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12923 if (!SWIG_IsOK(res2)) {
12924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12925 }
12926 if (!argp2) {
12927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12928 }
12929 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12930 {
12931 PyThreadState* __tstate = wxPyBeginAllowThreads();
12932 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12933 wxPyEndAllowThreads(__tstate);
12934 if (PyErr_Occurred()) SWIG_fail;
12935 }
12936 {
12937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12938 }
12939 return resultobj;
12940fail:
12941 return NULL;
12942}
12943
12944
12945SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12946 PyObject *resultobj = 0;
12947 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12948 long arg2 ;
12949 long arg3 ;
12950 wxTextAttr *arg4 = 0 ;
12951 bool result;
12952 void *argp1 = 0 ;
12953 int res1 = 0 ;
12954 long val2 ;
12955 int ecode2 = 0 ;
12956 long val3 ;
12957 int ecode3 = 0 ;
12958 void *argp4 = 0 ;
12959 int res4 = 0 ;
12960 PyObject * obj0 = 0 ;
12961 PyObject * obj1 = 0 ;
12962 PyObject * obj2 = 0 ;
12963 PyObject * obj3 = 0 ;
12964 char * kwnames[] = {
12965 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12966 };
12967
12968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12970 if (!SWIG_IsOK(res1)) {
12971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12972 }
12973 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12974 ecode2 = SWIG_AsVal_long(obj1, &val2);
12975 if (!SWIG_IsOK(ecode2)) {
12976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12977 }
12978 arg2 = static_cast< long >(val2);
12979 ecode3 = SWIG_AsVal_long(obj2, &val3);
12980 if (!SWIG_IsOK(ecode3)) {
12981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12982 }
12983 arg3 = static_cast< long >(val3);
12984 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12985 if (!SWIG_IsOK(res4)) {
12986 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12987 }
12988 if (!argp4) {
12989 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12990 }
12991 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12992 {
12993 PyThreadState* __tstate = wxPyBeginAllowThreads();
12994 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12995 wxPyEndAllowThreads(__tstate);
12996 if (PyErr_Occurred()) SWIG_fail;
12997 }
12998 {
12999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13000 }
13001 return resultobj;
13002fail:
13003 return NULL;
13004}
13005
13006
13007SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13008 PyObject *resultobj = 0;
13009 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13010 long arg2 ;
13011 wxTextAttr *arg3 = 0 ;
13012 bool result;
13013 void *argp1 = 0 ;
13014 int res1 = 0 ;
13015 long val2 ;
13016 int ecode2 = 0 ;
13017 void *argp3 = 0 ;
13018 int res3 = 0 ;
13019 PyObject * obj0 = 0 ;
13020 PyObject * obj1 = 0 ;
13021 PyObject * obj2 = 0 ;
13022 char * kwnames[] = {
13023 (char *) "self",(char *) "position",(char *) "style", NULL
13024 };
13025
13026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13028 if (!SWIG_IsOK(res1)) {
13029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13030 }
13031 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13032 ecode2 = SWIG_AsVal_long(obj1, &val2);
13033 if (!SWIG_IsOK(ecode2)) {
13034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
13035 }
13036 arg2 = static_cast< long >(val2);
13037 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
13038 if (!SWIG_IsOK(res3)) {
13039 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13040 }
13041 if (!argp3) {
13042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13043 }
13044 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
13045 {
13046 PyThreadState* __tstate = wxPyBeginAllowThreads();
13047 result = (bool)(arg1)->GetStyle(arg2,*arg3);
13048 wxPyEndAllowThreads(__tstate);
13049 if (PyErr_Occurred()) SWIG_fail;
13050 }
13051 {
13052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13053 }
13054 return resultobj;
13055fail:
13056 return NULL;
13057}
13058
13059
13060SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13061 PyObject *resultobj = 0;
13062 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13063 wxTextAttr *arg2 = 0 ;
13064 bool result;
13065 void *argp1 = 0 ;
13066 int res1 = 0 ;
13067 void *argp2 = 0 ;
13068 int res2 = 0 ;
13069 PyObject * obj0 = 0 ;
13070 PyObject * obj1 = 0 ;
13071 char * kwnames[] = {
13072 (char *) "self",(char *) "style", NULL
13073 };
13074
13075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13077 if (!SWIG_IsOK(res1)) {
13078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13079 }
13080 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13081 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13082 if (!SWIG_IsOK(res2)) {
13083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13084 }
13085 if (!argp2) {
13086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13087 }
13088 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13089 {
13090 PyThreadState* __tstate = wxPyBeginAllowThreads();
13091 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13092 wxPyEndAllowThreads(__tstate);
13093 if (PyErr_Occurred()) SWIG_fail;
13094 }
13095 {
13096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13097 }
13098 return resultobj;
13099fail:
13100 return NULL;
d14a1e28
RD
13101}
13102
13103
0085ce49
RD
13104SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13105 PyObject *resultobj = 0;
13106 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13107 wxTextAttr *result = 0 ;
13108 void *argp1 = 0 ;
13109 int res1 = 0 ;
13110 PyObject *swig_obj[1] ;
13111
13112 if (!args) SWIG_fail;
13113 swig_obj[0] = args;
13114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13115 if (!SWIG_IsOK(res1)) {
13116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13117 }
13118 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13119 {
13120 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 13121 {
0085ce49
RD
13122 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13123 result = (wxTextAttr *) &_result_ref;
093d3ff1 13124 }
0085ce49
RD
13125 wxPyEndAllowThreads(__tstate);
13126 if (PyErr_Occurred()) SWIG_fail;
13127 }
13128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13129 return resultobj;
13130fail:
13131 return NULL;
13132}
13133
13134
13135SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13136 PyObject *resultobj = 0;
13137 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13138 long arg2 ;
13139 long arg3 ;
13140 long result;
13141 void *argp1 = 0 ;
13142 int res1 = 0 ;
13143 long val2 ;
13144 int ecode2 = 0 ;
13145 long val3 ;
13146 int ecode3 = 0 ;
13147 PyObject * obj0 = 0 ;
13148 PyObject * obj1 = 0 ;
13149 PyObject * obj2 = 0 ;
13150 char * kwnames[] = {
13151 (char *) "self",(char *) "x",(char *) "y", NULL
13152 };
13153
13154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13156 if (!SWIG_IsOK(res1)) {
13157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13158 }
13159 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13160 ecode2 = SWIG_AsVal_long(obj1, &val2);
13161 if (!SWIG_IsOK(ecode2)) {
13162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13163 }
13164 arg2 = static_cast< long >(val2);
13165 ecode3 = SWIG_AsVal_long(obj2, &val3);
13166 if (!SWIG_IsOK(ecode3)) {
13167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13168 }
13169 arg3 = static_cast< long >(val3);
13170 {
13171 PyThreadState* __tstate = wxPyBeginAllowThreads();
13172 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13173 wxPyEndAllowThreads(__tstate);
13174 if (PyErr_Occurred()) SWIG_fail;
13175 }
13176 resultobj = SWIG_From_long(static_cast< long >(result));
13177 return resultobj;
13178fail:
13179 return NULL;
13180}
13181
13182
13183SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13184 PyObject *resultobj = 0;
13185 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13186 long arg2 ;
13187 long *arg3 = (long *) 0 ;
13188 long *arg4 = (long *) 0 ;
13189 void *argp1 = 0 ;
13190 int res1 = 0 ;
13191 long val2 ;
13192 int ecode2 = 0 ;
13193 long temp3 ;
13194 int res3 = SWIG_TMPOBJ ;
13195 long temp4 ;
13196 int res4 = SWIG_TMPOBJ ;
13197 PyObject * obj0 = 0 ;
13198 PyObject * obj1 = 0 ;
13199 char * kwnames[] = {
13200 (char *) "self",(char *) "pos", NULL
13201 };
13202
13203 arg3 = &temp3;
13204 arg4 = &temp4;
13205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13207 if (!SWIG_IsOK(res1)) {
13208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13209 }
13210 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13211 ecode2 = SWIG_AsVal_long(obj1, &val2);
13212 if (!SWIG_IsOK(ecode2)) {
13213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13214 }
13215 arg2 = static_cast< long >(val2);
13216 {
13217 PyThreadState* __tstate = wxPyBeginAllowThreads();
13218 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13219 wxPyEndAllowThreads(__tstate);
13220 if (PyErr_Occurred()) SWIG_fail;
13221 }
13222 resultobj = SWIG_Py_Void();
13223 if (SWIG_IsTmpObj(res3)) {
13224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13225 } else {
13226 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13227 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13228 }
13229 if (SWIG_IsTmpObj(res4)) {
13230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13231 } else {
13232 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13234 }
13235 return resultobj;
13236fail:
13237 return NULL;
13238}
13239
13240
13241SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13242 PyObject *resultobj = 0;
13243 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13244 long arg2 ;
13245 void *argp1 = 0 ;
13246 int res1 = 0 ;
13247 long val2 ;
13248 int ecode2 = 0 ;
13249 PyObject * obj0 = 0 ;
13250 PyObject * obj1 = 0 ;
13251 char * kwnames[] = {
13252 (char *) "self",(char *) "pos", NULL
13253 };
13254
13255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13257 if (!SWIG_IsOK(res1)) {
13258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13259 }
13260 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13261 ecode2 = SWIG_AsVal_long(obj1, &val2);
13262 if (!SWIG_IsOK(ecode2)) {
13263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13264 }
13265 arg2 = static_cast< long >(val2);
13266 {
13267 PyThreadState* __tstate = wxPyBeginAllowThreads();
13268 (arg1)->ShowPosition(arg2);
13269 wxPyEndAllowThreads(__tstate);
13270 if (PyErr_Occurred()) SWIG_fail;
13271 }
13272 resultobj = SWIG_Py_Void();
13273 return resultobj;
13274fail:
13275 return NULL;
13276}
13277
13278
13279SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13280 PyObject *resultobj = 0;
13281 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13282 wxPoint *arg2 = 0 ;
13283 long *arg3 = (long *) 0 ;
13284 long *arg4 = (long *) 0 ;
13285 wxTextCtrlHitTestResult result;
13286 void *argp1 = 0 ;
13287 int res1 = 0 ;
13288 wxPoint temp2 ;
13289 long temp3 ;
13290 int res3 = SWIG_TMPOBJ ;
13291 long temp4 ;
13292 int res4 = SWIG_TMPOBJ ;
13293 PyObject * obj0 = 0 ;
13294 PyObject * obj1 = 0 ;
13295 char * kwnames[] = {
13296 (char *) "self",(char *) "pt", NULL
13297 };
13298
13299 arg3 = &temp3;
13300 arg4 = &temp4;
13301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13303 if (!SWIG_IsOK(res1)) {
13304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13305 }
13306 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13307 {
13308 arg2 = &temp2;
13309 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13310 }
13311 {
13312 PyThreadState* __tstate = wxPyBeginAllowThreads();
13313 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13314 wxPyEndAllowThreads(__tstate);
13315 if (PyErr_Occurred()) SWIG_fail;
13316 }
13317 resultobj = SWIG_From_int(static_cast< int >(result));
13318 if (SWIG_IsTmpObj(res3)) {
13319 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13320 } else {
13321 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13322 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13323 }
13324 if (SWIG_IsTmpObj(res4)) {
13325 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13326 } else {
13327 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13328 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13329 }
13330 return resultobj;
13331fail:
13332 return NULL;
13333}
13334
13335
13336SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13337 PyObject *resultobj = 0;
13338 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13339 wxPoint *arg2 = 0 ;
13340 long *arg3 = (long *) 0 ;
13341 wxTextCtrlHitTestResult result;
13342 void *argp1 = 0 ;
13343 int res1 = 0 ;
13344 wxPoint temp2 ;
13345 long temp3 ;
13346 int res3 = SWIG_TMPOBJ ;
13347 PyObject * obj0 = 0 ;
13348 PyObject * obj1 = 0 ;
13349 char * kwnames[] = {
13350 (char *) "self",(char *) "pt", NULL
13351 };
13352
13353 arg3 = &temp3;
13354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13356 if (!SWIG_IsOK(res1)) {
13357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13358 }
13359 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13360 {
13361 arg2 = &temp2;
13362 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13363 }
13364 {
13365 PyThreadState* __tstate = wxPyBeginAllowThreads();
13366 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13367 wxPyEndAllowThreads(__tstate);
13368 if (PyErr_Occurred()) SWIG_fail;
13369 }
13370 resultobj = SWIG_From_int(static_cast< int >(result));
13371 if (SWIG_IsTmpObj(res3)) {
13372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13373 } else {
13374 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13376 }
13377 return resultobj;
13378fail:
13379 return NULL;
d14a1e28
RD
13380}
13381
13382
0085ce49
RD
13383SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13384 PyObject *resultobj = 0;
13385 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13386 void *argp1 = 0 ;
13387 int res1 = 0 ;
13388 PyObject *swig_obj[1] ;
13389
13390 if (!args) SWIG_fail;
13391 swig_obj[0] = args;
13392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13393 if (!SWIG_IsOK(res1)) {
13394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13395 }
13396 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13397 {
13398 PyThreadState* __tstate = wxPyBeginAllowThreads();
13399 (arg1)->Copy();
13400 wxPyEndAllowThreads(__tstate);
13401 if (PyErr_Occurred()) SWIG_fail;
13402 }
13403 resultobj = SWIG_Py_Void();
13404 return resultobj;
13405fail:
13406 return NULL;
d14a1e28 13407}
0085ce49
RD
13408
13409
13410SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13411 PyObject *resultobj = 0;
13412 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13413 void *argp1 = 0 ;
13414 int res1 = 0 ;
13415 PyObject *swig_obj[1] ;
13416
13417 if (!args) SWIG_fail;
13418 swig_obj[0] = args;
13419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13420 if (!SWIG_IsOK(res1)) {
13421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13422 }
13423 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13424 {
13425 PyThreadState* __tstate = wxPyBeginAllowThreads();
13426 (arg1)->Cut();
13427 wxPyEndAllowThreads(__tstate);
13428 if (PyErr_Occurred()) SWIG_fail;
13429 }
13430 resultobj = SWIG_Py_Void();
13431 return resultobj;
13432fail:
13433 return NULL;
b2dc1044
RD
13434}
13435
13436
0085ce49
RD
13437SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13438 PyObject *resultobj = 0;
13439 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13440 void *argp1 = 0 ;
13441 int res1 = 0 ;
13442 PyObject *swig_obj[1] ;
13443
13444 if (!args) SWIG_fail;
13445 swig_obj[0] = args;
13446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13447 if (!SWIG_IsOK(res1)) {
13448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13449 }
13450 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13451 {
13452 PyThreadState* __tstate = wxPyBeginAllowThreads();
13453 (arg1)->Paste();
13454 wxPyEndAllowThreads(__tstate);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 }
13457 resultobj = SWIG_Py_Void();
13458 return resultobj;
13459fail:
13460 return NULL;
d14a1e28
RD
13461}
13462
13463
0085ce49
RD
13464SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13465 PyObject *resultobj = 0;
13466 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13467 bool result;
13468 void *argp1 = 0 ;
13469 int res1 = 0 ;
13470 PyObject *swig_obj[1] ;
13471
13472 if (!args) SWIG_fail;
13473 swig_obj[0] = args;
13474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13475 if (!SWIG_IsOK(res1)) {
13476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13477 }
13478 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13479 {
13480 PyThreadState* __tstate = wxPyBeginAllowThreads();
13481 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13482 wxPyEndAllowThreads(__tstate);
13483 if (PyErr_Occurred()) SWIG_fail;
13484 }
13485 {
13486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13487 }
13488 return resultobj;
13489fail:
13490 return NULL;
d14a1e28
RD
13491}
13492
13493
0085ce49
RD
13494SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13495 PyObject *resultobj = 0;
13496 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13497 bool result;
13498 void *argp1 = 0 ;
13499 int res1 = 0 ;
13500 PyObject *swig_obj[1] ;
13501
13502 if (!args) SWIG_fail;
13503 swig_obj[0] = args;
13504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13505 if (!SWIG_IsOK(res1)) {
13506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13507 }
13508 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13509 {
13510 PyThreadState* __tstate = wxPyBeginAllowThreads();
13511 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13512 wxPyEndAllowThreads(__tstate);
13513 if (PyErr_Occurred()) SWIG_fail;
13514 }
13515 {
13516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13517 }
13518 return resultobj;
13519fail:
13520 return NULL;
994141e6
RD
13521}
13522
13523
0085ce49
RD
13524SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13525 PyObject *resultobj = 0;
13526 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13527 bool result;
13528 void *argp1 = 0 ;
13529 int res1 = 0 ;
13530 PyObject *swig_obj[1] ;
13531
13532 if (!args) SWIG_fail;
13533 swig_obj[0] = args;
13534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13535 if (!SWIG_IsOK(res1)) {
13536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13537 }
13538 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13539 {
13540 PyThreadState* __tstate = wxPyBeginAllowThreads();
13541 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13542 wxPyEndAllowThreads(__tstate);
13543 if (PyErr_Occurred()) SWIG_fail;
13544 }
13545 {
13546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13547 }
13548 return resultobj;
13549fail:
13550 return NULL;
d14a1e28
RD
13551}
13552
13553
0085ce49
RD
13554SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13555 PyObject *resultobj = 0;
13556 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13557 void *argp1 = 0 ;
13558 int res1 = 0 ;
13559 PyObject *swig_obj[1] ;
13560
13561 if (!args) SWIG_fail;
13562 swig_obj[0] = args;
13563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13564 if (!SWIG_IsOK(res1)) {
13565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13566 }
13567 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13568 {
13569 PyThreadState* __tstate = wxPyBeginAllowThreads();
13570 (arg1)->Undo();
13571 wxPyEndAllowThreads(__tstate);
13572 if (PyErr_Occurred()) SWIG_fail;
13573 }
13574 resultobj = SWIG_Py_Void();
13575 return resultobj;
13576fail:
13577 return NULL;
d14a1e28
RD
13578}
13579
13580
0085ce49
RD
13581SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13582 PyObject *resultobj = 0;
13583 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13584 void *argp1 = 0 ;
13585 int res1 = 0 ;
13586 PyObject *swig_obj[1] ;
13587
13588 if (!args) SWIG_fail;
13589 swig_obj[0] = args;
13590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13591 if (!SWIG_IsOK(res1)) {
13592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13593 }
13594 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13595 {
13596 PyThreadState* __tstate = wxPyBeginAllowThreads();
13597 (arg1)->Redo();
13598 wxPyEndAllowThreads(__tstate);
13599 if (PyErr_Occurred()) SWIG_fail;
13600 }
13601 resultobj = SWIG_Py_Void();
13602 return resultobj;
13603fail:
13604 return NULL;
d14a1e28
RD
13605}
13606
13607
0085ce49
RD
13608SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13609 PyObject *resultobj = 0;
13610 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13611 bool result;
13612 void *argp1 = 0 ;
13613 int res1 = 0 ;
13614 PyObject *swig_obj[1] ;
13615
13616 if (!args) SWIG_fail;
13617 swig_obj[0] = args;
13618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13619 if (!SWIG_IsOK(res1)) {
13620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13621 }
13622 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13623 {
13624 PyThreadState* __tstate = wxPyBeginAllowThreads();
13625 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13626 wxPyEndAllowThreads(__tstate);
13627 if (PyErr_Occurred()) SWIG_fail;
13628 }
13629 {
13630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13631 }
13632 return resultobj;
13633fail:
13634 return NULL;
d14a1e28
RD
13635}
13636
13637
0085ce49
RD
13638SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13639 PyObject *resultobj = 0;
13640 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13641 bool result;
13642 void *argp1 = 0 ;
13643 int res1 = 0 ;
13644 PyObject *swig_obj[1] ;
13645
13646 if (!args) SWIG_fail;
13647 swig_obj[0] = args;
13648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13649 if (!SWIG_IsOK(res1)) {
13650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13651 }
13652 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13653 {
13654 PyThreadState* __tstate = wxPyBeginAllowThreads();
13655 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13656 wxPyEndAllowThreads(__tstate);
13657 if (PyErr_Occurred()) SWIG_fail;
13658 }
13659 {
13660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13661 }
13662 return resultobj;
13663fail:
13664 return NULL;
13665}
13666
13667
13668SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13669 PyObject *resultobj = 0;
13670 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13671 long arg2 ;
13672 void *argp1 = 0 ;
13673 int res1 = 0 ;
13674 long val2 ;
13675 int ecode2 = 0 ;
13676 PyObject * obj0 = 0 ;
13677 PyObject * obj1 = 0 ;
13678 char * kwnames[] = {
13679 (char *) "self",(char *) "pos", NULL
13680 };
13681
13682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13684 if (!SWIG_IsOK(res1)) {
13685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13686 }
13687 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13688 ecode2 = SWIG_AsVal_long(obj1, &val2);
13689 if (!SWIG_IsOK(ecode2)) {
13690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13691 }
13692 arg2 = static_cast< long >(val2);
13693 {
13694 PyThreadState* __tstate = wxPyBeginAllowThreads();
13695 (arg1)->SetInsertionPoint(arg2);
13696 wxPyEndAllowThreads(__tstate);
13697 if (PyErr_Occurred()) SWIG_fail;
13698 }
13699 resultobj = SWIG_Py_Void();
13700 return resultobj;
13701fail:
13702 return NULL;
d14a1e28
RD
13703}
13704
13705
0085ce49
RD
13706SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13707 PyObject *resultobj = 0;
13708 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13709 void *argp1 = 0 ;
13710 int res1 = 0 ;
13711 PyObject *swig_obj[1] ;
13712
13713 if (!args) SWIG_fail;
13714 swig_obj[0] = args;
13715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13716 if (!SWIG_IsOK(res1)) {
13717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13718 }
13719 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13720 {
13721 PyThreadState* __tstate = wxPyBeginAllowThreads();
13722 (arg1)->SetInsertionPointEnd();
13723 wxPyEndAllowThreads(__tstate);
13724 if (PyErr_Occurred()) SWIG_fail;
13725 }
13726 resultobj = SWIG_Py_Void();
13727 return resultobj;
13728fail:
13729 return NULL;
d14a1e28
RD
13730}
13731
13732
0085ce49
RD
13733SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13734 PyObject *resultobj = 0;
13735 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13736 long result;
13737 void *argp1 = 0 ;
13738 int res1 = 0 ;
13739 PyObject *swig_obj[1] ;
13740
13741 if (!args) SWIG_fail;
13742 swig_obj[0] = args;
13743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13744 if (!SWIG_IsOK(res1)) {
13745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13746 }
13747 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13748 {
13749 PyThreadState* __tstate = wxPyBeginAllowThreads();
13750 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13751 wxPyEndAllowThreads(__tstate);
13752 if (PyErr_Occurred()) SWIG_fail;
13753 }
13754 resultobj = SWIG_From_long(static_cast< long >(result));
13755 return resultobj;
13756fail:
13757 return NULL;
d14a1e28
RD
13758}
13759
13760
0085ce49
RD
13761SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13762 PyObject *resultobj = 0;
13763 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13764 long result;
13765 void *argp1 = 0 ;
13766 int res1 = 0 ;
13767 PyObject *swig_obj[1] ;
13768
13769 if (!args) SWIG_fail;
13770 swig_obj[0] = args;
13771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13772 if (!SWIG_IsOK(res1)) {
13773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13774 }
13775 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13776 {
13777 PyThreadState* __tstate = wxPyBeginAllowThreads();
13778 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13779 wxPyEndAllowThreads(__tstate);
13780 if (PyErr_Occurred()) SWIG_fail;
13781 }
13782 resultobj = SWIG_From_long(static_cast< long >(result));
13783 return resultobj;
13784fail:
13785 return NULL;
13786}
13787
13788
13789SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13790 PyObject *resultobj = 0;
13791 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13792 long arg2 ;
13793 long arg3 ;
13794 void *argp1 = 0 ;
13795 int res1 = 0 ;
13796 long val2 ;
13797 int ecode2 = 0 ;
13798 long val3 ;
13799 int ecode3 = 0 ;
13800 PyObject * obj0 = 0 ;
13801 PyObject * obj1 = 0 ;
13802 PyObject * obj2 = 0 ;
13803 char * kwnames[] = {
2131d850 13804 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
13805 };
13806
13807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13809 if (!SWIG_IsOK(res1)) {
13810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13811 }
13812 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13813 ecode2 = SWIG_AsVal_long(obj1, &val2);
13814 if (!SWIG_IsOK(ecode2)) {
13815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13816 }
13817 arg2 = static_cast< long >(val2);
13818 ecode3 = SWIG_AsVal_long(obj2, &val3);
13819 if (!SWIG_IsOK(ecode3)) {
13820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13821 }
13822 arg3 = static_cast< long >(val3);
13823 {
13824 PyThreadState* __tstate = wxPyBeginAllowThreads();
13825 (arg1)->SetSelection(arg2,arg3);
13826 wxPyEndAllowThreads(__tstate);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 }
13829 resultobj = SWIG_Py_Void();
13830 return resultobj;
13831fail:
13832 return NULL;
d14a1e28
RD
13833}
13834
13835
0085ce49
RD
13836SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13837 PyObject *resultobj = 0;
13838 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13839 void *argp1 = 0 ;
13840 int res1 = 0 ;
13841 PyObject *swig_obj[1] ;
13842
13843 if (!args) SWIG_fail;
13844 swig_obj[0] = args;
13845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13846 if (!SWIG_IsOK(res1)) {
13847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13848 }
13849 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13850 {
13851 PyThreadState* __tstate = wxPyBeginAllowThreads();
13852 (arg1)->SelectAll();
13853 wxPyEndAllowThreads(__tstate);
13854 if (PyErr_Occurred()) SWIG_fail;
13855 }
13856 resultobj = SWIG_Py_Void();
13857 return resultobj;
13858fail:
13859 return NULL;
13860}
13861
13862
13863SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13864 PyObject *resultobj = 0;
13865 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13866 bool arg2 ;
13867 void *argp1 = 0 ;
13868 int res1 = 0 ;
13869 bool val2 ;
13870 int ecode2 = 0 ;
13871 PyObject * obj0 = 0 ;
13872 PyObject * obj1 = 0 ;
13873 char * kwnames[] = {
13874 (char *) "self",(char *) "editable", NULL
13875 };
13876
13877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13879 if (!SWIG_IsOK(res1)) {
13880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13881 }
13882 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13883 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13884 if (!SWIG_IsOK(ecode2)) {
13885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13886 }
13887 arg2 = static_cast< bool >(val2);
13888 {
13889 PyThreadState* __tstate = wxPyBeginAllowThreads();
13890 (arg1)->SetEditable(arg2);
13891 wxPyEndAllowThreads(__tstate);
13892 if (PyErr_Occurred()) SWIG_fail;
13893 }
13894 resultobj = SWIG_Py_Void();
13895 return resultobj;
13896fail:
13897 return NULL;
13898}
13899
13900
d7645bfd
VZ
13901SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13902 PyObject *resultobj = 0;
13903 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13904 bool arg2 ;
13905 void *argp1 = 0 ;
13906 int res1 = 0 ;
13907 bool val2 ;
13908 int ecode2 = 0 ;
13909 PyObject * obj0 = 0 ;
13910 PyObject * obj1 = 0 ;
13911 char * kwnames[] = {
13912 (char *) "self",(char *) "check", NULL
13913 };
13914
13915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail;
13916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13917 if (!SWIG_IsOK(res1)) {
13918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13919 }
13920 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13921 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13922 if (!SWIG_IsOK(ecode2)) {
13923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'");
13924 }
13925 arg2 = static_cast< bool >(val2);
13926 {
13927 PyThreadState* __tstate = wxPyBeginAllowThreads();
13928 wxTextCtrl_MacCheckSpelling(arg1,arg2);
13929 wxPyEndAllowThreads(__tstate);
13930 if (PyErr_Occurred()) SWIG_fail;
13931 }
13932 resultobj = SWIG_Py_Void();
13933 return resultobj;
13934fail:
13935 return NULL;
13936}
13937
13938
b39fe951
RD
13939SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13940 PyObject *resultobj = 0;
13941 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13942 void *argp1 = 0 ;
13943 int res1 = 0 ;
13944 PyObject *swig_obj[1] ;
13945
13946 if (!args) SWIG_fail;
13947 swig_obj[0] = args;
13948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13949 if (!SWIG_IsOK(res1)) {
13950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13951 }
13952 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13953 {
13954 PyThreadState* __tstate = wxPyBeginAllowThreads();
13955 (arg1)->SendTextUpdatedEvent();
13956 wxPyEndAllowThreads(__tstate);
13957 if (PyErr_Occurred()) SWIG_fail;
13958 }
13959 resultobj = SWIG_Py_Void();
13960 return resultobj;
13961fail:
13962 return NULL;
13963}
13964
13965
0085ce49
RD
13966SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13967 PyObject *resultobj = 0;
13968 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13969 wxString *arg2 = 0 ;
13970 void *argp1 = 0 ;
13971 int res1 = 0 ;
13972 bool temp2 = false ;
13973 PyObject * obj0 = 0 ;
13974 PyObject * obj1 = 0 ;
13975 char * kwnames[] = {
13976 (char *) "self",(char *) "text", NULL
13977 };
13978
13979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13981 if (!SWIG_IsOK(res1)) {
13982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13983 }
13984 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13985 {
13986 arg2 = wxString_in_helper(obj1);
13987 if (arg2 == NULL) SWIG_fail;
13988 temp2 = true;
13989 }
13990 {
13991 PyThreadState* __tstate = wxPyBeginAllowThreads();
13992 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13993 wxPyEndAllowThreads(__tstate);
13994 if (PyErr_Occurred()) SWIG_fail;
13995 }
13996 resultobj = SWIG_Py_Void();
13997 {
13998 if (temp2)
13999 delete arg2;
14000 }
14001 return resultobj;
14002fail:
14003 {
14004 if (temp2)
14005 delete arg2;
14006 }
14007 return NULL;
14008}
14009
14010
14011SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14012 PyObject *resultobj = 0;
14013 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14014 long arg2 ;
14015 long arg3 ;
14016 wxString result;
14017 void *argp1 = 0 ;
14018 int res1 = 0 ;
14019 long val2 ;
14020 int ecode2 = 0 ;
14021 long val3 ;
14022 int ecode3 = 0 ;
14023 PyObject * obj0 = 0 ;
14024 PyObject * obj1 = 0 ;
14025 PyObject * obj2 = 0 ;
14026 char * kwnames[] = {
2131d850 14027 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
14028 };
14029
14030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14032 if (!SWIG_IsOK(res1)) {
14033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14034 }
14035 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14036 ecode2 = SWIG_AsVal_long(obj1, &val2);
14037 if (!SWIG_IsOK(ecode2)) {
14038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
14039 }
14040 arg2 = static_cast< long >(val2);
14041 ecode3 = SWIG_AsVal_long(obj2, &val3);
14042 if (!SWIG_IsOK(ecode3)) {
14043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
14044 }
14045 arg3 = static_cast< long >(val3);
14046 {
14047 PyThreadState* __tstate = wxPyBeginAllowThreads();
14048 result = wxTextCtrl_GetString(arg1,arg2,arg3);
14049 wxPyEndAllowThreads(__tstate);
14050 if (PyErr_Occurred()) SWIG_fail;
14051 }
14052 {
14053#if wxUSE_UNICODE
14054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14055#else
14056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14057#endif
14058 }
14059 return resultobj;
14060fail:
14061 return NULL;
d14a1e28
RD
14062}
14063
14064
0085ce49
RD
14065SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14066 PyObject *resultobj = 0;
14067 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14068 SwigValueWrapper<wxVisualAttributes > result;
14069 int val1 ;
14070 int ecode1 = 0 ;
14071 PyObject * obj0 = 0 ;
14072 char * kwnames[] = {
14073 (char *) "variant", NULL
14074 };
14075
14076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14077 if (obj0) {
14078 ecode1 = SWIG_AsVal_int(obj0, &val1);
14079 if (!SWIG_IsOK(ecode1)) {
14080 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14081 }
14082 arg1 = static_cast< wxWindowVariant >(val1);
14083 }
14084 {
14085 if (!wxPyCheckForApp()) SWIG_fail;
14086 PyThreadState* __tstate = wxPyBeginAllowThreads();
14087 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14088 wxPyEndAllowThreads(__tstate);
14089 if (PyErr_Occurred()) SWIG_fail;
14090 }
14091 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14092 return resultobj;
14093fail:
14094 return NULL;
14095}
14096
14097
14098SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14099 PyObject *obj;
14100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14101 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14102 return SWIG_Py_Void();
14103}
14104
14105SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14106 return SWIG_Python_InitShadowInstance(args);
14107}
14108
14109SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14110 PyObject *resultobj = 0;
14111 int arg1 ;
14112 wxMouseEvent *arg2 = 0 ;
14113 long arg3 ;
14114 long arg4 ;
14115 wxTextUrlEvent *result = 0 ;
14116 int val1 ;
14117 int ecode1 = 0 ;
14118 void *argp2 = 0 ;
14119 int res2 = 0 ;
14120 long val3 ;
14121 int ecode3 = 0 ;
14122 long val4 ;
14123 int ecode4 = 0 ;
14124 PyObject * obj0 = 0 ;
14125 PyObject * obj1 = 0 ;
14126 PyObject * obj2 = 0 ;
14127 PyObject * obj3 = 0 ;
14128 char * kwnames[] = {
14129 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14130 };
14131
14132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14133 ecode1 = SWIG_AsVal_int(obj0, &val1);
14134 if (!SWIG_IsOK(ecode1)) {
14135 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14136 }
14137 arg1 = static_cast< int >(val1);
14138 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14139 if (!SWIG_IsOK(res2)) {
14140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14141 }
14142 if (!argp2) {
14143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14144 }
14145 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14146 ecode3 = SWIG_AsVal_long(obj2, &val3);
14147 if (!SWIG_IsOK(ecode3)) {
14148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14149 }
14150 arg3 = static_cast< long >(val3);
14151 ecode4 = SWIG_AsVal_long(obj3, &val4);
14152 if (!SWIG_IsOK(ecode4)) {
14153 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14154 }
14155 arg4 = static_cast< long >(val4);
14156 {
14157 PyThreadState* __tstate = wxPyBeginAllowThreads();
14158 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14159 wxPyEndAllowThreads(__tstate);
14160 if (PyErr_Occurred()) SWIG_fail;
14161 }
14162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14163 return resultobj;
14164fail:
14165 return NULL;
d14a1e28
RD
14166}
14167
14168
0085ce49
RD
14169SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14170 PyObject *resultobj = 0;
14171 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14172 wxMouseEvent *result = 0 ;
14173 void *argp1 = 0 ;
14174 int res1 = 0 ;
14175 PyObject *swig_obj[1] ;
14176
14177 if (!args) SWIG_fail;
14178 swig_obj[0] = args;
14179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14180 if (!SWIG_IsOK(res1)) {
14181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14182 }
14183 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14184 {
14185 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 14186 {
0085ce49
RD
14187 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14188 result = (wxMouseEvent *) &_result_ref;
4f89f6a3 14189 }
0085ce49
RD
14190 wxPyEndAllowThreads(__tstate);
14191 if (PyErr_Occurred()) SWIG_fail;
14192 }
14193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14194 return resultobj;
14195fail:
14196 return NULL;
d14a1e28
RD
14197}
14198
14199
0085ce49
RD
14200SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14201 PyObject *resultobj = 0;
14202 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14203 long result;
14204 void *argp1 = 0 ;
14205 int res1 = 0 ;
14206 PyObject *swig_obj[1] ;
14207
14208 if (!args) SWIG_fail;
14209 swig_obj[0] = args;
14210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14211 if (!SWIG_IsOK(res1)) {
14212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14213 }
14214 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14215 {
14216 PyThreadState* __tstate = wxPyBeginAllowThreads();
14217 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14218 wxPyEndAllowThreads(__tstate);
14219 if (PyErr_Occurred()) SWIG_fail;
14220 }
14221 resultobj = SWIG_From_long(static_cast< long >(result));
14222 return resultobj;
14223fail:
14224 return NULL;
d14a1e28
RD
14225}
14226
14227
0085ce49
RD
14228SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14229 PyObject *resultobj = 0;
14230 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14231 long result;
14232 void *argp1 = 0 ;
14233 int res1 = 0 ;
14234 PyObject *swig_obj[1] ;
14235
14236 if (!args) SWIG_fail;
14237 swig_obj[0] = args;
14238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14239 if (!SWIG_IsOK(res1)) {
14240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14241 }
14242 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14243 {
14244 PyThreadState* __tstate = wxPyBeginAllowThreads();
14245 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14246 wxPyEndAllowThreads(__tstate);
14247 if (PyErr_Occurred()) SWIG_fail;
14248 }
14249 resultobj = SWIG_From_long(static_cast< long >(result));
14250 return resultobj;
14251fail:
14252 return NULL;
d14a1e28
RD
14253}
14254
14255
0085ce49
RD
14256SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14257 PyObject *obj;
14258 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14259 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14260 return SWIG_Py_Void();
d14a1e28
RD
14261}
14262
0085ce49
RD
14263SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14264 return SWIG_Python_InitShadowInstance(args);
14265}
d14a1e28 14266
0085ce49
RD
14267SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14268 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14269 return 1;
14270}
14271
14272
14273SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14274 PyObject *pyobj = 0;
14275
14276 {
14277#if wxUSE_UNICODE
14278 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14279#else
14280 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14281#endif
14282 }
14283 return pyobj;
14284}
14285
14286
14287SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14288 PyObject *resultobj = 0;
14289 wxWindow *arg1 = (wxWindow *) 0 ;
14290 int arg2 = (int) -1 ;
14291 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14292 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14293 wxSize const &arg4_defvalue = wxDefaultSize ;
14294 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14295 long arg5 = (long) wxSB_HORIZONTAL ;
14296 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14297 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14298 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14299 wxString *arg7 = (wxString *) &arg7_defvalue ;
14300 wxScrollBar *result = 0 ;
14301 void *argp1 = 0 ;
14302 int res1 = 0 ;
14303 int val2 ;
14304 int ecode2 = 0 ;
14305 wxPoint temp3 ;
14306 wxSize temp4 ;
14307 long val5 ;
14308 int ecode5 = 0 ;
14309 void *argp6 = 0 ;
14310 int res6 = 0 ;
14311 bool temp7 = false ;
14312 PyObject * obj0 = 0 ;
14313 PyObject * obj1 = 0 ;
14314 PyObject * obj2 = 0 ;
14315 PyObject * obj3 = 0 ;
14316 PyObject * obj4 = 0 ;
14317 PyObject * obj5 = 0 ;
14318 PyObject * obj6 = 0 ;
14319 char * kwnames[] = {
14320 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14321 };
14322
14323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14325 if (!SWIG_IsOK(res1)) {
14326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14327 }
14328 arg1 = reinterpret_cast< wxWindow * >(argp1);
14329 if (obj1) {
14330 ecode2 = SWIG_AsVal_int(obj1, &val2);
14331 if (!SWIG_IsOK(ecode2)) {
14332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14333 }
14334 arg2 = static_cast< int >(val2);
14335 }
14336 if (obj2) {
d14a1e28 14337 {
0085ce49
RD
14338 arg3 = &temp3;
14339 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14340 }
0085ce49
RD
14341 }
14342 if (obj3) {
4f89f6a3 14343 {
0085ce49
RD
14344 arg4 = &temp4;
14345 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 14346 }
0085ce49
RD
14347 }
14348 if (obj4) {
14349 ecode5 = SWIG_AsVal_long(obj4, &val5);
14350 if (!SWIG_IsOK(ecode5)) {
14351 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14352 }
14353 arg5 = static_cast< long >(val5);
14354 }
14355 if (obj5) {
14356 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14357 if (!SWIG_IsOK(res6)) {
14358 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14359 }
14360 if (!argp6) {
14361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14362 }
14363 arg6 = reinterpret_cast< wxValidator * >(argp6);
14364 }
14365 if (obj6) {
14366 {
14367 arg7 = wxString_in_helper(obj6);
14368 if (arg7 == NULL) SWIG_fail;
14369 temp7 = true;
14370 }
14371 }
14372 {
14373 if (!wxPyCheckForApp()) SWIG_fail;
14374 PyThreadState* __tstate = wxPyBeginAllowThreads();
14375 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14376 wxPyEndAllowThreads(__tstate);
14377 if (PyErr_Occurred()) SWIG_fail;
14378 }
14379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14380 {
14381 if (temp7)
14382 delete arg7;
14383 }
14384 return resultobj;
14385fail:
14386 {
14387 if (temp7)
14388 delete arg7;
14389 }
14390 return NULL;
d14a1e28
RD
14391}
14392
14393
0085ce49
RD
14394SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14395 PyObject *resultobj = 0;
14396 wxScrollBar *result = 0 ;
14397
14398 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14399 {
14400 if (!wxPyCheckForApp()) SWIG_fail;
14401 PyThreadState* __tstate = wxPyBeginAllowThreads();
14402 result = (wxScrollBar *)new wxScrollBar();
14403 wxPyEndAllowThreads(__tstate);
14404 if (PyErr_Occurred()) SWIG_fail;
14405 }
14406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14407 return resultobj;
14408fail:
14409 return NULL;
14410}
14411
14412
14413SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14414 PyObject *resultobj = 0;
14415 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14416 wxWindow *arg2 = (wxWindow *) 0 ;
14417 int arg3 = (int) -1 ;
14418 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14419 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14420 wxSize const &arg5_defvalue = wxDefaultSize ;
14421 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14422 long arg6 = (long) wxSB_HORIZONTAL ;
14423 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14424 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14425 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14426 wxString *arg8 = (wxString *) &arg8_defvalue ;
14427 bool result;
14428 void *argp1 = 0 ;
14429 int res1 = 0 ;
14430 void *argp2 = 0 ;
14431 int res2 = 0 ;
14432 int val3 ;
14433 int ecode3 = 0 ;
14434 wxPoint temp4 ;
14435 wxSize temp5 ;
14436 long val6 ;
14437 int ecode6 = 0 ;
14438 void *argp7 = 0 ;
14439 int res7 = 0 ;
14440 bool temp8 = false ;
14441 PyObject * obj0 = 0 ;
14442 PyObject * obj1 = 0 ;
14443 PyObject * obj2 = 0 ;
14444 PyObject * obj3 = 0 ;
14445 PyObject * obj4 = 0 ;
14446 PyObject * obj5 = 0 ;
14447 PyObject * obj6 = 0 ;
14448 PyObject * obj7 = 0 ;
14449 char * kwnames[] = {
14450 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14451 };
14452
14453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14455 if (!SWIG_IsOK(res1)) {
14456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14457 }
14458 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14459 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14460 if (!SWIG_IsOK(res2)) {
14461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14462 }
14463 arg2 = reinterpret_cast< wxWindow * >(argp2);
14464 if (obj2) {
14465 ecode3 = SWIG_AsVal_int(obj2, &val3);
14466 if (!SWIG_IsOK(ecode3)) {
14467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14468 }
14469 arg3 = static_cast< int >(val3);
14470 }
14471 if (obj3) {
093d3ff1 14472 {
0085ce49
RD
14473 arg4 = &temp4;
14474 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 14475 }
0085ce49
RD
14476 }
14477 if (obj4) {
d14a1e28 14478 {
0085ce49
RD
14479 arg5 = &temp5;
14480 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14481 }
14482 }
14483 if (obj5) {
14484 ecode6 = SWIG_AsVal_long(obj5, &val6);
14485 if (!SWIG_IsOK(ecode6)) {
14486 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14487 }
14488 arg6 = static_cast< long >(val6);
14489 }
14490 if (obj6) {
14491 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14492 if (!SWIG_IsOK(res7)) {
14493 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 14494 }
0085ce49
RD
14495 if (!argp7) {
14496 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14497 }
14498 arg7 = reinterpret_cast< wxValidator * >(argp7);
14499 }
14500 if (obj7) {
4f89f6a3 14501 {
0085ce49
RD
14502 arg8 = wxString_in_helper(obj7);
14503 if (arg8 == NULL) SWIG_fail;
14504 temp8 = true;
4f89f6a3 14505 }
0085ce49
RD
14506 }
14507 {
14508 PyThreadState* __tstate = wxPyBeginAllowThreads();
14509 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14510 wxPyEndAllowThreads(__tstate);
14511 if (PyErr_Occurred()) SWIG_fail;
14512 }
14513 {
14514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14515 }
14516 {
14517 if (temp8)
14518 delete arg8;
14519 }
14520 return resultobj;
14521fail:
14522 {
14523 if (temp8)
14524 delete arg8;
14525 }
14526 return NULL;
d14a1e28
RD
14527}
14528
14529
0085ce49
RD
14530SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14531 PyObject *resultobj = 0;
14532 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14533 int result;
14534 void *argp1 = 0 ;
14535 int res1 = 0 ;
14536 PyObject *swig_obj[1] ;
14537
14538 if (!args) SWIG_fail;
14539 swig_obj[0] = args;
14540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14541 if (!SWIG_IsOK(res1)) {
14542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14543 }
14544 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14545 {
14546 PyThreadState* __tstate = wxPyBeginAllowThreads();
14547 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14548 wxPyEndAllowThreads(__tstate);
14549 if (PyErr_Occurred()) SWIG_fail;
14550 }
14551 resultobj = SWIG_From_int(static_cast< int >(result));
14552 return resultobj;
14553fail:
14554 return NULL;
d14a1e28
RD
14555}
14556
14557
0085ce49
RD
14558SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14559 PyObject *resultobj = 0;
14560 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14561 int result;
14562 void *argp1 = 0 ;
14563 int res1 = 0 ;
14564 PyObject *swig_obj[1] ;
14565
14566 if (!args) SWIG_fail;
14567 swig_obj[0] = args;
14568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14569 if (!SWIG_IsOK(res1)) {
14570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14571 }
14572 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14573 {
14574 PyThreadState* __tstate = wxPyBeginAllowThreads();
14575 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14576 wxPyEndAllowThreads(__tstate);
14577 if (PyErr_Occurred()) SWIG_fail;
14578 }
14579 resultobj = SWIG_From_int(static_cast< int >(result));
14580 return resultobj;
14581fail:
14582 return NULL;
d14a1e28
RD
14583}
14584
14585
0085ce49
RD
14586SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14587 PyObject *resultobj = 0;
14588 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14589 int result;
14590 void *argp1 = 0 ;
14591 int res1 = 0 ;
14592 PyObject *swig_obj[1] ;
14593
14594 if (!args) SWIG_fail;
14595 swig_obj[0] = args;
14596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14597 if (!SWIG_IsOK(res1)) {
14598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14599 }
14600 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14601 {
14602 PyThreadState* __tstate = wxPyBeginAllowThreads();
14603 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14604 wxPyEndAllowThreads(__tstate);
14605 if (PyErr_Occurred()) SWIG_fail;
14606 }
14607 resultobj = SWIG_From_int(static_cast< int >(result));
14608 return resultobj;
14609fail:
14610 return NULL;
d14a1e28
RD
14611}
14612
14613
0085ce49
RD
14614SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14615 PyObject *resultobj = 0;
14616 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14617 int result;
14618 void *argp1 = 0 ;
14619 int res1 = 0 ;
14620 PyObject *swig_obj[1] ;
14621
14622 if (!args) SWIG_fail;
14623 swig_obj[0] = args;
14624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14625 if (!SWIG_IsOK(res1)) {
14626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14627 }
14628 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14629 {
14630 PyThreadState* __tstate = wxPyBeginAllowThreads();
14631 result = (int)((wxScrollBar const *)arg1)->GetRange();
14632 wxPyEndAllowThreads(__tstate);
14633 if (PyErr_Occurred()) SWIG_fail;
14634 }
14635 resultobj = SWIG_From_int(static_cast< int >(result));
14636 return resultobj;
14637fail:
14638 return NULL;
d14a1e28
RD
14639}
14640
14641
0085ce49
RD
14642SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14643 PyObject *resultobj = 0;
14644 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14645 bool result;
14646 void *argp1 = 0 ;
14647 int res1 = 0 ;
14648 PyObject *swig_obj[1] ;
14649
14650 if (!args) SWIG_fail;
14651 swig_obj[0] = args;
14652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14653 if (!SWIG_IsOK(res1)) {
14654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14655 }
14656 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14657 {
14658 PyThreadState* __tstate = wxPyBeginAllowThreads();
14659 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14660 wxPyEndAllowThreads(__tstate);
14661 if (PyErr_Occurred()) SWIG_fail;
14662 }
14663 {
14664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14665 }
14666 return resultobj;
14667fail:
14668 return NULL;
14669}
14670
14671
14672SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14673 PyObject *resultobj = 0;
14674 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14675 int arg2 ;
14676 void *argp1 = 0 ;
14677 int res1 = 0 ;
14678 int val2 ;
14679 int ecode2 = 0 ;
14680 PyObject * obj0 = 0 ;
14681 PyObject * obj1 = 0 ;
14682 char * kwnames[] = {
14683 (char *) "self",(char *) "viewStart", NULL
14684 };
14685
14686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14688 if (!SWIG_IsOK(res1)) {
14689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14690 }
14691 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14692 ecode2 = SWIG_AsVal_int(obj1, &val2);
14693 if (!SWIG_IsOK(ecode2)) {
14694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14695 }
14696 arg2 = static_cast< int >(val2);
14697 {
14698 PyThreadState* __tstate = wxPyBeginAllowThreads();
14699 (arg1)->SetThumbPosition(arg2);
14700 wxPyEndAllowThreads(__tstate);
14701 if (PyErr_Occurred()) SWIG_fail;
14702 }
14703 resultobj = SWIG_Py_Void();
14704 return resultobj;
14705fail:
14706 return NULL;
14707}
14708
14709
14710SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14711 PyObject *resultobj = 0;
14712 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14713 SwigValueWrapper<wxVisualAttributes > result;
14714 int val1 ;
14715 int ecode1 = 0 ;
14716 PyObject * obj0 = 0 ;
14717 char * kwnames[] = {
14718 (char *) "variant", NULL
14719 };
14720
14721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14722 if (obj0) {
14723 ecode1 = SWIG_AsVal_int(obj0, &val1);
14724 if (!SWIG_IsOK(ecode1)) {
14725 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14726 }
14727 arg1 = static_cast< wxWindowVariant >(val1);
14728 }
14729 {
14730 if (!wxPyCheckForApp()) SWIG_fail;
14731 PyThreadState* __tstate = wxPyBeginAllowThreads();
14732 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14733 wxPyEndAllowThreads(__tstate);
14734 if (PyErr_Occurred()) SWIG_fail;
14735 }
14736 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14737 return resultobj;
14738fail:
14739 return NULL;
d14a1e28
RD
14740}
14741
14742
0085ce49
RD
14743SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14744 PyObject *obj;
14745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14746 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14747 return SWIG_Py_Void();
d14a1e28
RD
14748}
14749
0085ce49
RD
14750SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14751 return SWIG_Python_InitShadowInstance(args);
14752}
d14a1e28 14753
0085ce49
RD
14754SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14755 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14756 return 1;
d14a1e28
RD
14757}
14758
14759
0085ce49
RD
14760SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14761 PyObject *pyobj = 0;
14762
14763 {
14764#if wxUSE_UNICODE
14765 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14766#else
14767 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14768#endif
14769 }
14770 return pyobj;
d14a1e28
RD
14771}
14772
14773
0085ce49
RD
14774SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14775 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14776 return 1;
d14a1e28
RD
14777}
14778
14779
0085ce49
RD
14780SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14781 PyObject *pyobj = 0;
14782
14783 {
14784#if wxUSE_UNICODE
14785 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14786#else
14787 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14788#endif
14789 }
14790 return pyobj;
14791}
14792
14793
14794SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14795 PyObject *resultobj = 0;
14796 wxWindow *arg1 = (wxWindow *) 0 ;
14797 int arg2 = (int) -1 ;
14798 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14799 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14800 wxSize const &arg4_defvalue = wxDefaultSize ;
14801 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14802 long arg5 = (long) wxSP_HORIZONTAL ;
14803 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14804 wxString *arg6 = (wxString *) &arg6_defvalue ;
14805 wxSpinButton *result = 0 ;
14806 void *argp1 = 0 ;
14807 int res1 = 0 ;
14808 int val2 ;
14809 int ecode2 = 0 ;
14810 wxPoint temp3 ;
14811 wxSize temp4 ;
14812 long val5 ;
14813 int ecode5 = 0 ;
14814 bool temp6 = false ;
14815 PyObject * obj0 = 0 ;
14816 PyObject * obj1 = 0 ;
14817 PyObject * obj2 = 0 ;
14818 PyObject * obj3 = 0 ;
14819 PyObject * obj4 = 0 ;
14820 PyObject * obj5 = 0 ;
14821 char * kwnames[] = {
14822 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14823 };
14824
14825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14827 if (!SWIG_IsOK(res1)) {
14828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14829 }
14830 arg1 = reinterpret_cast< wxWindow * >(argp1);
14831 if (obj1) {
14832 ecode2 = SWIG_AsVal_int(obj1, &val2);
14833 if (!SWIG_IsOK(ecode2)) {
14834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14835 }
14836 arg2 = static_cast< int >(val2);
14837 }
14838 if (obj2) {
093d3ff1 14839 {
0085ce49
RD
14840 arg3 = &temp3;
14841 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 14842 }
0085ce49
RD
14843 }
14844 if (obj3) {
d14a1e28 14845 {
0085ce49
RD
14846 arg4 = &temp4;
14847 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14848 }
0085ce49
RD
14849 }
14850 if (obj4) {
14851 ecode5 = SWIG_AsVal_long(obj4, &val5);
14852 if (!SWIG_IsOK(ecode5)) {
14853 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14854 }
14855 arg5 = static_cast< long >(val5);
14856 }
14857 if (obj5) {
d14a1e28 14858 {
0085ce49
RD
14859 arg6 = wxString_in_helper(obj5);
14860 if (arg6 == NULL) SWIG_fail;
14861 temp6 = true;
d14a1e28 14862 }
0085ce49
RD
14863 }
14864 {
14865 if (!wxPyCheckForApp()) SWIG_fail;
14866 PyThreadState* __tstate = wxPyBeginAllowThreads();
14867 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14868 wxPyEndAllowThreads(__tstate);
14869 if (PyErr_Occurred()) SWIG_fail;
14870 }
14871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14872 {
14873 if (temp6)
14874 delete arg6;
14875 }
14876 return resultobj;
14877fail:
14878 {
14879 if (temp6)
14880 delete arg6;
14881 }
14882 return NULL;
d14a1e28
RD
14883}
14884
14885
0085ce49
RD
14886SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14887 PyObject *resultobj = 0;
14888 wxSpinButton *result = 0 ;
14889
14890 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14891 {
14892 if (!wxPyCheckForApp()) SWIG_fail;
14893 PyThreadState* __tstate = wxPyBeginAllowThreads();
14894 result = (wxSpinButton *)new wxSpinButton();
14895 wxPyEndAllowThreads(__tstate);
14896 if (PyErr_Occurred()) SWIG_fail;
14897 }
14898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14899 return resultobj;
14900fail:
14901 return NULL;
14902}
14903
14904
14905SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14906 PyObject *resultobj = 0;
14907 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14908 wxWindow *arg2 = (wxWindow *) 0 ;
14909 int arg3 = (int) -1 ;
14910 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14911 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14912 wxSize const &arg5_defvalue = wxDefaultSize ;
14913 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14914 long arg6 = (long) wxSP_HORIZONTAL ;
14915 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14916 wxString *arg7 = (wxString *) &arg7_defvalue ;
14917 bool result;
14918 void *argp1 = 0 ;
14919 int res1 = 0 ;
14920 void *argp2 = 0 ;
14921 int res2 = 0 ;
14922 int val3 ;
14923 int ecode3 = 0 ;
14924 wxPoint temp4 ;
14925 wxSize temp5 ;
14926 long val6 ;
14927 int ecode6 = 0 ;
14928 bool temp7 = false ;
14929 PyObject * obj0 = 0 ;
14930 PyObject * obj1 = 0 ;
14931 PyObject * obj2 = 0 ;
14932 PyObject * obj3 = 0 ;
14933 PyObject * obj4 = 0 ;
14934 PyObject * obj5 = 0 ;
14935 PyObject * obj6 = 0 ;
14936 char * kwnames[] = {
14937 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14938 };
14939
14940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14942 if (!SWIG_IsOK(res1)) {
14943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14944 }
14945 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14946 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14947 if (!SWIG_IsOK(res2)) {
14948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14949 }
14950 arg2 = reinterpret_cast< wxWindow * >(argp2);
14951 if (obj2) {
14952 ecode3 = SWIG_AsVal_int(obj2, &val3);
14953 if (!SWIG_IsOK(ecode3)) {
14954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14955 }
14956 arg3 = static_cast< int >(val3);
14957 }
14958 if (obj3) {
d14a1e28 14959 {
0085ce49
RD
14960 arg4 = &temp4;
14961 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 14962 }
0085ce49
RD
14963 }
14964 if (obj4) {
d14a1e28 14965 {
0085ce49
RD
14966 arg5 = &temp5;
14967 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 14968 }
0085ce49
RD
14969 }
14970 if (obj5) {
14971 ecode6 = SWIG_AsVal_long(obj5, &val6);
14972 if (!SWIG_IsOK(ecode6)) {
14973 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14974 }
14975 arg6 = static_cast< long >(val6);
14976 }
14977 if (obj6) {
d14a1e28 14978 {
0085ce49
RD
14979 arg7 = wxString_in_helper(obj6);
14980 if (arg7 == NULL) SWIG_fail;
14981 temp7 = true;
d14a1e28 14982 }
0085ce49
RD
14983 }
14984 {
14985 PyThreadState* __tstate = wxPyBeginAllowThreads();
14986 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14987 wxPyEndAllowThreads(__tstate);
14988 if (PyErr_Occurred()) SWIG_fail;
14989 }
14990 {
14991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14992 }
14993 {
14994 if (temp7)
14995 delete arg7;
14996 }
14997 return resultobj;
14998fail:
14999 {
15000 if (temp7)
15001 delete arg7;
15002 }
15003 return NULL;
d14a1e28
RD
15004}
15005
15006
0085ce49
RD
15007SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15008 PyObject *resultobj = 0;
15009 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15010 int result;
15011 void *argp1 = 0 ;
15012 int res1 = 0 ;
15013 PyObject *swig_obj[1] ;
15014
15015 if (!args) SWIG_fail;
15016 swig_obj[0] = args;
15017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15018 if (!SWIG_IsOK(res1)) {
15019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15020 }
15021 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15022 {
15023 PyThreadState* __tstate = wxPyBeginAllowThreads();
15024 result = (int)((wxSpinButton const *)arg1)->GetValue();
15025 wxPyEndAllowThreads(__tstate);
15026 if (PyErr_Occurred()) SWIG_fail;
15027 }
15028 resultobj = SWIG_From_int(static_cast< int >(result));
15029 return resultobj;
15030fail:
15031 return NULL;
d14a1e28
RD
15032}
15033
15034
0085ce49
RD
15035SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15036 PyObject *resultobj = 0;
15037 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15038 int result;
15039 void *argp1 = 0 ;
15040 int res1 = 0 ;
15041 PyObject *swig_obj[1] ;
15042
15043 if (!args) SWIG_fail;
15044 swig_obj[0] = args;
15045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15046 if (!SWIG_IsOK(res1)) {
15047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15048 }
15049 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15050 {
15051 PyThreadState* __tstate = wxPyBeginAllowThreads();
15052 result = (int)((wxSpinButton const *)arg1)->GetMin();
15053 wxPyEndAllowThreads(__tstate);
15054 if (PyErr_Occurred()) SWIG_fail;
15055 }
15056 resultobj = SWIG_From_int(static_cast< int >(result));
15057 return resultobj;
15058fail:
15059 return NULL;
d14a1e28
RD
15060}
15061
15062
0085ce49
RD
15063SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15064 PyObject *resultobj = 0;
15065 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15066 int result;
15067 void *argp1 = 0 ;
15068 int res1 = 0 ;
15069 PyObject *swig_obj[1] ;
15070
15071 if (!args) SWIG_fail;
15072 swig_obj[0] = args;
15073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15074 if (!SWIG_IsOK(res1)) {
15075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15076 }
15077 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15078 {
15079 PyThreadState* __tstate = wxPyBeginAllowThreads();
15080 result = (int)((wxSpinButton const *)arg1)->GetMax();
15081 wxPyEndAllowThreads(__tstate);
15082 if (PyErr_Occurred()) SWIG_fail;
15083 }
15084 resultobj = SWIG_From_int(static_cast< int >(result));
15085 return resultobj;
15086fail:
15087 return NULL;
15088}
15089
15090
15091SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15092 PyObject *resultobj = 0;
15093 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15094 int arg2 ;
15095 void *argp1 = 0 ;
15096 int res1 = 0 ;
15097 int val2 ;
15098 int ecode2 = 0 ;
15099 PyObject * obj0 = 0 ;
15100 PyObject * obj1 = 0 ;
15101 char * kwnames[] = {
15102 (char *) "self",(char *) "val", NULL
15103 };
15104
15105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15107 if (!SWIG_IsOK(res1)) {
15108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15109 }
15110 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15111 ecode2 = SWIG_AsVal_int(obj1, &val2);
15112 if (!SWIG_IsOK(ecode2)) {
15113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15114 }
15115 arg2 = static_cast< int >(val2);
15116 {
15117 PyThreadState* __tstate = wxPyBeginAllowThreads();
15118 (arg1)->SetValue(arg2);
15119 wxPyEndAllowThreads(__tstate);
15120 if (PyErr_Occurred()) SWIG_fail;
15121 }
15122 resultobj = SWIG_Py_Void();
15123 return resultobj;
15124fail:
15125 return NULL;
15126}
15127
15128
15129SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15130 PyObject *resultobj = 0;
15131 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15132 int arg2 ;
15133 void *argp1 = 0 ;
15134 int res1 = 0 ;
15135 int val2 ;
15136 int ecode2 = 0 ;
15137 PyObject * obj0 = 0 ;
15138 PyObject * obj1 = 0 ;
15139 char * kwnames[] = {
15140 (char *) "self",(char *) "minVal", NULL
15141 };
15142
15143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15145 if (!SWIG_IsOK(res1)) {
15146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15147 }
15148 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15149 ecode2 = SWIG_AsVal_int(obj1, &val2);
15150 if (!SWIG_IsOK(ecode2)) {
15151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15152 }
15153 arg2 = static_cast< int >(val2);
15154 {
15155 PyThreadState* __tstate = wxPyBeginAllowThreads();
15156 (arg1)->SetMin(arg2);
15157 wxPyEndAllowThreads(__tstate);
15158 if (PyErr_Occurred()) SWIG_fail;
15159 }
15160 resultobj = SWIG_Py_Void();
15161 return resultobj;
15162fail:
15163 return NULL;
15164}
15165
15166
15167SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15168 PyObject *resultobj = 0;
15169 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15170 int arg2 ;
15171 void *argp1 = 0 ;
15172 int res1 = 0 ;
15173 int val2 ;
15174 int ecode2 = 0 ;
15175 PyObject * obj0 = 0 ;
15176 PyObject * obj1 = 0 ;
15177 char * kwnames[] = {
15178 (char *) "self",(char *) "maxVal", NULL
15179 };
15180
15181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15183 if (!SWIG_IsOK(res1)) {
15184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15185 }
15186 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15187 ecode2 = SWIG_AsVal_int(obj1, &val2);
15188 if (!SWIG_IsOK(ecode2)) {
15189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15190 }
15191 arg2 = static_cast< int >(val2);
15192 {
15193 PyThreadState* __tstate = wxPyBeginAllowThreads();
15194 (arg1)->SetMax(arg2);
15195 wxPyEndAllowThreads(__tstate);
15196 if (PyErr_Occurred()) SWIG_fail;
15197 }
15198 resultobj = SWIG_Py_Void();
15199 return resultobj;
15200fail:
15201 return NULL;
15202}
15203
15204
15205SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15206 PyObject *resultobj = 0;
15207 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15208 int arg2 ;
15209 int arg3 ;
15210 void *argp1 = 0 ;
15211 int res1 = 0 ;
15212 int val2 ;
15213 int ecode2 = 0 ;
15214 int val3 ;
15215 int ecode3 = 0 ;
15216 PyObject * obj0 = 0 ;
15217 PyObject * obj1 = 0 ;
15218 PyObject * obj2 = 0 ;
15219 char * kwnames[] = {
15220 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15221 };
15222
15223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15225 if (!SWIG_IsOK(res1)) {
15226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15227 }
15228 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15229 ecode2 = SWIG_AsVal_int(obj1, &val2);
15230 if (!SWIG_IsOK(ecode2)) {
15231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15232 }
15233 arg2 = static_cast< int >(val2);
15234 ecode3 = SWIG_AsVal_int(obj2, &val3);
15235 if (!SWIG_IsOK(ecode3)) {
15236 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15237 }
15238 arg3 = static_cast< int >(val3);
15239 {
15240 PyThreadState* __tstate = wxPyBeginAllowThreads();
15241 (arg1)->SetRange(arg2,arg3);
15242 wxPyEndAllowThreads(__tstate);
15243 if (PyErr_Occurred()) SWIG_fail;
15244 }
15245 resultobj = SWIG_Py_Void();
15246 return resultobj;
15247fail:
15248 return NULL;
d14a1e28
RD
15249}
15250
15251
0085ce49
RD
15252SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15253 PyObject *resultobj = 0;
15254 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15255 bool result;
15256 void *argp1 = 0 ;
15257 int res1 = 0 ;
15258 PyObject *swig_obj[1] ;
15259
15260 if (!args) SWIG_fail;
15261 swig_obj[0] = args;
15262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15263 if (!SWIG_IsOK(res1)) {
15264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15265 }
15266 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15267 {
15268 PyThreadState* __tstate = wxPyBeginAllowThreads();
15269 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15270 wxPyEndAllowThreads(__tstate);
15271 if (PyErr_Occurred()) SWIG_fail;
15272 }
15273 {
15274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15275 }
15276 return resultobj;
15277fail:
15278 return NULL;
d14a1e28
RD
15279}
15280
15281
0085ce49
RD
15282SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15283 PyObject *resultobj = 0;
15284 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15285 SwigValueWrapper<wxVisualAttributes > result;
15286 int val1 ;
15287 int ecode1 = 0 ;
15288 PyObject * obj0 = 0 ;
15289 char * kwnames[] = {
15290 (char *) "variant", NULL
15291 };
15292
15293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15294 if (obj0) {
15295 ecode1 = SWIG_AsVal_int(obj0, &val1);
15296 if (!SWIG_IsOK(ecode1)) {
15297 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15298 }
15299 arg1 = static_cast< wxWindowVariant >(val1);
15300 }
15301 {
15302 if (!wxPyCheckForApp()) SWIG_fail;
15303 PyThreadState* __tstate = wxPyBeginAllowThreads();
15304 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15305 wxPyEndAllowThreads(__tstate);
15306 if (PyErr_Occurred()) SWIG_fail;
15307 }
15308 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15309 return resultobj;
15310fail:
15311 return NULL;
15312}
15313
15314
15315SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15316 PyObject *obj;
15317 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15318 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15319 return SWIG_Py_Void();
15320}
15321
15322SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15323 return SWIG_Python_InitShadowInstance(args);
15324}
15325
15326SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15327 PyObject *resultobj = 0;
15328 wxWindow *arg1 = (wxWindow *) 0 ;
15329 int arg2 = (int) -1 ;
15330 wxString const &arg3_defvalue = wxPyEmptyString ;
15331 wxString *arg3 = (wxString *) &arg3_defvalue ;
15332 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15333 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15334 wxSize const &arg5_defvalue = wxDefaultSize ;
15335 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15336 long arg6 = (long) wxSP_ARROW_KEYS ;
15337 int arg7 = (int) 0 ;
15338 int arg8 = (int) 100 ;
15339 int arg9 = (int) 0 ;
15340 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15341 wxString *arg10 = (wxString *) &arg10_defvalue ;
15342 wxSpinCtrl *result = 0 ;
15343 void *argp1 = 0 ;
15344 int res1 = 0 ;
15345 int val2 ;
15346 int ecode2 = 0 ;
15347 bool temp3 = false ;
15348 wxPoint temp4 ;
15349 wxSize temp5 ;
15350 long val6 ;
15351 int ecode6 = 0 ;
15352 int val7 ;
15353 int ecode7 = 0 ;
15354 int val8 ;
15355 int ecode8 = 0 ;
15356 int val9 ;
15357 int ecode9 = 0 ;
15358 bool temp10 = false ;
15359 PyObject * obj0 = 0 ;
15360 PyObject * obj1 = 0 ;
15361 PyObject * obj2 = 0 ;
15362 PyObject * obj3 = 0 ;
15363 PyObject * obj4 = 0 ;
15364 PyObject * obj5 = 0 ;
15365 PyObject * obj6 = 0 ;
15366 PyObject * obj7 = 0 ;
15367 PyObject * obj8 = 0 ;
15368 PyObject * obj9 = 0 ;
15369 char * kwnames[] = {
15370 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15371 };
15372
15373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15375 if (!SWIG_IsOK(res1)) {
15376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15377 }
15378 arg1 = reinterpret_cast< wxWindow * >(argp1);
15379 if (obj1) {
15380 ecode2 = SWIG_AsVal_int(obj1, &val2);
15381 if (!SWIG_IsOK(ecode2)) {
15382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15383 }
15384 arg2 = static_cast< int >(val2);
15385 }
15386 if (obj2) {
093d3ff1 15387 {
0085ce49
RD
15388 arg3 = wxString_in_helper(obj2);
15389 if (arg3 == NULL) SWIG_fail;
15390 temp3 = true;
093d3ff1 15391 }
0085ce49
RD
15392 }
15393 if (obj3) {
093d3ff1 15394 {
0085ce49
RD
15395 arg4 = &temp4;
15396 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 15397 }
0085ce49
RD
15398 }
15399 if (obj4) {
d14a1e28 15400 {
0085ce49
RD
15401 arg5 = &temp5;
15402 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15403 }
0085ce49
RD
15404 }
15405 if (obj5) {
15406 ecode6 = SWIG_AsVal_long(obj5, &val6);
15407 if (!SWIG_IsOK(ecode6)) {
15408 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15409 }
15410 arg6 = static_cast< long >(val6);
15411 }
15412 if (obj6) {
15413 ecode7 = SWIG_AsVal_int(obj6, &val7);
15414 if (!SWIG_IsOK(ecode7)) {
15415 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15416 }
15417 arg7 = static_cast< int >(val7);
15418 }
15419 if (obj7) {
15420 ecode8 = SWIG_AsVal_int(obj7, &val8);
15421 if (!SWIG_IsOK(ecode8)) {
15422 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15423 }
15424 arg8 = static_cast< int >(val8);
15425 }
15426 if (obj8) {
15427 ecode9 = SWIG_AsVal_int(obj8, &val9);
15428 if (!SWIG_IsOK(ecode9)) {
15429 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15430 }
15431 arg9 = static_cast< int >(val9);
15432 }
15433 if (obj9) {
d14a1e28 15434 {
0085ce49
RD
15435 arg10 = wxString_in_helper(obj9);
15436 if (arg10 == NULL) SWIG_fail;
15437 temp10 = true;
d14a1e28 15438 }
0085ce49
RD
15439 }
15440 {
15441 if (!wxPyCheckForApp()) SWIG_fail;
15442 PyThreadState* __tstate = wxPyBeginAllowThreads();
15443 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15444 wxPyEndAllowThreads(__tstate);
15445 if (PyErr_Occurred()) SWIG_fail;
15446 }
15447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15448 {
15449 if (temp3)
15450 delete arg3;
15451 }
15452 {
15453 if (temp10)
15454 delete arg10;
15455 }
15456 return resultobj;
15457fail:
15458 {
15459 if (temp3)
15460 delete arg3;
15461 }
15462 {
15463 if (temp10)
15464 delete arg10;
15465 }
15466 return NULL;
d14a1e28
RD
15467}
15468
15469
0085ce49
RD
15470SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15471 PyObject *resultobj = 0;
15472 wxSpinCtrl *result = 0 ;
15473
15474 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15475 {
15476 if (!wxPyCheckForApp()) SWIG_fail;
15477 PyThreadState* __tstate = wxPyBeginAllowThreads();
15478 result = (wxSpinCtrl *)new wxSpinCtrl();
15479 wxPyEndAllowThreads(__tstate);
15480 if (PyErr_Occurred()) SWIG_fail;
15481 }
15482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15483 return resultobj;
15484fail:
15485 return NULL;
15486}
15487
15488
15489SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15490 PyObject *resultobj = 0;
15491 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15492 wxWindow *arg2 = (wxWindow *) 0 ;
15493 int arg3 = (int) -1 ;
15494 wxString const &arg4_defvalue = wxPyEmptyString ;
15495 wxString *arg4 = (wxString *) &arg4_defvalue ;
15496 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15497 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15498 wxSize const &arg6_defvalue = wxDefaultSize ;
15499 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15500 long arg7 = (long) wxSP_ARROW_KEYS ;
15501 int arg8 = (int) 0 ;
15502 int arg9 = (int) 100 ;
15503 int arg10 = (int) 0 ;
15504 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15505 wxString *arg11 = (wxString *) &arg11_defvalue ;
15506 bool result;
15507 void *argp1 = 0 ;
15508 int res1 = 0 ;
15509 void *argp2 = 0 ;
15510 int res2 = 0 ;
15511 int val3 ;
15512 int ecode3 = 0 ;
15513 bool temp4 = false ;
15514 wxPoint temp5 ;
15515 wxSize temp6 ;
15516 long val7 ;
15517 int ecode7 = 0 ;
15518 int val8 ;
15519 int ecode8 = 0 ;
15520 int val9 ;
15521 int ecode9 = 0 ;
15522 int val10 ;
15523 int ecode10 = 0 ;
15524 bool temp11 = false ;
15525 PyObject * obj0 = 0 ;
15526 PyObject * obj1 = 0 ;
15527 PyObject * obj2 = 0 ;
15528 PyObject * obj3 = 0 ;
15529 PyObject * obj4 = 0 ;
15530 PyObject * obj5 = 0 ;
15531 PyObject * obj6 = 0 ;
15532 PyObject * obj7 = 0 ;
15533 PyObject * obj8 = 0 ;
15534 PyObject * obj9 = 0 ;
15535 PyObject * obj10 = 0 ;
15536 char * kwnames[] = {
15537 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15538 };
15539
15540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15542 if (!SWIG_IsOK(res1)) {
15543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15544 }
15545 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15546 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15547 if (!SWIG_IsOK(res2)) {
15548 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15549 }
15550 arg2 = reinterpret_cast< wxWindow * >(argp2);
15551 if (obj2) {
15552 ecode3 = SWIG_AsVal_int(obj2, &val3);
15553 if (!SWIG_IsOK(ecode3)) {
15554 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15555 }
15556 arg3 = static_cast< int >(val3);
15557 }
15558 if (obj3) {
093d3ff1 15559 {
0085ce49
RD
15560 arg4 = wxString_in_helper(obj3);
15561 if (arg4 == NULL) SWIG_fail;
15562 temp4 = true;
093d3ff1 15563 }
0085ce49
RD
15564 }
15565 if (obj4) {
d14a1e28 15566 {
0085ce49
RD
15567 arg5 = &temp5;
15568 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 15569 }
0085ce49
RD
15570 }
15571 if (obj5) {
093d3ff1 15572 {
0085ce49
RD
15573 arg6 = &temp6;
15574 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 15575 }
0085ce49
RD
15576 }
15577 if (obj6) {
15578 ecode7 = SWIG_AsVal_long(obj6, &val7);
15579 if (!SWIG_IsOK(ecode7)) {
15580 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15581 }
15582 arg7 = static_cast< long >(val7);
15583 }
15584 if (obj7) {
15585 ecode8 = SWIG_AsVal_int(obj7, &val8);
15586 if (!SWIG_IsOK(ecode8)) {
15587 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15588 }
15589 arg8 = static_cast< int >(val8);
15590 }
15591 if (obj8) {
15592 ecode9 = SWIG_AsVal_int(obj8, &val9);
15593 if (!SWIG_IsOK(ecode9)) {
15594 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15595 }
15596 arg9 = static_cast< int >(val9);
15597 }
15598 if (obj9) {
15599 ecode10 = SWIG_AsVal_int(obj9, &val10);
15600 if (!SWIG_IsOK(ecode10)) {
15601 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15602 }
15603 arg10 = static_cast< int >(val10);
15604 }
15605 if (obj10) {
d14a1e28 15606 {
0085ce49
RD
15607 arg11 = wxString_in_helper(obj10);
15608 if (arg11 == NULL) SWIG_fail;
15609 temp11 = true;
d14a1e28 15610 }
0085ce49
RD
15611 }
15612 {
15613 PyThreadState* __tstate = wxPyBeginAllowThreads();
15614 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15615 wxPyEndAllowThreads(__tstate);
15616 if (PyErr_Occurred()) SWIG_fail;
15617 }
15618 {
15619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15620 }
15621 {
15622 if (temp4)
15623 delete arg4;
15624 }
15625 {
15626 if (temp11)
15627 delete arg11;
15628 }
15629 return resultobj;
15630fail:
15631 {
15632 if (temp4)
15633 delete arg4;
15634 }
15635 {
15636 if (temp11)
15637 delete arg11;
15638 }
15639 return NULL;
d14a1e28
RD
15640}
15641
15642
0085ce49
RD
15643SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15644 PyObject *resultobj = 0;
15645 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15646 int result;
15647 void *argp1 = 0 ;
15648 int res1 = 0 ;
15649 PyObject *swig_obj[1] ;
15650
15651 if (!args) SWIG_fail;
15652 swig_obj[0] = args;
15653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15654 if (!SWIG_IsOK(res1)) {
15655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15656 }
15657 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15658 {
15659 PyThreadState* __tstate = wxPyBeginAllowThreads();
15660 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15661 wxPyEndAllowThreads(__tstate);
15662 if (PyErr_Occurred()) SWIG_fail;
15663 }
15664 resultobj = SWIG_From_int(static_cast< int >(result));
15665 return resultobj;
15666fail:
15667 return NULL;
15668}
15669
15670
15671SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15672 PyObject *resultobj = 0;
15673 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15674 int arg2 ;
15675 void *argp1 = 0 ;
15676 int res1 = 0 ;
15677 int val2 ;
15678 int ecode2 = 0 ;
15679 PyObject * obj0 = 0 ;
15680 PyObject * obj1 = 0 ;
15681 char * kwnames[] = {
15682 (char *) "self",(char *) "value", NULL
15683 };
15684
15685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15687 if (!SWIG_IsOK(res1)) {
15688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15689 }
15690 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15691 ecode2 = SWIG_AsVal_int(obj1, &val2);
15692 if (!SWIG_IsOK(ecode2)) {
15693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15694 }
15695 arg2 = static_cast< int >(val2);
15696 {
15697 PyThreadState* __tstate = wxPyBeginAllowThreads();
15698 (arg1)->SetValue(arg2);
15699 wxPyEndAllowThreads(__tstate);
15700 if (PyErr_Occurred()) SWIG_fail;
15701 }
15702 resultobj = SWIG_Py_Void();
15703 return resultobj;
15704fail:
15705 return NULL;
15706}
15707
15708
15709SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15710 PyObject *resultobj = 0;
15711 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15712 wxString *arg2 = 0 ;
15713 void *argp1 = 0 ;
15714 int res1 = 0 ;
15715 bool temp2 = false ;
15716 PyObject * obj0 = 0 ;
15717 PyObject * obj1 = 0 ;
15718 char * kwnames[] = {
15719 (char *) "self",(char *) "text", NULL
15720 };
15721
15722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15724 if (!SWIG_IsOK(res1)) {
15725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15726 }
15727 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15728 {
15729 arg2 = wxString_in_helper(obj1);
15730 if (arg2 == NULL) SWIG_fail;
15731 temp2 = true;
15732 }
15733 {
15734 PyThreadState* __tstate = wxPyBeginAllowThreads();
15735 (arg1)->SetValue((wxString const &)*arg2);
15736 wxPyEndAllowThreads(__tstate);
15737 if (PyErr_Occurred()) SWIG_fail;
15738 }
15739 resultobj = SWIG_Py_Void();
15740 {
15741 if (temp2)
15742 delete arg2;
15743 }
15744 return resultobj;
15745fail:
15746 {
15747 if (temp2)
15748 delete arg2;
15749 }
15750 return NULL;
15751}
15752
15753
15754SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15755 PyObject *resultobj = 0;
15756 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15757 int arg2 ;
15758 int arg3 ;
15759 void *argp1 = 0 ;
15760 int res1 = 0 ;
15761 int val2 ;
15762 int ecode2 = 0 ;
15763 int val3 ;
15764 int ecode3 = 0 ;
15765 PyObject * obj0 = 0 ;
15766 PyObject * obj1 = 0 ;
15767 PyObject * obj2 = 0 ;
15768 char * kwnames[] = {
15769 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15770 };
15771
15772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15774 if (!SWIG_IsOK(res1)) {
15775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15776 }
15777 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15778 ecode2 = SWIG_AsVal_int(obj1, &val2);
15779 if (!SWIG_IsOK(ecode2)) {
15780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15781 }
15782 arg2 = static_cast< int >(val2);
15783 ecode3 = SWIG_AsVal_int(obj2, &val3);
15784 if (!SWIG_IsOK(ecode3)) {
15785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15786 }
15787 arg3 = static_cast< int >(val3);
15788 {
15789 PyThreadState* __tstate = wxPyBeginAllowThreads();
15790 (arg1)->SetRange(arg2,arg3);
15791 wxPyEndAllowThreads(__tstate);
15792 if (PyErr_Occurred()) SWIG_fail;
15793 }
15794 resultobj = SWIG_Py_Void();
15795 return resultobj;
15796fail:
15797 return NULL;
d14a1e28
RD
15798}
15799
15800
0085ce49
RD
15801SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15802 PyObject *resultobj = 0;
15803 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15804 int result;
15805 void *argp1 = 0 ;
15806 int res1 = 0 ;
15807 PyObject *swig_obj[1] ;
15808
15809 if (!args) SWIG_fail;
15810 swig_obj[0] = args;
15811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15812 if (!SWIG_IsOK(res1)) {
15813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15814 }
15815 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15816 {
15817 PyThreadState* __tstate = wxPyBeginAllowThreads();
15818 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15819 wxPyEndAllowThreads(__tstate);
15820 if (PyErr_Occurred()) SWIG_fail;
15821 }
15822 resultobj = SWIG_From_int(static_cast< int >(result));
15823 return resultobj;
15824fail:
15825 return NULL;
d14a1e28
RD
15826}
15827
15828
0085ce49
RD
15829SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15830 PyObject *resultobj = 0;
15831 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15832 int result;
15833 void *argp1 = 0 ;
15834 int res1 = 0 ;
15835 PyObject *swig_obj[1] ;
15836
15837 if (!args) SWIG_fail;
15838 swig_obj[0] = args;
15839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15840 if (!SWIG_IsOK(res1)) {
15841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15842 }
15843 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15844 {
15845 PyThreadState* __tstate = wxPyBeginAllowThreads();
15846 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15847 wxPyEndAllowThreads(__tstate);
15848 if (PyErr_Occurred()) SWIG_fail;
15849 }
15850 resultobj = SWIG_From_int(static_cast< int >(result));
15851 return resultobj;
15852fail:
15853 return NULL;
15854}
15855
15856
15857SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15858 PyObject *resultobj = 0;
15859 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15860 long arg2 ;
15861 long arg3 ;
15862 void *argp1 = 0 ;
15863 int res1 = 0 ;
15864 long val2 ;
15865 int ecode2 = 0 ;
15866 long val3 ;
15867 int ecode3 = 0 ;
15868 PyObject * obj0 = 0 ;
15869 PyObject * obj1 = 0 ;
15870 PyObject * obj2 = 0 ;
15871 char * kwnames[] = {
2131d850 15872 (char *) "self",(char *) "from",(char *) "to", NULL
0085ce49
RD
15873 };
15874
15875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15877 if (!SWIG_IsOK(res1)) {
15878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15879 }
15880 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15881 ecode2 = SWIG_AsVal_long(obj1, &val2);
15882 if (!SWIG_IsOK(ecode2)) {
15883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15884 }
15885 arg2 = static_cast< long >(val2);
15886 ecode3 = SWIG_AsVal_long(obj2, &val3);
15887 if (!SWIG_IsOK(ecode3)) {
15888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15889 }
15890 arg3 = static_cast< long >(val3);
15891 {
15892 PyThreadState* __tstate = wxPyBeginAllowThreads();
15893 (arg1)->SetSelection(arg2,arg3);
15894 wxPyEndAllowThreads(__tstate);
15895 if (PyErr_Occurred()) SWIG_fail;
15896 }
15897 resultobj = SWIG_Py_Void();
15898 return resultobj;
15899fail:
15900 return NULL;
15901}
15902
15903
15904SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15905 PyObject *resultobj = 0;
15906 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15907 SwigValueWrapper<wxVisualAttributes > result;
15908 int val1 ;
15909 int ecode1 = 0 ;
15910 PyObject * obj0 = 0 ;
15911 char * kwnames[] = {
15912 (char *) "variant", NULL
15913 };
15914
15915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15916 if (obj0) {
15917 ecode1 = SWIG_AsVal_int(obj0, &val1);
15918 if (!SWIG_IsOK(ecode1)) {
15919 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15920 }
15921 arg1 = static_cast< wxWindowVariant >(val1);
15922 }
15923 {
15924 if (!wxPyCheckForApp()) SWIG_fail;
15925 PyThreadState* __tstate = wxPyBeginAllowThreads();
15926 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15927 wxPyEndAllowThreads(__tstate);
15928 if (PyErr_Occurred()) SWIG_fail;
15929 }
15930 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15931 return resultobj;
15932fail:
15933 return NULL;
d14a1e28
RD
15934}
15935
15936
0085ce49
RD
15937SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15938 PyObject *obj;
15939 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15940 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15941 return SWIG_Py_Void();
d14a1e28
RD
15942}
15943
0085ce49
RD
15944SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15945 return SWIG_Python_InitShadowInstance(args);
15946}
d14a1e28 15947
0085ce49
RD
15948SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15949 PyObject *resultobj = 0;
15950 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15951 int arg2 = (int) 0 ;
15952 wxSpinEvent *result = 0 ;
15953 int val1 ;
15954 int ecode1 = 0 ;
15955 int val2 ;
15956 int ecode2 = 0 ;
15957 PyObject * obj0 = 0 ;
15958 PyObject * obj1 = 0 ;
15959 char * kwnames[] = {
15960 (char *) "commandType",(char *) "winid", NULL
15961 };
15962
15963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15964 if (obj0) {
15965 ecode1 = SWIG_AsVal_int(obj0, &val1);
15966 if (!SWIG_IsOK(ecode1)) {
15967 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15968 }
15969 arg1 = static_cast< wxEventType >(val1);
15970 }
15971 if (obj1) {
15972 ecode2 = SWIG_AsVal_int(obj1, &val2);
15973 if (!SWIG_IsOK(ecode2)) {
15974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15975 }
15976 arg2 = static_cast< int >(val2);
15977 }
15978 {
15979 PyThreadState* __tstate = wxPyBeginAllowThreads();
15980 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15981 wxPyEndAllowThreads(__tstate);
15982 if (PyErr_Occurred()) SWIG_fail;
15983 }
15984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15985 return resultobj;
15986fail:
15987 return NULL;
d14a1e28
RD
15988}
15989
15990
0085ce49
RD
15991SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15992 PyObject *resultobj = 0;
15993 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15994 int result;
15995 void *argp1 = 0 ;
15996 int res1 = 0 ;
15997 PyObject *swig_obj[1] ;
15998
15999 if (!args) SWIG_fail;
16000 swig_obj[0] = args;
16001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16002 if (!SWIG_IsOK(res1)) {
16003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
16004 }
16005 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16006 {
16007 PyThreadState* __tstate = wxPyBeginAllowThreads();
16008 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
16009 wxPyEndAllowThreads(__tstate);
16010 if (PyErr_Occurred()) SWIG_fail;
16011 }
16012 resultobj = SWIG_From_int(static_cast< int >(result));
16013 return resultobj;
16014fail:
16015 return NULL;
16016}
16017
16018
16019SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16020 PyObject *resultobj = 0;
16021 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16022 int arg2 ;
16023 void *argp1 = 0 ;
16024 int res1 = 0 ;
16025 int val2 ;
16026 int ecode2 = 0 ;
16027 PyObject * obj0 = 0 ;
16028 PyObject * obj1 = 0 ;
16029 char * kwnames[] = {
16030 (char *) "self",(char *) "pos", NULL
16031 };
16032
16033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
16034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16035 if (!SWIG_IsOK(res1)) {
16036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
16037 }
16038 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16039 ecode2 = SWIG_AsVal_int(obj1, &val2);
16040 if (!SWIG_IsOK(ecode2)) {
16041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
16042 }
16043 arg2 = static_cast< int >(val2);
16044 {
16045 PyThreadState* __tstate = wxPyBeginAllowThreads();
16046 (arg1)->SetPosition(arg2);
16047 wxPyEndAllowThreads(__tstate);
16048 if (PyErr_Occurred()) SWIG_fail;
16049 }
16050 resultobj = SWIG_Py_Void();
16051 return resultobj;
16052fail:
16053 return NULL;
d14a1e28
RD
16054}
16055
16056
0085ce49
RD
16057SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16058 PyObject *obj;
16059 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16060 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
16061 return SWIG_Py_Void();
16062}
16063
16064SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16065 return SWIG_Python_InitShadowInstance(args);
16066}
16067
16068SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
16069 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
16070 return 1;
16071}
16072
16073
16074SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16075 PyObject *pyobj = 0;
16076
16077 {
d14a1e28 16078#if wxUSE_UNICODE
0085ce49 16079 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 16080#else
0085ce49 16081 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
d14a1e28 16082#endif
0085ce49
RD
16083 }
16084 return pyobj;
d14a1e28
RD
16085}
16086
16087
0085ce49
RD
16088SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16089 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16090 return 1;
d14a1e28
RD
16091}
16092
16093
0085ce49
RD
16094SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16095 PyObject *pyobj = 0;
16096
16097 {
16098#if wxUSE_UNICODE
16099 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16100#else
16101 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16102#endif
16103 }
16104 return pyobj;
16105}
16106
16107
16108SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16109 PyObject *resultobj = 0;
16110 wxWindow *arg1 = (wxWindow *) 0 ;
16111 int arg2 = (int) -1 ;
16112 wxString const &arg3_defvalue = wxPyEmptyString ;
16113 wxString *arg3 = (wxString *) &arg3_defvalue ;
16114 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16115 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16116 wxSize const &arg5_defvalue = wxDefaultSize ;
16117 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16118 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16119 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16120 int arg7 = (int) 0 ;
16121 long arg8 = (long) wxRA_HORIZONTAL ;
16122 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16123 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16124 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16125 wxString *arg10 = (wxString *) &arg10_defvalue ;
16126 wxRadioBox *result = 0 ;
16127 void *argp1 = 0 ;
16128 int res1 = 0 ;
16129 int val2 ;
16130 int ecode2 = 0 ;
16131 bool temp3 = false ;
16132 wxPoint temp4 ;
16133 wxSize temp5 ;
16134 bool temp6 = false ;
16135 int val7 ;
16136 int ecode7 = 0 ;
16137 long val8 ;
16138 int ecode8 = 0 ;
16139 void *argp9 = 0 ;
16140 int res9 = 0 ;
16141 bool temp10 = false ;
16142 PyObject * obj0 = 0 ;
16143 PyObject * obj1 = 0 ;
16144 PyObject * obj2 = 0 ;
16145 PyObject * obj3 = 0 ;
16146 PyObject * obj4 = 0 ;
16147 PyObject * obj5 = 0 ;
16148 PyObject * obj6 = 0 ;
16149 PyObject * obj7 = 0 ;
16150 PyObject * obj8 = 0 ;
16151 PyObject * obj9 = 0 ;
16152 char * kwnames[] = {
16153 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16154 };
16155
16156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16158 if (!SWIG_IsOK(res1)) {
16159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16160 }
16161 arg1 = reinterpret_cast< wxWindow * >(argp1);
16162 if (obj1) {
16163 ecode2 = SWIG_AsVal_int(obj1, &val2);
16164 if (!SWIG_IsOK(ecode2)) {
16165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16166 }
16167 arg2 = static_cast< int >(val2);
16168 }
16169 if (obj2) {
093d3ff1 16170 {
0085ce49
RD
16171 arg3 = wxString_in_helper(obj2);
16172 if (arg3 == NULL) SWIG_fail;
16173 temp3 = true;
093d3ff1 16174 }
0085ce49
RD
16175 }
16176 if (obj3) {
093d3ff1 16177 {
0085ce49
RD
16178 arg4 = &temp4;
16179 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 16180 }
0085ce49
RD
16181 }
16182 if (obj4) {
d14a1e28 16183 {
0085ce49
RD
16184 arg5 = &temp5;
16185 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 16186 }
0085ce49
RD
16187 }
16188 if (obj5) {
d14a1e28 16189 {
0085ce49
RD
16190 if (! PySequence_Check(obj5)) {
16191 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16192 SWIG_fail;
16193 }
16194 arg6 = new wxArrayString;
16195 temp6 = true;
16196 int i, len=PySequence_Length(obj5);
16197 for (i=0; i<len; i++) {
16198 PyObject* item = PySequence_GetItem(obj5, i);
16199 wxString* s = wxString_in_helper(item);
16200 if (PyErr_Occurred()) SWIG_fail;
16201 arg6->Add(*s);
16202 delete s;
16203 Py_DECREF(item);
16204 }
d14a1e28 16205 }
0085ce49
RD
16206 }
16207 if (obj6) {
16208 ecode7 = SWIG_AsVal_int(obj6, &val7);
16209 if (!SWIG_IsOK(ecode7)) {
16210 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16211 }
16212 arg7 = static_cast< int >(val7);
16213 }
16214 if (obj7) {
16215 ecode8 = SWIG_AsVal_long(obj7, &val8);
16216 if (!SWIG_IsOK(ecode8)) {
16217 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16218 }
16219 arg8 = static_cast< long >(val8);
16220 }
16221 if (obj8) {
16222 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16223 if (!SWIG_IsOK(res9)) {
16224 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16225 }
16226 if (!argp9) {
16227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 16228 }
0085ce49
RD
16229 arg9 = reinterpret_cast< wxValidator * >(argp9);
16230 }
16231 if (obj9) {
d14a1e28 16232 {
0085ce49
RD
16233 arg10 = wxString_in_helper(obj9);
16234 if (arg10 == NULL) SWIG_fail;
16235 temp10 = true;
d14a1e28 16236 }
0085ce49
RD
16237 }
16238 {
16239 if (!wxPyCheckForApp()) SWIG_fail;
16240 PyThreadState* __tstate = wxPyBeginAllowThreads();
16241 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);
16242 wxPyEndAllowThreads(__tstate);
16243 if (PyErr_Occurred()) SWIG_fail;
16244 }
16245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16246 {
16247 if (temp3)
16248 delete arg3;
16249 }
16250 {
16251 if (temp6) delete arg6;
16252 }
16253 {
16254 if (temp10)
16255 delete arg10;
16256 }
16257 return resultobj;
16258fail:
16259 {
16260 if (temp3)
16261 delete arg3;
16262 }
16263 {
16264 if (temp6) delete arg6;
16265 }
16266 {
16267 if (temp10)
16268 delete arg10;
16269 }
16270 return NULL;
d14a1e28
RD
16271}
16272
16273
0085ce49
RD
16274SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16275 PyObject *resultobj = 0;
16276 wxRadioBox *result = 0 ;
16277
16278 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16279 {
16280 if (!wxPyCheckForApp()) SWIG_fail;
16281 PyThreadState* __tstate = wxPyBeginAllowThreads();
16282 result = (wxRadioBox *)new wxRadioBox();
16283 wxPyEndAllowThreads(__tstate);
16284 if (PyErr_Occurred()) SWIG_fail;
16285 }
16286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16287 return resultobj;
16288fail:
16289 return NULL;
16290}
16291
16292
16293SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16294 PyObject *resultobj = 0;
16295 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16296 wxWindow *arg2 = (wxWindow *) 0 ;
16297 int arg3 = (int) -1 ;
16298 wxString const &arg4_defvalue = wxPyEmptyString ;
16299 wxString *arg4 = (wxString *) &arg4_defvalue ;
16300 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16301 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16302 wxSize const &arg6_defvalue = wxDefaultSize ;
16303 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16304 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16305 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16306 int arg8 = (int) 0 ;
16307 long arg9 = (long) wxRA_HORIZONTAL ;
16308 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16309 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16310 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16311 wxString *arg11 = (wxString *) &arg11_defvalue ;
16312 bool result;
16313 void *argp1 = 0 ;
16314 int res1 = 0 ;
16315 void *argp2 = 0 ;
16316 int res2 = 0 ;
16317 int val3 ;
16318 int ecode3 = 0 ;
16319 bool temp4 = false ;
16320 wxPoint temp5 ;
16321 wxSize temp6 ;
16322 bool temp7 = false ;
16323 int val8 ;
16324 int ecode8 = 0 ;
16325 long val9 ;
16326 int ecode9 = 0 ;
16327 void *argp10 = 0 ;
16328 int res10 = 0 ;
16329 bool temp11 = false ;
16330 PyObject * obj0 = 0 ;
16331 PyObject * obj1 = 0 ;
16332 PyObject * obj2 = 0 ;
16333 PyObject * obj3 = 0 ;
16334 PyObject * obj4 = 0 ;
16335 PyObject * obj5 = 0 ;
16336 PyObject * obj6 = 0 ;
16337 PyObject * obj7 = 0 ;
16338 PyObject * obj8 = 0 ;
16339 PyObject * obj9 = 0 ;
16340 PyObject * obj10 = 0 ;
16341 char * kwnames[] = {
16342 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16343 };
16344
16345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16347 if (!SWIG_IsOK(res1)) {
16348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16349 }
16350 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16351 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16352 if (!SWIG_IsOK(res2)) {
16353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16354 }
16355 arg2 = reinterpret_cast< wxWindow * >(argp2);
16356 if (obj2) {
16357 ecode3 = SWIG_AsVal_int(obj2, &val3);
16358 if (!SWIG_IsOK(ecode3)) {
16359 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16360 }
16361 arg3 = static_cast< int >(val3);
16362 }
16363 if (obj3) {
093d3ff1 16364 {
0085ce49
RD
16365 arg4 = wxString_in_helper(obj3);
16366 if (arg4 == NULL) SWIG_fail;
16367 temp4 = true;
093d3ff1 16368 }
0085ce49
RD
16369 }
16370 if (obj4) {
d14a1e28 16371 {
0085ce49
RD
16372 arg5 = &temp5;
16373 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 16374 }
0085ce49
RD
16375 }
16376 if (obj5) {
d14a1e28 16377 {
0085ce49
RD
16378 arg6 = &temp6;
16379 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 16380 }
0085ce49
RD
16381 }
16382 if (obj6) {
d14a1e28 16383 {
0085ce49
RD
16384 if (! PySequence_Check(obj6)) {
16385 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16386 SWIG_fail;
16387 }
16388 arg7 = new wxArrayString;
16389 temp7 = true;
16390 int i, len=PySequence_Length(obj6);
16391 for (i=0; i<len; i++) {
16392 PyObject* item = PySequence_GetItem(obj6, i);
16393 wxString* s = wxString_in_helper(item);
16394 if (PyErr_Occurred()) SWIG_fail;
16395 arg7->Add(*s);
16396 delete s;
16397 Py_DECREF(item);
16398 }
d14a1e28 16399 }
0085ce49
RD
16400 }
16401 if (obj7) {
16402 ecode8 = SWIG_AsVal_int(obj7, &val8);
16403 if (!SWIG_IsOK(ecode8)) {
16404 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16405 }
16406 arg8 = static_cast< int >(val8);
16407 }
16408 if (obj8) {
16409 ecode9 = SWIG_AsVal_long(obj8, &val9);
16410 if (!SWIG_IsOK(ecode9)) {
16411 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16412 }
16413 arg9 = static_cast< long >(val9);
16414 }
16415 if (obj9) {
16416 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16417 if (!SWIG_IsOK(res10)) {
16418 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
4f89f6a3 16419 }
0085ce49
RD
16420 if (!argp10) {
16421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 16422 }
0085ce49
RD
16423 arg10 = reinterpret_cast< wxValidator * >(argp10);
16424 }
16425 if (obj10) {
d14a1e28 16426 {
0085ce49
RD
16427 arg11 = wxString_in_helper(obj10);
16428 if (arg11 == NULL) SWIG_fail;
16429 temp11 = true;
d14a1e28 16430 }
0085ce49
RD
16431 }
16432 {
16433 PyThreadState* __tstate = wxPyBeginAllowThreads();
16434 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);
16435 wxPyEndAllowThreads(__tstate);
16436 if (PyErr_Occurred()) SWIG_fail;
16437 }
16438 {
16439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16440 }
16441 {
16442 if (temp4)
16443 delete arg4;
16444 }
16445 {
16446 if (temp7) delete arg7;
16447 }
16448 {
16449 if (temp11)
16450 delete arg11;
16451 }
16452 return resultobj;
16453fail:
16454 {
16455 if (temp4)
16456 delete arg4;
16457 }
16458 {
16459 if (temp7) delete arg7;
16460 }
16461 {
16462 if (temp11)
16463 delete arg11;
16464 }
16465 return NULL;
16466}
16467
16468
16469SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16470 PyObject *resultobj = 0;
16471 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16472 int arg2 ;
16473 void *argp1 = 0 ;
16474 int res1 = 0 ;
16475 int val2 ;
16476 int ecode2 = 0 ;
16477 PyObject * obj0 = 0 ;
16478 PyObject * obj1 = 0 ;
16479 char * kwnames[] = {
16480 (char *) "self",(char *) "n", NULL
16481 };
16482
16483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16485 if (!SWIG_IsOK(res1)) {
16486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16487 }
16488 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16489 ecode2 = SWIG_AsVal_int(obj1, &val2);
16490 if (!SWIG_IsOK(ecode2)) {
16491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16492 }
16493 arg2 = static_cast< int >(val2);
16494 {
16495 PyThreadState* __tstate = wxPyBeginAllowThreads();
16496 (arg1)->SetSelection(arg2);
16497 wxPyEndAllowThreads(__tstate);
16498 if (PyErr_Occurred()) SWIG_fail;
16499 }
16500 resultobj = SWIG_Py_Void();
16501 return resultobj;
16502fail:
16503 return NULL;
d14a1e28
RD
16504}
16505
16506
0085ce49
RD
16507SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16508 PyObject *resultobj = 0;
16509 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16510 int result;
16511 void *argp1 = 0 ;
16512 int res1 = 0 ;
16513 PyObject *swig_obj[1] ;
16514
16515 if (!args) SWIG_fail;
16516 swig_obj[0] = args;
16517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16518 if (!SWIG_IsOK(res1)) {
16519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16520 }
16521 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16522 {
16523 PyThreadState* __tstate = wxPyBeginAllowThreads();
16524 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16525 wxPyEndAllowThreads(__tstate);
16526 if (PyErr_Occurred()) SWIG_fail;
16527 }
16528 resultobj = SWIG_From_int(static_cast< int >(result));
16529 return resultobj;
16530fail:
16531 return NULL;
d14a1e28
RD
16532}
16533
16534
0085ce49
RD
16535SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16536 PyObject *resultobj = 0;
16537 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16538 wxString result;
16539 void *argp1 = 0 ;
16540 int res1 = 0 ;
16541 PyObject *swig_obj[1] ;
16542
16543 if (!args) SWIG_fail;
16544 swig_obj[0] = args;
16545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16546 if (!SWIG_IsOK(res1)) {
16547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16548 }
16549 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16550 {
16551 PyThreadState* __tstate = wxPyBeginAllowThreads();
16552 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16553 wxPyEndAllowThreads(__tstate);
16554 if (PyErr_Occurred()) SWIG_fail;
16555 }
16556 {
16557#if wxUSE_UNICODE
16558 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16559#else
16560 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16561#endif
16562 }
16563 return resultobj;
16564fail:
16565 return NULL;
16566}
16567
16568
16569SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16570 PyObject *resultobj = 0;
16571 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16572 wxString *arg2 = 0 ;
16573 bool result;
16574 void *argp1 = 0 ;
16575 int res1 = 0 ;
16576 bool temp2 = false ;
16577 PyObject * obj0 = 0 ;
16578 PyObject * obj1 = 0 ;
16579 char * kwnames[] = {
16580 (char *) "self",(char *) "s", NULL
16581 };
16582
16583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16585 if (!SWIG_IsOK(res1)) {
16586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16587 }
16588 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16589 {
16590 arg2 = wxString_in_helper(obj1);
16591 if (arg2 == NULL) SWIG_fail;
16592 temp2 = true;
16593 }
16594 {
16595 PyThreadState* __tstate = wxPyBeginAllowThreads();
16596 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16597 wxPyEndAllowThreads(__tstate);
16598 if (PyErr_Occurred()) SWIG_fail;
16599 }
16600 {
16601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16602 }
16603 {
16604 if (temp2)
16605 delete arg2;
16606 }
16607 return resultobj;
16608fail:
16609 {
16610 if (temp2)
16611 delete arg2;
16612 }
16613 return NULL;
d14a1e28
RD
16614}
16615
16616
0085ce49
RD
16617SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16618 PyObject *resultobj = 0;
16619 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
75219dcb 16620 size_t result;
0085ce49
RD
16621 void *argp1 = 0 ;
16622 int res1 = 0 ;
16623 PyObject *swig_obj[1] ;
16624
16625 if (!args) SWIG_fail;
16626 swig_obj[0] = args;
16627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16628 if (!SWIG_IsOK(res1)) {
16629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16630 }
16631 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16632 {
16633 PyThreadState* __tstate = wxPyBeginAllowThreads();
75219dcb 16634 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
0085ce49
RD
16635 wxPyEndAllowThreads(__tstate);
16636 if (PyErr_Occurred()) SWIG_fail;
16637 }
75219dcb 16638 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
0085ce49
RD
16639 return resultobj;
16640fail:
16641 return NULL;
16642}
16643
16644
16645SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16646 PyObject *resultobj = 0;
16647 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16648 wxString *arg2 = 0 ;
16649 int result;
16650 void *argp1 = 0 ;
16651 int res1 = 0 ;
16652 bool temp2 = false ;
16653 PyObject * obj0 = 0 ;
16654 PyObject * obj1 = 0 ;
16655 char * kwnames[] = {
16656 (char *) "self",(char *) "s", NULL
16657 };
16658
16659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16661 if (!SWIG_IsOK(res1)) {
16662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16663 }
16664 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16665 {
16666 arg2 = wxString_in_helper(obj1);
16667 if (arg2 == NULL) SWIG_fail;
16668 temp2 = true;
16669 }
16670 {
16671 PyThreadState* __tstate = wxPyBeginAllowThreads();
16672 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16673 wxPyEndAllowThreads(__tstate);
16674 if (PyErr_Occurred()) SWIG_fail;
16675 }
16676 resultobj = SWIG_From_int(static_cast< int >(result));
16677 {
16678 if (temp2)
16679 delete arg2;
16680 }
16681 return resultobj;
16682fail:
16683 {
16684 if (temp2)
16685 delete arg2;
16686 }
16687 return NULL;
16688}
16689
16690
16691SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16692 PyObject *resultobj = 0;
16693 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16694 int arg2 ;
16695 wxString result;
16696 void *argp1 = 0 ;
16697 int res1 = 0 ;
16698 int val2 ;
16699 int ecode2 = 0 ;
16700 PyObject * obj0 = 0 ;
16701 PyObject * obj1 = 0 ;
16702 char * kwnames[] = {
16703 (char *) "self",(char *) "n", NULL
16704 };
16705
16706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16708 if (!SWIG_IsOK(res1)) {
16709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16710 }
16711 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16712 ecode2 = SWIG_AsVal_int(obj1, &val2);
16713 if (!SWIG_IsOK(ecode2)) {
16714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16715 }
16716 arg2 = static_cast< int >(val2);
16717 {
16718 PyThreadState* __tstate = wxPyBeginAllowThreads();
16719 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16720 wxPyEndAllowThreads(__tstate);
16721 if (PyErr_Occurred()) SWIG_fail;
16722 }
16723 {
16724#if wxUSE_UNICODE
16725 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16726#else
16727 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16728#endif
16729 }
16730 return resultobj;
16731fail:
16732 return NULL;
16733}
16734
16735
16736SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16737 PyObject *resultobj = 0;
16738 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16739 int arg2 ;
16740 wxString *arg3 = 0 ;
16741 void *argp1 = 0 ;
16742 int res1 = 0 ;
16743 int val2 ;
16744 int ecode2 = 0 ;
16745 bool temp3 = false ;
16746 PyObject * obj0 = 0 ;
16747 PyObject * obj1 = 0 ;
16748 PyObject * obj2 = 0 ;
16749 char * kwnames[] = {
16750 (char *) "self",(char *) "n",(char *) "label", NULL
16751 };
16752
16753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16755 if (!SWIG_IsOK(res1)) {
16756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16757 }
16758 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16759 ecode2 = SWIG_AsVal_int(obj1, &val2);
16760 if (!SWIG_IsOK(ecode2)) {
16761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16762 }
16763 arg2 = static_cast< int >(val2);
16764 {
16765 arg3 = wxString_in_helper(obj2);
16766 if (arg3 == NULL) SWIG_fail;
16767 temp3 = true;
16768 }
16769 {
16770 PyThreadState* __tstate = wxPyBeginAllowThreads();
16771 (arg1)->SetString(arg2,(wxString const &)*arg3);
16772 wxPyEndAllowThreads(__tstate);
16773 if (PyErr_Occurred()) SWIG_fail;
16774 }
16775 resultobj = SWIG_Py_Void();
16776 {
16777 if (temp3)
16778 delete arg3;
16779 }
16780 return resultobj;
16781fail:
16782 {
16783 if (temp3)
16784 delete arg3;
16785 }
16786 return NULL;
16787}
16788
16789
16790SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16791 PyObject *resultobj = 0;
16792 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16793 unsigned int arg2 ;
0085ce49
RD
16794 bool arg3 = (bool) true ;
16795 void *argp1 = 0 ;
16796 int res1 = 0 ;
50f151d7 16797 unsigned int val2 ;
0085ce49
RD
16798 int ecode2 = 0 ;
16799 bool val3 ;
16800 int ecode3 = 0 ;
16801 PyObject * obj0 = 0 ;
16802 PyObject * obj1 = 0 ;
16803 PyObject * obj2 = 0 ;
16804 char * kwnames[] = {
16805 (char *) "self",(char *) "n",(char *) "enable", NULL
16806 };
16807
16808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16810 if (!SWIG_IsOK(res1)) {
16811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16812 }
16813 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16814 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 16815 if (!SWIG_IsOK(ecode2)) {
50f151d7 16816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 16817 }
50f151d7 16818 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
16819 if (obj2) {
16820 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16821 if (!SWIG_IsOK(ecode3)) {
16822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16823 }
16824 arg3 = static_cast< bool >(val3);
16825 }
16826 {
16827 PyThreadState* __tstate = wxPyBeginAllowThreads();
16828 (arg1)->Enable(arg2,arg3);
16829 wxPyEndAllowThreads(__tstate);
16830 if (PyErr_Occurred()) SWIG_fail;
16831 }
16832 resultobj = SWIG_Py_Void();
16833 return resultobj;
16834fail:
16835 return NULL;
16836}
16837
16838
16839SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16840 PyObject *resultobj = 0;
16841 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16842 unsigned int arg2 ;
0085ce49
RD
16843 bool arg3 = (bool) true ;
16844 void *argp1 = 0 ;
16845 int res1 = 0 ;
50f151d7 16846 unsigned int val2 ;
0085ce49
RD
16847 int ecode2 = 0 ;
16848 bool val3 ;
16849 int ecode3 = 0 ;
16850 PyObject * obj0 = 0 ;
16851 PyObject * obj1 = 0 ;
16852 PyObject * obj2 = 0 ;
16853 char * kwnames[] = {
16854 (char *) "self",(char *) "n",(char *) "show", NULL
16855 };
16856
16857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16859 if (!SWIG_IsOK(res1)) {
16860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16861 }
16862 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16863 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 16864 if (!SWIG_IsOK(ecode2)) {
50f151d7 16865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 16866 }
50f151d7 16867 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
16868 if (obj2) {
16869 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16870 if (!SWIG_IsOK(ecode3)) {
16871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16872 }
16873 arg3 = static_cast< bool >(val3);
16874 }
16875 {
16876 PyThreadState* __tstate = wxPyBeginAllowThreads();
16877 (arg1)->Show(arg2,arg3);
16878 wxPyEndAllowThreads(__tstate);
16879 if (PyErr_Occurred()) SWIG_fail;
16880 }
16881 resultobj = SWIG_Py_Void();
16882 return resultobj;
16883fail:
16884 return NULL;
d14a1e28
RD
16885}
16886
16887
50f151d7
RD
16888SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16889 PyObject *resultobj = 0;
16890 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16891 unsigned int arg2 ;
16892 bool result;
16893 void *argp1 = 0 ;
16894 int res1 = 0 ;
16895 unsigned int val2 ;
16896 int ecode2 = 0 ;
16897 PyObject * obj0 = 0 ;
16898 PyObject * obj1 = 0 ;
16899 char * kwnames[] = {
16900 (char *) "self",(char *) "n", NULL
16901 };
16902
16903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16905 if (!SWIG_IsOK(res1)) {
16906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16907 }
16908 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16909 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16910 if (!SWIG_IsOK(ecode2)) {
16911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16912 }
16913 arg2 = static_cast< unsigned int >(val2);
16914 {
16915 PyThreadState* __tstate = wxPyBeginAllowThreads();
16916 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16917 wxPyEndAllowThreads(__tstate);
16918 if (PyErr_Occurred()) SWIG_fail;
16919 }
16920 {
16921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16922 }
16923 return resultobj;
16924fail:
16925 return NULL;
16926}
16927
16928
16929SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16930 PyObject *resultobj = 0;
16931 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16932 unsigned int arg2 ;
16933 bool result;
16934 void *argp1 = 0 ;
16935 int res1 = 0 ;
16936 unsigned int val2 ;
16937 int ecode2 = 0 ;
16938 PyObject * obj0 = 0 ;
16939 PyObject * obj1 = 0 ;
16940 char * kwnames[] = {
16941 (char *) "self",(char *) "n", NULL
16942 };
16943
16944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16946 if (!SWIG_IsOK(res1)) {
16947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16948 }
16949 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16950 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16951 if (!SWIG_IsOK(ecode2)) {
16952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16953 }
16954 arg2 = static_cast< unsigned int >(val2);
16955 {
16956 PyThreadState* __tstate = wxPyBeginAllowThreads();
16957 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16958 wxPyEndAllowThreads(__tstate);
16959 if (PyErr_Occurred()) SWIG_fail;
16960 }
16961 {
16962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16963 }
16964 return resultobj;
16965fail:
16966 return NULL;
16967}
16968
16969
0085ce49
RD
16970SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16971 PyObject *resultobj = 0;
16972 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16973 unsigned int result;
0085ce49
RD
16974 void *argp1 = 0 ;
16975 int res1 = 0 ;
16976 PyObject *swig_obj[1] ;
16977
16978 if (!args) SWIG_fail;
16979 swig_obj[0] = args;
16980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16981 if (!SWIG_IsOK(res1)) {
16982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16983 }
16984 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16985 {
16986 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16987 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
0085ce49
RD
16988 wxPyEndAllowThreads(__tstate);
16989 if (PyErr_Occurred()) SWIG_fail;
16990 }
50f151d7 16991 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
16992 return resultobj;
16993fail:
16994 return NULL;
d14a1e28
RD
16995}
16996
16997
0085ce49
RD
16998SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16999 PyObject *resultobj = 0;
17000 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 17001 unsigned int result;
0085ce49
RD
17002 void *argp1 = 0 ;
17003 int res1 = 0 ;
17004 PyObject *swig_obj[1] ;
17005
17006 if (!args) SWIG_fail;
17007 swig_obj[0] = args;
17008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17009 if (!SWIG_IsOK(res1)) {
17010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17011 }
17012 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17013 {
17014 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 17015 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
0085ce49
RD
17016 wxPyEndAllowThreads(__tstate);
17017 if (PyErr_Occurred()) SWIG_fail;
17018 }
50f151d7 17019 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
17020 return resultobj;
17021fail:
17022 return NULL;
17023}
17024
17025
17026SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17027 PyObject *resultobj = 0;
17028 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17029 int arg2 ;
17030 wxDirection arg3 ;
17031 long arg4 ;
17032 int result;
17033 void *argp1 = 0 ;
17034 int res1 = 0 ;
17035 int val2 ;
17036 int ecode2 = 0 ;
17037 int val3 ;
17038 int ecode3 = 0 ;
17039 long val4 ;
17040 int ecode4 = 0 ;
17041 PyObject * obj0 = 0 ;
17042 PyObject * obj1 = 0 ;
17043 PyObject * obj2 = 0 ;
17044 PyObject * obj3 = 0 ;
17045 char * kwnames[] = {
17046 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
17047 };
17048
17049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17051 if (!SWIG_IsOK(res1)) {
17052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17053 }
17054 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17055 ecode2 = SWIG_AsVal_int(obj1, &val2);
17056 if (!SWIG_IsOK(ecode2)) {
17057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
17058 }
17059 arg2 = static_cast< int >(val2);
17060 ecode3 = SWIG_AsVal_int(obj2, &val3);
17061 if (!SWIG_IsOK(ecode3)) {
17062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
17063 }
17064 arg3 = static_cast< wxDirection >(val3);
17065 ecode4 = SWIG_AsVal_long(obj3, &val4);
17066 if (!SWIG_IsOK(ecode4)) {
17067 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
17068 }
17069 arg4 = static_cast< long >(val4);
17070 {
17071 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 17072 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
0085ce49
RD
17073 wxPyEndAllowThreads(__tstate);
17074 if (PyErr_Occurred()) SWIG_fail;
17075 }
17076 resultobj = SWIG_From_int(static_cast< int >(result));
17077 return resultobj;
17078fail:
17079 return NULL;
17080}
17081
17082
01f6b6d3
RD
17083SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17084 PyObject *resultobj = 0;
17085 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17086 unsigned int arg2 ;
17087 wxString *arg3 = 0 ;
17088 void *argp1 = 0 ;
17089 int res1 = 0 ;
17090 unsigned int val2 ;
17091 int ecode2 = 0 ;
17092 bool temp3 = false ;
17093 PyObject * obj0 = 0 ;
17094 PyObject * obj1 = 0 ;
17095 PyObject * obj2 = 0 ;
17096 char * kwnames[] = {
17097 (char *) "self",(char *) "item",(char *) "text", NULL
17098 };
17099
17100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17102 if (!SWIG_IsOK(res1)) {
17103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17104 }
17105 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17106 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17107 if (!SWIG_IsOK(ecode2)) {
17108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17109 }
17110 arg2 = static_cast< unsigned int >(val2);
17111 {
17112 arg3 = wxString_in_helper(obj2);
17113 if (arg3 == NULL) SWIG_fail;
17114 temp3 = true;
17115 }
17116 {
17117 PyThreadState* __tstate = wxPyBeginAllowThreads();
17118 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17119 wxPyEndAllowThreads(__tstate);
17120 if (PyErr_Occurred()) SWIG_fail;
17121 }
17122 resultobj = SWIG_Py_Void();
17123 {
17124 if (temp3)
17125 delete arg3;
17126 }
17127 return resultobj;
17128fail:
17129 {
17130 if (temp3)
17131 delete arg3;
17132 }
17133 return NULL;
17134}
17135
17136
17137SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17138 PyObject *resultobj = 0;
17139 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17140 unsigned int arg2 ;
17141 wxToolTip *result = 0 ;
17142 void *argp1 = 0 ;
17143 int res1 = 0 ;
17144 unsigned int val2 ;
17145 int ecode2 = 0 ;
17146 PyObject * obj0 = 0 ;
17147 PyObject * obj1 = 0 ;
17148 char * kwnames[] = {
17149 (char *) "self",(char *) "item", NULL
17150 };
17151
17152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17154 if (!SWIG_IsOK(res1)) {
17155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17156 }
17157 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17158 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17159 if (!SWIG_IsOK(ecode2)) {
17160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17161 }
17162 arg2 = static_cast< unsigned int >(val2);
17163 {
17164 PyThreadState* __tstate = wxPyBeginAllowThreads();
17165 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17166 wxPyEndAllowThreads(__tstate);
17167 if (PyErr_Occurred()) SWIG_fail;
17168 }
17169 {
17170 resultobj = wxPyMake_wxObject(result, (bool)0);
17171 }
17172 return resultobj;
17173fail:
17174 return NULL;
17175}
17176
17177
b850e7f3
RD
17178SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17179 PyObject *resultobj = 0;
17180 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17181 unsigned int arg2 ;
17182 wxString *arg3 = 0 ;
17183 void *argp1 = 0 ;
17184 int res1 = 0 ;
17185 unsigned int val2 ;
17186 int ecode2 = 0 ;
17187 bool temp3 = false ;
17188 PyObject * obj0 = 0 ;
17189 PyObject * obj1 = 0 ;
17190 PyObject * obj2 = 0 ;
17191 char * kwnames[] = {
17192 (char *) "self",(char *) "n",(char *) "helpText", NULL
17193 };
17194
17195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17197 if (!SWIG_IsOK(res1)) {
17198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17199 }
17200 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17201 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17202 if (!SWIG_IsOK(ecode2)) {
17203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17204 }
17205 arg2 = static_cast< unsigned int >(val2);
17206 {
17207 arg3 = wxString_in_helper(obj2);
17208 if (arg3 == NULL) SWIG_fail;
17209 temp3 = true;
17210 }
17211 {
17212 PyThreadState* __tstate = wxPyBeginAllowThreads();
17213 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17214 wxPyEndAllowThreads(__tstate);
17215 if (PyErr_Occurred()) SWIG_fail;
17216 }
17217 resultobj = SWIG_Py_Void();
17218 {
17219 if (temp3)
17220 delete arg3;
17221 }
17222 return resultobj;
17223fail:
17224 {
17225 if (temp3)
17226 delete arg3;
17227 }
17228 return NULL;
17229}
17230
17231
17232SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17233 PyObject *resultobj = 0;
17234 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17235 unsigned int arg2 ;
17236 wxString result;
17237 void *argp1 = 0 ;
17238 int res1 = 0 ;
17239 unsigned int val2 ;
17240 int ecode2 = 0 ;
17241 PyObject * obj0 = 0 ;
17242 PyObject * obj1 = 0 ;
17243 char * kwnames[] = {
17244 (char *) "self",(char *) "n", NULL
17245 };
17246
17247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17249 if (!SWIG_IsOK(res1)) {
17250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17251 }
17252 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17253 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17254 if (!SWIG_IsOK(ecode2)) {
17255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17256 }
17257 arg2 = static_cast< unsigned int >(val2);
17258 {
17259 PyThreadState* __tstate = wxPyBeginAllowThreads();
17260 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17261 wxPyEndAllowThreads(__tstate);
17262 if (PyErr_Occurred()) SWIG_fail;
17263 }
17264 {
17265#if wxUSE_UNICODE
17266 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17267#else
17268 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17269#endif
17270 }
17271 return resultobj;
17272fail:
17273 return NULL;
17274}
17275
17276
0085ce49
RD
17277SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17278 PyObject *resultobj = 0;
17279 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17280 SwigValueWrapper<wxVisualAttributes > result;
17281 int val1 ;
17282 int ecode1 = 0 ;
17283 PyObject * obj0 = 0 ;
17284 char * kwnames[] = {
17285 (char *) "variant", NULL
17286 };
17287
17288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17289 if (obj0) {
17290 ecode1 = SWIG_AsVal_int(obj0, &val1);
17291 if (!SWIG_IsOK(ecode1)) {
17292 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17293 }
17294 arg1 = static_cast< wxWindowVariant >(val1);
17295 }
17296 {
17297 if (!wxPyCheckForApp()) SWIG_fail;
17298 PyThreadState* __tstate = wxPyBeginAllowThreads();
17299 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17300 wxPyEndAllowThreads(__tstate);
17301 if (PyErr_Occurred()) SWIG_fail;
17302 }
17303 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17304 return resultobj;
17305fail:
17306 return NULL;
17307}
17308
17309
17310SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17311 PyObject *obj;
17312 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17313 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17314 return SWIG_Py_Void();
17315}
17316
17317SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17318 return SWIG_Python_InitShadowInstance(args);
17319}
17320
17321SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17322 PyObject *resultobj = 0;
17323 wxWindow *arg1 = (wxWindow *) 0 ;
17324 int arg2 = (int) -1 ;
17325 wxString const &arg3_defvalue = wxPyEmptyString ;
17326 wxString *arg3 = (wxString *) &arg3_defvalue ;
17327 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17328 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17329 wxSize const &arg5_defvalue = wxDefaultSize ;
17330 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17331 long arg6 = (long) 0 ;
17332 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17333 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17334 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17335 wxString *arg8 = (wxString *) &arg8_defvalue ;
17336 wxRadioButton *result = 0 ;
17337 void *argp1 = 0 ;
17338 int res1 = 0 ;
17339 int val2 ;
17340 int ecode2 = 0 ;
17341 bool temp3 = false ;
17342 wxPoint temp4 ;
17343 wxSize temp5 ;
17344 long val6 ;
17345 int ecode6 = 0 ;
17346 void *argp7 = 0 ;
17347 int res7 = 0 ;
17348 bool temp8 = false ;
17349 PyObject * obj0 = 0 ;
17350 PyObject * obj1 = 0 ;
17351 PyObject * obj2 = 0 ;
17352 PyObject * obj3 = 0 ;
17353 PyObject * obj4 = 0 ;
17354 PyObject * obj5 = 0 ;
17355 PyObject * obj6 = 0 ;
17356 PyObject * obj7 = 0 ;
17357 char * kwnames[] = {
17358 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17359 };
17360
17361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17363 if (!SWIG_IsOK(res1)) {
17364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17365 }
17366 arg1 = reinterpret_cast< wxWindow * >(argp1);
17367 if (obj1) {
17368 ecode2 = SWIG_AsVal_int(obj1, &val2);
17369 if (!SWIG_IsOK(ecode2)) {
17370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17371 }
17372 arg2 = static_cast< int >(val2);
17373 }
17374 if (obj2) {
d14a1e28 17375 {
0085ce49
RD
17376 arg3 = wxString_in_helper(obj2);
17377 if (arg3 == NULL) SWIG_fail;
17378 temp3 = true;
d14a1e28 17379 }
0085ce49
RD
17380 }
17381 if (obj3) {
d14a1e28 17382 {
0085ce49
RD
17383 arg4 = &temp4;
17384 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 17385 }
0085ce49
RD
17386 }
17387 if (obj4) {
d14a1e28 17388 {
0085ce49
RD
17389 arg5 = &temp5;
17390 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17391 }
17392 }
17393 if (obj5) {
17394 ecode6 = SWIG_AsVal_long(obj5, &val6);
17395 if (!SWIG_IsOK(ecode6)) {
17396 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17397 }
17398 arg6 = static_cast< long >(val6);
17399 }
17400 if (obj6) {
17401 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17402 if (!SWIG_IsOK(res7)) {
17403 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 17404 }
0085ce49
RD
17405 if (!argp7) {
17406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17407 }
17408 arg7 = reinterpret_cast< wxValidator * >(argp7);
17409 }
17410 if (obj7) {
d14a1e28 17411 {
0085ce49
RD
17412 arg8 = wxString_in_helper(obj7);
17413 if (arg8 == NULL) SWIG_fail;
17414 temp8 = true;
d14a1e28 17415 }
0085ce49
RD
17416 }
17417 {
17418 if (!wxPyCheckForApp()) SWIG_fail;
17419 PyThreadState* __tstate = wxPyBeginAllowThreads();
17420 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17421 wxPyEndAllowThreads(__tstate);
17422 if (PyErr_Occurred()) SWIG_fail;
17423 }
17424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17425 {
17426 if (temp3)
17427 delete arg3;
17428 }
17429 {
17430 if (temp8)
17431 delete arg8;
17432 }
17433 return resultobj;
17434fail:
17435 {
17436 if (temp3)
17437 delete arg3;
17438 }
17439 {
17440 if (temp8)
17441 delete arg8;
17442 }
17443 return NULL;
d14a1e28
RD
17444}
17445
17446
0085ce49
RD
17447SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17448 PyObject *resultobj = 0;
17449 wxRadioButton *result = 0 ;
17450
17451 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17452 {
17453 if (!wxPyCheckForApp()) SWIG_fail;
17454 PyThreadState* __tstate = wxPyBeginAllowThreads();
17455 result = (wxRadioButton *)new wxRadioButton();
17456 wxPyEndAllowThreads(__tstate);
17457 if (PyErr_Occurred()) SWIG_fail;
17458 }
17459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17460 return resultobj;
17461fail:
17462 return NULL;
17463}
17464
17465
17466SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17467 PyObject *resultobj = 0;
17468 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17469 wxWindow *arg2 = (wxWindow *) 0 ;
17470 int arg3 = (int) -1 ;
17471 wxString const &arg4_defvalue = wxPyEmptyString ;
17472 wxString *arg4 = (wxString *) &arg4_defvalue ;
17473 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17474 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17475 wxSize const &arg6_defvalue = wxDefaultSize ;
17476 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17477 long arg7 = (long) 0 ;
17478 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17479 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17480 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17481 wxString *arg9 = (wxString *) &arg9_defvalue ;
17482 bool result;
17483 void *argp1 = 0 ;
17484 int res1 = 0 ;
17485 void *argp2 = 0 ;
17486 int res2 = 0 ;
17487 int val3 ;
17488 int ecode3 = 0 ;
17489 bool temp4 = false ;
17490 wxPoint temp5 ;
17491 wxSize temp6 ;
17492 long val7 ;
17493 int ecode7 = 0 ;
17494 void *argp8 = 0 ;
17495 int res8 = 0 ;
17496 bool temp9 = false ;
17497 PyObject * obj0 = 0 ;
17498 PyObject * obj1 = 0 ;
17499 PyObject * obj2 = 0 ;
17500 PyObject * obj3 = 0 ;
17501 PyObject * obj4 = 0 ;
17502 PyObject * obj5 = 0 ;
17503 PyObject * obj6 = 0 ;
17504 PyObject * obj7 = 0 ;
17505 PyObject * obj8 = 0 ;
17506 char * kwnames[] = {
17507 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17508 };
17509
17510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17512 if (!SWIG_IsOK(res1)) {
17513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17514 }
17515 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17516 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17517 if (!SWIG_IsOK(res2)) {
17518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17519 }
17520 arg2 = reinterpret_cast< wxWindow * >(argp2);
17521 if (obj2) {
17522 ecode3 = SWIG_AsVal_int(obj2, &val3);
17523 if (!SWIG_IsOK(ecode3)) {
17524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17525 }
17526 arg3 = static_cast< int >(val3);
17527 }
17528 if (obj3) {
d14a1e28 17529 {
0085ce49
RD
17530 arg4 = wxString_in_helper(obj3);
17531 if (arg4 == NULL) SWIG_fail;
17532 temp4 = true;
d14a1e28 17533 }
0085ce49
RD
17534 }
17535 if (obj4) {
d14a1e28 17536 {
0085ce49
RD
17537 arg5 = &temp5;
17538 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 17539 }
0085ce49
RD
17540 }
17541 if (obj5) {
d14a1e28 17542 {
0085ce49
RD
17543 arg6 = &temp6;
17544 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17545 }
17546 }
17547 if (obj6) {
17548 ecode7 = SWIG_AsVal_long(obj6, &val7);
17549 if (!SWIG_IsOK(ecode7)) {
17550 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17551 }
17552 arg7 = static_cast< long >(val7);
17553 }
17554 if (obj7) {
17555 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17556 if (!SWIG_IsOK(res8)) {
17557 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17558 }
17559 if (!argp8) {
17560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 17561 }
0085ce49
RD
17562 arg8 = reinterpret_cast< wxValidator * >(argp8);
17563 }
17564 if (obj8) {
d14a1e28 17565 {
0085ce49
RD
17566 arg9 = wxString_in_helper(obj8);
17567 if (arg9 == NULL) SWIG_fail;
17568 temp9 = true;
d14a1e28 17569 }
0085ce49
RD
17570 }
17571 {
17572 PyThreadState* __tstate = wxPyBeginAllowThreads();
17573 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17574 wxPyEndAllowThreads(__tstate);
17575 if (PyErr_Occurred()) SWIG_fail;
17576 }
17577 {
17578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17579 }
17580 {
17581 if (temp4)
17582 delete arg4;
17583 }
17584 {
17585 if (temp9)
17586 delete arg9;
17587 }
17588 return resultobj;
17589fail:
17590 {
17591 if (temp4)
17592 delete arg4;
17593 }
17594 {
17595 if (temp9)
17596 delete arg9;
17597 }
17598 return NULL;
d14a1e28
RD
17599}
17600
17601
0085ce49
RD
17602SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17603 PyObject *resultobj = 0;
17604 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17605 bool result;
17606 void *argp1 = 0 ;
17607 int res1 = 0 ;
17608 PyObject *swig_obj[1] ;
17609
17610 if (!args) SWIG_fail;
17611 swig_obj[0] = args;
17612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17613 if (!SWIG_IsOK(res1)) {
17614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17615 }
17616 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17617 {
17618 PyThreadState* __tstate = wxPyBeginAllowThreads();
17619 result = (bool)(arg1)->GetValue();
17620 wxPyEndAllowThreads(__tstate);
17621 if (PyErr_Occurred()) SWIG_fail;
17622 }
17623 {
17624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17625 }
17626 return resultobj;
17627fail:
17628 return NULL;
17629}
17630
17631
17632SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17633 PyObject *resultobj = 0;
17634 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17635 bool arg2 ;
17636 void *argp1 = 0 ;
17637 int res1 = 0 ;
17638 bool val2 ;
17639 int ecode2 = 0 ;
17640 PyObject * obj0 = 0 ;
17641 PyObject * obj1 = 0 ;
17642 char * kwnames[] = {
17643 (char *) "self",(char *) "value", NULL
17644 };
17645
17646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17648 if (!SWIG_IsOK(res1)) {
17649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17650 }
17651 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17652 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17653 if (!SWIG_IsOK(ecode2)) {
17654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17655 }
17656 arg2 = static_cast< bool >(val2);
17657 {
17658 PyThreadState* __tstate = wxPyBeginAllowThreads();
17659 (arg1)->SetValue(arg2);
17660 wxPyEndAllowThreads(__tstate);
17661 if (PyErr_Occurred()) SWIG_fail;
17662 }
17663 resultobj = SWIG_Py_Void();
17664 return resultobj;
17665fail:
17666 return NULL;
17667}
17668
17669
17670SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17671 PyObject *resultobj = 0;
17672 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17673 SwigValueWrapper<wxVisualAttributes > result;
17674 int val1 ;
17675 int ecode1 = 0 ;
17676 PyObject * obj0 = 0 ;
17677 char * kwnames[] = {
17678 (char *) "variant", NULL
17679 };
17680
17681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17682 if (obj0) {
17683 ecode1 = SWIG_AsVal_int(obj0, &val1);
17684 if (!SWIG_IsOK(ecode1)) {
17685 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17686 }
17687 arg1 = static_cast< wxWindowVariant >(val1);
17688 }
17689 {
17690 if (!wxPyCheckForApp()) SWIG_fail;
17691 PyThreadState* __tstate = wxPyBeginAllowThreads();
17692 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17693 wxPyEndAllowThreads(__tstate);
17694 if (PyErr_Occurred()) SWIG_fail;
17695 }
17696 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17697 return resultobj;
17698fail:
17699 return NULL;
d14a1e28
RD
17700}
17701
17702
0085ce49
RD
17703SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17704 PyObject *obj;
17705 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17706 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17707 return SWIG_Py_Void();
17708}
17709
17710SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17711 return SWIG_Python_InitShadowInstance(args);
17712}
17713
17714SWIGINTERN int SliderNameStr_set(PyObject *) {
17715 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17716 return 1;
17717}
17718
17719
17720SWIGINTERN PyObject *SliderNameStr_get(void) {
17721 PyObject *pyobj = 0;
17722
17723 {
17724#if wxUSE_UNICODE
17725 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17726#else
17727 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17728#endif
17729 }
17730 return pyobj;
17731}
17732
17733
17734SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17735 PyObject *resultobj = 0;
17736 wxWindow *arg1 = (wxWindow *) 0 ;
17737 int arg2 = (int) -1 ;
17738 int arg3 = (int) 0 ;
17739 int arg4 = (int) 0 ;
17740 int arg5 = (int) 100 ;
17741 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17742 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17743 wxSize const &arg7_defvalue = wxDefaultSize ;
17744 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17745 long arg8 = (long) wxSL_HORIZONTAL ;
17746 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17747 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17748 wxString const &arg10_defvalue = wxPySliderNameStr ;
17749 wxString *arg10 = (wxString *) &arg10_defvalue ;
17750 wxSlider *result = 0 ;
17751 void *argp1 = 0 ;
17752 int res1 = 0 ;
17753 int val2 ;
17754 int ecode2 = 0 ;
17755 int val3 ;
17756 int ecode3 = 0 ;
17757 int val4 ;
17758 int ecode4 = 0 ;
17759 int val5 ;
17760 int ecode5 = 0 ;
17761 wxPoint temp6 ;
17762 wxSize temp7 ;
17763 long val8 ;
17764 int ecode8 = 0 ;
17765 void *argp9 = 0 ;
17766 int res9 = 0 ;
17767 bool temp10 = false ;
17768 PyObject * obj0 = 0 ;
17769 PyObject * obj1 = 0 ;
17770 PyObject * obj2 = 0 ;
17771 PyObject * obj3 = 0 ;
17772 PyObject * obj4 = 0 ;
17773 PyObject * obj5 = 0 ;
17774 PyObject * obj6 = 0 ;
17775 PyObject * obj7 = 0 ;
17776 PyObject * obj8 = 0 ;
17777 PyObject * obj9 = 0 ;
17778 char * kwnames[] = {
17779 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17780 };
17781
17782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17784 if (!SWIG_IsOK(res1)) {
17785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17786 }
17787 arg1 = reinterpret_cast< wxWindow * >(argp1);
17788 if (obj1) {
17789 ecode2 = SWIG_AsVal_int(obj1, &val2);
17790 if (!SWIG_IsOK(ecode2)) {
17791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17792 }
17793 arg2 = static_cast< int >(val2);
17794 }
17795 if (obj2) {
17796 ecode3 = SWIG_AsVal_int(obj2, &val3);
17797 if (!SWIG_IsOK(ecode3)) {
17798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17799 }
17800 arg3 = static_cast< int >(val3);
17801 }
17802 if (obj3) {
17803 ecode4 = SWIG_AsVal_int(obj3, &val4);
17804 if (!SWIG_IsOK(ecode4)) {
17805 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17806 }
17807 arg4 = static_cast< int >(val4);
17808 }
17809 if (obj4) {
17810 ecode5 = SWIG_AsVal_int(obj4, &val5);
17811 if (!SWIG_IsOK(ecode5)) {
17812 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17813 }
17814 arg5 = static_cast< int >(val5);
17815 }
17816 if (obj5) {
093d3ff1 17817 {
0085ce49
RD
17818 arg6 = &temp6;
17819 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 17820 }
0085ce49
RD
17821 }
17822 if (obj6) {
093d3ff1 17823 {
0085ce49
RD
17824 arg7 = &temp7;
17825 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
093d3ff1 17826 }
0085ce49
RD
17827 }
17828 if (obj7) {
17829 ecode8 = SWIG_AsVal_long(obj7, &val8);
17830 if (!SWIG_IsOK(ecode8)) {
17831 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17832 }
17833 arg8 = static_cast< long >(val8);
17834 }
17835 if (obj8) {
17836 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17837 if (!SWIG_IsOK(res9)) {
17838 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17839 }
0085ce49
RD
17840 if (!argp9) {
17841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d14a1e28 17842 }
0085ce49
RD
17843 arg9 = reinterpret_cast< wxValidator * >(argp9);
17844 }
17845 if (obj9) {
4f89f6a3 17846 {
0085ce49
RD
17847 arg10 = wxString_in_helper(obj9);
17848 if (arg10 == NULL) SWIG_fail;
17849 temp10 = true;
4f89f6a3 17850 }
0085ce49
RD
17851 }
17852 {
17853 if (!wxPyCheckForApp()) SWIG_fail;
17854 PyThreadState* __tstate = wxPyBeginAllowThreads();
17855 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17856 wxPyEndAllowThreads(__tstate);
17857 if (PyErr_Occurred()) SWIG_fail;
17858 }
17859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17860 {
17861 if (temp10)
17862 delete arg10;
17863 }
17864 return resultobj;
17865fail:
17866 {
17867 if (temp10)
17868 delete arg10;
17869 }
17870 return NULL;
d14a1e28
RD
17871}
17872
17873
0085ce49
RD
17874SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17875 PyObject *resultobj = 0;
17876 wxSlider *result = 0 ;
17877
17878 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17879 {
17880 if (!wxPyCheckForApp()) SWIG_fail;
17881 PyThreadState* __tstate = wxPyBeginAllowThreads();
17882 result = (wxSlider *)new wxSlider();
17883 wxPyEndAllowThreads(__tstate);
17884 if (PyErr_Occurred()) SWIG_fail;
17885 }
17886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17887 return resultobj;
17888fail:
17889 return NULL;
17890}
17891
17892
17893SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17894 PyObject *resultobj = 0;
17895 wxSlider *arg1 = (wxSlider *) 0 ;
17896 wxWindow *arg2 = (wxWindow *) 0 ;
17897 int arg3 = (int) -1 ;
17898 int arg4 = (int) 0 ;
17899 int arg5 = (int) 0 ;
17900 int arg6 = (int) 100 ;
17901 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17902 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17903 wxSize const &arg8_defvalue = wxDefaultSize ;
17904 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17905 long arg9 = (long) wxSL_HORIZONTAL ;
17906 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17907 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17908 wxString const &arg11_defvalue = wxPySliderNameStr ;
17909 wxString *arg11 = (wxString *) &arg11_defvalue ;
17910 bool result;
17911 void *argp1 = 0 ;
17912 int res1 = 0 ;
17913 void *argp2 = 0 ;
17914 int res2 = 0 ;
17915 int val3 ;
17916 int ecode3 = 0 ;
17917 int val4 ;
17918 int ecode4 = 0 ;
17919 int val5 ;
17920 int ecode5 = 0 ;
17921 int val6 ;
17922 int ecode6 = 0 ;
17923 wxPoint temp7 ;
17924 wxSize temp8 ;
17925 long val9 ;
17926 int ecode9 = 0 ;
17927 void *argp10 = 0 ;
17928 int res10 = 0 ;
17929 bool temp11 = false ;
17930 PyObject * obj0 = 0 ;
17931 PyObject * obj1 = 0 ;
17932 PyObject * obj2 = 0 ;
17933 PyObject * obj3 = 0 ;
17934 PyObject * obj4 = 0 ;
17935 PyObject * obj5 = 0 ;
17936 PyObject * obj6 = 0 ;
17937 PyObject * obj7 = 0 ;
17938 PyObject * obj8 = 0 ;
17939 PyObject * obj9 = 0 ;
17940 PyObject * obj10 = 0 ;
17941 char * kwnames[] = {
17942 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17943 };
17944
17945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17947 if (!SWIG_IsOK(res1)) {
17948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17949 }
17950 arg1 = reinterpret_cast< wxSlider * >(argp1);
17951 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17952 if (!SWIG_IsOK(res2)) {
17953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17954 }
17955 arg2 = reinterpret_cast< wxWindow * >(argp2);
17956 if (obj2) {
17957 ecode3 = SWIG_AsVal_int(obj2, &val3);
17958 if (!SWIG_IsOK(ecode3)) {
17959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17960 }
17961 arg3 = static_cast< int >(val3);
17962 }
17963 if (obj3) {
17964 ecode4 = SWIG_AsVal_int(obj3, &val4);
17965 if (!SWIG_IsOK(ecode4)) {
17966 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17967 }
17968 arg4 = static_cast< int >(val4);
17969 }
17970 if (obj4) {
17971 ecode5 = SWIG_AsVal_int(obj4, &val5);
17972 if (!SWIG_IsOK(ecode5)) {
17973 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17974 }
17975 arg5 = static_cast< int >(val5);
17976 }
17977 if (obj5) {
17978 ecode6 = SWIG_AsVal_int(obj5, &val6);
17979 if (!SWIG_IsOK(ecode6)) {
17980 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17981 }
17982 arg6 = static_cast< int >(val6);
17983 }
17984 if (obj6) {
093d3ff1 17985 {
0085ce49
RD
17986 arg7 = &temp7;
17987 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d14a1e28 17988 }
0085ce49
RD
17989 }
17990 if (obj7) {
d14a1e28 17991 {
0085ce49
RD
17992 arg8 = &temp8;
17993 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d14a1e28 17994 }
0085ce49
RD
17995 }
17996 if (obj8) {
17997 ecode9 = SWIG_AsVal_long(obj8, &val9);
17998 if (!SWIG_IsOK(ecode9)) {
17999 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
18000 }
18001 arg9 = static_cast< long >(val9);
18002 }
18003 if (obj9) {
18004 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
18005 if (!SWIG_IsOK(res10)) {
18006 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 18007 }
0085ce49
RD
18008 if (!argp10) {
18009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d14a1e28 18010 }
0085ce49
RD
18011 arg10 = reinterpret_cast< wxValidator * >(argp10);
18012 }
18013 if (obj10) {
4f89f6a3 18014 {
0085ce49
RD
18015 arg11 = wxString_in_helper(obj10);
18016 if (arg11 == NULL) SWIG_fail;
18017 temp11 = true;
4f89f6a3 18018 }
0085ce49
RD
18019 }
18020 {
18021 PyThreadState* __tstate = wxPyBeginAllowThreads();
18022 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
18023 wxPyEndAllowThreads(__tstate);
18024 if (PyErr_Occurred()) SWIG_fail;
18025 }
18026 {
18027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18028 }
18029 {
18030 if (temp11)
18031 delete arg11;
18032 }
18033 return resultobj;
18034fail:
18035 {
18036 if (temp11)
18037 delete arg11;
18038 }
18039 return NULL;
d14a1e28
RD
18040}
18041
18042
0085ce49
RD
18043SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18044 PyObject *resultobj = 0;
18045 wxSlider *arg1 = (wxSlider *) 0 ;
18046 int result;
18047 void *argp1 = 0 ;
18048 int res1 = 0 ;
18049 PyObject *swig_obj[1] ;
18050
18051 if (!args) SWIG_fail;
18052 swig_obj[0] = args;
18053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18054 if (!SWIG_IsOK(res1)) {
18055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
18056 }
18057 arg1 = reinterpret_cast< wxSlider * >(argp1);
18058 {
18059 PyThreadState* __tstate = wxPyBeginAllowThreads();
18060 result = (int)((wxSlider const *)arg1)->GetValue();
18061 wxPyEndAllowThreads(__tstate);
18062 if (PyErr_Occurred()) SWIG_fail;
18063 }
18064 resultobj = SWIG_From_int(static_cast< int >(result));
18065 return resultobj;
18066fail:
18067 return NULL;
18068}
18069
18070
18071SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18072 PyObject *resultobj = 0;
18073 wxSlider *arg1 = (wxSlider *) 0 ;
18074 int arg2 ;
18075 void *argp1 = 0 ;
18076 int res1 = 0 ;
18077 int val2 ;
18078 int ecode2 = 0 ;
18079 PyObject * obj0 = 0 ;
18080 PyObject * obj1 = 0 ;
18081 char * kwnames[] = {
18082 (char *) "self",(char *) "value", NULL
18083 };
18084
18085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18087 if (!SWIG_IsOK(res1)) {
18088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18089 }
18090 arg1 = reinterpret_cast< wxSlider * >(argp1);
18091 ecode2 = SWIG_AsVal_int(obj1, &val2);
18092 if (!SWIG_IsOK(ecode2)) {
18093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18094 }
18095 arg2 = static_cast< int >(val2);
18096 {
18097 PyThreadState* __tstate = wxPyBeginAllowThreads();
18098 (arg1)->SetValue(arg2);
18099 wxPyEndAllowThreads(__tstate);
18100 if (PyErr_Occurred()) SWIG_fail;
18101 }
18102 resultobj = SWIG_Py_Void();
18103 return resultobj;
18104fail:
18105 return NULL;
18106}
18107
18108
18109SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18110 PyObject *resultobj = 0;
18111 wxSlider *arg1 = (wxSlider *) 0 ;
18112 int arg2 ;
18113 int arg3 ;
18114 void *argp1 = 0 ;
18115 int res1 = 0 ;
18116 int val2 ;
18117 int ecode2 = 0 ;
18118 int val3 ;
18119 int ecode3 = 0 ;
18120 PyObject * obj0 = 0 ;
18121 PyObject * obj1 = 0 ;
18122 PyObject * obj2 = 0 ;
18123 char * kwnames[] = {
18124 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18125 };
18126
18127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18129 if (!SWIG_IsOK(res1)) {
18130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18131 }
18132 arg1 = reinterpret_cast< wxSlider * >(argp1);
18133 ecode2 = SWIG_AsVal_int(obj1, &val2);
18134 if (!SWIG_IsOK(ecode2)) {
18135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18136 }
18137 arg2 = static_cast< int >(val2);
18138 ecode3 = SWIG_AsVal_int(obj2, &val3);
18139 if (!SWIG_IsOK(ecode3)) {
18140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18141 }
18142 arg3 = static_cast< int >(val3);
18143 {
18144 PyThreadState* __tstate = wxPyBeginAllowThreads();
18145 (arg1)->SetRange(arg2,arg3);
18146 wxPyEndAllowThreads(__tstate);
18147 if (PyErr_Occurred()) SWIG_fail;
18148 }
18149 resultobj = SWIG_Py_Void();
18150 return resultobj;
18151fail:
18152 return NULL;
d14a1e28
RD
18153}
18154
18155
0085ce49
RD
18156SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18157 PyObject *resultobj = 0;
18158 wxSlider *arg1 = (wxSlider *) 0 ;
18159 int result;
18160 void *argp1 = 0 ;
18161 int res1 = 0 ;
18162 PyObject *swig_obj[1] ;
18163
18164 if (!args) SWIG_fail;
18165 swig_obj[0] = args;
18166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18167 if (!SWIG_IsOK(res1)) {
18168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18169 }
18170 arg1 = reinterpret_cast< wxSlider * >(argp1);
18171 {
18172 PyThreadState* __tstate = wxPyBeginAllowThreads();
18173 result = (int)((wxSlider const *)arg1)->GetMin();
18174 wxPyEndAllowThreads(__tstate);
18175 if (PyErr_Occurred()) SWIG_fail;
18176 }
18177 resultobj = SWIG_From_int(static_cast< int >(result));
18178 return resultobj;
18179fail:
18180 return NULL;
d14a1e28
RD
18181}
18182
18183
0085ce49
RD
18184SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18185 PyObject *resultobj = 0;
18186 wxSlider *arg1 = (wxSlider *) 0 ;
18187 int result;
18188 void *argp1 = 0 ;
18189 int res1 = 0 ;
18190 PyObject *swig_obj[1] ;
18191
18192 if (!args) SWIG_fail;
18193 swig_obj[0] = args;
18194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18195 if (!SWIG_IsOK(res1)) {
18196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18197 }
18198 arg1 = reinterpret_cast< wxSlider * >(argp1);
18199 {
18200 PyThreadState* __tstate = wxPyBeginAllowThreads();
18201 result = (int)((wxSlider const *)arg1)->GetMax();
18202 wxPyEndAllowThreads(__tstate);
18203 if (PyErr_Occurred()) SWIG_fail;
18204 }
18205 resultobj = SWIG_From_int(static_cast< int >(result));
18206 return resultobj;
18207fail:
18208 return NULL;
18209}
18210
18211
18212SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18213 PyObject *resultobj = 0;
18214 wxSlider *arg1 = (wxSlider *) 0 ;
18215 int arg2 ;
18216 void *argp1 = 0 ;
18217 int res1 = 0 ;
18218 int val2 ;
18219 int ecode2 = 0 ;
18220 PyObject * obj0 = 0 ;
18221 PyObject * obj1 = 0 ;
18222 char * kwnames[] = {
18223 (char *) "self",(char *) "minValue", NULL
18224 };
18225
18226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18228 if (!SWIG_IsOK(res1)) {
18229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18230 }
18231 arg1 = reinterpret_cast< wxSlider * >(argp1);
18232 ecode2 = SWIG_AsVal_int(obj1, &val2);
18233 if (!SWIG_IsOK(ecode2)) {
18234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18235 }
18236 arg2 = static_cast< int >(val2);
18237 {
18238 PyThreadState* __tstate = wxPyBeginAllowThreads();
18239 (arg1)->SetMin(arg2);
18240 wxPyEndAllowThreads(__tstate);
18241 if (PyErr_Occurred()) SWIG_fail;
18242 }
18243 resultobj = SWIG_Py_Void();
18244 return resultobj;
18245fail:
18246 return NULL;
18247}
18248
18249
18250SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18251 PyObject *resultobj = 0;
18252 wxSlider *arg1 = (wxSlider *) 0 ;
18253 int arg2 ;
18254 void *argp1 = 0 ;
18255 int res1 = 0 ;
18256 int val2 ;
18257 int ecode2 = 0 ;
18258 PyObject * obj0 = 0 ;
18259 PyObject * obj1 = 0 ;
18260 char * kwnames[] = {
18261 (char *) "self",(char *) "maxValue", NULL
18262 };
18263
18264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18266 if (!SWIG_IsOK(res1)) {
18267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18268 }
18269 arg1 = reinterpret_cast< wxSlider * >(argp1);
18270 ecode2 = SWIG_AsVal_int(obj1, &val2);
18271 if (!SWIG_IsOK(ecode2)) {
18272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18273 }
18274 arg2 = static_cast< int >(val2);
18275 {
18276 PyThreadState* __tstate = wxPyBeginAllowThreads();
18277 (arg1)->SetMax(arg2);
18278 wxPyEndAllowThreads(__tstate);
18279 if (PyErr_Occurred()) SWIG_fail;
18280 }
18281 resultobj = SWIG_Py_Void();
18282 return resultobj;
18283fail:
18284 return NULL;
18285}
18286
18287
18288SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18289 PyObject *resultobj = 0;
18290 wxSlider *arg1 = (wxSlider *) 0 ;
18291 int arg2 ;
18292 void *argp1 = 0 ;
18293 int res1 = 0 ;
18294 int val2 ;
18295 int ecode2 = 0 ;
18296 PyObject * obj0 = 0 ;
18297 PyObject * obj1 = 0 ;
18298 char * kwnames[] = {
18299 (char *) "self",(char *) "lineSize", NULL
18300 };
18301
18302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18304 if (!SWIG_IsOK(res1)) {
18305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18306 }
18307 arg1 = reinterpret_cast< wxSlider * >(argp1);
18308 ecode2 = SWIG_AsVal_int(obj1, &val2);
18309 if (!SWIG_IsOK(ecode2)) {
18310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18311 }
18312 arg2 = static_cast< int >(val2);
18313 {
18314 PyThreadState* __tstate = wxPyBeginAllowThreads();
18315 (arg1)->SetLineSize(arg2);
18316 wxPyEndAllowThreads(__tstate);
18317 if (PyErr_Occurred()) SWIG_fail;
18318 }
18319 resultobj = SWIG_Py_Void();
18320 return resultobj;
18321fail:
18322 return NULL;
18323}
18324
18325
18326SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18327 PyObject *resultobj = 0;
18328 wxSlider *arg1 = (wxSlider *) 0 ;
18329 int arg2 ;
18330 void *argp1 = 0 ;
18331 int res1 = 0 ;
18332 int val2 ;
18333 int ecode2 = 0 ;
18334 PyObject * obj0 = 0 ;
18335 PyObject * obj1 = 0 ;
18336 char * kwnames[] = {
18337 (char *) "self",(char *) "pageSize", NULL
18338 };
18339
18340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18342 if (!SWIG_IsOK(res1)) {
18343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18344 }
18345 arg1 = reinterpret_cast< wxSlider * >(argp1);
18346 ecode2 = SWIG_AsVal_int(obj1, &val2);
18347 if (!SWIG_IsOK(ecode2)) {
18348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18349 }
18350 arg2 = static_cast< int >(val2);
18351 {
18352 PyThreadState* __tstate = wxPyBeginAllowThreads();
18353 (arg1)->SetPageSize(arg2);
18354 wxPyEndAllowThreads(__tstate);
18355 if (PyErr_Occurred()) SWIG_fail;
18356 }
18357 resultobj = SWIG_Py_Void();
18358 return resultobj;
18359fail:
18360 return NULL;
d14a1e28
RD
18361}
18362
18363
0085ce49
RD
18364SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18365 PyObject *resultobj = 0;
18366 wxSlider *arg1 = (wxSlider *) 0 ;
18367 int result;
18368 void *argp1 = 0 ;
18369 int res1 = 0 ;
18370 PyObject *swig_obj[1] ;
18371
18372 if (!args) SWIG_fail;
18373 swig_obj[0] = args;
18374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18375 if (!SWIG_IsOK(res1)) {
18376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18377 }
18378 arg1 = reinterpret_cast< wxSlider * >(argp1);
18379 {
18380 PyThreadState* __tstate = wxPyBeginAllowThreads();
18381 result = (int)((wxSlider const *)arg1)->GetLineSize();
18382 wxPyEndAllowThreads(__tstate);
18383 if (PyErr_Occurred()) SWIG_fail;
18384 }
18385 resultobj = SWIG_From_int(static_cast< int >(result));
18386 return resultobj;
18387fail:
18388 return NULL;
d14a1e28
RD
18389}
18390
18391
0085ce49
RD
18392SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18393 PyObject *resultobj = 0;
18394 wxSlider *arg1 = (wxSlider *) 0 ;
18395 int result;
18396 void *argp1 = 0 ;
18397 int res1 = 0 ;
18398 PyObject *swig_obj[1] ;
18399
18400 if (!args) SWIG_fail;
18401 swig_obj[0] = args;
18402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18403 if (!SWIG_IsOK(res1)) {
18404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18405 }
18406 arg1 = reinterpret_cast< wxSlider * >(argp1);
18407 {
18408 PyThreadState* __tstate = wxPyBeginAllowThreads();
18409 result = (int)((wxSlider const *)arg1)->GetPageSize();
18410 wxPyEndAllowThreads(__tstate);
18411 if (PyErr_Occurred()) SWIG_fail;
18412 }
18413 resultobj = SWIG_From_int(static_cast< int >(result));
18414 return resultobj;
18415fail:
18416 return NULL;
18417}
18418
18419
18420SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18421 PyObject *resultobj = 0;
18422 wxSlider *arg1 = (wxSlider *) 0 ;
18423 int arg2 ;
18424 void *argp1 = 0 ;
18425 int res1 = 0 ;
18426 int val2 ;
18427 int ecode2 = 0 ;
18428 PyObject * obj0 = 0 ;
18429 PyObject * obj1 = 0 ;
18430 char * kwnames[] = {
18431 (char *) "self",(char *) "lenPixels", NULL
18432 };
18433
18434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18436 if (!SWIG_IsOK(res1)) {
18437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18438 }
18439 arg1 = reinterpret_cast< wxSlider * >(argp1);
18440 ecode2 = SWIG_AsVal_int(obj1, &val2);
18441 if (!SWIG_IsOK(ecode2)) {
18442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18443 }
18444 arg2 = static_cast< int >(val2);
18445 {
18446 PyThreadState* __tstate = wxPyBeginAllowThreads();
18447 (arg1)->SetThumbLength(arg2);
18448 wxPyEndAllowThreads(__tstate);
18449 if (PyErr_Occurred()) SWIG_fail;
18450 }
18451 resultobj = SWIG_Py_Void();
18452 return resultobj;
18453fail:
18454 return NULL;
4d5c3d91
RD
18455}
18456
18457
0085ce49
RD
18458SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18459 PyObject *resultobj = 0;
18460 wxSlider *arg1 = (wxSlider *) 0 ;
18461 int result;
18462 void *argp1 = 0 ;
18463 int res1 = 0 ;
18464 PyObject *swig_obj[1] ;
18465
18466 if (!args) SWIG_fail;
18467 swig_obj[0] = args;
18468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18469 if (!SWIG_IsOK(res1)) {
18470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18471 }
18472 arg1 = reinterpret_cast< wxSlider * >(argp1);
18473 {
18474 PyThreadState* __tstate = wxPyBeginAllowThreads();
18475 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18476 wxPyEndAllowThreads(__tstate);
18477 if (PyErr_Occurred()) SWIG_fail;
18478 }
18479 resultobj = SWIG_From_int(static_cast< int >(result));
18480 return resultobj;
18481fail:
18482 return NULL;
18483}
18484
18485
18486SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18487 PyObject *resultobj = 0;
18488 wxSlider *arg1 = (wxSlider *) 0 ;
18489 int arg2 ;
18490 int arg3 = (int) 1 ;
18491 void *argp1 = 0 ;
18492 int res1 = 0 ;
18493 int val2 ;
18494 int ecode2 = 0 ;
18495 int val3 ;
18496 int ecode3 = 0 ;
18497 PyObject * obj0 = 0 ;
18498 PyObject * obj1 = 0 ;
18499 PyObject * obj2 = 0 ;
18500 char * kwnames[] = {
18501 (char *) "self",(char *) "n",(char *) "pos", NULL
18502 };
18503
18504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18506 if (!SWIG_IsOK(res1)) {
18507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18508 }
18509 arg1 = reinterpret_cast< wxSlider * >(argp1);
18510 ecode2 = SWIG_AsVal_int(obj1, &val2);
18511 if (!SWIG_IsOK(ecode2)) {
18512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18513 }
18514 arg2 = static_cast< int >(val2);
18515 if (obj2) {
18516 ecode3 = SWIG_AsVal_int(obj2, &val3);
18517 if (!SWIG_IsOK(ecode3)) {
18518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18519 }
18520 arg3 = static_cast< int >(val3);
18521 }
18522 {
18523 PyThreadState* __tstate = wxPyBeginAllowThreads();
18524 (arg1)->SetTickFreq(arg2,arg3);
18525 wxPyEndAllowThreads(__tstate);
18526 if (PyErr_Occurred()) SWIG_fail;
18527 }
18528 resultobj = SWIG_Py_Void();
18529 return resultobj;
18530fail:
18531 return NULL;
4896ac9e
RD
18532}
18533
18534
0085ce49
RD
18535SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(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_GetTickFreq" "', 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)->GetTickFreq();
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;
d14a1e28
RD
18560}
18561
18562
0085ce49
RD
18563SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18564 PyObject *resultobj = 0;
18565 wxSlider *arg1 = (wxSlider *) 0 ;
18566 void *argp1 = 0 ;
18567 int res1 = 0 ;
18568 PyObject *swig_obj[1] ;
18569
18570 if (!args) SWIG_fail;
18571 swig_obj[0] = args;
18572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18573 if (!SWIG_IsOK(res1)) {
18574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18575 }
18576 arg1 = reinterpret_cast< wxSlider * >(argp1);
18577 {
18578 PyThreadState* __tstate = wxPyBeginAllowThreads();
18579 (arg1)->ClearTicks();
18580 wxPyEndAllowThreads(__tstate);
18581 if (PyErr_Occurred()) SWIG_fail;
18582 }
18583 resultobj = SWIG_Py_Void();
18584 return resultobj;
18585fail:
18586 return NULL;
18587}
18588
18589
18590SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18591 PyObject *resultobj = 0;
18592 wxSlider *arg1 = (wxSlider *) 0 ;
18593 int arg2 ;
18594 void *argp1 = 0 ;
18595 int res1 = 0 ;
18596 int val2 ;
18597 int ecode2 = 0 ;
18598 PyObject * obj0 = 0 ;
18599 PyObject * obj1 = 0 ;
18600 char * kwnames[] = {
18601 (char *) "self",(char *) "tickPos", NULL
18602 };
18603
18604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18606 if (!SWIG_IsOK(res1)) {
18607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18608 }
18609 arg1 = reinterpret_cast< wxSlider * >(argp1);
18610 ecode2 = SWIG_AsVal_int(obj1, &val2);
18611 if (!SWIG_IsOK(ecode2)) {
18612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18613 }
18614 arg2 = static_cast< int >(val2);
18615 {
18616 PyThreadState* __tstate = wxPyBeginAllowThreads();
18617 (arg1)->SetTick(arg2);
18618 wxPyEndAllowThreads(__tstate);
18619 if (PyErr_Occurred()) SWIG_fail;
18620 }
18621 resultobj = SWIG_Py_Void();
18622 return resultobj;
18623fail:
18624 return NULL;
d14a1e28
RD
18625}
18626
18627
0085ce49
RD
18628SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18629 PyObject *resultobj = 0;
18630 wxSlider *arg1 = (wxSlider *) 0 ;
18631 void *argp1 = 0 ;
18632 int res1 = 0 ;
18633 PyObject *swig_obj[1] ;
18634
18635 if (!args) SWIG_fail;
18636 swig_obj[0] = args;
18637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18638 if (!SWIG_IsOK(res1)) {
18639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18640 }
18641 arg1 = reinterpret_cast< wxSlider * >(argp1);
18642 {
18643 PyThreadState* __tstate = wxPyBeginAllowThreads();
18644 (arg1)->ClearSel();
18645 wxPyEndAllowThreads(__tstate);
18646 if (PyErr_Occurred()) SWIG_fail;
18647 }
18648 resultobj = SWIG_Py_Void();
18649 return resultobj;
18650fail:
18651 return NULL;
d14a1e28
RD
18652}
18653
18654
0085ce49
RD
18655SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18656 PyObject *resultobj = 0;
18657 wxSlider *arg1 = (wxSlider *) 0 ;
18658 int result;
18659 void *argp1 = 0 ;
18660 int res1 = 0 ;
18661 PyObject *swig_obj[1] ;
18662
18663 if (!args) SWIG_fail;
18664 swig_obj[0] = args;
18665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18666 if (!SWIG_IsOK(res1)) {
18667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18668 }
18669 arg1 = reinterpret_cast< wxSlider * >(argp1);
18670 {
18671 PyThreadState* __tstate = wxPyBeginAllowThreads();
18672 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18673 wxPyEndAllowThreads(__tstate);
18674 if (PyErr_Occurred()) SWIG_fail;
18675 }
18676 resultobj = SWIG_From_int(static_cast< int >(result));
18677 return resultobj;
18678fail:
18679 return NULL;
d14a1e28
RD
18680}
18681
18682
0085ce49
RD
18683SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18684 PyObject *resultobj = 0;
18685 wxSlider *arg1 = (wxSlider *) 0 ;
18686 int result;
18687 void *argp1 = 0 ;
18688 int res1 = 0 ;
18689 PyObject *swig_obj[1] ;
18690
18691 if (!args) SWIG_fail;
18692 swig_obj[0] = args;
18693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18694 if (!SWIG_IsOK(res1)) {
18695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18696 }
18697 arg1 = reinterpret_cast< wxSlider * >(argp1);
18698 {
18699 PyThreadState* __tstate = wxPyBeginAllowThreads();
18700 result = (int)((wxSlider const *)arg1)->GetSelStart();
18701 wxPyEndAllowThreads(__tstate);
18702 if (PyErr_Occurred()) SWIG_fail;
18703 }
18704 resultobj = SWIG_From_int(static_cast< int >(result));
18705 return resultobj;
18706fail:
18707 return NULL;
18708}
18709
18710
18711SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18712 PyObject *resultobj = 0;
18713 wxSlider *arg1 = (wxSlider *) 0 ;
18714 int arg2 ;
18715 int arg3 ;
18716 void *argp1 = 0 ;
18717 int res1 = 0 ;
18718 int val2 ;
18719 int ecode2 = 0 ;
18720 int val3 ;
18721 int ecode3 = 0 ;
18722 PyObject * obj0 = 0 ;
18723 PyObject * obj1 = 0 ;
18724 PyObject * obj2 = 0 ;
18725 char * kwnames[] = {
18726 (char *) "self",(char *) "min",(char *) "max", NULL
18727 };
18728
18729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18731 if (!SWIG_IsOK(res1)) {
18732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18733 }
18734 arg1 = reinterpret_cast< wxSlider * >(argp1);
18735 ecode2 = SWIG_AsVal_int(obj1, &val2);
18736 if (!SWIG_IsOK(ecode2)) {
18737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18738 }
18739 arg2 = static_cast< int >(val2);
18740 ecode3 = SWIG_AsVal_int(obj2, &val3);
18741 if (!SWIG_IsOK(ecode3)) {
18742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18743 }
18744 arg3 = static_cast< int >(val3);
18745 {
18746 PyThreadState* __tstate = wxPyBeginAllowThreads();
18747 (arg1)->SetSelection(arg2,arg3);
18748 wxPyEndAllowThreads(__tstate);
18749 if (PyErr_Occurred()) SWIG_fail;
18750 }
18751 resultobj = SWIG_Py_Void();
18752 return resultobj;
18753fail:
18754 return NULL;
18755}
18756
18757
18758SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18759 PyObject *resultobj = 0;
18760 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18761 SwigValueWrapper<wxVisualAttributes > result;
18762 int val1 ;
18763 int ecode1 = 0 ;
18764 PyObject * obj0 = 0 ;
18765 char * kwnames[] = {
18766 (char *) "variant", NULL
18767 };
18768
18769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18770 if (obj0) {
18771 ecode1 = SWIG_AsVal_int(obj0, &val1);
18772 if (!SWIG_IsOK(ecode1)) {
18773 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18774 }
18775 arg1 = static_cast< wxWindowVariant >(val1);
18776 }
18777 {
18778 if (!wxPyCheckForApp()) SWIG_fail;
18779 PyThreadState* __tstate = wxPyBeginAllowThreads();
18780 result = wxSlider::GetClassDefaultAttributes(arg1);
18781 wxPyEndAllowThreads(__tstate);
18782 if (PyErr_Occurred()) SWIG_fail;
18783 }
18784 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18785 return resultobj;
18786fail:
18787 return NULL;
d14a1e28
RD
18788}
18789
18790
0085ce49
RD
18791SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18792 PyObject *obj;
18793 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18794 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18795 return SWIG_Py_Void();
d14a1e28
RD
18796}
18797
0085ce49
RD
18798SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18799 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
18800}
18801
0085ce49
RD
18802SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18803 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18804 return 1;
d14a1e28
RD
18805}
18806
18807
0085ce49
RD
18808SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18809 PyObject *pyobj = 0;
18810
18811 {
18812#if wxUSE_UNICODE
18813 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18814#else
18815 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18816#endif
18817 }
18818 return pyobj;
18819}
18820
18821
18822SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18823 PyObject *resultobj = 0;
18824 wxWindow *arg1 = (wxWindow *) 0 ;
18825 int arg2 = (int) -1 ;
18826 wxString const &arg3_defvalue = wxPyEmptyString ;
18827 wxString *arg3 = (wxString *) &arg3_defvalue ;
18828 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18829 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18830 wxSize const &arg5_defvalue = wxDefaultSize ;
18831 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18832 long arg6 = (long) 0 ;
18833 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18834 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18835 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18836 wxString *arg8 = (wxString *) &arg8_defvalue ;
18837 wxToggleButton *result = 0 ;
18838 void *argp1 = 0 ;
18839 int res1 = 0 ;
18840 int val2 ;
18841 int ecode2 = 0 ;
18842 bool temp3 = false ;
18843 wxPoint temp4 ;
18844 wxSize temp5 ;
18845 long val6 ;
18846 int ecode6 = 0 ;
18847 void *argp7 = 0 ;
18848 int res7 = 0 ;
18849 bool temp8 = false ;
18850 PyObject * obj0 = 0 ;
18851 PyObject * obj1 = 0 ;
18852 PyObject * obj2 = 0 ;
18853 PyObject * obj3 = 0 ;
18854 PyObject * obj4 = 0 ;
18855 PyObject * obj5 = 0 ;
18856 PyObject * obj6 = 0 ;
18857 PyObject * obj7 = 0 ;
18858 char * kwnames[] = {
18859 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18860 };
18861
18862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18864 if (!SWIG_IsOK(res1)) {
18865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18866 }
18867 arg1 = reinterpret_cast< wxWindow * >(argp1);
18868 if (obj1) {
18869 ecode2 = SWIG_AsVal_int(obj1, &val2);
18870 if (!SWIG_IsOK(ecode2)) {
18871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18872 }
18873 arg2 = static_cast< int >(val2);
18874 }
18875 if (obj2) {
d14a1e28 18876 {
0085ce49
RD
18877 arg3 = wxString_in_helper(obj2);
18878 if (arg3 == NULL) SWIG_fail;
18879 temp3 = true;
d14a1e28 18880 }
0085ce49
RD
18881 }
18882 if (obj3) {
4f89f6a3 18883 {
0085ce49
RD
18884 arg4 = &temp4;
18885 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 18886 }
0085ce49
RD
18887 }
18888 if (obj4) {
d14a1e28 18889 {
0085ce49
RD
18890 arg5 = &temp5;
18891 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 18892 }
0085ce49
RD
18893 }
18894 if (obj5) {
18895 ecode6 = SWIG_AsVal_long(obj5, &val6);
18896 if (!SWIG_IsOK(ecode6)) {
18897 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18898 }
18899 arg6 = static_cast< long >(val6);
18900 }
18901 if (obj6) {
18902 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18903 if (!SWIG_IsOK(res7)) {
18904 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 18905 }
0085ce49
RD
18906 if (!argp7) {
18907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
093d3ff1 18908 }
0085ce49
RD
18909 arg7 = reinterpret_cast< wxValidator * >(argp7);
18910 }
18911 if (obj7) {
d14a1e28 18912 {
0085ce49
RD
18913 arg8 = wxString_in_helper(obj7);
18914 if (arg8 == NULL) SWIG_fail;
18915 temp8 = true;
d14a1e28 18916 }
0085ce49
RD
18917 }
18918 {
18919 if (!wxPyCheckForApp()) SWIG_fail;
18920 PyThreadState* __tstate = wxPyBeginAllowThreads();
18921 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18922 wxPyEndAllowThreads(__tstate);
18923 if (PyErr_Occurred()) SWIG_fail;
18924 }
18925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18926 {
18927 if (temp3)
18928 delete arg3;
18929 }
18930 {
18931 if (temp8)
18932 delete arg8;
18933 }
18934 return resultobj;
18935fail:
18936 {
18937 if (temp3)
18938 delete arg3;
18939 }
18940 {
18941 if (temp8)
18942 delete arg8;
18943 }
18944 return NULL;
d14a1e28
RD
18945}
18946
18947
0085ce49
RD
18948SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18949 PyObject *resultobj = 0;
18950 wxToggleButton *result = 0 ;
18951
18952 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18953 {
18954 if (!wxPyCheckForApp()) SWIG_fail;
18955 PyThreadState* __tstate = wxPyBeginAllowThreads();
18956 result = (wxToggleButton *)new wxToggleButton();
18957 wxPyEndAllowThreads(__tstate);
18958 if (PyErr_Occurred()) SWIG_fail;
18959 }
18960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18961 return resultobj;
18962fail:
18963 return NULL;
18964}
18965
18966
18967SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18968 PyObject *resultobj = 0;
18969 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18970 wxWindow *arg2 = (wxWindow *) 0 ;
18971 int arg3 = (int) -1 ;
18972 wxString const &arg4_defvalue = wxPyEmptyString ;
18973 wxString *arg4 = (wxString *) &arg4_defvalue ;
18974 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18975 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18976 wxSize const &arg6_defvalue = wxDefaultSize ;
18977 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18978 long arg7 = (long) 0 ;
18979 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18980 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18981 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18982 wxString *arg9 = (wxString *) &arg9_defvalue ;
18983 bool result;
18984 void *argp1 = 0 ;
18985 int res1 = 0 ;
18986 void *argp2 = 0 ;
18987 int res2 = 0 ;
18988 int val3 ;
18989 int ecode3 = 0 ;
18990 bool temp4 = false ;
18991 wxPoint temp5 ;
18992 wxSize temp6 ;
18993 long val7 ;
18994 int ecode7 = 0 ;
18995 void *argp8 = 0 ;
18996 int res8 = 0 ;
18997 bool temp9 = false ;
18998 PyObject * obj0 = 0 ;
18999 PyObject * obj1 = 0 ;
19000 PyObject * obj2 = 0 ;
19001 PyObject * obj3 = 0 ;
19002 PyObject * obj4 = 0 ;
19003 PyObject * obj5 = 0 ;
19004 PyObject * obj6 = 0 ;
19005 PyObject * obj7 = 0 ;
19006 PyObject * obj8 = 0 ;
19007 char * kwnames[] = {
19008 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19009 };
19010
19011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
19012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19013 if (!SWIG_IsOK(res1)) {
19014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19015 }
19016 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19017 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19018 if (!SWIG_IsOK(res2)) {
19019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
19020 }
19021 arg2 = reinterpret_cast< wxWindow * >(argp2);
19022 if (obj2) {
19023 ecode3 = SWIG_AsVal_int(obj2, &val3);
19024 if (!SWIG_IsOK(ecode3)) {
19025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
19026 }
19027 arg3 = static_cast< int >(val3);
19028 }
19029 if (obj3) {
d14a1e28 19030 {
0085ce49
RD
19031 arg4 = wxString_in_helper(obj3);
19032 if (arg4 == NULL) SWIG_fail;
19033 temp4 = true;
d14a1e28 19034 }
0085ce49
RD
19035 }
19036 if (obj4) {
d14a1e28 19037 {
0085ce49
RD
19038 arg5 = &temp5;
19039 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 19040 }
0085ce49
RD
19041 }
19042 if (obj5) {
093d3ff1 19043 {
0085ce49
RD
19044 arg6 = &temp6;
19045 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
093d3ff1 19046 }
0085ce49
RD
19047 }
19048 if (obj6) {
19049 ecode7 = SWIG_AsVal_long(obj6, &val7);
19050 if (!SWIG_IsOK(ecode7)) {
19051 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
19052 }
19053 arg7 = static_cast< long >(val7);
19054 }
19055 if (obj7) {
19056 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
19057 if (!SWIG_IsOK(res8)) {
19058 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19059 }
19060 if (!argp8) {
19061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 19062 }
0085ce49
RD
19063 arg8 = reinterpret_cast< wxValidator * >(argp8);
19064 }
19065 if (obj8) {
093d3ff1 19066 {
0085ce49
RD
19067 arg9 = wxString_in_helper(obj8);
19068 if (arg9 == NULL) SWIG_fail;
19069 temp9 = true;
093d3ff1 19070 }
0085ce49
RD
19071 }
19072 {
19073 PyThreadState* __tstate = wxPyBeginAllowThreads();
19074 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
19075 wxPyEndAllowThreads(__tstate);
19076 if (PyErr_Occurred()) SWIG_fail;
19077 }
19078 {
19079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19080 }
19081 {
19082 if (temp4)
19083 delete arg4;
19084 }
19085 {
19086 if (temp9)
19087 delete arg9;
19088 }
19089 return resultobj;
19090fail:
19091 {
19092 if (temp4)
19093 delete arg4;
19094 }
19095 {
19096 if (temp9)
19097 delete arg9;
19098 }
19099 return NULL;
19100}
19101
19102
19103SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19104 PyObject *resultobj = 0;
19105 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19106 bool arg2 ;
19107 void *argp1 = 0 ;
19108 int res1 = 0 ;
19109 bool val2 ;
19110 int ecode2 = 0 ;
19111 PyObject * obj0 = 0 ;
19112 PyObject * obj1 = 0 ;
19113 char * kwnames[] = {
19114 (char *) "self",(char *) "value", NULL
19115 };
19116
19117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19119 if (!SWIG_IsOK(res1)) {
19120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19121 }
19122 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19123 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19124 if (!SWIG_IsOK(ecode2)) {
19125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19126 }
19127 arg2 = static_cast< bool >(val2);
19128 {
19129 PyThreadState* __tstate = wxPyBeginAllowThreads();
19130 (arg1)->SetValue(arg2);
19131 wxPyEndAllowThreads(__tstate);
19132 if (PyErr_Occurred()) SWIG_fail;
19133 }
19134 resultobj = SWIG_Py_Void();
19135 return resultobj;
19136fail:
19137 return NULL;
d14a1e28
RD
19138}
19139
19140
0085ce49
RD
19141SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19142 PyObject *resultobj = 0;
19143 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19144 bool result;
19145 void *argp1 = 0 ;
19146 int res1 = 0 ;
19147 PyObject *swig_obj[1] ;
19148
19149 if (!args) SWIG_fail;
19150 swig_obj[0] = args;
19151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19152 if (!SWIG_IsOK(res1)) {
19153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19154 }
19155 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19156 {
19157 PyThreadState* __tstate = wxPyBeginAllowThreads();
19158 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19159 wxPyEndAllowThreads(__tstate);
19160 if (PyErr_Occurred()) SWIG_fail;
19161 }
19162 {
19163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19164 }
19165 return resultobj;
19166fail:
19167 return NULL;
d14a1e28
RD
19168}
19169
19170
0085ce49
RD
19171SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19172 PyObject *resultobj = 0;
19173 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19174 SwigValueWrapper<wxVisualAttributes > result;
19175 int val1 ;
19176 int ecode1 = 0 ;
19177 PyObject * obj0 = 0 ;
19178 char * kwnames[] = {
19179 (char *) "variant", NULL
19180 };
19181
19182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19183 if (obj0) {
19184 ecode1 = SWIG_AsVal_int(obj0, &val1);
19185 if (!SWIG_IsOK(ecode1)) {
19186 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19187 }
19188 arg1 = static_cast< wxWindowVariant >(val1);
19189 }
19190 {
19191 if (!wxPyCheckForApp()) SWIG_fail;
19192 PyThreadState* __tstate = wxPyBeginAllowThreads();
19193 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19194 wxPyEndAllowThreads(__tstate);
19195 if (PyErr_Occurred()) SWIG_fail;
19196 }
19197 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19198 return resultobj;
19199fail:
19200 return NULL;
d14a1e28
RD
19201}
19202
19203
0085ce49
RD
19204SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19205 PyObject *obj;
19206 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19207 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19208 return SWIG_Py_Void();
d14a1e28
RD
19209}
19210
0085ce49
RD
19211SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19212 return SWIG_Python_InitShadowInstance(args);
19213}
d14a1e28 19214
0085ce49
RD
19215SWIGINTERN int NotebookNameStr_set(PyObject *) {
19216 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19217 return 1;
d14a1e28
RD
19218}
19219
19220
0085ce49
RD
19221SWIGINTERN PyObject *NotebookNameStr_get(void) {
19222 PyObject *pyobj = 0;
19223
19224 {
d14a1e28 19225#if wxUSE_UNICODE
0085ce49 19226 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 19227#else
0085ce49 19228 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d14a1e28 19229#endif
0085ce49
RD
19230 }
19231 return pyobj;
d14a1e28
RD
19232}
19233
19234
0085ce49
RD
19235SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19236 PyObject *resultobj = 0;
19237 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19238 size_t result;
19239 void *argp1 = 0 ;
19240 int res1 = 0 ;
19241 PyObject *swig_obj[1] ;
19242
19243 if (!args) SWIG_fail;
19244 swig_obj[0] = args;
19245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19246 if (!SWIG_IsOK(res1)) {
19247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19248 }
19249 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19250 {
19251 PyThreadState* __tstate = wxPyBeginAllowThreads();
19252 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19253 wxPyEndAllowThreads(__tstate);
19254 if (PyErr_Occurred()) SWIG_fail;
19255 }
19256 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19257 return resultobj;
19258fail:
19259 return NULL;
19260}
19261
19262
19263SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19264 PyObject *resultobj = 0;
19265 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19266 size_t arg2 ;
19267 wxWindow *result = 0 ;
19268 void *argp1 = 0 ;
19269 int res1 = 0 ;
19270 size_t val2 ;
19271 int ecode2 = 0 ;
19272 PyObject * obj0 = 0 ;
19273 PyObject * obj1 = 0 ;
19274 char * kwnames[] = {
19275 (char *) "self",(char *) "n", NULL
19276 };
19277
19278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19280 if (!SWIG_IsOK(res1)) {
19281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19282 }
19283 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19284 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19285 if (!SWIG_IsOK(ecode2)) {
19286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19287 }
19288 arg2 = static_cast< size_t >(val2);
19289 {
19290 PyThreadState* __tstate = wxPyBeginAllowThreads();
19291 result = (wxWindow *)(arg1)->GetPage(arg2);
19292 wxPyEndAllowThreads(__tstate);
19293 if (PyErr_Occurred()) SWIG_fail;
19294 }
19295 {
19296 resultobj = wxPyMake_wxObject(result, 0);
19297 }
19298 return resultobj;
19299fail:
19300 return NULL;
22bfe96c
RD
19301}
19302
19303
0085ce49
RD
19304SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19305 PyObject *resultobj = 0;
19306 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19307 wxWindow *result = 0 ;
19308 void *argp1 = 0 ;
19309 int res1 = 0 ;
19310 PyObject *swig_obj[1] ;
19311
19312 if (!args) SWIG_fail;
19313 swig_obj[0] = args;
19314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19315 if (!SWIG_IsOK(res1)) {
19316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19317 }
19318 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19319 {
19320 PyThreadState* __tstate = wxPyBeginAllowThreads();
19321 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19322 wxPyEndAllowThreads(__tstate);
19323 if (PyErr_Occurred()) SWIG_fail;
19324 }
19325 {
19326 resultobj = wxPyMake_wxObject(result, 0);
19327 }
19328 return resultobj;
19329fail:
19330 return NULL;
d14a1e28
RD
19331}
19332
19333
0085ce49
RD
19334SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19335 PyObject *resultobj = 0;
19336 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19337 int result;
19338 void *argp1 = 0 ;
19339 int res1 = 0 ;
19340 PyObject *swig_obj[1] ;
19341
19342 if (!args) SWIG_fail;
19343 swig_obj[0] = args;
19344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19345 if (!SWIG_IsOK(res1)) {
19346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19347 }
19348 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19349 {
19350 PyThreadState* __tstate = wxPyBeginAllowThreads();
19351 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19352 wxPyEndAllowThreads(__tstate);
19353 if (PyErr_Occurred()) SWIG_fail;
19354 }
19355 resultobj = SWIG_From_int(static_cast< int >(result));
19356 return resultobj;
19357fail:
19358 return NULL;
19359}
19360
19361
19362SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19363 PyObject *resultobj = 0;
19364 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19365 size_t arg2 ;
19366 wxString *arg3 = 0 ;
19367 bool result;
19368 void *argp1 = 0 ;
19369 int res1 = 0 ;
19370 size_t val2 ;
19371 int ecode2 = 0 ;
19372 bool temp3 = false ;
19373 PyObject * obj0 = 0 ;
19374 PyObject * obj1 = 0 ;
19375 PyObject * obj2 = 0 ;
19376 char * kwnames[] = {
19377 (char *) "self",(char *) "n",(char *) "strText", NULL
19378 };
19379
19380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19382 if (!SWIG_IsOK(res1)) {
19383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19384 }
19385 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19386 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19387 if (!SWIG_IsOK(ecode2)) {
19388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19389 }
19390 arg2 = static_cast< size_t >(val2);
19391 {
19392 arg3 = wxString_in_helper(obj2);
19393 if (arg3 == NULL) SWIG_fail;
19394 temp3 = true;
19395 }
19396 {
19397 PyThreadState* __tstate = wxPyBeginAllowThreads();
19398 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19399 wxPyEndAllowThreads(__tstate);
19400 if (PyErr_Occurred()) SWIG_fail;
19401 }
19402 {
19403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19404 }
19405 {
19406 if (temp3)
19407 delete arg3;
19408 }
19409 return resultobj;
19410fail:
19411 {
19412 if (temp3)
19413 delete arg3;
19414 }
19415 return NULL;
19416}
19417
19418
19419SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19420 PyObject *resultobj = 0;
19421 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19422 size_t arg2 ;
19423 wxString result;
19424 void *argp1 = 0 ;
19425 int res1 = 0 ;
19426 size_t val2 ;
19427 int ecode2 = 0 ;
19428 PyObject * obj0 = 0 ;
19429 PyObject * obj1 = 0 ;
19430 char * kwnames[] = {
19431 (char *) "self",(char *) "n", NULL
19432 };
19433
19434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19436 if (!SWIG_IsOK(res1)) {
19437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19438 }
19439 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19440 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19441 if (!SWIG_IsOK(ecode2)) {
19442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19443 }
19444 arg2 = static_cast< size_t >(val2);
19445 {
19446 PyThreadState* __tstate = wxPyBeginAllowThreads();
19447 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19448 wxPyEndAllowThreads(__tstate);
19449 if (PyErr_Occurred()) SWIG_fail;
19450 }
19451 {
19452#if wxUSE_UNICODE
19453 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19454#else
19455 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19456#endif
19457 }
19458 return resultobj;
19459fail:
19460 return NULL;
19461}
19462
19463
19464SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19465 PyObject *resultobj = 0;
19466 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19467 wxImageList *arg2 = (wxImageList *) 0 ;
19468 void *argp1 = 0 ;
19469 int res1 = 0 ;
19470 void *argp2 = 0 ;
19471 int res2 = 0 ;
19472 PyObject * obj0 = 0 ;
19473 PyObject * obj1 = 0 ;
19474 char * kwnames[] = {
19475 (char *) "self",(char *) "imageList", NULL
19476 };
19477
19478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19480 if (!SWIG_IsOK(res1)) {
19481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19482 }
19483 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19484 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19485 if (!SWIG_IsOK(res2)) {
19486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19487 }
19488 arg2 = reinterpret_cast< wxImageList * >(argp2);
19489 {
19490 PyThreadState* __tstate = wxPyBeginAllowThreads();
19491 (arg1)->SetImageList(arg2);
19492 wxPyEndAllowThreads(__tstate);
19493 if (PyErr_Occurred()) SWIG_fail;
19494 }
19495 resultobj = SWIG_Py_Void();
19496 return resultobj;
19497fail:
19498 return NULL;
19499}
19500
19501
19502SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19503 PyObject *resultobj = 0;
19504 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19505 wxImageList *arg2 = (wxImageList *) 0 ;
19506 void *argp1 = 0 ;
19507 int res1 = 0 ;
19508 int res2 = 0 ;
19509 PyObject * obj0 = 0 ;
19510 PyObject * obj1 = 0 ;
19511 char * kwnames[] = {
19512 (char *) "self",(char *) "imageList", NULL
19513 };
19514
19515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19517 if (!SWIG_IsOK(res1)) {
19518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19519 }
19520 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19521 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19522 if (!SWIG_IsOK(res2)) {
19523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19524 }
19525 {
19526 PyThreadState* __tstate = wxPyBeginAllowThreads();
19527 (arg1)->AssignImageList(arg2);
19528 wxPyEndAllowThreads(__tstate);
19529 if (PyErr_Occurred()) SWIG_fail;
19530 }
19531 resultobj = SWIG_Py_Void();
19532 return resultobj;
19533fail:
19534 return NULL;
d14a1e28
RD
19535}
19536
19537
0085ce49
RD
19538SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19539 PyObject *resultobj = 0;
19540 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19541 wxImageList *result = 0 ;
19542 void *argp1 = 0 ;
19543 int res1 = 0 ;
19544 PyObject *swig_obj[1] ;
19545
19546 if (!args) SWIG_fail;
19547 swig_obj[0] = args;
19548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19549 if (!SWIG_IsOK(res1)) {
19550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19551 }
19552 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19553 {
19554 PyThreadState* __tstate = wxPyBeginAllowThreads();
19555 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19556 wxPyEndAllowThreads(__tstate);
19557 if (PyErr_Occurred()) SWIG_fail;
19558 }
3ecece7e
RD
19559 {
19560 resultobj = wxPyMake_wxObject(result, (bool)0);
19561 }
0085ce49
RD
19562 return resultobj;
19563fail:
19564 return NULL;
19565}
19566
19567
19568SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19569 PyObject *resultobj = 0;
19570 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19571 size_t arg2 ;
19572 int result;
19573 void *argp1 = 0 ;
19574 int res1 = 0 ;
19575 size_t val2 ;
19576 int ecode2 = 0 ;
19577 PyObject * obj0 = 0 ;
19578 PyObject * obj1 = 0 ;
19579 char * kwnames[] = {
19580 (char *) "self",(char *) "n", NULL
19581 };
19582
19583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19585 if (!SWIG_IsOK(res1)) {
19586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19587 }
19588 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19589 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19590 if (!SWIG_IsOK(ecode2)) {
19591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19592 }
19593 arg2 = static_cast< size_t >(val2);
19594 {
19595 PyThreadState* __tstate = wxPyBeginAllowThreads();
19596 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19597 wxPyEndAllowThreads(__tstate);
19598 if (PyErr_Occurred()) SWIG_fail;
19599 }
19600 resultobj = SWIG_From_int(static_cast< int >(result));
19601 return resultobj;
19602fail:
19603 return NULL;
19604}
19605
19606
19607SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19608 PyObject *resultobj = 0;
19609 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19610 size_t arg2 ;
19611 int arg3 ;
19612 bool result;
19613 void *argp1 = 0 ;
19614 int res1 = 0 ;
19615 size_t val2 ;
19616 int ecode2 = 0 ;
19617 int val3 ;
19618 int ecode3 = 0 ;
19619 PyObject * obj0 = 0 ;
19620 PyObject * obj1 = 0 ;
19621 PyObject * obj2 = 0 ;
19622 char * kwnames[] = {
19623 (char *) "self",(char *) "n",(char *) "imageId", NULL
19624 };
19625
19626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19628 if (!SWIG_IsOK(res1)) {
19629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19630 }
19631 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19632 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19633 if (!SWIG_IsOK(ecode2)) {
19634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19635 }
19636 arg2 = static_cast< size_t >(val2);
19637 ecode3 = SWIG_AsVal_int(obj2, &val3);
19638 if (!SWIG_IsOK(ecode3)) {
19639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19640 }
19641 arg3 = static_cast< int >(val3);
19642 {
19643 PyThreadState* __tstate = wxPyBeginAllowThreads();
19644 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19645 wxPyEndAllowThreads(__tstate);
19646 if (PyErr_Occurred()) SWIG_fail;
19647 }
19648 {
19649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19650 }
19651 return resultobj;
19652fail:
19653 return NULL;
19654}
19655
19656
19657SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19658 PyObject *resultobj = 0;
19659 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19660 wxSize *arg2 = 0 ;
19661 void *argp1 = 0 ;
19662 int res1 = 0 ;
19663 wxSize temp2 ;
19664 PyObject * obj0 = 0 ;
19665 PyObject * obj1 = 0 ;
19666 char * kwnames[] = {
19667 (char *) "self",(char *) "size", NULL
19668 };
19669
19670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19672 if (!SWIG_IsOK(res1)) {
19673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19674 }
19675 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19676 {
19677 arg2 = &temp2;
19678 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19679 }
19680 {
19681 PyThreadState* __tstate = wxPyBeginAllowThreads();
19682 (arg1)->SetPageSize((wxSize const &)*arg2);
19683 wxPyEndAllowThreads(__tstate);
19684 if (PyErr_Occurred()) SWIG_fail;
19685 }
19686 resultobj = SWIG_Py_Void();
19687 return resultobj;
19688fail:
19689 return NULL;
19690}
19691
19692
19693SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19694 PyObject *resultobj = 0;
19695 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19696 wxSize *arg2 = 0 ;
19697 wxSize result;
19698 void *argp1 = 0 ;
19699 int res1 = 0 ;
19700 wxSize temp2 ;
19701 PyObject * obj0 = 0 ;
19702 PyObject * obj1 = 0 ;
19703 char * kwnames[] = {
19704 (char *) "self",(char *) "sizePage", NULL
19705 };
19706
19707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19709 if (!SWIG_IsOK(res1)) {
19710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19711 }
19712 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19713 {
19714 arg2 = &temp2;
19715 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19716 }
19717 {
19718 PyThreadState* __tstate = wxPyBeginAllowThreads();
19719 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19720 wxPyEndAllowThreads(__tstate);
19721 if (PyErr_Occurred()) SWIG_fail;
19722 }
19723 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19724 return resultobj;
19725fail:
19726 return NULL;
d14a1e28
RD
19727}
19728
19729
0085ce49
RD
19730SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19731 PyObject *resultobj = 0;
19732 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19733 unsigned int result;
0085ce49
RD
19734 void *argp1 = 0 ;
19735 int res1 = 0 ;
19736 PyObject *swig_obj[1] ;
19737
19738 if (!args) SWIG_fail;
19739 swig_obj[0] = args;
19740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19741 if (!SWIG_IsOK(res1)) {
19742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19743 }
19744 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19745 {
19746 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19747 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
0085ce49
RD
19748 wxPyEndAllowThreads(__tstate);
19749 if (PyErr_Occurred()) SWIG_fail;
19750 }
e9d6f3a4 19751 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
19752 return resultobj;
19753fail:
19754 return NULL;
19755}
19756
19757
19758SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19759 PyObject *resultobj = 0;
19760 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19761 unsigned int arg2 ;
0085ce49
RD
19762 void *argp1 = 0 ;
19763 int res1 = 0 ;
e9d6f3a4 19764 unsigned int val2 ;
0085ce49
RD
19765 int ecode2 = 0 ;
19766 PyObject * obj0 = 0 ;
19767 PyObject * obj1 = 0 ;
19768 char * kwnames[] = {
19769 (char *) "self",(char *) "internalBorder", NULL
19770 };
19771
19772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19774 if (!SWIG_IsOK(res1)) {
19775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19776 }
19777 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19778 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
0085ce49 19779 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
0085ce49 19781 }
e9d6f3a4 19782 arg2 = static_cast< unsigned int >(val2);
0085ce49
RD
19783 {
19784 PyThreadState* __tstate = wxPyBeginAllowThreads();
19785 (arg1)->SetInternalBorder(arg2);
19786 wxPyEndAllowThreads(__tstate);
19787 if (PyErr_Occurred()) SWIG_fail;
19788 }
19789 resultobj = SWIG_Py_Void();
19790 return resultobj;
19791fail:
19792 return NULL;
b2dc1044
RD
19793}
19794
19795
0085ce49
RD
19796SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19797 PyObject *resultobj = 0;
19798 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19799 bool result;
19800 void *argp1 = 0 ;
19801 int res1 = 0 ;
19802 PyObject *swig_obj[1] ;
19803
19804 if (!args) SWIG_fail;
19805 swig_obj[0] = args;
19806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19807 if (!SWIG_IsOK(res1)) {
19808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19809 }
19810 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19811 {
19812 PyThreadState* __tstate = wxPyBeginAllowThreads();
19813 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19814 wxPyEndAllowThreads(__tstate);
19815 if (PyErr_Occurred()) SWIG_fail;
19816 }
19817 {
19818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19819 }
19820 return resultobj;
19821fail:
19822 return NULL;
19823}
19824
19825
e9d6f3a4
RD
19826SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19827 PyObject *resultobj = 0;
19828 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19829 int arg2 ;
19830 void *argp1 = 0 ;
19831 int res1 = 0 ;
19832 int val2 ;
19833 int ecode2 = 0 ;
19834 PyObject * obj0 = 0 ;
19835 PyObject * obj1 = 0 ;
19836 char * kwnames[] = {
19837 (char *) "self",(char *) "margin", NULL
19838 };
19839
19840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19842 if (!SWIG_IsOK(res1)) {
19843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19844 }
19845 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19846 ecode2 = SWIG_AsVal_int(obj1, &val2);
19847 if (!SWIG_IsOK(ecode2)) {
19848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19849 }
19850 arg2 = static_cast< int >(val2);
19851 {
19852 PyThreadState* __tstate = wxPyBeginAllowThreads();
19853 (arg1)->SetControlMargin(arg2);
19854 wxPyEndAllowThreads(__tstate);
19855 if (PyErr_Occurred()) SWIG_fail;
19856 }
19857 resultobj = SWIG_Py_Void();
19858 return resultobj;
19859fail:
19860 return NULL;
19861}
19862
19863
19864SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19865 PyObject *resultobj = 0;
19866 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19867 int result;
19868 void *argp1 = 0 ;
19869 int res1 = 0 ;
19870 PyObject *swig_obj[1] ;
19871
19872 if (!args) SWIG_fail;
19873 swig_obj[0] = args;
19874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19875 if (!SWIG_IsOK(res1)) {
19876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19877 }
19878 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19879 {
19880 PyThreadState* __tstate = wxPyBeginAllowThreads();
19881 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19882 wxPyEndAllowThreads(__tstate);
19883 if (PyErr_Occurred()) SWIG_fail;
19884 }
19885 resultobj = SWIG_From_int(static_cast< int >(result));
19886 return resultobj;
19887fail:
19888 return NULL;
19889}
19890
19891
0085ce49
RD
19892SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19893 PyObject *resultobj = 0;
19894 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19895 bool arg2 ;
19896 void *argp1 = 0 ;
19897 int res1 = 0 ;
19898 bool val2 ;
19899 int ecode2 = 0 ;
19900 PyObject * obj0 = 0 ;
19901 PyObject * obj1 = 0 ;
19902 char * kwnames[] = {
19903 (char *) "self",(char *) "fit", NULL
19904 };
19905
19906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19908 if (!SWIG_IsOK(res1)) {
19909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19910 }
19911 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19912 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19913 if (!SWIG_IsOK(ecode2)) {
19914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19915 }
19916 arg2 = static_cast< bool >(val2);
19917 {
19918 PyThreadState* __tstate = wxPyBeginAllowThreads();
19919 (arg1)->SetFitToCurrentPage(arg2);
19920 wxPyEndAllowThreads(__tstate);
19921 if (PyErr_Occurred()) SWIG_fail;
19922 }
19923 resultobj = SWIG_Py_Void();
19924 return resultobj;
19925fail:
19926 return NULL;
d14a1e28
RD
19927}
19928
19929
0085ce49
RD
19930SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19931 PyObject *resultobj = 0;
19932 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19933 bool result;
19934 void *argp1 = 0 ;
19935 int res1 = 0 ;
19936 PyObject *swig_obj[1] ;
19937
19938 if (!args) SWIG_fail;
19939 swig_obj[0] = args;
19940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19941 if (!SWIG_IsOK(res1)) {
19942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19943 }
19944 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19945 {
19946 PyThreadState* __tstate = wxPyBeginAllowThreads();
19947 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19948 wxPyEndAllowThreads(__tstate);
19949 if (PyErr_Occurred()) SWIG_fail;
19950 }
19951 {
19952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19953 }
19954 return resultobj;
19955fail:
19956 return NULL;
19957}
19958
19959
e9d6f3a4
RD
19960SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19961 PyObject *resultobj = 0;
19962 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19963 wxSizer *result = 0 ;
19964 void *argp1 = 0 ;
19965 int res1 = 0 ;
19966 PyObject *swig_obj[1] ;
19967
19968 if (!args) SWIG_fail;
19969 swig_obj[0] = args;
19970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19971 if (!SWIG_IsOK(res1)) {
19972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19973 }
19974 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19975 {
19976 PyThreadState* __tstate = wxPyBeginAllowThreads();
19977 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19978 wxPyEndAllowThreads(__tstate);
19979 if (PyErr_Occurred()) SWIG_fail;
19980 }
19981 {
19982 resultobj = wxPyMake_wxObject(result, (bool)0);
19983 }
19984 return resultobj;
19985fail:
19986 return NULL;
19987}
19988
19989
0085ce49
RD
19990SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19991 PyObject *resultobj = 0;
19992 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19993 size_t arg2 ;
19994 bool result;
19995 void *argp1 = 0 ;
19996 int res1 = 0 ;
19997 size_t val2 ;
19998 int ecode2 = 0 ;
19999 PyObject * obj0 = 0 ;
20000 PyObject * obj1 = 0 ;
20001 char * kwnames[] = {
20002 (char *) "self",(char *) "n", NULL
20003 };
20004
20005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
20006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20007 if (!SWIG_IsOK(res1)) {
20008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20009 }
20010 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20011 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20012 if (!SWIG_IsOK(ecode2)) {
20013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
20014 }
20015 arg2 = static_cast< size_t >(val2);
20016 {
20017 PyThreadState* __tstate = wxPyBeginAllowThreads();
20018 result = (bool)(arg1)->DeletePage(arg2);
20019 wxPyEndAllowThreads(__tstate);
20020 if (PyErr_Occurred()) SWIG_fail;
20021 }
20022 {
20023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20024 }
20025 return resultobj;
20026fail:
20027 return NULL;
20028}
20029
20030
20031SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20032 PyObject *resultobj = 0;
20033 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20034 size_t arg2 ;
20035 bool result;
20036 void *argp1 = 0 ;
20037 int res1 = 0 ;
20038 size_t val2 ;
20039 int ecode2 = 0 ;
20040 PyObject * obj0 = 0 ;
20041 PyObject * obj1 = 0 ;
20042 char * kwnames[] = {
20043 (char *) "self",(char *) "n", NULL
20044 };
20045
20046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
20047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20048 if (!SWIG_IsOK(res1)) {
20049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20050 }
20051 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20052 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20053 if (!SWIG_IsOK(ecode2)) {
20054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
20055 }
20056 arg2 = static_cast< size_t >(val2);
20057 {
20058 PyThreadState* __tstate = wxPyBeginAllowThreads();
20059 result = (bool)(arg1)->RemovePage(arg2);
20060 wxPyEndAllowThreads(__tstate);
20061 if (PyErr_Occurred()) SWIG_fail;
20062 }
20063 {
20064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20065 }
20066 return resultobj;
20067fail:
20068 return NULL;
d14a1e28
RD
20069}
20070
20071
0085ce49
RD
20072SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20073 PyObject *resultobj = 0;
20074 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20075 bool result;
20076 void *argp1 = 0 ;
20077 int res1 = 0 ;
20078 PyObject *swig_obj[1] ;
20079
20080 if (!args) SWIG_fail;
20081 swig_obj[0] = args;
20082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20083 if (!SWIG_IsOK(res1)) {
20084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20085 }
20086 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20087 {
20088 PyThreadState* __tstate = wxPyBeginAllowThreads();
20089 result = (bool)(arg1)->DeleteAllPages();
20090 wxPyEndAllowThreads(__tstate);
20091 if (PyErr_Occurred()) SWIG_fail;
20092 }
20093 {
20094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20095 }
20096 return resultobj;
20097fail:
20098 return NULL;
20099}
20100
20101
20102SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20103 PyObject *resultobj = 0;
20104 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20105 wxWindow *arg2 = (wxWindow *) 0 ;
20106 wxString *arg3 = 0 ;
20107 bool arg4 = (bool) false ;
20108 int arg5 = (int) -1 ;
20109 bool result;
20110 void *argp1 = 0 ;
20111 int res1 = 0 ;
20112 void *argp2 = 0 ;
20113 int res2 = 0 ;
20114 bool temp3 = false ;
20115 bool val4 ;
20116 int ecode4 = 0 ;
20117 int val5 ;
20118 int ecode5 = 0 ;
20119 PyObject * obj0 = 0 ;
20120 PyObject * obj1 = 0 ;
20121 PyObject * obj2 = 0 ;
20122 PyObject * obj3 = 0 ;
20123 PyObject * obj4 = 0 ;
20124 char * kwnames[] = {
20125 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20126 };
20127
20128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20130 if (!SWIG_IsOK(res1)) {
20131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20132 }
20133 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20134 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20135 if (!SWIG_IsOK(res2)) {
20136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20137 }
20138 arg2 = reinterpret_cast< wxWindow * >(argp2);
20139 {
20140 arg3 = wxString_in_helper(obj2);
20141 if (arg3 == NULL) SWIG_fail;
20142 temp3 = true;
20143 }
20144 if (obj3) {
20145 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20146 if (!SWIG_IsOK(ecode4)) {
20147 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20148 }
20149 arg4 = static_cast< bool >(val4);
20150 }
20151 if (obj4) {
20152 ecode5 = SWIG_AsVal_int(obj4, &val5);
20153 if (!SWIG_IsOK(ecode5)) {
20154 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20155 }
20156 arg5 = static_cast< int >(val5);
20157 }
20158 {
20159 PyThreadState* __tstate = wxPyBeginAllowThreads();
20160 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20161 wxPyEndAllowThreads(__tstate);
20162 if (PyErr_Occurred()) SWIG_fail;
20163 }
20164 {
20165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20166 }
20167 {
20168 if (temp3)
20169 delete arg3;
20170 }
20171 return resultobj;
20172fail:
20173 {
20174 if (temp3)
20175 delete arg3;
20176 }
20177 return NULL;
20178}
20179
20180
20181SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20182 PyObject *resultobj = 0;
20183 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20184 size_t arg2 ;
20185 wxWindow *arg3 = (wxWindow *) 0 ;
20186 wxString *arg4 = 0 ;
20187 bool arg5 = (bool) false ;
20188 int arg6 = (int) -1 ;
20189 bool result;
20190 void *argp1 = 0 ;
20191 int res1 = 0 ;
20192 size_t val2 ;
20193 int ecode2 = 0 ;
20194 void *argp3 = 0 ;
20195 int res3 = 0 ;
20196 bool temp4 = false ;
20197 bool val5 ;
20198 int ecode5 = 0 ;
20199 int val6 ;
20200 int ecode6 = 0 ;
20201 PyObject * obj0 = 0 ;
20202 PyObject * obj1 = 0 ;
20203 PyObject * obj2 = 0 ;
20204 PyObject * obj3 = 0 ;
20205 PyObject * obj4 = 0 ;
20206 PyObject * obj5 = 0 ;
20207 char * kwnames[] = {
20208 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20209 };
20210
20211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20213 if (!SWIG_IsOK(res1)) {
20214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20215 }
20216 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20217 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20218 if (!SWIG_IsOK(ecode2)) {
20219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20220 }
20221 arg2 = static_cast< size_t >(val2);
20222 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20223 if (!SWIG_IsOK(res3)) {
20224 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20225 }
20226 arg3 = reinterpret_cast< wxWindow * >(argp3);
20227 {
20228 arg4 = wxString_in_helper(obj3);
20229 if (arg4 == NULL) SWIG_fail;
20230 temp4 = true;
20231 }
20232 if (obj4) {
20233 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20234 if (!SWIG_IsOK(ecode5)) {
20235 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20236 }
20237 arg5 = static_cast< bool >(val5);
20238 }
20239 if (obj5) {
20240 ecode6 = SWIG_AsVal_int(obj5, &val6);
20241 if (!SWIG_IsOK(ecode6)) {
20242 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20243 }
20244 arg6 = static_cast< int >(val6);
20245 }
20246 {
20247 PyThreadState* __tstate = wxPyBeginAllowThreads();
20248 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20249 wxPyEndAllowThreads(__tstate);
20250 if (PyErr_Occurred()) SWIG_fail;
20251 }
20252 {
20253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20254 }
20255 {
20256 if (temp4)
20257 delete arg4;
20258 }
20259 return resultobj;
20260fail:
20261 {
20262 if (temp4)
20263 delete arg4;
20264 }
20265 return NULL;
20266}
20267
20268
20269SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20270 PyObject *resultobj = 0;
20271 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20272 size_t arg2 ;
20273 int result;
20274 void *argp1 = 0 ;
20275 int res1 = 0 ;
20276 size_t val2 ;
20277 int ecode2 = 0 ;
20278 PyObject * obj0 = 0 ;
20279 PyObject * obj1 = 0 ;
20280 char * kwnames[] = {
20281 (char *) "self",(char *) "n", NULL
20282 };
20283
20284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20286 if (!SWIG_IsOK(res1)) {
20287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20288 }
20289 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20290 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20291 if (!SWIG_IsOK(ecode2)) {
20292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20293 }
20294 arg2 = static_cast< size_t >(val2);
20295 {
20296 PyThreadState* __tstate = wxPyBeginAllowThreads();
20297 result = (int)(arg1)->SetSelection(arg2);
20298 wxPyEndAllowThreads(__tstate);
20299 if (PyErr_Occurred()) SWIG_fail;
20300 }
20301 resultobj = SWIG_From_int(static_cast< int >(result));
20302 return resultobj;
20303fail:
20304 return NULL;
20305}
20306
20307
b39fe951
RD
20308SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20309 PyObject *resultobj = 0;
20310 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20311 size_t arg2 ;
20312 int result;
20313 void *argp1 = 0 ;
20314 int res1 = 0 ;
20315 size_t val2 ;
20316 int ecode2 = 0 ;
20317 PyObject * obj0 = 0 ;
20318 PyObject * obj1 = 0 ;
20319 char * kwnames[] = {
20320 (char *) "self",(char *) "n", NULL
20321 };
20322
20323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20325 if (!SWIG_IsOK(res1)) {
20326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20327 }
20328 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20329 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20330 if (!SWIG_IsOK(ecode2)) {
20331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20332 }
20333 arg2 = static_cast< size_t >(val2);
20334 {
20335 PyThreadState* __tstate = wxPyBeginAllowThreads();
20336 result = (int)(arg1)->ChangeSelection(arg2);
20337 wxPyEndAllowThreads(__tstate);
20338 if (PyErr_Occurred()) SWIG_fail;
20339 }
20340 resultobj = SWIG_From_int(static_cast< int >(result));
20341 return resultobj;
20342fail:
20343 return NULL;
20344}
20345
20346
0085ce49
RD
20347SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20348 PyObject *resultobj = 0;
20349 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20350 bool arg2 = (bool) true ;
20351 void *argp1 = 0 ;
20352 int res1 = 0 ;
20353 bool val2 ;
20354 int ecode2 = 0 ;
20355 PyObject * obj0 = 0 ;
20356 PyObject * obj1 = 0 ;
20357 char * kwnames[] = {
20358 (char *) "self",(char *) "forward", NULL
20359 };
20360
20361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",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_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20365 }
20366 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20367 if (obj1) {
20368 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20369 if (!SWIG_IsOK(ecode2)) {
20370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20371 }
20372 arg2 = static_cast< bool >(val2);
20373 }
20374 {
20375 PyThreadState* __tstate = wxPyBeginAllowThreads();
20376 (arg1)->AdvanceSelection(arg2);
20377 wxPyEndAllowThreads(__tstate);
20378 if (PyErr_Occurred()) SWIG_fail;
20379 }
20380 resultobj = SWIG_Py_Void();
20381 return resultobj;
20382fail:
20383 return NULL;
20384}
20385
20386
704eda0c
RD
20387SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20388 PyObject *resultobj = 0;
20389 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20390 wxPoint *arg2 = 0 ;
20391 long *arg3 = (long *) 0 ;
20392 int result;
20393 void *argp1 = 0 ;
20394 int res1 = 0 ;
20395 wxPoint temp2 ;
20396 long temp3 ;
20397 int res3 = SWIG_TMPOBJ ;
20398 PyObject * obj0 = 0 ;
20399 PyObject * obj1 = 0 ;
20400 char * kwnames[] = {
20401 (char *) "self",(char *) "pt", NULL
20402 };
20403
20404 arg3 = &temp3;
20405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20407 if (!SWIG_IsOK(res1)) {
20408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20409 }
20410 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20411 {
20412 arg2 = &temp2;
20413 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20414 }
20415 {
20416 PyThreadState* __tstate = wxPyBeginAllowThreads();
20417 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20418 wxPyEndAllowThreads(__tstate);
20419 if (PyErr_Occurred()) SWIG_fail;
20420 }
20421 resultobj = SWIG_From_int(static_cast< int >(result));
20422 if (SWIG_IsTmpObj(res3)) {
20423 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20424 } else {
20425 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20426 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20427 }
20428 return resultobj;
20429fail:
20430 return NULL;
20431}
20432
20433
0085ce49
RD
20434SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20435 PyObject *resultobj = 0;
20436 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20437 SwigValueWrapper<wxVisualAttributes > result;
20438 int val1 ;
20439 int ecode1 = 0 ;
20440 PyObject * obj0 = 0 ;
20441 char * kwnames[] = {
20442 (char *) "variant", NULL
20443 };
20444
20445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20446 if (obj0) {
20447 ecode1 = SWIG_AsVal_int(obj0, &val1);
20448 if (!SWIG_IsOK(ecode1)) {
20449 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20450 }
20451 arg1 = static_cast< wxWindowVariant >(val1);
20452 }
20453 {
20454 if (!wxPyCheckForApp()) SWIG_fail;
20455 PyThreadState* __tstate = wxPyBeginAllowThreads();
20456 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20457 wxPyEndAllowThreads(__tstate);
20458 if (PyErr_Occurred()) SWIG_fail;
20459 }
20460 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20461 return resultobj;
20462fail:
20463 return NULL;
20464}
20465
20466
20467SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20468 PyObject *obj;
20469 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20470 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20471 return SWIG_Py_Void();
20472}
20473
20474SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20475 PyObject *resultobj = 0;
20476 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20477 int arg2 = (int) 0 ;
20478 int arg3 = (int) -1 ;
20479 int arg4 = (int) -1 ;
20480 wxBookCtrlBaseEvent *result = 0 ;
20481 int val1 ;
20482 int ecode1 = 0 ;
20483 int val2 ;
20484 int ecode2 = 0 ;
20485 int val3 ;
20486 int ecode3 = 0 ;
20487 int val4 ;
20488 int ecode4 = 0 ;
20489 PyObject * obj0 = 0 ;
20490 PyObject * obj1 = 0 ;
20491 PyObject * obj2 = 0 ;
20492 PyObject * obj3 = 0 ;
20493 char * kwnames[] = {
20494 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20495 };
20496
20497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20498 if (obj0) {
20499 ecode1 = SWIG_AsVal_int(obj0, &val1);
20500 if (!SWIG_IsOK(ecode1)) {
20501 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20502 }
20503 arg1 = static_cast< wxEventType >(val1);
20504 }
20505 if (obj1) {
20506 ecode2 = SWIG_AsVal_int(obj1, &val2);
20507 if (!SWIG_IsOK(ecode2)) {
20508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20509 }
20510 arg2 = static_cast< int >(val2);
20511 }
20512 if (obj2) {
20513 ecode3 = SWIG_AsVal_int(obj2, &val3);
20514 if (!SWIG_IsOK(ecode3)) {
20515 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20516 }
20517 arg3 = static_cast< int >(val3);
20518 }
20519 if (obj3) {
20520 ecode4 = SWIG_AsVal_int(obj3, &val4);
20521 if (!SWIG_IsOK(ecode4)) {
20522 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20523 }
20524 arg4 = static_cast< int >(val4);
20525 }
20526 {
20527 PyThreadState* __tstate = wxPyBeginAllowThreads();
20528 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20529 wxPyEndAllowThreads(__tstate);
20530 if (PyErr_Occurred()) SWIG_fail;
20531 }
20532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20533 return resultobj;
20534fail:
20535 return NULL;
d14a1e28
RD
20536}
20537
20538
0085ce49
RD
20539SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20540 PyObject *resultobj = 0;
20541 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20542 int result;
20543 void *argp1 = 0 ;
20544 int res1 = 0 ;
20545 PyObject *swig_obj[1] ;
20546
20547 if (!args) SWIG_fail;
20548 swig_obj[0] = args;
20549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20550 if (!SWIG_IsOK(res1)) {
20551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20552 }
20553 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20554 {
20555 PyThreadState* __tstate = wxPyBeginAllowThreads();
20556 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20557 wxPyEndAllowThreads(__tstate);
20558 if (PyErr_Occurred()) SWIG_fail;
20559 }
20560 resultobj = SWIG_From_int(static_cast< int >(result));
20561 return resultobj;
20562fail:
20563 return NULL;
20564}
20565
20566
20567SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20568 PyObject *resultobj = 0;
20569 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20570 int arg2 ;
20571 void *argp1 = 0 ;
20572 int res1 = 0 ;
20573 int val2 ;
20574 int ecode2 = 0 ;
20575 PyObject * obj0 = 0 ;
20576 PyObject * obj1 = 0 ;
20577 char * kwnames[] = {
20578 (char *) "self",(char *) "nSel", NULL
20579 };
20580
20581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20583 if (!SWIG_IsOK(res1)) {
20584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20585 }
20586 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20587 ecode2 = SWIG_AsVal_int(obj1, &val2);
20588 if (!SWIG_IsOK(ecode2)) {
20589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20590 }
20591 arg2 = static_cast< int >(val2);
20592 {
20593 PyThreadState* __tstate = wxPyBeginAllowThreads();
20594 (arg1)->SetSelection(arg2);
20595 wxPyEndAllowThreads(__tstate);
20596 if (PyErr_Occurred()) SWIG_fail;
20597 }
20598 resultobj = SWIG_Py_Void();
20599 return resultobj;
20600fail:
20601 return NULL;
d14a1e28
RD
20602}
20603
20604
0085ce49
RD
20605SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20606 PyObject *resultobj = 0;
20607 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20608 int result;
20609 void *argp1 = 0 ;
20610 int res1 = 0 ;
20611 PyObject *swig_obj[1] ;
20612
20613 if (!args) SWIG_fail;
20614 swig_obj[0] = args;
20615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20616 if (!SWIG_IsOK(res1)) {
20617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20618 }
20619 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20620 {
20621 PyThreadState* __tstate = wxPyBeginAllowThreads();
20622 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20623 wxPyEndAllowThreads(__tstate);
20624 if (PyErr_Occurred()) SWIG_fail;
20625 }
20626 resultobj = SWIG_From_int(static_cast< int >(result));
20627 return resultobj;
20628fail:
20629 return NULL;
20630}
20631
20632
20633SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20634 PyObject *resultobj = 0;
20635 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20636 int arg2 ;
20637 void *argp1 = 0 ;
20638 int res1 = 0 ;
20639 int val2 ;
20640 int ecode2 = 0 ;
20641 PyObject * obj0 = 0 ;
20642 PyObject * obj1 = 0 ;
20643 char * kwnames[] = {
20644 (char *) "self",(char *) "nOldSel", NULL
20645 };
20646
20647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20649 if (!SWIG_IsOK(res1)) {
20650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20651 }
20652 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20653 ecode2 = SWIG_AsVal_int(obj1, &val2);
20654 if (!SWIG_IsOK(ecode2)) {
20655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20656 }
20657 arg2 = static_cast< int >(val2);
20658 {
20659 PyThreadState* __tstate = wxPyBeginAllowThreads();
20660 (arg1)->SetOldSelection(arg2);
20661 wxPyEndAllowThreads(__tstate);
20662 if (PyErr_Occurred()) SWIG_fail;
20663 }
20664 resultobj = SWIG_Py_Void();
20665 return resultobj;
20666fail:
20667 return NULL;
20668}
20669
20670
20671SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20672 PyObject *obj;
20673 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20674 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20675 return SWIG_Py_Void();
20676}
20677
20678SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20679 return SWIG_Python_InitShadowInstance(args);
20680}
20681
20682SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20683 PyObject *resultobj = 0;
20684 wxWindow *arg1 = (wxWindow *) 0 ;
20685 int arg2 = (int) -1 ;
20686 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20687 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20688 wxSize const &arg4_defvalue = wxDefaultSize ;
20689 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20690 long arg5 = (long) 0 ;
20691 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20692 wxString *arg6 = (wxString *) &arg6_defvalue ;
20693 wxNotebook *result = 0 ;
20694 void *argp1 = 0 ;
20695 int res1 = 0 ;
20696 int val2 ;
20697 int ecode2 = 0 ;
20698 wxPoint temp3 ;
20699 wxSize temp4 ;
20700 long val5 ;
20701 int ecode5 = 0 ;
20702 bool temp6 = false ;
20703 PyObject * obj0 = 0 ;
20704 PyObject * obj1 = 0 ;
20705 PyObject * obj2 = 0 ;
20706 PyObject * obj3 = 0 ;
20707 PyObject * obj4 = 0 ;
20708 PyObject * obj5 = 0 ;
20709 char * kwnames[] = {
20710 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20711 };
20712
20713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20715 if (!SWIG_IsOK(res1)) {
20716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20717 }
20718 arg1 = reinterpret_cast< wxWindow * >(argp1);
20719 if (obj1) {
20720 ecode2 = SWIG_AsVal_int(obj1, &val2);
20721 if (!SWIG_IsOK(ecode2)) {
20722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20723 }
20724 arg2 = static_cast< int >(val2);
20725 }
20726 if (obj2) {
093d3ff1 20727 {
0085ce49
RD
20728 arg3 = &temp3;
20729 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 20730 }
0085ce49
RD
20731 }
20732 if (obj3) {
d14a1e28 20733 {
0085ce49
RD
20734 arg4 = &temp4;
20735 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 20736 }
0085ce49
RD
20737 }
20738 if (obj4) {
20739 ecode5 = SWIG_AsVal_long(obj4, &val5);
20740 if (!SWIG_IsOK(ecode5)) {
20741 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20742 }
20743 arg5 = static_cast< long >(val5);
20744 }
20745 if (obj5) {
093d3ff1 20746 {
0085ce49
RD
20747 arg6 = wxString_in_helper(obj5);
20748 if (arg6 == NULL) SWIG_fail;
20749 temp6 = true;
093d3ff1 20750 }
0085ce49
RD
20751 }
20752 {
20753 if (!wxPyCheckForApp()) SWIG_fail;
20754 PyThreadState* __tstate = wxPyBeginAllowThreads();
20755 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20756 wxPyEndAllowThreads(__tstate);
20757 if (PyErr_Occurred()) SWIG_fail;
20758 }
20759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20760 {
20761 if (temp6)
20762 delete arg6;
20763 }
20764 return resultobj;
20765fail:
20766 {
20767 if (temp6)
20768 delete arg6;
20769 }
20770 return NULL;
d14a1e28
RD
20771}
20772
20773
0085ce49
RD
20774SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20775 PyObject *resultobj = 0;
20776 wxNotebook *result = 0 ;
20777
20778 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20779 {
20780 if (!wxPyCheckForApp()) SWIG_fail;
20781 PyThreadState* __tstate = wxPyBeginAllowThreads();
20782 result = (wxNotebook *)new wxNotebook();
20783 wxPyEndAllowThreads(__tstate);
20784 if (PyErr_Occurred()) SWIG_fail;
20785 }
20786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20787 return resultobj;
20788fail:
20789 return NULL;
20790}
20791
20792
20793SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20794 PyObject *resultobj = 0;
20795 wxNotebook *arg1 = (wxNotebook *) 0 ;
20796 wxWindow *arg2 = (wxWindow *) 0 ;
20797 int arg3 = (int) -1 ;
20798 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20799 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20800 wxSize const &arg5_defvalue = wxDefaultSize ;
20801 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20802 long arg6 = (long) 0 ;
20803 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20804 wxString *arg7 = (wxString *) &arg7_defvalue ;
20805 bool result;
20806 void *argp1 = 0 ;
20807 int res1 = 0 ;
20808 void *argp2 = 0 ;
20809 int res2 = 0 ;
20810 int val3 ;
20811 int ecode3 = 0 ;
20812 wxPoint temp4 ;
20813 wxSize temp5 ;
20814 long val6 ;
20815 int ecode6 = 0 ;
20816 bool temp7 = false ;
20817 PyObject * obj0 = 0 ;
20818 PyObject * obj1 = 0 ;
20819 PyObject * obj2 = 0 ;
20820 PyObject * obj3 = 0 ;
20821 PyObject * obj4 = 0 ;
20822 PyObject * obj5 = 0 ;
20823 PyObject * obj6 = 0 ;
20824 char * kwnames[] = {
20825 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20826 };
20827
20828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20830 if (!SWIG_IsOK(res1)) {
20831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20832 }
20833 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20834 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20835 if (!SWIG_IsOK(res2)) {
20836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20837 }
20838 arg2 = reinterpret_cast< wxWindow * >(argp2);
20839 if (obj2) {
20840 ecode3 = SWIG_AsVal_int(obj2, &val3);
20841 if (!SWIG_IsOK(ecode3)) {
20842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20843 }
20844 arg3 = static_cast< int >(val3);
20845 }
20846 if (obj3) {
093d3ff1 20847 {
0085ce49
RD
20848 arg4 = &temp4;
20849 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 20850 }
0085ce49
RD
20851 }
20852 if (obj4) {
d14a1e28 20853 {
0085ce49
RD
20854 arg5 = &temp5;
20855 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 20856 }
0085ce49
RD
20857 }
20858 if (obj5) {
20859 ecode6 = SWIG_AsVal_long(obj5, &val6);
20860 if (!SWIG_IsOK(ecode6)) {
20861 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20862 }
20863 arg6 = static_cast< long >(val6);
20864 }
20865 if (obj6) {
4f89f6a3 20866 {
0085ce49
RD
20867 arg7 = wxString_in_helper(obj6);
20868 if (arg7 == NULL) SWIG_fail;
20869 temp7 = true;
4f89f6a3 20870 }
0085ce49
RD
20871 }
20872 {
20873 PyThreadState* __tstate = wxPyBeginAllowThreads();
20874 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20875 wxPyEndAllowThreads(__tstate);
20876 if (PyErr_Occurred()) SWIG_fail;
20877 }
20878 {
20879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20880 }
20881 {
20882 if (temp7)
20883 delete arg7;
20884 }
20885 return resultobj;
20886fail:
20887 {
20888 if (temp7)
20889 delete arg7;
20890 }
20891 return NULL;
d14a1e28
RD
20892}
20893
20894
0085ce49
RD
20895SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20896 PyObject *resultobj = 0;
20897 wxNotebook *arg1 = (wxNotebook *) 0 ;
20898 int result;
20899 void *argp1 = 0 ;
20900 int res1 = 0 ;
20901 PyObject *swig_obj[1] ;
20902
20903 if (!args) SWIG_fail;
20904 swig_obj[0] = args;
20905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20906 if (!SWIG_IsOK(res1)) {
20907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20908 }
20909 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20910 {
20911 PyThreadState* __tstate = wxPyBeginAllowThreads();
20912 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20913 wxPyEndAllowThreads(__tstate);
20914 if (PyErr_Occurred()) SWIG_fail;
20915 }
20916 resultobj = SWIG_From_int(static_cast< int >(result));
20917 return resultobj;
20918fail:
20919 return NULL;
20920}
20921
20922
20923SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20924 PyObject *resultobj = 0;
20925 wxNotebook *arg1 = (wxNotebook *) 0 ;
20926 wxSize *arg2 = 0 ;
20927 void *argp1 = 0 ;
20928 int res1 = 0 ;
20929 wxSize temp2 ;
20930 PyObject * obj0 = 0 ;
20931 PyObject * obj1 = 0 ;
20932 char * kwnames[] = {
20933 (char *) "self",(char *) "padding", NULL
20934 };
20935
20936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20938 if (!SWIG_IsOK(res1)) {
20939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20940 }
20941 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20942 {
20943 arg2 = &temp2;
20944 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20945 }
20946 {
20947 PyThreadState* __tstate = wxPyBeginAllowThreads();
20948 (arg1)->SetPadding((wxSize const &)*arg2);
20949 wxPyEndAllowThreads(__tstate);
20950 if (PyErr_Occurred()) SWIG_fail;
20951 }
20952 resultobj = SWIG_Py_Void();
20953 return resultobj;
20954fail:
20955 return NULL;
20956}
20957
20958
20959SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20960 PyObject *resultobj = 0;
20961 wxNotebook *arg1 = (wxNotebook *) 0 ;
20962 wxSize *arg2 = 0 ;
20963 void *argp1 = 0 ;
20964 int res1 = 0 ;
20965 wxSize temp2 ;
20966 PyObject * obj0 = 0 ;
20967 PyObject * obj1 = 0 ;
20968 char * kwnames[] = {
20969 (char *) "self",(char *) "sz", NULL
20970 };
20971
20972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20974 if (!SWIG_IsOK(res1)) {
20975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20976 }
20977 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20978 {
20979 arg2 = &temp2;
20980 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20981 }
20982 {
20983 PyThreadState* __tstate = wxPyBeginAllowThreads();
20984 (arg1)->SetTabSize((wxSize const &)*arg2);
20985 wxPyEndAllowThreads(__tstate);
20986 if (PyErr_Occurred()) SWIG_fail;
20987 }
20988 resultobj = SWIG_Py_Void();
20989 return resultobj;
20990fail:
20991 return NULL;
20992}
20993
20994
0085ce49
RD
20995SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20996 PyObject *resultobj = 0;
20997 wxNotebook *arg1 = (wxNotebook *) 0 ;
20998 wxColour result;
20999 void *argp1 = 0 ;
21000 int res1 = 0 ;
21001 PyObject *swig_obj[1] ;
21002
21003 if (!args) SWIG_fail;
21004 swig_obj[0] = args;
21005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21006 if (!SWIG_IsOK(res1)) {
21007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
21008 }
21009 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21010 {
21011 PyThreadState* __tstate = wxPyBeginAllowThreads();
21012 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
21013 wxPyEndAllowThreads(__tstate);
21014 if (PyErr_Occurred()) SWIG_fail;
21015 }
21016 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
21017 return resultobj;
21018fail:
21019 return NULL;
21020}
21021
21022
21023SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21024 PyObject *resultobj = 0;
21025 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
21026 SwigValueWrapper<wxVisualAttributes > result;
21027 int val1 ;
21028 int ecode1 = 0 ;
21029 PyObject * obj0 = 0 ;
21030 char * kwnames[] = {
21031 (char *) "variant", NULL
21032 };
21033
21034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
21035 if (obj0) {
21036 ecode1 = SWIG_AsVal_int(obj0, &val1);
21037 if (!SWIG_IsOK(ecode1)) {
21038 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
21039 }
21040 arg1 = static_cast< wxWindowVariant >(val1);
21041 }
21042 {
21043 if (!wxPyCheckForApp()) SWIG_fail;
21044 PyThreadState* __tstate = wxPyBeginAllowThreads();
21045 result = wxNotebook::GetClassDefaultAttributes(arg1);
21046 wxPyEndAllowThreads(__tstate);
21047 if (PyErr_Occurred()) SWIG_fail;
21048 }
21049 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
21050 return resultobj;
21051fail:
21052 return NULL;
21053}
21054
21055
b39fe951
RD
21056SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21057 PyObject *resultobj = 0;
21058 wxNotebook *arg1 = (wxNotebook *) 0 ;
21059 int arg2 ;
21060 bool result;
21061 void *argp1 = 0 ;
21062 int res1 = 0 ;
21063 int val2 ;
21064 int ecode2 = 0 ;
21065 PyObject * obj0 = 0 ;
21066 PyObject * obj1 = 0 ;
21067 char * kwnames[] = {
21068 (char *) "self",(char *) "nPage", NULL
21069 };
21070
21071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21073 if (!SWIG_IsOK(res1)) {
21074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21075 }
21076 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21077 ecode2 = SWIG_AsVal_int(obj1, &val2);
21078 if (!SWIG_IsOK(ecode2)) {
21079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21080 }
21081 arg2 = static_cast< int >(val2);
21082 {
21083 PyThreadState* __tstate = wxPyBeginAllowThreads();
21084 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21085 wxPyEndAllowThreads(__tstate);
21086 if (PyErr_Occurred()) SWIG_fail;
21087 }
21088 {
21089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21090 }
21091 return resultobj;
21092fail:
21093 return NULL;
21094}
21095
21096
21097SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21098 PyObject *resultobj = 0;
21099 wxNotebook *arg1 = (wxNotebook *) 0 ;
21100 int arg2 ;
21101 int arg3 = (int) -1 ;
21102 void *argp1 = 0 ;
21103 int res1 = 0 ;
21104 int val2 ;
21105 int ecode2 = 0 ;
21106 int val3 ;
21107 int ecode3 = 0 ;
21108 PyObject * obj0 = 0 ;
21109 PyObject * obj1 = 0 ;
21110 PyObject * obj2 = 0 ;
21111 char * kwnames[] = {
21112 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21113 };
21114
21115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21117 if (!SWIG_IsOK(res1)) {
21118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21119 }
21120 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21121 ecode2 = SWIG_AsVal_int(obj1, &val2);
21122 if (!SWIG_IsOK(ecode2)) {
21123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21124 }
21125 arg2 = static_cast< int >(val2);
21126 if (obj2) {
21127 ecode3 = SWIG_AsVal_int(obj2, &val3);
21128 if (!SWIG_IsOK(ecode3)) {
21129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21130 }
21131 arg3 = static_cast< int >(val3);
21132 }
21133 {
21134 PyThreadState* __tstate = wxPyBeginAllowThreads();
21135 (arg1)->SendPageChangedEvent(arg2,arg3);
21136 wxPyEndAllowThreads(__tstate);
21137 if (PyErr_Occurred()) SWIG_fail;
21138 }
21139 resultobj = SWIG_Py_Void();
21140 return resultobj;
21141fail:
21142 return NULL;
21143}
21144
21145
0085ce49
RD
21146SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21147 PyObject *obj;
21148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21149 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21150 return SWIG_Py_Void();
21151}
21152
21153SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21154 return SWIG_Python_InitShadowInstance(args);
21155}
21156
21157SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21158 PyObject *resultobj = 0;
21159 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21160 int arg2 = (int) 0 ;
21161 int arg3 = (int) -1 ;
21162 int arg4 = (int) -1 ;
21163 wxNotebookEvent *result = 0 ;
21164 int val1 ;
21165 int ecode1 = 0 ;
21166 int val2 ;
21167 int ecode2 = 0 ;
21168 int val3 ;
21169 int ecode3 = 0 ;
21170 int val4 ;
21171 int ecode4 = 0 ;
21172 PyObject * obj0 = 0 ;
21173 PyObject * obj1 = 0 ;
21174 PyObject * obj2 = 0 ;
21175 PyObject * obj3 = 0 ;
21176 char * kwnames[] = {
21177 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21178 };
21179
21180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21181 if (obj0) {
21182 ecode1 = SWIG_AsVal_int(obj0, &val1);
21183 if (!SWIG_IsOK(ecode1)) {
21184 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21185 }
21186 arg1 = static_cast< wxEventType >(val1);
21187 }
21188 if (obj1) {
21189 ecode2 = SWIG_AsVal_int(obj1, &val2);
21190 if (!SWIG_IsOK(ecode2)) {
21191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21192 }
21193 arg2 = static_cast< int >(val2);
21194 }
21195 if (obj2) {
21196 ecode3 = SWIG_AsVal_int(obj2, &val3);
21197 if (!SWIG_IsOK(ecode3)) {
21198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21199 }
21200 arg3 = static_cast< int >(val3);
21201 }
21202 if (obj3) {
21203 ecode4 = SWIG_AsVal_int(obj3, &val4);
21204 if (!SWIG_IsOK(ecode4)) {
21205 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21206 }
21207 arg4 = static_cast< int >(val4);
21208 }
21209 {
21210 PyThreadState* __tstate = wxPyBeginAllowThreads();
21211 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21212 wxPyEndAllowThreads(__tstate);
21213 if (PyErr_Occurred()) SWIG_fail;
21214 }
21215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21216 return resultobj;
21217fail:
21218 return NULL;
21219}
21220
21221
21222SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21223 PyObject *obj;
21224 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21225 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21226 return SWIG_Py_Void();
21227}
21228
21229SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21230 return SWIG_Python_InitShadowInstance(args);
21231}
21232
21233SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21234 PyObject *resultobj = 0;
21235 wxWindow *arg1 = (wxWindow *) 0 ;
21236 int arg2 = (int) -1 ;
21237 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21238 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21239 wxSize const &arg4_defvalue = wxDefaultSize ;
21240 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21241 long arg5 = (long) 0 ;
21242 wxString const &arg6_defvalue = wxPyEmptyString ;
21243 wxString *arg6 = (wxString *) &arg6_defvalue ;
21244 wxListbook *result = 0 ;
21245 void *argp1 = 0 ;
21246 int res1 = 0 ;
21247 int val2 ;
21248 int ecode2 = 0 ;
21249 wxPoint temp3 ;
21250 wxSize temp4 ;
21251 long val5 ;
21252 int ecode5 = 0 ;
21253 bool temp6 = false ;
21254 PyObject * obj0 = 0 ;
21255 PyObject * obj1 = 0 ;
21256 PyObject * obj2 = 0 ;
21257 PyObject * obj3 = 0 ;
21258 PyObject * obj4 = 0 ;
21259 PyObject * obj5 = 0 ;
21260 char * kwnames[] = {
21261 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21262 };
21263
21264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21266 if (!SWIG_IsOK(res1)) {
21267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21268 }
21269 arg1 = reinterpret_cast< wxWindow * >(argp1);
21270 if (obj1) {
21271 ecode2 = SWIG_AsVal_int(obj1, &val2);
21272 if (!SWIG_IsOK(ecode2)) {
21273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21274 }
21275 arg2 = static_cast< int >(val2);
21276 }
21277 if (obj2) {
093d3ff1 21278 {
0085ce49
RD
21279 arg3 = &temp3;
21280 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 21281 }
0085ce49
RD
21282 }
21283 if (obj3) {
093d3ff1 21284 {
0085ce49
RD
21285 arg4 = &temp4;
21286 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21287 }
0085ce49
RD
21288 }
21289 if (obj4) {
21290 ecode5 = SWIG_AsVal_long(obj4, &val5);
21291 if (!SWIG_IsOK(ecode5)) {
21292 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21293 }
21294 arg5 = static_cast< long >(val5);
21295 }
21296 if (obj5) {
d14a1e28 21297 {
0085ce49
RD
21298 arg6 = wxString_in_helper(obj5);
21299 if (arg6 == NULL) SWIG_fail;
21300 temp6 = true;
d14a1e28 21301 }
0085ce49
RD
21302 }
21303 {
21304 if (!wxPyCheckForApp()) SWIG_fail;
21305 PyThreadState* __tstate = wxPyBeginAllowThreads();
21306 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21307 wxPyEndAllowThreads(__tstate);
21308 if (PyErr_Occurred()) SWIG_fail;
21309 }
21310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21311 {
21312 if (temp6)
21313 delete arg6;
21314 }
21315 return resultobj;
21316fail:
21317 {
21318 if (temp6)
21319 delete arg6;
21320 }
21321 return NULL;
d14a1e28
RD
21322}
21323
21324
0085ce49
RD
21325SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21326 PyObject *resultobj = 0;
21327 wxListbook *result = 0 ;
21328
21329 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21330 {
21331 if (!wxPyCheckForApp()) SWIG_fail;
21332 PyThreadState* __tstate = wxPyBeginAllowThreads();
21333 result = (wxListbook *)new wxListbook();
21334 wxPyEndAllowThreads(__tstate);
21335 if (PyErr_Occurred()) SWIG_fail;
21336 }
21337 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21338 return resultobj;
21339fail:
21340 return NULL;
21341}
21342
21343
21344SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21345 PyObject *resultobj = 0;
21346 wxListbook *arg1 = (wxListbook *) 0 ;
21347 wxWindow *arg2 = (wxWindow *) 0 ;
21348 int arg3 = (int) -1 ;
21349 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21350 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21351 wxSize const &arg5_defvalue = wxDefaultSize ;
21352 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21353 long arg6 = (long) 0 ;
21354 wxString const &arg7_defvalue = wxPyEmptyString ;
21355 wxString *arg7 = (wxString *) &arg7_defvalue ;
21356 bool result;
21357 void *argp1 = 0 ;
21358 int res1 = 0 ;
21359 void *argp2 = 0 ;
21360 int res2 = 0 ;
21361 int val3 ;
21362 int ecode3 = 0 ;
21363 wxPoint temp4 ;
21364 wxSize temp5 ;
21365 long val6 ;
21366 int ecode6 = 0 ;
21367 bool temp7 = false ;
21368 PyObject * obj0 = 0 ;
21369 PyObject * obj1 = 0 ;
21370 PyObject * obj2 = 0 ;
21371 PyObject * obj3 = 0 ;
21372 PyObject * obj4 = 0 ;
21373 PyObject * obj5 = 0 ;
21374 PyObject * obj6 = 0 ;
21375 char * kwnames[] = {
21376 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21377 };
21378
21379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21381 if (!SWIG_IsOK(res1)) {
21382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21383 }
21384 arg1 = reinterpret_cast< wxListbook * >(argp1);
21385 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21386 if (!SWIG_IsOK(res2)) {
21387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21388 }
21389 arg2 = reinterpret_cast< wxWindow * >(argp2);
21390 if (obj2) {
21391 ecode3 = SWIG_AsVal_int(obj2, &val3);
21392 if (!SWIG_IsOK(ecode3)) {
21393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21394 }
21395 arg3 = static_cast< int >(val3);
21396 }
21397 if (obj3) {
22bfe96c 21398 {
0085ce49
RD
21399 arg4 = &temp4;
21400 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 21401 }
0085ce49
RD
21402 }
21403 if (obj4) {
22bfe96c 21404 {
0085ce49
RD
21405 arg5 = &temp5;
21406 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 21407 }
0085ce49
RD
21408 }
21409 if (obj5) {
21410 ecode6 = SWIG_AsVal_long(obj5, &val6);
21411 if (!SWIG_IsOK(ecode6)) {
21412 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21413 }
21414 arg6 = static_cast< long >(val6);
21415 }
21416 if (obj6) {
b2dc1044 21417 {
0085ce49
RD
21418 arg7 = wxString_in_helper(obj6);
21419 if (arg7 == NULL) SWIG_fail;
21420 temp7 = true;
b2dc1044 21421 }
0085ce49
RD
21422 }
21423 {
21424 PyThreadState* __tstate = wxPyBeginAllowThreads();
21425 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21426 wxPyEndAllowThreads(__tstate);
21427 if (PyErr_Occurred()) SWIG_fail;
21428 }
21429 {
21430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21431 }
21432 {
21433 if (temp7)
21434 delete arg7;
21435 }
21436 return resultobj;
21437fail:
21438 {
21439 if (temp7)
21440 delete arg7;
21441 }
21442 return NULL;
b2dc1044
RD
21443}
21444
21445
0085ce49
RD
21446SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21447 PyObject *resultobj = 0;
21448 wxListbook *arg1 = (wxListbook *) 0 ;
21449 wxListView *result = 0 ;
21450 void *argp1 = 0 ;
21451 int res1 = 0 ;
21452 PyObject *swig_obj[1] ;
21453
21454 if (!args) SWIG_fail;
21455 swig_obj[0] = args;
21456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21457 if (!SWIG_IsOK(res1)) {
21458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21459 }
21460 arg1 = reinterpret_cast< wxListbook * >(argp1);
21461 {
21462 PyThreadState* __tstate = wxPyBeginAllowThreads();
21463 result = (wxListView *)(arg1)->GetListView();
21464 wxPyEndAllowThreads(__tstate);
21465 if (PyErr_Occurred()) SWIG_fail;
21466 }
21467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21468 return resultobj;
21469fail:
21470 return NULL;
21471}
21472
21473
21474SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21475 PyObject *obj;
21476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21477 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21478 return SWIG_Py_Void();
21479}
21480
21481SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21482 return SWIG_Python_InitShadowInstance(args);
21483}
21484
21485SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21486 PyObject *resultobj = 0;
21487 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21488 int arg2 = (int) 0 ;
21489 int arg3 = (int) -1 ;
21490 int arg4 = (int) -1 ;
21491 wxListbookEvent *result = 0 ;
21492 int val1 ;
21493 int ecode1 = 0 ;
21494 int val2 ;
21495 int ecode2 = 0 ;
21496 int val3 ;
21497 int ecode3 = 0 ;
21498 int val4 ;
21499 int ecode4 = 0 ;
21500 PyObject * obj0 = 0 ;
21501 PyObject * obj1 = 0 ;
21502 PyObject * obj2 = 0 ;
21503 PyObject * obj3 = 0 ;
21504 char * kwnames[] = {
21505 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21506 };
21507
21508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21509 if (obj0) {
21510 ecode1 = SWIG_AsVal_int(obj0, &val1);
21511 if (!SWIG_IsOK(ecode1)) {
21512 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21513 }
21514 arg1 = static_cast< wxEventType >(val1);
21515 }
21516 if (obj1) {
21517 ecode2 = SWIG_AsVal_int(obj1, &val2);
21518 if (!SWIG_IsOK(ecode2)) {
21519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21520 }
21521 arg2 = static_cast< int >(val2);
21522 }
21523 if (obj2) {
21524 ecode3 = SWIG_AsVal_int(obj2, &val3);
21525 if (!SWIG_IsOK(ecode3)) {
21526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21527 }
21528 arg3 = static_cast< int >(val3);
21529 }
21530 if (obj3) {
21531 ecode4 = SWIG_AsVal_int(obj3, &val4);
21532 if (!SWIG_IsOK(ecode4)) {
21533 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21534 }
21535 arg4 = static_cast< int >(val4);
21536 }
21537 {
21538 PyThreadState* __tstate = wxPyBeginAllowThreads();
21539 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21540 wxPyEndAllowThreads(__tstate);
21541 if (PyErr_Occurred()) SWIG_fail;
21542 }
21543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21544 return resultobj;
21545fail:
21546 return NULL;
21547}
21548
21549
21550SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21551 PyObject *obj;
21552 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21553 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21554 return SWIG_Py_Void();
21555}
21556
21557SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21558 return SWIG_Python_InitShadowInstance(args);
21559}
21560
21561SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21562 PyObject *resultobj = 0;
21563 wxWindow *arg1 = (wxWindow *) 0 ;
21564 int arg2 ;
21565 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21566 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21567 wxSize const &arg4_defvalue = wxDefaultSize ;
21568 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21569 long arg5 = (long) 0 ;
21570 wxString const &arg6_defvalue = wxPyEmptyString ;
21571 wxString *arg6 = (wxString *) &arg6_defvalue ;
21572 wxChoicebook *result = 0 ;
21573 void *argp1 = 0 ;
21574 int res1 = 0 ;
21575 int val2 ;
21576 int ecode2 = 0 ;
21577 wxPoint temp3 ;
21578 wxSize temp4 ;
21579 long val5 ;
21580 int ecode5 = 0 ;
21581 bool temp6 = false ;
21582 PyObject * obj0 = 0 ;
21583 PyObject * obj1 = 0 ;
21584 PyObject * obj2 = 0 ;
21585 PyObject * obj3 = 0 ;
21586 PyObject * obj4 = 0 ;
21587 PyObject * obj5 = 0 ;
21588 char * kwnames[] = {
21589 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21590 };
21591
21592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21594 if (!SWIG_IsOK(res1)) {
21595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21596 }
21597 arg1 = reinterpret_cast< wxWindow * >(argp1);
21598 ecode2 = SWIG_AsVal_int(obj1, &val2);
21599 if (!SWIG_IsOK(ecode2)) {
21600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21601 }
21602 arg2 = static_cast< int >(val2);
21603 if (obj2) {
d14a1e28 21604 {
0085ce49
RD
21605 arg3 = &temp3;
21606 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 21607 }
0085ce49
RD
21608 }
21609 if (obj3) {
d14a1e28 21610 {
0085ce49
RD
21611 arg4 = &temp4;
21612 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21613 }
0085ce49
RD
21614 }
21615 if (obj4) {
21616 ecode5 = SWIG_AsVal_long(obj4, &val5);
21617 if (!SWIG_IsOK(ecode5)) {
21618 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21619 }
21620 arg5 = static_cast< long >(val5);
21621 }
21622 if (obj5) {
d14a1e28 21623 {
0085ce49
RD
21624 arg6 = wxString_in_helper(obj5);
21625 if (arg6 == NULL) SWIG_fail;
21626 temp6 = true;
d14a1e28 21627 }
0085ce49
RD
21628 }
21629 {
21630 if (!wxPyCheckForApp()) SWIG_fail;
21631 PyThreadState* __tstate = wxPyBeginAllowThreads();
21632 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21633 wxPyEndAllowThreads(__tstate);
21634 if (PyErr_Occurred()) SWIG_fail;
21635 }
21636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21637 {
21638 if (temp6)
21639 delete arg6;
21640 }
21641 return resultobj;
21642fail:
21643 {
21644 if (temp6)
21645 delete arg6;
21646 }
21647 return NULL;
d14a1e28
RD
21648}
21649
21650
0085ce49
RD
21651SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21652 PyObject *resultobj = 0;
21653 wxChoicebook *result = 0 ;
21654
21655 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21656 {
21657 if (!wxPyCheckForApp()) SWIG_fail;
21658 PyThreadState* __tstate = wxPyBeginAllowThreads();
21659 result = (wxChoicebook *)new wxChoicebook();
21660 wxPyEndAllowThreads(__tstate);
21661 if (PyErr_Occurred()) SWIG_fail;
21662 }
21663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21664 return resultobj;
21665fail:
21666 return NULL;
21667}
21668
21669
21670SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21671 PyObject *resultobj = 0;
21672 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21673 wxWindow *arg2 = (wxWindow *) 0 ;
21674 int arg3 ;
21675 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21676 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21677 wxSize const &arg5_defvalue = wxDefaultSize ;
21678 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21679 long arg6 = (long) 0 ;
21680 wxString const &arg7_defvalue = wxPyEmptyString ;
21681 wxString *arg7 = (wxString *) &arg7_defvalue ;
21682 bool result;
21683 void *argp1 = 0 ;
21684 int res1 = 0 ;
21685 void *argp2 = 0 ;
21686 int res2 = 0 ;
21687 int val3 ;
21688 int ecode3 = 0 ;
21689 wxPoint temp4 ;
21690 wxSize temp5 ;
21691 long val6 ;
21692 int ecode6 = 0 ;
21693 bool temp7 = false ;
21694 PyObject * obj0 = 0 ;
21695 PyObject * obj1 = 0 ;
21696 PyObject * obj2 = 0 ;
21697 PyObject * obj3 = 0 ;
21698 PyObject * obj4 = 0 ;
21699 PyObject * obj5 = 0 ;
21700 PyObject * obj6 = 0 ;
21701 char * kwnames[] = {
21702 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21703 };
21704
21705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21707 if (!SWIG_IsOK(res1)) {
21708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21709 }
21710 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21711 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21712 if (!SWIG_IsOK(res2)) {
21713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21714 }
21715 arg2 = reinterpret_cast< wxWindow * >(argp2);
21716 ecode3 = SWIG_AsVal_int(obj2, &val3);
21717 if (!SWIG_IsOK(ecode3)) {
21718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21719 }
21720 arg3 = static_cast< int >(val3);
21721 if (obj3) {
4f89f6a3 21722 {
0085ce49
RD
21723 arg4 = &temp4;
21724 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 21725 }
0085ce49
RD
21726 }
21727 if (obj4) {
d14a1e28 21728 {
0085ce49
RD
21729 arg5 = &temp5;
21730 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 21731 }
0085ce49
RD
21732 }
21733 if (obj5) {
21734 ecode6 = SWIG_AsVal_long(obj5, &val6);
21735 if (!SWIG_IsOK(ecode6)) {
21736 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21737 }
21738 arg6 = static_cast< long >(val6);
21739 }
21740 if (obj6) {
d14a1e28 21741 {
0085ce49
RD
21742 arg7 = wxString_in_helper(obj6);
21743 if (arg7 == NULL) SWIG_fail;
21744 temp7 = true;
d14a1e28 21745 }
0085ce49
RD
21746 }
21747 {
21748 PyThreadState* __tstate = wxPyBeginAllowThreads();
21749 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21750 wxPyEndAllowThreads(__tstate);
21751 if (PyErr_Occurred()) SWIG_fail;
21752 }
21753 {
21754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21755 }
21756 {
21757 if (temp7)
21758 delete arg7;
21759 }
21760 return resultobj;
21761fail:
21762 {
21763 if (temp7)
21764 delete arg7;
21765 }
21766 return NULL;
d14a1e28
RD
21767}
21768
21769
0085ce49
RD
21770SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21771 PyObject *resultobj = 0;
21772 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21773 wxChoice *result = 0 ;
21774 void *argp1 = 0 ;
21775 int res1 = 0 ;
21776 PyObject *swig_obj[1] ;
21777
21778 if (!args) SWIG_fail;
21779 swig_obj[0] = args;
21780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21781 if (!SWIG_IsOK(res1)) {
21782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21783 }
21784 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21785 {
21786 PyThreadState* __tstate = wxPyBeginAllowThreads();
21787 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21788 wxPyEndAllowThreads(__tstate);
21789 if (PyErr_Occurred()) SWIG_fail;
21790 }
21791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21792 return resultobj;
21793fail:
21794 return NULL;
21795}
21796
21797
21798SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21799 PyObject *obj;
21800 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21801 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21802 return SWIG_Py_Void();
21803}
21804
21805SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21806 return SWIG_Python_InitShadowInstance(args);
21807}
21808
21809SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21810 PyObject *resultobj = 0;
21811 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21812 int arg2 = (int) 0 ;
21813 int arg3 = (int) -1 ;
21814 int arg4 = (int) -1 ;
21815 wxChoicebookEvent *result = 0 ;
21816 int val1 ;
21817 int ecode1 = 0 ;
21818 int val2 ;
21819 int ecode2 = 0 ;
21820 int val3 ;
21821 int ecode3 = 0 ;
21822 int val4 ;
21823 int ecode4 = 0 ;
21824 PyObject * obj0 = 0 ;
21825 PyObject * obj1 = 0 ;
21826 PyObject * obj2 = 0 ;
21827 PyObject * obj3 = 0 ;
21828 char * kwnames[] = {
21829 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21830 };
21831
21832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21833 if (obj0) {
21834 ecode1 = SWIG_AsVal_int(obj0, &val1);
21835 if (!SWIG_IsOK(ecode1)) {
21836 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21837 }
21838 arg1 = static_cast< wxEventType >(val1);
21839 }
21840 if (obj1) {
21841 ecode2 = SWIG_AsVal_int(obj1, &val2);
21842 if (!SWIG_IsOK(ecode2)) {
21843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21844 }
21845 arg2 = static_cast< int >(val2);
21846 }
21847 if (obj2) {
21848 ecode3 = SWIG_AsVal_int(obj2, &val3);
21849 if (!SWIG_IsOK(ecode3)) {
21850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21851 }
21852 arg3 = static_cast< int >(val3);
21853 }
21854 if (obj3) {
21855 ecode4 = SWIG_AsVal_int(obj3, &val4);
21856 if (!SWIG_IsOK(ecode4)) {
21857 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21858 }
21859 arg4 = static_cast< int >(val4);
21860 }
21861 {
21862 PyThreadState* __tstate = wxPyBeginAllowThreads();
21863 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21864 wxPyEndAllowThreads(__tstate);
21865 if (PyErr_Occurred()) SWIG_fail;
21866 }
21867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21868 return resultobj;
21869fail:
21870 return NULL;
21871}
21872
21873
21874SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21875 PyObject *obj;
21876 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21877 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21878 return SWIG_Py_Void();
21879}
21880
21881SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21882 return SWIG_Python_InitShadowInstance(args);
21883}
21884
21885SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21886 PyObject *resultobj = 0;
21887 wxWindow *arg1 = (wxWindow *) 0 ;
21888 int arg2 ;
21889 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21890 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21891 wxSize const &arg4_defvalue = wxDefaultSize ;
21892 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21893 long arg5 = (long) wxBK_DEFAULT ;
21894 wxString const &arg6_defvalue = wxPyEmptyString ;
21895 wxString *arg6 = (wxString *) &arg6_defvalue ;
21896 wxTreebook *result = 0 ;
21897 void *argp1 = 0 ;
21898 int res1 = 0 ;
21899 int val2 ;
21900 int ecode2 = 0 ;
21901 wxPoint temp3 ;
21902 wxSize temp4 ;
21903 long val5 ;
21904 int ecode5 = 0 ;
21905 bool temp6 = false ;
21906 PyObject * obj0 = 0 ;
21907 PyObject * obj1 = 0 ;
21908 PyObject * obj2 = 0 ;
21909 PyObject * obj3 = 0 ;
21910 PyObject * obj4 = 0 ;
21911 PyObject * obj5 = 0 ;
21912 char * kwnames[] = {
21913 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21914 };
21915
21916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21918 if (!SWIG_IsOK(res1)) {
21919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21920 }
21921 arg1 = reinterpret_cast< wxWindow * >(argp1);
21922 ecode2 = SWIG_AsVal_int(obj1, &val2);
21923 if (!SWIG_IsOK(ecode2)) {
21924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21925 }
21926 arg2 = static_cast< int >(val2);
21927 if (obj2) {
093d3ff1 21928 {
0085ce49
RD
21929 arg3 = &temp3;
21930 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 21931 }
0085ce49
RD
21932 }
21933 if (obj3) {
d14a1e28 21934 {
0085ce49
RD
21935 arg4 = &temp4;
21936 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 21937 }
0085ce49
RD
21938 }
21939 if (obj4) {
21940 ecode5 = SWIG_AsVal_long(obj4, &val5);
21941 if (!SWIG_IsOK(ecode5)) {
21942 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21943 }
21944 arg5 = static_cast< long >(val5);
21945 }
21946 if (obj5) {
093d3ff1 21947 {
0085ce49
RD
21948 arg6 = wxString_in_helper(obj5);
21949 if (arg6 == NULL) SWIG_fail;
21950 temp6 = true;
093d3ff1 21951 }
0085ce49
RD
21952 }
21953 {
21954 if (!wxPyCheckForApp()) SWIG_fail;
21955 PyThreadState* __tstate = wxPyBeginAllowThreads();
21956 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21957 wxPyEndAllowThreads(__tstate);
21958 if (PyErr_Occurred()) SWIG_fail;
21959 }
21960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21961 {
21962 if (temp6)
21963 delete arg6;
21964 }
21965 return resultobj;
21966fail:
21967 {
21968 if (temp6)
21969 delete arg6;
21970 }
21971 return NULL;
d14a1e28
RD
21972}
21973
21974
0085ce49
RD
21975SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21976 PyObject *resultobj = 0;
21977 wxTreebook *result = 0 ;
21978
21979 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21980 {
21981 if (!wxPyCheckForApp()) SWIG_fail;
21982 PyThreadState* __tstate = wxPyBeginAllowThreads();
21983 result = (wxTreebook *)new wxTreebook();
21984 wxPyEndAllowThreads(__tstate);
21985 if (PyErr_Occurred()) SWIG_fail;
21986 }
21987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21988 return resultobj;
21989fail:
21990 return NULL;
21991}
21992
21993
21994SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21995 PyObject *resultobj = 0;
21996 wxTreebook *arg1 = (wxTreebook *) 0 ;
21997 wxWindow *arg2 = (wxWindow *) 0 ;
21998 int arg3 ;
21999 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22000 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22001 wxSize const &arg5_defvalue = wxDefaultSize ;
22002 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22003 long arg6 = (long) wxBK_DEFAULT ;
22004 wxString const &arg7_defvalue = wxPyEmptyString ;
22005 wxString *arg7 = (wxString *) &arg7_defvalue ;
22006 bool result;
22007 void *argp1 = 0 ;
22008 int res1 = 0 ;
22009 void *argp2 = 0 ;
22010 int res2 = 0 ;
22011 int val3 ;
22012 int ecode3 = 0 ;
22013 wxPoint temp4 ;
22014 wxSize temp5 ;
22015 long val6 ;
22016 int ecode6 = 0 ;
22017 bool temp7 = false ;
22018 PyObject * obj0 = 0 ;
22019 PyObject * obj1 = 0 ;
22020 PyObject * obj2 = 0 ;
22021 PyObject * obj3 = 0 ;
22022 PyObject * obj4 = 0 ;
22023 PyObject * obj5 = 0 ;
22024 PyObject * obj6 = 0 ;
22025 char * kwnames[] = {
22026 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22027 };
22028
22029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22031 if (!SWIG_IsOK(res1)) {
22032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
22033 }
22034 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22035 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22036 if (!SWIG_IsOK(res2)) {
22037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22038 }
22039 arg2 = reinterpret_cast< wxWindow * >(argp2);
22040 ecode3 = SWIG_AsVal_int(obj2, &val3);
22041 if (!SWIG_IsOK(ecode3)) {
22042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
22043 }
22044 arg3 = static_cast< int >(val3);
22045 if (obj3) {
d14a1e28 22046 {
0085ce49
RD
22047 arg4 = &temp4;
22048 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 22049 }
0085ce49
RD
22050 }
22051 if (obj4) {
093d3ff1 22052 {
0085ce49
RD
22053 arg5 = &temp5;
22054 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22055 }
0085ce49
RD
22056 }
22057 if (obj5) {
22058 ecode6 = SWIG_AsVal_long(obj5, &val6);
22059 if (!SWIG_IsOK(ecode6)) {
22060 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
22061 }
22062 arg6 = static_cast< long >(val6);
22063 }
22064 if (obj6) {
093d3ff1 22065 {
0085ce49
RD
22066 arg7 = wxString_in_helper(obj6);
22067 if (arg7 == NULL) SWIG_fail;
22068 temp7 = true;
093d3ff1 22069 }
0085ce49
RD
22070 }
22071 {
22072 PyThreadState* __tstate = wxPyBeginAllowThreads();
22073 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22074 wxPyEndAllowThreads(__tstate);
22075 if (PyErr_Occurred()) SWIG_fail;
22076 }
22077 {
22078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22079 }
22080 {
22081 if (temp7)
22082 delete arg7;
22083 }
22084 return resultobj;
22085fail:
22086 {
22087 if (temp7)
22088 delete arg7;
22089 }
22090 return NULL;
22091}
22092
22093
22094SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22095 PyObject *resultobj = 0;
22096 wxTreebook *arg1 = (wxTreebook *) 0 ;
22097 size_t arg2 ;
22098 wxWindow *arg3 = (wxWindow *) 0 ;
22099 wxString *arg4 = 0 ;
22100 bool arg5 = (bool) false ;
22101 int arg6 = (int) wxNOT_FOUND ;
22102 bool result;
22103 void *argp1 = 0 ;
22104 int res1 = 0 ;
22105 size_t val2 ;
22106 int ecode2 = 0 ;
22107 void *argp3 = 0 ;
22108 int res3 = 0 ;
22109 bool temp4 = false ;
22110 bool val5 ;
22111 int ecode5 = 0 ;
22112 int val6 ;
22113 int ecode6 = 0 ;
22114 PyObject * obj0 = 0 ;
22115 PyObject * obj1 = 0 ;
22116 PyObject * obj2 = 0 ;
22117 PyObject * obj3 = 0 ;
22118 PyObject * obj4 = 0 ;
22119 PyObject * obj5 = 0 ;
22120 char * kwnames[] = {
22121 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22122 };
22123
22124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22126 if (!SWIG_IsOK(res1)) {
22127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22128 }
22129 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22130 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22131 if (!SWIG_IsOK(ecode2)) {
22132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22133 }
22134 arg2 = static_cast< size_t >(val2);
22135 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22136 if (!SWIG_IsOK(res3)) {
22137 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22138 }
22139 arg3 = reinterpret_cast< wxWindow * >(argp3);
22140 {
22141 arg4 = wxString_in_helper(obj3);
22142 if (arg4 == NULL) SWIG_fail;
22143 temp4 = true;
22144 }
22145 if (obj4) {
22146 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22147 if (!SWIG_IsOK(ecode5)) {
22148 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22149 }
22150 arg5 = static_cast< bool >(val5);
22151 }
22152 if (obj5) {
22153 ecode6 = SWIG_AsVal_int(obj5, &val6);
22154 if (!SWIG_IsOK(ecode6)) {
22155 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22156 }
22157 arg6 = static_cast< int >(val6);
22158 }
22159 {
22160 PyThreadState* __tstate = wxPyBeginAllowThreads();
22161 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22162 wxPyEndAllowThreads(__tstate);
22163 if (PyErr_Occurred()) SWIG_fail;
22164 }
22165 {
22166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22167 }
22168 {
22169 if (temp4)
22170 delete arg4;
22171 }
22172 return resultobj;
22173fail:
22174 {
22175 if (temp4)
22176 delete arg4;
22177 }
22178 return NULL;
22179}
22180
22181
22182SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22183 PyObject *resultobj = 0;
22184 wxTreebook *arg1 = (wxTreebook *) 0 ;
22185 wxWindow *arg2 = (wxWindow *) 0 ;
22186 wxString *arg3 = 0 ;
22187 bool arg4 = (bool) false ;
22188 int arg5 = (int) wxNOT_FOUND ;
22189 bool result;
22190 void *argp1 = 0 ;
22191 int res1 = 0 ;
22192 void *argp2 = 0 ;
22193 int res2 = 0 ;
22194 bool temp3 = false ;
22195 bool val4 ;
22196 int ecode4 = 0 ;
22197 int val5 ;
22198 int ecode5 = 0 ;
22199 PyObject * obj0 = 0 ;
22200 PyObject * obj1 = 0 ;
22201 PyObject * obj2 = 0 ;
22202 PyObject * obj3 = 0 ;
22203 PyObject * obj4 = 0 ;
22204 char * kwnames[] = {
22205 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22206 };
22207
22208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22210 if (!SWIG_IsOK(res1)) {
22211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22212 }
22213 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22214 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22215 if (!SWIG_IsOK(res2)) {
22216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22217 }
22218 arg2 = reinterpret_cast< wxWindow * >(argp2);
22219 {
22220 arg3 = wxString_in_helper(obj2);
22221 if (arg3 == NULL) SWIG_fail;
22222 temp3 = true;
22223 }
22224 if (obj3) {
22225 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22226 if (!SWIG_IsOK(ecode4)) {
22227 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22228 }
22229 arg4 = static_cast< bool >(val4);
22230 }
22231 if (obj4) {
22232 ecode5 = SWIG_AsVal_int(obj4, &val5);
22233 if (!SWIG_IsOK(ecode5)) {
22234 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22235 }
22236 arg5 = static_cast< int >(val5);
22237 }
22238 {
22239 PyThreadState* __tstate = wxPyBeginAllowThreads();
22240 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22241 wxPyEndAllowThreads(__tstate);
22242 if (PyErr_Occurred()) SWIG_fail;
22243 }
22244 {
22245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22246 }
22247 {
22248 if (temp3)
22249 delete arg3;
22250 }
22251 return resultobj;
22252fail:
22253 {
22254 if (temp3)
22255 delete arg3;
22256 }
22257 return NULL;
22258}
22259
22260
22261SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22262 PyObject *resultobj = 0;
22263 wxTreebook *arg1 = (wxTreebook *) 0 ;
22264 size_t arg2 ;
22265 bool result;
22266 void *argp1 = 0 ;
22267 int res1 = 0 ;
22268 size_t val2 ;
22269 int ecode2 = 0 ;
22270 PyObject * obj0 = 0 ;
22271 PyObject * obj1 = 0 ;
22272 char * kwnames[] = {
22273 (char *) "self",(char *) "pos", NULL
22274 };
22275
22276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22278 if (!SWIG_IsOK(res1)) {
22279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22280 }
22281 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22282 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22283 if (!SWIG_IsOK(ecode2)) {
22284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22285 }
22286 arg2 = static_cast< size_t >(val2);
22287 {
22288 PyThreadState* __tstate = wxPyBeginAllowThreads();
22289 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22290 wxPyEndAllowThreads(__tstate);
22291 if (PyErr_Occurred()) SWIG_fail;
22292 }
22293 {
22294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22295 }
22296 return resultobj;
22297fail:
22298 return NULL;
22299}
22300
22301
22302SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22303 PyObject *resultobj = 0;
22304 wxTreebook *arg1 = (wxTreebook *) 0 ;
22305 size_t arg2 ;
22306 bool arg3 = (bool) true ;
22307 bool result;
22308 void *argp1 = 0 ;
22309 int res1 = 0 ;
22310 size_t val2 ;
22311 int ecode2 = 0 ;
22312 bool val3 ;
22313 int ecode3 = 0 ;
22314 PyObject * obj0 = 0 ;
22315 PyObject * obj1 = 0 ;
22316 PyObject * obj2 = 0 ;
22317 char * kwnames[] = {
22318 (char *) "self",(char *) "pos",(char *) "expand", NULL
22319 };
22320
22321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22323 if (!SWIG_IsOK(res1)) {
22324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22325 }
22326 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22327 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22328 if (!SWIG_IsOK(ecode2)) {
22329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22330 }
22331 arg2 = static_cast< size_t >(val2);
22332 if (obj2) {
22333 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22334 if (!SWIG_IsOK(ecode3)) {
22335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22336 }
22337 arg3 = static_cast< bool >(val3);
22338 }
22339 {
22340 PyThreadState* __tstate = wxPyBeginAllowThreads();
22341 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22342 wxPyEndAllowThreads(__tstate);
22343 if (PyErr_Occurred()) SWIG_fail;
22344 }
22345 {
22346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22347 }
22348 return resultobj;
22349fail:
22350 return NULL;
22351}
22352
22353
22354SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22355 PyObject *resultobj = 0;
22356 wxTreebook *arg1 = (wxTreebook *) 0 ;
22357 size_t arg2 ;
22358 bool result;
22359 void *argp1 = 0 ;
22360 int res1 = 0 ;
22361 size_t val2 ;
22362 int ecode2 = 0 ;
22363 PyObject * obj0 = 0 ;
22364 PyObject * obj1 = 0 ;
22365 char * kwnames[] = {
22366 (char *) "self",(char *) "pos", NULL
22367 };
22368
22369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22371 if (!SWIG_IsOK(res1)) {
22372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22373 }
22374 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22375 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22376 if (!SWIG_IsOK(ecode2)) {
22377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22378 }
22379 arg2 = static_cast< size_t >(val2);
22380 {
22381 PyThreadState* __tstate = wxPyBeginAllowThreads();
22382 result = (bool)(arg1)->CollapseNode(arg2);
22383 wxPyEndAllowThreads(__tstate);
22384 if (PyErr_Occurred()) SWIG_fail;
22385 }
22386 {
22387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22388 }
22389 return resultobj;
22390fail:
22391 return NULL;
22392}
22393
22394
22395SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22396 PyObject *resultobj = 0;
22397 wxTreebook *arg1 = (wxTreebook *) 0 ;
22398 size_t arg2 ;
22399 int result;
22400 void *argp1 = 0 ;
22401 int res1 = 0 ;
22402 size_t val2 ;
22403 int ecode2 = 0 ;
22404 PyObject * obj0 = 0 ;
22405 PyObject * obj1 = 0 ;
22406 char * kwnames[] = {
22407 (char *) "self",(char *) "pos", NULL
22408 };
22409
22410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22412 if (!SWIG_IsOK(res1)) {
22413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22414 }
22415 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22416 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22417 if (!SWIG_IsOK(ecode2)) {
22418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22419 }
22420 arg2 = static_cast< size_t >(val2);
22421 {
22422 PyThreadState* __tstate = wxPyBeginAllowThreads();
22423 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22424 wxPyEndAllowThreads(__tstate);
22425 if (PyErr_Occurred()) SWIG_fail;
22426 }
22427 resultobj = SWIG_From_int(static_cast< int >(result));
22428 return resultobj;
22429fail:
22430 return NULL;
d14a1e28
RD
22431}
22432
22433
0085ce49
RD
22434SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22435 PyObject *resultobj = 0;
22436 wxTreebook *arg1 = (wxTreebook *) 0 ;
10044bf1 22437 wxPyTreeCtrl *result = 0 ;
0085ce49
RD
22438 void *argp1 = 0 ;
22439 int res1 = 0 ;
22440 PyObject *swig_obj[1] ;
22441
22442 if (!args) SWIG_fail;
22443 swig_obj[0] = args;
22444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22445 if (!SWIG_IsOK(res1)) {
22446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22447 }
22448 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22449 {
22450 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044bf1 22451 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
0085ce49
RD
22452 wxPyEndAllowThreads(__tstate);
22453 if (PyErr_Occurred()) SWIG_fail;
22454 }
10044bf1
RD
22455 {
22456 resultobj = wxPyMake_wxObject(result, (bool)0);
22457 }
0085ce49
RD
22458 return resultobj;
22459fail:
22460 return NULL;
22461}
22462
22463
22464SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22465 PyObject *obj;
22466 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22467 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22468 return SWIG_Py_Void();
22469}
22470
22471SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22472 return SWIG_Python_InitShadowInstance(args);
22473}
22474
22475SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22476 PyObject *resultobj = 0;
22477 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22478 int arg2 = (int) 0 ;
22479 int arg3 = (int) wxNOT_FOUND ;
22480 int arg4 = (int) wxNOT_FOUND ;
22481 wxTreebookEvent *result = 0 ;
22482 int val1 ;
22483 int ecode1 = 0 ;
22484 int val2 ;
22485 int ecode2 = 0 ;
22486 int val3 ;
22487 int ecode3 = 0 ;
22488 int val4 ;
22489 int ecode4 = 0 ;
22490 PyObject * obj0 = 0 ;
22491 PyObject * obj1 = 0 ;
22492 PyObject * obj2 = 0 ;
22493 PyObject * obj3 = 0 ;
22494 char * kwnames[] = {
22495 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22496 };
22497
22498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22499 if (obj0) {
22500 ecode1 = SWIG_AsVal_int(obj0, &val1);
22501 if (!SWIG_IsOK(ecode1)) {
22502 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22503 }
22504 arg1 = static_cast< wxEventType >(val1);
22505 }
22506 if (obj1) {
22507 ecode2 = SWIG_AsVal_int(obj1, &val2);
22508 if (!SWIG_IsOK(ecode2)) {
22509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22510 }
22511 arg2 = static_cast< int >(val2);
22512 }
22513 if (obj2) {
22514 ecode3 = SWIG_AsVal_int(obj2, &val3);
22515 if (!SWIG_IsOK(ecode3)) {
22516 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22517 }
22518 arg3 = static_cast< int >(val3);
22519 }
22520 if (obj3) {
22521 ecode4 = SWIG_AsVal_int(obj3, &val4);
22522 if (!SWIG_IsOK(ecode4)) {
22523 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22524 }
22525 arg4 = static_cast< int >(val4);
22526 }
22527 {
22528 PyThreadState* __tstate = wxPyBeginAllowThreads();
22529 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22530 wxPyEndAllowThreads(__tstate);
22531 if (PyErr_Occurred()) SWIG_fail;
22532 }
22533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22534 return resultobj;
22535fail:
22536 return NULL;
22537}
22538
22539
22540SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22541 PyObject *obj;
22542 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22543 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22544 return SWIG_Py_Void();
22545}
22546
22547SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22548 return SWIG_Python_InitShadowInstance(args);
22549}
22550
22551SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22552 PyObject *resultobj = 0;
22553 wxWindow *arg1 = (wxWindow *) 0 ;
22554 int arg2 ;
22555 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22556 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22557 wxSize const &arg4_defvalue = wxDefaultSize ;
22558 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22559 long arg5 = (long) wxBK_DEFAULT ;
22560 wxString const &arg6_defvalue = wxPyEmptyString ;
22561 wxString *arg6 = (wxString *) &arg6_defvalue ;
22562 wxToolbook *result = 0 ;
22563 void *argp1 = 0 ;
22564 int res1 = 0 ;
22565 int val2 ;
22566 int ecode2 = 0 ;
22567 wxPoint temp3 ;
22568 wxSize temp4 ;
22569 long val5 ;
22570 int ecode5 = 0 ;
22571 bool temp6 = false ;
22572 PyObject * obj0 = 0 ;
22573 PyObject * obj1 = 0 ;
22574 PyObject * obj2 = 0 ;
22575 PyObject * obj3 = 0 ;
22576 PyObject * obj4 = 0 ;
22577 PyObject * obj5 = 0 ;
22578 char * kwnames[] = {
22579 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22580 };
22581
22582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22584 if (!SWIG_IsOK(res1)) {
22585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22586 }
22587 arg1 = reinterpret_cast< wxWindow * >(argp1);
22588 ecode2 = SWIG_AsVal_int(obj1, &val2);
22589 if (!SWIG_IsOK(ecode2)) {
22590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22591 }
22592 arg2 = static_cast< int >(val2);
22593 if (obj2) {
d14a1e28 22594 {
0085ce49
RD
22595 arg3 = &temp3;
22596 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 22597 }
0085ce49
RD
22598 }
22599 if (obj3) {
093d3ff1 22600 {
0085ce49
RD
22601 arg4 = &temp4;
22602 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22603 }
0085ce49
RD
22604 }
22605 if (obj4) {
22606 ecode5 = SWIG_AsVal_long(obj4, &val5);
22607 if (!SWIG_IsOK(ecode5)) {
22608 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22609 }
22610 arg5 = static_cast< long >(val5);
22611 }
22612 if (obj5) {
d14a1e28 22613 {
0085ce49
RD
22614 arg6 = wxString_in_helper(obj5);
22615 if (arg6 == NULL) SWIG_fail;
22616 temp6 = true;
d14a1e28 22617 }
0085ce49
RD
22618 }
22619 {
22620 PyThreadState* __tstate = wxPyBeginAllowThreads();
22621 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22622 wxPyEndAllowThreads(__tstate);
22623 if (PyErr_Occurred()) SWIG_fail;
22624 }
22625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22626 {
22627 if (temp6)
22628 delete arg6;
22629 }
22630 return resultobj;
22631fail:
22632 {
22633 if (temp6)
22634 delete arg6;
22635 }
22636 return NULL;
d14a1e28
RD
22637}
22638
22639
0085ce49
RD
22640SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22641 PyObject *resultobj = 0;
22642 wxToolbook *result = 0 ;
22643
22644 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22645 {
22646 PyThreadState* __tstate = wxPyBeginAllowThreads();
22647 result = (wxToolbook *)new wxToolbook();
22648 wxPyEndAllowThreads(__tstate);
22649 if (PyErr_Occurred()) SWIG_fail;
22650 }
22651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22652 return resultobj;
22653fail:
22654 return NULL;
22655}
22656
22657
22658SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22659 PyObject *resultobj = 0;
22660 wxToolbook *arg1 = (wxToolbook *) 0 ;
22661 wxWindow *arg2 = (wxWindow *) 0 ;
22662 int arg3 ;
22663 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22664 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22665 wxSize const &arg5_defvalue = wxDefaultSize ;
22666 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22667 long arg6 = (long) 0 ;
22668 wxString const &arg7_defvalue = wxEmptyString ;
22669 wxString *arg7 = (wxString *) &arg7_defvalue ;
22670 bool result;
22671 void *argp1 = 0 ;
22672 int res1 = 0 ;
22673 void *argp2 = 0 ;
22674 int res2 = 0 ;
22675 int val3 ;
22676 int ecode3 = 0 ;
22677 wxPoint temp4 ;
22678 wxSize temp5 ;
22679 long val6 ;
22680 int ecode6 = 0 ;
22681 bool temp7 = false ;
22682 PyObject * obj0 = 0 ;
22683 PyObject * obj1 = 0 ;
22684 PyObject * obj2 = 0 ;
22685 PyObject * obj3 = 0 ;
22686 PyObject * obj4 = 0 ;
22687 PyObject * obj5 = 0 ;
22688 PyObject * obj6 = 0 ;
22689 char * kwnames[] = {
22690 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22691 };
22692
22693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22695 if (!SWIG_IsOK(res1)) {
22696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22697 }
22698 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22699 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22700 if (!SWIG_IsOK(res2)) {
22701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22702 }
22703 arg2 = reinterpret_cast< wxWindow * >(argp2);
22704 ecode3 = SWIG_AsVal_int(obj2, &val3);
22705 if (!SWIG_IsOK(ecode3)) {
22706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22707 }
22708 arg3 = static_cast< int >(val3);
22709 if (obj3) {
093d3ff1 22710 {
0085ce49
RD
22711 arg4 = &temp4;
22712 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 22713 }
0085ce49
RD
22714 }
22715 if (obj4) {
093d3ff1 22716 {
0085ce49
RD
22717 arg5 = &temp5;
22718 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 22719 }
0085ce49
RD
22720 }
22721 if (obj5) {
22722 ecode6 = SWIG_AsVal_long(obj5, &val6);
22723 if (!SWIG_IsOK(ecode6)) {
22724 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22725 }
22726 arg6 = static_cast< long >(val6);
22727 }
22728 if (obj6) {
994141e6 22729 {
0085ce49
RD
22730 arg7 = wxString_in_helper(obj6);
22731 if (arg7 == NULL) SWIG_fail;
22732 temp7 = true;
d14a1e28 22733 }
0085ce49
RD
22734 }
22735 {
22736 PyThreadState* __tstate = wxPyBeginAllowThreads();
22737 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22738 wxPyEndAllowThreads(__tstate);
22739 if (PyErr_Occurred()) SWIG_fail;
22740 }
22741 {
22742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22743 }
22744 {
22745 if (temp7)
22746 delete arg7;
22747 }
22748 return resultobj;
22749fail:
22750 {
22751 if (temp7)
22752 delete arg7;
22753 }
22754 return NULL;
22bfe96c
RD
22755}
22756
22757
0085ce49
RD
22758SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22759 PyObject *resultobj = 0;
22760 wxToolbook *arg1 = (wxToolbook *) 0 ;
22761 wxToolBarBase *result = 0 ;
22762 void *argp1 = 0 ;
22763 int res1 = 0 ;
22764 PyObject *swig_obj[1] ;
22765
22766 if (!args) SWIG_fail;
22767 swig_obj[0] = args;
22768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22769 if (!SWIG_IsOK(res1)) {
22770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22771 }
22772 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22773 {
22774 PyThreadState* __tstate = wxPyBeginAllowThreads();
22775 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22776 wxPyEndAllowThreads(__tstate);
22777 if (PyErr_Occurred()) SWIG_fail;
22778 }
22779 {
22780 resultobj = wxPyMake_wxObject(result, (bool)0);
22781 }
22782 return resultobj;
22783fail:
22784 return NULL;
d14a1e28
RD
22785}
22786
22787
0085ce49
RD
22788SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22789 PyObject *resultobj = 0;
22790 wxToolbook *arg1 = (wxToolbook *) 0 ;
22791 void *argp1 = 0 ;
22792 int res1 = 0 ;
22793 PyObject *swig_obj[1] ;
22794
22795 if (!args) SWIG_fail;
22796 swig_obj[0] = args;
22797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22798 if (!SWIG_IsOK(res1)) {
22799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22800 }
22801 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22802 {
22803 PyThreadState* __tstate = wxPyBeginAllowThreads();
22804 (arg1)->Realize();
22805 wxPyEndAllowThreads(__tstate);
22806 if (PyErr_Occurred()) SWIG_fail;
22807 }
22808 resultobj = SWIG_Py_Void();
22809 return resultobj;
22810fail:
22811 return NULL;
22812}
22813
22814
22815SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22816 PyObject *obj;
22817 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22818 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22819 return SWIG_Py_Void();
22820}
22821
22822SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22823 return SWIG_Python_InitShadowInstance(args);
22824}
22825
22826SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22827 PyObject *resultobj = 0;
22828 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22829 int arg2 = (int) 0 ;
22830 int arg3 = (int) wxNOT_FOUND ;
22831 int arg4 = (int) wxNOT_FOUND ;
22832 wxToolbookEvent *result = 0 ;
22833 int val1 ;
22834 int ecode1 = 0 ;
22835 int val2 ;
22836 int ecode2 = 0 ;
22837 int val3 ;
22838 int ecode3 = 0 ;
22839 int val4 ;
22840 int ecode4 = 0 ;
22841 PyObject * obj0 = 0 ;
22842 PyObject * obj1 = 0 ;
22843 PyObject * obj2 = 0 ;
22844 PyObject * obj3 = 0 ;
22845 char * kwnames[] = {
22846 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22847 };
22848
22849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22850 if (obj0) {
22851 ecode1 = SWIG_AsVal_int(obj0, &val1);
22852 if (!SWIG_IsOK(ecode1)) {
22853 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22854 }
22855 arg1 = static_cast< wxEventType >(val1);
22856 }
22857 if (obj1) {
22858 ecode2 = SWIG_AsVal_int(obj1, &val2);
22859 if (!SWIG_IsOK(ecode2)) {
22860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22861 }
22862 arg2 = static_cast< int >(val2);
22863 }
22864 if (obj2) {
22865 ecode3 = SWIG_AsVal_int(obj2, &val3);
22866 if (!SWIG_IsOK(ecode3)) {
22867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22868 }
22869 arg3 = static_cast< int >(val3);
22870 }
22871 if (obj3) {
22872 ecode4 = SWIG_AsVal_int(obj3, &val4);
22873 if (!SWIG_IsOK(ecode4)) {
22874 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22875 }
22876 arg4 = static_cast< int >(val4);
22877 }
22878 {
22879 PyThreadState* __tstate = wxPyBeginAllowThreads();
22880 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22881 wxPyEndAllowThreads(__tstate);
22882 if (PyErr_Occurred()) SWIG_fail;
22883 }
22884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22885 return resultobj;
22886fail:
22887 return NULL;
d14a1e28
RD
22888}
22889
22890
0085ce49
RD
22891SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22892 PyObject *obj;
22893 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22894 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22895 return SWIG_Py_Void();
d14a1e28
RD
22896}
22897
0085ce49
RD
22898SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22899 return SWIG_Python_InitShadowInstance(args);
22900}
d14a1e28 22901
0085ce49
RD
22902SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22903 PyObject *resultobj = 0;
22904 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22905 int result;
22906 void *argp1 = 0 ;
22907 int res1 = 0 ;
22908 PyObject *swig_obj[1] ;
22909
22910 if (!args) SWIG_fail;
22911 swig_obj[0] = args;
22912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22913 if (!SWIG_IsOK(res1)) {
22914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22915 }
22916 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22917 {
22918 PyThreadState* __tstate = wxPyBeginAllowThreads();
22919 result = (int)(arg1)->GetId();
22920 wxPyEndAllowThreads(__tstate);
22921 if (PyErr_Occurred()) SWIG_fail;
22922 }
22923 resultobj = SWIG_From_int(static_cast< int >(result));
22924 return resultobj;
22925fail:
22926 return NULL;
d14a1e28
RD
22927}
22928
22929
0085ce49
RD
22930SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22931 PyObject *resultobj = 0;
22932 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22933 wxControl *result = 0 ;
22934 void *argp1 = 0 ;
22935 int res1 = 0 ;
22936 PyObject *swig_obj[1] ;
22937
22938 if (!args) SWIG_fail;
22939 swig_obj[0] = args;
22940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22941 if (!SWIG_IsOK(res1)) {
22942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22943 }
22944 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22945 {
22946 PyThreadState* __tstate = wxPyBeginAllowThreads();
22947 result = (wxControl *)(arg1)->GetControl();
22948 wxPyEndAllowThreads(__tstate);
22949 if (PyErr_Occurred()) SWIG_fail;
22950 }
22951 {
22952 resultobj = wxPyMake_wxObject(result, 0);
22953 }
22954 return resultobj;
22955fail:
22956 return NULL;
d14a1e28
RD
22957}
22958
22959
0085ce49
RD
22960SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22961 PyObject *resultobj = 0;
22962 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22963 wxToolBarBase *result = 0 ;
22964 void *argp1 = 0 ;
22965 int res1 = 0 ;
22966 PyObject *swig_obj[1] ;
22967
22968 if (!args) SWIG_fail;
22969 swig_obj[0] = args;
22970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22971 if (!SWIG_IsOK(res1)) {
22972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22973 }
22974 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22975 {
22976 PyThreadState* __tstate = wxPyBeginAllowThreads();
22977 result = (wxToolBarBase *)(arg1)->GetToolBar();
22978 wxPyEndAllowThreads(__tstate);
22979 if (PyErr_Occurred()) SWIG_fail;
22980 }
22981 {
22982 resultobj = wxPyMake_wxObject(result, (bool)0);
22983 }
22984 return resultobj;
22985fail:
22986 return NULL;
d14a1e28
RD
22987}
22988
22989
0085ce49
RD
22990SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22991 PyObject *resultobj = 0;
22992 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22993 int result;
22994 void *argp1 = 0 ;
22995 int res1 = 0 ;
22996 PyObject *swig_obj[1] ;
22997
22998 if (!args) SWIG_fail;
22999 swig_obj[0] = args;
23000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23001 if (!SWIG_IsOK(res1)) {
23002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23003 }
23004 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23005 {
23006 PyThreadState* __tstate = wxPyBeginAllowThreads();
23007 result = (int)(arg1)->IsButton();
23008 wxPyEndAllowThreads(__tstate);
23009 if (PyErr_Occurred()) SWIG_fail;
23010 }
23011 resultobj = SWIG_From_int(static_cast< int >(result));
23012 return resultobj;
23013fail:
23014 return NULL;
d14a1e28
RD
23015}
23016
23017
0085ce49
RD
23018SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23019 PyObject *resultobj = 0;
23020 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23021 int result;
23022 void *argp1 = 0 ;
23023 int res1 = 0 ;
23024 PyObject *swig_obj[1] ;
23025
23026 if (!args) SWIG_fail;
23027 swig_obj[0] = args;
23028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23029 if (!SWIG_IsOK(res1)) {
23030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23031 }
23032 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23033 {
23034 PyThreadState* __tstate = wxPyBeginAllowThreads();
23035 result = (int)(arg1)->IsControl();
23036 wxPyEndAllowThreads(__tstate);
23037 if (PyErr_Occurred()) SWIG_fail;
23038 }
23039 resultobj = SWIG_From_int(static_cast< int >(result));
23040 return resultobj;
23041fail:
23042 return NULL;
d14a1e28
RD
23043}
23044
23045
0085ce49
RD
23046SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23047 PyObject *resultobj = 0;
23048 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23049 int result;
23050 void *argp1 = 0 ;
23051 int res1 = 0 ;
23052 PyObject *swig_obj[1] ;
23053
23054 if (!args) SWIG_fail;
23055 swig_obj[0] = args;
23056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23057 if (!SWIG_IsOK(res1)) {
23058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23059 }
23060 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23061 {
23062 PyThreadState* __tstate = wxPyBeginAllowThreads();
23063 result = (int)(arg1)->IsSeparator();
23064 wxPyEndAllowThreads(__tstate);
23065 if (PyErr_Occurred()) SWIG_fail;
23066 }
23067 resultobj = SWIG_From_int(static_cast< int >(result));
23068 return resultobj;
23069fail:
23070 return NULL;
d14a1e28
RD
23071}
23072
23073
0085ce49
RD
23074SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23075 PyObject *resultobj = 0;
23076 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23077 int result;
23078 void *argp1 = 0 ;
23079 int res1 = 0 ;
23080 PyObject *swig_obj[1] ;
23081
23082 if (!args) SWIG_fail;
23083 swig_obj[0] = args;
23084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23085 if (!SWIG_IsOK(res1)) {
23086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23087 }
23088 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23089 {
23090 PyThreadState* __tstate = wxPyBeginAllowThreads();
23091 result = (int)(arg1)->GetStyle();
23092 wxPyEndAllowThreads(__tstate);
23093 if (PyErr_Occurred()) SWIG_fail;
23094 }
23095 resultobj = SWIG_From_int(static_cast< int >(result));
23096 return resultobj;
23097fail:
23098 return NULL;
d14a1e28
RD
23099}
23100
23101
0085ce49
RD
23102SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23103 PyObject *resultobj = 0;
23104 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23105 wxItemKind result;
23106 void *argp1 = 0 ;
23107 int res1 = 0 ;
23108 PyObject *swig_obj[1] ;
23109
23110 if (!args) SWIG_fail;
23111 swig_obj[0] = args;
23112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23113 if (!SWIG_IsOK(res1)) {
23114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23115 }
23116 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23117 {
23118 PyThreadState* __tstate = wxPyBeginAllowThreads();
23119 result = (wxItemKind)(arg1)->GetKind();
23120 wxPyEndAllowThreads(__tstate);
23121 if (PyErr_Occurred()) SWIG_fail;
23122 }
23123 resultobj = SWIG_From_int(static_cast< int >(result));
23124 return resultobj;
23125fail:
23126 return NULL;
d14a1e28
RD
23127}
23128
23129
0085ce49
RD
23130SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23131 PyObject *resultobj = 0;
23132 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23133 bool result;
23134 void *argp1 = 0 ;
23135 int res1 = 0 ;
23136 PyObject *swig_obj[1] ;
23137
23138 if (!args) SWIG_fail;
23139 swig_obj[0] = args;
23140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23141 if (!SWIG_IsOK(res1)) {
23142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23143 }
23144 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23145 {
23146 PyThreadState* __tstate = wxPyBeginAllowThreads();
23147 result = (bool)(arg1)->IsEnabled();
23148 wxPyEndAllowThreads(__tstate);
23149 if (PyErr_Occurred()) SWIG_fail;
23150 }
23151 {
23152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23153 }
23154 return resultobj;
23155fail:
23156 return NULL;
d14a1e28
RD
23157}
23158
23159
0085ce49
RD
23160SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23161 PyObject *resultobj = 0;
23162 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23163 bool result;
23164 void *argp1 = 0 ;
23165 int res1 = 0 ;
23166 PyObject *swig_obj[1] ;
23167
23168 if (!args) SWIG_fail;
23169 swig_obj[0] = args;
23170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23171 if (!SWIG_IsOK(res1)) {
23172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23173 }
23174 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23175 {
23176 PyThreadState* __tstate = wxPyBeginAllowThreads();
23177 result = (bool)(arg1)->IsToggled();
23178 wxPyEndAllowThreads(__tstate);
23179 if (PyErr_Occurred()) SWIG_fail;
23180 }
23181 {
23182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23183 }
23184 return resultobj;
23185fail:
23186 return NULL;
22bfe96c
RD
23187}
23188
23189
0085ce49
RD
23190SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23191 PyObject *resultobj = 0;
23192 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23193 bool result;
23194 void *argp1 = 0 ;
23195 int res1 = 0 ;
23196 PyObject *swig_obj[1] ;
23197
23198 if (!args) SWIG_fail;
23199 swig_obj[0] = args;
23200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23201 if (!SWIG_IsOK(res1)) {
23202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23203 }
23204 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23205 {
23206 PyThreadState* __tstate = wxPyBeginAllowThreads();
23207 result = (bool)(arg1)->CanBeToggled();
23208 wxPyEndAllowThreads(__tstate);
23209 if (PyErr_Occurred()) SWIG_fail;
23210 }
23211 {
23212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23213 }
23214 return resultobj;
23215fail:
23216 return NULL;
d1e20054
RD
23217}
23218
23219
0085ce49
RD
23220SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23221 PyObject *resultobj = 0;
23222 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23223 wxBitmap *result = 0 ;
23224 void *argp1 = 0 ;
23225 int res1 = 0 ;
23226 PyObject *swig_obj[1] ;
23227
23228 if (!args) SWIG_fail;
23229 swig_obj[0] = args;
23230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23231 if (!SWIG_IsOK(res1)) {
23232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23233 }
23234 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23235 {
23236 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 23237 {
0085ce49
RD
23238 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23239 result = (wxBitmap *) &_result_ref;
093d3ff1 23240 }
0085ce49
RD
23241 wxPyEndAllowThreads(__tstate);
23242 if (PyErr_Occurred()) SWIG_fail;
23243 }
23244 {
23245 wxBitmap* resultptr = new wxBitmap(*result);
23246 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23247 }
23248 return resultobj;
23249fail:
23250 return NULL;
d1e20054
RD
23251}
23252
23253
0085ce49
RD
23254SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23255 PyObject *resultobj = 0;
23256 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23257 wxBitmap *result = 0 ;
23258 void *argp1 = 0 ;
23259 int res1 = 0 ;
23260 PyObject *swig_obj[1] ;
23261
23262 if (!args) SWIG_fail;
23263 swig_obj[0] = args;
23264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23265 if (!SWIG_IsOK(res1)) {
23266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23267 }
23268 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23269 {
23270 PyThreadState* __tstate = wxPyBeginAllowThreads();
d1e20054 23271 {
0085ce49
RD
23272 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23273 result = (wxBitmap *) &_result_ref;
d1e20054 23274 }
0085ce49
RD
23275 wxPyEndAllowThreads(__tstate);
23276 if (PyErr_Occurred()) SWIG_fail;
23277 }
23278 {
23279 wxBitmap* resultptr = new wxBitmap(*result);
23280 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23281 }
23282 return resultobj;
23283fail:
23284 return NULL;
d1e20054
RD
23285}
23286
23287
0085ce49
RD
23288SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23289 PyObject *resultobj = 0;
23290 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23291 wxBitmap result;
23292 void *argp1 = 0 ;
23293 int res1 = 0 ;
23294 PyObject *swig_obj[1] ;
23295
23296 if (!args) SWIG_fail;
23297 swig_obj[0] = args;
23298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23299 if (!SWIG_IsOK(res1)) {
23300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23301 }
23302 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23303 {
23304 PyThreadState* __tstate = wxPyBeginAllowThreads();
23305 result = (arg1)->GetBitmap();
23306 wxPyEndAllowThreads(__tstate);
23307 if (PyErr_Occurred()) SWIG_fail;
23308 }
23309 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23310 return resultobj;
23311fail:
23312 return NULL;
b2dc1044
RD
23313}
23314
23315
0085ce49
RD
23316SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23317 PyObject *resultobj = 0;
23318 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23319 wxString result;
23320 void *argp1 = 0 ;
23321 int res1 = 0 ;
23322 PyObject *swig_obj[1] ;
23323
23324 if (!args) SWIG_fail;
23325 swig_obj[0] = args;
23326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23327 if (!SWIG_IsOK(res1)) {
23328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23329 }
23330 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23331 {
23332 PyThreadState* __tstate = wxPyBeginAllowThreads();
23333 result = (arg1)->GetLabel();
23334 wxPyEndAllowThreads(__tstate);
23335 if (PyErr_Occurred()) SWIG_fail;
23336 }
23337 {
b2dc1044 23338#if wxUSE_UNICODE
0085ce49 23339 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 23340#else
0085ce49 23341 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 23342#endif
0085ce49
RD
23343 }
23344 return resultobj;
23345fail:
23346 return NULL;
b2dc1044
RD
23347}
23348
23349
0085ce49
RD
23350SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23351 PyObject *resultobj = 0;
23352 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23353 wxString result;
23354 void *argp1 = 0 ;
23355 int res1 = 0 ;
23356 PyObject *swig_obj[1] ;
23357
23358 if (!args) SWIG_fail;
23359 swig_obj[0] = args;
23360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23361 if (!SWIG_IsOK(res1)) {
23362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23363 }
23364 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23365 {
23366 PyThreadState* __tstate = wxPyBeginAllowThreads();
23367 result = (arg1)->GetShortHelp();
23368 wxPyEndAllowThreads(__tstate);
23369 if (PyErr_Occurred()) SWIG_fail;
23370 }
23371 {
b2dc1044 23372#if wxUSE_UNICODE
0085ce49 23373 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
b2dc1044 23374#else
0085ce49 23375 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
b2dc1044 23376#endif
0085ce49
RD
23377 }
23378 return resultobj;
23379fail:
23380 return NULL;
d14a1e28
RD
23381}
23382
23383
0085ce49
RD
23384SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23385 PyObject *resultobj = 0;
23386 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23387 wxString result;
23388 void *argp1 = 0 ;
23389 int res1 = 0 ;
23390 PyObject *swig_obj[1] ;
23391
23392 if (!args) SWIG_fail;
23393 swig_obj[0] = args;
23394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23395 if (!SWIG_IsOK(res1)) {
23396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23397 }
23398 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23399 {
23400 PyThreadState* __tstate = wxPyBeginAllowThreads();
23401 result = (arg1)->GetLongHelp();
23402 wxPyEndAllowThreads(__tstate);
23403 if (PyErr_Occurred()) SWIG_fail;
23404 }
23405 {
23406#if wxUSE_UNICODE
23407 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23408#else
23409 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23410#endif
23411 }
23412 return resultobj;
23413fail:
23414 return NULL;
23415}
23416
23417
23418SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23419 PyObject *resultobj = 0;
23420 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23421 bool arg2 ;
23422 bool result;
23423 void *argp1 = 0 ;
23424 int res1 = 0 ;
23425 bool val2 ;
23426 int ecode2 = 0 ;
23427 PyObject * obj0 = 0 ;
23428 PyObject * obj1 = 0 ;
23429 char * kwnames[] = {
23430 (char *) "self",(char *) "enable", NULL
23431 };
23432
23433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23435 if (!SWIG_IsOK(res1)) {
23436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23437 }
23438 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23439 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23440 if (!SWIG_IsOK(ecode2)) {
23441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23442 }
23443 arg2 = static_cast< bool >(val2);
23444 {
23445 PyThreadState* __tstate = wxPyBeginAllowThreads();
23446 result = (bool)(arg1)->Enable(arg2);
23447 wxPyEndAllowThreads(__tstate);
23448 if (PyErr_Occurred()) SWIG_fail;
23449 }
23450 {
23451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23452 }
23453 return resultobj;
23454fail:
23455 return NULL;
d14a1e28
RD
23456}
23457
23458
0085ce49
RD
23459SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23460 PyObject *resultobj = 0;
23461 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23462 void *argp1 = 0 ;
23463 int res1 = 0 ;
23464 PyObject *swig_obj[1] ;
23465
23466 if (!args) SWIG_fail;
23467 swig_obj[0] = args;
23468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23469 if (!SWIG_IsOK(res1)) {
23470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23471 }
23472 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23473 {
23474 PyThreadState* __tstate = wxPyBeginAllowThreads();
23475 (arg1)->Toggle();
23476 wxPyEndAllowThreads(__tstate);
23477 if (PyErr_Occurred()) SWIG_fail;
23478 }
23479 resultobj = SWIG_Py_Void();
23480 return resultobj;
23481fail:
23482 return NULL;
23483}
23484
23485
23486SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23487 PyObject *resultobj = 0;
23488 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23489 bool arg2 ;
23490 bool result;
23491 void *argp1 = 0 ;
23492 int res1 = 0 ;
23493 bool val2 ;
23494 int ecode2 = 0 ;
23495 PyObject * obj0 = 0 ;
23496 PyObject * obj1 = 0 ;
23497 char * kwnames[] = {
23498 (char *) "self",(char *) "toggle", NULL
23499 };
23500
23501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23503 if (!SWIG_IsOK(res1)) {
23504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23505 }
23506 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23507 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23508 if (!SWIG_IsOK(ecode2)) {
23509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23510 }
23511 arg2 = static_cast< bool >(val2);
23512 {
23513 PyThreadState* __tstate = wxPyBeginAllowThreads();
23514 result = (bool)(arg1)->SetToggle(arg2);
23515 wxPyEndAllowThreads(__tstate);
23516 if (PyErr_Occurred()) SWIG_fail;
23517 }
23518 {
23519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23520 }
23521 return resultobj;
23522fail:
23523 return NULL;
23524}
23525
23526
23527SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23528 PyObject *resultobj = 0;
23529 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23530 wxString *arg2 = 0 ;
23531 bool result;
23532 void *argp1 = 0 ;
23533 int res1 = 0 ;
23534 bool temp2 = false ;
23535 PyObject * obj0 = 0 ;
23536 PyObject * obj1 = 0 ;
23537 char * kwnames[] = {
23538 (char *) "self",(char *) "help", NULL
23539 };
23540
23541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23543 if (!SWIG_IsOK(res1)) {
23544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23545 }
23546 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23547 {
23548 arg2 = wxString_in_helper(obj1);
23549 if (arg2 == NULL) SWIG_fail;
23550 temp2 = true;
23551 }
23552 {
23553 PyThreadState* __tstate = wxPyBeginAllowThreads();
23554 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23555 wxPyEndAllowThreads(__tstate);
23556 if (PyErr_Occurred()) SWIG_fail;
23557 }
23558 {
23559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23560 }
23561 {
23562 if (temp2)
23563 delete arg2;
23564 }
23565 return resultobj;
23566fail:
23567 {
23568 if (temp2)
23569 delete arg2;
23570 }
23571 return NULL;
23572}
23573
23574
23575SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23576 PyObject *resultobj = 0;
23577 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23578 wxString *arg2 = 0 ;
23579 bool result;
23580 void *argp1 = 0 ;
23581 int res1 = 0 ;
23582 bool temp2 = false ;
23583 PyObject * obj0 = 0 ;
23584 PyObject * obj1 = 0 ;
23585 char * kwnames[] = {
23586 (char *) "self",(char *) "help", NULL
23587 };
23588
23589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23591 if (!SWIG_IsOK(res1)) {
23592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23593 }
23594 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23595 {
23596 arg2 = wxString_in_helper(obj1);
23597 if (arg2 == NULL) SWIG_fail;
23598 temp2 = true;
23599 }
23600 {
23601 PyThreadState* __tstate = wxPyBeginAllowThreads();
23602 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23603 wxPyEndAllowThreads(__tstate);
23604 if (PyErr_Occurred()) SWIG_fail;
23605 }
23606 {
23607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23608 }
23609 {
23610 if (temp2)
23611 delete arg2;
23612 }
23613 return resultobj;
23614fail:
23615 {
23616 if (temp2)
23617 delete arg2;
23618 }
23619 return NULL;
23620}
23621
23622
23623SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23624 PyObject *resultobj = 0;
23625 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23626 wxBitmap *arg2 = 0 ;
23627 void *argp1 = 0 ;
23628 int res1 = 0 ;
23629 void *argp2 = 0 ;
23630 int res2 = 0 ;
23631 PyObject * obj0 = 0 ;
23632 PyObject * obj1 = 0 ;
23633 char * kwnames[] = {
23634 (char *) "self",(char *) "bmp", NULL
23635 };
23636
23637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23639 if (!SWIG_IsOK(res1)) {
23640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23641 }
23642 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23643 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23644 if (!SWIG_IsOK(res2)) {
23645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23646 }
23647 if (!argp2) {
23648 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23649 }
23650 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23651 {
23652 PyThreadState* __tstate = wxPyBeginAllowThreads();
23653 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23654 wxPyEndAllowThreads(__tstate);
23655 if (PyErr_Occurred()) SWIG_fail;
23656 }
23657 resultobj = SWIG_Py_Void();
23658 return resultobj;
23659fail:
23660 return NULL;
23661}
23662
23663
23664SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23665 PyObject *resultobj = 0;
23666 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23667 wxBitmap *arg2 = 0 ;
23668 void *argp1 = 0 ;
23669 int res1 = 0 ;
23670 void *argp2 = 0 ;
23671 int res2 = 0 ;
23672 PyObject * obj0 = 0 ;
23673 PyObject * obj1 = 0 ;
23674 char * kwnames[] = {
23675 (char *) "self",(char *) "bmp", NULL
23676 };
23677
23678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23680 if (!SWIG_IsOK(res1)) {
23681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23682 }
23683 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23685 if (!SWIG_IsOK(res2)) {
23686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23687 }
23688 if (!argp2) {
23689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23690 }
23691 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23692 {
23693 PyThreadState* __tstate = wxPyBeginAllowThreads();
23694 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23695 wxPyEndAllowThreads(__tstate);
23696 if (PyErr_Occurred()) SWIG_fail;
23697 }
23698 resultobj = SWIG_Py_Void();
23699 return resultobj;
23700fail:
23701 return NULL;
23702}
23703
23704
23705SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23706 PyObject *resultobj = 0;
23707 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23708 wxString *arg2 = 0 ;
23709 void *argp1 = 0 ;
23710 int res1 = 0 ;
23711 bool temp2 = false ;
23712 PyObject * obj0 = 0 ;
23713 PyObject * obj1 = 0 ;
23714 char * kwnames[] = {
23715 (char *) "self",(char *) "label", NULL
23716 };
23717
23718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23720 if (!SWIG_IsOK(res1)) {
23721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23722 }
23723 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23724 {
23725 arg2 = wxString_in_helper(obj1);
23726 if (arg2 == NULL) SWIG_fail;
23727 temp2 = true;
23728 }
23729 {
23730 PyThreadState* __tstate = wxPyBeginAllowThreads();
23731 (arg1)->SetLabel((wxString const &)*arg2);
23732 wxPyEndAllowThreads(__tstate);
23733 if (PyErr_Occurred()) SWIG_fail;
23734 }
23735 resultobj = SWIG_Py_Void();
23736 {
23737 if (temp2)
23738 delete arg2;
23739 }
23740 return resultobj;
23741fail:
23742 {
23743 if (temp2)
23744 delete arg2;
23745 }
23746 return NULL;
d14a1e28
RD
23747}
23748
23749
0085ce49
RD
23750SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23751 PyObject *resultobj = 0;
23752 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23753 void *argp1 = 0 ;
23754 int res1 = 0 ;
23755 PyObject *swig_obj[1] ;
23756
23757 if (!args) SWIG_fail;
23758 swig_obj[0] = args;
23759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23760 if (!SWIG_IsOK(res1)) {
23761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23762 }
23763 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23764 {
23765 PyThreadState* __tstate = wxPyBeginAllowThreads();
23766 (arg1)->Detach();
23767 wxPyEndAllowThreads(__tstate);
23768 if (PyErr_Occurred()) SWIG_fail;
23769 }
23770 resultobj = SWIG_Py_Void();
23771 return resultobj;
23772fail:
23773 return NULL;
23774}
23775
23776
23777SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23778 PyObject *resultobj = 0;
23779 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23780 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23781 void *argp1 = 0 ;
23782 int res1 = 0 ;
23783 void *argp2 = 0 ;
23784 int res2 = 0 ;
23785 PyObject * obj0 = 0 ;
23786 PyObject * obj1 = 0 ;
23787 char * kwnames[] = {
23788 (char *) "self",(char *) "tbar", NULL
23789 };
23790
23791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23793 if (!SWIG_IsOK(res1)) {
23794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23795 }
23796 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23797 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23798 if (!SWIG_IsOK(res2)) {
23799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23800 }
23801 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23802 {
23803 PyThreadState* __tstate = wxPyBeginAllowThreads();
23804 (arg1)->Attach(arg2);
23805 wxPyEndAllowThreads(__tstate);
23806 if (PyErr_Occurred()) SWIG_fail;
23807 }
23808 resultobj = SWIG_Py_Void();
23809 return resultobj;
23810fail:
23811 return NULL;
d14a1e28
RD
23812}
23813
23814
0085ce49
RD
23815SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23816 PyObject *resultobj = 0;
23817 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23818 PyObject *result = 0 ;
23819 void *argp1 = 0 ;
23820 int res1 = 0 ;
23821 PyObject *swig_obj[1] ;
23822
23823 if (!args) SWIG_fail;
23824 swig_obj[0] = args;
23825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23826 if (!SWIG_IsOK(res1)) {
23827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23828 }
23829 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23830 {
23831 PyThreadState* __tstate = wxPyBeginAllowThreads();
23832 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23833 wxPyEndAllowThreads(__tstate);
23834 if (PyErr_Occurred()) SWIG_fail;
23835 }
23836 resultobj = result;
23837 return resultobj;
23838fail:
23839 return NULL;
23840}
23841
23842
23843SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23844 PyObject *resultobj = 0;
23845 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23846 PyObject *arg2 = (PyObject *) 0 ;
23847 void *argp1 = 0 ;
23848 int res1 = 0 ;
23849 PyObject * obj0 = 0 ;
23850 PyObject * obj1 = 0 ;
23851 char * kwnames[] = {
23852 (char *) "self",(char *) "clientData", NULL
23853 };
23854
23855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23857 if (!SWIG_IsOK(res1)) {
23858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23859 }
23860 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23861 arg2 = obj1;
23862 {
23863 PyThreadState* __tstate = wxPyBeginAllowThreads();
23864 wxToolBarToolBase_SetClientData(arg1,arg2);
23865 wxPyEndAllowThreads(__tstate);
23866 if (PyErr_Occurred()) SWIG_fail;
23867 }
23868 resultobj = SWIG_Py_Void();
23869 return resultobj;
23870fail:
23871 return NULL;
23872}
23873
23874
23875SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23876 PyObject *obj;
23877 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23878 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23879 return SWIG_Py_Void();
23880}
23881
23882SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23883 PyObject *resultobj = 0;
23884 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23885 int arg2 ;
23886 wxString *arg3 = 0 ;
23887 wxBitmap *arg4 = 0 ;
23888 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23889 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23890 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23891 wxString const &arg7_defvalue = wxPyEmptyString ;
23892 wxString *arg7 = (wxString *) &arg7_defvalue ;
23893 wxString const &arg8_defvalue = wxPyEmptyString ;
23894 wxString *arg8 = (wxString *) &arg8_defvalue ;
23895 PyObject *arg9 = (PyObject *) NULL ;
23896 wxToolBarToolBase *result = 0 ;
23897 void *argp1 = 0 ;
23898 int res1 = 0 ;
23899 int val2 ;
23900 int ecode2 = 0 ;
23901 bool temp3 = false ;
23902 void *argp4 = 0 ;
23903 int res4 = 0 ;
23904 void *argp5 = 0 ;
23905 int res5 = 0 ;
23906 int val6 ;
23907 int ecode6 = 0 ;
23908 bool temp7 = false ;
23909 bool temp8 = false ;
23910 PyObject * obj0 = 0 ;
23911 PyObject * obj1 = 0 ;
23912 PyObject * obj2 = 0 ;
23913 PyObject * obj3 = 0 ;
23914 PyObject * obj4 = 0 ;
23915 PyObject * obj5 = 0 ;
23916 PyObject * obj6 = 0 ;
23917 PyObject * obj7 = 0 ;
23918 PyObject * obj8 = 0 ;
23919 char * kwnames[] = {
23920 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23921 };
23922
23923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23925 if (!SWIG_IsOK(res1)) {
23926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23927 }
23928 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23929 ecode2 = SWIG_AsVal_int(obj1, &val2);
23930 if (!SWIG_IsOK(ecode2)) {
23931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23932 }
23933 arg2 = static_cast< int >(val2);
23934 {
23935 arg3 = wxString_in_helper(obj2);
23936 if (arg3 == NULL) SWIG_fail;
23937 temp3 = true;
23938 }
23939 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23940 if (!SWIG_IsOK(res4)) {
23941 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23942 }
23943 if (!argp4) {
23944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23945 }
23946 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23947 if (obj4) {
23948 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23949 if (!SWIG_IsOK(res5)) {
23950 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23951 }
0085ce49
RD
23952 if (!argp5) {
23953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
d14a1e28 23954 }
0085ce49
RD
23955 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23956 }
23957 if (obj5) {
23958 ecode6 = SWIG_AsVal_int(obj5, &val6);
23959 if (!SWIG_IsOK(ecode6)) {
23960 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23961 }
23962 arg6 = static_cast< wxItemKind >(val6);
23963 }
23964 if (obj6) {
093d3ff1 23965 {
0085ce49
RD
23966 arg7 = wxString_in_helper(obj6);
23967 if (arg7 == NULL) SWIG_fail;
23968 temp7 = true;
093d3ff1 23969 }
0085ce49
RD
23970 }
23971 if (obj7) {
d14a1e28 23972 {
0085ce49
RD
23973 arg8 = wxString_in_helper(obj7);
23974 if (arg8 == NULL) SWIG_fail;
23975 temp8 = true;
d14a1e28 23976 }
0085ce49
RD
23977 }
23978 if (obj8) {
23979 arg9 = obj8;
23980 }
23981 {
23982 PyThreadState* __tstate = wxPyBeginAllowThreads();
23983 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23984 wxPyEndAllowThreads(__tstate);
23985 if (PyErr_Occurred()) SWIG_fail;
23986 }
23987 {
23988 resultobj = wxPyMake_wxObject(result, (bool)0);
23989 }
23990 {
23991 if (temp3)
23992 delete arg3;
23993 }
23994 {
23995 if (temp7)
23996 delete arg7;
23997 }
23998 {
23999 if (temp8)
24000 delete arg8;
24001 }
24002 return resultobj;
24003fail:
24004 {
24005 if (temp3)
24006 delete arg3;
24007 }
24008 {
24009 if (temp7)
24010 delete arg7;
24011 }
24012 {
24013 if (temp8)
24014 delete arg8;
24015 }
24016 return NULL;
24017}
24018
24019
24020SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24021 PyObject *resultobj = 0;
24022 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24023 size_t arg2 ;
24024 int arg3 ;
24025 wxString *arg4 = 0 ;
24026 wxBitmap *arg5 = 0 ;
24027 wxBitmap const &arg6_defvalue = wxNullBitmap ;
24028 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
24029 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
24030 wxString const &arg8_defvalue = wxPyEmptyString ;
24031 wxString *arg8 = (wxString *) &arg8_defvalue ;
24032 wxString const &arg9_defvalue = wxPyEmptyString ;
24033 wxString *arg9 = (wxString *) &arg9_defvalue ;
24034 PyObject *arg10 = (PyObject *) NULL ;
24035 wxToolBarToolBase *result = 0 ;
24036 void *argp1 = 0 ;
24037 int res1 = 0 ;
24038 size_t val2 ;
24039 int ecode2 = 0 ;
24040 int val3 ;
24041 int ecode3 = 0 ;
24042 bool temp4 = false ;
24043 void *argp5 = 0 ;
24044 int res5 = 0 ;
24045 void *argp6 = 0 ;
24046 int res6 = 0 ;
24047 int val7 ;
24048 int ecode7 = 0 ;
24049 bool temp8 = false ;
24050 bool temp9 = false ;
24051 PyObject * obj0 = 0 ;
24052 PyObject * obj1 = 0 ;
24053 PyObject * obj2 = 0 ;
24054 PyObject * obj3 = 0 ;
24055 PyObject * obj4 = 0 ;
24056 PyObject * obj5 = 0 ;
24057 PyObject * obj6 = 0 ;
24058 PyObject * obj7 = 0 ;
24059 PyObject * obj8 = 0 ;
24060 PyObject * obj9 = 0 ;
24061 char * kwnames[] = {
24062 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24063 };
24064
24065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
24066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24067 if (!SWIG_IsOK(res1)) {
24068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24069 }
24070 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24071 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24072 if (!SWIG_IsOK(ecode2)) {
24073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24074 }
24075 arg2 = static_cast< size_t >(val2);
24076 ecode3 = SWIG_AsVal_int(obj2, &val3);
24077 if (!SWIG_IsOK(ecode3)) {
24078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24079 }
24080 arg3 = static_cast< int >(val3);
24081 {
24082 arg4 = wxString_in_helper(obj3);
24083 if (arg4 == NULL) SWIG_fail;
24084 temp4 = true;
24085 }
24086 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24087 if (!SWIG_IsOK(res5)) {
24088 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24089 }
24090 if (!argp5) {
24091 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24092 }
24093 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24094 if (obj5) {
24095 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24096 if (!SWIG_IsOK(res6)) {
24097 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d14a1e28 24098 }
0085ce49
RD
24099 if (!argp6) {
24100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
093d3ff1 24101 }
0085ce49
RD
24102 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24103 }
24104 if (obj6) {
24105 ecode7 = SWIG_AsVal_int(obj6, &val7);
24106 if (!SWIG_IsOK(ecode7)) {
24107 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24108 }
24109 arg7 = static_cast< wxItemKind >(val7);
24110 }
24111 if (obj7) {
d14a1e28 24112 {
0085ce49
RD
24113 arg8 = wxString_in_helper(obj7);
24114 if (arg8 == NULL) SWIG_fail;
24115 temp8 = true;
d14a1e28 24116 }
0085ce49
RD
24117 }
24118 if (obj8) {
d14a1e28 24119 {
0085ce49
RD
24120 arg9 = wxString_in_helper(obj8);
24121 if (arg9 == NULL) SWIG_fail;
24122 temp9 = true;
d14a1e28 24123 }
0085ce49
RD
24124 }
24125 if (obj9) {
24126 arg10 = obj9;
24127 }
24128 {
24129 PyThreadState* __tstate = wxPyBeginAllowThreads();
24130 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24131 wxPyEndAllowThreads(__tstate);
24132 if (PyErr_Occurred()) SWIG_fail;
24133 }
24134 {
24135 resultobj = wxPyMake_wxObject(result, (bool)0);
24136 }
24137 {
24138 if (temp4)
24139 delete arg4;
24140 }
24141 {
24142 if (temp8)
24143 delete arg8;
24144 }
24145 {
24146 if (temp9)
24147 delete arg9;
24148 }
24149 return resultobj;
24150fail:
24151 {
24152 if (temp4)
24153 delete arg4;
24154 }
24155 {
24156 if (temp8)
24157 delete arg8;
24158 }
24159 {
24160 if (temp9)
24161 delete arg9;
24162 }
24163 return NULL;
24164}
24165
24166
24167SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24168 PyObject *resultobj = 0;
24169 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24170 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24171 wxToolBarToolBase *result = 0 ;
24172 void *argp1 = 0 ;
24173 int res1 = 0 ;
24174 void *argp2 = 0 ;
24175 int res2 = 0 ;
24176 PyObject * obj0 = 0 ;
24177 PyObject * obj1 = 0 ;
24178 char * kwnames[] = {
24179 (char *) "self",(char *) "tool", NULL
24180 };
24181
24182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24184 if (!SWIG_IsOK(res1)) {
24185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24186 }
24187 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24188 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24189 if (!SWIG_IsOK(res2)) {
24190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24191 }
24192 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24193 {
24194 PyThreadState* __tstate = wxPyBeginAllowThreads();
24195 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24196 wxPyEndAllowThreads(__tstate);
24197 if (PyErr_Occurred()) SWIG_fail;
24198 }
24199 {
24200 resultobj = wxPyMake_wxObject(result, (bool)0);
24201 }
24202 return resultobj;
24203fail:
24204 return NULL;
24205}
24206
24207
24208SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24209 PyObject *resultobj = 0;
24210 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24211 size_t arg2 ;
24212 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24213 wxToolBarToolBase *result = 0 ;
24214 void *argp1 = 0 ;
24215 int res1 = 0 ;
24216 size_t val2 ;
24217 int ecode2 = 0 ;
24218 void *argp3 = 0 ;
24219 int res3 = 0 ;
24220 PyObject * obj0 = 0 ;
24221 PyObject * obj1 = 0 ;
24222 PyObject * obj2 = 0 ;
24223 char * kwnames[] = {
24224 (char *) "self",(char *) "pos",(char *) "tool", NULL
24225 };
24226
24227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24229 if (!SWIG_IsOK(res1)) {
24230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24231 }
24232 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24233 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24234 if (!SWIG_IsOK(ecode2)) {
24235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24236 }
24237 arg2 = static_cast< size_t >(val2);
24238 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24239 if (!SWIG_IsOK(res3)) {
24240 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24241 }
24242 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24243 {
24244 PyThreadState* __tstate = wxPyBeginAllowThreads();
24245 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24246 wxPyEndAllowThreads(__tstate);
24247 if (PyErr_Occurred()) SWIG_fail;
24248 }
24249 {
24250 resultobj = wxPyMake_wxObject(result, (bool)0);
24251 }
24252 return resultobj;
24253fail:
24254 return NULL;
24255}
24256
24257
24258SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24259 PyObject *resultobj = 0;
24260 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24261 wxControl *arg2 = (wxControl *) 0 ;
24262 wxToolBarToolBase *result = 0 ;
24263 void *argp1 = 0 ;
24264 int res1 = 0 ;
24265 void *argp2 = 0 ;
24266 int res2 = 0 ;
24267 PyObject * obj0 = 0 ;
24268 PyObject * obj1 = 0 ;
24269 char * kwnames[] = {
24270 (char *) "self",(char *) "control", NULL
24271 };
24272
24273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24275 if (!SWIG_IsOK(res1)) {
24276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24277 }
24278 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24279 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24280 if (!SWIG_IsOK(res2)) {
24281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24282 }
24283 arg2 = reinterpret_cast< wxControl * >(argp2);
24284 {
24285 PyThreadState* __tstate = wxPyBeginAllowThreads();
24286 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24287 wxPyEndAllowThreads(__tstate);
24288 if (PyErr_Occurred()) SWIG_fail;
24289 }
24290 {
24291 resultobj = wxPyMake_wxObject(result, (bool)0);
24292 }
24293 return resultobj;
24294fail:
24295 return NULL;
24296}
24297
24298
24299SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24300 PyObject *resultobj = 0;
24301 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24302 size_t arg2 ;
24303 wxControl *arg3 = (wxControl *) 0 ;
24304 wxToolBarToolBase *result = 0 ;
24305 void *argp1 = 0 ;
24306 int res1 = 0 ;
24307 size_t val2 ;
24308 int ecode2 = 0 ;
24309 void *argp3 = 0 ;
24310 int res3 = 0 ;
24311 PyObject * obj0 = 0 ;
24312 PyObject * obj1 = 0 ;
24313 PyObject * obj2 = 0 ;
24314 char * kwnames[] = {
24315 (char *) "self",(char *) "pos",(char *) "control", NULL
24316 };
24317
24318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24320 if (!SWIG_IsOK(res1)) {
24321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24322 }
24323 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24324 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24325 if (!SWIG_IsOK(ecode2)) {
24326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24327 }
24328 arg2 = static_cast< size_t >(val2);
24329 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24330 if (!SWIG_IsOK(res3)) {
24331 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24332 }
24333 arg3 = reinterpret_cast< wxControl * >(argp3);
24334 {
24335 PyThreadState* __tstate = wxPyBeginAllowThreads();
24336 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24337 wxPyEndAllowThreads(__tstate);
24338 if (PyErr_Occurred()) SWIG_fail;
24339 }
24340 {
24341 resultobj = wxPyMake_wxObject(result, (bool)0);
24342 }
24343 return resultobj;
24344fail:
24345 return NULL;
24346}
24347
24348
24349SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24350 PyObject *resultobj = 0;
24351 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24352 int arg2 ;
24353 wxControl *result = 0 ;
24354 void *argp1 = 0 ;
24355 int res1 = 0 ;
24356 int val2 ;
24357 int ecode2 = 0 ;
24358 PyObject * obj0 = 0 ;
24359 PyObject * obj1 = 0 ;
24360 char * kwnames[] = {
24361 (char *) "self",(char *) "id", NULL
24362 };
24363
24364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24366 if (!SWIG_IsOK(res1)) {
24367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24368 }
24369 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24370 ecode2 = SWIG_AsVal_int(obj1, &val2);
24371 if (!SWIG_IsOK(ecode2)) {
24372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24373 }
24374 arg2 = static_cast< int >(val2);
24375 {
24376 PyThreadState* __tstate = wxPyBeginAllowThreads();
24377 result = (wxControl *)(arg1)->FindControl(arg2);
24378 wxPyEndAllowThreads(__tstate);
24379 if (PyErr_Occurred()) SWIG_fail;
24380 }
24381 {
24382 resultobj = wxPyMake_wxObject(result, 0);
24383 }
24384 return resultobj;
24385fail:
24386 return NULL;
d14a1e28
RD
24387}
24388
24389
0085ce49
RD
24390SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24391 PyObject *resultobj = 0;
24392 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24393 wxToolBarToolBase *result = 0 ;
24394 void *argp1 = 0 ;
24395 int res1 = 0 ;
24396 PyObject *swig_obj[1] ;
24397
24398 if (!args) SWIG_fail;
24399 swig_obj[0] = args;
24400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24401 if (!SWIG_IsOK(res1)) {
24402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24403 }
24404 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24405 {
24406 PyThreadState* __tstate = wxPyBeginAllowThreads();
24407 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24408 wxPyEndAllowThreads(__tstate);
24409 if (PyErr_Occurred()) SWIG_fail;
24410 }
24411 {
24412 resultobj = wxPyMake_wxObject(result, (bool)0);
24413 }
24414 return resultobj;
24415fail:
24416 return NULL;
24417}
24418
24419
24420SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24421 PyObject *resultobj = 0;
24422 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24423 size_t arg2 ;
24424 wxToolBarToolBase *result = 0 ;
24425 void *argp1 = 0 ;
24426 int res1 = 0 ;
24427 size_t val2 ;
24428 int ecode2 = 0 ;
24429 PyObject * obj0 = 0 ;
24430 PyObject * obj1 = 0 ;
24431 char * kwnames[] = {
24432 (char *) "self",(char *) "pos", NULL
24433 };
24434
24435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24437 if (!SWIG_IsOK(res1)) {
24438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24439 }
24440 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24441 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24442 if (!SWIG_IsOK(ecode2)) {
24443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24444 }
24445 arg2 = static_cast< size_t >(val2);
24446 {
24447 PyThreadState* __tstate = wxPyBeginAllowThreads();
24448 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24449 wxPyEndAllowThreads(__tstate);
24450 if (PyErr_Occurred()) SWIG_fail;
24451 }
24452 {
24453 resultobj = wxPyMake_wxObject(result, (bool)0);
24454 }
24455 return resultobj;
24456fail:
24457 return NULL;
24458}
24459
24460
24461SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24462 PyObject *resultobj = 0;
24463 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24464 int arg2 ;
24465 wxToolBarToolBase *result = 0 ;
24466 void *argp1 = 0 ;
24467 int res1 = 0 ;
24468 int val2 ;
24469 int ecode2 = 0 ;
24470 PyObject * obj0 = 0 ;
24471 PyObject * obj1 = 0 ;
24472 char * kwnames[] = {
24473 (char *) "self",(char *) "id", NULL
24474 };
24475
24476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24478 if (!SWIG_IsOK(res1)) {
24479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24480 }
24481 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24482 ecode2 = SWIG_AsVal_int(obj1, &val2);
24483 if (!SWIG_IsOK(ecode2)) {
24484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24485 }
24486 arg2 = static_cast< int >(val2);
24487 {
24488 PyThreadState* __tstate = wxPyBeginAllowThreads();
24489 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24490 wxPyEndAllowThreads(__tstate);
24491 if (PyErr_Occurred()) SWIG_fail;
24492 }
24493 {
24494 resultobj = wxPyMake_wxObject(result, (bool)0);
24495 }
24496 return resultobj;
24497fail:
24498 return NULL;
24499}
24500
24501
24502SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24503 PyObject *resultobj = 0;
24504 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24505 size_t arg2 ;
24506 bool result;
24507 void *argp1 = 0 ;
24508 int res1 = 0 ;
24509 size_t val2 ;
24510 int ecode2 = 0 ;
24511 PyObject * obj0 = 0 ;
24512 PyObject * obj1 = 0 ;
24513 char * kwnames[] = {
24514 (char *) "self",(char *) "pos", NULL
24515 };
24516
24517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24519 if (!SWIG_IsOK(res1)) {
24520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24521 }
24522 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24523 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24524 if (!SWIG_IsOK(ecode2)) {
24525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24526 }
24527 arg2 = static_cast< size_t >(val2);
24528 {
24529 PyThreadState* __tstate = wxPyBeginAllowThreads();
24530 result = (bool)(arg1)->DeleteToolByPos(arg2);
24531 wxPyEndAllowThreads(__tstate);
24532 if (PyErr_Occurred()) SWIG_fail;
24533 }
24534 {
24535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24536 }
24537 return resultobj;
24538fail:
24539 return NULL;
24540}
24541
24542
24543SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24544 PyObject *resultobj = 0;
24545 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24546 int arg2 ;
24547 bool result;
24548 void *argp1 = 0 ;
24549 int res1 = 0 ;
24550 int val2 ;
24551 int ecode2 = 0 ;
24552 PyObject * obj0 = 0 ;
24553 PyObject * obj1 = 0 ;
24554 char * kwnames[] = {
24555 (char *) "self",(char *) "id", NULL
24556 };
24557
24558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24560 if (!SWIG_IsOK(res1)) {
24561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24562 }
24563 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24564 ecode2 = SWIG_AsVal_int(obj1, &val2);
24565 if (!SWIG_IsOK(ecode2)) {
24566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24567 }
24568 arg2 = static_cast< int >(val2);
24569 {
24570 PyThreadState* __tstate = wxPyBeginAllowThreads();
24571 result = (bool)(arg1)->DeleteTool(arg2);
24572 wxPyEndAllowThreads(__tstate);
24573 if (PyErr_Occurred()) SWIG_fail;
24574 }
24575 {
24576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24577 }
24578 return resultobj;
24579fail:
24580 return NULL;
d14a1e28
RD
24581}
24582
24583
0085ce49
RD
24584SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24585 PyObject *resultobj = 0;
24586 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24587 void *argp1 = 0 ;
24588 int res1 = 0 ;
24589 PyObject *swig_obj[1] ;
24590
24591 if (!args) SWIG_fail;
24592 swig_obj[0] = args;
24593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24594 if (!SWIG_IsOK(res1)) {
24595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24596 }
24597 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24598 {
24599 PyThreadState* __tstate = wxPyBeginAllowThreads();
24600 (arg1)->ClearTools();
24601 wxPyEndAllowThreads(__tstate);
24602 if (PyErr_Occurred()) SWIG_fail;
24603 }
24604 resultobj = SWIG_Py_Void();
24605 return resultobj;
24606fail:
24607 return NULL;
d14a1e28
RD
24608}
24609
24610
0085ce49
RD
24611SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24612 PyObject *resultobj = 0;
24613 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24614 bool result;
24615 void *argp1 = 0 ;
24616 int res1 = 0 ;
24617 PyObject *swig_obj[1] ;
24618
24619 if (!args) SWIG_fail;
24620 swig_obj[0] = args;
24621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24622 if (!SWIG_IsOK(res1)) {
24623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24624 }
24625 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24626 {
24627 PyThreadState* __tstate = wxPyBeginAllowThreads();
24628 result = (bool)(arg1)->Realize();
24629 wxPyEndAllowThreads(__tstate);
24630 if (PyErr_Occurred()) SWIG_fail;
24631 }
24632 {
24633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24634 }
24635 return resultobj;
24636fail:
24637 return NULL;
24638}
24639
24640
24641SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24642 PyObject *resultobj = 0;
24643 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24644 int arg2 ;
24645 bool arg3 ;
24646 void *argp1 = 0 ;
24647 int res1 = 0 ;
24648 int val2 ;
24649 int ecode2 = 0 ;
24650 bool val3 ;
24651 int ecode3 = 0 ;
24652 PyObject * obj0 = 0 ;
24653 PyObject * obj1 = 0 ;
24654 PyObject * obj2 = 0 ;
24655 char * kwnames[] = {
24656 (char *) "self",(char *) "id",(char *) "enable", NULL
24657 };
24658
24659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24661 if (!SWIG_IsOK(res1)) {
24662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24663 }
24664 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24665 ecode2 = SWIG_AsVal_int(obj1, &val2);
24666 if (!SWIG_IsOK(ecode2)) {
24667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24668 }
24669 arg2 = static_cast< int >(val2);
24670 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24671 if (!SWIG_IsOK(ecode3)) {
24672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24673 }
24674 arg3 = static_cast< bool >(val3);
24675 {
24676 PyThreadState* __tstate = wxPyBeginAllowThreads();
24677 (arg1)->EnableTool(arg2,arg3);
24678 wxPyEndAllowThreads(__tstate);
24679 if (PyErr_Occurred()) SWIG_fail;
24680 }
24681 resultobj = SWIG_Py_Void();
24682 return resultobj;
24683fail:
24684 return NULL;
24685}
24686
24687
24688SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24689 PyObject *resultobj = 0;
24690 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24691 int arg2 ;
24692 bool arg3 ;
24693 void *argp1 = 0 ;
24694 int res1 = 0 ;
24695 int val2 ;
24696 int ecode2 = 0 ;
24697 bool val3 ;
24698 int ecode3 = 0 ;
24699 PyObject * obj0 = 0 ;
24700 PyObject * obj1 = 0 ;
24701 PyObject * obj2 = 0 ;
24702 char * kwnames[] = {
24703 (char *) "self",(char *) "id",(char *) "toggle", NULL
24704 };
24705
24706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24708 if (!SWIG_IsOK(res1)) {
24709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24710 }
24711 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24712 ecode2 = SWIG_AsVal_int(obj1, &val2);
24713 if (!SWIG_IsOK(ecode2)) {
24714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24715 }
24716 arg2 = static_cast< int >(val2);
24717 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24718 if (!SWIG_IsOK(ecode3)) {
24719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24720 }
24721 arg3 = static_cast< bool >(val3);
24722 {
24723 PyThreadState* __tstate = wxPyBeginAllowThreads();
24724 (arg1)->ToggleTool(arg2,arg3);
24725 wxPyEndAllowThreads(__tstate);
24726 if (PyErr_Occurred()) SWIG_fail;
24727 }
24728 resultobj = SWIG_Py_Void();
24729 return resultobj;
24730fail:
24731 return NULL;
24732}
24733
24734
24735SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24736 PyObject *resultobj = 0;
24737 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24738 int arg2 ;
24739 bool arg3 ;
24740 void *argp1 = 0 ;
24741 int res1 = 0 ;
24742 int val2 ;
24743 int ecode2 = 0 ;
24744 bool val3 ;
24745 int ecode3 = 0 ;
24746 PyObject * obj0 = 0 ;
24747 PyObject * obj1 = 0 ;
24748 PyObject * obj2 = 0 ;
24749 char * kwnames[] = {
24750 (char *) "self",(char *) "id",(char *) "toggle", NULL
24751 };
24752
24753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24755 if (!SWIG_IsOK(res1)) {
24756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24757 }
24758 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24759 ecode2 = SWIG_AsVal_int(obj1, &val2);
24760 if (!SWIG_IsOK(ecode2)) {
24761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24762 }
24763 arg2 = static_cast< int >(val2);
24764 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24765 if (!SWIG_IsOK(ecode3)) {
24766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24767 }
24768 arg3 = static_cast< bool >(val3);
24769 {
24770 PyThreadState* __tstate = wxPyBeginAllowThreads();
24771 (arg1)->SetToggle(arg2,arg3);
24772 wxPyEndAllowThreads(__tstate);
24773 if (PyErr_Occurred()) SWIG_fail;
24774 }
24775 resultobj = SWIG_Py_Void();
24776 return resultobj;
24777fail:
24778 return NULL;
24779}
24780
24781
24782SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24783 PyObject *resultobj = 0;
24784 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24785 int arg2 ;
24786 PyObject *result = 0 ;
24787 void *argp1 = 0 ;
24788 int res1 = 0 ;
24789 int val2 ;
24790 int ecode2 = 0 ;
24791 PyObject * obj0 = 0 ;
24792 PyObject * obj1 = 0 ;
24793 char * kwnames[] = {
24794 (char *) "self",(char *) "id", NULL
24795 };
24796
24797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24799 if (!SWIG_IsOK(res1)) {
24800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24801 }
24802 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24803 ecode2 = SWIG_AsVal_int(obj1, &val2);
24804 if (!SWIG_IsOK(ecode2)) {
24805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24806 }
24807 arg2 = static_cast< int >(val2);
24808 {
24809 PyThreadState* __tstate = wxPyBeginAllowThreads();
24810 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24811 wxPyEndAllowThreads(__tstate);
24812 if (PyErr_Occurred()) SWIG_fail;
24813 }
24814 resultobj = result;
24815 return resultobj;
24816fail:
24817 return NULL;
24818}
24819
24820
24821SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24822 PyObject *resultobj = 0;
24823 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24824 int arg2 ;
24825 PyObject *arg3 = (PyObject *) 0 ;
24826 void *argp1 = 0 ;
24827 int res1 = 0 ;
24828 int val2 ;
24829 int ecode2 = 0 ;
24830 PyObject * obj0 = 0 ;
24831 PyObject * obj1 = 0 ;
24832 PyObject * obj2 = 0 ;
24833 char * kwnames[] = {
24834 (char *) "self",(char *) "id",(char *) "clientData", NULL
24835 };
24836
24837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24839 if (!SWIG_IsOK(res1)) {
24840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24841 }
24842 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24843 ecode2 = SWIG_AsVal_int(obj1, &val2);
24844 if (!SWIG_IsOK(ecode2)) {
24845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24846 }
24847 arg2 = static_cast< int >(val2);
24848 arg3 = obj2;
24849 {
24850 PyThreadState* __tstate = wxPyBeginAllowThreads();
24851 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24852 wxPyEndAllowThreads(__tstate);
24853 if (PyErr_Occurred()) SWIG_fail;
24854 }
24855 resultobj = SWIG_Py_Void();
24856 return resultobj;
24857fail:
24858 return NULL;
24859}
24860
24861
24862SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24863 PyObject *resultobj = 0;
24864 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24865 int arg2 ;
24866 int result;
24867 void *argp1 = 0 ;
24868 int res1 = 0 ;
24869 int val2 ;
24870 int ecode2 = 0 ;
24871 PyObject * obj0 = 0 ;
24872 PyObject * obj1 = 0 ;
24873 char * kwnames[] = {
24874 (char *) "self",(char *) "id", NULL
24875 };
24876
24877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24879 if (!SWIG_IsOK(res1)) {
24880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24881 }
24882 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24883 ecode2 = SWIG_AsVal_int(obj1, &val2);
24884 if (!SWIG_IsOK(ecode2)) {
24885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24886 }
24887 arg2 = static_cast< int >(val2);
24888 {
24889 PyThreadState* __tstate = wxPyBeginAllowThreads();
24890 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24891 wxPyEndAllowThreads(__tstate);
24892 if (PyErr_Occurred()) SWIG_fail;
24893 }
24894 resultobj = SWIG_From_int(static_cast< int >(result));
24895 return resultobj;
24896fail:
24897 return NULL;
24898}
24899
24900
24901SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24902 PyObject *resultobj = 0;
24903 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24904 int arg2 ;
24905 bool result;
24906 void *argp1 = 0 ;
24907 int res1 = 0 ;
24908 int val2 ;
24909 int ecode2 = 0 ;
24910 PyObject * obj0 = 0 ;
24911 PyObject * obj1 = 0 ;
24912 char * kwnames[] = {
24913 (char *) "self",(char *) "id", NULL
24914 };
24915
24916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24918 if (!SWIG_IsOK(res1)) {
24919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24920 }
24921 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24922 ecode2 = SWIG_AsVal_int(obj1, &val2);
24923 if (!SWIG_IsOK(ecode2)) {
24924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24925 }
24926 arg2 = static_cast< int >(val2);
24927 {
24928 PyThreadState* __tstate = wxPyBeginAllowThreads();
24929 result = (bool)(arg1)->GetToolState(arg2);
24930 wxPyEndAllowThreads(__tstate);
24931 if (PyErr_Occurred()) SWIG_fail;
24932 }
24933 {
24934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24935 }
24936 return resultobj;
24937fail:
24938 return NULL;
24939}
24940
24941
24942SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24943 PyObject *resultobj = 0;
24944 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24945 int arg2 ;
24946 bool result;
24947 void *argp1 = 0 ;
24948 int res1 = 0 ;
24949 int val2 ;
24950 int ecode2 = 0 ;
24951 PyObject * obj0 = 0 ;
24952 PyObject * obj1 = 0 ;
24953 char * kwnames[] = {
24954 (char *) "self",(char *) "id", NULL
24955 };
24956
24957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24959 if (!SWIG_IsOK(res1)) {
24960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24961 }
24962 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24963 ecode2 = SWIG_AsVal_int(obj1, &val2);
24964 if (!SWIG_IsOK(ecode2)) {
24965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24966 }
24967 arg2 = static_cast< int >(val2);
24968 {
24969 PyThreadState* __tstate = wxPyBeginAllowThreads();
24970 result = (bool)(arg1)->GetToolEnabled(arg2);
24971 wxPyEndAllowThreads(__tstate);
24972 if (PyErr_Occurred()) SWIG_fail;
24973 }
24974 {
24975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24976 }
24977 return resultobj;
24978fail:
24979 return NULL;
24980}
24981
24982
24983SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24984 PyObject *resultobj = 0;
24985 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24986 int arg2 ;
24987 wxString *arg3 = 0 ;
24988 void *argp1 = 0 ;
24989 int res1 = 0 ;
24990 int val2 ;
24991 int ecode2 = 0 ;
24992 bool temp3 = false ;
24993 PyObject * obj0 = 0 ;
24994 PyObject * obj1 = 0 ;
24995 PyObject * obj2 = 0 ;
24996 char * kwnames[] = {
24997 (char *) "self",(char *) "id",(char *) "helpString", NULL
24998 };
24999
25000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25002 if (!SWIG_IsOK(res1)) {
25003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25004 }
25005 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25006 ecode2 = SWIG_AsVal_int(obj1, &val2);
25007 if (!SWIG_IsOK(ecode2)) {
25008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25009 }
25010 arg2 = static_cast< int >(val2);
25011 {
25012 arg3 = wxString_in_helper(obj2);
25013 if (arg3 == NULL) SWIG_fail;
25014 temp3 = true;
25015 }
25016 {
25017 PyThreadState* __tstate = wxPyBeginAllowThreads();
25018 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
25019 wxPyEndAllowThreads(__tstate);
25020 if (PyErr_Occurred()) SWIG_fail;
25021 }
25022 resultobj = SWIG_Py_Void();
25023 {
25024 if (temp3)
25025 delete arg3;
25026 }
25027 return resultobj;
25028fail:
25029 {
25030 if (temp3)
25031 delete arg3;
25032 }
25033 return NULL;
25034}
25035
25036
25037SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25038 PyObject *resultobj = 0;
25039 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25040 int arg2 ;
25041 wxString result;
25042 void *argp1 = 0 ;
25043 int res1 = 0 ;
25044 int val2 ;
25045 int ecode2 = 0 ;
25046 PyObject * obj0 = 0 ;
25047 PyObject * obj1 = 0 ;
25048 char * kwnames[] = {
25049 (char *) "self",(char *) "id", NULL
25050 };
25051
25052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25054 if (!SWIG_IsOK(res1)) {
25055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25056 }
25057 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25058 ecode2 = SWIG_AsVal_int(obj1, &val2);
25059 if (!SWIG_IsOK(ecode2)) {
25060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25061 }
25062 arg2 = static_cast< int >(val2);
25063 {
25064 PyThreadState* __tstate = wxPyBeginAllowThreads();
25065 result = (arg1)->GetToolShortHelp(arg2);
25066 wxPyEndAllowThreads(__tstate);
25067 if (PyErr_Occurred()) SWIG_fail;
25068 }
25069 {
25070#if wxUSE_UNICODE
25071 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25072#else
25073 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25074#endif
25075 }
25076 return resultobj;
25077fail:
25078 return NULL;
25079}
25080
25081
25082SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25083 PyObject *resultobj = 0;
25084 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25085 int arg2 ;
25086 wxString *arg3 = 0 ;
25087 void *argp1 = 0 ;
25088 int res1 = 0 ;
25089 int val2 ;
25090 int ecode2 = 0 ;
25091 bool temp3 = false ;
25092 PyObject * obj0 = 0 ;
25093 PyObject * obj1 = 0 ;
25094 PyObject * obj2 = 0 ;
25095 char * kwnames[] = {
25096 (char *) "self",(char *) "id",(char *) "helpString", NULL
25097 };
25098
25099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25101 if (!SWIG_IsOK(res1)) {
25102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25103 }
25104 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25105 ecode2 = SWIG_AsVal_int(obj1, &val2);
25106 if (!SWIG_IsOK(ecode2)) {
25107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25108 }
25109 arg2 = static_cast< int >(val2);
25110 {
25111 arg3 = wxString_in_helper(obj2);
25112 if (arg3 == NULL) SWIG_fail;
25113 temp3 = true;
25114 }
25115 {
25116 PyThreadState* __tstate = wxPyBeginAllowThreads();
25117 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25118 wxPyEndAllowThreads(__tstate);
25119 if (PyErr_Occurred()) SWIG_fail;
25120 }
25121 resultobj = SWIG_Py_Void();
25122 {
25123 if (temp3)
25124 delete arg3;
25125 }
25126 return resultobj;
25127fail:
25128 {
25129 if (temp3)
25130 delete arg3;
25131 }
25132 return NULL;
25133}
25134
25135
25136SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25137 PyObject *resultobj = 0;
25138 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25139 int arg2 ;
25140 wxString result;
25141 void *argp1 = 0 ;
25142 int res1 = 0 ;
25143 int val2 ;
25144 int ecode2 = 0 ;
25145 PyObject * obj0 = 0 ;
25146 PyObject * obj1 = 0 ;
25147 char * kwnames[] = {
25148 (char *) "self",(char *) "id", NULL
25149 };
25150
25151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25153 if (!SWIG_IsOK(res1)) {
25154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25155 }
25156 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25157 ecode2 = SWIG_AsVal_int(obj1, &val2);
25158 if (!SWIG_IsOK(ecode2)) {
25159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25160 }
25161 arg2 = static_cast< int >(val2);
25162 {
25163 PyThreadState* __tstate = wxPyBeginAllowThreads();
25164 result = (arg1)->GetToolLongHelp(arg2);
25165 wxPyEndAllowThreads(__tstate);
25166 if (PyErr_Occurred()) SWIG_fail;
25167 }
25168 {
25169#if wxUSE_UNICODE
25170 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25171#else
25172 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25173#endif
25174 }
25175 return resultobj;
25176fail:
25177 return NULL;
25178}
25179
25180
25181SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25182 PyObject *resultobj = 0;
25183 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25184 int arg2 ;
25185 int arg3 ;
25186 void *argp1 = 0 ;
25187 int res1 = 0 ;
25188 int val2 ;
25189 int ecode2 = 0 ;
25190 int val3 ;
25191 int ecode3 = 0 ;
25192 PyObject * obj0 = 0 ;
25193 PyObject * obj1 = 0 ;
25194 PyObject * obj2 = 0 ;
25195 char * kwnames[] = {
25196 (char *) "self",(char *) "x",(char *) "y", NULL
25197 };
25198
25199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25201 if (!SWIG_IsOK(res1)) {
25202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25203 }
25204 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25205 ecode2 = SWIG_AsVal_int(obj1, &val2);
25206 if (!SWIG_IsOK(ecode2)) {
25207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25208 }
25209 arg2 = static_cast< int >(val2);
25210 ecode3 = SWIG_AsVal_int(obj2, &val3);
25211 if (!SWIG_IsOK(ecode3)) {
25212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25213 }
25214 arg3 = static_cast< int >(val3);
25215 {
25216 PyThreadState* __tstate = wxPyBeginAllowThreads();
25217 (arg1)->SetMargins(arg2,arg3);
25218 wxPyEndAllowThreads(__tstate);
25219 if (PyErr_Occurred()) SWIG_fail;
25220 }
25221 resultobj = SWIG_Py_Void();
25222 return resultobj;
25223fail:
25224 return NULL;
25225}
25226
25227
25228SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25229 PyObject *resultobj = 0;
25230 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25231 wxSize *arg2 = 0 ;
25232 void *argp1 = 0 ;
25233 int res1 = 0 ;
25234 wxSize temp2 ;
25235 PyObject * obj0 = 0 ;
25236 PyObject * obj1 = 0 ;
25237 char * kwnames[] = {
25238 (char *) "self",(char *) "size", NULL
25239 };
25240
25241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25243 if (!SWIG_IsOK(res1)) {
25244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25245 }
25246 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25247 {
25248 arg2 = &temp2;
25249 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25250 }
25251 {
25252 PyThreadState* __tstate = wxPyBeginAllowThreads();
25253 (arg1)->SetMargins((wxSize const &)*arg2);
25254 wxPyEndAllowThreads(__tstate);
25255 if (PyErr_Occurred()) SWIG_fail;
25256 }
25257 resultobj = SWIG_Py_Void();
25258 return resultobj;
25259fail:
25260 return NULL;
25261}
25262
25263
25264SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25265 PyObject *resultobj = 0;
25266 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25267 int arg2 ;
25268 void *argp1 = 0 ;
25269 int res1 = 0 ;
25270 int val2 ;
25271 int ecode2 = 0 ;
25272 PyObject * obj0 = 0 ;
25273 PyObject * obj1 = 0 ;
25274 char * kwnames[] = {
25275 (char *) "self",(char *) "packing", NULL
25276 };
25277
25278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25280 if (!SWIG_IsOK(res1)) {
25281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25282 }
25283 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25284 ecode2 = SWIG_AsVal_int(obj1, &val2);
25285 if (!SWIG_IsOK(ecode2)) {
25286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25287 }
25288 arg2 = static_cast< int >(val2);
25289 {
25290 PyThreadState* __tstate = wxPyBeginAllowThreads();
25291 (arg1)->SetToolPacking(arg2);
25292 wxPyEndAllowThreads(__tstate);
25293 if (PyErr_Occurred()) SWIG_fail;
25294 }
25295 resultobj = SWIG_Py_Void();
25296 return resultobj;
25297fail:
25298 return NULL;
25299}
25300
25301
25302SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25303 PyObject *resultobj = 0;
25304 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25305 int arg2 ;
25306 void *argp1 = 0 ;
25307 int res1 = 0 ;
25308 int val2 ;
25309 int ecode2 = 0 ;
25310 PyObject * obj0 = 0 ;
25311 PyObject * obj1 = 0 ;
25312 char * kwnames[] = {
25313 (char *) "self",(char *) "separation", NULL
25314 };
25315
25316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25318 if (!SWIG_IsOK(res1)) {
25319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25320 }
25321 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25322 ecode2 = SWIG_AsVal_int(obj1, &val2);
25323 if (!SWIG_IsOK(ecode2)) {
25324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25325 }
25326 arg2 = static_cast< int >(val2);
25327 {
25328 PyThreadState* __tstate = wxPyBeginAllowThreads();
25329 (arg1)->SetToolSeparation(arg2);
25330 wxPyEndAllowThreads(__tstate);
25331 if (PyErr_Occurred()) SWIG_fail;
25332 }
25333 resultobj = SWIG_Py_Void();
25334 return resultobj;
25335fail:
25336 return NULL;
d14a1e28
RD
25337}
25338
25339
0085ce49
RD
25340SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25341 PyObject *resultobj = 0;
25342 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25343 wxSize result;
25344 void *argp1 = 0 ;
25345 int res1 = 0 ;
25346 PyObject *swig_obj[1] ;
25347
25348 if (!args) SWIG_fail;
25349 swig_obj[0] = args;
25350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25351 if (!SWIG_IsOK(res1)) {
25352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25353 }
25354 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25355 {
25356 PyThreadState* __tstate = wxPyBeginAllowThreads();
25357 result = (arg1)->GetToolMargins();
25358 wxPyEndAllowThreads(__tstate);
25359 if (PyErr_Occurred()) SWIG_fail;
25360 }
25361 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25362 return resultobj;
25363fail:
25364 return NULL;
d14a1e28
RD
25365}
25366
25367
0085ce49
RD
25368SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25369 PyObject *resultobj = 0;
25370 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25371 wxSize result;
25372 void *argp1 = 0 ;
25373 int res1 = 0 ;
25374 PyObject *swig_obj[1] ;
25375
25376 if (!args) SWIG_fail;
25377 swig_obj[0] = args;
25378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25379 if (!SWIG_IsOK(res1)) {
25380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25381 }
25382 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25383 {
25384 PyThreadState* __tstate = wxPyBeginAllowThreads();
25385 result = (arg1)->GetMargins();
25386 wxPyEndAllowThreads(__tstate);
25387 if (PyErr_Occurred()) SWIG_fail;
25388 }
25389 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25390 return resultobj;
25391fail:
25392 return NULL;
d14a1e28
RD
25393}
25394
25395
0085ce49
RD
25396SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25397 PyObject *resultobj = 0;
25398 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25399 int result;
25400 void *argp1 = 0 ;
25401 int res1 = 0 ;
25402 PyObject *swig_obj[1] ;
25403
25404 if (!args) SWIG_fail;
25405 swig_obj[0] = args;
25406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25407 if (!SWIG_IsOK(res1)) {
25408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25409 }
25410 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25411 {
25412 PyThreadState* __tstate = wxPyBeginAllowThreads();
25413 result = (int)(arg1)->GetToolPacking();
25414 wxPyEndAllowThreads(__tstate);
25415 if (PyErr_Occurred()) SWIG_fail;
25416 }
25417 resultobj = SWIG_From_int(static_cast< int >(result));
25418 return resultobj;
25419fail:
25420 return NULL;
d14a1e28
RD
25421}
25422
25423
0085ce49
RD
25424SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25425 PyObject *resultobj = 0;
25426 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25427 int result;
25428 void *argp1 = 0 ;
25429 int res1 = 0 ;
25430 PyObject *swig_obj[1] ;
25431
25432 if (!args) SWIG_fail;
25433 swig_obj[0] = args;
25434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25435 if (!SWIG_IsOK(res1)) {
25436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25437 }
25438 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25439 {
25440 PyThreadState* __tstate = wxPyBeginAllowThreads();
25441 result = (int)(arg1)->GetToolSeparation();
25442 wxPyEndAllowThreads(__tstate);
25443 if (PyErr_Occurred()) SWIG_fail;
25444 }
25445 resultobj = SWIG_From_int(static_cast< int >(result));
25446 return resultobj;
25447fail:
25448 return NULL;
25449}
25450
25451
25452SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25453 PyObject *resultobj = 0;
25454 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25455 int arg2 ;
25456 void *argp1 = 0 ;
25457 int res1 = 0 ;
25458 int val2 ;
25459 int ecode2 = 0 ;
25460 PyObject * obj0 = 0 ;
25461 PyObject * obj1 = 0 ;
25462 char * kwnames[] = {
25463 (char *) "self",(char *) "nRows", NULL
25464 };
25465
25466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25468 if (!SWIG_IsOK(res1)) {
25469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25470 }
25471 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25472 ecode2 = SWIG_AsVal_int(obj1, &val2);
25473 if (!SWIG_IsOK(ecode2)) {
25474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25475 }
25476 arg2 = static_cast< int >(val2);
25477 {
25478 PyThreadState* __tstate = wxPyBeginAllowThreads();
25479 (arg1)->SetRows(arg2);
25480 wxPyEndAllowThreads(__tstate);
25481 if (PyErr_Occurred()) SWIG_fail;
25482 }
25483 resultobj = SWIG_Py_Void();
25484 return resultobj;
25485fail:
25486 return NULL;
25487}
25488
25489
25490SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25491 PyObject *resultobj = 0;
25492 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25493 int arg2 ;
25494 int arg3 ;
25495 void *argp1 = 0 ;
25496 int res1 = 0 ;
25497 int val2 ;
25498 int ecode2 = 0 ;
25499 int val3 ;
25500 int ecode3 = 0 ;
25501 PyObject * obj0 = 0 ;
25502 PyObject * obj1 = 0 ;
25503 PyObject * obj2 = 0 ;
25504 char * kwnames[] = {
25505 (char *) "self",(char *) "rows",(char *) "cols", NULL
25506 };
25507
25508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25510 if (!SWIG_IsOK(res1)) {
25511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25512 }
25513 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25514 ecode2 = SWIG_AsVal_int(obj1, &val2);
25515 if (!SWIG_IsOK(ecode2)) {
25516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25517 }
25518 arg2 = static_cast< int >(val2);
25519 ecode3 = SWIG_AsVal_int(obj2, &val3);
25520 if (!SWIG_IsOK(ecode3)) {
25521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25522 }
25523 arg3 = static_cast< int >(val3);
25524 {
25525 PyThreadState* __tstate = wxPyBeginAllowThreads();
25526 (arg1)->SetMaxRowsCols(arg2,arg3);
25527 wxPyEndAllowThreads(__tstate);
25528 if (PyErr_Occurred()) SWIG_fail;
25529 }
25530 resultobj = SWIG_Py_Void();
25531 return resultobj;
25532fail:
25533 return NULL;
22bfe96c
RD
25534}
25535
25536
0085ce49
RD
25537SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25538 PyObject *resultobj = 0;
25539 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25540 int result;
25541 void *argp1 = 0 ;
25542 int res1 = 0 ;
25543 PyObject *swig_obj[1] ;
25544
25545 if (!args) SWIG_fail;
25546 swig_obj[0] = args;
25547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25548 if (!SWIG_IsOK(res1)) {
25549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25550 }
25551 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25552 {
25553 PyThreadState* __tstate = wxPyBeginAllowThreads();
25554 result = (int)(arg1)->GetMaxRows();
25555 wxPyEndAllowThreads(__tstate);
25556 if (PyErr_Occurred()) SWIG_fail;
25557 }
25558 resultobj = SWIG_From_int(static_cast< int >(result));
25559 return resultobj;
25560fail:
25561 return NULL;
d14a1e28
RD
25562}
25563
25564
0085ce49
RD
25565SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25566 PyObject *resultobj = 0;
25567 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25568 int result;
25569 void *argp1 = 0 ;
25570 int res1 = 0 ;
25571 PyObject *swig_obj[1] ;
25572
25573 if (!args) SWIG_fail;
25574 swig_obj[0] = args;
25575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25576 if (!SWIG_IsOK(res1)) {
25577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25578 }
25579 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25580 {
25581 PyThreadState* __tstate = wxPyBeginAllowThreads();
25582 result = (int)(arg1)->GetMaxCols();
25583 wxPyEndAllowThreads(__tstate);
25584 if (PyErr_Occurred()) SWIG_fail;
25585 }
25586 resultobj = SWIG_From_int(static_cast< int >(result));
25587 return resultobj;
25588fail:
25589 return NULL;
25590}
25591
25592
25593SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25594 PyObject *resultobj = 0;
25595 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25596 wxSize *arg2 = 0 ;
25597 void *argp1 = 0 ;
25598 int res1 = 0 ;
25599 wxSize temp2 ;
25600 PyObject * obj0 = 0 ;
25601 PyObject * obj1 = 0 ;
25602 char * kwnames[] = {
25603 (char *) "self",(char *) "size", NULL
25604 };
25605
25606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25608 if (!SWIG_IsOK(res1)) {
25609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25610 }
25611 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25612 {
25613 arg2 = &temp2;
25614 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25615 }
25616 {
25617 PyThreadState* __tstate = wxPyBeginAllowThreads();
25618 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25619 wxPyEndAllowThreads(__tstate);
25620 if (PyErr_Occurred()) SWIG_fail;
25621 }
25622 resultobj = SWIG_Py_Void();
25623 return resultobj;
25624fail:
25625 return NULL;
d14a1e28
RD
25626}
25627
25628
0085ce49
RD
25629SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25630 PyObject *resultobj = 0;
25631 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25632 wxSize result;
25633 void *argp1 = 0 ;
25634 int res1 = 0 ;
25635 PyObject *swig_obj[1] ;
25636
25637 if (!args) SWIG_fail;
25638 swig_obj[0] = args;
25639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25640 if (!SWIG_IsOK(res1)) {
25641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25642 }
25643 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25644 {
25645 PyThreadState* __tstate = wxPyBeginAllowThreads();
25646 result = (arg1)->GetToolBitmapSize();
25647 wxPyEndAllowThreads(__tstate);
25648 if (PyErr_Occurred()) SWIG_fail;
25649 }
25650 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25651 return resultobj;
25652fail:
25653 return NULL;
d14a1e28
RD
25654}
25655
25656
0085ce49
RD
25657SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25658 PyObject *resultobj = 0;
25659 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25660 wxSize result;
25661 void *argp1 = 0 ;
25662 int res1 = 0 ;
25663 PyObject *swig_obj[1] ;
25664
25665 if (!args) SWIG_fail;
25666 swig_obj[0] = args;
25667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25668 if (!SWIG_IsOK(res1)) {
25669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25670 }
25671 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25672 {
25673 PyThreadState* __tstate = wxPyBeginAllowThreads();
25674 result = (arg1)->GetToolSize();
25675 wxPyEndAllowThreads(__tstate);
25676 if (PyErr_Occurred()) SWIG_fail;
25677 }
25678 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25679 return resultobj;
25680fail:
25681 return NULL;
25682}
25683
25684
25685SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25686 PyObject *resultobj = 0;
25687 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25688 int arg2 ;
25689 int arg3 ;
25690 wxToolBarToolBase *result = 0 ;
25691 void *argp1 = 0 ;
25692 int res1 = 0 ;
25693 int val2 ;
25694 int ecode2 = 0 ;
25695 int val3 ;
25696 int ecode3 = 0 ;
25697 PyObject * obj0 = 0 ;
25698 PyObject * obj1 = 0 ;
25699 PyObject * obj2 = 0 ;
25700 char * kwnames[] = {
25701 (char *) "self",(char *) "x",(char *) "y", NULL
25702 };
25703
25704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25706 if (!SWIG_IsOK(res1)) {
25707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25708 }
25709 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25710 ecode2 = SWIG_AsVal_int(obj1, &val2);
25711 if (!SWIG_IsOK(ecode2)) {
25712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25713 }
25714 arg2 = static_cast< int >(val2);
25715 ecode3 = SWIG_AsVal_int(obj2, &val3);
25716 if (!SWIG_IsOK(ecode3)) {
25717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25718 }
25719 arg3 = static_cast< int >(val3);
25720 {
25721 PyThreadState* __tstate = wxPyBeginAllowThreads();
25722 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25723 wxPyEndAllowThreads(__tstate);
25724 if (PyErr_Occurred()) SWIG_fail;
25725 }
25726 {
25727 resultobj = wxPyMake_wxObject(result, (bool)0);
25728 }
25729 return resultobj;
25730fail:
25731 return NULL;
25732}
25733
25734
25735SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25736 PyObject *resultobj = 0;
25737 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25738 int arg2 ;
25739 wxToolBarToolBase *result = 0 ;
25740 void *argp1 = 0 ;
25741 int res1 = 0 ;
25742 int val2 ;
25743 int ecode2 = 0 ;
25744 PyObject * obj0 = 0 ;
25745 PyObject * obj1 = 0 ;
25746 char * kwnames[] = {
25747 (char *) "self",(char *) "toolid", NULL
25748 };
25749
25750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25752 if (!SWIG_IsOK(res1)) {
25753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25754 }
25755 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25756 ecode2 = SWIG_AsVal_int(obj1, &val2);
25757 if (!SWIG_IsOK(ecode2)) {
25758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25759 }
25760 arg2 = static_cast< int >(val2);
25761 {
25762 PyThreadState* __tstate = wxPyBeginAllowThreads();
25763 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25764 wxPyEndAllowThreads(__tstate);
25765 if (PyErr_Occurred()) SWIG_fail;
25766 }
25767 {
25768 resultobj = wxPyMake_wxObject(result, (bool)0);
25769 }
25770 return resultobj;
25771fail:
25772 return NULL;
d14a1e28
RD
25773}
25774
25775
0085ce49
RD
25776SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25777 PyObject *resultobj = 0;
25778 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25779 bool result;
25780 void *argp1 = 0 ;
25781 int res1 = 0 ;
25782 PyObject *swig_obj[1] ;
25783
25784 if (!args) SWIG_fail;
25785 swig_obj[0] = args;
25786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25787 if (!SWIG_IsOK(res1)) {
25788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25789 }
25790 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25791 {
25792 PyThreadState* __tstate = wxPyBeginAllowThreads();
25793 result = (bool)(arg1)->IsVertical();
25794 wxPyEndAllowThreads(__tstate);
25795 if (PyErr_Occurred()) SWIG_fail;
25796 }
25797 {
25798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25799 }
25800 return resultobj;
25801fail:
25802 return NULL;
25803}
25804
25805
25806SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25807 PyObject *resultobj = 0;
25808 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25809 size_t result;
25810 void *argp1 = 0 ;
25811 int res1 = 0 ;
25812 PyObject *swig_obj[1] ;
25813
25814 if (!args) SWIG_fail;
25815 swig_obj[0] = args;
25816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25817 if (!SWIG_IsOK(res1)) {
25818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25819 }
25820 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25821 {
25822 PyThreadState* __tstate = wxPyBeginAllowThreads();
25823 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25824 wxPyEndAllowThreads(__tstate);
25825 if (PyErr_Occurred()) SWIG_fail;
25826 }
25827 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25828 return resultobj;
25829fail:
25830 return NULL;
25831}
25832
25833
25834SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25835 PyObject *obj;
25836 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25837 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25838 return SWIG_Py_Void();
25839}
25840
25841SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25842 PyObject *resultobj = 0;
25843 wxWindow *arg1 = (wxWindow *) 0 ;
25844 int arg2 = (int) -1 ;
25845 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25846 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25847 wxSize const &arg4_defvalue = wxDefaultSize ;
25848 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25849 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25850 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25851 wxString *arg6 = (wxString *) &arg6_defvalue ;
25852 wxToolBar *result = 0 ;
25853 void *argp1 = 0 ;
25854 int res1 = 0 ;
25855 int val2 ;
25856 int ecode2 = 0 ;
25857 wxPoint temp3 ;
25858 wxSize temp4 ;
25859 long val5 ;
25860 int ecode5 = 0 ;
25861 bool temp6 = false ;
25862 PyObject * obj0 = 0 ;
25863 PyObject * obj1 = 0 ;
25864 PyObject * obj2 = 0 ;
25865 PyObject * obj3 = 0 ;
25866 PyObject * obj4 = 0 ;
25867 PyObject * obj5 = 0 ;
25868 char * kwnames[] = {
25869 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25870 };
25871
25872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25874 if (!SWIG_IsOK(res1)) {
25875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25876 }
25877 arg1 = reinterpret_cast< wxWindow * >(argp1);
25878 if (obj1) {
25879 ecode2 = SWIG_AsVal_int(obj1, &val2);
25880 if (!SWIG_IsOK(ecode2)) {
25881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25882 }
25883 arg2 = static_cast< int >(val2);
25884 }
25885 if (obj2) {
25886 {
25887 arg3 = &temp3;
25888 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25889 }
25890 }
25891 if (obj3) {
093d3ff1 25892 {
0085ce49
RD
25893 arg4 = &temp4;
25894 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 25895 }
0085ce49
RD
25896 }
25897 if (obj4) {
25898 ecode5 = SWIG_AsVal_long(obj4, &val5);
25899 if (!SWIG_IsOK(ecode5)) {
25900 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25901 }
25902 arg5 = static_cast< long >(val5);
25903 }
25904 if (obj5) {
d14a1e28 25905 {
0085ce49
RD
25906 arg6 = wxString_in_helper(obj5);
25907 if (arg6 == NULL) SWIG_fail;
25908 temp6 = true;
d14a1e28 25909 }
0085ce49
RD
25910 }
25911 {
25912 if (!wxPyCheckForApp()) SWIG_fail;
25913 PyThreadState* __tstate = wxPyBeginAllowThreads();
25914 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25915 wxPyEndAllowThreads(__tstate);
25916 if (PyErr_Occurred()) SWIG_fail;
25917 }
25918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25919 {
25920 if (temp6)
25921 delete arg6;
25922 }
25923 return resultobj;
25924fail:
25925 {
25926 if (temp6)
25927 delete arg6;
25928 }
25929 return NULL;
d14a1e28
RD
25930}
25931
25932
0085ce49
RD
25933SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25934 PyObject *resultobj = 0;
25935 wxToolBar *result = 0 ;
25936
25937 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25938 {
25939 if (!wxPyCheckForApp()) SWIG_fail;
25940 PyThreadState* __tstate = wxPyBeginAllowThreads();
25941 result = (wxToolBar *)new wxToolBar();
25942 wxPyEndAllowThreads(__tstate);
25943 if (PyErr_Occurred()) SWIG_fail;
25944 }
25945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25946 return resultobj;
25947fail:
25948 return NULL;
25949}
25950
25951
25952SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25953 PyObject *resultobj = 0;
25954 wxToolBar *arg1 = (wxToolBar *) 0 ;
25955 wxWindow *arg2 = (wxWindow *) 0 ;
25956 int arg3 = (int) -1 ;
25957 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25958 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25959 wxSize const &arg5_defvalue = wxDefaultSize ;
25960 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25961 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25962 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25963 wxString *arg7 = (wxString *) &arg7_defvalue ;
25964 bool result;
25965 void *argp1 = 0 ;
25966 int res1 = 0 ;
25967 void *argp2 = 0 ;
25968 int res2 = 0 ;
25969 int val3 ;
25970 int ecode3 = 0 ;
25971 wxPoint temp4 ;
25972 wxSize temp5 ;
25973 long val6 ;
25974 int ecode6 = 0 ;
25975 bool temp7 = false ;
25976 PyObject * obj0 = 0 ;
25977 PyObject * obj1 = 0 ;
25978 PyObject * obj2 = 0 ;
25979 PyObject * obj3 = 0 ;
25980 PyObject * obj4 = 0 ;
25981 PyObject * obj5 = 0 ;
25982 PyObject * obj6 = 0 ;
25983 char * kwnames[] = {
25984 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25985 };
25986
25987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25989 if (!SWIG_IsOK(res1)) {
25990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25991 }
25992 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25993 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25994 if (!SWIG_IsOK(res2)) {
25995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25996 }
25997 arg2 = reinterpret_cast< wxWindow * >(argp2);
25998 if (obj2) {
25999 ecode3 = SWIG_AsVal_int(obj2, &val3);
26000 if (!SWIG_IsOK(ecode3)) {
26001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
26002 }
26003 arg3 = static_cast< int >(val3);
26004 }
26005 if (obj3) {
26006 {
26007 arg4 = &temp4;
26008 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22bfe96c 26009 }
0085ce49
RD
26010 }
26011 if (obj4) {
22bfe96c 26012 {
0085ce49
RD
26013 arg5 = &temp5;
26014 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22bfe96c 26015 }
0085ce49
RD
26016 }
26017 if (obj5) {
26018 ecode6 = SWIG_AsVal_long(obj5, &val6);
26019 if (!SWIG_IsOK(ecode6)) {
26020 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
26021 }
26022 arg6 = static_cast< long >(val6);
26023 }
26024 if (obj6) {
22bfe96c 26025 {
0085ce49
RD
26026 arg7 = wxString_in_helper(obj6);
26027 if (arg7 == NULL) SWIG_fail;
26028 temp7 = true;
22bfe96c 26029 }
0085ce49
RD
26030 }
26031 {
26032 PyThreadState* __tstate = wxPyBeginAllowThreads();
26033 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
26034 wxPyEndAllowThreads(__tstate);
26035 if (PyErr_Occurred()) SWIG_fail;
26036 }
26037 {
26038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26039 }
26040 {
26041 if (temp7)
26042 delete arg7;
26043 }
26044 return resultobj;
26045fail:
26046 {
26047 if (temp7)
26048 delete arg7;
26049 }
26050 return NULL;
26051}
26052
26053
0085ce49
RD
26054SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26055 PyObject *resultobj = 0;
26056 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
26057 SwigValueWrapper<wxVisualAttributes > result;
26058 int val1 ;
26059 int ecode1 = 0 ;
26060 PyObject * obj0 = 0 ;
26061 char * kwnames[] = {
26062 (char *) "variant", NULL
26063 };
26064
26065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
26066 if (obj0) {
26067 ecode1 = SWIG_AsVal_int(obj0, &val1);
26068 if (!SWIG_IsOK(ecode1)) {
26069 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
26070 }
26071 arg1 = static_cast< wxWindowVariant >(val1);
26072 }
26073 {
26074 if (!wxPyCheckForApp()) SWIG_fail;
26075 PyThreadState* __tstate = wxPyBeginAllowThreads();
26076 result = wxToolBar::GetClassDefaultAttributes(arg1);
26077 wxPyEndAllowThreads(__tstate);
26078 if (PyErr_Occurred()) SWIG_fail;
26079 }
26080 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26081 return resultobj;
26082fail:
26083 return NULL;
22bfe96c
RD
26084}
26085
26086
0085ce49
RD
26087SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26088 PyObject *obj;
26089 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26090 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26091 return SWIG_Py_Void();
d14a1e28 26092}
0085ce49
RD
26093
26094SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26095 return SWIG_Python_InitShadowInstance(args);
b2dc1044
RD
26096}
26097
0085ce49
RD
26098SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26099 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26100 return 1;
26101}
b2dc1044 26102
0085ce49
RD
26103
26104SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26105 PyObject *pyobj = 0;
26106
26107 {
b2dc1044 26108#if wxUSE_UNICODE
0085ce49 26109 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 26110#else
0085ce49 26111 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
b2dc1044 26112#endif
0085ce49
RD
26113 }
26114 return pyobj;
26115}
26116
26117
26118SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26119 PyObject *resultobj = 0;
26120 wxColour const &arg1_defvalue = wxNullColour ;
26121 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26122 wxColour const &arg2_defvalue = wxNullColour ;
26123 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26124 wxFont const &arg3_defvalue = wxNullFont ;
26125 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26126 wxListItemAttr *result = 0 ;
26127 wxColour temp1 ;
26128 wxColour temp2 ;
26129 void *argp3 = 0 ;
26130 int res3 = 0 ;
26131 PyObject * obj0 = 0 ;
26132 PyObject * obj1 = 0 ;
26133 PyObject * obj2 = 0 ;
26134 char * kwnames[] = {
26135 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26136 };
26137
26138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26139 if (obj0) {
d14a1e28 26140 {
0085ce49
RD
26141 arg1 = &temp1;
26142 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d14a1e28 26143 }
0085ce49
RD
26144 }
26145 if (obj1) {
d14a1e28 26146 {
0085ce49
RD
26147 arg2 = &temp2;
26148 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 26149 }
0085ce49
RD
26150 }
26151 if (obj2) {
26152 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26153 if (!SWIG_IsOK(res3)) {
26154 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 26155 }
0085ce49
RD
26156 if (!argp3) {
26157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d14a1e28 26158 }
0085ce49
RD
26159 arg3 = reinterpret_cast< wxFont * >(argp3);
26160 }
26161 {
26162 PyThreadState* __tstate = wxPyBeginAllowThreads();
26163 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26164 wxPyEndAllowThreads(__tstate);
26165 if (PyErr_Occurred()) SWIG_fail;
26166 }
26167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26168 return resultobj;
26169fail:
26170 return NULL;
d14a1e28
RD
26171}
26172
26173
0085ce49
RD
26174SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26175 PyObject *resultobj = 0;
26176 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26177 void *argp1 = 0 ;
26178 int res1 = 0 ;
26179 PyObject *swig_obj[1] ;
26180
26181 if (!args) SWIG_fail;
26182 swig_obj[0] = args;
26183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26184 if (!SWIG_IsOK(res1)) {
26185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26186 }
26187 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26188 {
26189 PyThreadState* __tstate = wxPyBeginAllowThreads();
26190 delete arg1;
d14a1e28 26191
0085ce49
RD
26192 wxPyEndAllowThreads(__tstate);
26193 if (PyErr_Occurred()) SWIG_fail;
26194 }
26195 resultobj = SWIG_Py_Void();
26196 return resultobj;
26197fail:
26198 return NULL;
26199}
26200
26201
26202SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26203 PyObject *resultobj = 0;
26204 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26205 wxColour *arg2 = 0 ;
26206 void *argp1 = 0 ;
26207 int res1 = 0 ;
26208 wxColour temp2 ;
26209 PyObject * obj0 = 0 ;
26210 PyObject * obj1 = 0 ;
26211 char * kwnames[] = {
26212 (char *) "self",(char *) "colText", NULL
26213 };
26214
26215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26217 if (!SWIG_IsOK(res1)) {
26218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26219 }
26220 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26221 {
26222 arg2 = &temp2;
26223 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26224 }
26225 {
26226 PyThreadState* __tstate = wxPyBeginAllowThreads();
26227 (arg1)->SetTextColour((wxColour const &)*arg2);
26228 wxPyEndAllowThreads(__tstate);
26229 if (PyErr_Occurred()) SWIG_fail;
26230 }
26231 resultobj = SWIG_Py_Void();
26232 return resultobj;
26233fail:
26234 return NULL;
26235}
26236
26237
26238SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26239 PyObject *resultobj = 0;
26240 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26241 wxColour *arg2 = 0 ;
26242 void *argp1 = 0 ;
26243 int res1 = 0 ;
26244 wxColour temp2 ;
26245 PyObject * obj0 = 0 ;
26246 PyObject * obj1 = 0 ;
26247 char * kwnames[] = {
26248 (char *) "self",(char *) "colBack", NULL
26249 };
26250
26251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26253 if (!SWIG_IsOK(res1)) {
26254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26255 }
26256 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26257 {
26258 arg2 = &temp2;
26259 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26260 }
26261 {
26262 PyThreadState* __tstate = wxPyBeginAllowThreads();
26263 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26264 wxPyEndAllowThreads(__tstate);
26265 if (PyErr_Occurred()) SWIG_fail;
26266 }
26267 resultobj = SWIG_Py_Void();
26268 return resultobj;
26269fail:
26270 return NULL;
26271}
26272
26273
26274SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26275 PyObject *resultobj = 0;
26276 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26277 wxFont *arg2 = 0 ;
26278 void *argp1 = 0 ;
26279 int res1 = 0 ;
26280 void *argp2 = 0 ;
26281 int res2 = 0 ;
26282 PyObject * obj0 = 0 ;
26283 PyObject * obj1 = 0 ;
26284 char * kwnames[] = {
26285 (char *) "self",(char *) "font", NULL
26286 };
26287
26288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26290 if (!SWIG_IsOK(res1)) {
26291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26292 }
26293 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26294 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26295 if (!SWIG_IsOK(res2)) {
26296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26297 }
26298 if (!argp2) {
26299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26300 }
26301 arg2 = reinterpret_cast< wxFont * >(argp2);
26302 {
26303 PyThreadState* __tstate = wxPyBeginAllowThreads();
26304 (arg1)->SetFont((wxFont const &)*arg2);
26305 wxPyEndAllowThreads(__tstate);
26306 if (PyErr_Occurred()) SWIG_fail;
26307 }
26308 resultobj = SWIG_Py_Void();
26309 return resultobj;
26310fail:
26311 return NULL;
d14a1e28
RD
26312}
26313
26314
0085ce49
RD
26315SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26316 PyObject *resultobj = 0;
26317 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26318 bool result;
26319 void *argp1 = 0 ;
26320 int res1 = 0 ;
26321 PyObject *swig_obj[1] ;
26322
26323 if (!args) SWIG_fail;
26324 swig_obj[0] = args;
26325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26326 if (!SWIG_IsOK(res1)) {
26327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26328 }
26329 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26330 {
26331 PyThreadState* __tstate = wxPyBeginAllowThreads();
26332 result = (bool)(arg1)->HasTextColour();
26333 wxPyEndAllowThreads(__tstate);
26334 if (PyErr_Occurred()) SWIG_fail;
26335 }
26336 {
26337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26338 }
26339 return resultobj;
26340fail:
26341 return NULL;
d14a1e28
RD
26342}
26343
26344
0085ce49
RD
26345SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26346 PyObject *resultobj = 0;
26347 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26348 bool result;
26349 void *argp1 = 0 ;
26350 int res1 = 0 ;
26351 PyObject *swig_obj[1] ;
26352
26353 if (!args) SWIG_fail;
26354 swig_obj[0] = args;
26355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26356 if (!SWIG_IsOK(res1)) {
26357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26358 }
26359 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26360 {
26361 PyThreadState* __tstate = wxPyBeginAllowThreads();
26362 result = (bool)(arg1)->HasBackgroundColour();
26363 wxPyEndAllowThreads(__tstate);
26364 if (PyErr_Occurred()) SWIG_fail;
26365 }
26366 {
26367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26368 }
26369 return resultobj;
26370fail:
26371 return NULL;
d14a1e28
RD
26372}
26373
26374
0085ce49
RD
26375SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26376 PyObject *resultobj = 0;
26377 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26378 bool result;
26379 void *argp1 = 0 ;
26380 int res1 = 0 ;
26381 PyObject *swig_obj[1] ;
26382
26383 if (!args) SWIG_fail;
26384 swig_obj[0] = args;
26385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26386 if (!SWIG_IsOK(res1)) {
26387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26388 }
26389 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26390 {
26391 PyThreadState* __tstate = wxPyBeginAllowThreads();
26392 result = (bool)(arg1)->HasFont();
26393 wxPyEndAllowThreads(__tstate);
26394 if (PyErr_Occurred()) SWIG_fail;
26395 }
26396 {
26397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26398 }
26399 return resultobj;
26400fail:
26401 return NULL;
d14a1e28
RD
26402}
26403
26404
0085ce49
RD
26405SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26406 PyObject *resultobj = 0;
26407 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26408 wxColour result;
26409 void *argp1 = 0 ;
26410 int res1 = 0 ;
26411 PyObject *swig_obj[1] ;
26412
26413 if (!args) SWIG_fail;
26414 swig_obj[0] = args;
26415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26416 if (!SWIG_IsOK(res1)) {
26417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26418 }
26419 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26420 {
26421 PyThreadState* __tstate = wxPyBeginAllowThreads();
26422 result = (arg1)->GetTextColour();
26423 wxPyEndAllowThreads(__tstate);
26424 if (PyErr_Occurred()) SWIG_fail;
26425 }
26426 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26427 return resultobj;
26428fail:
26429 return NULL;
d14a1e28
RD
26430}
26431
26432
0085ce49
RD
26433SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26434 PyObject *resultobj = 0;
26435 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26436 wxColour result;
26437 void *argp1 = 0 ;
26438 int res1 = 0 ;
26439 PyObject *swig_obj[1] ;
26440
26441 if (!args) SWIG_fail;
26442 swig_obj[0] = args;
26443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26444 if (!SWIG_IsOK(res1)) {
26445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26446 }
26447 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26448 {
26449 PyThreadState* __tstate = wxPyBeginAllowThreads();
26450 result = (arg1)->GetBackgroundColour();
26451 wxPyEndAllowThreads(__tstate);
26452 if (PyErr_Occurred()) SWIG_fail;
26453 }
26454 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26455 return resultobj;
26456fail:
26457 return NULL;
d14a1e28
RD
26458}
26459
26460
0085ce49
RD
26461SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26462 PyObject *resultobj = 0;
26463 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26464 wxFont result;
26465 void *argp1 = 0 ;
26466 int res1 = 0 ;
26467 PyObject *swig_obj[1] ;
26468
26469 if (!args) SWIG_fail;
26470 swig_obj[0] = args;
26471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26472 if (!SWIG_IsOK(res1)) {
26473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26474 }
26475 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26476 {
26477 PyThreadState* __tstate = wxPyBeginAllowThreads();
26478 result = (arg1)->GetFont();
26479 wxPyEndAllowThreads(__tstate);
26480 if (PyErr_Occurred()) SWIG_fail;
26481 }
26482 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26483 return resultobj;
26484fail:
26485 return NULL;
26486}
26487
26488
26489SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26490 PyObject *resultobj = 0;
26491 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26492 wxListItemAttr *arg2 = 0 ;
26493 void *argp1 = 0 ;
26494 int res1 = 0 ;
26495 void *argp2 = 0 ;
26496 int res2 = 0 ;
26497 PyObject * obj0 = 0 ;
26498 PyObject * obj1 = 0 ;
26499 char * kwnames[] = {
26500 (char *) "self",(char *) "source", NULL
26501 };
26502
26503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26505 if (!SWIG_IsOK(res1)) {
26506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26507 }
26508 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26509 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26510 if (!SWIG_IsOK(res2)) {
26511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26512 }
26513 if (!argp2) {
26514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26515 }
26516 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26517 {
26518 PyThreadState* __tstate = wxPyBeginAllowThreads();
26519 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26520 wxPyEndAllowThreads(__tstate);
26521 if (PyErr_Occurred()) SWIG_fail;
26522 }
26523 resultobj = SWIG_Py_Void();
26524 return resultobj;
26525fail:
26526 return NULL;
d14a1e28
RD
26527}
26528
26529
0085ce49
RD
26530SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26531 PyObject *resultobj = 0;
26532 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26533 void *argp1 = 0 ;
26534 int res1 = 0 ;
26535 PyObject *swig_obj[1] ;
26536
26537 if (!args) SWIG_fail;
26538 swig_obj[0] = args;
26539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26540 if (!SWIG_IsOK(res1)) {
26541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26542 }
26543 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26544 {
26545 PyThreadState* __tstate = wxPyBeginAllowThreads();
26546 wxListItemAttr_Destroy(arg1);
26547 wxPyEndAllowThreads(__tstate);
26548 if (PyErr_Occurred()) SWIG_fail;
26549 }
26550 resultobj = SWIG_Py_Void();
26551 return resultobj;
26552fail:
26553 return NULL;
d14a1e28
RD
26554}
26555
26556
0085ce49
RD
26557SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26558 PyObject *obj;
26559 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26560 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26561 return SWIG_Py_Void();
d14a1e28
RD
26562}
26563
0085ce49
RD
26564SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26565 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
26566}
26567
0085ce49
RD
26568SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26569 PyObject *resultobj = 0;
26570 wxListItem *result = 0 ;
26571
26572 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26573 {
26574 PyThreadState* __tstate = wxPyBeginAllowThreads();
26575 result = (wxListItem *)new wxListItem();
26576 wxPyEndAllowThreads(__tstate);
26577 if (PyErr_Occurred()) SWIG_fail;
26578 }
3ecece7e 26579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
0085ce49
RD
26580 return resultobj;
26581fail:
26582 return NULL;
d14a1e28
RD
26583}
26584
26585
0085ce49
RD
26586SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26587 PyObject *resultobj = 0;
26588 wxListItem *arg1 = (wxListItem *) 0 ;
26589 void *argp1 = 0 ;
26590 int res1 = 0 ;
26591 PyObject *swig_obj[1] ;
26592
26593 if (!args) SWIG_fail;
26594 swig_obj[0] = args;
26595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26596 if (!SWIG_IsOK(res1)) {
26597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26598 }
26599 arg1 = reinterpret_cast< wxListItem * >(argp1);
26600 {
26601 PyThreadState* __tstate = wxPyBeginAllowThreads();
26602 delete arg1;
d14a1e28 26603
0085ce49
RD
26604 wxPyEndAllowThreads(__tstate);
26605 if (PyErr_Occurred()) SWIG_fail;
26606 }
26607 resultobj = SWIG_Py_Void();
26608 return resultobj;
26609fail:
26610 return NULL;
d14a1e28
RD
26611}
26612
26613
0085ce49
RD
26614SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26615 PyObject *resultobj = 0;
26616 wxListItem *arg1 = (wxListItem *) 0 ;
26617 void *argp1 = 0 ;
26618 int res1 = 0 ;
26619 PyObject *swig_obj[1] ;
26620
26621 if (!args) SWIG_fail;
26622 swig_obj[0] = args;
26623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26624 if (!SWIG_IsOK(res1)) {
26625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26626 }
26627 arg1 = reinterpret_cast< wxListItem * >(argp1);
26628 {
26629 PyThreadState* __tstate = wxPyBeginAllowThreads();
26630 (arg1)->Clear();
26631 wxPyEndAllowThreads(__tstate);
26632 if (PyErr_Occurred()) SWIG_fail;
26633 }
26634 resultobj = SWIG_Py_Void();
26635 return resultobj;
26636fail:
26637 return NULL;
d14a1e28
RD
26638}
26639
26640
0085ce49
RD
26641SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26642 PyObject *resultobj = 0;
26643 wxListItem *arg1 = (wxListItem *) 0 ;
26644 void *argp1 = 0 ;
26645 int res1 = 0 ;
26646 PyObject *swig_obj[1] ;
26647
26648 if (!args) SWIG_fail;
26649 swig_obj[0] = args;
26650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26651 if (!SWIG_IsOK(res1)) {
26652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26653 }
26654 arg1 = reinterpret_cast< wxListItem * >(argp1);
26655 {
26656 PyThreadState* __tstate = wxPyBeginAllowThreads();
26657 (arg1)->ClearAttributes();
26658 wxPyEndAllowThreads(__tstate);
26659 if (PyErr_Occurred()) SWIG_fail;
26660 }
26661 resultobj = SWIG_Py_Void();
26662 return resultobj;
26663fail:
26664 return NULL;
26665}
26666
26667
26668SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26669 PyObject *resultobj = 0;
26670 wxListItem *arg1 = (wxListItem *) 0 ;
26671 long arg2 ;
26672 void *argp1 = 0 ;
26673 int res1 = 0 ;
26674 long val2 ;
26675 int ecode2 = 0 ;
26676 PyObject * obj0 = 0 ;
26677 PyObject * obj1 = 0 ;
26678 char * kwnames[] = {
26679 (char *) "self",(char *) "mask", NULL
26680 };
26681
26682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26684 if (!SWIG_IsOK(res1)) {
26685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26686 }
26687 arg1 = reinterpret_cast< wxListItem * >(argp1);
26688 ecode2 = SWIG_AsVal_long(obj1, &val2);
26689 if (!SWIG_IsOK(ecode2)) {
26690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26691 }
26692 arg2 = static_cast< long >(val2);
26693 {
26694 PyThreadState* __tstate = wxPyBeginAllowThreads();
26695 (arg1)->SetMask(arg2);
26696 wxPyEndAllowThreads(__tstate);
26697 if (PyErr_Occurred()) SWIG_fail;
26698 }
26699 resultobj = SWIG_Py_Void();
26700 return resultobj;
26701fail:
26702 return NULL;
26703}
26704
26705
26706SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26707 PyObject *resultobj = 0;
26708 wxListItem *arg1 = (wxListItem *) 0 ;
26709 long arg2 ;
26710 void *argp1 = 0 ;
26711 int res1 = 0 ;
26712 long val2 ;
26713 int ecode2 = 0 ;
26714 PyObject * obj0 = 0 ;
26715 PyObject * obj1 = 0 ;
26716 char * kwnames[] = {
26717 (char *) "self",(char *) "id", NULL
26718 };
26719
26720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26722 if (!SWIG_IsOK(res1)) {
26723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26724 }
26725 arg1 = reinterpret_cast< wxListItem * >(argp1);
26726 ecode2 = SWIG_AsVal_long(obj1, &val2);
26727 if (!SWIG_IsOK(ecode2)) {
26728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26729 }
26730 arg2 = static_cast< long >(val2);
26731 {
26732 PyThreadState* __tstate = wxPyBeginAllowThreads();
26733 (arg1)->SetId(arg2);
26734 wxPyEndAllowThreads(__tstate);
26735 if (PyErr_Occurred()) SWIG_fail;
26736 }
26737 resultobj = SWIG_Py_Void();
26738 return resultobj;
26739fail:
26740 return NULL;
26741}
26742
26743
26744SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26745 PyObject *resultobj = 0;
26746 wxListItem *arg1 = (wxListItem *) 0 ;
26747 int arg2 ;
26748 void *argp1 = 0 ;
26749 int res1 = 0 ;
26750 int val2 ;
26751 int ecode2 = 0 ;
26752 PyObject * obj0 = 0 ;
26753 PyObject * obj1 = 0 ;
26754 char * kwnames[] = {
26755 (char *) "self",(char *) "col", NULL
26756 };
26757
26758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26760 if (!SWIG_IsOK(res1)) {
26761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26762 }
26763 arg1 = reinterpret_cast< wxListItem * >(argp1);
26764 ecode2 = SWIG_AsVal_int(obj1, &val2);
26765 if (!SWIG_IsOK(ecode2)) {
26766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26767 }
26768 arg2 = static_cast< int >(val2);
26769 {
26770 PyThreadState* __tstate = wxPyBeginAllowThreads();
26771 (arg1)->SetColumn(arg2);
26772 wxPyEndAllowThreads(__tstate);
26773 if (PyErr_Occurred()) SWIG_fail;
26774 }
26775 resultobj = SWIG_Py_Void();
26776 return resultobj;
26777fail:
26778 return NULL;
26779}
26780
26781
26782SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26783 PyObject *resultobj = 0;
26784 wxListItem *arg1 = (wxListItem *) 0 ;
26785 long arg2 ;
26786 void *argp1 = 0 ;
26787 int res1 = 0 ;
26788 long val2 ;
26789 int ecode2 = 0 ;
26790 PyObject * obj0 = 0 ;
26791 PyObject * obj1 = 0 ;
26792 char * kwnames[] = {
26793 (char *) "self",(char *) "state", NULL
26794 };
26795
26796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26798 if (!SWIG_IsOK(res1)) {
26799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26800 }
26801 arg1 = reinterpret_cast< wxListItem * >(argp1);
26802 ecode2 = SWIG_AsVal_long(obj1, &val2);
26803 if (!SWIG_IsOK(ecode2)) {
26804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26805 }
26806 arg2 = static_cast< long >(val2);
26807 {
26808 PyThreadState* __tstate = wxPyBeginAllowThreads();
26809 (arg1)->SetState(arg2);
26810 wxPyEndAllowThreads(__tstate);
26811 if (PyErr_Occurred()) SWIG_fail;
26812 }
26813 resultobj = SWIG_Py_Void();
26814 return resultobj;
26815fail:
26816 return NULL;
26817}
26818
26819
26820SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26821 PyObject *resultobj = 0;
26822 wxListItem *arg1 = (wxListItem *) 0 ;
26823 long arg2 ;
26824 void *argp1 = 0 ;
26825 int res1 = 0 ;
26826 long val2 ;
26827 int ecode2 = 0 ;
26828 PyObject * obj0 = 0 ;
26829 PyObject * obj1 = 0 ;
26830 char * kwnames[] = {
26831 (char *) "self",(char *) "stateMask", NULL
26832 };
26833
26834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26836 if (!SWIG_IsOK(res1)) {
26837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26838 }
26839 arg1 = reinterpret_cast< wxListItem * >(argp1);
26840 ecode2 = SWIG_AsVal_long(obj1, &val2);
26841 if (!SWIG_IsOK(ecode2)) {
26842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26843 }
26844 arg2 = static_cast< long >(val2);
26845 {
26846 PyThreadState* __tstate = wxPyBeginAllowThreads();
26847 (arg1)->SetStateMask(arg2);
26848 wxPyEndAllowThreads(__tstate);
26849 if (PyErr_Occurred()) SWIG_fail;
26850 }
26851 resultobj = SWIG_Py_Void();
26852 return resultobj;
26853fail:
26854 return NULL;
26855}
26856
26857
26858SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26859 PyObject *resultobj = 0;
26860 wxListItem *arg1 = (wxListItem *) 0 ;
26861 wxString *arg2 = 0 ;
26862 void *argp1 = 0 ;
26863 int res1 = 0 ;
26864 bool temp2 = false ;
26865 PyObject * obj0 = 0 ;
26866 PyObject * obj1 = 0 ;
26867 char * kwnames[] = {
26868 (char *) "self",(char *) "text", NULL
26869 };
26870
26871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26873 if (!SWIG_IsOK(res1)) {
26874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26875 }
26876 arg1 = reinterpret_cast< wxListItem * >(argp1);
26877 {
26878 arg2 = wxString_in_helper(obj1);
26879 if (arg2 == NULL) SWIG_fail;
26880 temp2 = true;
26881 }
26882 {
26883 PyThreadState* __tstate = wxPyBeginAllowThreads();
26884 (arg1)->SetText((wxString const &)*arg2);
26885 wxPyEndAllowThreads(__tstate);
26886 if (PyErr_Occurred()) SWIG_fail;
26887 }
26888 resultobj = SWIG_Py_Void();
26889 {
26890 if (temp2)
26891 delete arg2;
26892 }
26893 return resultobj;
26894fail:
26895 {
26896 if (temp2)
26897 delete arg2;
26898 }
26899 return NULL;
26900}
26901
26902
26903SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26904 PyObject *resultobj = 0;
26905 wxListItem *arg1 = (wxListItem *) 0 ;
26906 int arg2 ;
26907 void *argp1 = 0 ;
26908 int res1 = 0 ;
26909 int val2 ;
26910 int ecode2 = 0 ;
26911 PyObject * obj0 = 0 ;
26912 PyObject * obj1 = 0 ;
26913 char * kwnames[] = {
26914 (char *) "self",(char *) "image", NULL
26915 };
26916
26917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26919 if (!SWIG_IsOK(res1)) {
26920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26921 }
26922 arg1 = reinterpret_cast< wxListItem * >(argp1);
26923 ecode2 = SWIG_AsVal_int(obj1, &val2);
26924 if (!SWIG_IsOK(ecode2)) {
26925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26926 }
26927 arg2 = static_cast< int >(val2);
26928 {
26929 PyThreadState* __tstate = wxPyBeginAllowThreads();
26930 (arg1)->SetImage(arg2);
26931 wxPyEndAllowThreads(__tstate);
26932 if (PyErr_Occurred()) SWIG_fail;
26933 }
26934 resultobj = SWIG_Py_Void();
26935 return resultobj;
26936fail:
26937 return NULL;
26938}
26939
26940
26941SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26942 PyObject *resultobj = 0;
26943 wxListItem *arg1 = (wxListItem *) 0 ;
26944 long arg2 ;
26945 void *argp1 = 0 ;
26946 int res1 = 0 ;
26947 long val2 ;
26948 int ecode2 = 0 ;
26949 PyObject * obj0 = 0 ;
26950 PyObject * obj1 = 0 ;
26951 char * kwnames[] = {
26952 (char *) "self",(char *) "data", NULL
26953 };
26954
26955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26957 if (!SWIG_IsOK(res1)) {
26958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26959 }
26960 arg1 = reinterpret_cast< wxListItem * >(argp1);
26961 ecode2 = SWIG_AsVal_long(obj1, &val2);
26962 if (!SWIG_IsOK(ecode2)) {
26963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26964 }
26965 arg2 = static_cast< long >(val2);
26966 {
26967 PyThreadState* __tstate = wxPyBeginAllowThreads();
26968 (arg1)->SetData(arg2);
26969 wxPyEndAllowThreads(__tstate);
26970 if (PyErr_Occurred()) SWIG_fail;
26971 }
26972 resultobj = SWIG_Py_Void();
26973 return resultobj;
26974fail:
26975 return NULL;
26976}
26977
26978
26979SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26980 PyObject *resultobj = 0;
26981 wxListItem *arg1 = (wxListItem *) 0 ;
26982 int arg2 ;
26983 void *argp1 = 0 ;
26984 int res1 = 0 ;
26985 int val2 ;
26986 int ecode2 = 0 ;
26987 PyObject * obj0 = 0 ;
26988 PyObject * obj1 = 0 ;
26989 char * kwnames[] = {
26990 (char *) "self",(char *) "width", NULL
26991 };
26992
26993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26995 if (!SWIG_IsOK(res1)) {
26996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26997 }
26998 arg1 = reinterpret_cast< wxListItem * >(argp1);
26999 ecode2 = SWIG_AsVal_int(obj1, &val2);
27000 if (!SWIG_IsOK(ecode2)) {
27001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
27002 }
27003 arg2 = static_cast< int >(val2);
27004 {
27005 PyThreadState* __tstate = wxPyBeginAllowThreads();
27006 (arg1)->SetWidth(arg2);
27007 wxPyEndAllowThreads(__tstate);
27008 if (PyErr_Occurred()) SWIG_fail;
27009 }
27010 resultobj = SWIG_Py_Void();
27011 return resultobj;
27012fail:
27013 return NULL;
27014}
27015
27016
27017SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27018 PyObject *resultobj = 0;
27019 wxListItem *arg1 = (wxListItem *) 0 ;
27020 wxListColumnFormat arg2 ;
27021 void *argp1 = 0 ;
27022 int res1 = 0 ;
27023 int val2 ;
27024 int ecode2 = 0 ;
27025 PyObject * obj0 = 0 ;
27026 PyObject * obj1 = 0 ;
27027 char * kwnames[] = {
27028 (char *) "self",(char *) "align", NULL
27029 };
27030
27031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
27032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27033 if (!SWIG_IsOK(res1)) {
27034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27035 }
27036 arg1 = reinterpret_cast< wxListItem * >(argp1);
27037 ecode2 = SWIG_AsVal_int(obj1, &val2);
27038 if (!SWIG_IsOK(ecode2)) {
27039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
27040 }
27041 arg2 = static_cast< wxListColumnFormat >(val2);
27042 {
27043 PyThreadState* __tstate = wxPyBeginAllowThreads();
27044 (arg1)->SetAlign(arg2);
27045 wxPyEndAllowThreads(__tstate);
27046 if (PyErr_Occurred()) SWIG_fail;
27047 }
27048 resultobj = SWIG_Py_Void();
27049 return resultobj;
27050fail:
27051 return NULL;
27052}
27053
27054
27055SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27056 PyObject *resultobj = 0;
27057 wxListItem *arg1 = (wxListItem *) 0 ;
27058 wxColour *arg2 = 0 ;
27059 void *argp1 = 0 ;
27060 int res1 = 0 ;
27061 wxColour temp2 ;
27062 PyObject * obj0 = 0 ;
27063 PyObject * obj1 = 0 ;
27064 char * kwnames[] = {
27065 (char *) "self",(char *) "colText", NULL
27066 };
27067
27068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
27069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27070 if (!SWIG_IsOK(res1)) {
27071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27072 }
27073 arg1 = reinterpret_cast< wxListItem * >(argp1);
27074 {
27075 arg2 = &temp2;
27076 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27077 }
27078 {
27079 PyThreadState* __tstate = wxPyBeginAllowThreads();
27080 (arg1)->SetTextColour((wxColour const &)*arg2);
27081 wxPyEndAllowThreads(__tstate);
27082 if (PyErr_Occurred()) SWIG_fail;
27083 }
27084 resultobj = SWIG_Py_Void();
27085 return resultobj;
27086fail:
27087 return NULL;
27088}
27089
27090
27091SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27092 PyObject *resultobj = 0;
27093 wxListItem *arg1 = (wxListItem *) 0 ;
27094 wxColour *arg2 = 0 ;
27095 void *argp1 = 0 ;
27096 int res1 = 0 ;
27097 wxColour temp2 ;
27098 PyObject * obj0 = 0 ;
27099 PyObject * obj1 = 0 ;
27100 char * kwnames[] = {
27101 (char *) "self",(char *) "colBack", NULL
27102 };
27103
27104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27106 if (!SWIG_IsOK(res1)) {
27107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27108 }
27109 arg1 = reinterpret_cast< wxListItem * >(argp1);
27110 {
27111 arg2 = &temp2;
27112 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27113 }
27114 {
27115 PyThreadState* __tstate = wxPyBeginAllowThreads();
27116 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27117 wxPyEndAllowThreads(__tstate);
27118 if (PyErr_Occurred()) SWIG_fail;
27119 }
27120 resultobj = SWIG_Py_Void();
27121 return resultobj;
27122fail:
27123 return NULL;
27124}
27125
27126
27127SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27128 PyObject *resultobj = 0;
27129 wxListItem *arg1 = (wxListItem *) 0 ;
27130 wxFont *arg2 = 0 ;
27131 void *argp1 = 0 ;
27132 int res1 = 0 ;
27133 void *argp2 = 0 ;
27134 int res2 = 0 ;
27135 PyObject * obj0 = 0 ;
27136 PyObject * obj1 = 0 ;
27137 char * kwnames[] = {
27138 (char *) "self",(char *) "font", NULL
27139 };
27140
27141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27143 if (!SWIG_IsOK(res1)) {
27144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27145 }
27146 arg1 = reinterpret_cast< wxListItem * >(argp1);
27147 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27148 if (!SWIG_IsOK(res2)) {
27149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27150 }
27151 if (!argp2) {
27152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27153 }
27154 arg2 = reinterpret_cast< wxFont * >(argp2);
27155 {
27156 PyThreadState* __tstate = wxPyBeginAllowThreads();
27157 (arg1)->SetFont((wxFont const &)*arg2);
27158 wxPyEndAllowThreads(__tstate);
27159 if (PyErr_Occurred()) SWIG_fail;
27160 }
27161 resultobj = SWIG_Py_Void();
27162 return resultobj;
27163fail:
27164 return NULL;
d14a1e28
RD
27165}
27166
27167
0085ce49
RD
27168SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27169 PyObject *resultobj = 0;
27170 wxListItem *arg1 = (wxListItem *) 0 ;
27171 long result;
27172 void *argp1 = 0 ;
27173 int res1 = 0 ;
27174 PyObject *swig_obj[1] ;
27175
27176 if (!args) SWIG_fail;
27177 swig_obj[0] = args;
27178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27179 if (!SWIG_IsOK(res1)) {
27180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27181 }
27182 arg1 = reinterpret_cast< wxListItem * >(argp1);
27183 {
27184 PyThreadState* __tstate = wxPyBeginAllowThreads();
27185 result = (long)(arg1)->GetMask();
27186 wxPyEndAllowThreads(__tstate);
27187 if (PyErr_Occurred()) SWIG_fail;
27188 }
27189 resultobj = SWIG_From_long(static_cast< long >(result));
27190 return resultobj;
27191fail:
27192 return NULL;
d14a1e28
RD
27193}
27194
27195
0085ce49
RD
27196SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27197 PyObject *resultobj = 0;
27198 wxListItem *arg1 = (wxListItem *) 0 ;
27199 long result;
27200 void *argp1 = 0 ;
27201 int res1 = 0 ;
27202 PyObject *swig_obj[1] ;
27203
27204 if (!args) SWIG_fail;
27205 swig_obj[0] = args;
27206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27207 if (!SWIG_IsOK(res1)) {
27208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27209 }
27210 arg1 = reinterpret_cast< wxListItem * >(argp1);
27211 {
27212 PyThreadState* __tstate = wxPyBeginAllowThreads();
27213 result = (long)(arg1)->GetId();
27214 wxPyEndAllowThreads(__tstate);
27215 if (PyErr_Occurred()) SWIG_fail;
27216 }
27217 resultobj = SWIG_From_long(static_cast< long >(result));
27218 return resultobj;
27219fail:
27220 return NULL;
d14a1e28
RD
27221}
27222
27223
0085ce49
RD
27224SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27225 PyObject *resultobj = 0;
27226 wxListItem *arg1 = (wxListItem *) 0 ;
27227 int result;
27228 void *argp1 = 0 ;
27229 int res1 = 0 ;
27230 PyObject *swig_obj[1] ;
27231
27232 if (!args) SWIG_fail;
27233 swig_obj[0] = args;
27234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27235 if (!SWIG_IsOK(res1)) {
27236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27237 }
27238 arg1 = reinterpret_cast< wxListItem * >(argp1);
27239 {
27240 PyThreadState* __tstate = wxPyBeginAllowThreads();
27241 result = (int)(arg1)->GetColumn();
27242 wxPyEndAllowThreads(__tstate);
27243 if (PyErr_Occurred()) SWIG_fail;
27244 }
27245 resultobj = SWIG_From_int(static_cast< int >(result));
27246 return resultobj;
27247fail:
27248 return NULL;
22bfe96c
RD
27249}
27250
27251
0085ce49
RD
27252SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27253 PyObject *resultobj = 0;
27254 wxListItem *arg1 = (wxListItem *) 0 ;
27255 long result;
27256 void *argp1 = 0 ;
27257 int res1 = 0 ;
27258 PyObject *swig_obj[1] ;
27259
27260 if (!args) SWIG_fail;
27261 swig_obj[0] = args;
27262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27263 if (!SWIG_IsOK(res1)) {
27264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27265 }
27266 arg1 = reinterpret_cast< wxListItem * >(argp1);
27267 {
27268 PyThreadState* __tstate = wxPyBeginAllowThreads();
27269 result = (long)(arg1)->GetState();
27270 wxPyEndAllowThreads(__tstate);
27271 if (PyErr_Occurred()) SWIG_fail;
27272 }
27273 resultobj = SWIG_From_long(static_cast< long >(result));
27274 return resultobj;
27275fail:
27276 return NULL;
b2dc1044
RD
27277}
27278
27279
0085ce49
RD
27280SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27281 PyObject *resultobj = 0;
27282 wxListItem *arg1 = (wxListItem *) 0 ;
27283 wxString *result = 0 ;
27284 void *argp1 = 0 ;
27285 int res1 = 0 ;
27286 PyObject *swig_obj[1] ;
27287
27288 if (!args) SWIG_fail;
27289 swig_obj[0] = args;
27290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27291 if (!SWIG_IsOK(res1)) {
27292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27293 }
27294 arg1 = reinterpret_cast< wxListItem * >(argp1);
27295 {
27296 PyThreadState* __tstate = wxPyBeginAllowThreads();
b2dc1044 27297 {
0085ce49
RD
27298 wxString const &_result_ref = (arg1)->GetText();
27299 result = (wxString *) &_result_ref;
27300 }
27301 wxPyEndAllowThreads(__tstate);
27302 if (PyErr_Occurred()) SWIG_fail;
27303 }
27304 {
b2dc1044 27305#if wxUSE_UNICODE
0085ce49 27306 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
b2dc1044 27307#else
0085ce49 27308 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
b2dc1044 27309#endif
0085ce49
RD
27310 }
27311 return resultobj;
27312fail:
27313 return NULL;
d14a1e28
RD
27314}
27315
27316
0085ce49
RD
27317SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27318 PyObject *resultobj = 0;
27319 wxListItem *arg1 = (wxListItem *) 0 ;
27320 int result;
27321 void *argp1 = 0 ;
27322 int res1 = 0 ;
27323 PyObject *swig_obj[1] ;
27324
27325 if (!args) SWIG_fail;
27326 swig_obj[0] = args;
27327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27328 if (!SWIG_IsOK(res1)) {
27329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27330 }
27331 arg1 = reinterpret_cast< wxListItem * >(argp1);
27332 {
27333 PyThreadState* __tstate = wxPyBeginAllowThreads();
27334 result = (int)(arg1)->GetImage();
27335 wxPyEndAllowThreads(__tstate);
27336 if (PyErr_Occurred()) SWIG_fail;
27337 }
27338 resultobj = SWIG_From_int(static_cast< int >(result));
27339 return resultobj;
27340fail:
27341 return NULL;
d14a1e28
RD
27342}
27343
27344
0085ce49
RD
27345SWIGINTERN PyObject *_wrap_ListItem_GetData(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_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27358 }
27359 arg1 = reinterpret_cast< wxListItem * >(argp1);
27360 {
27361 PyThreadState* __tstate = wxPyBeginAllowThreads();
27362 result = (long)(arg1)->GetData();
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;
d14a1e28
RD
27370}
27371
27372
0085ce49
RD
27373SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27374 PyObject *resultobj = 0;
27375 wxListItem *arg1 = (wxListItem *) 0 ;
27376 int 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_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27386 }
27387 arg1 = reinterpret_cast< wxListItem * >(argp1);
27388 {
27389 PyThreadState* __tstate = wxPyBeginAllowThreads();
27390 result = (int)(arg1)->GetWidth();
27391 wxPyEndAllowThreads(__tstate);
27392 if (PyErr_Occurred()) SWIG_fail;
27393 }
27394 resultobj = SWIG_From_int(static_cast< int >(result));
27395 return resultobj;
27396fail:
27397 return NULL;
d14a1e28
RD
27398}
27399
27400
0085ce49
RD
27401SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27402 PyObject *resultobj = 0;
27403 wxListItem *arg1 = (wxListItem *) 0 ;
27404 wxListColumnFormat 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_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27414 }
27415 arg1 = reinterpret_cast< wxListItem * >(argp1);
27416 {
27417 PyThreadState* __tstate = wxPyBeginAllowThreads();
27418 result = (wxListColumnFormat)(arg1)->GetAlign();
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;
d14a1e28
RD
27426}
27427
27428
0085ce49
RD
27429SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27430 PyObject *resultobj = 0;
27431 wxListItem *arg1 = (wxListItem *) 0 ;
27432 wxListItemAttr *result = 0 ;
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_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27442 }
27443 arg1 = reinterpret_cast< wxListItem * >(argp1);
27444 {
27445 PyThreadState* __tstate = wxPyBeginAllowThreads();
27446 result = (wxListItemAttr *)(arg1)->GetAttributes();
27447 wxPyEndAllowThreads(__tstate);
27448 if (PyErr_Occurred()) SWIG_fail;
27449 }
27450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27451 return resultobj;
27452fail:
27453 return NULL;
d14a1e28
RD
27454}
27455
27456
0085ce49
RD
27457SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27458 PyObject *resultobj = 0;
27459 wxListItem *arg1 = (wxListItem *) 0 ;
27460 bool result;
27461 void *argp1 = 0 ;
27462 int res1 = 0 ;
27463 PyObject *swig_obj[1] ;
27464
27465 if (!args) SWIG_fail;
27466 swig_obj[0] = args;
27467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27468 if (!SWIG_IsOK(res1)) {
27469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27470 }
27471 arg1 = reinterpret_cast< wxListItem * >(argp1);
27472 {
27473 PyThreadState* __tstate = wxPyBeginAllowThreads();
27474 result = (bool)(arg1)->HasAttributes();
27475 wxPyEndAllowThreads(__tstate);
27476 if (PyErr_Occurred()) SWIG_fail;
27477 }
27478 {
27479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27480 }
27481 return resultobj;
27482fail:
27483 return NULL;
22bfe96c
RD
27484}
27485
27486
0085ce49
RD
27487SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27488 PyObject *resultobj = 0;
27489 wxListItem *arg1 = (wxListItem *) 0 ;
27490 wxColour result;
27491 void *argp1 = 0 ;
27492 int res1 = 0 ;
27493 PyObject *swig_obj[1] ;
27494
27495 if (!args) SWIG_fail;
27496 swig_obj[0] = args;
27497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27498 if (!SWIG_IsOK(res1)) {
27499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27500 }
27501 arg1 = reinterpret_cast< wxListItem * >(argp1);
27502 {
27503 PyThreadState* __tstate = wxPyBeginAllowThreads();
27504 result = ((wxListItem const *)arg1)->GetTextColour();
27505 wxPyEndAllowThreads(__tstate);
27506 if (PyErr_Occurred()) SWIG_fail;
27507 }
27508 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27509 return resultobj;
27510fail:
27511 return NULL;
d14a1e28 27512}
0085ce49
RD
27513
27514
27515SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27516 PyObject *resultobj = 0;
27517 wxListItem *arg1 = (wxListItem *) 0 ;
27518 wxColour result;
27519 void *argp1 = 0 ;
27520 int res1 = 0 ;
27521 PyObject *swig_obj[1] ;
27522
27523 if (!args) SWIG_fail;
27524 swig_obj[0] = args;
27525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27526 if (!SWIG_IsOK(res1)) {
27527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27528 }
27529 arg1 = reinterpret_cast< wxListItem * >(argp1);
27530 {
27531 PyThreadState* __tstate = wxPyBeginAllowThreads();
27532 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27533 wxPyEndAllowThreads(__tstate);
27534 if (PyErr_Occurred()) SWIG_fail;
27535 }
27536 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27537 return resultobj;
27538fail:
27539 return NULL;
b2dc1044
RD
27540}
27541
27542
0085ce49
RD
27543SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27544 PyObject *resultobj = 0;
27545 wxListItem *arg1 = (wxListItem *) 0 ;
27546 wxFont result;
27547 void *argp1 = 0 ;
27548 int res1 = 0 ;
27549 PyObject *swig_obj[1] ;
27550
27551 if (!args) SWIG_fail;
27552 swig_obj[0] = args;
27553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27554 if (!SWIG_IsOK(res1)) {
27555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27556 }
27557 arg1 = reinterpret_cast< wxListItem * >(argp1);
27558 {
27559 PyThreadState* __tstate = wxPyBeginAllowThreads();
27560 result = ((wxListItem const *)arg1)->GetFont();
27561 wxPyEndAllowThreads(__tstate);
27562 if (PyErr_Occurred()) SWIG_fail;
27563 }
27564 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27565 return resultobj;
27566fail:
27567 return NULL;
27568}
27569
27570
27571SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27572 PyObject *resultobj = 0;
27573 wxListItem *arg1 = (wxListItem *) 0 ;
27574 long arg2 ;
27575 void *argp1 = 0 ;
27576 int res1 = 0 ;
27577 long val2 ;
27578 int ecode2 = 0 ;
27579 PyObject *swig_obj[2] ;
27580
27581 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27583 if (!SWIG_IsOK(res1)) {
27584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27585 }
27586 arg1 = reinterpret_cast< wxListItem * >(argp1);
27587 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27588 if (!SWIG_IsOK(ecode2)) {
27589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27590 }
27591 arg2 = static_cast< long >(val2);
27592 if (arg1) (arg1)->m_mask = arg2;
27593
27594 resultobj = SWIG_Py_Void();
27595 return resultobj;
27596fail:
27597 return NULL;
b2dc1044
RD
27598}
27599
27600
0085ce49
RD
27601SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27602 PyObject *resultobj = 0;
27603 wxListItem *arg1 = (wxListItem *) 0 ;
27604 long result;
27605 void *argp1 = 0 ;
27606 int res1 = 0 ;
27607 PyObject *swig_obj[1] ;
27608
27609 if (!args) SWIG_fail;
27610 swig_obj[0] = args;
27611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27612 if (!SWIG_IsOK(res1)) {
27613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27614 }
27615 arg1 = reinterpret_cast< wxListItem * >(argp1);
27616 result = (long) ((arg1)->m_mask);
27617 resultobj = SWIG_From_long(static_cast< long >(result));
27618 return resultobj;
27619fail:
27620 return NULL;
27621}
27622
27623
27624SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27625 PyObject *resultobj = 0;
27626 wxListItem *arg1 = (wxListItem *) 0 ;
27627 long arg2 ;
27628 void *argp1 = 0 ;
27629 int res1 = 0 ;
27630 long val2 ;
27631 int ecode2 = 0 ;
27632 PyObject *swig_obj[2] ;
27633
27634 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27636 if (!SWIG_IsOK(res1)) {
27637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27638 }
27639 arg1 = reinterpret_cast< wxListItem * >(argp1);
27640 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27641 if (!SWIG_IsOK(ecode2)) {
27642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27643 }
27644 arg2 = static_cast< long >(val2);
27645 if (arg1) (arg1)->m_itemId = arg2;
27646
27647 resultobj = SWIG_Py_Void();
27648 return resultobj;
27649fail:
27650 return NULL;
d14a1e28
RD
27651}
27652
27653
0085ce49
RD
27654SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27655 PyObject *resultobj = 0;
27656 wxListItem *arg1 = (wxListItem *) 0 ;
27657 long result;
27658 void *argp1 = 0 ;
27659 int res1 = 0 ;
27660 PyObject *swig_obj[1] ;
27661
27662 if (!args) SWIG_fail;
27663 swig_obj[0] = args;
27664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27665 if (!SWIG_IsOK(res1)) {
27666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27667 }
27668 arg1 = reinterpret_cast< wxListItem * >(argp1);
27669 result = (long) ((arg1)->m_itemId);
27670 resultobj = SWIG_From_long(static_cast< long >(result));
27671 return resultobj;
27672fail:
27673 return NULL;
27674}
27675
27676
27677SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27678 PyObject *resultobj = 0;
27679 wxListItem *arg1 = (wxListItem *) 0 ;
27680 int arg2 ;
27681 void *argp1 = 0 ;
27682 int res1 = 0 ;
27683 int val2 ;
27684 int ecode2 = 0 ;
27685 PyObject *swig_obj[2] ;
27686
27687 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27689 if (!SWIG_IsOK(res1)) {
27690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27691 }
27692 arg1 = reinterpret_cast< wxListItem * >(argp1);
27693 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27694 if (!SWIG_IsOK(ecode2)) {
27695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27696 }
27697 arg2 = static_cast< int >(val2);
27698 if (arg1) (arg1)->m_col = arg2;
27699
27700 resultobj = SWIG_Py_Void();
27701 return resultobj;
27702fail:
27703 return NULL;
d14a1e28
RD
27704}
27705
27706
0085ce49
RD
27707SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27708 PyObject *resultobj = 0;
27709 wxListItem *arg1 = (wxListItem *) 0 ;
27710 int result;
27711 void *argp1 = 0 ;
27712 int res1 = 0 ;
27713 PyObject *swig_obj[1] ;
27714
27715 if (!args) SWIG_fail;
27716 swig_obj[0] = args;
27717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27718 if (!SWIG_IsOK(res1)) {
27719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27720 }
27721 arg1 = reinterpret_cast< wxListItem * >(argp1);
27722 result = (int) ((arg1)->m_col);
27723 resultobj = SWIG_From_int(static_cast< int >(result));
27724 return resultobj;
27725fail:
27726 return NULL;
27727}
27728
27729
27730SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27731 PyObject *resultobj = 0;
27732 wxListItem *arg1 = (wxListItem *) 0 ;
27733 long arg2 ;
27734 void *argp1 = 0 ;
27735 int res1 = 0 ;
27736 long val2 ;
27737 int ecode2 = 0 ;
27738 PyObject *swig_obj[2] ;
27739
27740 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27742 if (!SWIG_IsOK(res1)) {
27743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27744 }
27745 arg1 = reinterpret_cast< wxListItem * >(argp1);
27746 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27747 if (!SWIG_IsOK(ecode2)) {
27748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27749 }
27750 arg2 = static_cast< long >(val2);
27751 if (arg1) (arg1)->m_state = arg2;
27752
27753 resultobj = SWIG_Py_Void();
27754 return resultobj;
27755fail:
27756 return NULL;
8fb0e70a
RD
27757}
27758
27759
0085ce49
RD
27760SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27761 PyObject *resultobj = 0;
27762 wxListItem *arg1 = (wxListItem *) 0 ;
27763 long result;
27764 void *argp1 = 0 ;
27765 int res1 = 0 ;
27766 PyObject *swig_obj[1] ;
27767
27768 if (!args) SWIG_fail;
27769 swig_obj[0] = args;
27770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27771 if (!SWIG_IsOK(res1)) {
27772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27773 }
27774 arg1 = reinterpret_cast< wxListItem * >(argp1);
27775 result = (long) ((arg1)->m_state);
27776 resultobj = SWIG_From_long(static_cast< long >(result));
27777 return resultobj;
27778fail:
27779 return NULL;
27780}
27781
27782
27783SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27784 PyObject *resultobj = 0;
27785 wxListItem *arg1 = (wxListItem *) 0 ;
27786 long arg2 ;
27787 void *argp1 = 0 ;
27788 int res1 = 0 ;
27789 long val2 ;
27790 int ecode2 = 0 ;
27791 PyObject *swig_obj[2] ;
27792
27793 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27795 if (!SWIG_IsOK(res1)) {
27796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27797 }
27798 arg1 = reinterpret_cast< wxListItem * >(argp1);
27799 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27800 if (!SWIG_IsOK(ecode2)) {
27801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27802 }
27803 arg2 = static_cast< long >(val2);
27804 if (arg1) (arg1)->m_stateMask = arg2;
27805
27806 resultobj = SWIG_Py_Void();
27807 return resultobj;
27808fail:
27809 return NULL;
d14a1e28
RD
27810}
27811
27812
0085ce49
RD
27813SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27814 PyObject *resultobj = 0;
27815 wxListItem *arg1 = (wxListItem *) 0 ;
27816 long result;
27817 void *argp1 = 0 ;
27818 int res1 = 0 ;
27819 PyObject *swig_obj[1] ;
27820
27821 if (!args) SWIG_fail;
27822 swig_obj[0] = args;
27823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27824 if (!SWIG_IsOK(res1)) {
27825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27826 }
27827 arg1 = reinterpret_cast< wxListItem * >(argp1);
27828 result = (long) ((arg1)->m_stateMask);
27829 resultobj = SWIG_From_long(static_cast< long >(result));
27830 return resultobj;
27831fail:
27832 return NULL;
27833}
27834
27835
27836SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27837 PyObject *resultobj = 0;
27838 wxListItem *arg1 = (wxListItem *) 0 ;
27839 wxString *arg2 = (wxString *) 0 ;
27840 void *argp1 = 0 ;
27841 int res1 = 0 ;
27842 bool temp2 = false ;
27843 PyObject *swig_obj[2] ;
27844
27845 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27847 if (!SWIG_IsOK(res1)) {
27848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27849 }
27850 arg1 = reinterpret_cast< wxListItem * >(argp1);
27851 {
27852 arg2 = wxString_in_helper(swig_obj[1]);
27853 if (arg2 == NULL) SWIG_fail;
27854 temp2 = true;
27855 }
27856 if (arg1) (arg1)->m_text = *arg2;
27857
27858 resultobj = SWIG_Py_Void();
27859 {
27860 if (temp2)
27861 delete arg2;
27862 }
27863 return resultobj;
27864fail:
27865 {
27866 if (temp2)
27867 delete arg2;
27868 }
27869 return NULL;
d14a1e28
RD
27870}
27871
27872
0085ce49
RD
27873SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27874 PyObject *resultobj = 0;
27875 wxListItem *arg1 = (wxListItem *) 0 ;
27876 wxString *result = 0 ;
27877 void *argp1 = 0 ;
27878 int res1 = 0 ;
27879 PyObject *swig_obj[1] ;
27880
27881 if (!args) SWIG_fail;
27882 swig_obj[0] = args;
27883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27884 if (!SWIG_IsOK(res1)) {
27885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27886 }
27887 arg1 = reinterpret_cast< wxListItem * >(argp1);
27888 result = (wxString *)& ((arg1)->m_text);
27889 {
d14a1e28 27890#if wxUSE_UNICODE
0085ce49 27891 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 27892#else
0085ce49 27893 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 27894#endif
0085ce49
RD
27895 }
27896 return resultobj;
27897fail:
27898 return NULL;
d14a1e28
RD
27899}
27900
27901
0085ce49
RD
27902SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27903 PyObject *resultobj = 0;
27904 wxListItem *arg1 = (wxListItem *) 0 ;
27905 int arg2 ;
27906 void *argp1 = 0 ;
27907 int res1 = 0 ;
27908 int val2 ;
27909 int ecode2 = 0 ;
27910 PyObject *swig_obj[2] ;
27911
27912 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27914 if (!SWIG_IsOK(res1)) {
27915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27916 }
27917 arg1 = reinterpret_cast< wxListItem * >(argp1);
27918 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27919 if (!SWIG_IsOK(ecode2)) {
27920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27921 }
27922 arg2 = static_cast< int >(val2);
27923 if (arg1) (arg1)->m_image = arg2;
27924
27925 resultobj = SWIG_Py_Void();
27926 return resultobj;
27927fail:
27928 return NULL;
d14a1e28
RD
27929}
27930
27931
0085ce49
RD
27932SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27933 PyObject *resultobj = 0;
27934 wxListItem *arg1 = (wxListItem *) 0 ;
27935 int result;
27936 void *argp1 = 0 ;
27937 int res1 = 0 ;
27938 PyObject *swig_obj[1] ;
27939
27940 if (!args) SWIG_fail;
27941 swig_obj[0] = args;
27942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27943 if (!SWIG_IsOK(res1)) {
27944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27945 }
27946 arg1 = reinterpret_cast< wxListItem * >(argp1);
27947 result = (int) ((arg1)->m_image);
27948 resultobj = SWIG_From_int(static_cast< int >(result));
27949 return resultobj;
27950fail:
27951 return NULL;
27952}
27953
27954
27955SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27956 PyObject *resultobj = 0;
27957 wxListItem *arg1 = (wxListItem *) 0 ;
27958 long arg2 ;
27959 void *argp1 = 0 ;
27960 int res1 = 0 ;
27961 long val2 ;
27962 int ecode2 = 0 ;
27963 PyObject *swig_obj[2] ;
27964
27965 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27967 if (!SWIG_IsOK(res1)) {
27968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27969 }
27970 arg1 = reinterpret_cast< wxListItem * >(argp1);
27971 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27972 if (!SWIG_IsOK(ecode2)) {
27973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27974 }
27975 arg2 = static_cast< long >(val2);
27976 if (arg1) (arg1)->m_data = arg2;
27977
27978 resultobj = SWIG_Py_Void();
27979 return resultobj;
27980fail:
27981 return NULL;
d14a1e28
RD
27982}
27983
27984
0085ce49
RD
27985SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27986 PyObject *resultobj = 0;
27987 wxListItem *arg1 = (wxListItem *) 0 ;
27988 long result;
27989 void *argp1 = 0 ;
27990 int res1 = 0 ;
27991 PyObject *swig_obj[1] ;
27992
27993 if (!args) SWIG_fail;
27994 swig_obj[0] = args;
27995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27996 if (!SWIG_IsOK(res1)) {
27997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27998 }
27999 arg1 = reinterpret_cast< wxListItem * >(argp1);
28000 result = (long) ((arg1)->m_data);
28001 resultobj = SWIG_From_long(static_cast< long >(result));
28002 return resultobj;
28003fail:
28004 return NULL;
28005}
28006
28007
28008SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28009 PyObject *resultobj = 0;
28010 wxListItem *arg1 = (wxListItem *) 0 ;
28011 int arg2 ;
28012 void *argp1 = 0 ;
28013 int res1 = 0 ;
28014 int val2 ;
28015 int ecode2 = 0 ;
28016 PyObject *swig_obj[2] ;
28017
28018 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
28019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28020 if (!SWIG_IsOK(res1)) {
28021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28022 }
28023 arg1 = reinterpret_cast< wxListItem * >(argp1);
28024 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28025 if (!SWIG_IsOK(ecode2)) {
28026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
28027 }
28028 arg2 = static_cast< int >(val2);
28029 if (arg1) (arg1)->m_format = arg2;
28030
28031 resultobj = SWIG_Py_Void();
28032 return resultobj;
28033fail:
28034 return NULL;
d14a1e28
RD
28035}
28036
28037
0085ce49
RD
28038SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28039 PyObject *resultobj = 0;
28040 wxListItem *arg1 = (wxListItem *) 0 ;
28041 int result;
28042 void *argp1 = 0 ;
28043 int res1 = 0 ;
28044 PyObject *swig_obj[1] ;
28045
28046 if (!args) SWIG_fail;
28047 swig_obj[0] = args;
28048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28049 if (!SWIG_IsOK(res1)) {
28050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28051 }
28052 arg1 = reinterpret_cast< wxListItem * >(argp1);
28053 result = (int) ((arg1)->m_format);
28054 resultobj = SWIG_From_int(static_cast< int >(result));
28055 return resultobj;
28056fail:
28057 return NULL;
28058}
28059
28060
28061SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28062 PyObject *resultobj = 0;
28063 wxListItem *arg1 = (wxListItem *) 0 ;
28064 int arg2 ;
28065 void *argp1 = 0 ;
28066 int res1 = 0 ;
28067 int val2 ;
28068 int ecode2 = 0 ;
28069 PyObject *swig_obj[2] ;
28070
28071 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
28072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28073 if (!SWIG_IsOK(res1)) {
28074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28075 }
28076 arg1 = reinterpret_cast< wxListItem * >(argp1);
28077 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28078 if (!SWIG_IsOK(ecode2)) {
28079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28080 }
28081 arg2 = static_cast< int >(val2);
28082 if (arg1) (arg1)->m_width = arg2;
28083
28084 resultobj = SWIG_Py_Void();
28085 return resultobj;
28086fail:
28087 return NULL;
d14a1e28
RD
28088}
28089
28090
0085ce49
RD
28091SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28092 PyObject *resultobj = 0;
28093 wxListItem *arg1 = (wxListItem *) 0 ;
28094 int result;
28095 void *argp1 = 0 ;
28096 int res1 = 0 ;
28097 PyObject *swig_obj[1] ;
28098
28099 if (!args) SWIG_fail;
28100 swig_obj[0] = args;
28101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28102 if (!SWIG_IsOK(res1)) {
28103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28104 }
28105 arg1 = reinterpret_cast< wxListItem * >(argp1);
28106 result = (int) ((arg1)->m_width);
28107 resultobj = SWIG_From_int(static_cast< int >(result));
28108 return resultobj;
28109fail:
28110 return NULL;
28111}
28112
28113
28114SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28115 PyObject *obj;
28116 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28117 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28118 return SWIG_Py_Void();
28119}
28120
28121SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28122 return SWIG_Python_InitShadowInstance(args);
28123}
28124
28125SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28126 PyObject *resultobj = 0;
28127 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28128 int arg2 = (int) 0 ;
28129 wxListEvent *result = 0 ;
28130 int val1 ;
28131 int ecode1 = 0 ;
28132 int val2 ;
28133 int ecode2 = 0 ;
28134 PyObject * obj0 = 0 ;
28135 PyObject * obj1 = 0 ;
28136 char * kwnames[] = {
28137 (char *) "commandType",(char *) "id", NULL
28138 };
28139
28140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28141 if (obj0) {
28142 ecode1 = SWIG_AsVal_int(obj0, &val1);
28143 if (!SWIG_IsOK(ecode1)) {
28144 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28145 }
28146 arg1 = static_cast< wxEventType >(val1);
28147 }
28148 if (obj1) {
28149 ecode2 = SWIG_AsVal_int(obj1, &val2);
28150 if (!SWIG_IsOK(ecode2)) {
28151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28152 }
28153 arg2 = static_cast< int >(val2);
28154 }
28155 {
28156 PyThreadState* __tstate = wxPyBeginAllowThreads();
28157 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28158 wxPyEndAllowThreads(__tstate);
28159 if (PyErr_Occurred()) SWIG_fail;
28160 }
28161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28162 return resultobj;
28163fail:
28164 return NULL;
28165}
28166
28167
28168SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28169 PyObject *resultobj = 0;
28170 wxListEvent *arg1 = (wxListEvent *) 0 ;
28171 int arg2 ;
28172 void *argp1 = 0 ;
28173 int res1 = 0 ;
28174 int val2 ;
28175 int ecode2 = 0 ;
28176 PyObject *swig_obj[2] ;
28177
28178 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28180 if (!SWIG_IsOK(res1)) {
28181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28182 }
28183 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28184 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28185 if (!SWIG_IsOK(ecode2)) {
28186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28187 }
28188 arg2 = static_cast< int >(val2);
28189 if (arg1) (arg1)->m_code = arg2;
28190
28191 resultobj = SWIG_Py_Void();
28192 return resultobj;
28193fail:
28194 return NULL;
d14a1e28
RD
28195}
28196
28197
0085ce49
RD
28198SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28199 PyObject *resultobj = 0;
28200 wxListEvent *arg1 = (wxListEvent *) 0 ;
28201 int result;
28202 void *argp1 = 0 ;
28203 int res1 = 0 ;
28204 PyObject *swig_obj[1] ;
28205
28206 if (!args) SWIG_fail;
28207 swig_obj[0] = args;
28208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28209 if (!SWIG_IsOK(res1)) {
28210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28211 }
28212 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28213 result = (int) ((arg1)->m_code);
28214 resultobj = SWIG_From_int(static_cast< int >(result));
28215 return resultobj;
28216fail:
28217 return NULL;
28218}
28219
28220
28221SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28222 PyObject *resultobj = 0;
28223 wxListEvent *arg1 = (wxListEvent *) 0 ;
28224 long arg2 ;
28225 void *argp1 = 0 ;
28226 int res1 = 0 ;
28227 long val2 ;
28228 int ecode2 = 0 ;
28229 PyObject *swig_obj[2] ;
28230
28231 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28233 if (!SWIG_IsOK(res1)) {
28234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28235 }
28236 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28237 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28238 if (!SWIG_IsOK(ecode2)) {
28239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28240 }
28241 arg2 = static_cast< long >(val2);
28242 if (arg1) (arg1)->m_oldItemIndex = arg2;
28243
28244 resultobj = SWIG_Py_Void();
28245 return resultobj;
28246fail:
28247 return NULL;
d14a1e28
RD
28248}
28249
28250
0085ce49
RD
28251SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28252 PyObject *resultobj = 0;
28253 wxListEvent *arg1 = (wxListEvent *) 0 ;
28254 long result;
28255 void *argp1 = 0 ;
28256 int res1 = 0 ;
28257 PyObject *swig_obj[1] ;
28258
28259 if (!args) SWIG_fail;
28260 swig_obj[0] = args;
28261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28262 if (!SWIG_IsOK(res1)) {
28263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28264 }
28265 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28266 result = (long) ((arg1)->m_oldItemIndex);
28267 resultobj = SWIG_From_long(static_cast< long >(result));
28268 return resultobj;
28269fail:
28270 return NULL;
28271}
28272
28273
28274SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28275 PyObject *resultobj = 0;
28276 wxListEvent *arg1 = (wxListEvent *) 0 ;
28277 long arg2 ;
28278 void *argp1 = 0 ;
28279 int res1 = 0 ;
28280 long val2 ;
28281 int ecode2 = 0 ;
28282 PyObject *swig_obj[2] ;
28283
28284 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28286 if (!SWIG_IsOK(res1)) {
28287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28288 }
28289 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28290 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28291 if (!SWIG_IsOK(ecode2)) {
28292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28293 }
28294 arg2 = static_cast< long >(val2);
28295 if (arg1) (arg1)->m_itemIndex = arg2;
28296
28297 resultobj = SWIG_Py_Void();
28298 return resultobj;
28299fail:
28300 return NULL;
d14a1e28
RD
28301}
28302
28303
0085ce49
RD
28304SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28305 PyObject *resultobj = 0;
28306 wxListEvent *arg1 = (wxListEvent *) 0 ;
28307 long result;
28308 void *argp1 = 0 ;
28309 int res1 = 0 ;
28310 PyObject *swig_obj[1] ;
28311
28312 if (!args) SWIG_fail;
28313 swig_obj[0] = args;
28314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28315 if (!SWIG_IsOK(res1)) {
28316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28317 }
28318 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28319 result = (long) ((arg1)->m_itemIndex);
28320 resultobj = SWIG_From_long(static_cast< long >(result));
28321 return resultobj;
28322fail:
28323 return NULL;
28324}
28325
28326
28327SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28328 PyObject *resultobj = 0;
28329 wxListEvent *arg1 = (wxListEvent *) 0 ;
28330 int arg2 ;
28331 void *argp1 = 0 ;
28332 int res1 = 0 ;
28333 int val2 ;
28334 int ecode2 = 0 ;
28335 PyObject *swig_obj[2] ;
28336
28337 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28339 if (!SWIG_IsOK(res1)) {
28340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28341 }
28342 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28343 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28344 if (!SWIG_IsOK(ecode2)) {
28345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28346 }
28347 arg2 = static_cast< int >(val2);
28348 if (arg1) (arg1)->m_col = arg2;
28349
28350 resultobj = SWIG_Py_Void();
28351 return resultobj;
28352fail:
28353 return NULL;
7e08d4ef
RD
28354}
28355
28356
0085ce49
RD
28357SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28358 PyObject *resultobj = 0;
28359 wxListEvent *arg1 = (wxListEvent *) 0 ;
28360 int result;
28361 void *argp1 = 0 ;
28362 int res1 = 0 ;
28363 PyObject *swig_obj[1] ;
28364
28365 if (!args) SWIG_fail;
28366 swig_obj[0] = args;
28367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28368 if (!SWIG_IsOK(res1)) {
28369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28370 }
28371 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28372 result = (int) ((arg1)->m_col);
28373 resultobj = SWIG_From_int(static_cast< int >(result));
28374 return resultobj;
28375fail:
28376 return NULL;
28377}
28378
28379
28380SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28381 PyObject *resultobj = 0;
28382 wxListEvent *arg1 = (wxListEvent *) 0 ;
28383 wxPoint *arg2 = (wxPoint *) 0 ;
28384 void *argp1 = 0 ;
28385 int res1 = 0 ;
28386 void *argp2 = 0 ;
28387 int res2 = 0 ;
28388 PyObject *swig_obj[2] ;
28389
28390 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28392 if (!SWIG_IsOK(res1)) {
28393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28394 }
28395 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28396 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28397 if (!SWIG_IsOK(res2)) {
28398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28399 }
28400 arg2 = reinterpret_cast< wxPoint * >(argp2);
28401 if (arg1) (arg1)->m_pointDrag = *arg2;
28402
28403 resultobj = SWIG_Py_Void();
28404 return resultobj;
28405fail:
28406 return NULL;
7e08d4ef
RD
28407}
28408
28409
0085ce49
RD
28410SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28411 PyObject *resultobj = 0;
28412 wxListEvent *arg1 = (wxListEvent *) 0 ;
28413 wxPoint *result = 0 ;
28414 void *argp1 = 0 ;
28415 int res1 = 0 ;
28416 PyObject *swig_obj[1] ;
28417
28418 if (!args) SWIG_fail;
28419 swig_obj[0] = args;
28420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28421 if (!SWIG_IsOK(res1)) {
28422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28423 }
28424 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28425 result = (wxPoint *)& ((arg1)->m_pointDrag);
28426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28427 return resultobj;
28428fail:
28429 return NULL;
28430}
28431
28432
28433SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28434 PyObject *resultobj = 0;
28435 wxListEvent *arg1 = (wxListEvent *) 0 ;
28436 wxListItem *result = 0 ;
28437 void *argp1 = 0 ;
28438 int res1 = 0 ;
28439 PyObject *swig_obj[1] ;
28440
28441 if (!args) SWIG_fail;
28442 swig_obj[0] = args;
28443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28444 if (!SWIG_IsOK(res1)) {
28445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28446 }
28447 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28448 result = (wxListItem *)& ((arg1)->m_item);
28449 {
3ecece7e 28450 resultobj = wxPyMake_wxObject(result, 0);
0085ce49
RD
28451 }
28452 return resultobj;
28453fail:
28454 return NULL;
7e08d4ef
RD
28455}
28456
28457
0085ce49
RD
28458SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28459 PyObject *resultobj = 0;
28460 wxListEvent *arg1 = (wxListEvent *) 0 ;
28461 int result;
28462 void *argp1 = 0 ;
28463 int res1 = 0 ;
28464 PyObject *swig_obj[1] ;
28465
28466 if (!args) SWIG_fail;
28467 swig_obj[0] = args;
28468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28469 if (!SWIG_IsOK(res1)) {
28470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28471 }
28472 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28473 {
28474 PyThreadState* __tstate = wxPyBeginAllowThreads();
28475 result = (int)(arg1)->GetKeyCode();
28476 wxPyEndAllowThreads(__tstate);
28477 if (PyErr_Occurred()) SWIG_fail;
28478 }
28479 resultobj = SWIG_From_int(static_cast< int >(result));
28480 return resultobj;
28481fail:
28482 return NULL;
7e08d4ef
RD
28483}
28484
28485
0085ce49
RD
28486SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28487 PyObject *resultobj = 0;
28488 wxListEvent *arg1 = (wxListEvent *) 0 ;
28489 long result;
28490 void *argp1 = 0 ;
28491 int res1 = 0 ;
28492 PyObject *swig_obj[1] ;
28493
28494 if (!args) SWIG_fail;
28495 swig_obj[0] = args;
28496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28497 if (!SWIG_IsOK(res1)) {
28498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28499 }
28500 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28501 {
28502 PyThreadState* __tstate = wxPyBeginAllowThreads();
28503 result = (long)(arg1)->GetIndex();
28504 wxPyEndAllowThreads(__tstate);
28505 if (PyErr_Occurred()) SWIG_fail;
28506 }
28507 resultobj = SWIG_From_long(static_cast< long >(result));
28508 return resultobj;
28509fail:
28510 return NULL;
7e08d4ef
RD
28511}
28512
28513
0085ce49
RD
28514SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28515 PyObject *resultobj = 0;
28516 wxListEvent *arg1 = (wxListEvent *) 0 ;
28517 int result;
28518 void *argp1 = 0 ;
28519 int res1 = 0 ;
28520 PyObject *swig_obj[1] ;
28521
28522 if (!args) SWIG_fail;
28523 swig_obj[0] = args;
28524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28525 if (!SWIG_IsOK(res1)) {
28526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28527 }
28528 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28529 {
28530 PyThreadState* __tstate = wxPyBeginAllowThreads();
28531 result = (int)(arg1)->GetColumn();
28532 wxPyEndAllowThreads(__tstate);
28533 if (PyErr_Occurred()) SWIG_fail;
28534 }
28535 resultobj = SWIG_From_int(static_cast< int >(result));
28536 return resultobj;
28537fail:
28538 return NULL;
d14a1e28
RD
28539}
28540
28541
0085ce49
RD
28542SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28543 PyObject *resultobj = 0;
28544 wxListEvent *arg1 = (wxListEvent *) 0 ;
28545 wxPoint result;
28546 void *argp1 = 0 ;
28547 int res1 = 0 ;
28548 PyObject *swig_obj[1] ;
28549
28550 if (!args) SWIG_fail;
28551 swig_obj[0] = args;
28552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28553 if (!SWIG_IsOK(res1)) {
28554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28555 }
28556 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28557 {
28558 PyThreadState* __tstate = wxPyBeginAllowThreads();
28559 result = (arg1)->GetPoint();
28560 wxPyEndAllowThreads(__tstate);
28561 if (PyErr_Occurred()) SWIG_fail;
28562 }
28563 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28564 return resultobj;
28565fail:
28566 return NULL;
d14a1e28
RD
28567}
28568
28569
0085ce49
RD
28570SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28571 PyObject *resultobj = 0;
28572 wxListEvent *arg1 = (wxListEvent *) 0 ;
28573 wxString *result = 0 ;
28574 void *argp1 = 0 ;
28575 int res1 = 0 ;
28576 PyObject *swig_obj[1] ;
28577
28578 if (!args) SWIG_fail;
28579 swig_obj[0] = args;
28580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28581 if (!SWIG_IsOK(res1)) {
28582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28583 }
28584 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28585 {
28586 PyThreadState* __tstate = wxPyBeginAllowThreads();
4f89f6a3 28587 {
0085ce49
RD
28588 wxString const &_result_ref = (arg1)->GetLabel();
28589 result = (wxString *) &_result_ref;
4f89f6a3 28590 }
0085ce49
RD
28591 wxPyEndAllowThreads(__tstate);
28592 if (PyErr_Occurred()) SWIG_fail;
28593 }
28594 {
28595#if wxUSE_UNICODE
28596 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28597#else
28598 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28599#endif
28600 }
28601 return resultobj;
28602fail:
28603 return NULL;
d14a1e28
RD
28604}
28605
28606
0085ce49
RD
28607SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28608 PyObject *resultobj = 0;
28609 wxListEvent *arg1 = (wxListEvent *) 0 ;
28610 wxString *result = 0 ;
28611 void *argp1 = 0 ;
28612 int res1 = 0 ;
28613 PyObject *swig_obj[1] ;
28614
28615 if (!args) SWIG_fail;
28616 swig_obj[0] = args;
28617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28618 if (!SWIG_IsOK(res1)) {
28619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28620 }
28621 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28622 {
28623 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 28624 {
0085ce49
RD
28625 wxString const &_result_ref = (arg1)->GetText();
28626 result = (wxString *) &_result_ref;
d14a1e28 28627 }
0085ce49
RD
28628 wxPyEndAllowThreads(__tstate);
28629 if (PyErr_Occurred()) SWIG_fail;
28630 }
28631 {
28632#if wxUSE_UNICODE
28633 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28634#else
28635 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28636#endif
28637 }
28638 return resultobj;
28639fail:
28640 return NULL;
d14a1e28
RD
28641}
28642
28643
0085ce49
RD
28644SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28645 PyObject *resultobj = 0;
28646 wxListEvent *arg1 = (wxListEvent *) 0 ;
28647 int result;
28648 void *argp1 = 0 ;
28649 int res1 = 0 ;
28650 PyObject *swig_obj[1] ;
28651
28652 if (!args) SWIG_fail;
28653 swig_obj[0] = args;
28654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28655 if (!SWIG_IsOK(res1)) {
28656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28657 }
28658 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28659 {
28660 PyThreadState* __tstate = wxPyBeginAllowThreads();
28661 result = (int)(arg1)->GetImage();
28662 wxPyEndAllowThreads(__tstate);
28663 if (PyErr_Occurred()) SWIG_fail;
28664 }
28665 resultobj = SWIG_From_int(static_cast< int >(result));
28666 return resultobj;
28667fail:
28668 return NULL;
d14a1e28
RD
28669}
28670
28671
0085ce49
RD
28672SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28673 PyObject *resultobj = 0;
28674 wxListEvent *arg1 = (wxListEvent *) 0 ;
28675 long result;
28676 void *argp1 = 0 ;
28677 int res1 = 0 ;
28678 PyObject *swig_obj[1] ;
28679
28680 if (!args) SWIG_fail;
28681 swig_obj[0] = args;
28682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28683 if (!SWIG_IsOK(res1)) {
28684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28685 }
28686 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28687 {
28688 PyThreadState* __tstate = wxPyBeginAllowThreads();
28689 result = (long)(arg1)->GetData();
28690 wxPyEndAllowThreads(__tstate);
28691 if (PyErr_Occurred()) SWIG_fail;
28692 }
28693 resultobj = SWIG_From_long(static_cast< long >(result));
28694 return resultobj;
28695fail:
28696 return NULL;
d14a1e28
RD
28697}
28698
28699
0085ce49
RD
28700SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28701 PyObject *resultobj = 0;
28702 wxListEvent *arg1 = (wxListEvent *) 0 ;
28703 long result;
28704 void *argp1 = 0 ;
28705 int res1 = 0 ;
28706 PyObject *swig_obj[1] ;
28707
28708 if (!args) SWIG_fail;
28709 swig_obj[0] = args;
28710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28711 if (!SWIG_IsOK(res1)) {
28712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28713 }
28714 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28715 {
28716 PyThreadState* __tstate = wxPyBeginAllowThreads();
28717 result = (long)(arg1)->GetMask();
28718 wxPyEndAllowThreads(__tstate);
28719 if (PyErr_Occurred()) SWIG_fail;
28720 }
28721 resultobj = SWIG_From_long(static_cast< long >(result));
28722 return resultobj;
28723fail:
28724 return NULL;
d14a1e28
RD
28725}
28726
28727
0085ce49
RD
28728SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28729 PyObject *resultobj = 0;
28730 wxListEvent *arg1 = (wxListEvent *) 0 ;
28731 wxListItem *result = 0 ;
28732 void *argp1 = 0 ;
28733 int res1 = 0 ;
28734 PyObject *swig_obj[1] ;
28735
28736 if (!args) SWIG_fail;
28737 swig_obj[0] = args;
28738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28739 if (!SWIG_IsOK(res1)) {
28740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28741 }
28742 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28743 {
28744 PyThreadState* __tstate = wxPyBeginAllowThreads();
22bfe96c 28745 {
0085ce49
RD
28746 wxListItem const &_result_ref = (arg1)->GetItem();
28747 result = (wxListItem *) &_result_ref;
22bfe96c 28748 }
0085ce49
RD
28749 wxPyEndAllowThreads(__tstate);
28750 if (PyErr_Occurred()) SWIG_fail;
28751 }
28752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28753 return resultobj;
28754fail:
28755 return NULL;
22bfe96c
RD
28756}
28757
28758
0085ce49
RD
28759SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28760 PyObject *resultobj = 0;
28761 wxListEvent *arg1 = (wxListEvent *) 0 ;
28762 long result;
28763 void *argp1 = 0 ;
28764 int res1 = 0 ;
28765 PyObject *swig_obj[1] ;
28766
28767 if (!args) SWIG_fail;
28768 swig_obj[0] = args;
28769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28770 if (!SWIG_IsOK(res1)) {
28771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28772 }
28773 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28774 {
28775 PyThreadState* __tstate = wxPyBeginAllowThreads();
28776 result = (long)(arg1)->GetCacheFrom();
28777 wxPyEndAllowThreads(__tstate);
28778 if (PyErr_Occurred()) SWIG_fail;
28779 }
28780 resultobj = SWIG_From_long(static_cast< long >(result));
28781 return resultobj;
28782fail:
28783 return NULL;
d14a1e28
RD
28784}
28785
28786
0085ce49
RD
28787SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28788 PyObject *resultobj = 0;
28789 wxListEvent *arg1 = (wxListEvent *) 0 ;
28790 long result;
28791 void *argp1 = 0 ;
28792 int res1 = 0 ;
28793 PyObject *swig_obj[1] ;
28794
28795 if (!args) SWIG_fail;
28796 swig_obj[0] = args;
28797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28798 if (!SWIG_IsOK(res1)) {
28799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28800 }
28801 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28802 {
28803 PyThreadState* __tstate = wxPyBeginAllowThreads();
28804 result = (long)(arg1)->GetCacheTo();
28805 wxPyEndAllowThreads(__tstate);
28806 if (PyErr_Occurred()) SWIG_fail;
28807 }
28808 resultobj = SWIG_From_long(static_cast< long >(result));
28809 return resultobj;
28810fail:
28811 return NULL;
d14a1e28
RD
28812}
28813
28814
0085ce49
RD
28815SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28816 PyObject *resultobj = 0;
28817 wxListEvent *arg1 = (wxListEvent *) 0 ;
28818 bool result;
28819 void *argp1 = 0 ;
28820 int res1 = 0 ;
28821 PyObject *swig_obj[1] ;
28822
28823 if (!args) SWIG_fail;
28824 swig_obj[0] = args;
28825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28826 if (!SWIG_IsOK(res1)) {
28827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28828 }
28829 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28830 {
28831 PyThreadState* __tstate = wxPyBeginAllowThreads();
28832 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28833 wxPyEndAllowThreads(__tstate);
28834 if (PyErr_Occurred()) SWIG_fail;
28835 }
28836 {
28837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28838 }
28839 return resultobj;
28840fail:
28841 return NULL;
28842}
28843
28844
28845SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28846 PyObject *resultobj = 0;
28847 wxListEvent *arg1 = (wxListEvent *) 0 ;
28848 bool arg2 ;
28849 void *argp1 = 0 ;
28850 int res1 = 0 ;
28851 bool val2 ;
28852 int ecode2 = 0 ;
28853 PyObject * obj0 = 0 ;
28854 PyObject * obj1 = 0 ;
28855 char * kwnames[] = {
28856 (char *) "self",(char *) "editCancelled", NULL
28857 };
28858
28859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28861 if (!SWIG_IsOK(res1)) {
28862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28863 }
28864 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28865 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28866 if (!SWIG_IsOK(ecode2)) {
28867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28868 }
28869 arg2 = static_cast< bool >(val2);
28870 {
28871 PyThreadState* __tstate = wxPyBeginAllowThreads();
28872 (arg1)->SetEditCanceled(arg2);
28873 wxPyEndAllowThreads(__tstate);
28874 if (PyErr_Occurred()) SWIG_fail;
28875 }
28876 resultobj = SWIG_Py_Void();
28877 return resultobj;
28878fail:
28879 return NULL;
28880}
28881
28882
28883SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28884 PyObject *obj;
28885 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28886 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28887 return SWIG_Py_Void();
28888}
28889
28890SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28891 return SWIG_Python_InitShadowInstance(args);
28892}
28893
28894SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28895 PyObject *resultobj = 0;
28896 wxWindow *arg1 = (wxWindow *) 0 ;
28897 int arg2 = (int) -1 ;
28898 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28899 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28900 wxSize const &arg4_defvalue = wxDefaultSize ;
28901 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28902 long arg5 = (long) wxLC_ICON ;
28903 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28904 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28905 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28906 wxString *arg7 = (wxString *) &arg7_defvalue ;
28907 wxPyListCtrl *result = 0 ;
28908 void *argp1 = 0 ;
28909 int res1 = 0 ;
28910 int val2 ;
28911 int ecode2 = 0 ;
28912 wxPoint temp3 ;
28913 wxSize temp4 ;
28914 long val5 ;
28915 int ecode5 = 0 ;
28916 void *argp6 = 0 ;
28917 int res6 = 0 ;
28918 bool temp7 = false ;
28919 PyObject * obj0 = 0 ;
28920 PyObject * obj1 = 0 ;
28921 PyObject * obj2 = 0 ;
28922 PyObject * obj3 = 0 ;
28923 PyObject * obj4 = 0 ;
28924 PyObject * obj5 = 0 ;
28925 PyObject * obj6 = 0 ;
28926 char * kwnames[] = {
28927 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28928 };
28929
28930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28932 if (!SWIG_IsOK(res1)) {
28933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28934 }
28935 arg1 = reinterpret_cast< wxWindow * >(argp1);
28936 if (obj1) {
28937 ecode2 = SWIG_AsVal_int(obj1, &val2);
28938 if (!SWIG_IsOK(ecode2)) {
28939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28940 }
28941 arg2 = static_cast< int >(val2);
28942 }
28943 if (obj2) {
093d3ff1 28944 {
0085ce49
RD
28945 arg3 = &temp3;
28946 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 28947 }
0085ce49
RD
28948 }
28949 if (obj3) {
d14a1e28 28950 {
0085ce49
RD
28951 arg4 = &temp4;
28952 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 28953 }
0085ce49
RD
28954 }
28955 if (obj4) {
28956 ecode5 = SWIG_AsVal_long(obj4, &val5);
28957 if (!SWIG_IsOK(ecode5)) {
28958 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28959 }
28960 arg5 = static_cast< long >(val5);
28961 }
28962 if (obj5) {
28963 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28964 if (!SWIG_IsOK(res6)) {
28965 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 28966 }
0085ce49
RD
28967 if (!argp6) {
28968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28969 }
28970 arg6 = reinterpret_cast< wxValidator * >(argp6);
28971 }
28972 if (obj6) {
093d3ff1 28973 {
0085ce49
RD
28974 arg7 = wxString_in_helper(obj6);
28975 if (arg7 == NULL) SWIG_fail;
28976 temp7 = true;
093d3ff1 28977 }
0085ce49
RD
28978 }
28979 {
28980 if (!wxPyCheckForApp()) SWIG_fail;
28981 PyThreadState* __tstate = wxPyBeginAllowThreads();
28982 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28983 wxPyEndAllowThreads(__tstate);
28984 if (PyErr_Occurred()) SWIG_fail;
28985 }
28986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28987 {
28988 if (temp7)
28989 delete arg7;
28990 }
28991 return resultobj;
28992fail:
28993 {
28994 if (temp7)
28995 delete arg7;
28996 }
28997 return NULL;
d14a1e28
RD
28998}
28999
29000
0085ce49
RD
29001SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29002 PyObject *resultobj = 0;
29003 wxPyListCtrl *result = 0 ;
29004
29005 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
29006 {
29007 if (!wxPyCheckForApp()) SWIG_fail;
29008 PyThreadState* __tstate = wxPyBeginAllowThreads();
29009 result = (wxPyListCtrl *)new wxPyListCtrl();
29010 wxPyEndAllowThreads(__tstate);
29011 if (PyErr_Occurred()) SWIG_fail;
29012 }
29013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
29014 return resultobj;
29015fail:
29016 return NULL;
29017}
29018
29019
29020SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29021 PyObject *resultobj = 0;
29022 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29023 wxWindow *arg2 = (wxWindow *) 0 ;
29024 int arg3 = (int) -1 ;
29025 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29026 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29027 wxSize const &arg5_defvalue = wxDefaultSize ;
29028 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29029 long arg6 = (long) wxLC_ICON ;
29030 wxValidator const &arg7_defvalue = wxDefaultValidator ;
29031 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
29032 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
29033 wxString *arg8 = (wxString *) &arg8_defvalue ;
29034 bool result;
29035 void *argp1 = 0 ;
29036 int res1 = 0 ;
29037 void *argp2 = 0 ;
29038 int res2 = 0 ;
29039 int val3 ;
29040 int ecode3 = 0 ;
29041 wxPoint temp4 ;
29042 wxSize temp5 ;
29043 long val6 ;
29044 int ecode6 = 0 ;
29045 void *argp7 = 0 ;
29046 int res7 = 0 ;
29047 bool temp8 = false ;
29048 PyObject * obj0 = 0 ;
29049 PyObject * obj1 = 0 ;
29050 PyObject * obj2 = 0 ;
29051 PyObject * obj3 = 0 ;
29052 PyObject * obj4 = 0 ;
29053 PyObject * obj5 = 0 ;
29054 PyObject * obj6 = 0 ;
29055 PyObject * obj7 = 0 ;
29056 char * kwnames[] = {
29057 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29058 };
29059
29060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29062 if (!SWIG_IsOK(res1)) {
29063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29064 }
29065 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29066 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29067 if (!SWIG_IsOK(res2)) {
29068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
29069 }
29070 arg2 = reinterpret_cast< wxWindow * >(argp2);
29071 if (obj2) {
29072 ecode3 = SWIG_AsVal_int(obj2, &val3);
29073 if (!SWIG_IsOK(ecode3)) {
29074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29075 }
29076 arg3 = static_cast< int >(val3);
29077 }
29078 if (obj3) {
093d3ff1 29079 {
0085ce49
RD
29080 arg4 = &temp4;
29081 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 29082 }
0085ce49
RD
29083 }
29084 if (obj4) {
d14a1e28 29085 {
0085ce49
RD
29086 arg5 = &temp5;
29087 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 29088 }
0085ce49
RD
29089 }
29090 if (obj5) {
29091 ecode6 = SWIG_AsVal_long(obj5, &val6);
29092 if (!SWIG_IsOK(ecode6)) {
29093 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29094 }
29095 arg6 = static_cast< long >(val6);
29096 }
29097 if (obj6) {
29098 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29099 if (!SWIG_IsOK(res7)) {
29100 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 29101 }
0085ce49
RD
29102 if (!argp7) {
29103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 29104 }
0085ce49
RD
29105 arg7 = reinterpret_cast< wxValidator * >(argp7);
29106 }
29107 if (obj7) {
d14a1e28 29108 {
0085ce49
RD
29109 arg8 = wxString_in_helper(obj7);
29110 if (arg8 == NULL) SWIG_fail;
29111 temp8 = true;
d14a1e28 29112 }
0085ce49
RD
29113 }
29114 {
29115 PyThreadState* __tstate = wxPyBeginAllowThreads();
29116 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29117 wxPyEndAllowThreads(__tstate);
29118 if (PyErr_Occurred()) SWIG_fail;
29119 }
29120 {
29121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29122 }
29123 {
29124 if (temp8)
29125 delete arg8;
29126 }
29127 return resultobj;
29128fail:
29129 {
29130 if (temp8)
29131 delete arg8;
29132 }
29133 return NULL;
29134}
29135
29136
29137SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29138 PyObject *resultobj = 0;
29139 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29140 PyObject *arg2 = (PyObject *) 0 ;
29141 PyObject *arg3 = (PyObject *) 0 ;
29142 void *argp1 = 0 ;
29143 int res1 = 0 ;
29144 PyObject * obj0 = 0 ;
29145 PyObject * obj1 = 0 ;
29146 PyObject * obj2 = 0 ;
29147 char * kwnames[] = {
29148 (char *) "self",(char *) "self",(char *) "_class", NULL
29149 };
29150
29151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29153 if (!SWIG_IsOK(res1)) {
29154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29155 }
29156 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29157 arg2 = obj1;
29158 arg3 = obj2;
29159 {
29160 PyThreadState* __tstate = wxPyBeginAllowThreads();
29161 (arg1)->_setCallbackInfo(arg2,arg3);
29162 wxPyEndAllowThreads(__tstate);
29163 if (PyErr_Occurred()) SWIG_fail;
29164 }
29165 resultobj = SWIG_Py_Void();
29166 return resultobj;
29167fail:
29168 return NULL;
29169}
29170
29171
29172SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29173 PyObject *resultobj = 0;
29174 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29175 int arg2 ;
29176 wxListItem *result = 0 ;
29177 void *argp1 = 0 ;
29178 int res1 = 0 ;
29179 int val2 ;
29180 int ecode2 = 0 ;
29181 PyObject * obj0 = 0 ;
29182 PyObject * obj1 = 0 ;
29183 char * kwnames[] = {
29184 (char *) "self",(char *) "col", NULL
29185 };
29186
29187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29189 if (!SWIG_IsOK(res1)) {
29190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29191 }
29192 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29193 ecode2 = SWIG_AsVal_int(obj1, &val2);
29194 if (!SWIG_IsOK(ecode2)) {
29195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29196 }
29197 arg2 = static_cast< int >(val2);
29198 {
29199 PyThreadState* __tstate = wxPyBeginAllowThreads();
29200 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29201 wxPyEndAllowThreads(__tstate);
29202 if (PyErr_Occurred()) SWIG_fail;
29203 }
29204 {
3ecece7e 29205 resultobj = wxPyMake_wxObject(result, 0);
0085ce49
RD
29206 }
29207 return resultobj;
29208fail:
29209 return NULL;
29210}
29211
29212
29213SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29214 PyObject *resultobj = 0;
29215 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29216 int arg2 ;
29217 wxListItem *arg3 = 0 ;
29218 bool result;
29219 void *argp1 = 0 ;
29220 int res1 = 0 ;
29221 int val2 ;
29222 int ecode2 = 0 ;
29223 void *argp3 = 0 ;
29224 int res3 = 0 ;
29225 PyObject * obj0 = 0 ;
29226 PyObject * obj1 = 0 ;
29227 PyObject * obj2 = 0 ;
29228 char * kwnames[] = {
29229 (char *) "self",(char *) "col",(char *) "item", NULL
29230 };
29231
29232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29234 if (!SWIG_IsOK(res1)) {
29235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29236 }
29237 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29238 ecode2 = SWIG_AsVal_int(obj1, &val2);
29239 if (!SWIG_IsOK(ecode2)) {
29240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29241 }
29242 arg2 = static_cast< int >(val2);
29243 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29244 if (!SWIG_IsOK(res3)) {
29245 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29246 }
29247 if (!argp3) {
29248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29249 }
29250 arg3 = reinterpret_cast< wxListItem * >(argp3);
29251 {
29252 PyThreadState* __tstate = wxPyBeginAllowThreads();
29253 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29254 wxPyEndAllowThreads(__tstate);
29255 if (PyErr_Occurred()) SWIG_fail;
29256 }
29257 {
29258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29259 }
29260 return resultobj;
29261fail:
29262 return NULL;
29263}
29264
29265
29266SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29267 PyObject *resultobj = 0;
29268 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29269 int arg2 ;
29270 int result;
29271 void *argp1 = 0 ;
29272 int res1 = 0 ;
29273 int val2 ;
29274 int ecode2 = 0 ;
29275 PyObject * obj0 = 0 ;
29276 PyObject * obj1 = 0 ;
29277 char * kwnames[] = {
29278 (char *) "self",(char *) "col", NULL
29279 };
29280
29281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29283 if (!SWIG_IsOK(res1)) {
29284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29285 }
29286 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29287 ecode2 = SWIG_AsVal_int(obj1, &val2);
29288 if (!SWIG_IsOK(ecode2)) {
29289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29290 }
29291 arg2 = static_cast< int >(val2);
29292 {
29293 PyThreadState* __tstate = wxPyBeginAllowThreads();
29294 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29295 wxPyEndAllowThreads(__tstate);
29296 if (PyErr_Occurred()) SWIG_fail;
29297 }
29298 resultobj = SWIG_From_int(static_cast< int >(result));
29299 return resultobj;
29300fail:
29301 return NULL;
29302}
29303
29304
29305SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29306 PyObject *resultobj = 0;
29307 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29308 int arg2 ;
29309 int arg3 ;
29310 bool result;
29311 void *argp1 = 0 ;
29312 int res1 = 0 ;
29313 int val2 ;
29314 int ecode2 = 0 ;
29315 int val3 ;
29316 int ecode3 = 0 ;
29317 PyObject * obj0 = 0 ;
29318 PyObject * obj1 = 0 ;
29319 PyObject * obj2 = 0 ;
29320 char * kwnames[] = {
29321 (char *) "self",(char *) "col",(char *) "width", NULL
29322 };
29323
29324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29326 if (!SWIG_IsOK(res1)) {
29327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29328 }
29329 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29330 ecode2 = SWIG_AsVal_int(obj1, &val2);
29331 if (!SWIG_IsOK(ecode2)) {
29332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29333 }
29334 arg2 = static_cast< int >(val2);
29335 ecode3 = SWIG_AsVal_int(obj2, &val3);
29336 if (!SWIG_IsOK(ecode3)) {
29337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29338 }
29339 arg3 = static_cast< int >(val3);
29340 {
29341 PyThreadState* __tstate = wxPyBeginAllowThreads();
29342 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29343 wxPyEndAllowThreads(__tstate);
29344 if (PyErr_Occurred()) SWIG_fail;
29345 }
29346 {
29347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29348 }
29349 return resultobj;
29350fail:
29351 return NULL;
d14a1e28
RD
29352}
29353
29354
0085ce49
RD
29355SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29356 PyObject *resultobj = 0;
29357 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29358 int result;
29359 void *argp1 = 0 ;
29360 int res1 = 0 ;
29361 PyObject *swig_obj[1] ;
29362
29363 if (!args) SWIG_fail;
29364 swig_obj[0] = args;
29365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29366 if (!SWIG_IsOK(res1)) {
29367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29368 }
29369 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29370 {
29371 PyThreadState* __tstate = wxPyBeginAllowThreads();
29372 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29373 wxPyEndAllowThreads(__tstate);
29374 if (PyErr_Occurred()) SWIG_fail;
29375 }
29376 resultobj = SWIG_From_int(static_cast< int >(result));
29377 return resultobj;
29378fail:
29379 return NULL;
d14a1e28
RD
29380}
29381
29382
0085ce49
RD
29383SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29384 PyObject *resultobj = 0;
29385 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29386 wxRect result;
29387 void *argp1 = 0 ;
29388 int res1 = 0 ;
29389 PyObject *swig_obj[1] ;
29390
29391 if (!args) SWIG_fail;
29392 swig_obj[0] = args;
29393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29394 if (!SWIG_IsOK(res1)) {
29395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29396 }
29397 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29398 {
29399 PyThreadState* __tstate = wxPyBeginAllowThreads();
29400 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29401 wxPyEndAllowThreads(__tstate);
29402 if (PyErr_Occurred()) SWIG_fail;
29403 }
29404 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29405 return resultobj;
29406fail:
29407 return NULL;
d14a1e28
RD
29408}
29409
29410
0085ce49
RD
29411SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29412 PyObject *resultobj = 0;
29413 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29414 wxTextCtrl *result = 0 ;
29415 void *argp1 = 0 ;
29416 int res1 = 0 ;
29417 PyObject *swig_obj[1] ;
29418
29419 if (!args) SWIG_fail;
29420 swig_obj[0] = args;
29421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29422 if (!SWIG_IsOK(res1)) {
29423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29424 }
29425 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29426 {
29427 PyThreadState* __tstate = wxPyBeginAllowThreads();
29428 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29429 wxPyEndAllowThreads(__tstate);
29430 if (PyErr_Occurred()) SWIG_fail;
29431 }
29432 {
29433 resultobj = wxPyMake_wxObject(result, 0);
29434 }
29435 return resultobj;
29436fail:
29437 return NULL;
29438}
29439
29440
29441SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29442 PyObject *resultobj = 0;
29443 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29444 long arg2 ;
29445 int arg3 = (int) 0 ;
29446 wxListItem *result = 0 ;
29447 void *argp1 = 0 ;
29448 int res1 = 0 ;
29449 long val2 ;
29450 int ecode2 = 0 ;
29451 int val3 ;
29452 int ecode3 = 0 ;
29453 PyObject * obj0 = 0 ;
29454 PyObject * obj1 = 0 ;
29455 PyObject * obj2 = 0 ;
29456 char * kwnames[] = {
29457 (char *) "self",(char *) "itemId",(char *) "col", NULL
29458 };
29459
29460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29462 if (!SWIG_IsOK(res1)) {
29463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29464 }
29465 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29466 ecode2 = SWIG_AsVal_long(obj1, &val2);
29467 if (!SWIG_IsOK(ecode2)) {
29468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29469 }
29470 arg2 = static_cast< long >(val2);
29471 if (obj2) {
29472 ecode3 = SWIG_AsVal_int(obj2, &val3);
29473 if (!SWIG_IsOK(ecode3)) {
29474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29475 }
29476 arg3 = static_cast< int >(val3);
29477 }
29478 {
29479 PyThreadState* __tstate = wxPyBeginAllowThreads();
29480 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29481 wxPyEndAllowThreads(__tstate);
29482 if (PyErr_Occurred()) SWIG_fail;
29483 }
29484 {
3ecece7e 29485 resultobj = wxPyMake_wxObject(result, 0);
0085ce49
RD
29486 }
29487 return resultobj;
29488fail:
29489 return NULL;
29490}
29491
29492
29493SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29494 PyObject *resultobj = 0;
29495 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29496 wxListItem *arg2 = 0 ;
29497 bool result;
29498 void *argp1 = 0 ;
29499 int res1 = 0 ;
29500 void *argp2 = 0 ;
29501 int res2 = 0 ;
29502 PyObject * obj0 = 0 ;
29503 PyObject * obj1 = 0 ;
29504 char * kwnames[] = {
29505 (char *) "self",(char *) "info", NULL
29506 };
29507
29508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29510 if (!SWIG_IsOK(res1)) {
29511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29512 }
29513 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29514 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29515 if (!SWIG_IsOK(res2)) {
29516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29517 }
29518 if (!argp2) {
29519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29520 }
29521 arg2 = reinterpret_cast< wxListItem * >(argp2);
29522 {
29523 PyThreadState* __tstate = wxPyBeginAllowThreads();
29524 result = (bool)(arg1)->SetItem(*arg2);
29525 wxPyEndAllowThreads(__tstate);
29526 if (PyErr_Occurred()) SWIG_fail;
29527 }
29528 {
29529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29530 }
29531 return resultobj;
29532fail:
29533 return NULL;
29534}
29535
29536
29537SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29538 PyObject *resultobj = 0;
29539 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29540 long arg2 ;
29541 int arg3 ;
29542 wxString *arg4 = 0 ;
29543 int arg5 = (int) -1 ;
29544 long result;
29545 void *argp1 = 0 ;
29546 int res1 = 0 ;
29547 long val2 ;
29548 int ecode2 = 0 ;
29549 int val3 ;
29550 int ecode3 = 0 ;
29551 bool temp4 = false ;
29552 int val5 ;
29553 int ecode5 = 0 ;
29554 PyObject * obj0 = 0 ;
29555 PyObject * obj1 = 0 ;
29556 PyObject * obj2 = 0 ;
29557 PyObject * obj3 = 0 ;
29558 PyObject * obj4 = 0 ;
29559 char * kwnames[] = {
29560 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29561 };
29562
29563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29565 if (!SWIG_IsOK(res1)) {
29566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29567 }
29568 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29569 ecode2 = SWIG_AsVal_long(obj1, &val2);
29570 if (!SWIG_IsOK(ecode2)) {
29571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29572 }
29573 arg2 = static_cast< long >(val2);
29574 ecode3 = SWIG_AsVal_int(obj2, &val3);
29575 if (!SWIG_IsOK(ecode3)) {
29576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29577 }
29578 arg3 = static_cast< int >(val3);
29579 {
29580 arg4 = wxString_in_helper(obj3);
29581 if (arg4 == NULL) SWIG_fail;
29582 temp4 = true;
29583 }
29584 if (obj4) {
29585 ecode5 = SWIG_AsVal_int(obj4, &val5);
29586 if (!SWIG_IsOK(ecode5)) {
29587 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29588 }
29589 arg5 = static_cast< int >(val5);
29590 }
29591 {
29592 PyThreadState* __tstate = wxPyBeginAllowThreads();
29593 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29594 wxPyEndAllowThreads(__tstate);
29595 if (PyErr_Occurred()) SWIG_fail;
29596 }
29597 resultobj = SWIG_From_long(static_cast< long >(result));
29598 {
29599 if (temp4)
29600 delete arg4;
29601 }
29602 return resultobj;
29603fail:
29604 {
29605 if (temp4)
29606 delete arg4;
29607 }
29608 return NULL;
29609}
29610
29611
29612SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29613 PyObject *resultobj = 0;
29614 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29615 long arg2 ;
29616 long arg3 ;
29617 int result;
29618 void *argp1 = 0 ;
29619 int res1 = 0 ;
29620 long val2 ;
29621 int ecode2 = 0 ;
29622 long val3 ;
29623 int ecode3 = 0 ;
29624 PyObject * obj0 = 0 ;
29625 PyObject * obj1 = 0 ;
29626 PyObject * obj2 = 0 ;
29627 char * kwnames[] = {
29628 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29629 };
29630
29631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29633 if (!SWIG_IsOK(res1)) {
29634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29635 }
29636 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29637 ecode2 = SWIG_AsVal_long(obj1, &val2);
29638 if (!SWIG_IsOK(ecode2)) {
29639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29640 }
29641 arg2 = static_cast< long >(val2);
29642 ecode3 = SWIG_AsVal_long(obj2, &val3);
29643 if (!SWIG_IsOK(ecode3)) {
29644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29645 }
29646 arg3 = static_cast< long >(val3);
29647 {
29648 PyThreadState* __tstate = wxPyBeginAllowThreads();
29649 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29650 wxPyEndAllowThreads(__tstate);
29651 if (PyErr_Occurred()) SWIG_fail;
29652 }
29653 resultobj = SWIG_From_int(static_cast< int >(result));
29654 return resultobj;
29655fail:
29656 return NULL;
29657}
29658
29659
29660SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29661 PyObject *resultobj = 0;
29662 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29663 long arg2 ;
29664 long arg3 ;
29665 long arg4 ;
29666 bool result;
29667 void *argp1 = 0 ;
29668 int res1 = 0 ;
29669 long val2 ;
29670 int ecode2 = 0 ;
29671 long val3 ;
29672 int ecode3 = 0 ;
29673 long val4 ;
29674 int ecode4 = 0 ;
29675 PyObject * obj0 = 0 ;
29676 PyObject * obj1 = 0 ;
29677 PyObject * obj2 = 0 ;
29678 PyObject * obj3 = 0 ;
29679 char * kwnames[] = {
29680 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29681 };
29682
29683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29685 if (!SWIG_IsOK(res1)) {
29686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29687 }
29688 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29689 ecode2 = SWIG_AsVal_long(obj1, &val2);
29690 if (!SWIG_IsOK(ecode2)) {
29691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29692 }
29693 arg2 = static_cast< long >(val2);
29694 ecode3 = SWIG_AsVal_long(obj2, &val3);
29695 if (!SWIG_IsOK(ecode3)) {
29696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29697 }
29698 arg3 = static_cast< long >(val3);
29699 ecode4 = SWIG_AsVal_long(obj3, &val4);
29700 if (!SWIG_IsOK(ecode4)) {
29701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29702 }
29703 arg4 = static_cast< long >(val4);
29704 {
29705 PyThreadState* __tstate = wxPyBeginAllowThreads();
29706 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29707 wxPyEndAllowThreads(__tstate);
29708 if (PyErr_Occurred()) SWIG_fail;
29709 }
29710 {
29711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29712 }
29713 return resultobj;
29714fail:
29715 return NULL;
29716}
29717
29718
29719SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29720 PyObject *resultobj = 0;
29721 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29722 long arg2 ;
29723 int arg3 ;
29724 int arg4 = (int) -1 ;
29725 bool result;
29726 void *argp1 = 0 ;
29727 int res1 = 0 ;
29728 long val2 ;
29729 int ecode2 = 0 ;
29730 int val3 ;
29731 int ecode3 = 0 ;
29732 int val4 ;
29733 int ecode4 = 0 ;
29734 PyObject * obj0 = 0 ;
29735 PyObject * obj1 = 0 ;
29736 PyObject * obj2 = 0 ;
29737 PyObject * obj3 = 0 ;
29738 char * kwnames[] = {
29739 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29740 };
29741
29742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29744 if (!SWIG_IsOK(res1)) {
29745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29746 }
29747 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29748 ecode2 = SWIG_AsVal_long(obj1, &val2);
29749 if (!SWIG_IsOK(ecode2)) {
29750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29751 }
29752 arg2 = static_cast< long >(val2);
29753 ecode3 = SWIG_AsVal_int(obj2, &val3);
29754 if (!SWIG_IsOK(ecode3)) {
29755 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29756 }
29757 arg3 = static_cast< int >(val3);
29758 if (obj3) {
29759 ecode4 = SWIG_AsVal_int(obj3, &val4);
29760 if (!SWIG_IsOK(ecode4)) {
29761 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29762 }
29763 arg4 = static_cast< int >(val4);
29764 }
29765 {
29766 PyThreadState* __tstate = wxPyBeginAllowThreads();
29767 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29768 wxPyEndAllowThreads(__tstate);
29769 if (PyErr_Occurred()) SWIG_fail;
29770 }
29771 {
29772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29773 }
29774 return resultobj;
29775fail:
29776 return NULL;
29777}
29778
29779
29780SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29781 PyObject *resultobj = 0;
29782 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29783 long arg2 ;
29784 long arg3 ;
29785 int arg4 ;
29786 bool result;
29787 void *argp1 = 0 ;
29788 int res1 = 0 ;
29789 long val2 ;
29790 int ecode2 = 0 ;
29791 long val3 ;
29792 int ecode3 = 0 ;
29793 int val4 ;
29794 int ecode4 = 0 ;
29795 PyObject * obj0 = 0 ;
29796 PyObject * obj1 = 0 ;
29797 PyObject * obj2 = 0 ;
29798 PyObject * obj3 = 0 ;
29799 char * kwnames[] = {
29800 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29801 };
29802
29803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29805 if (!SWIG_IsOK(res1)) {
29806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29807 }
29808 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29809 ecode2 = SWIG_AsVal_long(obj1, &val2);
29810 if (!SWIG_IsOK(ecode2)) {
29811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29812 }
29813 arg2 = static_cast< long >(val2);
29814 ecode3 = SWIG_AsVal_long(obj2, &val3);
29815 if (!SWIG_IsOK(ecode3)) {
29816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29817 }
29818 arg3 = static_cast< long >(val3);
29819 ecode4 = SWIG_AsVal_int(obj3, &val4);
29820 if (!SWIG_IsOK(ecode4)) {
29821 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29822 }
29823 arg4 = static_cast< int >(val4);
29824 {
29825 PyThreadState* __tstate = wxPyBeginAllowThreads();
29826 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29827 wxPyEndAllowThreads(__tstate);
29828 if (PyErr_Occurred()) SWIG_fail;
29829 }
29830 {
29831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29832 }
29833 return resultobj;
29834fail:
29835 return NULL;
29836}
29837
29838
29839SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29840 PyObject *resultobj = 0;
29841 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29842 long arg2 ;
29843 wxString result;
29844 void *argp1 = 0 ;
29845 int res1 = 0 ;
29846 long val2 ;
29847 int ecode2 = 0 ;
29848 PyObject * obj0 = 0 ;
29849 PyObject * obj1 = 0 ;
29850 char * kwnames[] = {
29851 (char *) "self",(char *) "item", NULL
29852 };
29853
29854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29856 if (!SWIG_IsOK(res1)) {
29857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29858 }
29859 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29860 ecode2 = SWIG_AsVal_long(obj1, &val2);
29861 if (!SWIG_IsOK(ecode2)) {
29862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29863 }
29864 arg2 = static_cast< long >(val2);
29865 {
29866 PyThreadState* __tstate = wxPyBeginAllowThreads();
29867 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29868 wxPyEndAllowThreads(__tstate);
29869 if (PyErr_Occurred()) SWIG_fail;
29870 }
29871 {
29872#if wxUSE_UNICODE
29873 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29874#else
29875 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29876#endif
29877 }
29878 return resultobj;
29879fail:
29880 return NULL;
29881}
29882
29883
29884SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29885 PyObject *resultobj = 0;
29886 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29887 long arg2 ;
29888 wxString *arg3 = 0 ;
29889 void *argp1 = 0 ;
29890 int res1 = 0 ;
29891 long val2 ;
29892 int ecode2 = 0 ;
29893 bool temp3 = false ;
29894 PyObject * obj0 = 0 ;
29895 PyObject * obj1 = 0 ;
29896 PyObject * obj2 = 0 ;
29897 char * kwnames[] = {
29898 (char *) "self",(char *) "item",(char *) "str", NULL
29899 };
29900
29901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29903 if (!SWIG_IsOK(res1)) {
29904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29905 }
29906 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29907 ecode2 = SWIG_AsVal_long(obj1, &val2);
29908 if (!SWIG_IsOK(ecode2)) {
29909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29910 }
29911 arg2 = static_cast< long >(val2);
29912 {
29913 arg3 = wxString_in_helper(obj2);
29914 if (arg3 == NULL) SWIG_fail;
29915 temp3 = true;
29916 }
29917 {
29918 PyThreadState* __tstate = wxPyBeginAllowThreads();
29919 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29920 wxPyEndAllowThreads(__tstate);
29921 if (PyErr_Occurred()) SWIG_fail;
29922 }
29923 resultobj = SWIG_Py_Void();
29924 {
29925 if (temp3)
29926 delete arg3;
29927 }
29928 return resultobj;
29929fail:
29930 {
29931 if (temp3)
29932 delete arg3;
29933 }
29934 return NULL;
29935}
29936
29937
29938SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29939 PyObject *resultobj = 0;
29940 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29941 long arg2 ;
29942 long result;
29943 void *argp1 = 0 ;
29944 int res1 = 0 ;
29945 long val2 ;
29946 int ecode2 = 0 ;
29947 PyObject * obj0 = 0 ;
29948 PyObject * obj1 = 0 ;
29949 char * kwnames[] = {
29950 (char *) "self",(char *) "item", NULL
29951 };
29952
29953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29955 if (!SWIG_IsOK(res1)) {
29956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29957 }
29958 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29959 ecode2 = SWIG_AsVal_long(obj1, &val2);
29960 if (!SWIG_IsOK(ecode2)) {
29961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29962 }
29963 arg2 = static_cast< long >(val2);
29964 {
29965 PyThreadState* __tstate = wxPyBeginAllowThreads();
29966 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29967 wxPyEndAllowThreads(__tstate);
29968 if (PyErr_Occurred()) SWIG_fail;
29969 }
29970 resultobj = SWIG_From_long(static_cast< long >(result));
29971 return resultobj;
29972fail:
29973 return NULL;
29974}
29975
29976
29977SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29978 PyObject *resultobj = 0;
29979 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29980 long arg2 ;
29981 long arg3 ;
29982 bool result;
29983 void *argp1 = 0 ;
29984 int res1 = 0 ;
29985 long val2 ;
29986 int ecode2 = 0 ;
29987 long val3 ;
29988 int ecode3 = 0 ;
29989 PyObject * obj0 = 0 ;
29990 PyObject * obj1 = 0 ;
29991 PyObject * obj2 = 0 ;
29992 char * kwnames[] = {
29993 (char *) "self",(char *) "item",(char *) "data", NULL
29994 };
29995
29996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29998 if (!SWIG_IsOK(res1)) {
29999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30000 }
30001 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30002 ecode2 = SWIG_AsVal_long(obj1, &val2);
30003 if (!SWIG_IsOK(ecode2)) {
30004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
30005 }
30006 arg2 = static_cast< long >(val2);
30007 ecode3 = SWIG_AsVal_long(obj2, &val3);
30008 if (!SWIG_IsOK(ecode3)) {
30009 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
30010 }
30011 arg3 = static_cast< long >(val3);
30012 {
30013 PyThreadState* __tstate = wxPyBeginAllowThreads();
30014 result = (bool)(arg1)->SetItemData(arg2,arg3);
30015 wxPyEndAllowThreads(__tstate);
30016 if (PyErr_Occurred()) SWIG_fail;
30017 }
30018 {
30019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30020 }
30021 return resultobj;
30022fail:
30023 return NULL;
30024}
30025
30026
30027SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30028 PyObject *resultobj = 0;
30029 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30030 long arg2 ;
30031 wxPoint result;
30032 void *argp1 = 0 ;
30033 int res1 = 0 ;
30034 long val2 ;
30035 int ecode2 = 0 ;
30036 PyObject * obj0 = 0 ;
30037 PyObject * obj1 = 0 ;
30038 char * kwnames[] = {
30039 (char *) "self",(char *) "item", NULL
30040 };
30041
30042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
30043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30044 if (!SWIG_IsOK(res1)) {
30045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30046 }
30047 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30048 ecode2 = SWIG_AsVal_long(obj1, &val2);
30049 if (!SWIG_IsOK(ecode2)) {
30050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
30051 }
30052 arg2 = static_cast< long >(val2);
30053 {
30054 PyThreadState* __tstate = wxPyBeginAllowThreads();
30055 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
30056 wxPyEndAllowThreads(__tstate);
30057 if (PyErr_Occurred()) SWIG_fail;
30058 }
30059 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
30060 return resultobj;
30061fail:
30062 return NULL;
30063}
30064
30065
30066SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30067 PyObject *resultobj = 0;
30068 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30069 long arg2 ;
30070 int arg3 = (int) wxLIST_RECT_BOUNDS ;
30071 wxRect result;
30072 void *argp1 = 0 ;
30073 int res1 = 0 ;
30074 long val2 ;
30075 int ecode2 = 0 ;
30076 int val3 ;
30077 int ecode3 = 0 ;
30078 PyObject * obj0 = 0 ;
30079 PyObject * obj1 = 0 ;
30080 PyObject * obj2 = 0 ;
30081 char * kwnames[] = {
30082 (char *) "self",(char *) "item",(char *) "code", NULL
30083 };
30084
30085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30087 if (!SWIG_IsOK(res1)) {
30088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30089 }
30090 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30091 ecode2 = SWIG_AsVal_long(obj1, &val2);
30092 if (!SWIG_IsOK(ecode2)) {
30093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
30094 }
30095 arg2 = static_cast< long >(val2);
30096 if (obj2) {
30097 ecode3 = SWIG_AsVal_int(obj2, &val3);
30098 if (!SWIG_IsOK(ecode3)) {
30099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30100 }
30101 arg3 = static_cast< int >(val3);
30102 }
30103 {
30104 PyThreadState* __tstate = wxPyBeginAllowThreads();
30105 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30106 wxPyEndAllowThreads(__tstate);
30107 if (PyErr_Occurred()) SWIG_fail;
30108 }
30109 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30110 return resultobj;
30111fail:
30112 return NULL;
30113}
30114
30115
30116SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30117 PyObject *resultobj = 0;
30118 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30119 long arg2 ;
30120 wxPoint *arg3 = 0 ;
30121 bool result;
30122 void *argp1 = 0 ;
30123 int res1 = 0 ;
30124 long val2 ;
30125 int ecode2 = 0 ;
30126 wxPoint temp3 ;
30127 PyObject * obj0 = 0 ;
30128 PyObject * obj1 = 0 ;
30129 PyObject * obj2 = 0 ;
30130 char * kwnames[] = {
30131 (char *) "self",(char *) "item",(char *) "pos", NULL
30132 };
30133
30134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30136 if (!SWIG_IsOK(res1)) {
30137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30138 }
30139 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30140 ecode2 = SWIG_AsVal_long(obj1, &val2);
30141 if (!SWIG_IsOK(ecode2)) {
30142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30143 }
30144 arg2 = static_cast< long >(val2);
30145 {
30146 arg3 = &temp3;
30147 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30148 }
30149 {
30150 PyThreadState* __tstate = wxPyBeginAllowThreads();
30151 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30152 wxPyEndAllowThreads(__tstate);
30153 if (PyErr_Occurred()) SWIG_fail;
30154 }
30155 {
30156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30157 }
30158 return resultobj;
30159fail:
30160 return NULL;
d14a1e28
RD
30161}
30162
30163
0085ce49
RD
30164SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30165 PyObject *resultobj = 0;
30166 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30167 int result;
30168 void *argp1 = 0 ;
30169 int res1 = 0 ;
30170 PyObject *swig_obj[1] ;
30171
30172 if (!args) SWIG_fail;
30173 swig_obj[0] = args;
30174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30175 if (!SWIG_IsOK(res1)) {
30176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30177 }
30178 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30179 {
30180 PyThreadState* __tstate = wxPyBeginAllowThreads();
30181 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30182 wxPyEndAllowThreads(__tstate);
30183 if (PyErr_Occurred()) SWIG_fail;
30184 }
30185 resultobj = SWIG_From_int(static_cast< int >(result));
30186 return resultobj;
30187fail:
30188 return NULL;
d14a1e28
RD
30189}
30190
30191
0085ce49
RD
30192SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30193 PyObject *resultobj = 0;
30194 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30195 int result;
30196 void *argp1 = 0 ;
30197 int res1 = 0 ;
30198 PyObject *swig_obj[1] ;
30199
30200 if (!args) SWIG_fail;
30201 swig_obj[0] = args;
30202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30203 if (!SWIG_IsOK(res1)) {
30204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30205 }
30206 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30207 {
30208 PyThreadState* __tstate = wxPyBeginAllowThreads();
30209 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30210 wxPyEndAllowThreads(__tstate);
30211 if (PyErr_Occurred()) SWIG_fail;
30212 }
30213 resultobj = SWIG_From_int(static_cast< int >(result));
30214 return resultobj;
30215fail:
30216 return NULL;
d14a1e28
RD
30217}
30218
30219
0085ce49
RD
30220SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30221 PyObject *resultobj = 0;
30222 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30223 wxSize result;
30224 void *argp1 = 0 ;
30225 int res1 = 0 ;
30226 PyObject *swig_obj[1] ;
30227
30228 if (!args) SWIG_fail;
30229 swig_obj[0] = args;
30230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30231 if (!SWIG_IsOK(res1)) {
30232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30233 }
30234 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30235 {
30236 PyThreadState* __tstate = wxPyBeginAllowThreads();
30237 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30238 wxPyEndAllowThreads(__tstate);
30239 if (PyErr_Occurred()) SWIG_fail;
30240 }
30241 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30242 return resultobj;
30243fail:
30244 return NULL;
30245}
30246
30247
30248SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30249 PyObject *resultobj = 0;
30250 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30251 int arg2 ;
30252 bool arg3 = (bool) false ;
30253 void *argp1 = 0 ;
30254 int res1 = 0 ;
30255 int val2 ;
30256 int ecode2 = 0 ;
30257 bool val3 ;
30258 int ecode3 = 0 ;
30259 PyObject * obj0 = 0 ;
30260 PyObject * obj1 = 0 ;
30261 PyObject * obj2 = 0 ;
30262 char * kwnames[] = {
30263 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
30264 };
30265
30266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30268 if (!SWIG_IsOK(res1)) {
30269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30270 }
30271 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30272 ecode2 = SWIG_AsVal_int(obj1, &val2);
30273 if (!SWIG_IsOK(ecode2)) {
30274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
30275 }
30276 arg2 = static_cast< int >(val2);
30277 if (obj2) {
30278 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30279 if (!SWIG_IsOK(ecode3)) {
30280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30281 }
30282 arg3 = static_cast< bool >(val3);
30283 }
30284 {
30285 PyThreadState* __tstate = wxPyBeginAllowThreads();
30286 (arg1)->SetItemSpacing(arg2,arg3);
30287 wxPyEndAllowThreads(__tstate);
30288 if (PyErr_Occurred()) SWIG_fail;
30289 }
30290 resultobj = SWIG_Py_Void();
30291 return resultobj;
30292fail:
30293 return NULL;
22bfe96c
RD
30294}
30295
30296
0085ce49
RD
30297SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30298 PyObject *resultobj = 0;
30299 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30300 int result;
30301 void *argp1 = 0 ;
30302 int res1 = 0 ;
30303 PyObject *swig_obj[1] ;
30304
30305 if (!args) SWIG_fail;
30306 swig_obj[0] = args;
30307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30308 if (!SWIG_IsOK(res1)) {
30309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30310 }
30311 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30312 {
30313 PyThreadState* __tstate = wxPyBeginAllowThreads();
30314 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30315 wxPyEndAllowThreads(__tstate);
30316 if (PyErr_Occurred()) SWIG_fail;
30317 }
30318 resultobj = SWIG_From_int(static_cast< int >(result));
30319 return resultobj;
30320fail:
30321 return NULL;
d14a1e28
RD
30322}
30323
30324
0085ce49
RD
30325SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30326 PyObject *resultobj = 0;
30327 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30328 wxColour result;
30329 void *argp1 = 0 ;
30330 int res1 = 0 ;
30331 PyObject *swig_obj[1] ;
30332
30333 if (!args) SWIG_fail;
30334 swig_obj[0] = args;
30335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30336 if (!SWIG_IsOK(res1)) {
30337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30338 }
30339 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30340 {
30341 PyThreadState* __tstate = wxPyBeginAllowThreads();
30342 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30343 wxPyEndAllowThreads(__tstate);
30344 if (PyErr_Occurred()) SWIG_fail;
30345 }
30346 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30347 return resultobj;
30348fail:
30349 return NULL;
30350}
30351
30352
30353SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30354 PyObject *resultobj = 0;
30355 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30356 wxColour *arg2 = 0 ;
30357 void *argp1 = 0 ;
30358 int res1 = 0 ;
30359 wxColour temp2 ;
30360 PyObject * obj0 = 0 ;
30361 PyObject * obj1 = 0 ;
30362 char * kwnames[] = {
30363 (char *) "self",(char *) "col", NULL
30364 };
30365
30366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30368 if (!SWIG_IsOK(res1)) {
30369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30370 }
30371 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30372 {
30373 arg2 = &temp2;
30374 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30375 }
30376 {
30377 PyThreadState* __tstate = wxPyBeginAllowThreads();
30378 (arg1)->SetTextColour((wxColour const &)*arg2);
30379 wxPyEndAllowThreads(__tstate);
30380 if (PyErr_Occurred()) SWIG_fail;
30381 }
30382 resultobj = SWIG_Py_Void();
30383 return resultobj;
30384fail:
30385 return NULL;
d14a1e28
RD
30386}
30387
30388
0085ce49
RD
30389SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30390 PyObject *resultobj = 0;
30391 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30392 long result;
30393 void *argp1 = 0 ;
30394 int res1 = 0 ;
30395 PyObject *swig_obj[1] ;
30396
30397 if (!args) SWIG_fail;
30398 swig_obj[0] = args;
30399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30400 if (!SWIG_IsOK(res1)) {
30401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30402 }
30403 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30404 {
30405 PyThreadState* __tstate = wxPyBeginAllowThreads();
30406 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30407 wxPyEndAllowThreads(__tstate);
30408 if (PyErr_Occurred()) SWIG_fail;
30409 }
30410 resultobj = SWIG_From_long(static_cast< long >(result));
30411 return resultobj;
30412fail:
30413 return NULL;
30414}
30415
30416
30417SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30418 PyObject *resultobj = 0;
30419 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30420 long arg2 ;
30421 bool arg3 = (bool) true ;
30422 void *argp1 = 0 ;
30423 int res1 = 0 ;
30424 long val2 ;
30425 int ecode2 = 0 ;
30426 bool val3 ;
30427 int ecode3 = 0 ;
30428 PyObject * obj0 = 0 ;
30429 PyObject * obj1 = 0 ;
30430 PyObject * obj2 = 0 ;
30431 char * kwnames[] = {
30432 (char *) "self",(char *) "style",(char *) "add", NULL
30433 };
30434
30435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30437 if (!SWIG_IsOK(res1)) {
30438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30439 }
30440 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30441 ecode2 = SWIG_AsVal_long(obj1, &val2);
30442 if (!SWIG_IsOK(ecode2)) {
30443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30444 }
30445 arg2 = static_cast< long >(val2);
30446 if (obj2) {
30447 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30448 if (!SWIG_IsOK(ecode3)) {
30449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30450 }
30451 arg3 = static_cast< bool >(val3);
30452 }
30453 {
30454 PyThreadState* __tstate = wxPyBeginAllowThreads();
30455 (arg1)->SetSingleStyle(arg2,arg3);
30456 wxPyEndAllowThreads(__tstate);
30457 if (PyErr_Occurred()) SWIG_fail;
30458 }
30459 resultobj = SWIG_Py_Void();
30460 return resultobj;
30461fail:
30462 return NULL;
30463}
30464
30465
30466SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30467 PyObject *resultobj = 0;
30468 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30469 long arg2 ;
30470 int arg3 = (int) wxLIST_NEXT_ALL ;
30471 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30472 long result;
30473 void *argp1 = 0 ;
30474 int res1 = 0 ;
30475 long val2 ;
30476 int ecode2 = 0 ;
30477 int val3 ;
30478 int ecode3 = 0 ;
30479 int val4 ;
30480 int ecode4 = 0 ;
30481 PyObject * obj0 = 0 ;
30482 PyObject * obj1 = 0 ;
30483 PyObject * obj2 = 0 ;
30484 PyObject * obj3 = 0 ;
30485 char * kwnames[] = {
30486 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30487 };
30488
30489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30491 if (!SWIG_IsOK(res1)) {
30492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30493 }
30494 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30495 ecode2 = SWIG_AsVal_long(obj1, &val2);
30496 if (!SWIG_IsOK(ecode2)) {
30497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30498 }
30499 arg2 = static_cast< long >(val2);
30500 if (obj2) {
30501 ecode3 = SWIG_AsVal_int(obj2, &val3);
30502 if (!SWIG_IsOK(ecode3)) {
30503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30504 }
30505 arg3 = static_cast< int >(val3);
30506 }
30507 if (obj3) {
30508 ecode4 = SWIG_AsVal_int(obj3, &val4);
30509 if (!SWIG_IsOK(ecode4)) {
30510 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30511 }
30512 arg4 = static_cast< int >(val4);
30513 }
30514 {
30515 PyThreadState* __tstate = wxPyBeginAllowThreads();
30516 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30517 wxPyEndAllowThreads(__tstate);
30518 if (PyErr_Occurred()) SWIG_fail;
30519 }
30520 resultobj = SWIG_From_long(static_cast< long >(result));
30521 return resultobj;
30522fail:
30523 return NULL;
30524}
30525
30526
30527SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30528 PyObject *resultobj = 0;
30529 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30530 int arg2 ;
30531 wxImageList *result = 0 ;
30532 void *argp1 = 0 ;
30533 int res1 = 0 ;
30534 int val2 ;
30535 int ecode2 = 0 ;
30536 PyObject * obj0 = 0 ;
30537 PyObject * obj1 = 0 ;
30538 char * kwnames[] = {
30539 (char *) "self",(char *) "which", NULL
30540 };
30541
30542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30544 if (!SWIG_IsOK(res1)) {
30545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30546 }
30547 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30548 ecode2 = SWIG_AsVal_int(obj1, &val2);
30549 if (!SWIG_IsOK(ecode2)) {
30550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30551 }
30552 arg2 = static_cast< int >(val2);
30553 {
30554 PyThreadState* __tstate = wxPyBeginAllowThreads();
30555 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30556 wxPyEndAllowThreads(__tstate);
30557 if (PyErr_Occurred()) SWIG_fail;
30558 }
3ecece7e
RD
30559 {
30560 resultobj = wxPyMake_wxObject(result, (bool)0);
30561 }
0085ce49
RD
30562 return resultobj;
30563fail:
30564 return NULL;
30565}
30566
30567
30568SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30569 PyObject *resultobj = 0;
30570 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30571 wxImageList *arg2 = (wxImageList *) 0 ;
30572 int arg3 ;
30573 void *argp1 = 0 ;
30574 int res1 = 0 ;
30575 void *argp2 = 0 ;
30576 int res2 = 0 ;
30577 int val3 ;
30578 int ecode3 = 0 ;
30579 PyObject * obj0 = 0 ;
30580 PyObject * obj1 = 0 ;
30581 PyObject * obj2 = 0 ;
30582 char * kwnames[] = {
30583 (char *) "self",(char *) "imageList",(char *) "which", NULL
30584 };
30585
30586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30588 if (!SWIG_IsOK(res1)) {
30589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30590 }
30591 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30592 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30593 if (!SWIG_IsOK(res2)) {
30594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30595 }
30596 arg2 = reinterpret_cast< wxImageList * >(argp2);
30597 ecode3 = SWIG_AsVal_int(obj2, &val3);
30598 if (!SWIG_IsOK(ecode3)) {
30599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30600 }
30601 arg3 = static_cast< int >(val3);
30602 {
30603 PyThreadState* __tstate = wxPyBeginAllowThreads();
30604 (arg1)->SetImageList(arg2,arg3);
30605 wxPyEndAllowThreads(__tstate);
30606 if (PyErr_Occurred()) SWIG_fail;
30607 }
30608 resultobj = SWIG_Py_Void();
30609 return resultobj;
30610fail:
30611 return NULL;
30612}
30613
30614
30615SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30616 PyObject *resultobj = 0;
30617 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30618 wxImageList *arg2 = (wxImageList *) 0 ;
30619 int arg3 ;
30620 void *argp1 = 0 ;
30621 int res1 = 0 ;
30622 int res2 = 0 ;
30623 int val3 ;
30624 int ecode3 = 0 ;
30625 PyObject * obj0 = 0 ;
30626 PyObject * obj1 = 0 ;
30627 PyObject * obj2 = 0 ;
30628 char * kwnames[] = {
30629 (char *) "self",(char *) "imageList",(char *) "which", NULL
30630 };
30631
30632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30634 if (!SWIG_IsOK(res1)) {
30635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30636 }
30637 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30638 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30639 if (!SWIG_IsOK(res2)) {
30640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30641 }
30642 ecode3 = SWIG_AsVal_int(obj2, &val3);
30643 if (!SWIG_IsOK(ecode3)) {
30644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30645 }
30646 arg3 = static_cast< int >(val3);
30647 {
30648 PyThreadState* __tstate = wxPyBeginAllowThreads();
30649 (arg1)->AssignImageList(arg2,arg3);
30650 wxPyEndAllowThreads(__tstate);
30651 if (PyErr_Occurred()) SWIG_fail;
30652 }
30653 resultobj = SWIG_Py_Void();
30654 return resultobj;
30655fail:
30656 return NULL;
d14a1e28
RD
30657}
30658
30659
0085ce49
RD
30660SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30661 PyObject *resultobj = 0;
30662 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30663 bool result;
30664 void *argp1 = 0 ;
30665 int res1 = 0 ;
30666 PyObject *swig_obj[1] ;
30667
30668 if (!args) SWIG_fail;
30669 swig_obj[0] = args;
30670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30671 if (!SWIG_IsOK(res1)) {
30672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30673 }
30674 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30675 {
30676 PyThreadState* __tstate = wxPyBeginAllowThreads();
30677 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30678 wxPyEndAllowThreads(__tstate);
30679 if (PyErr_Occurred()) SWIG_fail;
30680 }
30681 {
30682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30683 }
30684 return resultobj;
30685fail:
30686 return NULL;
d14a1e28
RD
30687}
30688
30689
0085ce49
RD
30690SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30691 PyObject *resultobj = 0;
30692 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30693 bool result;
30694 void *argp1 = 0 ;
30695 int res1 = 0 ;
30696 PyObject *swig_obj[1] ;
30697
30698 if (!args) SWIG_fail;
30699 swig_obj[0] = args;
30700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30701 if (!SWIG_IsOK(res1)) {
30702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30703 }
30704 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30705 {
30706 PyThreadState* __tstate = wxPyBeginAllowThreads();
30707 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30708 wxPyEndAllowThreads(__tstate);
30709 if (PyErr_Occurred()) SWIG_fail;
30710 }
30711 {
30712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30713 }
30714 return resultobj;
30715fail:
30716 return NULL;
30717}
30718
30719
30720SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30721 PyObject *resultobj = 0;
30722 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30723 long arg2 ;
30724 void *argp1 = 0 ;
30725 int res1 = 0 ;
30726 long val2 ;
30727 int ecode2 = 0 ;
30728 PyObject * obj0 = 0 ;
30729 PyObject * obj1 = 0 ;
30730 char * kwnames[] = {
30731 (char *) "self",(char *) "item", NULL
30732 };
30733
30734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30736 if (!SWIG_IsOK(res1)) {
30737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30738 }
30739 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30740 ecode2 = SWIG_AsVal_long(obj1, &val2);
30741 if (!SWIG_IsOK(ecode2)) {
30742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30743 }
30744 arg2 = static_cast< long >(val2);
30745 {
30746 PyThreadState* __tstate = wxPyBeginAllowThreads();
30747 (arg1)->RefreshItem(arg2);
30748 wxPyEndAllowThreads(__tstate);
30749 if (PyErr_Occurred()) SWIG_fail;
30750 }
30751 resultobj = SWIG_Py_Void();
30752 return resultobj;
30753fail:
30754 return NULL;
30755}
30756
30757
30758SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30759 PyObject *resultobj = 0;
30760 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30761 long arg2 ;
30762 long arg3 ;
30763 void *argp1 = 0 ;
30764 int res1 = 0 ;
30765 long val2 ;
30766 int ecode2 = 0 ;
30767 long val3 ;
30768 int ecode3 = 0 ;
30769 PyObject * obj0 = 0 ;
30770 PyObject * obj1 = 0 ;
30771 PyObject * obj2 = 0 ;
30772 char * kwnames[] = {
30773 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30774 };
30775
30776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30778 if (!SWIG_IsOK(res1)) {
30779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30780 }
30781 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30782 ecode2 = SWIG_AsVal_long(obj1, &val2);
30783 if (!SWIG_IsOK(ecode2)) {
30784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30785 }
30786 arg2 = static_cast< long >(val2);
30787 ecode3 = SWIG_AsVal_long(obj2, &val3);
30788 if (!SWIG_IsOK(ecode3)) {
30789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30790 }
30791 arg3 = static_cast< long >(val3);
30792 {
30793 PyThreadState* __tstate = wxPyBeginAllowThreads();
30794 (arg1)->RefreshItems(arg2,arg3);
30795 wxPyEndAllowThreads(__tstate);
30796 if (PyErr_Occurred()) SWIG_fail;
30797 }
30798 resultobj = SWIG_Py_Void();
30799 return resultobj;
30800fail:
30801 return NULL;
30802}
30803
30804
30805SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30806 PyObject *resultobj = 0;
30807 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30808 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30809 bool result;
30810 void *argp1 = 0 ;
30811 int res1 = 0 ;
30812 int val2 ;
30813 int ecode2 = 0 ;
30814 PyObject * obj0 = 0 ;
30815 PyObject * obj1 = 0 ;
30816 char * kwnames[] = {
30817 (char *) "self",(char *) "flag", NULL
30818 };
30819
30820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30822 if (!SWIG_IsOK(res1)) {
30823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30824 }
30825 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30826 if (obj1) {
30827 ecode2 = SWIG_AsVal_int(obj1, &val2);
30828 if (!SWIG_IsOK(ecode2)) {
30829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30830 }
30831 arg2 = static_cast< int >(val2);
30832 }
30833 {
30834 PyThreadState* __tstate = wxPyBeginAllowThreads();
30835 result = (bool)(arg1)->Arrange(arg2);
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_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30849 PyObject *resultobj = 0;
30850 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30851 long arg2 ;
30852 bool result;
30853 void *argp1 = 0 ;
30854 int res1 = 0 ;
30855 long val2 ;
30856 int ecode2 = 0 ;
30857 PyObject * obj0 = 0 ;
30858 PyObject * obj1 = 0 ;
30859 char * kwnames[] = {
30860 (char *) "self",(char *) "item", NULL
30861 };
30862
30863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30865 if (!SWIG_IsOK(res1)) {
30866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30867 }
30868 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30869 ecode2 = SWIG_AsVal_long(obj1, &val2);
30870 if (!SWIG_IsOK(ecode2)) {
30871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30872 }
30873 arg2 = static_cast< long >(val2);
30874 {
30875 PyThreadState* __tstate = wxPyBeginAllowThreads();
30876 result = (bool)(arg1)->DeleteItem(arg2);
30877 wxPyEndAllowThreads(__tstate);
30878 if (PyErr_Occurred()) SWIG_fail;
30879 }
30880 {
30881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30882 }
30883 return resultobj;
30884fail:
30885 return NULL;
7e08d4ef
RD
30886}
30887
30888
0085ce49
RD
30889SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30890 PyObject *resultobj = 0;
30891 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30892 bool result;
30893 void *argp1 = 0 ;
30894 int res1 = 0 ;
30895 PyObject *swig_obj[1] ;
30896
30897 if (!args) SWIG_fail;
30898 swig_obj[0] = args;
30899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30900 if (!SWIG_IsOK(res1)) {
30901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30902 }
30903 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30904 {
30905 PyThreadState* __tstate = wxPyBeginAllowThreads();
30906 result = (bool)(arg1)->DeleteAllItems();
30907 wxPyEndAllowThreads(__tstate);
30908 if (PyErr_Occurred()) SWIG_fail;
30909 }
30910 {
30911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30912 }
30913 return resultobj;
30914fail:
30915 return NULL;
30916}
30917
30918
30919SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30920 PyObject *resultobj = 0;
30921 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30922 int arg2 ;
30923 bool result;
30924 void *argp1 = 0 ;
30925 int res1 = 0 ;
30926 int val2 ;
30927 int ecode2 = 0 ;
30928 PyObject * obj0 = 0 ;
30929 PyObject * obj1 = 0 ;
30930 char * kwnames[] = {
30931 (char *) "self",(char *) "col", NULL
30932 };
30933
30934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30936 if (!SWIG_IsOK(res1)) {
30937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30938 }
30939 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30940 ecode2 = SWIG_AsVal_int(obj1, &val2);
30941 if (!SWIG_IsOK(ecode2)) {
30942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30943 }
30944 arg2 = static_cast< int >(val2);
30945 {
30946 PyThreadState* __tstate = wxPyBeginAllowThreads();
30947 result = (bool)(arg1)->DeleteColumn(arg2);
30948 wxPyEndAllowThreads(__tstate);
30949 if (PyErr_Occurred()) SWIG_fail;
30950 }
30951 {
30952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30953 }
30954 return resultobj;
30955fail:
30956 return NULL;
7e08d4ef
RD
30957}
30958
30959
0085ce49
RD
30960SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30961 PyObject *resultobj = 0;
30962 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30963 bool result;
30964 void *argp1 = 0 ;
30965 int res1 = 0 ;
30966 PyObject *swig_obj[1] ;
30967
30968 if (!args) SWIG_fail;
30969 swig_obj[0] = args;
30970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30971 if (!SWIG_IsOK(res1)) {
30972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30973 }
30974 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30975 {
30976 PyThreadState* __tstate = wxPyBeginAllowThreads();
30977 result = (bool)(arg1)->DeleteAllColumns();
30978 wxPyEndAllowThreads(__tstate);
30979 if (PyErr_Occurred()) SWIG_fail;
30980 }
30981 {
30982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30983 }
30984 return resultobj;
30985fail:
30986 return NULL;
7e08d4ef
RD
30987}
30988
30989
0085ce49
RD
30990SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30991 PyObject *resultobj = 0;
30992 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30993 void *argp1 = 0 ;
30994 int res1 = 0 ;
30995 PyObject *swig_obj[1] ;
30996
30997 if (!args) SWIG_fail;
30998 swig_obj[0] = args;
30999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31000 if (!SWIG_IsOK(res1)) {
31001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31002 }
31003 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31004 {
31005 PyThreadState* __tstate = wxPyBeginAllowThreads();
31006 (arg1)->ClearAll();
31007 wxPyEndAllowThreads(__tstate);
31008 if (PyErr_Occurred()) SWIG_fail;
31009 }
31010 resultobj = SWIG_Py_Void();
31011 return resultobj;
31012fail:
31013 return NULL;
31014}
31015
31016
31017SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31018 PyObject *resultobj = 0;
31019 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31020 long arg2 ;
31021 void *argp1 = 0 ;
31022 int res1 = 0 ;
31023 long val2 ;
31024 int ecode2 = 0 ;
31025 PyObject * obj0 = 0 ;
31026 PyObject * obj1 = 0 ;
31027 char * kwnames[] = {
31028 (char *) "self",(char *) "item", NULL
31029 };
31030
31031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31033 if (!SWIG_IsOK(res1)) {
31034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31035 }
31036 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31037 ecode2 = SWIG_AsVal_long(obj1, &val2);
31038 if (!SWIG_IsOK(ecode2)) {
31039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
31040 }
31041 arg2 = static_cast< long >(val2);
31042 {
31043 PyThreadState* __tstate = wxPyBeginAllowThreads();
31044 (arg1)->EditLabel(arg2);
31045 wxPyEndAllowThreads(__tstate);
31046 if (PyErr_Occurred()) SWIG_fail;
31047 }
31048 resultobj = SWIG_Py_Void();
31049 return resultobj;
31050fail:
31051 return NULL;
31052}
31053
31054
31055SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31056 PyObject *resultobj = 0;
31057 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31058 long arg2 ;
31059 bool result;
31060 void *argp1 = 0 ;
31061 int res1 = 0 ;
31062 long val2 ;
31063 int ecode2 = 0 ;
31064 PyObject * obj0 = 0 ;
31065 PyObject * obj1 = 0 ;
31066 char * kwnames[] = {
31067 (char *) "self",(char *) "item", NULL
31068 };
31069
31070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
31071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31072 if (!SWIG_IsOK(res1)) {
31073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31074 }
31075 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31076 ecode2 = SWIG_AsVal_long(obj1, &val2);
31077 if (!SWIG_IsOK(ecode2)) {
31078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31079 }
31080 arg2 = static_cast< long >(val2);
31081 {
31082 PyThreadState* __tstate = wxPyBeginAllowThreads();
31083 result = (bool)(arg1)->EnsureVisible(arg2);
31084 wxPyEndAllowThreads(__tstate);
31085 if (PyErr_Occurred()) SWIG_fail;
31086 }
31087 {
31088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31089 }
31090 return resultobj;
31091fail:
31092 return NULL;
31093}
31094
31095
31096SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31097 PyObject *resultobj = 0;
31098 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31099 long arg2 ;
31100 wxString *arg3 = 0 ;
31101 bool arg4 = (bool) false ;
31102 long result;
31103 void *argp1 = 0 ;
31104 int res1 = 0 ;
31105 long val2 ;
31106 int ecode2 = 0 ;
31107 bool temp3 = false ;
31108 bool val4 ;
31109 int ecode4 = 0 ;
31110 PyObject * obj0 = 0 ;
31111 PyObject * obj1 = 0 ;
31112 PyObject * obj2 = 0 ;
31113 PyObject * obj3 = 0 ;
31114 char * kwnames[] = {
31115 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31116 };
31117
31118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31120 if (!SWIG_IsOK(res1)) {
31121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31122 }
31123 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31124 ecode2 = SWIG_AsVal_long(obj1, &val2);
31125 if (!SWIG_IsOK(ecode2)) {
31126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31127 }
31128 arg2 = static_cast< long >(val2);
31129 {
31130 arg3 = wxString_in_helper(obj2);
31131 if (arg3 == NULL) SWIG_fail;
31132 temp3 = true;
31133 }
31134 if (obj3) {
31135 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31136 if (!SWIG_IsOK(ecode4)) {
31137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31138 }
31139 arg4 = static_cast< bool >(val4);
31140 }
31141 {
31142 PyThreadState* __tstate = wxPyBeginAllowThreads();
31143 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31144 wxPyEndAllowThreads(__tstate);
31145 if (PyErr_Occurred()) SWIG_fail;
31146 }
31147 resultobj = SWIG_From_long(static_cast< long >(result));
31148 {
31149 if (temp3)
31150 delete arg3;
31151 }
31152 return resultobj;
31153fail:
31154 {
31155 if (temp3)
31156 delete arg3;
31157 }
31158 return NULL;
31159}
31160
31161
31162SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31163 PyObject *resultobj = 0;
31164 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31165 long arg2 ;
31166 long arg3 ;
31167 long result;
31168 void *argp1 = 0 ;
31169 int res1 = 0 ;
31170 long val2 ;
31171 int ecode2 = 0 ;
31172 long val3 ;
31173 int ecode3 = 0 ;
31174 PyObject * obj0 = 0 ;
31175 PyObject * obj1 = 0 ;
31176 PyObject * obj2 = 0 ;
31177 char * kwnames[] = {
31178 (char *) "self",(char *) "start",(char *) "data", NULL
31179 };
31180
31181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31183 if (!SWIG_IsOK(res1)) {
31184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31185 }
31186 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31187 ecode2 = SWIG_AsVal_long(obj1, &val2);
31188 if (!SWIG_IsOK(ecode2)) {
31189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31190 }
31191 arg2 = static_cast< long >(val2);
31192 ecode3 = SWIG_AsVal_long(obj2, &val3);
31193 if (!SWIG_IsOK(ecode3)) {
31194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31195 }
31196 arg3 = static_cast< long >(val3);
31197 {
31198 PyThreadState* __tstate = wxPyBeginAllowThreads();
31199 result = (long)(arg1)->FindItem(arg2,arg3);
31200 wxPyEndAllowThreads(__tstate);
31201 if (PyErr_Occurred()) SWIG_fail;
31202 }
31203 resultobj = SWIG_From_long(static_cast< long >(result));
31204 return resultobj;
31205fail:
31206 return NULL;
31207}
31208
31209
31210SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31211 PyObject *resultobj = 0;
31212 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31213 long arg2 ;
31214 wxPoint *arg3 = 0 ;
31215 int arg4 ;
31216 long result;
31217 void *argp1 = 0 ;
31218 int res1 = 0 ;
31219 long val2 ;
31220 int ecode2 = 0 ;
31221 wxPoint temp3 ;
31222 int val4 ;
31223 int ecode4 = 0 ;
31224 PyObject * obj0 = 0 ;
31225 PyObject * obj1 = 0 ;
31226 PyObject * obj2 = 0 ;
31227 PyObject * obj3 = 0 ;
31228 char * kwnames[] = {
31229 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31230 };
31231
31232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31234 if (!SWIG_IsOK(res1)) {
31235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31236 }
31237 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31238 ecode2 = SWIG_AsVal_long(obj1, &val2);
31239 if (!SWIG_IsOK(ecode2)) {
31240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31241 }
31242 arg2 = static_cast< long >(val2);
31243 {
31244 arg3 = &temp3;
31245 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31246 }
31247 ecode4 = SWIG_AsVal_int(obj3, &val4);
31248 if (!SWIG_IsOK(ecode4)) {
31249 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31250 }
31251 arg4 = static_cast< int >(val4);
31252 {
31253 PyThreadState* __tstate = wxPyBeginAllowThreads();
31254 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31255 wxPyEndAllowThreads(__tstate);
31256 if (PyErr_Occurred()) SWIG_fail;
31257 }
31258 resultobj = SWIG_From_long(static_cast< long >(result));
31259 return resultobj;
31260fail:
31261 return NULL;
31262}
31263
31264
31265SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31266 PyObject *resultobj = 0;
31267 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31268 wxPoint *arg2 = 0 ;
31269 int *arg3 = 0 ;
31270 long result;
31271 void *argp1 = 0 ;
31272 int res1 = 0 ;
31273 wxPoint temp2 ;
31274 int temp3 ;
31275 int res3 = SWIG_TMPOBJ ;
31276 PyObject * obj0 = 0 ;
31277 PyObject * obj1 = 0 ;
31278 char * kwnames[] = {
31279 (char *) "self",(char *) "point", NULL
31280 };
31281
31282 arg3 = &temp3;
31283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31285 if (!SWIG_IsOK(res1)) {
31286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31287 }
31288 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31289 {
31290 arg2 = &temp2;
31291 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31292 }
31293 {
31294 PyThreadState* __tstate = wxPyBeginAllowThreads();
31295 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31296 wxPyEndAllowThreads(__tstate);
31297 if (PyErr_Occurred()) SWIG_fail;
31298 }
31299 resultobj = SWIG_From_long(static_cast< long >(result));
31300 if (SWIG_IsTmpObj(res3)) {
31301 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31302 } else {
31303 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31304 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31305 }
31306 return resultobj;
31307fail:
31308 return NULL;
31309}
31310
31311
704eda0c
RD
31312SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31313 PyObject *resultobj = 0;
31314 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31315 wxPoint *arg2 = 0 ;
31316 int *arg3 = 0 ;
31317 long *arg4 = (long *) 0 ;
31318 long result;
31319 void *argp1 = 0 ;
31320 int res1 = 0 ;
31321 wxPoint temp2 ;
31322 int temp3 ;
31323 int res3 = SWIG_TMPOBJ ;
31324 long temp4 ;
31325 int res4 = SWIG_TMPOBJ ;
31326 PyObject * obj0 = 0 ;
31327 PyObject * obj1 = 0 ;
31328 char * kwnames[] = {
31329 (char *) "self",(char *) "point", NULL
31330 };
31331
31332 arg3 = &temp3;
31333 arg4 = &temp4;
31334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31336 if (!SWIG_IsOK(res1)) {
31337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31338 }
31339 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31340 {
31341 arg2 = &temp2;
31342 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31343 }
31344 {
31345 PyThreadState* __tstate = wxPyBeginAllowThreads();
31346 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31347 wxPyEndAllowThreads(__tstate);
31348 if (PyErr_Occurred()) SWIG_fail;
31349 }
31350 resultobj = SWIG_From_long(static_cast< long >(result));
31351 if (SWIG_IsTmpObj(res3)) {
31352 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31353 } else {
31354 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31355 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31356 }
31357 if (SWIG_IsTmpObj(res4)) {
31358 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31359 } else {
31360 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31361 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31362 }
31363 return resultobj;
31364fail:
31365 return NULL;
31366}
31367
31368
0085ce49
RD
31369SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31370 PyObject *resultobj = 0;
31371 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31372 wxListItem *arg2 = 0 ;
31373 long result;
31374 void *argp1 = 0 ;
31375 int res1 = 0 ;
31376 void *argp2 = 0 ;
31377 int res2 = 0 ;
31378 PyObject * obj0 = 0 ;
31379 PyObject * obj1 = 0 ;
31380 char * kwnames[] = {
31381 (char *) "self",(char *) "info", NULL
31382 };
31383
31384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31386 if (!SWIG_IsOK(res1)) {
31387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31388 }
31389 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31390 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31391 if (!SWIG_IsOK(res2)) {
31392 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31393 }
31394 if (!argp2) {
31395 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31396 }
31397 arg2 = reinterpret_cast< wxListItem * >(argp2);
31398 {
31399 PyThreadState* __tstate = wxPyBeginAllowThreads();
31400 result = (long)(arg1)->InsertItem(*arg2);
31401 wxPyEndAllowThreads(__tstate);
31402 if (PyErr_Occurred()) SWIG_fail;
31403 }
31404 resultobj = SWIG_From_long(static_cast< long >(result));
31405 return resultobj;
31406fail:
31407 return NULL;
31408}
31409
31410
31411SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31412 PyObject *resultobj = 0;
31413 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31414 long arg2 ;
31415 wxString *arg3 = 0 ;
31416 int arg4 = (int) -1 ;
31417 long result;
31418 void *argp1 = 0 ;
31419 int res1 = 0 ;
31420 long val2 ;
31421 int ecode2 = 0 ;
31422 bool temp3 = false ;
31423 int val4 ;
31424 int ecode4 = 0 ;
31425 PyObject * obj0 = 0 ;
31426 PyObject * obj1 = 0 ;
31427 PyObject * obj2 = 0 ;
31428 PyObject * obj3 = 0 ;
31429 char * kwnames[] = {
31430 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31431 };
31432
31433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31435 if (!SWIG_IsOK(res1)) {
31436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31437 }
31438 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31439 ecode2 = SWIG_AsVal_long(obj1, &val2);
31440 if (!SWIG_IsOK(ecode2)) {
31441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31442 }
31443 arg2 = static_cast< long >(val2);
31444 {
31445 arg3 = wxString_in_helper(obj2);
31446 if (arg3 == NULL) SWIG_fail;
31447 temp3 = true;
31448 }
31449 if (obj3) {
31450 ecode4 = SWIG_AsVal_int(obj3, &val4);
31451 if (!SWIG_IsOK(ecode4)) {
31452 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31453 }
31454 arg4 = static_cast< int >(val4);
31455 }
31456 {
31457 PyThreadState* __tstate = wxPyBeginAllowThreads();
31458 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31459 wxPyEndAllowThreads(__tstate);
31460 if (PyErr_Occurred()) SWIG_fail;
31461 }
31462 resultobj = SWIG_From_long(static_cast< long >(result));
31463 {
31464 if (temp3)
31465 delete arg3;
31466 }
31467 return resultobj;
31468fail:
31469 {
31470 if (temp3)
31471 delete arg3;
31472 }
31473 return NULL;
31474}
31475
31476
31477SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31478 PyObject *resultobj = 0;
31479 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31480 long arg2 ;
31481 int arg3 ;
31482 long result;
31483 void *argp1 = 0 ;
31484 int res1 = 0 ;
31485 long val2 ;
31486 int ecode2 = 0 ;
31487 int val3 ;
31488 int ecode3 = 0 ;
31489 PyObject * obj0 = 0 ;
31490 PyObject * obj1 = 0 ;
31491 PyObject * obj2 = 0 ;
31492 char * kwnames[] = {
31493 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31494 };
31495
31496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31498 if (!SWIG_IsOK(res1)) {
31499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31500 }
31501 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31502 ecode2 = SWIG_AsVal_long(obj1, &val2);
31503 if (!SWIG_IsOK(ecode2)) {
31504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31505 }
31506 arg2 = static_cast< long >(val2);
31507 ecode3 = SWIG_AsVal_int(obj2, &val3);
31508 if (!SWIG_IsOK(ecode3)) {
31509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31510 }
31511 arg3 = static_cast< int >(val3);
31512 {
31513 PyThreadState* __tstate = wxPyBeginAllowThreads();
31514 result = (long)(arg1)->InsertItem(arg2,arg3);
31515 wxPyEndAllowThreads(__tstate);
31516 if (PyErr_Occurred()) SWIG_fail;
31517 }
31518 resultobj = SWIG_From_long(static_cast< long >(result));
31519 return resultobj;
31520fail:
31521 return NULL;
31522}
31523
31524
31525SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31526 PyObject *resultobj = 0;
31527 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31528 long arg2 ;
31529 wxString *arg3 = 0 ;
31530 int arg4 ;
31531 long result;
31532 void *argp1 = 0 ;
31533 int res1 = 0 ;
31534 long val2 ;
31535 int ecode2 = 0 ;
31536 bool temp3 = false ;
31537 int val4 ;
31538 int ecode4 = 0 ;
31539 PyObject * obj0 = 0 ;
31540 PyObject * obj1 = 0 ;
31541 PyObject * obj2 = 0 ;
31542 PyObject * obj3 = 0 ;
31543 char * kwnames[] = {
31544 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31545 };
31546
31547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31549 if (!SWIG_IsOK(res1)) {
31550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31551 }
31552 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31553 ecode2 = SWIG_AsVal_long(obj1, &val2);
31554 if (!SWIG_IsOK(ecode2)) {
31555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31556 }
31557 arg2 = static_cast< long >(val2);
31558 {
31559 arg3 = wxString_in_helper(obj2);
31560 if (arg3 == NULL) SWIG_fail;
31561 temp3 = true;
31562 }
31563 ecode4 = SWIG_AsVal_int(obj3, &val4);
31564 if (!SWIG_IsOK(ecode4)) {
31565 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31566 }
31567 arg4 = static_cast< int >(val4);
31568 {
31569 PyThreadState* __tstate = wxPyBeginAllowThreads();
31570 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31571 wxPyEndAllowThreads(__tstate);
31572 if (PyErr_Occurred()) SWIG_fail;
31573 }
31574 resultobj = SWIG_From_long(static_cast< long >(result));
31575 {
31576 if (temp3)
31577 delete arg3;
31578 }
31579 return resultobj;
31580fail:
31581 {
31582 if (temp3)
31583 delete arg3;
31584 }
31585 return NULL;
31586}
31587
31588
31589SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31590 PyObject *resultobj = 0;
31591 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31592 long arg2 ;
31593 wxListItem *arg3 = 0 ;
31594 long result;
31595 void *argp1 = 0 ;
31596 int res1 = 0 ;
31597 long val2 ;
31598 int ecode2 = 0 ;
31599 void *argp3 = 0 ;
31600 int res3 = 0 ;
31601 PyObject * obj0 = 0 ;
31602 PyObject * obj1 = 0 ;
31603 PyObject * obj2 = 0 ;
31604 char * kwnames[] = {
31605 (char *) "self",(char *) "col",(char *) "info", NULL
31606 };
31607
31608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31610 if (!SWIG_IsOK(res1)) {
31611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31612 }
31613 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31614 ecode2 = SWIG_AsVal_long(obj1, &val2);
31615 if (!SWIG_IsOK(ecode2)) {
31616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31617 }
31618 arg2 = static_cast< long >(val2);
31619 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31620 if (!SWIG_IsOK(res3)) {
31621 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31622 }
31623 if (!argp3) {
31624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31625 }
31626 arg3 = reinterpret_cast< wxListItem * >(argp3);
31627 {
31628 PyThreadState* __tstate = wxPyBeginAllowThreads();
31629 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31630 wxPyEndAllowThreads(__tstate);
31631 if (PyErr_Occurred()) SWIG_fail;
31632 }
31633 resultobj = SWIG_From_long(static_cast< long >(result));
31634 return resultobj;
31635fail:
31636 return NULL;
31637}
31638
31639
31640SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31641 PyObject *resultobj = 0;
31642 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31643 long arg2 ;
31644 wxString *arg3 = 0 ;
31645 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31646 int arg5 = (int) -1 ;
31647 long result;
31648 void *argp1 = 0 ;
31649 int res1 = 0 ;
31650 long val2 ;
31651 int ecode2 = 0 ;
31652 bool temp3 = false ;
31653 int val4 ;
31654 int ecode4 = 0 ;
31655 int val5 ;
31656 int ecode5 = 0 ;
31657 PyObject * obj0 = 0 ;
31658 PyObject * obj1 = 0 ;
31659 PyObject * obj2 = 0 ;
31660 PyObject * obj3 = 0 ;
31661 PyObject * obj4 = 0 ;
31662 char * kwnames[] = {
31663 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31664 };
31665
31666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31668 if (!SWIG_IsOK(res1)) {
31669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31670 }
31671 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31672 ecode2 = SWIG_AsVal_long(obj1, &val2);
31673 if (!SWIG_IsOK(ecode2)) {
31674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31675 }
31676 arg2 = static_cast< long >(val2);
31677 {
31678 arg3 = wxString_in_helper(obj2);
31679 if (arg3 == NULL) SWIG_fail;
31680 temp3 = true;
31681 }
31682 if (obj3) {
31683 ecode4 = SWIG_AsVal_int(obj3, &val4);
31684 if (!SWIG_IsOK(ecode4)) {
31685 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31686 }
31687 arg4 = static_cast< int >(val4);
31688 }
31689 if (obj4) {
31690 ecode5 = SWIG_AsVal_int(obj4, &val5);
31691 if (!SWIG_IsOK(ecode5)) {
31692 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31693 }
31694 arg5 = static_cast< int >(val5);
31695 }
31696 {
31697 PyThreadState* __tstate = wxPyBeginAllowThreads();
31698 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31699 wxPyEndAllowThreads(__tstate);
31700 if (PyErr_Occurred()) SWIG_fail;
31701 }
31702 resultobj = SWIG_From_long(static_cast< long >(result));
31703 {
31704 if (temp3)
31705 delete arg3;
31706 }
31707 return resultobj;
31708fail:
31709 {
31710 if (temp3)
31711 delete arg3;
31712 }
31713 return NULL;
31714}
31715
31716
31717SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31718 PyObject *resultobj = 0;
31719 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31720 long arg2 ;
31721 void *argp1 = 0 ;
31722 int res1 = 0 ;
31723 long val2 ;
31724 int ecode2 = 0 ;
31725 PyObject * obj0 = 0 ;
31726 PyObject * obj1 = 0 ;
31727 char * kwnames[] = {
31728 (char *) "self",(char *) "count", NULL
31729 };
31730
31731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31733 if (!SWIG_IsOK(res1)) {
31734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31735 }
31736 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31737 ecode2 = SWIG_AsVal_long(obj1, &val2);
31738 if (!SWIG_IsOK(ecode2)) {
31739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31740 }
31741 arg2 = static_cast< long >(val2);
31742 {
31743 PyThreadState* __tstate = wxPyBeginAllowThreads();
31744 (arg1)->SetItemCount(arg2);
31745 wxPyEndAllowThreads(__tstate);
31746 if (PyErr_Occurred()) SWIG_fail;
31747 }
31748 resultobj = SWIG_Py_Void();
31749 return resultobj;
31750fail:
31751 return NULL;
31752}
31753
31754
31755SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31756 PyObject *resultobj = 0;
31757 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31758 int arg2 ;
31759 int arg3 ;
31760 bool result;
31761 void *argp1 = 0 ;
31762 int res1 = 0 ;
31763 int val2 ;
31764 int ecode2 = 0 ;
31765 int val3 ;
31766 int ecode3 = 0 ;
31767 PyObject * obj0 = 0 ;
31768 PyObject * obj1 = 0 ;
31769 PyObject * obj2 = 0 ;
31770 char * kwnames[] = {
31771 (char *) "self",(char *) "dx",(char *) "dy", NULL
31772 };
31773
31774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31776 if (!SWIG_IsOK(res1)) {
31777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31778 }
31779 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31780 ecode2 = SWIG_AsVal_int(obj1, &val2);
31781 if (!SWIG_IsOK(ecode2)) {
31782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31783 }
31784 arg2 = static_cast< int >(val2);
31785 ecode3 = SWIG_AsVal_int(obj2, &val3);
31786 if (!SWIG_IsOK(ecode3)) {
31787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31788 }
31789 arg3 = static_cast< int >(val3);
31790 {
31791 PyThreadState* __tstate = wxPyBeginAllowThreads();
31792 result = (bool)(arg1)->ScrollList(arg2,arg3);
31793 wxPyEndAllowThreads(__tstate);
31794 if (PyErr_Occurred()) SWIG_fail;
31795 }
31796 {
31797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31798 }
31799 return resultobj;
31800fail:
31801 return NULL;
31802}
31803
31804
31805SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31806 PyObject *resultobj = 0;
31807 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31808 long arg2 ;
31809 wxColour *arg3 = 0 ;
31810 void *argp1 = 0 ;
31811 int res1 = 0 ;
31812 long val2 ;
31813 int ecode2 = 0 ;
31814 wxColour temp3 ;
31815 PyObject * obj0 = 0 ;
31816 PyObject * obj1 = 0 ;
31817 PyObject * obj2 = 0 ;
31818 char * kwnames[] = {
31819 (char *) "self",(char *) "item",(char *) "col", NULL
31820 };
31821
31822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31824 if (!SWIG_IsOK(res1)) {
31825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31826 }
31827 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31828 ecode2 = SWIG_AsVal_long(obj1, &val2);
31829 if (!SWIG_IsOK(ecode2)) {
31830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31831 }
31832 arg2 = static_cast< long >(val2);
31833 {
31834 arg3 = &temp3;
31835 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31836 }
31837 {
31838 PyThreadState* __tstate = wxPyBeginAllowThreads();
31839 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31840 wxPyEndAllowThreads(__tstate);
31841 if (PyErr_Occurred()) SWIG_fail;
31842 }
31843 resultobj = SWIG_Py_Void();
31844 return resultobj;
31845fail:
31846 return NULL;
31847}
31848
31849
31850SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31851 PyObject *resultobj = 0;
31852 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31853 long arg2 ;
31854 wxColour result;
31855 void *argp1 = 0 ;
31856 int res1 = 0 ;
31857 long val2 ;
31858 int ecode2 = 0 ;
31859 PyObject * obj0 = 0 ;
31860 PyObject * obj1 = 0 ;
31861 char * kwnames[] = {
31862 (char *) "self",(char *) "item", NULL
31863 };
31864
31865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31867 if (!SWIG_IsOK(res1)) {
31868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31869 }
31870 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31871 ecode2 = SWIG_AsVal_long(obj1, &val2);
31872 if (!SWIG_IsOK(ecode2)) {
31873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31874 }
31875 arg2 = static_cast< long >(val2);
31876 {
31877 PyThreadState* __tstate = wxPyBeginAllowThreads();
31878 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31879 wxPyEndAllowThreads(__tstate);
31880 if (PyErr_Occurred()) SWIG_fail;
31881 }
31882 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31883 return resultobj;
31884fail:
31885 return NULL;
31886}
31887
31888
31889SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31890 PyObject *resultobj = 0;
31891 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31892 long arg2 ;
31893 wxColour *arg3 = 0 ;
31894 void *argp1 = 0 ;
31895 int res1 = 0 ;
31896 long val2 ;
31897 int ecode2 = 0 ;
31898 wxColour temp3 ;
31899 PyObject * obj0 = 0 ;
31900 PyObject * obj1 = 0 ;
31901 PyObject * obj2 = 0 ;
31902 char * kwnames[] = {
31903 (char *) "self",(char *) "item",(char *) "col", NULL
31904 };
31905
31906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31908 if (!SWIG_IsOK(res1)) {
31909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31910 }
31911 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31912 ecode2 = SWIG_AsVal_long(obj1, &val2);
31913 if (!SWIG_IsOK(ecode2)) {
31914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31915 }
31916 arg2 = static_cast< long >(val2);
31917 {
31918 arg3 = &temp3;
31919 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31920 }
31921 {
31922 PyThreadState* __tstate = wxPyBeginAllowThreads();
31923 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31924 wxPyEndAllowThreads(__tstate);
31925 if (PyErr_Occurred()) SWIG_fail;
31926 }
31927 resultobj = SWIG_Py_Void();
31928 return resultobj;
31929fail:
31930 return NULL;
31931}
31932
31933
31934SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31935 PyObject *resultobj = 0;
31936 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31937 long arg2 ;
31938 wxColour result;
31939 void *argp1 = 0 ;
31940 int res1 = 0 ;
31941 long val2 ;
31942 int ecode2 = 0 ;
31943 PyObject * obj0 = 0 ;
31944 PyObject * obj1 = 0 ;
31945 char * kwnames[] = {
31946 (char *) "self",(char *) "item", NULL
31947 };
31948
31949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31951 if (!SWIG_IsOK(res1)) {
31952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31953 }
31954 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31955 ecode2 = SWIG_AsVal_long(obj1, &val2);
31956 if (!SWIG_IsOK(ecode2)) {
31957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31958 }
31959 arg2 = static_cast< long >(val2);
31960 {
31961 PyThreadState* __tstate = wxPyBeginAllowThreads();
31962 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31963 wxPyEndAllowThreads(__tstate);
31964 if (PyErr_Occurred()) SWIG_fail;
31965 }
31966 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31967 return resultobj;
31968fail:
31969 return NULL;
31970}
31971
31972
31973SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31974 PyObject *resultobj = 0;
31975 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31976 long arg2 ;
31977 wxFont *arg3 = 0 ;
31978 void *argp1 = 0 ;
31979 int res1 = 0 ;
31980 long val2 ;
31981 int ecode2 = 0 ;
31982 void *argp3 = 0 ;
31983 int res3 = 0 ;
31984 PyObject * obj0 = 0 ;
31985 PyObject * obj1 = 0 ;
31986 PyObject * obj2 = 0 ;
31987 char * kwnames[] = {
31988 (char *) "self",(char *) "item",(char *) "f", NULL
31989 };
31990
31991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31993 if (!SWIG_IsOK(res1)) {
31994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31995 }
31996 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31997 ecode2 = SWIG_AsVal_long(obj1, &val2);
31998 if (!SWIG_IsOK(ecode2)) {
31999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
32000 }
32001 arg2 = static_cast< long >(val2);
32002 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
32003 if (!SWIG_IsOK(res3)) {
32004 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32005 }
32006 if (!argp3) {
32007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32008 }
32009 arg3 = reinterpret_cast< wxFont * >(argp3);
32010 {
32011 PyThreadState* __tstate = wxPyBeginAllowThreads();
32012 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
32013 wxPyEndAllowThreads(__tstate);
32014 if (PyErr_Occurred()) SWIG_fail;
32015 }
32016 resultobj = SWIG_Py_Void();
32017 return resultobj;
32018fail:
32019 return NULL;
32020}
32021
32022
32023SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32024 PyObject *resultobj = 0;
32025 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32026 long arg2 ;
32027 wxFont result;
32028 void *argp1 = 0 ;
32029 int res1 = 0 ;
32030 long val2 ;
32031 int ecode2 = 0 ;
32032 PyObject * obj0 = 0 ;
32033 PyObject * obj1 = 0 ;
32034 char * kwnames[] = {
32035 (char *) "self",(char *) "item", NULL
32036 };
32037
32038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
32039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32040 if (!SWIG_IsOK(res1)) {
32041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32042 }
32043 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32044 ecode2 = SWIG_AsVal_long(obj1, &val2);
32045 if (!SWIG_IsOK(ecode2)) {
32046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
32047 }
32048 arg2 = static_cast< long >(val2);
32049 {
32050 PyThreadState* __tstate = wxPyBeginAllowThreads();
32051 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
32052 wxPyEndAllowThreads(__tstate);
32053 if (PyErr_Occurred()) SWIG_fail;
32054 }
32055 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
32056 return resultobj;
32057fail:
32058 return NULL;
32059}
32060
32061
32062SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32063 PyObject *resultobj = 0;
32064 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32065 PyObject *arg2 = (PyObject *) 0 ;
32066 bool result;
32067 void *argp1 = 0 ;
32068 int res1 = 0 ;
32069 PyObject * obj0 = 0 ;
32070 PyObject * obj1 = 0 ;
32071 char * kwnames[] = {
32072 (char *) "self",(char *) "func", NULL
32073 };
32074
32075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32077 if (!SWIG_IsOK(res1)) {
32078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32079 }
32080 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32081 arg2 = obj1;
32082 {
32083 PyThreadState* __tstate = wxPyBeginAllowThreads();
32084 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32085 wxPyEndAllowThreads(__tstate);
32086 if (PyErr_Occurred()) SWIG_fail;
32087 }
32088 {
32089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32090 }
32091 return resultobj;
32092fail:
32093 return NULL;
7e08d4ef
RD
32094}
32095
32096
0085ce49
RD
32097SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32098 PyObject *resultobj = 0;
32099 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32100 wxWindow *result = 0 ;
32101 void *argp1 = 0 ;
32102 int res1 = 0 ;
32103 PyObject *swig_obj[1] ;
32104
32105 if (!args) SWIG_fail;
32106 swig_obj[0] = args;
32107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32108 if (!SWIG_IsOK(res1)) {
32109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32110 }
32111 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32112 {
32113 PyThreadState* __tstate = wxPyBeginAllowThreads();
32114 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32115 wxPyEndAllowThreads(__tstate);
32116 if (PyErr_Occurred()) SWIG_fail;
32117 }
32118 {
32119 resultobj = wxPyMake_wxObject(result, 0);
32120 }
32121 return resultobj;
32122fail:
32123 return NULL;
32124}
32125
32126
32127SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32128 PyObject *resultobj = 0;
32129 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32130 SwigValueWrapper<wxVisualAttributes > result;
32131 int val1 ;
32132 int ecode1 = 0 ;
32133 PyObject * obj0 = 0 ;
32134 char * kwnames[] = {
32135 (char *) "variant", NULL
32136 };
32137
32138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32139 if (obj0) {
32140 ecode1 = SWIG_AsVal_int(obj0, &val1);
32141 if (!SWIG_IsOK(ecode1)) {
32142 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32143 }
32144 arg1 = static_cast< wxWindowVariant >(val1);
32145 }
32146 {
32147 if (!wxPyCheckForApp()) SWIG_fail;
32148 PyThreadState* __tstate = wxPyBeginAllowThreads();
32149 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32150 wxPyEndAllowThreads(__tstate);
32151 if (PyErr_Occurred()) SWIG_fail;
32152 }
32153 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32154 return resultobj;
32155fail:
32156 return NULL;
32157}
32158
32159
32160SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32161 PyObject *obj;
32162 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32163 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32164 return SWIG_Py_Void();
32165}
32166
32167SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32168 return SWIG_Python_InitShadowInstance(args);
32169}
32170
32171SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32172 PyObject *resultobj = 0;
32173 wxWindow *arg1 = (wxWindow *) 0 ;
32174 int arg2 = (int) -1 ;
32175 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32176 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32177 wxSize const &arg4_defvalue = wxDefaultSize ;
32178 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32179 long arg5 = (long) wxLC_REPORT ;
32180 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32181 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32182 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32183 wxString *arg7 = (wxString *) &arg7_defvalue ;
32184 wxListView *result = 0 ;
32185 void *argp1 = 0 ;
32186 int res1 = 0 ;
32187 int val2 ;
32188 int ecode2 = 0 ;
32189 wxPoint temp3 ;
32190 wxSize temp4 ;
32191 long val5 ;
32192 int ecode5 = 0 ;
32193 void *argp6 = 0 ;
32194 int res6 = 0 ;
32195 bool temp7 = false ;
32196 PyObject * obj0 = 0 ;
32197 PyObject * obj1 = 0 ;
32198 PyObject * obj2 = 0 ;
32199 PyObject * obj3 = 0 ;
32200 PyObject * obj4 = 0 ;
32201 PyObject * obj5 = 0 ;
32202 PyObject * obj6 = 0 ;
32203 char * kwnames[] = {
32204 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32205 };
32206
32207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32209 if (!SWIG_IsOK(res1)) {
32210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32211 }
32212 arg1 = reinterpret_cast< wxWindow * >(argp1);
32213 if (obj1) {
32214 ecode2 = SWIG_AsVal_int(obj1, &val2);
32215 if (!SWIG_IsOK(ecode2)) {
32216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32217 }
32218 arg2 = static_cast< int >(val2);
32219 }
32220 if (obj2) {
7e08d4ef 32221 {
0085ce49
RD
32222 arg3 = &temp3;
32223 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 32224 }
0085ce49
RD
32225 }
32226 if (obj3) {
7e08d4ef 32227 {
0085ce49
RD
32228 arg4 = &temp4;
32229 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 32230 }
0085ce49
RD
32231 }
32232 if (obj4) {
32233 ecode5 = SWIG_AsVal_long(obj4, &val5);
32234 if (!SWIG_IsOK(ecode5)) {
32235 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32236 }
32237 arg5 = static_cast< long >(val5);
32238 }
32239 if (obj5) {
32240 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32241 if (!SWIG_IsOK(res6)) {
32242 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 32243 }
0085ce49
RD
32244 if (!argp6) {
32245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 32246 }
0085ce49
RD
32247 arg6 = reinterpret_cast< wxValidator * >(argp6);
32248 }
32249 if (obj6) {
7e08d4ef 32250 {
0085ce49
RD
32251 arg7 = wxString_in_helper(obj6);
32252 if (arg7 == NULL) SWIG_fail;
32253 temp7 = true;
7e08d4ef 32254 }
0085ce49
RD
32255 }
32256 {
32257 if (!wxPyCheckForApp()) SWIG_fail;
32258 PyThreadState* __tstate = wxPyBeginAllowThreads();
32259 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32260 wxPyEndAllowThreads(__tstate);
32261 if (PyErr_Occurred()) SWIG_fail;
32262 }
32263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32264 {
32265 if (temp7)
32266 delete arg7;
32267 }
32268 return resultobj;
32269fail:
32270 {
32271 if (temp7)
32272 delete arg7;
32273 }
32274 return NULL;
7e08d4ef
RD
32275}
32276
32277
0085ce49
RD
32278SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32279 PyObject *resultobj = 0;
32280 wxListView *result = 0 ;
32281
32282 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32283 {
32284 if (!wxPyCheckForApp()) SWIG_fail;
32285 PyThreadState* __tstate = wxPyBeginAllowThreads();
32286 result = (wxListView *)new wxListView();
32287 wxPyEndAllowThreads(__tstate);
32288 if (PyErr_Occurred()) SWIG_fail;
32289 }
32290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32291 return resultobj;
32292fail:
32293 return NULL;
32294}
32295
32296
32297SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32298 PyObject *resultobj = 0;
32299 wxListView *arg1 = (wxListView *) 0 ;
32300 wxWindow *arg2 = (wxWindow *) 0 ;
32301 int arg3 = (int) -1 ;
32302 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32303 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32304 wxSize const &arg5_defvalue = wxDefaultSize ;
32305 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32306 long arg6 = (long) wxLC_REPORT ;
32307 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32308 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32309 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32310 wxString *arg8 = (wxString *) &arg8_defvalue ;
32311 bool result;
32312 void *argp1 = 0 ;
32313 int res1 = 0 ;
32314 void *argp2 = 0 ;
32315 int res2 = 0 ;
32316 int val3 ;
32317 int ecode3 = 0 ;
32318 wxPoint temp4 ;
32319 wxSize temp5 ;
32320 long val6 ;
32321 int ecode6 = 0 ;
32322 void *argp7 = 0 ;
32323 int res7 = 0 ;
32324 bool temp8 = false ;
32325 PyObject * obj0 = 0 ;
32326 PyObject * obj1 = 0 ;
32327 PyObject * obj2 = 0 ;
32328 PyObject * obj3 = 0 ;
32329 PyObject * obj4 = 0 ;
32330 PyObject * obj5 = 0 ;
32331 PyObject * obj6 = 0 ;
32332 PyObject * obj7 = 0 ;
32333 char * kwnames[] = {
32334 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32335 };
32336
32337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32339 if (!SWIG_IsOK(res1)) {
32340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32341 }
32342 arg1 = reinterpret_cast< wxListView * >(argp1);
32343 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32344 if (!SWIG_IsOK(res2)) {
32345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32346 }
32347 arg2 = reinterpret_cast< wxWindow * >(argp2);
32348 if (obj2) {
32349 ecode3 = SWIG_AsVal_int(obj2, &val3);
32350 if (!SWIG_IsOK(ecode3)) {
32351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32352 }
32353 arg3 = static_cast< int >(val3);
32354 }
32355 if (obj3) {
7e08d4ef 32356 {
0085ce49
RD
32357 arg4 = &temp4;
32358 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 32359 }
0085ce49
RD
32360 }
32361 if (obj4) {
7e08d4ef 32362 {
0085ce49
RD
32363 arg5 = &temp5;
32364 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 32365 }
0085ce49
RD
32366 }
32367 if (obj5) {
32368 ecode6 = SWIG_AsVal_long(obj5, &val6);
32369 if (!SWIG_IsOK(ecode6)) {
32370 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32371 }
32372 arg6 = static_cast< long >(val6);
32373 }
32374 if (obj6) {
32375 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32376 if (!SWIG_IsOK(res7)) {
32377 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 32378 }
0085ce49
RD
32379 if (!argp7) {
32380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 32381 }
0085ce49
RD
32382 arg7 = reinterpret_cast< wxValidator * >(argp7);
32383 }
32384 if (obj7) {
7e08d4ef 32385 {
0085ce49
RD
32386 arg8 = wxString_in_helper(obj7);
32387 if (arg8 == NULL) SWIG_fail;
32388 temp8 = true;
7e08d4ef 32389 }
0085ce49
RD
32390 }
32391 {
32392 PyThreadState* __tstate = wxPyBeginAllowThreads();
32393 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32394 wxPyEndAllowThreads(__tstate);
32395 if (PyErr_Occurred()) SWIG_fail;
32396 }
32397 {
32398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32399 }
32400 {
32401 if (temp8)
32402 delete arg8;
32403 }
32404 return resultobj;
32405fail:
32406 {
32407 if (temp8)
32408 delete arg8;
32409 }
32410 return NULL;
32411}
32412
32413
32414SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32415 PyObject *resultobj = 0;
32416 wxListView *arg1 = (wxListView *) 0 ;
32417 long arg2 ;
32418 bool arg3 = (bool) true ;
32419 void *argp1 = 0 ;
32420 int res1 = 0 ;
32421 long val2 ;
32422 int ecode2 = 0 ;
32423 bool val3 ;
32424 int ecode3 = 0 ;
32425 PyObject * obj0 = 0 ;
32426 PyObject * obj1 = 0 ;
32427 PyObject * obj2 = 0 ;
32428 char * kwnames[] = {
32429 (char *) "self",(char *) "n",(char *) "on", NULL
32430 };
32431
32432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32434 if (!SWIG_IsOK(res1)) {
32435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32436 }
32437 arg1 = reinterpret_cast< wxListView * >(argp1);
32438 ecode2 = SWIG_AsVal_long(obj1, &val2);
32439 if (!SWIG_IsOK(ecode2)) {
32440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32441 }
32442 arg2 = static_cast< long >(val2);
32443 if (obj2) {
32444 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32445 if (!SWIG_IsOK(ecode3)) {
32446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32447 }
32448 arg3 = static_cast< bool >(val3);
32449 }
32450 {
32451 PyThreadState* __tstate = wxPyBeginAllowThreads();
32452 (arg1)->Select(arg2,arg3);
32453 wxPyEndAllowThreads(__tstate);
32454 if (PyErr_Occurred()) SWIG_fail;
32455 }
32456 resultobj = SWIG_Py_Void();
32457 return resultobj;
32458fail:
32459 return NULL;
32460}
32461
32462
32463SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32464 PyObject *resultobj = 0;
32465 wxListView *arg1 = (wxListView *) 0 ;
32466 long arg2 ;
32467 void *argp1 = 0 ;
32468 int res1 = 0 ;
32469 long val2 ;
32470 int ecode2 = 0 ;
32471 PyObject * obj0 = 0 ;
32472 PyObject * obj1 = 0 ;
32473 char * kwnames[] = {
32474 (char *) "self",(char *) "index", NULL
32475 };
32476
32477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32479 if (!SWIG_IsOK(res1)) {
32480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32481 }
32482 arg1 = reinterpret_cast< wxListView * >(argp1);
32483 ecode2 = SWIG_AsVal_long(obj1, &val2);
32484 if (!SWIG_IsOK(ecode2)) {
32485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32486 }
32487 arg2 = static_cast< long >(val2);
32488 {
32489 PyThreadState* __tstate = wxPyBeginAllowThreads();
32490 (arg1)->Focus(arg2);
32491 wxPyEndAllowThreads(__tstate);
32492 if (PyErr_Occurred()) SWIG_fail;
32493 }
32494 resultobj = SWIG_Py_Void();
32495 return resultobj;
32496fail:
32497 return NULL;
7e08d4ef
RD
32498}
32499
32500
0085ce49
RD
32501SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32502 PyObject *resultobj = 0;
32503 wxListView *arg1 = (wxListView *) 0 ;
32504 long result;
32505 void *argp1 = 0 ;
32506 int res1 = 0 ;
32507 PyObject *swig_obj[1] ;
32508
32509 if (!args) SWIG_fail;
32510 swig_obj[0] = args;
32511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32512 if (!SWIG_IsOK(res1)) {
32513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32514 }
32515 arg1 = reinterpret_cast< wxListView * >(argp1);
32516 {
32517 PyThreadState* __tstate = wxPyBeginAllowThreads();
32518 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32519 wxPyEndAllowThreads(__tstate);
32520 if (PyErr_Occurred()) SWIG_fail;
32521 }
32522 resultobj = SWIG_From_long(static_cast< long >(result));
32523 return resultobj;
32524fail:
32525 return NULL;
32526}
32527
32528
32529SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32530 PyObject *resultobj = 0;
32531 wxListView *arg1 = (wxListView *) 0 ;
32532 long arg2 ;
32533 long result;
32534 void *argp1 = 0 ;
32535 int res1 = 0 ;
32536 long val2 ;
32537 int ecode2 = 0 ;
32538 PyObject * obj0 = 0 ;
32539 PyObject * obj1 = 0 ;
32540 char * kwnames[] = {
32541 (char *) "self",(char *) "item", NULL
32542 };
32543
32544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32546 if (!SWIG_IsOK(res1)) {
32547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32548 }
32549 arg1 = reinterpret_cast< wxListView * >(argp1);
32550 ecode2 = SWIG_AsVal_long(obj1, &val2);
32551 if (!SWIG_IsOK(ecode2)) {
32552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32553 }
32554 arg2 = static_cast< long >(val2);
32555 {
32556 PyThreadState* __tstate = wxPyBeginAllowThreads();
32557 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32558 wxPyEndAllowThreads(__tstate);
32559 if (PyErr_Occurred()) SWIG_fail;
32560 }
32561 resultobj = SWIG_From_long(static_cast< long >(result));
32562 return resultobj;
32563fail:
32564 return NULL;
7e08d4ef
RD
32565}
32566
32567
0085ce49
RD
32568SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32569 PyObject *resultobj = 0;
32570 wxListView *arg1 = (wxListView *) 0 ;
32571 long result;
32572 void *argp1 = 0 ;
32573 int res1 = 0 ;
32574 PyObject *swig_obj[1] ;
32575
32576 if (!args) SWIG_fail;
32577 swig_obj[0] = args;
32578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32579 if (!SWIG_IsOK(res1)) {
32580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32581 }
32582 arg1 = reinterpret_cast< wxListView * >(argp1);
32583 {
32584 PyThreadState* __tstate = wxPyBeginAllowThreads();
32585 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32586 wxPyEndAllowThreads(__tstate);
32587 if (PyErr_Occurred()) SWIG_fail;
32588 }
32589 resultobj = SWIG_From_long(static_cast< long >(result));
32590 return resultobj;
32591fail:
32592 return NULL;
32593}
32594
32595
32596SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32597 PyObject *resultobj = 0;
32598 wxListView *arg1 = (wxListView *) 0 ;
32599 long arg2 ;
32600 bool result;
32601 void *argp1 = 0 ;
32602 int res1 = 0 ;
32603 long val2 ;
32604 int ecode2 = 0 ;
32605 PyObject * obj0 = 0 ;
32606 PyObject * obj1 = 0 ;
32607 char * kwnames[] = {
32608 (char *) "self",(char *) "index", NULL
32609 };
32610
32611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32613 if (!SWIG_IsOK(res1)) {
32614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32615 }
32616 arg1 = reinterpret_cast< wxListView * >(argp1);
32617 ecode2 = SWIG_AsVal_long(obj1, &val2);
32618 if (!SWIG_IsOK(ecode2)) {
32619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32620 }
32621 arg2 = static_cast< long >(val2);
32622 {
32623 PyThreadState* __tstate = wxPyBeginAllowThreads();
32624 result = (bool)(arg1)->IsSelected(arg2);
32625 wxPyEndAllowThreads(__tstate);
32626 if (PyErr_Occurred()) SWIG_fail;
32627 }
32628 {
32629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32630 }
32631 return resultobj;
32632fail:
32633 return NULL;
32634}
32635
32636
32637SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32638 PyObject *resultobj = 0;
32639 wxListView *arg1 = (wxListView *) 0 ;
32640 int arg2 ;
32641 int arg3 ;
32642 void *argp1 = 0 ;
32643 int res1 = 0 ;
32644 int val2 ;
32645 int ecode2 = 0 ;
32646 int val3 ;
32647 int ecode3 = 0 ;
32648 PyObject * obj0 = 0 ;
32649 PyObject * obj1 = 0 ;
32650 PyObject * obj2 = 0 ;
32651 char * kwnames[] = {
32652 (char *) "self",(char *) "col",(char *) "image", NULL
32653 };
32654
32655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32657 if (!SWIG_IsOK(res1)) {
32658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32659 }
32660 arg1 = reinterpret_cast< wxListView * >(argp1);
32661 ecode2 = SWIG_AsVal_int(obj1, &val2);
32662 if (!SWIG_IsOK(ecode2)) {
32663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32664 }
32665 arg2 = static_cast< int >(val2);
32666 ecode3 = SWIG_AsVal_int(obj2, &val3);
32667 if (!SWIG_IsOK(ecode3)) {
32668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32669 }
32670 arg3 = static_cast< int >(val3);
32671 {
32672 PyThreadState* __tstate = wxPyBeginAllowThreads();
32673 (arg1)->SetColumnImage(arg2,arg3);
32674 wxPyEndAllowThreads(__tstate);
32675 if (PyErr_Occurred()) SWIG_fail;
32676 }
32677 resultobj = SWIG_Py_Void();
32678 return resultobj;
32679fail:
32680 return NULL;
32681}
32682
32683
32684SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32685 PyObject *resultobj = 0;
32686 wxListView *arg1 = (wxListView *) 0 ;
32687 int arg2 ;
32688 void *argp1 = 0 ;
32689 int res1 = 0 ;
32690 int val2 ;
32691 int ecode2 = 0 ;
32692 PyObject * obj0 = 0 ;
32693 PyObject * obj1 = 0 ;
32694 char * kwnames[] = {
32695 (char *) "self",(char *) "col", NULL
32696 };
32697
32698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32700 if (!SWIG_IsOK(res1)) {
32701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32702 }
32703 arg1 = reinterpret_cast< wxListView * >(argp1);
32704 ecode2 = SWIG_AsVal_int(obj1, &val2);
32705 if (!SWIG_IsOK(ecode2)) {
32706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32707 }
32708 arg2 = static_cast< int >(val2);
32709 {
32710 PyThreadState* __tstate = wxPyBeginAllowThreads();
32711 (arg1)->ClearColumnImage(arg2);
32712 wxPyEndAllowThreads(__tstate);
32713 if (PyErr_Occurred()) SWIG_fail;
32714 }
32715 resultobj = SWIG_Py_Void();
32716 return resultobj;
32717fail:
32718 return NULL;
7e08d4ef
RD
32719}
32720
32721
0085ce49
RD
32722SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32723 PyObject *obj;
32724 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32725 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32726 return SWIG_Py_Void();
7e08d4ef
RD
32727}
32728
0085ce49
RD
32729SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32730 return SWIG_Python_InitShadowInstance(args);
32731}
7e08d4ef 32732
0085ce49
RD
32733SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32734 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32735 return 1;
7e08d4ef
RD
32736}
32737
32738
0085ce49
RD
32739SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32740 PyObject *pyobj = 0;
32741
32742 {
32743#if wxUSE_UNICODE
32744 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32745#else
32746 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32747#endif
32748 }
32749 return pyobj;
7e08d4ef
RD
32750}
32751
32752
0085ce49
RD
32753SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32754 PyObject *resultobj = 0;
32755 wxTreeItemId *result = 0 ;
32756
32757 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32758 {
32759 PyThreadState* __tstate = wxPyBeginAllowThreads();
32760 result = (wxTreeItemId *)new wxTreeItemId();
32761 wxPyEndAllowThreads(__tstate);
32762 if (PyErr_Occurred()) SWIG_fail;
32763 }
32764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32765 return resultobj;
32766fail:
32767 return NULL;
d14a1e28
RD
32768}
32769
32770
0085ce49
RD
32771SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32772 PyObject *resultobj = 0;
32773 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32774 void *argp1 = 0 ;
32775 int res1 = 0 ;
32776 PyObject *swig_obj[1] ;
32777
32778 if (!args) SWIG_fail;
32779 swig_obj[0] = args;
32780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32781 if (!SWIG_IsOK(res1)) {
32782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32783 }
32784 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32785 {
32786 PyThreadState* __tstate = wxPyBeginAllowThreads();
32787 delete arg1;
7e08d4ef 32788
0085ce49
RD
32789 wxPyEndAllowThreads(__tstate);
32790 if (PyErr_Occurred()) SWIG_fail;
32791 }
32792 resultobj = SWIG_Py_Void();
32793 return resultobj;
32794fail:
32795 return NULL;
7e08d4ef
RD
32796}
32797
32798
0085ce49
RD
32799SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32800 PyObject *resultobj = 0;
32801 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32802 bool result;
32803 void *argp1 = 0 ;
32804 int res1 = 0 ;
32805 PyObject *swig_obj[1] ;
32806
32807 if (!args) SWIG_fail;
32808 swig_obj[0] = args;
32809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32810 if (!SWIG_IsOK(res1)) {
32811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32812 }
32813 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32814 {
32815 PyThreadState* __tstate = wxPyBeginAllowThreads();
32816 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32817 wxPyEndAllowThreads(__tstate);
32818 if (PyErr_Occurred()) SWIG_fail;
32819 }
32820 {
32821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32822 }
32823 return resultobj;
32824fail:
32825 return NULL;
32826}
32827
32828
32829SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32830 PyObject *resultobj = 0;
32831 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32832 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32833 bool result;
32834 void *argp1 = 0 ;
32835 int res1 = 0 ;
32836 void *argp2 = 0 ;
32837 int res2 = 0 ;
32838 PyObject * obj0 = 0 ;
32839 PyObject * obj1 = 0 ;
32840 char * kwnames[] = {
32841 (char *) "self",(char *) "other", NULL
32842 };
32843
32844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32846 if (!SWIG_IsOK(res1)) {
32847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32848 }
32849 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32850 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32851 if (!SWIG_IsOK(res2)) {
32852 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32853 }
32854 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32855 {
32856 PyThreadState* __tstate = wxPyBeginAllowThreads();
32857 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32858 wxPyEndAllowThreads(__tstate);
32859 if (PyErr_Occurred()) SWIG_fail;
32860 }
32861 {
32862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32863 }
32864 return resultobj;
32865fail:
32866 return NULL;
32867}
32868
32869
32870SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32871 PyObject *resultobj = 0;
32872 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32873 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32874 bool result;
32875 void *argp1 = 0 ;
32876 int res1 = 0 ;
32877 void *argp2 = 0 ;
32878 int res2 = 0 ;
32879 PyObject * obj0 = 0 ;
32880 PyObject * obj1 = 0 ;
32881 char * kwnames[] = {
32882 (char *) "self",(char *) "other", NULL
32883 };
32884
32885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32887 if (!SWIG_IsOK(res1)) {
32888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32889 }
32890 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32891 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32892 if (!SWIG_IsOK(res2)) {
32893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32894 }
32895 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32896 {
32897 PyThreadState* __tstate = wxPyBeginAllowThreads();
32898 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32899 wxPyEndAllowThreads(__tstate);
32900 if (PyErr_Occurred()) SWIG_fail;
32901 }
32902 {
32903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32904 }
32905 return resultobj;
32906fail:
32907 return NULL;
7e08d4ef
RD
32908}
32909
32910
0085ce49
RD
32911SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32912 PyObject *resultobj = 0;
32913 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32914 void *arg2 = (void *) 0 ;
32915 void *argp1 = 0 ;
32916 int res1 = 0 ;
32917 int res2 ;
32918 PyObject *swig_obj[2] ;
32919
32920 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32922 if (!SWIG_IsOK(res1)) {
32923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32924 }
32925 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32926 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32927 if (!SWIG_IsOK(res2)) {
32928 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32929 }
32930 if (arg1) (arg1)->m_pItem = arg2;
32931
32932 resultobj = SWIG_Py_Void();
32933 return resultobj;
32934fail:
32935 return NULL;
7e08d4ef
RD
32936}
32937
32938
0085ce49
RD
32939SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32940 PyObject *resultobj = 0;
32941 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32942 void *result = 0 ;
32943 void *argp1 = 0 ;
32944 int res1 = 0 ;
32945 PyObject *swig_obj[1] ;
32946
32947 if (!args) SWIG_fail;
32948 swig_obj[0] = args;
32949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32950 if (!SWIG_IsOK(res1)) {
32951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32952 }
32953 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32954 result = (void *) ((arg1)->m_pItem);
32955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32956 return resultobj;
32957fail:
32958 return NULL;
7e08d4ef
RD
32959}
32960
32961
0085ce49
RD
32962SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32963 PyObject *obj;
32964 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32965 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32966 return SWIG_Py_Void();
7e08d4ef
RD
32967}
32968
0085ce49
RD
32969SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32970 return SWIG_Python_InitShadowInstance(args);
32971}
7e08d4ef 32972
0085ce49
RD
32973SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32974 PyObject *resultobj = 0;
32975 PyObject *arg1 = (PyObject *) NULL ;
32976 wxPyTreeItemData *result = 0 ;
32977 PyObject * obj0 = 0 ;
32978 char * kwnames[] = {
32979 (char *) "obj", NULL
32980 };
32981
32982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32983 if (obj0) {
32984 arg1 = obj0;
32985 }
32986 {
32987 PyThreadState* __tstate = wxPyBeginAllowThreads();
32988 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32989 wxPyEndAllowThreads(__tstate);
32990 if (PyErr_Occurred()) SWIG_fail;
32991 }
32992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32993 return resultobj;
32994fail:
32995 return NULL;
7e08d4ef
RD
32996}
32997
32998
0085ce49
RD
32999SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33000 PyObject *resultobj = 0;
33001 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33002 void *argp1 = 0 ;
33003 int res1 = 0 ;
33004 PyObject *swig_obj[1] ;
33005
33006 if (!args) SWIG_fail;
33007 swig_obj[0] = args;
33008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
33009 if (!SWIG_IsOK(res1)) {
33010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33011 }
33012 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33013 {
33014 PyThreadState* __tstate = wxPyBeginAllowThreads();
33015 delete arg1;
1fbf26be 33016
0085ce49
RD
33017 wxPyEndAllowThreads(__tstate);
33018 if (PyErr_Occurred()) SWIG_fail;
33019 }
33020 resultobj = SWIG_Py_Void();
33021 return resultobj;
33022fail:
33023 return NULL;
1fbf26be
RD
33024}
33025
33026
0085ce49
RD
33027SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33028 PyObject *resultobj = 0;
33029 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33030 PyObject *result = 0 ;
33031 void *argp1 = 0 ;
33032 int res1 = 0 ;
33033 PyObject *swig_obj[1] ;
33034
33035 if (!args) SWIG_fail;
33036 swig_obj[0] = args;
33037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33038 if (!SWIG_IsOK(res1)) {
33039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33040 }
33041 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33042 {
33043 PyThreadState* __tstate = wxPyBeginAllowThreads();
33044 result = (PyObject *)(arg1)->GetData();
33045 wxPyEndAllowThreads(__tstate);
33046 if (PyErr_Occurred()) SWIG_fail;
33047 }
33048 resultobj = result;
33049 return resultobj;
33050fail:
33051 return NULL;
33052}
33053
33054
33055SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33056 PyObject *resultobj = 0;
33057 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33058 PyObject *arg2 = (PyObject *) 0 ;
33059 void *argp1 = 0 ;
33060 int res1 = 0 ;
33061 PyObject * obj0 = 0 ;
33062 PyObject * obj1 = 0 ;
33063 char * kwnames[] = {
33064 (char *) "self",(char *) "obj", NULL
33065 };
33066
33067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33069 if (!SWIG_IsOK(res1)) {
33070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33071 }
33072 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33073 arg2 = obj1;
33074 {
33075 PyThreadState* __tstate = wxPyBeginAllowThreads();
33076 (arg1)->SetData(arg2);
33077 wxPyEndAllowThreads(__tstate);
33078 if (PyErr_Occurred()) SWIG_fail;
33079 }
33080 resultobj = SWIG_Py_Void();
33081 return resultobj;
33082fail:
33083 return NULL;
d14a1e28
RD
33084}
33085
33086
0085ce49
RD
33087SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33088 PyObject *resultobj = 0;
33089 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33090 wxTreeItemId *result = 0 ;
33091 void *argp1 = 0 ;
33092 int res1 = 0 ;
33093 PyObject *swig_obj[1] ;
33094
33095 if (!args) SWIG_fail;
33096 swig_obj[0] = args;
33097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33098 if (!SWIG_IsOK(res1)) {
33099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33100 }
33101 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33102 {
33103 PyThreadState* __tstate = wxPyBeginAllowThreads();
2ef75293 33104 {
0085ce49
RD
33105 wxTreeItemId const &_result_ref = (arg1)->GetId();
33106 result = (wxTreeItemId *) &_result_ref;
2ef75293 33107 }
0085ce49
RD
33108 wxPyEndAllowThreads(__tstate);
33109 if (PyErr_Occurred()) SWIG_fail;
33110 }
33111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33112 return resultobj;
33113fail:
33114 return NULL;
33115}
33116
33117
33118SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33119 PyObject *resultobj = 0;
33120 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33121 wxTreeItemId *arg2 = 0 ;
33122 void *argp1 = 0 ;
33123 int res1 = 0 ;
33124 void *argp2 = 0 ;
33125 int res2 = 0 ;
33126 PyObject * obj0 = 0 ;
33127 PyObject * obj1 = 0 ;
33128 char * kwnames[] = {
33129 (char *) "self",(char *) "id", NULL
33130 };
33131
33132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33134 if (!SWIG_IsOK(res1)) {
33135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33136 }
33137 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33138 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33139 if (!SWIG_IsOK(res2)) {
33140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33141 }
33142 if (!argp2) {
33143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33144 }
33145 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33146 {
33147 PyThreadState* __tstate = wxPyBeginAllowThreads();
33148 (arg1)->SetId((wxTreeItemId const &)*arg2);
33149 wxPyEndAllowThreads(__tstate);
33150 if (PyErr_Occurred()) SWIG_fail;
33151 }
33152 resultobj = SWIG_Py_Void();
33153 return resultobj;
33154fail:
33155 return NULL;
2ef75293
RD
33156}
33157
33158
0085ce49
RD
33159SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33160 PyObject *resultobj = 0;
33161 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33162 void *argp1 = 0 ;
33163 int res1 = 0 ;
33164 PyObject *swig_obj[1] ;
33165
33166 if (!args) SWIG_fail;
33167 swig_obj[0] = args;
33168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33169 if (!SWIG_IsOK(res1)) {
33170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33171 }
33172 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33173 {
33174 PyThreadState* __tstate = wxPyBeginAllowThreads();
33175 wxPyTreeItemData_Destroy(arg1);
33176 wxPyEndAllowThreads(__tstate);
33177 if (PyErr_Occurred()) SWIG_fail;
33178 }
33179 resultobj = SWIG_Py_Void();
33180 return resultobj;
33181fail:
33182 return NULL;
2ef75293
RD
33183}
33184
33185
0085ce49
RD
33186SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33187 PyObject *obj;
33188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33189 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33190 return SWIG_Py_Void();
2ef75293
RD
33191}
33192
0085ce49
RD
33193SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33194 return SWIG_Python_InitShadowInstance(args);
33195}
2ef75293 33196
b02396e8
RD
33197SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33198 {
33199 void *argp = 0;
33200 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33201 if (!SWIG_IsOK(res)) {
33202 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33203 }
33204 if (!argp) {
33205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33206 } else {
33207 wxTreeItemId * temp;
33208 temp = reinterpret_cast< wxTreeItemId * >(argp);
33209 wxNullTreeItemId = *temp;
33210 if (SWIG_IsNewObj(res)) delete temp;
33211 }
33212 }
33213 return 0;
33214fail:
33215 return 1;
33216}
33217
33218
33219SWIGINTERN PyObject *NullTreeItemId_get(void) {
33220 PyObject *pyobj = 0;
33221
33222 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33223 return pyobj;
33224}
33225
33226
33227SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
0085ce49
RD
33228 PyObject *resultobj = 0;
33229 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33230 int arg2 = (int) 0 ;
33231 wxTreeEvent *result = 0 ;
33232 int val1 ;
33233 int ecode1 = 0 ;
33234 int val2 ;
33235 int ecode2 = 0 ;
0085ce49 33236
b02396e8
RD
33237 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33238 if (swig_obj[0]) {
33239 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
0085ce49
RD
33240 if (!SWIG_IsOK(ecode1)) {
33241 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33242 }
33243 arg1 = static_cast< wxEventType >(val1);
33244 }
b02396e8
RD
33245 if (swig_obj[1]) {
33246 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
0085ce49
RD
33247 if (!SWIG_IsOK(ecode2)) {
33248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33249 }
33250 arg2 = static_cast< int >(val2);
33251 }
33252 {
33253 PyThreadState* __tstate = wxPyBeginAllowThreads();
33254 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33255 wxPyEndAllowThreads(__tstate);
33256 if (PyErr_Occurred()) SWIG_fail;
33257 }
33258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33259 return resultobj;
33260fail:
33261 return NULL;
70b7a5fe
RD
33262}
33263
33264
b02396e8
RD
33265SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33266 PyObject *resultobj = 0;
33267 wxEventType arg1 ;
33268 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33269 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33270 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33271 wxTreeEvent *result = 0 ;
33272 int val1 ;
33273 int ecode1 = 0 ;
33274 void *argp2 = 0 ;
33275 int res2 = 0 ;
33276 void *argp3 = 0 ;
33277 int res3 = 0 ;
33278
33279 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33280 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33281 if (!SWIG_IsOK(ecode1)) {
33282 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33283 }
33284 arg1 = static_cast< wxEventType >(val1);
33285 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33286 if (!SWIG_IsOK(res2)) {
33287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33288 }
33289 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33290 if (swig_obj[2]) {
33291 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33292 if (!SWIG_IsOK(res3)) {
33293 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33294 }
33295 if (!argp3) {
33296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33297 }
33298 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33299 }
33300 {
33301 PyThreadState* __tstate = wxPyBeginAllowThreads();
33302 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33303 wxPyEndAllowThreads(__tstate);
33304 if (PyErr_Occurred()) SWIG_fail;
33305 }
33306 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33307 return resultobj;
33308fail:
33309 return NULL;
33310}
33311
33312
33313SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33314 int argc;
33315 PyObject *argv[4];
33316
33317 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33318 --argc;
33319 if ((argc >= 0) && (argc <= 2)) {
33320 int _v = 0;
33321 if (argc > 1) {
33322 {
33323 {
33324 int res = SWIG_AsVal_int(argv[1], NULL);
33325 _v = SWIG_CheckState(res);
33326 }
33327 }
33328 if (!_v) goto check_1;
33329 }
33330 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33331 }
33332check_1:
33333
33334 if ((argc >= 2) && (argc <= 3)) {
33335 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33336 }
33337
33338fail:
33339 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33340 return NULL;
33341}
33342
33343
0085ce49
RD
33344SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33345 PyObject *resultobj = 0;
33346 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33347 wxTreeItemId result;
33348 void *argp1 = 0 ;
33349 int res1 = 0 ;
33350 PyObject *swig_obj[1] ;
33351
33352 if (!args) SWIG_fail;
33353 swig_obj[0] = args;
33354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33355 if (!SWIG_IsOK(res1)) {
33356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33357 }
33358 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33359 {
33360 PyThreadState* __tstate = wxPyBeginAllowThreads();
33361 result = ((wxTreeEvent const *)arg1)->GetItem();
33362 wxPyEndAllowThreads(__tstate);
33363 if (PyErr_Occurred()) SWIG_fail;
33364 }
33365 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33366 return resultobj;
33367fail:
33368 return NULL;
33369}
33370
33371
33372SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33373 PyObject *resultobj = 0;
33374 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33375 wxTreeItemId *arg2 = 0 ;
33376 void *argp1 = 0 ;
33377 int res1 = 0 ;
33378 void *argp2 = 0 ;
33379 int res2 = 0 ;
33380 PyObject * obj0 = 0 ;
33381 PyObject * obj1 = 0 ;
33382 char * kwnames[] = {
33383 (char *) "self",(char *) "item", NULL
33384 };
33385
33386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33388 if (!SWIG_IsOK(res1)) {
33389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33390 }
33391 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33392 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33393 if (!SWIG_IsOK(res2)) {
33394 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33395 }
33396 if (!argp2) {
33397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33398 }
33399 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33400 {
33401 PyThreadState* __tstate = wxPyBeginAllowThreads();
33402 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33403 wxPyEndAllowThreads(__tstate);
33404 if (PyErr_Occurred()) SWIG_fail;
33405 }
33406 resultobj = SWIG_Py_Void();
33407 return resultobj;
33408fail:
33409 return NULL;
2ef75293
RD
33410}
33411
33412
0085ce49
RD
33413SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33414 PyObject *resultobj = 0;
33415 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33416 wxTreeItemId result;
33417 void *argp1 = 0 ;
33418 int res1 = 0 ;
33419 PyObject *swig_obj[1] ;
33420
33421 if (!args) SWIG_fail;
33422 swig_obj[0] = args;
33423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33424 if (!SWIG_IsOK(res1)) {
33425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33426 }
33427 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33428 {
33429 PyThreadState* __tstate = wxPyBeginAllowThreads();
33430 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33431 wxPyEndAllowThreads(__tstate);
33432 if (PyErr_Occurred()) SWIG_fail;
33433 }
33434 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33435 return resultobj;
33436fail:
33437 return NULL;
33438}
33439
33440
33441SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33442 PyObject *resultobj = 0;
33443 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33444 wxTreeItemId *arg2 = 0 ;
33445 void *argp1 = 0 ;
33446 int res1 = 0 ;
33447 void *argp2 = 0 ;
33448 int res2 = 0 ;
33449 PyObject * obj0 = 0 ;
33450 PyObject * obj1 = 0 ;
33451 char * kwnames[] = {
33452 (char *) "self",(char *) "item", NULL
33453 };
33454
33455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33457 if (!SWIG_IsOK(res1)) {
33458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33459 }
33460 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33461 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33462 if (!SWIG_IsOK(res2)) {
33463 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33464 }
33465 if (!argp2) {
33466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33467 }
33468 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33469 {
33470 PyThreadState* __tstate = wxPyBeginAllowThreads();
33471 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33472 wxPyEndAllowThreads(__tstate);
33473 if (PyErr_Occurred()) SWIG_fail;
33474 }
33475 resultobj = SWIG_Py_Void();
33476 return resultobj;
33477fail:
33478 return NULL;
2ef75293
RD
33479}
33480
33481
0085ce49
RD
33482SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33483 PyObject *resultobj = 0;
33484 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33485 wxPoint result;
33486 void *argp1 = 0 ;
33487 int res1 = 0 ;
33488 PyObject *swig_obj[1] ;
33489
33490 if (!args) SWIG_fail;
33491 swig_obj[0] = args;
33492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33493 if (!SWIG_IsOK(res1)) {
33494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33495 }
33496 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33497 {
33498 PyThreadState* __tstate = wxPyBeginAllowThreads();
33499 result = ((wxTreeEvent const *)arg1)->GetPoint();
33500 wxPyEndAllowThreads(__tstate);
33501 if (PyErr_Occurred()) SWIG_fail;
33502 }
33503 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33504 return resultobj;
33505fail:
33506 return NULL;
33507}
33508
33509
33510SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33511 PyObject *resultobj = 0;
33512 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33513 wxPoint *arg2 = 0 ;
33514 void *argp1 = 0 ;
33515 int res1 = 0 ;
33516 wxPoint temp2 ;
33517 PyObject * obj0 = 0 ;
33518 PyObject * obj1 = 0 ;
33519 char * kwnames[] = {
33520 (char *) "self",(char *) "pt", NULL
33521 };
33522
33523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33525 if (!SWIG_IsOK(res1)) {
33526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33527 }
33528 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33529 {
33530 arg2 = &temp2;
33531 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33532 }
33533 {
33534 PyThreadState* __tstate = wxPyBeginAllowThreads();
33535 (arg1)->SetPoint((wxPoint const &)*arg2);
33536 wxPyEndAllowThreads(__tstate);
33537 if (PyErr_Occurred()) SWIG_fail;
33538 }
33539 resultobj = SWIG_Py_Void();
33540 return resultobj;
33541fail:
33542 return NULL;
d14a1e28
RD
33543}
33544
33545
0085ce49
RD
33546SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33547 PyObject *resultobj = 0;
33548 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33549 wxKeyEvent *result = 0 ;
33550 void *argp1 = 0 ;
33551 int res1 = 0 ;
33552 PyObject *swig_obj[1] ;
33553
33554 if (!args) SWIG_fail;
33555 swig_obj[0] = args;
33556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33557 if (!SWIG_IsOK(res1)) {
33558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33559 }
33560 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33561 {
33562 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 33563 {
0085ce49
RD
33564 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33565 result = (wxKeyEvent *) &_result_ref;
d14a1e28 33566 }
0085ce49
RD
33567 wxPyEndAllowThreads(__tstate);
33568 if (PyErr_Occurred()) SWIG_fail;
33569 }
33570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33571 return resultobj;
33572fail:
33573 return NULL;
d14a1e28
RD
33574}
33575
33576
0085ce49
RD
33577SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33578 PyObject *resultobj = 0;
33579 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33580 int result;
33581 void *argp1 = 0 ;
33582 int res1 = 0 ;
33583 PyObject *swig_obj[1] ;
33584
33585 if (!args) SWIG_fail;
33586 swig_obj[0] = args;
33587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33588 if (!SWIG_IsOK(res1)) {
33589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33590 }
33591 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33592 {
33593 PyThreadState* __tstate = wxPyBeginAllowThreads();
33594 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33595 wxPyEndAllowThreads(__tstate);
33596 if (PyErr_Occurred()) SWIG_fail;
33597 }
33598 resultobj = SWIG_From_int(static_cast< int >(result));
33599 return resultobj;
33600fail:
33601 return NULL;
33602}
33603
33604
33605SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33606 PyObject *resultobj = 0;
33607 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33608 wxKeyEvent *arg2 = 0 ;
33609 void *argp1 = 0 ;
33610 int res1 = 0 ;
33611 void *argp2 = 0 ;
33612 int res2 = 0 ;
33613 PyObject * obj0 = 0 ;
33614 PyObject * obj1 = 0 ;
33615 char * kwnames[] = {
33616 (char *) "self",(char *) "evt", NULL
33617 };
33618
33619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33621 if (!SWIG_IsOK(res1)) {
33622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33623 }
33624 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33626 if (!SWIG_IsOK(res2)) {
33627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33628 }
33629 if (!argp2) {
33630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33631 }
33632 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33633 {
33634 PyThreadState* __tstate = wxPyBeginAllowThreads();
33635 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33636 wxPyEndAllowThreads(__tstate);
33637 if (PyErr_Occurred()) SWIG_fail;
33638 }
33639 resultobj = SWIG_Py_Void();
33640 return resultobj;
33641fail:
33642 return NULL;
d14a1e28
RD
33643}
33644
33645
0085ce49
RD
33646SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33647 PyObject *resultobj = 0;
33648 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33649 wxString *result = 0 ;
33650 void *argp1 = 0 ;
33651 int res1 = 0 ;
33652 PyObject *swig_obj[1] ;
33653
33654 if (!args) SWIG_fail;
33655 swig_obj[0] = args;
33656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33657 if (!SWIG_IsOK(res1)) {
33658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33659 }
33660 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33661 {
33662 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 33663 {
0085ce49
RD
33664 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33665 result = (wxString *) &_result_ref;
093d3ff1 33666 }
0085ce49
RD
33667 wxPyEndAllowThreads(__tstate);
33668 if (PyErr_Occurred()) SWIG_fail;
33669 }
33670 {
33671#if wxUSE_UNICODE
33672 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33673#else
33674 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33675#endif
33676 }
33677 return resultobj;
33678fail:
33679 return NULL;
33680}
33681
33682
33683SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33684 PyObject *resultobj = 0;
33685 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33686 wxString *arg2 = 0 ;
33687 void *argp1 = 0 ;
33688 int res1 = 0 ;
33689 bool temp2 = false ;
33690 PyObject * obj0 = 0 ;
33691 PyObject * obj1 = 0 ;
33692 char * kwnames[] = {
33693 (char *) "self",(char *) "label", NULL
33694 };
33695
33696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33698 if (!SWIG_IsOK(res1)) {
33699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33700 }
33701 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33702 {
33703 arg2 = wxString_in_helper(obj1);
33704 if (arg2 == NULL) SWIG_fail;
33705 temp2 = true;
33706 }
33707 {
33708 PyThreadState* __tstate = wxPyBeginAllowThreads();
33709 (arg1)->SetLabel((wxString const &)*arg2);
33710 wxPyEndAllowThreads(__tstate);
33711 if (PyErr_Occurred()) SWIG_fail;
33712 }
33713 resultobj = SWIG_Py_Void();
33714 {
33715 if (temp2)
33716 delete arg2;
33717 }
33718 return resultobj;
33719fail:
33720 {
33721 if (temp2)
33722 delete arg2;
33723 }
33724 return NULL;
d14a1e28
RD
33725}
33726
33727
0085ce49
RD
33728SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33729 PyObject *resultobj = 0;
33730 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33731 bool result;
33732 void *argp1 = 0 ;
33733 int res1 = 0 ;
33734 PyObject *swig_obj[1] ;
33735
33736 if (!args) SWIG_fail;
33737 swig_obj[0] = args;
33738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33739 if (!SWIG_IsOK(res1)) {
33740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33741 }
33742 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33743 {
33744 PyThreadState* __tstate = wxPyBeginAllowThreads();
33745 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33746 wxPyEndAllowThreads(__tstate);
33747 if (PyErr_Occurred()) SWIG_fail;
33748 }
33749 {
33750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33751 }
33752 return resultobj;
33753fail:
33754 return NULL;
33755}
33756
33757
33758SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33759 PyObject *resultobj = 0;
33760 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33761 bool arg2 ;
33762 void *argp1 = 0 ;
33763 int res1 = 0 ;
33764 bool val2 ;
33765 int ecode2 = 0 ;
33766 PyObject * obj0 = 0 ;
33767 PyObject * obj1 = 0 ;
33768 char * kwnames[] = {
33769 (char *) "self",(char *) "editCancelled", NULL
33770 };
33771
33772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33774 if (!SWIG_IsOK(res1)) {
33775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33776 }
33777 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33778 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33779 if (!SWIG_IsOK(ecode2)) {
33780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33781 }
33782 arg2 = static_cast< bool >(val2);
33783 {
33784 PyThreadState* __tstate = wxPyBeginAllowThreads();
33785 (arg1)->SetEditCanceled(arg2);
33786 wxPyEndAllowThreads(__tstate);
33787 if (PyErr_Occurred()) SWIG_fail;
33788 }
33789 resultobj = SWIG_Py_Void();
33790 return resultobj;
33791fail:
33792 return NULL;
33793}
33794
33795
33796SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33797 PyObject *resultobj = 0;
33798 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33799 wxString *arg2 = 0 ;
33800 void *argp1 = 0 ;
33801 int res1 = 0 ;
33802 bool temp2 = false ;
33803 PyObject * obj0 = 0 ;
33804 PyObject * obj1 = 0 ;
33805 char * kwnames[] = {
33806 (char *) "self",(char *) "toolTip", NULL
33807 };
33808
33809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33811 if (!SWIG_IsOK(res1)) {
33812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33813 }
33814 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33815 {
33816 arg2 = wxString_in_helper(obj1);
33817 if (arg2 == NULL) SWIG_fail;
33818 temp2 = true;
33819 }
33820 {
33821 PyThreadState* __tstate = wxPyBeginAllowThreads();
33822 (arg1)->SetToolTip((wxString const &)*arg2);
33823 wxPyEndAllowThreads(__tstate);
33824 if (PyErr_Occurred()) SWIG_fail;
33825 }
33826 resultobj = SWIG_Py_Void();
33827 {
33828 if (temp2)
33829 delete arg2;
33830 }
33831 return resultobj;
33832fail:
33833 {
33834 if (temp2)
33835 delete arg2;
33836 }
33837 return NULL;
d14a1e28
RD
33838}
33839
33840
0085ce49
RD
33841SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33842 PyObject *resultobj = 0;
33843 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33844 wxString result;
33845 void *argp1 = 0 ;
33846 int res1 = 0 ;
33847 PyObject *swig_obj[1] ;
33848
33849 if (!args) SWIG_fail;
33850 swig_obj[0] = args;
33851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33852 if (!SWIG_IsOK(res1)) {
33853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33854 }
33855 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33856 {
33857 PyThreadState* __tstate = wxPyBeginAllowThreads();
33858 result = (arg1)->GetToolTip();
33859 wxPyEndAllowThreads(__tstate);
33860 if (PyErr_Occurred()) SWIG_fail;
33861 }
33862 {
33863#if wxUSE_UNICODE
33864 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33865#else
33866 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33867#endif
33868 }
33869 return resultobj;
33870fail:
33871 return NULL;
33872}
33873
33874
33875SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33876 PyObject *obj;
33877 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33878 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33879 return SWIG_Py_Void();
33880}
33881
33882SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33883 return SWIG_Python_InitShadowInstance(args);
33884}
33885
33886SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33887 PyObject *resultobj = 0;
33888 wxWindow *arg1 = (wxWindow *) 0 ;
33889 int arg2 = (int) -1 ;
33890 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33891 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33892 wxSize const &arg4_defvalue = wxDefaultSize ;
33893 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33894 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33895 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33896 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33897 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33898 wxString *arg7 = (wxString *) &arg7_defvalue ;
33899 wxPyTreeCtrl *result = 0 ;
33900 void *argp1 = 0 ;
33901 int res1 = 0 ;
33902 int val2 ;
33903 int ecode2 = 0 ;
33904 wxPoint temp3 ;
33905 wxSize temp4 ;
33906 long val5 ;
33907 int ecode5 = 0 ;
33908 void *argp6 = 0 ;
33909 int res6 = 0 ;
33910 bool temp7 = false ;
33911 PyObject * obj0 = 0 ;
33912 PyObject * obj1 = 0 ;
33913 PyObject * obj2 = 0 ;
33914 PyObject * obj3 = 0 ;
33915 PyObject * obj4 = 0 ;
33916 PyObject * obj5 = 0 ;
33917 PyObject * obj6 = 0 ;
33918 char * kwnames[] = {
33919 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33920 };
33921
33922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33924 if (!SWIG_IsOK(res1)) {
33925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33926 }
33927 arg1 = reinterpret_cast< wxWindow * >(argp1);
33928 if (obj1) {
33929 ecode2 = SWIG_AsVal_int(obj1, &val2);
33930 if (!SWIG_IsOK(ecode2)) {
33931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33932 }
33933 arg2 = static_cast< int >(val2);
33934 }
33935 if (obj2) {
d14a1e28 33936 {
0085ce49
RD
33937 arg3 = &temp3;
33938 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 33939 }
0085ce49
RD
33940 }
33941 if (obj3) {
093d3ff1 33942 {
0085ce49
RD
33943 arg4 = &temp4;
33944 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 33945 }
0085ce49
RD
33946 }
33947 if (obj4) {
33948 ecode5 = SWIG_AsVal_long(obj4, &val5);
33949 if (!SWIG_IsOK(ecode5)) {
33950 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33951 }
33952 arg5 = static_cast< long >(val5);
33953 }
33954 if (obj5) {
33955 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33956 if (!SWIG_IsOK(res6)) {
33957 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33958 }
0085ce49
RD
33959 if (!argp6) {
33960 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 33961 }
0085ce49
RD
33962 arg6 = reinterpret_cast< wxValidator * >(argp6);
33963 }
33964 if (obj6) {
4f89f6a3 33965 {
0085ce49
RD
33966 arg7 = wxString_in_helper(obj6);
33967 if (arg7 == NULL) SWIG_fail;
33968 temp7 = true;
4f89f6a3 33969 }
0085ce49
RD
33970 }
33971 {
33972 if (!wxPyCheckForApp()) SWIG_fail;
33973 PyThreadState* __tstate = wxPyBeginAllowThreads();
33974 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33975 wxPyEndAllowThreads(__tstate);
33976 if (PyErr_Occurred()) SWIG_fail;
33977 }
33978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33979 {
33980 if (temp7)
33981 delete arg7;
33982 }
33983 return resultobj;
33984fail:
33985 {
33986 if (temp7)
33987 delete arg7;
33988 }
33989 return NULL;
d14a1e28
RD
33990}
33991
33992
0085ce49
RD
33993SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33994 PyObject *resultobj = 0;
33995 wxPyTreeCtrl *result = 0 ;
33996
33997 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33998 {
33999 if (!wxPyCheckForApp()) SWIG_fail;
34000 PyThreadState* __tstate = wxPyBeginAllowThreads();
34001 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
34002 wxPyEndAllowThreads(__tstate);
34003 if (PyErr_Occurred()) SWIG_fail;
34004 }
34005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
34006 return resultobj;
34007fail:
34008 return NULL;
34009}
34010
34011
34012SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34013 PyObject *resultobj = 0;
34014 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34015 wxWindow *arg2 = (wxWindow *) 0 ;
34016 int arg3 = (int) -1 ;
34017 wxPoint const &arg4_defvalue = wxDefaultPosition ;
34018 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
34019 wxSize const &arg5_defvalue = wxDefaultSize ;
34020 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
34021 long arg6 = (long) wxTR_DEFAULT_STYLE ;
34022 wxValidator const &arg7_defvalue = wxDefaultValidator ;
34023 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
34024 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
34025 wxString *arg8 = (wxString *) &arg8_defvalue ;
34026 bool result;
34027 void *argp1 = 0 ;
34028 int res1 = 0 ;
34029 void *argp2 = 0 ;
34030 int res2 = 0 ;
34031 int val3 ;
34032 int ecode3 = 0 ;
34033 wxPoint temp4 ;
34034 wxSize temp5 ;
34035 long val6 ;
34036 int ecode6 = 0 ;
34037 void *argp7 = 0 ;
34038 int res7 = 0 ;
34039 bool temp8 = false ;
34040 PyObject * obj0 = 0 ;
34041 PyObject * obj1 = 0 ;
34042 PyObject * obj2 = 0 ;
34043 PyObject * obj3 = 0 ;
34044 PyObject * obj4 = 0 ;
34045 PyObject * obj5 = 0 ;
34046 PyObject * obj6 = 0 ;
34047 PyObject * obj7 = 0 ;
34048 char * kwnames[] = {
34049 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34050 };
34051
34052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
34053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34054 if (!SWIG_IsOK(res1)) {
34055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34056 }
34057 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34058 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34059 if (!SWIG_IsOK(res2)) {
34060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
34061 }
34062 arg2 = reinterpret_cast< wxWindow * >(argp2);
34063 if (obj2) {
34064 ecode3 = SWIG_AsVal_int(obj2, &val3);
34065 if (!SWIG_IsOK(ecode3)) {
34066 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
34067 }
34068 arg3 = static_cast< int >(val3);
34069 }
34070 if (obj3) {
4f89f6a3 34071 {
0085ce49
RD
34072 arg4 = &temp4;
34073 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 34074 }
0085ce49
RD
34075 }
34076 if (obj4) {
d14a1e28 34077 {
0085ce49
RD
34078 arg5 = &temp5;
34079 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 34080 }
0085ce49
RD
34081 }
34082 if (obj5) {
34083 ecode6 = SWIG_AsVal_long(obj5, &val6);
34084 if (!SWIG_IsOK(ecode6)) {
34085 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34086 }
34087 arg6 = static_cast< long >(val6);
34088 }
34089 if (obj6) {
34090 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34091 if (!SWIG_IsOK(res7)) {
34092 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
4f89f6a3 34093 }
0085ce49
RD
34094 if (!argp7) {
34095 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 34096 }
0085ce49
RD
34097 arg7 = reinterpret_cast< wxValidator * >(argp7);
34098 }
34099 if (obj7) {
4276dc52 34100 {
0085ce49
RD
34101 arg8 = wxString_in_helper(obj7);
34102 if (arg8 == NULL) SWIG_fail;
34103 temp8 = true;
4276dc52 34104 }
0085ce49
RD
34105 }
34106 {
34107 PyThreadState* __tstate = wxPyBeginAllowThreads();
34108 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34109 wxPyEndAllowThreads(__tstate);
34110 if (PyErr_Occurred()) SWIG_fail;
34111 }
34112 {
34113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34114 }
34115 {
34116 if (temp8)
34117 delete arg8;
34118 }
34119 return resultobj;
34120fail:
34121 {
34122 if (temp8)
34123 delete arg8;
34124 }
34125 return NULL;
34126}
34127
34128
34129SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34130 PyObject *resultobj = 0;
34131 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34132 PyObject *arg2 = (PyObject *) 0 ;
34133 PyObject *arg3 = (PyObject *) 0 ;
34134 void *argp1 = 0 ;
34135 int res1 = 0 ;
34136 PyObject * obj0 = 0 ;
34137 PyObject * obj1 = 0 ;
34138 PyObject * obj2 = 0 ;
34139 char * kwnames[] = {
34140 (char *) "self",(char *) "self",(char *) "_class", NULL
34141 };
34142
34143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34145 if (!SWIG_IsOK(res1)) {
34146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34147 }
34148 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34149 arg2 = obj1;
34150 arg3 = obj2;
34151 {
34152 PyThreadState* __tstate = wxPyBeginAllowThreads();
34153 (arg1)->_setCallbackInfo(arg2,arg3);
34154 wxPyEndAllowThreads(__tstate);
34155 if (PyErr_Occurred()) SWIG_fail;
34156 }
34157 resultobj = SWIG_Py_Void();
34158 return resultobj;
34159fail:
34160 return NULL;
d14a1e28
RD
34161}
34162
34163
0085ce49
RD
34164SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34165 PyObject *resultobj = 0;
34166 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 34167 unsigned int result;
0085ce49
RD
34168 void *argp1 = 0 ;
34169 int res1 = 0 ;
34170 PyObject *swig_obj[1] ;
34171
34172 if (!args) SWIG_fail;
34173 swig_obj[0] = args;
34174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34175 if (!SWIG_IsOK(res1)) {
34176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34177 }
34178 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34179 {
34180 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 34181 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
0085ce49
RD
34182 wxPyEndAllowThreads(__tstate);
34183 if (PyErr_Occurred()) SWIG_fail;
34184 }
e9d6f3a4 34185 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
0085ce49
RD
34186 return resultobj;
34187fail:
34188 return NULL;
d14a1e28
RD
34189}
34190
34191
0085ce49
RD
34192SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34193 PyObject *resultobj = 0;
34194 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34195 unsigned int result;
34196 void *argp1 = 0 ;
34197 int res1 = 0 ;
34198 PyObject *swig_obj[1] ;
34199
34200 if (!args) SWIG_fail;
34201 swig_obj[0] = args;
34202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34203 if (!SWIG_IsOK(res1)) {
34204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34205 }
34206 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34207 {
34208 PyThreadState* __tstate = wxPyBeginAllowThreads();
34209 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34210 wxPyEndAllowThreads(__tstate);
34211 if (PyErr_Occurred()) SWIG_fail;
34212 }
34213 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34214 return resultobj;
34215fail:
34216 return NULL;
34217}
34218
34219
34220SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34221 PyObject *resultobj = 0;
34222 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34223 unsigned int arg2 ;
34224 void *argp1 = 0 ;
34225 int res1 = 0 ;
34226 unsigned int val2 ;
34227 int ecode2 = 0 ;
34228 PyObject * obj0 = 0 ;
34229 PyObject * obj1 = 0 ;
34230 char * kwnames[] = {
34231 (char *) "self",(char *) "indent", NULL
34232 };
34233
34234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34236 if (!SWIG_IsOK(res1)) {
34237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34238 }
34239 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34240 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34241 if (!SWIG_IsOK(ecode2)) {
34242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34243 }
34244 arg2 = static_cast< unsigned int >(val2);
34245 {
34246 PyThreadState* __tstate = wxPyBeginAllowThreads();
34247 (arg1)->SetIndent(arg2);
34248 wxPyEndAllowThreads(__tstate);
34249 if (PyErr_Occurred()) SWIG_fail;
34250 }
34251 resultobj = SWIG_Py_Void();
34252 return resultobj;
34253fail:
34254 return NULL;
d14a1e28
RD
34255}
34256
34257
0085ce49
RD
34258SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34259 PyObject *resultobj = 0;
34260 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34261 unsigned int result;
34262 void *argp1 = 0 ;
34263 int res1 = 0 ;
34264 PyObject *swig_obj[1] ;
34265
34266 if (!args) SWIG_fail;
34267 swig_obj[0] = args;
34268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34269 if (!SWIG_IsOK(res1)) {
34270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34271 }
34272 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34273 {
34274 PyThreadState* __tstate = wxPyBeginAllowThreads();
34275 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34276 wxPyEndAllowThreads(__tstate);
34277 if (PyErr_Occurred()) SWIG_fail;
34278 }
34279 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34280 return resultobj;
34281fail:
34282 return NULL;
34283}
34284
34285
34286SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34287 PyObject *resultobj = 0;
34288 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34289 unsigned int arg2 ;
34290 void *argp1 = 0 ;
34291 int res1 = 0 ;
34292 unsigned int val2 ;
34293 int ecode2 = 0 ;
34294 PyObject * obj0 = 0 ;
34295 PyObject * obj1 = 0 ;
34296 char * kwnames[] = {
34297 (char *) "self",(char *) "spacing", NULL
34298 };
34299
34300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34302 if (!SWIG_IsOK(res1)) {
34303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34304 }
34305 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34306 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34307 if (!SWIG_IsOK(ecode2)) {
34308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34309 }
34310 arg2 = static_cast< unsigned int >(val2);
34311 {
34312 PyThreadState* __tstate = wxPyBeginAllowThreads();
34313 (arg1)->SetSpacing(arg2);
34314 wxPyEndAllowThreads(__tstate);
34315 if (PyErr_Occurred()) SWIG_fail;
34316 }
34317 resultobj = SWIG_Py_Void();
34318 return resultobj;
34319fail:
34320 return NULL;
d14a1e28
RD
34321}
34322
34323
0085ce49
RD
34324SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34325 PyObject *resultobj = 0;
34326 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34327 wxImageList *result = 0 ;
34328 void *argp1 = 0 ;
34329 int res1 = 0 ;
34330 PyObject *swig_obj[1] ;
34331
34332 if (!args) SWIG_fail;
34333 swig_obj[0] = args;
34334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34335 if (!SWIG_IsOK(res1)) {
34336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34337 }
34338 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34339 {
34340 PyThreadState* __tstate = wxPyBeginAllowThreads();
34341 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34342 wxPyEndAllowThreads(__tstate);
34343 if (PyErr_Occurred()) SWIG_fail;
34344 }
3ecece7e
RD
34345 {
34346 resultobj = wxPyMake_wxObject(result, (bool)0);
34347 }
0085ce49
RD
34348 return resultobj;
34349fail:
34350 return NULL;
d14a1e28
RD
34351}
34352
34353
0085ce49
RD
34354SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34355 PyObject *resultobj = 0;
34356 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34357 wxImageList *result = 0 ;
34358 void *argp1 = 0 ;
34359 int res1 = 0 ;
34360 PyObject *swig_obj[1] ;
34361
34362 if (!args) SWIG_fail;
34363 swig_obj[0] = args;
34364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34365 if (!SWIG_IsOK(res1)) {
34366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34367 }
34368 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34369 {
34370 PyThreadState* __tstate = wxPyBeginAllowThreads();
34371 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34372 wxPyEndAllowThreads(__tstate);
34373 if (PyErr_Occurred()) SWIG_fail;
34374 }
3ecece7e
RD
34375 {
34376 resultobj = wxPyMake_wxObject(result, (bool)0);
34377 }
0085ce49
RD
34378 return resultobj;
34379fail:
34380 return NULL;
34381}
34382
34383
34384SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34385 PyObject *resultobj = 0;
34386 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34387 wxImageList *arg2 = (wxImageList *) 0 ;
34388 void *argp1 = 0 ;
34389 int res1 = 0 ;
34390 void *argp2 = 0 ;
34391 int res2 = 0 ;
34392 PyObject * obj0 = 0 ;
34393 PyObject * obj1 = 0 ;
34394 char * kwnames[] = {
34395 (char *) "self",(char *) "imageList", NULL
34396 };
34397
34398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34400 if (!SWIG_IsOK(res1)) {
34401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34402 }
34403 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34404 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34405 if (!SWIG_IsOK(res2)) {
34406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34407 }
34408 arg2 = reinterpret_cast< wxImageList * >(argp2);
34409 {
34410 PyThreadState* __tstate = wxPyBeginAllowThreads();
34411 (arg1)->SetImageList(arg2);
34412 wxPyEndAllowThreads(__tstate);
34413 if (PyErr_Occurred()) SWIG_fail;
34414 }
34415 resultobj = SWIG_Py_Void();
34416 return resultobj;
34417fail:
34418 return NULL;
34419}
34420
34421
34422SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34423 PyObject *resultobj = 0;
34424 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34425 wxImageList *arg2 = (wxImageList *) 0 ;
34426 void *argp1 = 0 ;
34427 int res1 = 0 ;
34428 void *argp2 = 0 ;
34429 int res2 = 0 ;
34430 PyObject * obj0 = 0 ;
34431 PyObject * obj1 = 0 ;
34432 char * kwnames[] = {
34433 (char *) "self",(char *) "imageList", NULL
34434 };
34435
34436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34438 if (!SWIG_IsOK(res1)) {
34439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34440 }
34441 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34442 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34443 if (!SWIG_IsOK(res2)) {
34444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34445 }
34446 arg2 = reinterpret_cast< wxImageList * >(argp2);
34447 {
34448 PyThreadState* __tstate = wxPyBeginAllowThreads();
34449 (arg1)->SetStateImageList(arg2);
34450 wxPyEndAllowThreads(__tstate);
34451 if (PyErr_Occurred()) SWIG_fail;
34452 }
34453 resultobj = SWIG_Py_Void();
34454 return resultobj;
34455fail:
34456 return NULL;
34457}
34458
34459
34460SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34461 PyObject *resultobj = 0;
34462 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34463 wxImageList *arg2 = (wxImageList *) 0 ;
34464 void *argp1 = 0 ;
34465 int res1 = 0 ;
34466 int res2 = 0 ;
34467 PyObject * obj0 = 0 ;
34468 PyObject * obj1 = 0 ;
34469 char * kwnames[] = {
34470 (char *) "self",(char *) "imageList", NULL
34471 };
34472
34473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34475 if (!SWIG_IsOK(res1)) {
34476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34477 }
34478 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34479 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34480 if (!SWIG_IsOK(res2)) {
34481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34482 }
34483 {
34484 PyThreadState* __tstate = wxPyBeginAllowThreads();
34485 (arg1)->AssignImageList(arg2);
34486 wxPyEndAllowThreads(__tstate);
34487 if (PyErr_Occurred()) SWIG_fail;
34488 }
34489 resultobj = SWIG_Py_Void();
34490 return resultobj;
34491fail:
34492 return NULL;
34493}
34494
34495
34496SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34497 PyObject *resultobj = 0;
34498 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34499 wxImageList *arg2 = (wxImageList *) 0 ;
34500 void *argp1 = 0 ;
34501 int res1 = 0 ;
34502 int res2 = 0 ;
34503 PyObject * obj0 = 0 ;
34504 PyObject * obj1 = 0 ;
34505 char * kwnames[] = {
34506 (char *) "self",(char *) "imageList", NULL
34507 };
34508
34509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34511 if (!SWIG_IsOK(res1)) {
34512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34513 }
34514 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34515 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34516 if (!SWIG_IsOK(res2)) {
34517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34518 }
34519 {
34520 PyThreadState* __tstate = wxPyBeginAllowThreads();
34521 (arg1)->AssignStateImageList(arg2);
34522 wxPyEndAllowThreads(__tstate);
34523 if (PyErr_Occurred()) SWIG_fail;
34524 }
34525 resultobj = SWIG_Py_Void();
34526 return resultobj;
34527fail:
34528 return NULL;
34529}
34530
34531
34532SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34533 PyObject *resultobj = 0;
34534 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34535 wxTreeItemId *arg2 = 0 ;
34536 wxString result;
34537 void *argp1 = 0 ;
34538 int res1 = 0 ;
34539 void *argp2 = 0 ;
34540 int res2 = 0 ;
34541 PyObject * obj0 = 0 ;
34542 PyObject * obj1 = 0 ;
34543 char * kwnames[] = {
34544 (char *) "self",(char *) "item", NULL
34545 };
34546
34547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34549 if (!SWIG_IsOK(res1)) {
34550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34551 }
34552 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34553 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34554 if (!SWIG_IsOK(res2)) {
34555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34556 }
34557 if (!argp2) {
34558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34559 }
34560 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34561 {
34562 PyThreadState* __tstate = wxPyBeginAllowThreads();
34563 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34564 wxPyEndAllowThreads(__tstate);
34565 if (PyErr_Occurred()) SWIG_fail;
34566 }
34567 {
d14a1e28 34568#if wxUSE_UNICODE
0085ce49 34569 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 34570#else
0085ce49 34571 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 34572#endif
0085ce49
RD
34573 }
34574 return resultobj;
34575fail:
34576 return NULL;
34577}
34578
34579
34580SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34581 PyObject *resultobj = 0;
34582 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34583 wxTreeItemId *arg2 = 0 ;
34584 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34585 int result;
34586 void *argp1 = 0 ;
34587 int res1 = 0 ;
34588 void *argp2 = 0 ;
34589 int res2 = 0 ;
34590 int val3 ;
34591 int ecode3 = 0 ;
34592 PyObject * obj0 = 0 ;
34593 PyObject * obj1 = 0 ;
34594 PyObject * obj2 = 0 ;
34595 char * kwnames[] = {
34596 (char *) "self",(char *) "item",(char *) "which", NULL
34597 };
34598
34599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34601 if (!SWIG_IsOK(res1)) {
34602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34603 }
34604 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34606 if (!SWIG_IsOK(res2)) {
34607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34608 }
34609 if (!argp2) {
34610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34611 }
34612 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34613 if (obj2) {
34614 ecode3 = SWIG_AsVal_int(obj2, &val3);
34615 if (!SWIG_IsOK(ecode3)) {
34616 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34617 }
34618 arg3 = static_cast< wxTreeItemIcon >(val3);
34619 }
34620 {
34621 PyThreadState* __tstate = wxPyBeginAllowThreads();
34622 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34623 wxPyEndAllowThreads(__tstate);
34624 if (PyErr_Occurred()) SWIG_fail;
34625 }
34626 resultobj = SWIG_From_int(static_cast< int >(result));
34627 return resultobj;
34628fail:
34629 return NULL;
34630}
34631
34632
34633SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34634 PyObject *resultobj = 0;
34635 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34636 wxTreeItemId *arg2 = 0 ;
34637 wxPyTreeItemData *result = 0 ;
34638 void *argp1 = 0 ;
34639 int res1 = 0 ;
34640 void *argp2 = 0 ;
34641 int res2 = 0 ;
34642 PyObject * obj0 = 0 ;
34643 PyObject * obj1 = 0 ;
34644 char * kwnames[] = {
34645 (char *) "self",(char *) "item", NULL
34646 };
34647
34648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34650 if (!SWIG_IsOK(res1)) {
34651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34652 }
34653 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34654 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34655 if (!SWIG_IsOK(res2)) {
34656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34657 }
34658 if (!argp2) {
34659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34660 }
34661 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34662 {
34663 PyThreadState* __tstate = wxPyBeginAllowThreads();
34664 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34665 wxPyEndAllowThreads(__tstate);
34666 if (PyErr_Occurred()) SWIG_fail;
34667 }
34668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34669 return resultobj;
34670fail:
34671 return NULL;
34672}
34673
34674
34675SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34676 PyObject *resultobj = 0;
34677 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34678 wxTreeItemId *arg2 = 0 ;
34679 PyObject *result = 0 ;
34680 void *argp1 = 0 ;
34681 int res1 = 0 ;
34682 void *argp2 = 0 ;
34683 int res2 = 0 ;
34684 PyObject * obj0 = 0 ;
34685 PyObject * obj1 = 0 ;
34686 char * kwnames[] = {
34687 (char *) "self",(char *) "item", NULL
34688 };
34689
34690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34692 if (!SWIG_IsOK(res1)) {
34693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34694 }
34695 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34696 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34697 if (!SWIG_IsOK(res2)) {
34698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34699 }
34700 if (!argp2) {
34701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34702 }
34703 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34704 {
34705 PyThreadState* __tstate = wxPyBeginAllowThreads();
34706 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34707 wxPyEndAllowThreads(__tstate);
34708 if (PyErr_Occurred()) SWIG_fail;
34709 }
34710 resultobj = result;
34711 return resultobj;
34712fail:
34713 return NULL;
34714}
34715
34716
34717SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34718 PyObject *resultobj = 0;
34719 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34720 wxTreeItemId *arg2 = 0 ;
34721 wxColour result;
34722 void *argp1 = 0 ;
34723 int res1 = 0 ;
34724 void *argp2 = 0 ;
34725 int res2 = 0 ;
34726 PyObject * obj0 = 0 ;
34727 PyObject * obj1 = 0 ;
34728 char * kwnames[] = {
34729 (char *) "self",(char *) "item", NULL
34730 };
34731
34732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34734 if (!SWIG_IsOK(res1)) {
34735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34736 }
34737 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34738 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34739 if (!SWIG_IsOK(res2)) {
34740 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34741 }
34742 if (!argp2) {
34743 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34744 }
34745 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34746 {
34747 PyThreadState* __tstate = wxPyBeginAllowThreads();
34748 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34749 wxPyEndAllowThreads(__tstate);
34750 if (PyErr_Occurred()) SWIG_fail;
34751 }
34752 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34753 return resultobj;
34754fail:
34755 return NULL;
34756}
34757
34758
34759SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34760 PyObject *resultobj = 0;
34761 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34762 wxTreeItemId *arg2 = 0 ;
34763 wxColour result;
34764 void *argp1 = 0 ;
34765 int res1 = 0 ;
34766 void *argp2 = 0 ;
34767 int res2 = 0 ;
34768 PyObject * obj0 = 0 ;
34769 PyObject * obj1 = 0 ;
34770 char * kwnames[] = {
34771 (char *) "self",(char *) "item", NULL
34772 };
34773
34774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34776 if (!SWIG_IsOK(res1)) {
34777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34778 }
34779 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34781 if (!SWIG_IsOK(res2)) {
34782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34783 }
34784 if (!argp2) {
34785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34786 }
34787 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34788 {
34789 PyThreadState* __tstate = wxPyBeginAllowThreads();
34790 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34791 wxPyEndAllowThreads(__tstate);
34792 if (PyErr_Occurred()) SWIG_fail;
34793 }
34794 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34795 return resultobj;
34796fail:
34797 return NULL;
34798}
34799
34800
34801SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34802 PyObject *resultobj = 0;
34803 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34804 wxTreeItemId *arg2 = 0 ;
34805 wxFont result;
34806 void *argp1 = 0 ;
34807 int res1 = 0 ;
34808 void *argp2 = 0 ;
34809 int res2 = 0 ;
34810 PyObject * obj0 = 0 ;
34811 PyObject * obj1 = 0 ;
34812 char * kwnames[] = {
34813 (char *) "self",(char *) "item", NULL
34814 };
34815
34816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34818 if (!SWIG_IsOK(res1)) {
34819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34820 }
34821 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34822 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34823 if (!SWIG_IsOK(res2)) {
34824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34825 }
34826 if (!argp2) {
34827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34828 }
34829 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34830 {
34831 PyThreadState* __tstate = wxPyBeginAllowThreads();
34832 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34833 wxPyEndAllowThreads(__tstate);
34834 if (PyErr_Occurred()) SWIG_fail;
34835 }
34836 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34837 return resultobj;
34838fail:
34839 return NULL;
34840}
34841
34842
34843SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34844 PyObject *resultobj = 0;
34845 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34846 wxTreeItemId *arg2 = 0 ;
34847 wxString *arg3 = 0 ;
34848 void *argp1 = 0 ;
34849 int res1 = 0 ;
34850 void *argp2 = 0 ;
34851 int res2 = 0 ;
34852 bool temp3 = false ;
34853 PyObject * obj0 = 0 ;
34854 PyObject * obj1 = 0 ;
34855 PyObject * obj2 = 0 ;
34856 char * kwnames[] = {
34857 (char *) "self",(char *) "item",(char *) "text", NULL
34858 };
34859
34860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34862 if (!SWIG_IsOK(res1)) {
34863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34864 }
34865 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34866 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34867 if (!SWIG_IsOK(res2)) {
34868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34869 }
34870 if (!argp2) {
34871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34872 }
34873 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34874 {
34875 arg3 = wxString_in_helper(obj2);
34876 if (arg3 == NULL) SWIG_fail;
34877 temp3 = true;
34878 }
34879 {
34880 PyThreadState* __tstate = wxPyBeginAllowThreads();
34881 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34882 wxPyEndAllowThreads(__tstate);
34883 if (PyErr_Occurred()) SWIG_fail;
34884 }
34885 resultobj = SWIG_Py_Void();
34886 {
34887 if (temp3)
34888 delete arg3;
34889 }
34890 return resultobj;
34891fail:
34892 {
34893 if (temp3)
34894 delete arg3;
34895 }
34896 return NULL;
34897}
34898
34899
34900SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34901 PyObject *resultobj = 0;
34902 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34903 wxTreeItemId *arg2 = 0 ;
34904 int arg3 ;
34905 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34906 void *argp1 = 0 ;
34907 int res1 = 0 ;
34908 void *argp2 = 0 ;
34909 int res2 = 0 ;
34910 int val3 ;
34911 int ecode3 = 0 ;
34912 int val4 ;
34913 int ecode4 = 0 ;
34914 PyObject * obj0 = 0 ;
34915 PyObject * obj1 = 0 ;
34916 PyObject * obj2 = 0 ;
34917 PyObject * obj3 = 0 ;
34918 char * kwnames[] = {
34919 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34920 };
34921
34922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34924 if (!SWIG_IsOK(res1)) {
34925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34926 }
34927 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34928 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34929 if (!SWIG_IsOK(res2)) {
34930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34931 }
34932 if (!argp2) {
34933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34934 }
34935 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34936 ecode3 = SWIG_AsVal_int(obj2, &val3);
34937 if (!SWIG_IsOK(ecode3)) {
34938 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34939 }
34940 arg3 = static_cast< int >(val3);
34941 if (obj3) {
34942 ecode4 = SWIG_AsVal_int(obj3, &val4);
34943 if (!SWIG_IsOK(ecode4)) {
34944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34945 }
34946 arg4 = static_cast< wxTreeItemIcon >(val4);
34947 }
34948 {
34949 PyThreadState* __tstate = wxPyBeginAllowThreads();
34950 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34951 wxPyEndAllowThreads(__tstate);
34952 if (PyErr_Occurred()) SWIG_fail;
34953 }
34954 resultobj = SWIG_Py_Void();
34955 return resultobj;
34956fail:
34957 return NULL;
34958}
34959
34960
34961SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34962 PyObject *resultobj = 0;
34963 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34964 wxTreeItemId *arg2 = 0 ;
34965 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34966 void *argp1 = 0 ;
34967 int res1 = 0 ;
34968 void *argp2 = 0 ;
34969 int res2 = 0 ;
34970 int res3 = 0 ;
34971 PyObject * obj0 = 0 ;
34972 PyObject * obj1 = 0 ;
34973 PyObject * obj2 = 0 ;
34974 char * kwnames[] = {
34975 (char *) "self",(char *) "item",(char *) "data", NULL
34976 };
34977
34978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34980 if (!SWIG_IsOK(res1)) {
34981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34982 }
34983 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34984 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34985 if (!SWIG_IsOK(res2)) {
34986 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34987 }
34988 if (!argp2) {
34989 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34990 }
34991 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34992 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34993 if (!SWIG_IsOK(res3)) {
34994 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34995 }
34996 {
34997 PyThreadState* __tstate = wxPyBeginAllowThreads();
34998 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34999 wxPyEndAllowThreads(__tstate);
35000 if (PyErr_Occurred()) SWIG_fail;
35001 }
35002 resultobj = SWIG_Py_Void();
35003 return resultobj;
35004fail:
35005 return NULL;
35006}
35007
35008
35009SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35010 PyObject *resultobj = 0;
35011 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35012 wxTreeItemId *arg2 = 0 ;
35013 PyObject *arg3 = (PyObject *) 0 ;
35014 void *argp1 = 0 ;
35015 int res1 = 0 ;
35016 void *argp2 = 0 ;
35017 int res2 = 0 ;
35018 PyObject * obj0 = 0 ;
35019 PyObject * obj1 = 0 ;
35020 PyObject * obj2 = 0 ;
35021 char * kwnames[] = {
35022 (char *) "self",(char *) "item",(char *) "obj", NULL
35023 };
35024
35025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35027 if (!SWIG_IsOK(res1)) {
35028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35029 }
35030 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35031 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35032 if (!SWIG_IsOK(res2)) {
35033 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35034 }
35035 if (!argp2) {
35036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35037 }
35038 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35039 arg3 = obj2;
35040 {
35041 PyThreadState* __tstate = wxPyBeginAllowThreads();
35042 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
35043 wxPyEndAllowThreads(__tstate);
35044 if (PyErr_Occurred()) SWIG_fail;
35045 }
35046 resultobj = SWIG_Py_Void();
35047 return resultobj;
35048fail:
35049 return NULL;
35050}
35051
35052
35053SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35054 PyObject *resultobj = 0;
35055 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35056 wxTreeItemId *arg2 = 0 ;
35057 bool arg3 = (bool) true ;
35058 void *argp1 = 0 ;
35059 int res1 = 0 ;
35060 void *argp2 = 0 ;
35061 int res2 = 0 ;
35062 bool val3 ;
35063 int ecode3 = 0 ;
35064 PyObject * obj0 = 0 ;
35065 PyObject * obj1 = 0 ;
35066 PyObject * obj2 = 0 ;
35067 char * kwnames[] = {
35068 (char *) "self",(char *) "item",(char *) "has", NULL
35069 };
35070
35071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35073 if (!SWIG_IsOK(res1)) {
35074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35075 }
35076 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35077 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35078 if (!SWIG_IsOK(res2)) {
35079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35080 }
35081 if (!argp2) {
35082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35083 }
35084 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35085 if (obj2) {
35086 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35087 if (!SWIG_IsOK(ecode3)) {
35088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35089 }
35090 arg3 = static_cast< bool >(val3);
35091 }
35092 {
35093 PyThreadState* __tstate = wxPyBeginAllowThreads();
35094 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35095 wxPyEndAllowThreads(__tstate);
35096 if (PyErr_Occurred()) SWIG_fail;
35097 }
35098 resultobj = SWIG_Py_Void();
35099 return resultobj;
35100fail:
35101 return NULL;
35102}
35103
35104
35105SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35106 PyObject *resultobj = 0;
35107 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35108 wxTreeItemId *arg2 = 0 ;
35109 bool arg3 = (bool) true ;
35110 void *argp1 = 0 ;
35111 int res1 = 0 ;
35112 void *argp2 = 0 ;
35113 int res2 = 0 ;
35114 bool val3 ;
35115 int ecode3 = 0 ;
35116 PyObject * obj0 = 0 ;
35117 PyObject * obj1 = 0 ;
35118 PyObject * obj2 = 0 ;
35119 char * kwnames[] = {
35120 (char *) "self",(char *) "item",(char *) "bold", NULL
35121 };
35122
35123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35125 if (!SWIG_IsOK(res1)) {
35126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35127 }
35128 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35129 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35130 if (!SWIG_IsOK(res2)) {
35131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35132 }
35133 if (!argp2) {
35134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35135 }
35136 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35137 if (obj2) {
35138 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35139 if (!SWIG_IsOK(ecode3)) {
35140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35141 }
35142 arg3 = static_cast< bool >(val3);
35143 }
35144 {
35145 PyThreadState* __tstate = wxPyBeginAllowThreads();
35146 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35147 wxPyEndAllowThreads(__tstate);
35148 if (PyErr_Occurred()) SWIG_fail;
35149 }
35150 resultobj = SWIG_Py_Void();
35151 return resultobj;
35152fail:
35153 return NULL;
35154}
35155
35156
35157SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35158 PyObject *resultobj = 0;
35159 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35160 wxTreeItemId *arg2 = 0 ;
35161 bool arg3 = (bool) true ;
35162 void *argp1 = 0 ;
35163 int res1 = 0 ;
35164 void *argp2 = 0 ;
35165 int res2 = 0 ;
35166 bool val3 ;
35167 int ecode3 = 0 ;
35168 PyObject * obj0 = 0 ;
35169 PyObject * obj1 = 0 ;
35170 PyObject * obj2 = 0 ;
35171 char * kwnames[] = {
35172 (char *) "self",(char *) "item",(char *) "highlight", NULL
35173 };
35174
35175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35177 if (!SWIG_IsOK(res1)) {
35178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35179 }
35180 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35181 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35182 if (!SWIG_IsOK(res2)) {
35183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35184 }
35185 if (!argp2) {
35186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35187 }
35188 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35189 if (obj2) {
35190 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35191 if (!SWIG_IsOK(ecode3)) {
35192 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35193 }
35194 arg3 = static_cast< bool >(val3);
35195 }
35196 {
35197 PyThreadState* __tstate = wxPyBeginAllowThreads();
35198 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35199 wxPyEndAllowThreads(__tstate);
35200 if (PyErr_Occurred()) SWIG_fail;
35201 }
35202 resultobj = SWIG_Py_Void();
35203 return resultobj;
35204fail:
35205 return NULL;
35206}
35207
35208
35209SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35210 PyObject *resultobj = 0;
35211 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35212 wxTreeItemId *arg2 = 0 ;
35213 wxColour *arg3 = 0 ;
35214 void *argp1 = 0 ;
35215 int res1 = 0 ;
35216 void *argp2 = 0 ;
35217 int res2 = 0 ;
35218 wxColour temp3 ;
35219 PyObject * obj0 = 0 ;
35220 PyObject * obj1 = 0 ;
35221 PyObject * obj2 = 0 ;
35222 char * kwnames[] = {
35223 (char *) "self",(char *) "item",(char *) "col", NULL
35224 };
35225
35226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35228 if (!SWIG_IsOK(res1)) {
35229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35230 }
35231 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35232 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35233 if (!SWIG_IsOK(res2)) {
35234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35235 }
35236 if (!argp2) {
35237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35238 }
35239 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35240 {
35241 arg3 = &temp3;
35242 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35243 }
35244 {
35245 PyThreadState* __tstate = wxPyBeginAllowThreads();
35246 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35247 wxPyEndAllowThreads(__tstate);
35248 if (PyErr_Occurred()) SWIG_fail;
35249 }
35250 resultobj = SWIG_Py_Void();
35251 return resultobj;
35252fail:
35253 return NULL;
35254}
35255
35256
35257SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35258 PyObject *resultobj = 0;
35259 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35260 wxTreeItemId *arg2 = 0 ;
35261 wxColour *arg3 = 0 ;
35262 void *argp1 = 0 ;
35263 int res1 = 0 ;
35264 void *argp2 = 0 ;
35265 int res2 = 0 ;
35266 wxColour temp3 ;
35267 PyObject * obj0 = 0 ;
35268 PyObject * obj1 = 0 ;
35269 PyObject * obj2 = 0 ;
35270 char * kwnames[] = {
35271 (char *) "self",(char *) "item",(char *) "col", NULL
35272 };
35273
35274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35276 if (!SWIG_IsOK(res1)) {
35277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35278 }
35279 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35280 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35281 if (!SWIG_IsOK(res2)) {
35282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35283 }
35284 if (!argp2) {
35285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35286 }
35287 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35288 {
35289 arg3 = &temp3;
35290 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35291 }
35292 {
35293 PyThreadState* __tstate = wxPyBeginAllowThreads();
35294 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35295 wxPyEndAllowThreads(__tstate);
35296 if (PyErr_Occurred()) SWIG_fail;
35297 }
35298 resultobj = SWIG_Py_Void();
35299 return resultobj;
35300fail:
35301 return NULL;
35302}
35303
35304
35305SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35306 PyObject *resultobj = 0;
35307 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35308 wxTreeItemId *arg2 = 0 ;
35309 wxFont *arg3 = 0 ;
35310 void *argp1 = 0 ;
35311 int res1 = 0 ;
35312 void *argp2 = 0 ;
35313 int res2 = 0 ;
35314 void *argp3 = 0 ;
35315 int res3 = 0 ;
35316 PyObject * obj0 = 0 ;
35317 PyObject * obj1 = 0 ;
35318 PyObject * obj2 = 0 ;
35319 char * kwnames[] = {
35320 (char *) "self",(char *) "item",(char *) "font", NULL
35321 };
35322
35323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35325 if (!SWIG_IsOK(res1)) {
35326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35327 }
35328 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35329 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35330 if (!SWIG_IsOK(res2)) {
35331 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35332 }
35333 if (!argp2) {
35334 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35335 }
35336 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35337 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35338 if (!SWIG_IsOK(res3)) {
35339 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35340 }
35341 if (!argp3) {
35342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35343 }
35344 arg3 = reinterpret_cast< wxFont * >(argp3);
35345 {
35346 PyThreadState* __tstate = wxPyBeginAllowThreads();
35347 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35348 wxPyEndAllowThreads(__tstate);
35349 if (PyErr_Occurred()) SWIG_fail;
35350 }
35351 resultobj = SWIG_Py_Void();
35352 return resultobj;
35353fail:
35354 return NULL;
35355}
35356
35357
35358SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35359 PyObject *resultobj = 0;
35360 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35361 wxTreeItemId *arg2 = 0 ;
35362 bool result;
35363 void *argp1 = 0 ;
35364 int res1 = 0 ;
35365 void *argp2 = 0 ;
35366 int res2 = 0 ;
35367 PyObject * obj0 = 0 ;
35368 PyObject * obj1 = 0 ;
35369 char * kwnames[] = {
35370 (char *) "self",(char *) "item", NULL
35371 };
35372
35373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35375 if (!SWIG_IsOK(res1)) {
35376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35377 }
35378 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35379 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35380 if (!SWIG_IsOK(res2)) {
35381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35382 }
35383 if (!argp2) {
35384 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35385 }
35386 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35387 {
35388 PyThreadState* __tstate = wxPyBeginAllowThreads();
35389 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35390 wxPyEndAllowThreads(__tstate);
35391 if (PyErr_Occurred()) SWIG_fail;
35392 }
35393 {
35394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35395 }
35396 return resultobj;
35397fail:
35398 return NULL;
35399}
35400
35401
35402SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35403 PyObject *resultobj = 0;
35404 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35405 wxTreeItemId *arg2 = 0 ;
35406 bool result;
35407 void *argp1 = 0 ;
35408 int res1 = 0 ;
35409 void *argp2 = 0 ;
35410 int res2 = 0 ;
35411 PyObject * obj0 = 0 ;
35412 PyObject * obj1 = 0 ;
35413 char * kwnames[] = {
35414 (char *) "self",(char *) "item", NULL
35415 };
35416
35417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35419 if (!SWIG_IsOK(res1)) {
35420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35421 }
35422 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35423 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35424 if (!SWIG_IsOK(res2)) {
35425 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35426 }
35427 if (!argp2) {
35428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35429 }
35430 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35431 {
35432 PyThreadState* __tstate = wxPyBeginAllowThreads();
35433 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35434 wxPyEndAllowThreads(__tstate);
35435 if (PyErr_Occurred()) SWIG_fail;
35436 }
35437 {
35438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35439 }
35440 return resultobj;
35441fail:
35442 return NULL;
35443}
35444
35445
35446SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35447 PyObject *resultobj = 0;
35448 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35449 wxTreeItemId *arg2 = 0 ;
35450 bool result;
35451 void *argp1 = 0 ;
35452 int res1 = 0 ;
35453 void *argp2 = 0 ;
35454 int res2 = 0 ;
35455 PyObject * obj0 = 0 ;
35456 PyObject * obj1 = 0 ;
35457 char * kwnames[] = {
35458 (char *) "self",(char *) "item", NULL
35459 };
35460
35461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35463 if (!SWIG_IsOK(res1)) {
35464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35465 }
35466 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35467 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35468 if (!SWIG_IsOK(res2)) {
35469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35470 }
35471 if (!argp2) {
35472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35473 }
35474 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35475 {
35476 PyThreadState* __tstate = wxPyBeginAllowThreads();
35477 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35478 wxPyEndAllowThreads(__tstate);
35479 if (PyErr_Occurred()) SWIG_fail;
35480 }
35481 {
35482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35483 }
35484 return resultobj;
35485fail:
35486 return NULL;
35487}
35488
35489
35490SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35491 PyObject *resultobj = 0;
35492 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35493 wxTreeItemId *arg2 = 0 ;
35494 bool result;
35495 void *argp1 = 0 ;
35496 int res1 = 0 ;
35497 void *argp2 = 0 ;
35498 int res2 = 0 ;
35499 PyObject * obj0 = 0 ;
35500 PyObject * obj1 = 0 ;
35501 char * kwnames[] = {
35502 (char *) "self",(char *) "item", NULL
35503 };
35504
35505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35507 if (!SWIG_IsOK(res1)) {
35508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35509 }
35510 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35512 if (!SWIG_IsOK(res2)) {
35513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35514 }
35515 if (!argp2) {
35516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35517 }
35518 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35519 {
35520 PyThreadState* __tstate = wxPyBeginAllowThreads();
35521 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35522 wxPyEndAllowThreads(__tstate);
35523 if (PyErr_Occurred()) SWIG_fail;
35524 }
35525 {
35526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35527 }
35528 return resultobj;
35529fail:
35530 return NULL;
35531}
35532
35533
35534SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35535 PyObject *resultobj = 0;
35536 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35537 wxTreeItemId *arg2 = 0 ;
35538 bool result;
35539 void *argp1 = 0 ;
35540 int res1 = 0 ;
35541 void *argp2 = 0 ;
35542 int res2 = 0 ;
35543 PyObject * obj0 = 0 ;
35544 PyObject * obj1 = 0 ;
35545 char * kwnames[] = {
35546 (char *) "self",(char *) "item", NULL
35547 };
35548
35549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35551 if (!SWIG_IsOK(res1)) {
35552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35553 }
35554 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35555 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35556 if (!SWIG_IsOK(res2)) {
35557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35558 }
35559 if (!argp2) {
35560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35561 }
35562 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35563 {
35564 PyThreadState* __tstate = wxPyBeginAllowThreads();
35565 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35566 wxPyEndAllowThreads(__tstate);
35567 if (PyErr_Occurred()) SWIG_fail;
35568 }
35569 {
35570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35571 }
35572 return resultobj;
35573fail:
35574 return NULL;
35575}
35576
35577
1ceb4f4d
RD
35578SWIGINTERN PyObject *_wrap_TreeCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35579 PyObject *resultobj = 0;
35580 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35581 bool result;
35582 void *argp1 = 0 ;
35583 int res1 = 0 ;
35584 PyObject *swig_obj[1] ;
35585
35586 if (!args) SWIG_fail;
35587 swig_obj[0] = args;
35588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35589 if (!SWIG_IsOK(res1)) {
35590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35591 }
35592 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35593 {
35594 PyThreadState* __tstate = wxPyBeginAllowThreads();
35595 result = (bool)((wxPyTreeCtrl const *)arg1)->IsEmpty();
35596 wxPyEndAllowThreads(__tstate);
35597 if (PyErr_Occurred()) SWIG_fail;
35598 }
35599 {
35600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35601 }
35602 return resultobj;
35603fail:
35604 return NULL;
35605}
35606
35607
0085ce49
RD
35608SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35609 PyObject *resultobj = 0;
35610 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35611 wxTreeItemId *arg2 = 0 ;
35612 bool arg3 = (bool) true ;
35613 size_t result;
35614 void *argp1 = 0 ;
35615 int res1 = 0 ;
35616 void *argp2 = 0 ;
35617 int res2 = 0 ;
35618 bool val3 ;
35619 int ecode3 = 0 ;
35620 PyObject * obj0 = 0 ;
35621 PyObject * obj1 = 0 ;
35622 PyObject * obj2 = 0 ;
35623 char * kwnames[] = {
35624 (char *) "self",(char *) "item",(char *) "recursively", NULL
35625 };
35626
35627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35629 if (!SWIG_IsOK(res1)) {
35630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35631 }
35632 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35634 if (!SWIG_IsOK(res2)) {
35635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35636 }
35637 if (!argp2) {
35638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35639 }
35640 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35641 if (obj2) {
35642 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35643 if (!SWIG_IsOK(ecode3)) {
35644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35645 }
35646 arg3 = static_cast< bool >(val3);
35647 }
35648 {
35649 PyThreadState* __tstate = wxPyBeginAllowThreads();
35650 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35651 wxPyEndAllowThreads(__tstate);
35652 if (PyErr_Occurred()) SWIG_fail;
35653 }
35654 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35655 return resultobj;
35656fail:
35657 return NULL;
d14a1e28
RD
35658}
35659
35660
0085ce49
RD
35661SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35662 PyObject *resultobj = 0;
35663 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35664 wxTreeItemId result;
35665 void *argp1 = 0 ;
35666 int res1 = 0 ;
35667 PyObject *swig_obj[1] ;
35668
35669 if (!args) SWIG_fail;
35670 swig_obj[0] = args;
35671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35672 if (!SWIG_IsOK(res1)) {
35673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35674 }
35675 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35676 {
35677 PyThreadState* __tstate = wxPyBeginAllowThreads();
35678 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35679 wxPyEndAllowThreads(__tstate);
35680 if (PyErr_Occurred()) SWIG_fail;
35681 }
35682 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35683 return resultobj;
35684fail:
35685 return NULL;
d14a1e28
RD
35686}
35687
35688
0085ce49
RD
35689SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35690 PyObject *resultobj = 0;
35691 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35692 wxTreeItemId result;
35693 void *argp1 = 0 ;
35694 int res1 = 0 ;
35695 PyObject *swig_obj[1] ;
35696
35697 if (!args) SWIG_fail;
35698 swig_obj[0] = args;
35699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35700 if (!SWIG_IsOK(res1)) {
35701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35702 }
35703 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35704 {
35705 PyThreadState* __tstate = wxPyBeginAllowThreads();
35706 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35707 wxPyEndAllowThreads(__tstate);
35708 if (PyErr_Occurred()) SWIG_fail;
35709 }
35710 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35711 return resultobj;
35712fail:
35713 return NULL;
d14a1e28
RD
35714}
35715
35716
0085ce49
RD
35717SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35718 PyObject *resultobj = 0;
35719 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35720 PyObject *result = 0 ;
35721 void *argp1 = 0 ;
35722 int res1 = 0 ;
35723 PyObject *swig_obj[1] ;
35724
35725 if (!args) SWIG_fail;
35726 swig_obj[0] = args;
35727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35728 if (!SWIG_IsOK(res1)) {
35729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35730 }
35731 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35732 {
35733 PyThreadState* __tstate = wxPyBeginAllowThreads();
35734 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35735 wxPyEndAllowThreads(__tstate);
35736 if (PyErr_Occurred()) SWIG_fail;
35737 }
35738 resultobj = result;
35739 return resultobj;
35740fail:
35741 return NULL;
35742}
35743
35744
35745SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35746 PyObject *resultobj = 0;
35747 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35748 wxTreeItemId *arg2 = 0 ;
35749 wxTreeItemId result;
35750 void *argp1 = 0 ;
35751 int res1 = 0 ;
35752 void *argp2 = 0 ;
35753 int res2 = 0 ;
35754 PyObject * obj0 = 0 ;
35755 PyObject * obj1 = 0 ;
35756 char * kwnames[] = {
35757 (char *) "self",(char *) "item", NULL
35758 };
35759
35760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35762 if (!SWIG_IsOK(res1)) {
35763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35764 }
35765 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35766 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35767 if (!SWIG_IsOK(res2)) {
35768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35769 }
35770 if (!argp2) {
35771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35772 }
35773 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35774 {
35775 PyThreadState* __tstate = wxPyBeginAllowThreads();
35776 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35777 wxPyEndAllowThreads(__tstate);
35778 if (PyErr_Occurred()) SWIG_fail;
35779 }
35780 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35781 return resultobj;
35782fail:
35783 return NULL;
35784}
35785
35786
35787SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35788 PyObject *resultobj = 0;
35789 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35790 wxTreeItemId *arg2 = 0 ;
35791 PyObject *result = 0 ;
35792 void *argp1 = 0 ;
35793 int res1 = 0 ;
35794 void *argp2 = 0 ;
35795 int res2 = 0 ;
35796 PyObject * obj0 = 0 ;
35797 PyObject * obj1 = 0 ;
35798 char * kwnames[] = {
35799 (char *) "self",(char *) "item", NULL
35800 };
35801
35802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35804 if (!SWIG_IsOK(res1)) {
35805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35806 }
35807 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35808 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35809 if (!SWIG_IsOK(res2)) {
35810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35811 }
35812 if (!argp2) {
35813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35814 }
35815 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35816 {
35817 PyThreadState* __tstate = wxPyBeginAllowThreads();
35818 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35819 wxPyEndAllowThreads(__tstate);
35820 if (PyErr_Occurred()) SWIG_fail;
35821 }
35822 resultobj = result;
35823 return resultobj;
35824fail:
35825 return NULL;
35826}
35827
35828
35829SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35830 PyObject *resultobj = 0;
35831 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35832 wxTreeItemId *arg2 = 0 ;
35833 void *arg3 = (void *) 0 ;
35834 PyObject *result = 0 ;
35835 void *argp1 = 0 ;
35836 int res1 = 0 ;
35837 void *argp2 = 0 ;
35838 int res2 = 0 ;
35839 int res3 ;
35840 PyObject * obj0 = 0 ;
35841 PyObject * obj1 = 0 ;
35842 PyObject * obj2 = 0 ;
35843 char * kwnames[] = {
35844 (char *) "self",(char *) "item",(char *) "cookie", NULL
35845 };
35846
35847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35849 if (!SWIG_IsOK(res1)) {
35850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35851 }
35852 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35853 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35854 if (!SWIG_IsOK(res2)) {
35855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35856 }
35857 if (!argp2) {
35858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35859 }
35860 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35861 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35862 if (!SWIG_IsOK(res3)) {
35863 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35864 }
35865 {
35866 PyThreadState* __tstate = wxPyBeginAllowThreads();
35867 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35868 wxPyEndAllowThreads(__tstate);
35869 if (PyErr_Occurred()) SWIG_fail;
35870 }
35871 resultobj = result;
35872 return resultobj;
35873fail:
35874 return NULL;
35875}
35876
35877
35878SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35879 PyObject *resultobj = 0;
35880 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35881 wxTreeItemId *arg2 = 0 ;
35882 wxTreeItemId result;
35883 void *argp1 = 0 ;
35884 int res1 = 0 ;
35885 void *argp2 = 0 ;
35886 int res2 = 0 ;
35887 PyObject * obj0 = 0 ;
35888 PyObject * obj1 = 0 ;
35889 char * kwnames[] = {
35890 (char *) "self",(char *) "item", NULL
35891 };
35892
35893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35895 if (!SWIG_IsOK(res1)) {
35896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35897 }
35898 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35899 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35900 if (!SWIG_IsOK(res2)) {
35901 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35902 }
35903 if (!argp2) {
35904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35905 }
35906 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35907 {
35908 PyThreadState* __tstate = wxPyBeginAllowThreads();
35909 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35910 wxPyEndAllowThreads(__tstate);
35911 if (PyErr_Occurred()) SWIG_fail;
35912 }
35913 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35914 return resultobj;
35915fail:
35916 return NULL;
35917}
35918
35919
35920SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35921 PyObject *resultobj = 0;
35922 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35923 wxTreeItemId *arg2 = 0 ;
35924 wxTreeItemId result;
35925 void *argp1 = 0 ;
35926 int res1 = 0 ;
35927 void *argp2 = 0 ;
35928 int res2 = 0 ;
35929 PyObject * obj0 = 0 ;
35930 PyObject * obj1 = 0 ;
35931 char * kwnames[] = {
35932 (char *) "self",(char *) "item", NULL
35933 };
35934
35935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35937 if (!SWIG_IsOK(res1)) {
35938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35939 }
35940 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35941 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35942 if (!SWIG_IsOK(res2)) {
35943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35944 }
35945 if (!argp2) {
35946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35947 }
35948 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35949 {
35950 PyThreadState* __tstate = wxPyBeginAllowThreads();
35951 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35952 wxPyEndAllowThreads(__tstate);
35953 if (PyErr_Occurred()) SWIG_fail;
35954 }
35955 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35956 return resultobj;
35957fail:
35958 return NULL;
35959}
35960
35961
35962SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35963 PyObject *resultobj = 0;
35964 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35965 wxTreeItemId *arg2 = 0 ;
35966 wxTreeItemId result;
35967 void *argp1 = 0 ;
35968 int res1 = 0 ;
35969 void *argp2 = 0 ;
35970 int res2 = 0 ;
35971 PyObject * obj0 = 0 ;
35972 PyObject * obj1 = 0 ;
35973 char * kwnames[] = {
35974 (char *) "self",(char *) "item", NULL
35975 };
35976
35977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35979 if (!SWIG_IsOK(res1)) {
35980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35981 }
35982 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35983 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35984 if (!SWIG_IsOK(res2)) {
35985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35986 }
35987 if (!argp2) {
35988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35989 }
35990 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35991 {
35992 PyThreadState* __tstate = wxPyBeginAllowThreads();
35993 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35994 wxPyEndAllowThreads(__tstate);
35995 if (PyErr_Occurred()) SWIG_fail;
35996 }
35997 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35998 return resultobj;
35999fail:
36000 return NULL;
d14a1e28
RD
36001}
36002
36003
0085ce49
RD
36004SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36005 PyObject *resultobj = 0;
36006 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36007 wxTreeItemId result;
36008 void *argp1 = 0 ;
36009 int res1 = 0 ;
36010 PyObject *swig_obj[1] ;
36011
36012 if (!args) SWIG_fail;
36013 swig_obj[0] = args;
36014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36015 if (!SWIG_IsOK(res1)) {
36016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36017 }
36018 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36019 {
36020 PyThreadState* __tstate = wxPyBeginAllowThreads();
36021 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
36022 wxPyEndAllowThreads(__tstate);
36023 if (PyErr_Occurred()) SWIG_fail;
36024 }
36025 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36026 return resultobj;
36027fail:
36028 return NULL;
36029}
36030
36031
36032SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36033 PyObject *resultobj = 0;
36034 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36035 wxTreeItemId *arg2 = 0 ;
36036 wxTreeItemId result;
36037 void *argp1 = 0 ;
36038 int res1 = 0 ;
36039 void *argp2 = 0 ;
36040 int res2 = 0 ;
36041 PyObject * obj0 = 0 ;
36042 PyObject * obj1 = 0 ;
36043 char * kwnames[] = {
36044 (char *) "self",(char *) "item", NULL
36045 };
36046
36047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36049 if (!SWIG_IsOK(res1)) {
36050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36051 }
36052 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36053 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36054 if (!SWIG_IsOK(res2)) {
36055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36056 }
36057 if (!argp2) {
36058 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36059 }
36060 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36061 {
36062 PyThreadState* __tstate = wxPyBeginAllowThreads();
36063 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
36064 wxPyEndAllowThreads(__tstate);
36065 if (PyErr_Occurred()) SWIG_fail;
36066 }
36067 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36068 return resultobj;
36069fail:
36070 return NULL;
36071}
36072
36073
36074SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36075 PyObject *resultobj = 0;
36076 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36077 wxTreeItemId *arg2 = 0 ;
36078 wxTreeItemId result;
36079 void *argp1 = 0 ;
36080 int res1 = 0 ;
36081 void *argp2 = 0 ;
36082 int res2 = 0 ;
36083 PyObject * obj0 = 0 ;
36084 PyObject * obj1 = 0 ;
36085 char * kwnames[] = {
36086 (char *) "self",(char *) "item", NULL
36087 };
36088
36089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36091 if (!SWIG_IsOK(res1)) {
36092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36093 }
36094 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36095 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36096 if (!SWIG_IsOK(res2)) {
36097 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36098 }
36099 if (!argp2) {
36100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36101 }
36102 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36103 {
36104 PyThreadState* __tstate = wxPyBeginAllowThreads();
36105 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36106 wxPyEndAllowThreads(__tstate);
36107 if (PyErr_Occurred()) SWIG_fail;
36108 }
36109 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36110 return resultobj;
36111fail:
36112 return NULL;
36113}
36114
36115
36116SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36117 PyObject *resultobj = 0;
36118 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36119 wxString *arg2 = 0 ;
36120 int arg3 = (int) -1 ;
36121 int arg4 = (int) -1 ;
36122 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36123 wxTreeItemId result;
36124 void *argp1 = 0 ;
36125 int res1 = 0 ;
36126 bool temp2 = false ;
36127 int val3 ;
36128 int ecode3 = 0 ;
36129 int val4 ;
36130 int ecode4 = 0 ;
36131 int res5 = 0 ;
36132 PyObject * obj0 = 0 ;
36133 PyObject * obj1 = 0 ;
36134 PyObject * obj2 = 0 ;
36135 PyObject * obj3 = 0 ;
36136 PyObject * obj4 = 0 ;
36137 char * kwnames[] = {
36138 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36139 };
36140
36141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36143 if (!SWIG_IsOK(res1)) {
36144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36145 }
36146 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36147 {
36148 arg2 = wxString_in_helper(obj1);
36149 if (arg2 == NULL) SWIG_fail;
36150 temp2 = true;
36151 }
36152 if (obj2) {
36153 ecode3 = SWIG_AsVal_int(obj2, &val3);
36154 if (!SWIG_IsOK(ecode3)) {
36155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36156 }
36157 arg3 = static_cast< int >(val3);
36158 }
36159 if (obj3) {
36160 ecode4 = SWIG_AsVal_int(obj3, &val4);
36161 if (!SWIG_IsOK(ecode4)) {
36162 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36163 }
36164 arg4 = static_cast< int >(val4);
36165 }
36166 if (obj4) {
36167 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36168 if (!SWIG_IsOK(res5)) {
36169 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
3a04f143 36170 }
0085ce49
RD
36171 }
36172 {
36173 PyThreadState* __tstate = wxPyBeginAllowThreads();
36174 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36175 wxPyEndAllowThreads(__tstate);
36176 if (PyErr_Occurred()) SWIG_fail;
36177 }
36178 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36179 {
36180 if (temp2)
36181 delete arg2;
36182 }
36183 return resultobj;
36184fail:
36185 {
36186 if (temp2)
36187 delete arg2;
36188 }
36189 return NULL;
36190}
36191
36192
36193SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36194 PyObject *resultobj = 0;
36195 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36196 wxTreeItemId *arg2 = 0 ;
36197 wxString *arg3 = 0 ;
36198 int arg4 = (int) -1 ;
36199 int arg5 = (int) -1 ;
36200 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36201 wxTreeItemId result;
36202 void *argp1 = 0 ;
36203 int res1 = 0 ;
36204 void *argp2 = 0 ;
36205 int res2 = 0 ;
36206 bool temp3 = false ;
36207 int val4 ;
36208 int ecode4 = 0 ;
36209 int val5 ;
36210 int ecode5 = 0 ;
36211 int res6 = 0 ;
36212 PyObject * obj0 = 0 ;
36213 PyObject * obj1 = 0 ;
36214 PyObject * obj2 = 0 ;
36215 PyObject * obj3 = 0 ;
36216 PyObject * obj4 = 0 ;
36217 PyObject * obj5 = 0 ;
36218 char * kwnames[] = {
36219 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36220 };
36221
36222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36224 if (!SWIG_IsOK(res1)) {
36225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36226 }
36227 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36228 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36229 if (!SWIG_IsOK(res2)) {
36230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36231 }
36232 if (!argp2) {
36233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36234 }
36235 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36236 {
36237 arg3 = wxString_in_helper(obj2);
36238 if (arg3 == NULL) SWIG_fail;
36239 temp3 = true;
36240 }
36241 if (obj3) {
36242 ecode4 = SWIG_AsVal_int(obj3, &val4);
36243 if (!SWIG_IsOK(ecode4)) {
36244 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36245 }
36246 arg4 = static_cast< int >(val4);
36247 }
36248 if (obj4) {
36249 ecode5 = SWIG_AsVal_int(obj4, &val5);
36250 if (!SWIG_IsOK(ecode5)) {
36251 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36252 }
36253 arg5 = static_cast< int >(val5);
36254 }
36255 if (obj5) {
36256 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36257 if (!SWIG_IsOK(res6)) {
36258 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 36259 }
0085ce49
RD
36260 }
36261 {
36262 PyThreadState* __tstate = wxPyBeginAllowThreads();
36263 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36264 wxPyEndAllowThreads(__tstate);
36265 if (PyErr_Occurred()) SWIG_fail;
36266 }
36267 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36268 {
36269 if (temp3)
36270 delete arg3;
36271 }
36272 return resultobj;
36273fail:
36274 {
36275 if (temp3)
36276 delete arg3;
36277 }
36278 return NULL;
36279}
36280
36281
36282SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36283 PyObject *resultobj = 0;
36284 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36285 wxTreeItemId *arg2 = 0 ;
36286 wxTreeItemId *arg3 = 0 ;
36287 wxString *arg4 = 0 ;
36288 int arg5 = (int) -1 ;
36289 int arg6 = (int) -1 ;
36290 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36291 wxTreeItemId result;
36292 void *argp1 = 0 ;
36293 int res1 = 0 ;
36294 void *argp2 = 0 ;
36295 int res2 = 0 ;
36296 void *argp3 = 0 ;
36297 int res3 = 0 ;
36298 bool temp4 = false ;
36299 int val5 ;
36300 int ecode5 = 0 ;
36301 int val6 ;
36302 int ecode6 = 0 ;
36303 int res7 = 0 ;
36304 PyObject * obj0 = 0 ;
36305 PyObject * obj1 = 0 ;
36306 PyObject * obj2 = 0 ;
36307 PyObject * obj3 = 0 ;
36308 PyObject * obj4 = 0 ;
36309 PyObject * obj5 = 0 ;
36310 PyObject * obj6 = 0 ;
36311 char * kwnames[] = {
36312 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36313 };
36314
36315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36317 if (!SWIG_IsOK(res1)) {
36318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36319 }
36320 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36321 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36322 if (!SWIG_IsOK(res2)) {
36323 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36324 }
36325 if (!argp2) {
36326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36327 }
36328 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36329 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36330 if (!SWIG_IsOK(res3)) {
36331 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36332 }
36333 if (!argp3) {
36334 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36335 }
36336 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36337 {
36338 arg4 = wxString_in_helper(obj3);
36339 if (arg4 == NULL) SWIG_fail;
36340 temp4 = true;
36341 }
36342 if (obj4) {
36343 ecode5 = SWIG_AsVal_int(obj4, &val5);
36344 if (!SWIG_IsOK(ecode5)) {
36345 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36346 }
36347 arg5 = static_cast< int >(val5);
36348 }
36349 if (obj5) {
36350 ecode6 = SWIG_AsVal_int(obj5, &val6);
36351 if (!SWIG_IsOK(ecode6)) {
36352 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36353 }
36354 arg6 = static_cast< int >(val6);
36355 }
36356 if (obj6) {
36357 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36358 if (!SWIG_IsOK(res7)) {
36359 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
093d3ff1 36360 }
0085ce49
RD
36361 }
36362 {
36363 PyThreadState* __tstate = wxPyBeginAllowThreads();
36364 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36365 wxPyEndAllowThreads(__tstate);
36366 if (PyErr_Occurred()) SWIG_fail;
36367 }
36368 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36369 {
36370 if (temp4)
36371 delete arg4;
36372 }
36373 return resultobj;
36374fail:
36375 {
36376 if (temp4)
36377 delete arg4;
36378 }
36379 return NULL;
36380}
36381
36382
36383SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36384 PyObject *resultobj = 0;
36385 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36386 wxTreeItemId *arg2 = 0 ;
36387 size_t arg3 ;
36388 wxString *arg4 = 0 ;
36389 int arg5 = (int) -1 ;
36390 int arg6 = (int) -1 ;
36391 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36392 wxTreeItemId result;
36393 void *argp1 = 0 ;
36394 int res1 = 0 ;
36395 void *argp2 = 0 ;
36396 int res2 = 0 ;
36397 size_t val3 ;
36398 int ecode3 = 0 ;
36399 bool temp4 = false ;
36400 int val5 ;
36401 int ecode5 = 0 ;
36402 int val6 ;
36403 int ecode6 = 0 ;
36404 int res7 = 0 ;
36405 PyObject * obj0 = 0 ;
36406 PyObject * obj1 = 0 ;
36407 PyObject * obj2 = 0 ;
36408 PyObject * obj3 = 0 ;
36409 PyObject * obj4 = 0 ;
36410 PyObject * obj5 = 0 ;
36411 PyObject * obj6 = 0 ;
36412 char * kwnames[] = {
36413 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36414 };
36415
36416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36418 if (!SWIG_IsOK(res1)) {
36419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36420 }
36421 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36422 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36423 if (!SWIG_IsOK(res2)) {
36424 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36425 }
36426 if (!argp2) {
36427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36428 }
36429 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36430 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36431 if (!SWIG_IsOK(ecode3)) {
36432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36433 }
36434 arg3 = static_cast< size_t >(val3);
36435 {
36436 arg4 = wxString_in_helper(obj3);
36437 if (arg4 == NULL) SWIG_fail;
36438 temp4 = true;
36439 }
36440 if (obj4) {
36441 ecode5 = SWIG_AsVal_int(obj4, &val5);
36442 if (!SWIG_IsOK(ecode5)) {
36443 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36444 }
36445 arg5 = static_cast< int >(val5);
36446 }
36447 if (obj5) {
36448 ecode6 = SWIG_AsVal_int(obj5, &val6);
36449 if (!SWIG_IsOK(ecode6)) {
36450 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36451 }
36452 arg6 = static_cast< int >(val6);
36453 }
36454 if (obj6) {
36455 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36456 if (!SWIG_IsOK(res7)) {
36457 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
3a04f143 36458 }
0085ce49
RD
36459 }
36460 {
36461 PyThreadState* __tstate = wxPyBeginAllowThreads();
36462 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36463 wxPyEndAllowThreads(__tstate);
36464 if (PyErr_Occurred()) SWIG_fail;
36465 }
36466 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36467 {
36468 if (temp4)
36469 delete arg4;
36470 }
36471 return resultobj;
36472fail:
36473 {
36474 if (temp4)
36475 delete arg4;
36476 }
36477 return NULL;
36478}
36479
36480
36481SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36482 PyObject *resultobj = 0;
36483 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36484 wxTreeItemId *arg2 = 0 ;
36485 wxString *arg3 = 0 ;
36486 int arg4 = (int) -1 ;
36487 int arg5 = (int) -1 ;
36488 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36489 wxTreeItemId result;
36490 void *argp1 = 0 ;
36491 int res1 = 0 ;
36492 void *argp2 = 0 ;
36493 int res2 = 0 ;
36494 bool temp3 = false ;
36495 int val4 ;
36496 int ecode4 = 0 ;
36497 int val5 ;
36498 int ecode5 = 0 ;
36499 int res6 = 0 ;
36500 PyObject * obj0 = 0 ;
36501 PyObject * obj1 = 0 ;
36502 PyObject * obj2 = 0 ;
36503 PyObject * obj3 = 0 ;
36504 PyObject * obj4 = 0 ;
36505 PyObject * obj5 = 0 ;
36506 char * kwnames[] = {
36507 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36508 };
36509
36510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36512 if (!SWIG_IsOK(res1)) {
36513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36514 }
36515 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36516 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36517 if (!SWIG_IsOK(res2)) {
36518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36519 }
36520 if (!argp2) {
36521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36522 }
36523 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36524 {
36525 arg3 = wxString_in_helper(obj2);
36526 if (arg3 == NULL) SWIG_fail;
36527 temp3 = true;
36528 }
36529 if (obj3) {
36530 ecode4 = SWIG_AsVal_int(obj3, &val4);
36531 if (!SWIG_IsOK(ecode4)) {
36532 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36533 }
36534 arg4 = static_cast< int >(val4);
36535 }
36536 if (obj4) {
36537 ecode5 = SWIG_AsVal_int(obj4, &val5);
36538 if (!SWIG_IsOK(ecode5)) {
36539 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36540 }
36541 arg5 = static_cast< int >(val5);
36542 }
36543 if (obj5) {
36544 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36545 if (!SWIG_IsOK(res6)) {
36546 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
3a04f143 36547 }
0085ce49
RD
36548 }
36549 {
36550 PyThreadState* __tstate = wxPyBeginAllowThreads();
36551 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36552 wxPyEndAllowThreads(__tstate);
36553 if (PyErr_Occurred()) SWIG_fail;
36554 }
36555 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36556 {
36557 if (temp3)
36558 delete arg3;
36559 }
36560 return resultobj;
36561fail:
36562 {
36563 if (temp3)
36564 delete arg3;
36565 }
36566 return NULL;
36567}
36568
36569
36570SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36571 PyObject *resultobj = 0;
36572 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36573 wxTreeItemId *arg2 = 0 ;
36574 void *argp1 = 0 ;
36575 int res1 = 0 ;
36576 void *argp2 = 0 ;
36577 int res2 = 0 ;
36578 PyObject * obj0 = 0 ;
36579 PyObject * obj1 = 0 ;
36580 char * kwnames[] = {
36581 (char *) "self",(char *) "item", NULL
36582 };
36583
36584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36586 if (!SWIG_IsOK(res1)) {
36587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36588 }
36589 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36590 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36591 if (!SWIG_IsOK(res2)) {
36592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36593 }
36594 if (!argp2) {
36595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36596 }
36597 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36598 {
36599 PyThreadState* __tstate = wxPyBeginAllowThreads();
36600 (arg1)->Delete((wxTreeItemId const &)*arg2);
36601 wxPyEndAllowThreads(__tstate);
36602 if (PyErr_Occurred()) SWIG_fail;
36603 }
36604 resultobj = SWIG_Py_Void();
36605 return resultobj;
36606fail:
36607 return NULL;
36608}
36609
36610
36611SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36612 PyObject *resultobj = 0;
36613 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36614 wxTreeItemId *arg2 = 0 ;
36615 void *argp1 = 0 ;
36616 int res1 = 0 ;
36617 void *argp2 = 0 ;
36618 int res2 = 0 ;
36619 PyObject * obj0 = 0 ;
36620 PyObject * obj1 = 0 ;
36621 char * kwnames[] = {
36622 (char *) "self",(char *) "item", NULL
36623 };
36624
36625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36627 if (!SWIG_IsOK(res1)) {
36628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36629 }
36630 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36631 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36632 if (!SWIG_IsOK(res2)) {
36633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36634 }
36635 if (!argp2) {
36636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36637 }
36638 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36639 {
36640 PyThreadState* __tstate = wxPyBeginAllowThreads();
36641 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36642 wxPyEndAllowThreads(__tstate);
36643 if (PyErr_Occurred()) SWIG_fail;
36644 }
36645 resultobj = SWIG_Py_Void();
36646 return resultobj;
36647fail:
36648 return NULL;
3a04f143
RD
36649}
36650
36651
0085ce49
RD
36652SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36653 PyObject *resultobj = 0;
36654 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36655 void *argp1 = 0 ;
36656 int res1 = 0 ;
36657 PyObject *swig_obj[1] ;
36658
36659 if (!args) SWIG_fail;
36660 swig_obj[0] = args;
36661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36662 if (!SWIG_IsOK(res1)) {
36663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36664 }
36665 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36666 {
36667 PyThreadState* __tstate = wxPyBeginAllowThreads();
36668 (arg1)->DeleteAllItems();
36669 wxPyEndAllowThreads(__tstate);
36670 if (PyErr_Occurred()) SWIG_fail;
36671 }
36672 resultobj = SWIG_Py_Void();
36673 return resultobj;
36674fail:
36675 return NULL;
36676}
36677
36678
36679SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36680 PyObject *resultobj = 0;
36681 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36682 wxTreeItemId *arg2 = 0 ;
36683 void *argp1 = 0 ;
36684 int res1 = 0 ;
36685 void *argp2 = 0 ;
36686 int res2 = 0 ;
36687 PyObject * obj0 = 0 ;
36688 PyObject * obj1 = 0 ;
36689 char * kwnames[] = {
36690 (char *) "self",(char *) "item", NULL
36691 };
36692
36693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36695 if (!SWIG_IsOK(res1)) {
36696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36697 }
36698 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36699 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36700 if (!SWIG_IsOK(res2)) {
36701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36702 }
36703 if (!argp2) {
36704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36705 }
36706 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36707 {
36708 PyThreadState* __tstate = wxPyBeginAllowThreads();
36709 (arg1)->Expand((wxTreeItemId const &)*arg2);
36710 wxPyEndAllowThreads(__tstate);
36711 if (PyErr_Occurred()) SWIG_fail;
36712 }
36713 resultobj = SWIG_Py_Void();
36714 return resultobj;
36715fail:
36716 return NULL;
36717}
36718
36719
453fb36b
RD
36720SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36721 PyObject *resultobj = 0;
36722 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36723 wxTreeItemId *arg2 = 0 ;
36724 void *argp1 = 0 ;
36725 int res1 = 0 ;
36726 void *argp2 = 0 ;
36727 int res2 = 0 ;
36728 PyObject * obj0 = 0 ;
36729 PyObject * obj1 = 0 ;
36730 char * kwnames[] = {
36731 (char *) "self",(char *) "item", NULL
36732 };
36733
36734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36736 if (!SWIG_IsOK(res1)) {
36737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36738 }
36739 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36740 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36741 if (!SWIG_IsOK(res2)) {
36742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36743 }
36744 if (!argp2) {
36745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36746 }
36747 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36748 {
36749 PyThreadState* __tstate = wxPyBeginAllowThreads();
36750 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36751 wxPyEndAllowThreads(__tstate);
36752 if (PyErr_Occurred()) SWIG_fail;
36753 }
36754 resultobj = SWIG_Py_Void();
36755 return resultobj;
36756fail:
36757 return NULL;
36758}
36759
36760
36761SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36762 PyObject *resultobj = 0;
36763 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36764 void *argp1 = 0 ;
36765 int res1 = 0 ;
36766 PyObject *swig_obj[1] ;
36767
36768 if (!args) SWIG_fail;
36769 swig_obj[0] = args;
36770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36771 if (!SWIG_IsOK(res1)) {
36772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36773 }
36774 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36775 {
36776 PyThreadState* __tstate = wxPyBeginAllowThreads();
36777 (arg1)->ExpandAll();
36778 wxPyEndAllowThreads(__tstate);
36779 if (PyErr_Occurred()) SWIG_fail;
36780 }
36781 resultobj = SWIG_Py_Void();
36782 return resultobj;
36783fail:
36784 return NULL;
36785}
36786
36787
0085ce49
RD
36788SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36789 PyObject *resultobj = 0;
36790 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36791 wxTreeItemId *arg2 = 0 ;
36792 void *argp1 = 0 ;
36793 int res1 = 0 ;
36794 void *argp2 = 0 ;
36795 int res2 = 0 ;
36796 PyObject * obj0 = 0 ;
36797 PyObject * obj1 = 0 ;
36798 char * kwnames[] = {
36799 (char *) "self",(char *) "item", NULL
36800 };
36801
36802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36804 if (!SWIG_IsOK(res1)) {
36805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36806 }
36807 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36808 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36809 if (!SWIG_IsOK(res2)) {
36810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36811 }
36812 if (!argp2) {
36813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36814 }
36815 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36816 {
36817 PyThreadState* __tstate = wxPyBeginAllowThreads();
36818 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36819 wxPyEndAllowThreads(__tstate);
36820 if (PyErr_Occurred()) SWIG_fail;
36821 }
36822 resultobj = SWIG_Py_Void();
36823 return resultobj;
36824fail:
36825 return NULL;
36826}
36827
36828
1ceb4f4d
RD
36829SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36830 PyObject *resultobj = 0;
36831 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36832 wxTreeItemId *arg2 = 0 ;
36833 void *argp1 = 0 ;
36834 int res1 = 0 ;
36835 void *argp2 = 0 ;
36836 int res2 = 0 ;
36837 PyObject * obj0 = 0 ;
36838 PyObject * obj1 = 0 ;
36839 char * kwnames[] = {
36840 (char *) "self",(char *) "item", NULL
36841 };
36842
36843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36845 if (!SWIG_IsOK(res1)) {
36846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36847 }
36848 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36849 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36850 if (!SWIG_IsOK(res2)) {
36851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36852 }
36853 if (!argp2) {
36854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36855 }
36856 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36857 {
36858 PyThreadState* __tstate = wxPyBeginAllowThreads();
36859 (arg1)->CollapseAllChildren((wxTreeItemId const &)*arg2);
36860 wxPyEndAllowThreads(__tstate);
36861 if (PyErr_Occurred()) SWIG_fail;
36862 }
36863 resultobj = SWIG_Py_Void();
36864 return resultobj;
36865fail:
36866 return NULL;
36867}
36868
36869
36870SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36871 PyObject *resultobj = 0;
36872 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36873 void *argp1 = 0 ;
36874 int res1 = 0 ;
36875 PyObject *swig_obj[1] ;
36876
36877 if (!args) SWIG_fail;
36878 swig_obj[0] = args;
36879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36880 if (!SWIG_IsOK(res1)) {
36881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36882 }
36883 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36884 {
36885 PyThreadState* __tstate = wxPyBeginAllowThreads();
36886 (arg1)->CollapseAll();
36887 wxPyEndAllowThreads(__tstate);
36888 if (PyErr_Occurred()) SWIG_fail;
36889 }
36890 resultobj = SWIG_Py_Void();
36891 return resultobj;
36892fail:
36893 return NULL;
36894}
36895
36896
0085ce49
RD
36897SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36898 PyObject *resultobj = 0;
36899 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36900 wxTreeItemId *arg2 = 0 ;
36901 void *argp1 = 0 ;
36902 int res1 = 0 ;
36903 void *argp2 = 0 ;
36904 int res2 = 0 ;
36905 PyObject * obj0 = 0 ;
36906 PyObject * obj1 = 0 ;
36907 char * kwnames[] = {
36908 (char *) "self",(char *) "item", NULL
36909 };
36910
36911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36913 if (!SWIG_IsOK(res1)) {
36914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36915 }
36916 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36917 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36918 if (!SWIG_IsOK(res2)) {
36919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36920 }
36921 if (!argp2) {
36922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36923 }
36924 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36925 {
36926 PyThreadState* __tstate = wxPyBeginAllowThreads();
36927 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36928 wxPyEndAllowThreads(__tstate);
36929 if (PyErr_Occurred()) SWIG_fail;
36930 }
36931 resultobj = SWIG_Py_Void();
36932 return resultobj;
36933fail:
36934 return NULL;
36935}
36936
36937
36938SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36939 PyObject *resultobj = 0;
36940 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36941 wxTreeItemId *arg2 = 0 ;
36942 void *argp1 = 0 ;
36943 int res1 = 0 ;
36944 void *argp2 = 0 ;
36945 int res2 = 0 ;
36946 PyObject * obj0 = 0 ;
36947 PyObject * obj1 = 0 ;
36948 char * kwnames[] = {
36949 (char *) "self",(char *) "item", NULL
36950 };
36951
36952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36954 if (!SWIG_IsOK(res1)) {
36955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36956 }
36957 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36958 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36959 if (!SWIG_IsOK(res2)) {
36960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36961 }
36962 if (!argp2) {
36963 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36964 }
36965 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36966 {
36967 PyThreadState* __tstate = wxPyBeginAllowThreads();
36968 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36969 wxPyEndAllowThreads(__tstate);
36970 if (PyErr_Occurred()) SWIG_fail;
36971 }
36972 resultobj = SWIG_Py_Void();
36973 return resultobj;
36974fail:
36975 return NULL;
d14a1e28
RD
36976}
36977
36978
0085ce49
RD
36979SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36980 PyObject *resultobj = 0;
36981 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36982 void *argp1 = 0 ;
36983 int res1 = 0 ;
36984 PyObject *swig_obj[1] ;
36985
36986 if (!args) SWIG_fail;
36987 swig_obj[0] = args;
36988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36989 if (!SWIG_IsOK(res1)) {
36990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36991 }
36992 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36993 {
36994 PyThreadState* __tstate = wxPyBeginAllowThreads();
36995 (arg1)->Unselect();
36996 wxPyEndAllowThreads(__tstate);
36997 if (PyErr_Occurred()) SWIG_fail;
36998 }
36999 resultobj = SWIG_Py_Void();
37000 return resultobj;
37001fail:
37002 return NULL;
37003}
37004
37005
37006SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37007 PyObject *resultobj = 0;
37008 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37009 wxTreeItemId *arg2 = 0 ;
37010 void *argp1 = 0 ;
37011 int res1 = 0 ;
37012 void *argp2 = 0 ;
37013 int res2 = 0 ;
37014 PyObject * obj0 = 0 ;
37015 PyObject * obj1 = 0 ;
37016 char * kwnames[] = {
37017 (char *) "self",(char *) "item", NULL
37018 };
37019
37020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
37021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37022 if (!SWIG_IsOK(res1)) {
37023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37024 }
37025 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37026 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37027 if (!SWIG_IsOK(res2)) {
37028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37029 }
37030 if (!argp2) {
37031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37032 }
37033 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37034 {
37035 PyThreadState* __tstate = wxPyBeginAllowThreads();
37036 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
37037 wxPyEndAllowThreads(__tstate);
37038 if (PyErr_Occurred()) SWIG_fail;
37039 }
37040 resultobj = SWIG_Py_Void();
37041 return resultobj;
37042fail:
37043 return NULL;
d14a1e28
RD
37044}
37045
37046
0085ce49
RD
37047SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37048 PyObject *resultobj = 0;
37049 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37050 void *argp1 = 0 ;
37051 int res1 = 0 ;
37052 PyObject *swig_obj[1] ;
37053
37054 if (!args) SWIG_fail;
37055 swig_obj[0] = args;
37056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37057 if (!SWIG_IsOK(res1)) {
37058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37059 }
37060 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37061 {
37062 PyThreadState* __tstate = wxPyBeginAllowThreads();
37063 (arg1)->UnselectAll();
37064 wxPyEndAllowThreads(__tstate);
37065 if (PyErr_Occurred()) SWIG_fail;
37066 }
37067 resultobj = SWIG_Py_Void();
37068 return resultobj;
37069fail:
37070 return NULL;
37071}
37072
37073
37074SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37075 PyObject *resultobj = 0;
37076 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37077 wxTreeItemId *arg2 = 0 ;
37078 bool arg3 = (bool) true ;
37079 void *argp1 = 0 ;
37080 int res1 = 0 ;
37081 void *argp2 = 0 ;
37082 int res2 = 0 ;
37083 bool val3 ;
37084 int ecode3 = 0 ;
37085 PyObject * obj0 = 0 ;
37086 PyObject * obj1 = 0 ;
37087 PyObject * obj2 = 0 ;
37088 char * kwnames[] = {
37089 (char *) "self",(char *) "item",(char *) "select", NULL
37090 };
37091
37092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37094 if (!SWIG_IsOK(res1)) {
37095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37096 }
37097 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37098 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37099 if (!SWIG_IsOK(res2)) {
37100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37101 }
37102 if (!argp2) {
37103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37104 }
37105 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37106 if (obj2) {
37107 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37108 if (!SWIG_IsOK(ecode3)) {
37109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
37110 }
37111 arg3 = static_cast< bool >(val3);
37112 }
37113 {
37114 PyThreadState* __tstate = wxPyBeginAllowThreads();
37115 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
37116 wxPyEndAllowThreads(__tstate);
37117 if (PyErr_Occurred()) SWIG_fail;
37118 }
37119 resultobj = SWIG_Py_Void();
37120 return resultobj;
37121fail:
37122 return NULL;
37123}
37124
37125
37126SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37127 PyObject *resultobj = 0;
37128 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37129 wxTreeItemId *arg2 = 0 ;
37130 void *argp1 = 0 ;
37131 int res1 = 0 ;
37132 void *argp2 = 0 ;
37133 int res2 = 0 ;
37134 PyObject * obj0 = 0 ;
37135 PyObject * obj1 = 0 ;
37136 char * kwnames[] = {
37137 (char *) "self",(char *) "item", NULL
37138 };
37139
37140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
37141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37142 if (!SWIG_IsOK(res1)) {
37143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37144 }
37145 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37146 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37147 if (!SWIG_IsOK(res2)) {
37148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37149 }
37150 if (!argp2) {
37151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37152 }
37153 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37154 {
37155 PyThreadState* __tstate = wxPyBeginAllowThreads();
37156 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
37157 wxPyEndAllowThreads(__tstate);
37158 if (PyErr_Occurred()) SWIG_fail;
37159 }
37160 resultobj = SWIG_Py_Void();
37161 return resultobj;
37162fail:
37163 return NULL;
37164}
37165
37166
37167SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37168 PyObject *resultobj = 0;
37169 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37170 wxTreeItemId *arg2 = 0 ;
37171 void *argp1 = 0 ;
37172 int res1 = 0 ;
37173 void *argp2 = 0 ;
37174 int res2 = 0 ;
37175 PyObject * obj0 = 0 ;
37176 PyObject * obj1 = 0 ;
37177 char * kwnames[] = {
37178 (char *) "self",(char *) "item", NULL
37179 };
37180
37181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37183 if (!SWIG_IsOK(res1)) {
37184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37185 }
37186 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37187 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37188 if (!SWIG_IsOK(res2)) {
37189 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37190 }
37191 if (!argp2) {
37192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37193 }
37194 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37195 {
37196 PyThreadState* __tstate = wxPyBeginAllowThreads();
37197 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37198 wxPyEndAllowThreads(__tstate);
37199 if (PyErr_Occurred()) SWIG_fail;
37200 }
37201 resultobj = SWIG_Py_Void();
37202 return resultobj;
37203fail:
37204 return NULL;
37205}
37206
37207
37208SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37209 PyObject *resultobj = 0;
37210 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37211 wxTreeItemId *arg2 = 0 ;
37212 void *argp1 = 0 ;
37213 int res1 = 0 ;
37214 void *argp2 = 0 ;
37215 int res2 = 0 ;
37216 PyObject * obj0 = 0 ;
37217 PyObject * obj1 = 0 ;
37218 char * kwnames[] = {
37219 (char *) "self",(char *) "item", NULL
37220 };
37221
37222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37224 if (!SWIG_IsOK(res1)) {
37225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37226 }
37227 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37228 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37229 if (!SWIG_IsOK(res2)) {
37230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37231 }
37232 if (!argp2) {
37233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37234 }
37235 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37236 {
37237 PyThreadState* __tstate = wxPyBeginAllowThreads();
37238 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37239 wxPyEndAllowThreads(__tstate);
37240 if (PyErr_Occurred()) SWIG_fail;
37241 }
37242 resultobj = SWIG_Py_Void();
37243 return resultobj;
37244fail:
37245 return NULL;
37246}
37247
37248
37249SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37250 PyObject *resultobj = 0;
37251 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37252 wxTreeItemId *arg2 = 0 ;
37253 void *argp1 = 0 ;
37254 int res1 = 0 ;
37255 void *argp2 = 0 ;
37256 int res2 = 0 ;
37257 PyObject * obj0 = 0 ;
37258 PyObject * obj1 = 0 ;
37259 char * kwnames[] = {
37260 (char *) "self",(char *) "item", NULL
37261 };
37262
37263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37265 if (!SWIG_IsOK(res1)) {
37266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37267 }
37268 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37269 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37270 if (!SWIG_IsOK(res2)) {
37271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37272 }
37273 if (!argp2) {
37274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37275 }
37276 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37277 {
37278 PyThreadState* __tstate = wxPyBeginAllowThreads();
37279 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37280 wxPyEndAllowThreads(__tstate);
37281 if (PyErr_Occurred()) SWIG_fail;
37282 }
37283 resultobj = SWIG_Py_Void();
37284 return resultobj;
37285fail:
37286 return NULL;
d14a1e28
RD
37287}
37288
37289
0085ce49
RD
37290SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37291 PyObject *resultobj = 0;
37292 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37293 wxTextCtrl *result = 0 ;
37294 void *argp1 = 0 ;
37295 int res1 = 0 ;
37296 PyObject *swig_obj[1] ;
37297
37298 if (!args) SWIG_fail;
37299 swig_obj[0] = args;
37300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37301 if (!SWIG_IsOK(res1)) {
37302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37303 }
37304 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37305 {
37306 PyThreadState* __tstate = wxPyBeginAllowThreads();
37307 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37308 wxPyEndAllowThreads(__tstate);
37309 if (PyErr_Occurred()) SWIG_fail;
37310 }
37311 {
37312 resultobj = wxPyMake_wxObject(result, 0);
37313 }
37314 return resultobj;
37315fail:
37316 return NULL;
37317}
37318
37319
37320SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37321 PyObject *resultobj = 0;
37322 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37323 wxTreeItemId *arg2 = 0 ;
37324 void *argp1 = 0 ;
37325 int res1 = 0 ;
37326 void *argp2 = 0 ;
37327 int res2 = 0 ;
37328 PyObject * obj0 = 0 ;
37329 PyObject * obj1 = 0 ;
37330 char * kwnames[] = {
37331 (char *) "self",(char *) "item", NULL
37332 };
37333
37334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37336 if (!SWIG_IsOK(res1)) {
37337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37338 }
37339 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37340 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37341 if (!SWIG_IsOK(res2)) {
37342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37343 }
37344 if (!argp2) {
37345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37346 }
37347 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37348 {
37349 PyThreadState* __tstate = wxPyBeginAllowThreads();
37350 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37351 wxPyEndAllowThreads(__tstate);
37352 if (PyErr_Occurred()) SWIG_fail;
37353 }
37354 resultobj = SWIG_Py_Void();
37355 return resultobj;
37356fail:
37357 return NULL;
37358}
37359
37360
37361SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37362 PyObject *resultobj = 0;
37363 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37364 wxPoint *arg2 = 0 ;
37365 int *arg3 = 0 ;
37366 wxTreeItemId result;
37367 void *argp1 = 0 ;
37368 int res1 = 0 ;
37369 wxPoint temp2 ;
37370 int temp3 ;
37371 int res3 = SWIG_TMPOBJ ;
37372 PyObject * obj0 = 0 ;
37373 PyObject * obj1 = 0 ;
37374 char * kwnames[] = {
37375 (char *) "self",(char *) "point", NULL
37376 };
37377
37378 arg3 = &temp3;
37379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37381 if (!SWIG_IsOK(res1)) {
37382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37383 }
37384 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37385 {
37386 arg2 = &temp2;
37387 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37388 }
37389 {
37390 PyThreadState* __tstate = wxPyBeginAllowThreads();
37391 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37392 wxPyEndAllowThreads(__tstate);
37393 if (PyErr_Occurred()) SWIG_fail;
37394 }
37395 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37396 if (SWIG_IsTmpObj(res3)) {
37397 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37398 } else {
37399 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37400 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37401 }
37402 return resultobj;
37403fail:
37404 return NULL;
37405}
37406
37407
37408SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37409 PyObject *resultobj = 0;
37410 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37411 wxTreeItemId *arg2 = 0 ;
37412 bool arg3 = (bool) false ;
37413 PyObject *result = 0 ;
37414 void *argp1 = 0 ;
37415 int res1 = 0 ;
37416 void *argp2 = 0 ;
37417 int res2 = 0 ;
37418 bool val3 ;
37419 int ecode3 = 0 ;
37420 PyObject * obj0 = 0 ;
37421 PyObject * obj1 = 0 ;
37422 PyObject * obj2 = 0 ;
37423 char * kwnames[] = {
37424 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37425 };
37426
37427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37429 if (!SWIG_IsOK(res1)) {
37430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37431 }
37432 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37433 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37434 if (!SWIG_IsOK(res2)) {
37435 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37436 }
37437 if (!argp2) {
37438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37439 }
37440 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37441 if (obj2) {
37442 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37443 if (!SWIG_IsOK(ecode3)) {
37444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37445 }
37446 arg3 = static_cast< bool >(val3);
37447 }
37448 {
37449 PyThreadState* __tstate = wxPyBeginAllowThreads();
37450 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37451 wxPyEndAllowThreads(__tstate);
37452 if (PyErr_Occurred()) SWIG_fail;
37453 }
37454 resultobj = result;
37455 return resultobj;
37456fail:
37457 return NULL;
37458}
37459
37460
37461SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37462 PyObject *resultobj = 0;
37463 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37464 SwigValueWrapper<wxVisualAttributes > result;
37465 int val1 ;
37466 int ecode1 = 0 ;
37467 PyObject * obj0 = 0 ;
37468 char * kwnames[] = {
37469 (char *) "variant", NULL
37470 };
37471
37472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37473 if (obj0) {
37474 ecode1 = SWIG_AsVal_int(obj0, &val1);
37475 if (!SWIG_IsOK(ecode1)) {
37476 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37477 }
37478 arg1 = static_cast< wxWindowVariant >(val1);
37479 }
37480 {
37481 if (!wxPyCheckForApp()) SWIG_fail;
37482 PyThreadState* __tstate = wxPyBeginAllowThreads();
37483 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37484 wxPyEndAllowThreads(__tstate);
37485 if (PyErr_Occurred()) SWIG_fail;
37486 }
37487 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37488 return resultobj;
37489fail:
37490 return NULL;
d14a1e28
RD
37491}
37492
37493
2131d850
RD
37494SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37495 PyObject *resultobj = 0;
37496 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37497 bool arg2 ;
37498 void *argp1 = 0 ;
37499 int res1 = 0 ;
37500 bool val2 ;
37501 int ecode2 = 0 ;
37502 PyObject * obj0 = 0 ;
37503 PyObject * obj1 = 0 ;
37504 char * kwnames[] = {
37505 (char *) "self",(char *) "q", NULL
37506 };
37507
37508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37510 if (!SWIG_IsOK(res1)) {
37511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37512 }
37513 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37514 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37515 if (!SWIG_IsOK(ecode2)) {
37516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37517 }
37518 arg2 = static_cast< bool >(val2);
37519 {
37520 PyThreadState* __tstate = wxPyBeginAllowThreads();
37521 (arg1)->SetQuickBestSize(arg2);
37522 wxPyEndAllowThreads(__tstate);
37523 if (PyErr_Occurred()) SWIG_fail;
37524 }
37525 resultobj = SWIG_Py_Void();
37526 return resultobj;
37527fail:
37528 return NULL;
37529}
37530
37531
37532SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37533 PyObject *resultobj = 0;
37534 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37535 bool result;
37536 void *argp1 = 0 ;
37537 int res1 = 0 ;
37538 PyObject *swig_obj[1] ;
37539
37540 if (!args) SWIG_fail;
37541 swig_obj[0] = args;
37542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37543 if (!SWIG_IsOK(res1)) {
37544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37545 }
37546 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37547 {
37548 PyThreadState* __tstate = wxPyBeginAllowThreads();
37549 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37550 wxPyEndAllowThreads(__tstate);
37551 if (PyErr_Occurred()) SWIG_fail;
37552 }
37553 {
37554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37555 }
37556 return resultobj;
37557fail:
37558 return NULL;
37559}
37560
37561
0085ce49
RD
37562SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37563 PyObject *obj;
37564 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37565 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37566 return SWIG_Py_Void();
d14a1e28
RD
37567}
37568
0085ce49
RD
37569SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37570 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
37571}
37572
0085ce49
RD
37573SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37574 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37575 return 1;
d14a1e28
RD
37576}
37577
37578
0085ce49
RD
37579SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37580 PyObject *pyobj = 0;
37581
37582 {
37583#if wxUSE_UNICODE
37584 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37585#else
37586 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37587#endif
37588 }
37589 return pyobj;
37590}
37591
37592
37593SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37594 PyObject *resultobj = 0;
37595 wxWindow *arg1 = (wxWindow *) 0 ;
37596 int arg2 = (int) (int)-1 ;
37597 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37598 wxString *arg3 = (wxString *) &arg3_defvalue ;
37599 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37600 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37601 wxSize const &arg5_defvalue = wxDefaultSize ;
37602 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37603 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37604 wxString const &arg7_defvalue = wxPyEmptyString ;
37605 wxString *arg7 = (wxString *) &arg7_defvalue ;
37606 int arg8 = (int) 0 ;
37607 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37608 wxString *arg9 = (wxString *) &arg9_defvalue ;
37609 wxGenericDirCtrl *result = 0 ;
37610 void *argp1 = 0 ;
37611 int res1 = 0 ;
37612 int val2 ;
37613 int ecode2 = 0 ;
37614 bool temp3 = false ;
37615 wxPoint temp4 ;
37616 wxSize temp5 ;
37617 long val6 ;
37618 int ecode6 = 0 ;
37619 bool temp7 = false ;
37620 int val8 ;
37621 int ecode8 = 0 ;
37622 bool temp9 = false ;
37623 PyObject * obj0 = 0 ;
37624 PyObject * obj1 = 0 ;
37625 PyObject * obj2 = 0 ;
37626 PyObject * obj3 = 0 ;
37627 PyObject * obj4 = 0 ;
37628 PyObject * obj5 = 0 ;
37629 PyObject * obj6 = 0 ;
37630 PyObject * obj7 = 0 ;
37631 PyObject * obj8 = 0 ;
37632 char * kwnames[] = {
37633 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37634 };
37635
37636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37638 if (!SWIG_IsOK(res1)) {
37639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37640 }
37641 arg1 = reinterpret_cast< wxWindow * >(argp1);
37642 if (obj1) {
37643 ecode2 = SWIG_AsVal_int(obj1, &val2);
37644 if (!SWIG_IsOK(ecode2)) {
37645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37646 }
37647 arg2 = static_cast< int >(val2);
37648 }
37649 if (obj2) {
d14a1e28 37650 {
0085ce49
RD
37651 arg3 = wxString_in_helper(obj2);
37652 if (arg3 == NULL) SWIG_fail;
37653 temp3 = true;
d14a1e28 37654 }
0085ce49
RD
37655 }
37656 if (obj3) {
4f89f6a3 37657 {
0085ce49
RD
37658 arg4 = &temp4;
37659 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 37660 }
0085ce49
RD
37661 }
37662 if (obj4) {
093d3ff1 37663 {
0085ce49
RD
37664 arg5 = &temp5;
37665 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37666 }
0085ce49
RD
37667 }
37668 if (obj5) {
37669 ecode6 = SWIG_AsVal_long(obj5, &val6);
37670 if (!SWIG_IsOK(ecode6)) {
37671 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37672 }
37673 arg6 = static_cast< long >(val6);
37674 }
37675 if (obj6) {
093d3ff1 37676 {
0085ce49
RD
37677 arg7 = wxString_in_helper(obj6);
37678 if (arg7 == NULL) SWIG_fail;
37679 temp7 = true;
093d3ff1 37680 }
0085ce49
RD
37681 }
37682 if (obj7) {
37683 ecode8 = SWIG_AsVal_int(obj7, &val8);
37684 if (!SWIG_IsOK(ecode8)) {
37685 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37686 }
37687 arg8 = static_cast< int >(val8);
37688 }
37689 if (obj8) {
d14a1e28 37690 {
0085ce49
RD
37691 arg9 = wxString_in_helper(obj8);
37692 if (arg9 == NULL) SWIG_fail;
37693 temp9 = true;
d14a1e28 37694 }
0085ce49
RD
37695 }
37696 {
37697 if (!wxPyCheckForApp()) SWIG_fail;
37698 PyThreadState* __tstate = wxPyBeginAllowThreads();
37699 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37700 wxPyEndAllowThreads(__tstate);
37701 if (PyErr_Occurred()) SWIG_fail;
37702 }
37703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37704 {
37705 if (temp3)
37706 delete arg3;
37707 }
37708 {
37709 if (temp7)
37710 delete arg7;
37711 }
37712 {
37713 if (temp9)
37714 delete arg9;
37715 }
37716 return resultobj;
37717fail:
37718 {
37719 if (temp3)
37720 delete arg3;
37721 }
37722 {
37723 if (temp7)
37724 delete arg7;
37725 }
37726 {
37727 if (temp9)
37728 delete arg9;
37729 }
37730 return NULL;
d14a1e28
RD
37731}
37732
37733
0085ce49
RD
37734SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37735 PyObject *resultobj = 0;
37736 wxGenericDirCtrl *result = 0 ;
37737
37738 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37739 {
37740 if (!wxPyCheckForApp()) SWIG_fail;
37741 PyThreadState* __tstate = wxPyBeginAllowThreads();
37742 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37743 wxPyEndAllowThreads(__tstate);
37744 if (PyErr_Occurred()) SWIG_fail;
37745 }
37746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37747 return resultobj;
37748fail:
37749 return NULL;
37750}
37751
37752
37753SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37754 PyObject *resultobj = 0;
37755 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37756 wxWindow *arg2 = (wxWindow *) 0 ;
37757 int arg3 = (int) (int)-1 ;
37758 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37759 wxString *arg4 = (wxString *) &arg4_defvalue ;
37760 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37761 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37762 wxSize const &arg6_defvalue = wxDefaultSize ;
37763 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37764 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37765 wxString const &arg8_defvalue = wxPyEmptyString ;
37766 wxString *arg8 = (wxString *) &arg8_defvalue ;
37767 int arg9 = (int) 0 ;
37768 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37769 wxString *arg10 = (wxString *) &arg10_defvalue ;
37770 bool result;
37771 void *argp1 = 0 ;
37772 int res1 = 0 ;
37773 void *argp2 = 0 ;
37774 int res2 = 0 ;
37775 int val3 ;
37776 int ecode3 = 0 ;
37777 bool temp4 = false ;
37778 wxPoint temp5 ;
37779 wxSize temp6 ;
37780 long val7 ;
37781 int ecode7 = 0 ;
37782 bool temp8 = false ;
37783 int val9 ;
37784 int ecode9 = 0 ;
37785 bool temp10 = false ;
37786 PyObject * obj0 = 0 ;
37787 PyObject * obj1 = 0 ;
37788 PyObject * obj2 = 0 ;
37789 PyObject * obj3 = 0 ;
37790 PyObject * obj4 = 0 ;
37791 PyObject * obj5 = 0 ;
37792 PyObject * obj6 = 0 ;
37793 PyObject * obj7 = 0 ;
37794 PyObject * obj8 = 0 ;
37795 PyObject * obj9 = 0 ;
37796 char * kwnames[] = {
37797 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37798 };
37799
37800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37802 if (!SWIG_IsOK(res1)) {
37803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37804 }
37805 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37806 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37807 if (!SWIG_IsOK(res2)) {
37808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37809 }
37810 arg2 = reinterpret_cast< wxWindow * >(argp2);
37811 if (obj2) {
37812 ecode3 = SWIG_AsVal_int(obj2, &val3);
37813 if (!SWIG_IsOK(ecode3)) {
37814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37815 }
37816 arg3 = static_cast< int >(val3);
37817 }
37818 if (obj3) {
093d3ff1 37819 {
0085ce49
RD
37820 arg4 = wxString_in_helper(obj3);
37821 if (arg4 == NULL) SWIG_fail;
37822 temp4 = true;
093d3ff1 37823 }
0085ce49
RD
37824 }
37825 if (obj4) {
093d3ff1 37826 {
0085ce49
RD
37827 arg5 = &temp5;
37828 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
093d3ff1 37829 }
0085ce49
RD
37830 }
37831 if (obj5) {
d14a1e28 37832 {
0085ce49
RD
37833 arg6 = &temp6;
37834 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d14a1e28 37835 }
0085ce49
RD
37836 }
37837 if (obj6) {
37838 ecode7 = SWIG_AsVal_long(obj6, &val7);
37839 if (!SWIG_IsOK(ecode7)) {
37840 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37841 }
37842 arg7 = static_cast< long >(val7);
37843 }
37844 if (obj7) {
093d3ff1 37845 {
0085ce49
RD
37846 arg8 = wxString_in_helper(obj7);
37847 if (arg8 == NULL) SWIG_fail;
37848 temp8 = true;
093d3ff1 37849 }
0085ce49
RD
37850 }
37851 if (obj8) {
37852 ecode9 = SWIG_AsVal_int(obj8, &val9);
37853 if (!SWIG_IsOK(ecode9)) {
37854 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37855 }
37856 arg9 = static_cast< int >(val9);
37857 }
37858 if (obj9) {
093d3ff1 37859 {
0085ce49
RD
37860 arg10 = wxString_in_helper(obj9);
37861 if (arg10 == NULL) SWIG_fail;
37862 temp10 = true;
093d3ff1 37863 }
0085ce49
RD
37864 }
37865 {
37866 PyThreadState* __tstate = wxPyBeginAllowThreads();
37867 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37868 wxPyEndAllowThreads(__tstate);
37869 if (PyErr_Occurred()) SWIG_fail;
37870 }
37871 {
37872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37873 }
37874 {
37875 if (temp4)
37876 delete arg4;
37877 }
37878 {
37879 if (temp8)
37880 delete arg8;
37881 }
37882 {
37883 if (temp10)
37884 delete arg10;
37885 }
37886 return resultobj;
37887fail:
37888 {
37889 if (temp4)
37890 delete arg4;
37891 }
37892 {
37893 if (temp8)
37894 delete arg8;
37895 }
37896 {
37897 if (temp10)
37898 delete arg10;
37899 }
37900 return NULL;
37901}
37902
37903
37904SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37905 PyObject *resultobj = 0;
37906 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37907 wxString *arg2 = 0 ;
37908 bool result;
37909 void *argp1 = 0 ;
37910 int res1 = 0 ;
37911 bool temp2 = false ;
37912 PyObject * obj0 = 0 ;
37913 PyObject * obj1 = 0 ;
37914 char * kwnames[] = {
37915 (char *) "self",(char *) "path", NULL
37916 };
37917
37918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37920 if (!SWIG_IsOK(res1)) {
37921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37922 }
37923 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37924 {
37925 arg2 = wxString_in_helper(obj1);
37926 if (arg2 == NULL) SWIG_fail;
37927 temp2 = true;
37928 }
37929 {
37930 PyThreadState* __tstate = wxPyBeginAllowThreads();
37931 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37932 wxPyEndAllowThreads(__tstate);
37933 if (PyErr_Occurred()) SWIG_fail;
37934 }
37935 {
37936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37937 }
37938 {
37939 if (temp2)
37940 delete arg2;
37941 }
37942 return resultobj;
37943fail:
37944 {
37945 if (temp2)
37946 delete arg2;
37947 }
37948 return NULL;
d14a1e28
RD
37949}
37950
37951
704eda0c
RD
37952SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37953 PyObject *resultobj = 0;
37954 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37955 wxString *arg2 = 0 ;
37956 bool result;
37957 void *argp1 = 0 ;
37958 int res1 = 0 ;
37959 bool temp2 = false ;
37960 PyObject * obj0 = 0 ;
37961 PyObject * obj1 = 0 ;
37962 char * kwnames[] = {
37963 (char *) "self",(char *) "path", NULL
37964 };
37965
37966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37968 if (!SWIG_IsOK(res1)) {
37969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37970 }
37971 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37972 {
37973 arg2 = wxString_in_helper(obj1);
37974 if (arg2 == NULL) SWIG_fail;
37975 temp2 = true;
37976 }
37977 {
37978 PyThreadState* __tstate = wxPyBeginAllowThreads();
37979 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37980 wxPyEndAllowThreads(__tstate);
37981 if (PyErr_Occurred()) SWIG_fail;
37982 }
37983 {
37984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37985 }
37986 {
37987 if (temp2)
37988 delete arg2;
37989 }
37990 return resultobj;
37991fail:
37992 {
37993 if (temp2)
37994 delete arg2;
37995 }
37996 return NULL;
37997}
37998
37999
0085ce49
RD
38000SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38001 PyObject *resultobj = 0;
38002 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38003 wxString result;
38004 void *argp1 = 0 ;
38005 int res1 = 0 ;
38006 PyObject *swig_obj[1] ;
38007
38008 if (!args) SWIG_fail;
38009 swig_obj[0] = args;
38010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38011 if (!SWIG_IsOK(res1)) {
38012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38013 }
38014 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38015 {
38016 PyThreadState* __tstate = wxPyBeginAllowThreads();
38017 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
38018 wxPyEndAllowThreads(__tstate);
38019 if (PyErr_Occurred()) SWIG_fail;
38020 }
38021 {
38022#if wxUSE_UNICODE
38023 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38024#else
38025 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38026#endif
38027 }
38028 return resultobj;
38029fail:
38030 return NULL;
38031}
38032
38033
38034SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38035 PyObject *resultobj = 0;
38036 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38037 wxString *arg2 = 0 ;
38038 void *argp1 = 0 ;
38039 int res1 = 0 ;
38040 bool temp2 = false ;
38041 PyObject * obj0 = 0 ;
38042 PyObject * obj1 = 0 ;
38043 char * kwnames[] = {
38044 (char *) "self",(char *) "path", NULL
38045 };
38046
38047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
38048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38049 if (!SWIG_IsOK(res1)) {
38050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38051 }
38052 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38053 {
38054 arg2 = wxString_in_helper(obj1);
38055 if (arg2 == NULL) SWIG_fail;
38056 temp2 = true;
38057 }
38058 {
38059 PyThreadState* __tstate = wxPyBeginAllowThreads();
38060 (arg1)->SetDefaultPath((wxString const &)*arg2);
38061 wxPyEndAllowThreads(__tstate);
38062 if (PyErr_Occurred()) SWIG_fail;
38063 }
38064 resultobj = SWIG_Py_Void();
38065 {
38066 if (temp2)
38067 delete arg2;
38068 }
38069 return resultobj;
38070fail:
38071 {
38072 if (temp2)
38073 delete arg2;
38074 }
38075 return NULL;
d14a1e28
RD
38076}
38077
38078
0085ce49
RD
38079SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38080 PyObject *resultobj = 0;
38081 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38082 wxString result;
38083 void *argp1 = 0 ;
38084 int res1 = 0 ;
38085 PyObject *swig_obj[1] ;
38086
38087 if (!args) SWIG_fail;
38088 swig_obj[0] = args;
38089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38090 if (!SWIG_IsOK(res1)) {
38091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38092 }
38093 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38094 {
38095 PyThreadState* __tstate = wxPyBeginAllowThreads();
38096 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
38097 wxPyEndAllowThreads(__tstate);
38098 if (PyErr_Occurred()) SWIG_fail;
38099 }
38100 {
38101#if wxUSE_UNICODE
38102 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38103#else
38104 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38105#endif
38106 }
38107 return resultobj;
38108fail:
38109 return NULL;
d14a1e28
RD
38110}
38111
38112
0085ce49
RD
38113SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38114 PyObject *resultobj = 0;
38115 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38116 wxString result;
38117 void *argp1 = 0 ;
38118 int res1 = 0 ;
38119 PyObject *swig_obj[1] ;
38120
38121 if (!args) SWIG_fail;
38122 swig_obj[0] = args;
38123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38124 if (!SWIG_IsOK(res1)) {
38125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38126 }
38127 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38128 {
38129 PyThreadState* __tstate = wxPyBeginAllowThreads();
38130 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
38131 wxPyEndAllowThreads(__tstate);
38132 if (PyErr_Occurred()) SWIG_fail;
38133 }
38134 {
38135#if wxUSE_UNICODE
38136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38137#else
38138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38139#endif
38140 }
38141 return resultobj;
38142fail:
38143 return NULL;
38144}
38145
38146
38147SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38148 PyObject *resultobj = 0;
38149 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38150 wxString *arg2 = 0 ;
38151 void *argp1 = 0 ;
38152 int res1 = 0 ;
38153 bool temp2 = false ;
38154 PyObject * obj0 = 0 ;
38155 PyObject * obj1 = 0 ;
38156 char * kwnames[] = {
38157 (char *) "self",(char *) "path", NULL
38158 };
38159
38160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
38161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38162 if (!SWIG_IsOK(res1)) {
38163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38164 }
38165 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38166 {
38167 arg2 = wxString_in_helper(obj1);
38168 if (arg2 == NULL) SWIG_fail;
38169 temp2 = true;
38170 }
38171 {
38172 PyThreadState* __tstate = wxPyBeginAllowThreads();
38173 (arg1)->SetPath((wxString const &)*arg2);
38174 wxPyEndAllowThreads(__tstate);
38175 if (PyErr_Occurred()) SWIG_fail;
38176 }
38177 resultobj = SWIG_Py_Void();
38178 {
38179 if (temp2)
38180 delete arg2;
38181 }
38182 return resultobj;
38183fail:
38184 {
38185 if (temp2)
38186 delete arg2;
38187 }
38188 return NULL;
38189}
38190
38191
38192SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38193 PyObject *resultobj = 0;
38194 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38195 bool arg2 ;
38196 void *argp1 = 0 ;
38197 int res1 = 0 ;
38198 bool val2 ;
38199 int ecode2 = 0 ;
38200 PyObject * obj0 = 0 ;
38201 PyObject * obj1 = 0 ;
38202 char * kwnames[] = {
38203 (char *) "self",(char *) "show", NULL
38204 };
38205
38206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38208 if (!SWIG_IsOK(res1)) {
38209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38210 }
38211 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38212 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38213 if (!SWIG_IsOK(ecode2)) {
38214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38215 }
38216 arg2 = static_cast< bool >(val2);
38217 {
38218 PyThreadState* __tstate = wxPyBeginAllowThreads();
38219 (arg1)->ShowHidden(arg2);
38220 wxPyEndAllowThreads(__tstate);
38221 if (PyErr_Occurred()) SWIG_fail;
38222 }
38223 resultobj = SWIG_Py_Void();
38224 return resultobj;
38225fail:
38226 return NULL;
d14a1e28
RD
38227}
38228
38229
0085ce49
RD
38230SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38231 PyObject *resultobj = 0;
38232 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38233 bool result;
38234 void *argp1 = 0 ;
38235 int res1 = 0 ;
38236 PyObject *swig_obj[1] ;
38237
38238 if (!args) SWIG_fail;
38239 swig_obj[0] = args;
38240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38241 if (!SWIG_IsOK(res1)) {
38242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38243 }
38244 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38245 {
38246 PyThreadState* __tstate = wxPyBeginAllowThreads();
38247 result = (bool)(arg1)->GetShowHidden();
38248 wxPyEndAllowThreads(__tstate);
38249 if (PyErr_Occurred()) SWIG_fail;
38250 }
38251 {
38252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38253 }
38254 return resultobj;
38255fail:
38256 return NULL;
d14a1e28
RD
38257}
38258
38259
0085ce49
RD
38260SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38261 PyObject *resultobj = 0;
38262 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38263 wxString result;
38264 void *argp1 = 0 ;
38265 int res1 = 0 ;
38266 PyObject *swig_obj[1] ;
38267
38268 if (!args) SWIG_fail;
38269 swig_obj[0] = args;
38270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38271 if (!SWIG_IsOK(res1)) {
38272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38273 }
38274 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38275 {
38276 PyThreadState* __tstate = wxPyBeginAllowThreads();
38277 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38278 wxPyEndAllowThreads(__tstate);
38279 if (PyErr_Occurred()) SWIG_fail;
38280 }
38281 {
38282#if wxUSE_UNICODE
38283 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38284#else
38285 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38286#endif
38287 }
38288 return resultobj;
38289fail:
38290 return NULL;
38291}
38292
38293
38294SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38295 PyObject *resultobj = 0;
38296 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38297 wxString *arg2 = 0 ;
38298 void *argp1 = 0 ;
38299 int res1 = 0 ;
38300 bool temp2 = false ;
38301 PyObject * obj0 = 0 ;
38302 PyObject * obj1 = 0 ;
38303 char * kwnames[] = {
38304 (char *) "self",(char *) "filter", NULL
38305 };
38306
38307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38309 if (!SWIG_IsOK(res1)) {
38310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38311 }
38312 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38313 {
38314 arg2 = wxString_in_helper(obj1);
38315 if (arg2 == NULL) SWIG_fail;
38316 temp2 = true;
38317 }
38318 {
38319 PyThreadState* __tstate = wxPyBeginAllowThreads();
38320 (arg1)->SetFilter((wxString const &)*arg2);
38321 wxPyEndAllowThreads(__tstate);
38322 if (PyErr_Occurred()) SWIG_fail;
38323 }
38324 resultobj = SWIG_Py_Void();
38325 {
38326 if (temp2)
38327 delete arg2;
38328 }
38329 return resultobj;
38330fail:
38331 {
38332 if (temp2)
38333 delete arg2;
38334 }
38335 return NULL;
d14a1e28
RD
38336}
38337
38338
0085ce49
RD
38339SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38340 PyObject *resultobj = 0;
38341 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38342 int result;
38343 void *argp1 = 0 ;
38344 int res1 = 0 ;
38345 PyObject *swig_obj[1] ;
38346
38347 if (!args) SWIG_fail;
38348 swig_obj[0] = args;
38349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38350 if (!SWIG_IsOK(res1)) {
38351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38352 }
38353 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38354 {
38355 PyThreadState* __tstate = wxPyBeginAllowThreads();
38356 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38357 wxPyEndAllowThreads(__tstate);
38358 if (PyErr_Occurred()) SWIG_fail;
38359 }
38360 resultobj = SWIG_From_int(static_cast< int >(result));
38361 return resultobj;
38362fail:
38363 return NULL;
38364}
38365
38366
38367SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38368 PyObject *resultobj = 0;
38369 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38370 int arg2 ;
38371 void *argp1 = 0 ;
38372 int res1 = 0 ;
38373 int val2 ;
38374 int ecode2 = 0 ;
38375 PyObject * obj0 = 0 ;
38376 PyObject * obj1 = 0 ;
38377 char * kwnames[] = {
38378 (char *) "self",(char *) "n", NULL
38379 };
38380
38381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38383 if (!SWIG_IsOK(res1)) {
38384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38385 }
38386 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38387 ecode2 = SWIG_AsVal_int(obj1, &val2);
38388 if (!SWIG_IsOK(ecode2)) {
38389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38390 }
38391 arg2 = static_cast< int >(val2);
38392 {
38393 PyThreadState* __tstate = wxPyBeginAllowThreads();
38394 (arg1)->SetFilterIndex(arg2);
38395 wxPyEndAllowThreads(__tstate);
38396 if (PyErr_Occurred()) SWIG_fail;
38397 }
38398 resultobj = SWIG_Py_Void();
38399 return resultobj;
38400fail:
38401 return NULL;
d14a1e28
RD
38402}
38403
38404
0085ce49
RD
38405SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38406 PyObject *resultobj = 0;
38407 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38408 wxTreeItemId result;
38409 void *argp1 = 0 ;
38410 int res1 = 0 ;
38411 PyObject *swig_obj[1] ;
38412
38413 if (!args) SWIG_fail;
38414 swig_obj[0] = args;
38415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38416 if (!SWIG_IsOK(res1)) {
38417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38418 }
38419 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38420 {
38421 PyThreadState* __tstate = wxPyBeginAllowThreads();
38422 result = (arg1)->GetRootId();
38423 wxPyEndAllowThreads(__tstate);
38424 if (PyErr_Occurred()) SWIG_fail;
38425 }
38426 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38427 return resultobj;
38428fail:
38429 return NULL;
d14a1e28
RD
38430}
38431
38432
0085ce49
RD
38433SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38434 PyObject *resultobj = 0;
38435 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38436 wxPyTreeCtrl *result = 0 ;
38437 void *argp1 = 0 ;
38438 int res1 = 0 ;
38439 PyObject *swig_obj[1] ;
38440
38441 if (!args) SWIG_fail;
38442 swig_obj[0] = args;
38443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38444 if (!SWIG_IsOK(res1)) {
38445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38446 }
38447 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38448 {
38449 PyThreadState* __tstate = wxPyBeginAllowThreads();
38450 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38451 wxPyEndAllowThreads(__tstate);
38452 if (PyErr_Occurred()) SWIG_fail;
38453 }
38454 {
38455 resultobj = wxPyMake_wxObject(result, 0);
38456 }
38457 return resultobj;
38458fail:
38459 return NULL;
d14a1e28
RD
38460}
38461
38462
0085ce49
RD
38463SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38464 PyObject *resultobj = 0;
38465 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38466 wxDirFilterListCtrl *result = 0 ;
38467 void *argp1 = 0 ;
38468 int res1 = 0 ;
38469 PyObject *swig_obj[1] ;
38470
38471 if (!args) SWIG_fail;
38472 swig_obj[0] = args;
38473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38474 if (!SWIG_IsOK(res1)) {
38475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38476 }
38477 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38478 {
38479 PyThreadState* __tstate = wxPyBeginAllowThreads();
38480 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38481 wxPyEndAllowThreads(__tstate);
38482 if (PyErr_Occurred()) SWIG_fail;
38483 }
38484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38485 return resultobj;
38486fail:
38487 return NULL;
38488}
38489
38490
38491SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38492 PyObject *resultobj = 0;
38493 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38494 wxTreeItemId arg2 ;
38495 wxString *arg3 = 0 ;
38496 bool *arg4 = 0 ;
38497 wxTreeItemId result;
38498 void *argp1 = 0 ;
38499 int res1 = 0 ;
38500 void *argp2 ;
38501 int res2 = 0 ;
38502 bool temp3 = false ;
38503 bool temp4 ;
38504 int res4 = SWIG_TMPOBJ ;
38505 PyObject * obj0 = 0 ;
38506 PyObject * obj1 = 0 ;
38507 PyObject * obj2 = 0 ;
38508 char * kwnames[] = {
38509 (char *) "self",(char *) "parentId",(char *) "path", NULL
38510 };
38511
38512 arg4 = &temp4;
38513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38515 if (!SWIG_IsOK(res1)) {
38516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38517 }
38518 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38519 {
38520 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38521 if (!SWIG_IsOK(res2)) {
38522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38523 }
38524 if (!argp2) {
38525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38526 } else {
38527 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38528 arg2 = *temp;
38529 if (SWIG_IsNewObj(res2)) delete temp;
d14a1e28 38530 }
0085ce49
RD
38531 }
38532 {
38533 arg3 = wxString_in_helper(obj2);
38534 if (arg3 == NULL) SWIG_fail;
38535 temp3 = true;
38536 }
38537 {
38538 PyThreadState* __tstate = wxPyBeginAllowThreads();
38539 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38540 wxPyEndAllowThreads(__tstate);
38541 if (PyErr_Occurred()) SWIG_fail;
38542 }
38543 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38544 if (SWIG_IsTmpObj(res4)) {
38545 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38546 } else {
38547 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38548 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38549 }
38550 {
38551 if (temp3)
38552 delete arg3;
38553 }
38554 return resultobj;
38555fail:
38556 {
38557 if (temp3)
38558 delete arg3;
38559 }
38560 return NULL;
d14a1e28
RD
38561}
38562
38563
0085ce49
RD
38564SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38565 PyObject *resultobj = 0;
38566 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38567 void *argp1 = 0 ;
38568 int res1 = 0 ;
38569 PyObject *swig_obj[1] ;
38570
38571 if (!args) SWIG_fail;
38572 swig_obj[0] = args;
38573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38574 if (!SWIG_IsOK(res1)) {
38575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38576 }
38577 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38578 {
38579 PyThreadState* __tstate = wxPyBeginAllowThreads();
38580 (arg1)->DoResize();
38581 wxPyEndAllowThreads(__tstate);
38582 if (PyErr_Occurred()) SWIG_fail;
38583 }
38584 resultobj = SWIG_Py_Void();
38585 return resultobj;
38586fail:
38587 return NULL;
d14a1e28
RD
38588}
38589
38590
0085ce49
RD
38591SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38592 PyObject *resultobj = 0;
38593 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38594 void *argp1 = 0 ;
38595 int res1 = 0 ;
38596 PyObject *swig_obj[1] ;
38597
38598 if (!args) SWIG_fail;
38599 swig_obj[0] = args;
38600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38601 if (!SWIG_IsOK(res1)) {
38602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38603 }
38604 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38605 {
38606 PyThreadState* __tstate = wxPyBeginAllowThreads();
38607 (arg1)->ReCreateTree();
38608 wxPyEndAllowThreads(__tstate);
38609 if (PyErr_Occurred()) SWIG_fail;
38610 }
38611 resultobj = SWIG_Py_Void();
38612 return resultobj;
38613fail:
38614 return NULL;
38615}
38616
38617
38618SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38619 PyObject *obj;
38620 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38621 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38622 return SWIG_Py_Void();
38623}
38624
38625SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38626 return SWIG_Python_InitShadowInstance(args);
38627}
38628
38629SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38630 PyObject *resultobj = 0;
38631 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38632 int arg2 = (int) (int)-1 ;
38633 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38634 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38635 wxSize const &arg4_defvalue = wxDefaultSize ;
38636 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38637 long arg5 = (long) 0 ;
38638 wxDirFilterListCtrl *result = 0 ;
38639 void *argp1 = 0 ;
38640 int res1 = 0 ;
38641 int val2 ;
38642 int ecode2 = 0 ;
38643 wxPoint temp3 ;
38644 wxSize temp4 ;
38645 long val5 ;
38646 int ecode5 = 0 ;
38647 PyObject * obj0 = 0 ;
38648 PyObject * obj1 = 0 ;
38649 PyObject * obj2 = 0 ;
38650 PyObject * obj3 = 0 ;
38651 PyObject * obj4 = 0 ;
38652 char * kwnames[] = {
38653 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38654 };
38655
38656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38658 if (!SWIG_IsOK(res1)) {
38659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38660 }
38661 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38662 if (obj1) {
38663 ecode2 = SWIG_AsVal_int(obj1, &val2);
38664 if (!SWIG_IsOK(ecode2)) {
38665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38666 }
38667 arg2 = static_cast< int >(val2);
38668 }
38669 if (obj2) {
d14a1e28 38670 {
0085ce49
RD
38671 arg3 = &temp3;
38672 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 38673 }
0085ce49
RD
38674 }
38675 if (obj3) {
d14a1e28 38676 {
0085ce49
RD
38677 arg4 = &temp4;
38678 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 38679 }
0085ce49
RD
38680 }
38681 if (obj4) {
38682 ecode5 = SWIG_AsVal_long(obj4, &val5);
38683 if (!SWIG_IsOK(ecode5)) {
38684 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38685 }
38686 arg5 = static_cast< long >(val5);
38687 }
38688 {
38689 if (!wxPyCheckForApp()) SWIG_fail;
38690 PyThreadState* __tstate = wxPyBeginAllowThreads();
38691 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38692 wxPyEndAllowThreads(__tstate);
38693 if (PyErr_Occurred()) SWIG_fail;
38694 }
38695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38696 return resultobj;
38697fail:
38698 return NULL;
d14a1e28
RD
38699}
38700
38701
0085ce49
RD
38702SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38703 PyObject *resultobj = 0;
38704 wxDirFilterListCtrl *result = 0 ;
38705
38706 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38707 {
38708 if (!wxPyCheckForApp()) SWIG_fail;
38709 PyThreadState* __tstate = wxPyBeginAllowThreads();
38710 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38711 wxPyEndAllowThreads(__tstate);
38712 if (PyErr_Occurred()) SWIG_fail;
38713 }
38714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38715 return resultobj;
38716fail:
38717 return NULL;
38718}
38719
38720
38721SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38722 PyObject *resultobj = 0;
38723 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38724 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38725 int arg3 = (int) (int)-1 ;
38726 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38727 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38728 wxSize const &arg5_defvalue = wxDefaultSize ;
38729 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38730 long arg6 = (long) 0 ;
38731 bool result;
38732 void *argp1 = 0 ;
38733 int res1 = 0 ;
38734 void *argp2 = 0 ;
38735 int res2 = 0 ;
38736 int val3 ;
38737 int ecode3 = 0 ;
38738 wxPoint temp4 ;
38739 wxSize temp5 ;
38740 long val6 ;
38741 int ecode6 = 0 ;
38742 PyObject * obj0 = 0 ;
38743 PyObject * obj1 = 0 ;
38744 PyObject * obj2 = 0 ;
38745 PyObject * obj3 = 0 ;
38746 PyObject * obj4 = 0 ;
38747 PyObject * obj5 = 0 ;
38748 char * kwnames[] = {
38749 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38750 };
38751
38752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38754 if (!SWIG_IsOK(res1)) {
38755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38756 }
38757 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38758 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38759 if (!SWIG_IsOK(res2)) {
38760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38761 }
38762 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38763 if (obj2) {
38764 ecode3 = SWIG_AsVal_int(obj2, &val3);
38765 if (!SWIG_IsOK(ecode3)) {
38766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38767 }
38768 arg3 = static_cast< int >(val3);
38769 }
38770 if (obj3) {
093d3ff1 38771 {
0085ce49
RD
38772 arg4 = &temp4;
38773 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
093d3ff1 38774 }
0085ce49
RD
38775 }
38776 if (obj4) {
d14a1e28 38777 {
0085ce49
RD
38778 arg5 = &temp5;
38779 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 38780 }
0085ce49
RD
38781 }
38782 if (obj5) {
38783 ecode6 = SWIG_AsVal_long(obj5, &val6);
38784 if (!SWIG_IsOK(ecode6)) {
38785 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38786 }
38787 arg6 = static_cast< long >(val6);
38788 }
38789 {
38790 PyThreadState* __tstate = wxPyBeginAllowThreads();
38791 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38792 wxPyEndAllowThreads(__tstate);
38793 if (PyErr_Occurred()) SWIG_fail;
38794 }
38795 {
38796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38797 }
38798 return resultobj;
38799fail:
38800 return NULL;
38801}
38802
38803
38804SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38805 PyObject *resultobj = 0;
38806 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38807 wxString *arg2 = 0 ;
38808 int arg3 ;
38809 void *argp1 = 0 ;
38810 int res1 = 0 ;
38811 bool temp2 = false ;
38812 int val3 ;
38813 int ecode3 = 0 ;
38814 PyObject * obj0 = 0 ;
38815 PyObject * obj1 = 0 ;
38816 PyObject * obj2 = 0 ;
38817 char * kwnames[] = {
38818 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38819 };
38820
38821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38823 if (!SWIG_IsOK(res1)) {
38824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38825 }
38826 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38827 {
38828 arg2 = wxString_in_helper(obj1);
38829 if (arg2 == NULL) SWIG_fail;
38830 temp2 = true;
38831 }
38832 ecode3 = SWIG_AsVal_int(obj2, &val3);
38833 if (!SWIG_IsOK(ecode3)) {
38834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38835 }
38836 arg3 = static_cast< int >(val3);
38837 {
38838 PyThreadState* __tstate = wxPyBeginAllowThreads();
38839 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38840 wxPyEndAllowThreads(__tstate);
38841 if (PyErr_Occurred()) SWIG_fail;
38842 }
38843 resultobj = SWIG_Py_Void();
38844 {
38845 if (temp2)
38846 delete arg2;
38847 }
38848 return resultobj;
38849fail:
38850 {
38851 if (temp2)
38852 delete arg2;
38853 }
38854 return NULL;
38855}
38856
38857
38858SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38859 PyObject *obj;
38860 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38861 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38862 return SWIG_Py_Void();
38863}
38864
38865SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38866 return SWIG_Python_InitShadowInstance(args);
38867}
38868
38869SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38870 PyObject *resultobj = 0;
38871 wxWindow *arg1 = (wxWindow *) 0 ;
38872 int arg2 = (int) (int)-1 ;
38873 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38874 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38875 wxSize const &arg4_defvalue = wxDefaultSize ;
38876 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38877 long arg5 = (long) 0 ;
38878 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38879 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38880 wxString const &arg7_defvalue = wxPyControlNameStr ;
38881 wxString *arg7 = (wxString *) &arg7_defvalue ;
38882 wxPyControl *result = 0 ;
38883 void *argp1 = 0 ;
38884 int res1 = 0 ;
38885 int val2 ;
38886 int ecode2 = 0 ;
38887 wxPoint temp3 ;
38888 wxSize temp4 ;
38889 long val5 ;
38890 int ecode5 = 0 ;
38891 void *argp6 = 0 ;
38892 int res6 = 0 ;
38893 bool temp7 = false ;
38894 PyObject * obj0 = 0 ;
38895 PyObject * obj1 = 0 ;
38896 PyObject * obj2 = 0 ;
38897 PyObject * obj3 = 0 ;
38898 PyObject * obj4 = 0 ;
38899 PyObject * obj5 = 0 ;
38900 PyObject * obj6 = 0 ;
38901 char * kwnames[] = {
38902 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38903 };
38904
38905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38907 if (!SWIG_IsOK(res1)) {
38908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38909 }
38910 arg1 = reinterpret_cast< wxWindow * >(argp1);
38911 if (obj1) {
38912 ecode2 = SWIG_AsVal_int(obj1, &val2);
38913 if (!SWIG_IsOK(ecode2)) {
38914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38915 }
38916 arg2 = static_cast< int >(val2);
38917 }
38918 if (obj2) {
093d3ff1 38919 {
0085ce49
RD
38920 arg3 = &temp3;
38921 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
093d3ff1 38922 }
0085ce49
RD
38923 }
38924 if (obj3) {
d14a1e28 38925 {
0085ce49
RD
38926 arg4 = &temp4;
38927 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 38928 }
0085ce49
RD
38929 }
38930 if (obj4) {
38931 ecode5 = SWIG_AsVal_long(obj4, &val5);
38932 if (!SWIG_IsOK(ecode5)) {
38933 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38934 }
38935 arg5 = static_cast< long >(val5);
38936 }
38937 if (obj5) {
38938 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38939 if (!SWIG_IsOK(res6)) {
38940 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38941 }
38942 if (!argp6) {
38943 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d14a1e28 38944 }
0085ce49
RD
38945 arg6 = reinterpret_cast< wxValidator * >(argp6);
38946 }
38947 if (obj6) {
d14a1e28 38948 {
0085ce49
RD
38949 arg7 = wxString_in_helper(obj6);
38950 if (arg7 == NULL) SWIG_fail;
38951 temp7 = true;
d14a1e28 38952 }
0085ce49
RD
38953 }
38954 {
38955 if (!wxPyCheckForApp()) SWIG_fail;
38956 PyThreadState* __tstate = wxPyBeginAllowThreads();
38957 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38958 wxPyEndAllowThreads(__tstate);
38959 if (PyErr_Occurred()) SWIG_fail;
38960 }
38961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38962 {
38963 if (temp7)
38964 delete arg7;
38965 }
38966 return resultobj;
38967fail:
38968 {
38969 if (temp7)
38970 delete arg7;
38971 }
38972 return NULL;
d14a1e28
RD
38973}
38974
38975
0085ce49
RD
38976SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38977 PyObject *resultobj = 0;
38978 wxPyControl *result = 0 ;
38979
38980 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38981 {
38982 if (!wxPyCheckForApp()) SWIG_fail;
38983 PyThreadState* __tstate = wxPyBeginAllowThreads();
38984 result = (wxPyControl *)new wxPyControl();
38985 wxPyEndAllowThreads(__tstate);
38986 if (PyErr_Occurred()) SWIG_fail;
38987 }
38988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38989 return resultobj;
38990fail:
38991 return NULL;
38992}
38993
38994
38995SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38996 PyObject *resultobj = 0;
38997 wxPyControl *arg1 = (wxPyControl *) 0 ;
38998 PyObject *arg2 = (PyObject *) 0 ;
38999 PyObject *arg3 = (PyObject *) 0 ;
39000 void *argp1 = 0 ;
39001 int res1 = 0 ;
39002 PyObject * obj0 = 0 ;
39003 PyObject * obj1 = 0 ;
39004 PyObject * obj2 = 0 ;
39005 char * kwnames[] = {
39006 (char *) "self",(char *) "self",(char *) "_class", NULL
39007 };
39008
39009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39011 if (!SWIG_IsOK(res1)) {
39012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
39013 }
39014 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39015 arg2 = obj1;
39016 arg3 = obj2;
39017 {
39018 PyThreadState* __tstate = wxPyBeginAllowThreads();
39019 (arg1)->_setCallbackInfo(arg2,arg3);
39020 wxPyEndAllowThreads(__tstate);
39021 if (PyErr_Occurred()) SWIG_fail;
39022 }
39023 resultobj = SWIG_Py_Void();
39024 return resultobj;
39025fail:
39026 return NULL;
39027}
39028
39029
0085ce49
RD
39030SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39031 PyObject *resultobj = 0;
39032 wxPyControl *arg1 = (wxPyControl *) 0 ;
39033 wxDC *arg2 = (wxDC *) 0 ;
39034 bool result;
39035 void *argp1 = 0 ;
39036 int res1 = 0 ;
39037 void *argp2 = 0 ;
39038 int res2 = 0 ;
39039 PyObject * obj0 = 0 ;
39040 PyObject * obj1 = 0 ;
39041 char * kwnames[] = {
39042 (char *) "self",(char *) "dc", NULL
39043 };
39044
39045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39047 if (!SWIG_IsOK(res1)) {
39048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
39049 }
39050 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39051 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
39052 if (!SWIG_IsOK(res2)) {
39053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
39054 }
39055 arg2 = reinterpret_cast< wxDC * >(argp2);
39056 {
39057 PyThreadState* __tstate = wxPyBeginAllowThreads();
39058 result = (bool)(arg1)->DoEraseBackground(arg2);
39059 wxPyEndAllowThreads(__tstate);
39060 if (PyErr_Occurred()) SWIG_fail;
39061 }
39062 {
39063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39064 }
39065 return resultobj;
39066fail:
39067 return NULL;
39068}
39069
39070
39071SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39072 PyObject *resultobj = 0;
39073 wxPyControl *arg1 = (wxPyControl *) 0 ;
39074 int arg2 ;
39075 int arg3 ;
39076 int arg4 ;
39077 int arg5 ;
39078 void *argp1 = 0 ;
39079 int res1 = 0 ;
39080 int val2 ;
39081 int ecode2 = 0 ;
39082 int val3 ;
39083 int ecode3 = 0 ;
39084 int val4 ;
39085 int ecode4 = 0 ;
39086 int val5 ;
39087 int ecode5 = 0 ;
39088 PyObject * obj0 = 0 ;
39089 PyObject * obj1 = 0 ;
39090 PyObject * obj2 = 0 ;
39091 PyObject * obj3 = 0 ;
39092 PyObject * obj4 = 0 ;
39093 char * kwnames[] = {
39094 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
39095 };
39096
39097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39099 if (!SWIG_IsOK(res1)) {
39100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
39101 }
39102 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39103 ecode2 = SWIG_AsVal_int(obj1, &val2);
39104 if (!SWIG_IsOK(ecode2)) {
39105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
39106 }
39107 arg2 = static_cast< int >(val2);
39108 ecode3 = SWIG_AsVal_int(obj2, &val3);
39109 if (!SWIG_IsOK(ecode3)) {
39110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
39111 }
39112 arg3 = static_cast< int >(val3);
39113 ecode4 = SWIG_AsVal_int(obj3, &val4);
39114 if (!SWIG_IsOK(ecode4)) {
39115 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
39116 }
39117 arg4 = static_cast< int >(val4);
39118 ecode5 = SWIG_AsVal_int(obj4, &val5);
39119 if (!SWIG_IsOK(ecode5)) {
39120 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
39121 }
39122 arg5 = static_cast< int >(val5);
39123 {
39124 PyThreadState* __tstate = wxPyBeginAllowThreads();
39125 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
39126 wxPyEndAllowThreads(__tstate);
39127 if (PyErr_Occurred()) SWIG_fail;
39128 }
39129 resultobj = SWIG_Py_Void();
39130 return resultobj;
39131fail:
39132 return NULL;
39133}
39134
39135
39136SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39137 PyObject *resultobj = 0;
39138 wxPyControl *arg1 = (wxPyControl *) 0 ;
39139 int arg2 ;
39140 int arg3 ;
39141 int arg4 ;
39142 int arg5 ;
39143 int arg6 = (int) wxSIZE_AUTO ;
39144 void *argp1 = 0 ;
39145 int res1 = 0 ;
39146 int val2 ;
39147 int ecode2 = 0 ;
39148 int val3 ;
39149 int ecode3 = 0 ;
39150 int val4 ;
39151 int ecode4 = 0 ;
39152 int val5 ;
39153 int ecode5 = 0 ;
39154 int val6 ;
39155 int ecode6 = 0 ;
39156 PyObject * obj0 = 0 ;
39157 PyObject * obj1 = 0 ;
39158 PyObject * obj2 = 0 ;
39159 PyObject * obj3 = 0 ;
39160 PyObject * obj4 = 0 ;
39161 PyObject * obj5 = 0 ;
39162 char * kwnames[] = {
39163 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39164 };
39165
39166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39168 if (!SWIG_IsOK(res1)) {
39169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39170 }
39171 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39172 ecode2 = SWIG_AsVal_int(obj1, &val2);
39173 if (!SWIG_IsOK(ecode2)) {
39174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39175 }
39176 arg2 = static_cast< int >(val2);
39177 ecode3 = SWIG_AsVal_int(obj2, &val3);
39178 if (!SWIG_IsOK(ecode3)) {
39179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39180 }
39181 arg3 = static_cast< int >(val3);
39182 ecode4 = SWIG_AsVal_int(obj3, &val4);
39183 if (!SWIG_IsOK(ecode4)) {
39184 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39185 }
39186 arg4 = static_cast< int >(val4);
39187 ecode5 = SWIG_AsVal_int(obj4, &val5);
39188 if (!SWIG_IsOK(ecode5)) {
39189 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39190 }
39191 arg5 = static_cast< int >(val5);
39192 if (obj5) {
39193 ecode6 = SWIG_AsVal_int(obj5, &val6);
39194 if (!SWIG_IsOK(ecode6)) {
39195 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39196 }
39197 arg6 = static_cast< int >(val6);
39198 }
39199 {
39200 PyThreadState* __tstate = wxPyBeginAllowThreads();
39201 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39202 wxPyEndAllowThreads(__tstate);
39203 if (PyErr_Occurred()) SWIG_fail;
39204 }
39205 resultobj = SWIG_Py_Void();
39206 return resultobj;
39207fail:
39208 return NULL;
39209}
39210
39211
39212SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39213 PyObject *resultobj = 0;
39214 wxPyControl *arg1 = (wxPyControl *) 0 ;
39215 int arg2 ;
39216 int arg3 ;
39217 void *argp1 = 0 ;
39218 int res1 = 0 ;
39219 int val2 ;
39220 int ecode2 = 0 ;
39221 int val3 ;
39222 int ecode3 = 0 ;
39223 PyObject * obj0 = 0 ;
39224 PyObject * obj1 = 0 ;
39225 PyObject * obj2 = 0 ;
39226 char * kwnames[] = {
39227 (char *) "self",(char *) "width",(char *) "height", NULL
39228 };
39229
39230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39232 if (!SWIG_IsOK(res1)) {
39233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39234 }
39235 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39236 ecode2 = SWIG_AsVal_int(obj1, &val2);
39237 if (!SWIG_IsOK(ecode2)) {
39238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39239 }
39240 arg2 = static_cast< int >(val2);
39241 ecode3 = SWIG_AsVal_int(obj2, &val3);
39242 if (!SWIG_IsOK(ecode3)) {
39243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39244 }
39245 arg3 = static_cast< int >(val3);
39246 {
39247 PyThreadState* __tstate = wxPyBeginAllowThreads();
39248 (arg1)->DoSetClientSize(arg2,arg3);
39249 wxPyEndAllowThreads(__tstate);
39250 if (PyErr_Occurred()) SWIG_fail;
39251 }
39252 resultobj = SWIG_Py_Void();
39253 return resultobj;
39254fail:
39255 return NULL;
39256}
39257
39258
39259SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39260 PyObject *resultobj = 0;
39261 wxPyControl *arg1 = (wxPyControl *) 0 ;
39262 int arg2 ;
39263 int arg3 ;
39264 void *argp1 = 0 ;
39265 int res1 = 0 ;
39266 int val2 ;
39267 int ecode2 = 0 ;
39268 int val3 ;
39269 int ecode3 = 0 ;
39270 PyObject * obj0 = 0 ;
39271 PyObject * obj1 = 0 ;
39272 PyObject * obj2 = 0 ;
39273 char * kwnames[] = {
39274 (char *) "self",(char *) "x",(char *) "y", NULL
39275 };
39276
39277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39279 if (!SWIG_IsOK(res1)) {
39280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39281 }
39282 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39283 ecode2 = SWIG_AsVal_int(obj1, &val2);
39284 if (!SWIG_IsOK(ecode2)) {
39285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39286 }
39287 arg2 = static_cast< int >(val2);
39288 ecode3 = SWIG_AsVal_int(obj2, &val3);
39289 if (!SWIG_IsOK(ecode3)) {
39290 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39291 }
39292 arg3 = static_cast< int >(val3);
39293 {
39294 PyThreadState* __tstate = wxPyBeginAllowThreads();
39295 (arg1)->DoSetVirtualSize(arg2,arg3);
39296 wxPyEndAllowThreads(__tstate);
39297 if (PyErr_Occurred()) SWIG_fail;
39298 }
39299 resultobj = SWIG_Py_Void();
39300 return resultobj;
39301fail:
39302 return NULL;
39303}
39304
39305
39306SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39307 PyObject *resultobj = 0;
39308 wxPyControl *arg1 = (wxPyControl *) 0 ;
39309 int *arg2 = (int *) 0 ;
39310 int *arg3 = (int *) 0 ;
39311 void *argp1 = 0 ;
39312 int res1 = 0 ;
39313 int temp2 ;
39314 int res2 = SWIG_TMPOBJ ;
39315 int temp3 ;
39316 int res3 = SWIG_TMPOBJ ;
39317 PyObject *swig_obj[1] ;
39318
39319 arg2 = &temp2;
39320 arg3 = &temp3;
39321 if (!args) SWIG_fail;
39322 swig_obj[0] = args;
39323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39324 if (!SWIG_IsOK(res1)) {
39325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39326 }
39327 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39328 {
39329 PyThreadState* __tstate = wxPyBeginAllowThreads();
39330 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39331 wxPyEndAllowThreads(__tstate);
39332 if (PyErr_Occurred()) SWIG_fail;
39333 }
39334 resultobj = SWIG_Py_Void();
39335 if (SWIG_IsTmpObj(res2)) {
39336 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39337 } else {
39338 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39339 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39340 }
39341 if (SWIG_IsTmpObj(res3)) {
39342 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39343 } else {
39344 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39345 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39346 }
39347 return resultobj;
39348fail:
39349 return NULL;
39350}
39351
39352
39353SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39354 PyObject *resultobj = 0;
39355 wxPyControl *arg1 = (wxPyControl *) 0 ;
39356 int *arg2 = (int *) 0 ;
39357 int *arg3 = (int *) 0 ;
39358 void *argp1 = 0 ;
39359 int res1 = 0 ;
39360 int temp2 ;
39361 int res2 = SWIG_TMPOBJ ;
39362 int temp3 ;
39363 int res3 = SWIG_TMPOBJ ;
39364 PyObject *swig_obj[1] ;
39365
39366 arg2 = &temp2;
39367 arg3 = &temp3;
39368 if (!args) SWIG_fail;
39369 swig_obj[0] = args;
39370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39371 if (!SWIG_IsOK(res1)) {
39372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39373 }
39374 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39375 {
39376 PyThreadState* __tstate = wxPyBeginAllowThreads();
39377 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39378 wxPyEndAllowThreads(__tstate);
39379 if (PyErr_Occurred()) SWIG_fail;
39380 }
39381 resultobj = SWIG_Py_Void();
39382 if (SWIG_IsTmpObj(res2)) {
39383 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39384 } else {
39385 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39386 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39387 }
39388 if (SWIG_IsTmpObj(res3)) {
39389 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39390 } else {
39391 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39392 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39393 }
39394 return resultobj;
39395fail:
39396 return NULL;
39397}
39398
39399
39400SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39401 PyObject *resultobj = 0;
39402 wxPyControl *arg1 = (wxPyControl *) 0 ;
39403 int *arg2 = (int *) 0 ;
39404 int *arg3 = (int *) 0 ;
39405 void *argp1 = 0 ;
39406 int res1 = 0 ;
39407 int temp2 ;
39408 int res2 = SWIG_TMPOBJ ;
39409 int temp3 ;
39410 int res3 = SWIG_TMPOBJ ;
39411 PyObject *swig_obj[1] ;
39412
39413 arg2 = &temp2;
39414 arg3 = &temp3;
39415 if (!args) SWIG_fail;
39416 swig_obj[0] = args;
39417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39418 if (!SWIG_IsOK(res1)) {
39419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39420 }
39421 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39422 {
39423 PyThreadState* __tstate = wxPyBeginAllowThreads();
39424 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39425 wxPyEndAllowThreads(__tstate);
39426 if (PyErr_Occurred()) SWIG_fail;
39427 }
39428 resultobj = SWIG_Py_Void();
39429 if (SWIG_IsTmpObj(res2)) {
39430 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39431 } else {
39432 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39433 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39434 }
39435 if (SWIG_IsTmpObj(res3)) {
39436 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39437 } else {
39438 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39439 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39440 }
39441 return resultobj;
39442fail:
39443 return NULL;
d14a1e28
RD
39444}
39445
39446
0085ce49
RD
39447SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39448 PyObject *resultobj = 0;
39449 wxPyControl *arg1 = (wxPyControl *) 0 ;
39450 wxSize result;
39451 void *argp1 = 0 ;
39452 int res1 = 0 ;
39453 PyObject *swig_obj[1] ;
39454
39455 if (!args) SWIG_fail;
39456 swig_obj[0] = args;
39457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39458 if (!SWIG_IsOK(res1)) {
39459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39460 }
39461 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39462 {
39463 PyThreadState* __tstate = wxPyBeginAllowThreads();
39464 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39465 wxPyEndAllowThreads(__tstate);
39466 if (PyErr_Occurred()) SWIG_fail;
39467 }
39468 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39469 return resultobj;
39470fail:
39471 return NULL;
d14a1e28
RD
39472}
39473
39474
0085ce49
RD
39475SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39476 PyObject *resultobj = 0;
39477 wxPyControl *arg1 = (wxPyControl *) 0 ;
39478 wxSize result;
39479 void *argp1 = 0 ;
39480 int res1 = 0 ;
39481 PyObject *swig_obj[1] ;
39482
39483 if (!args) SWIG_fail;
39484 swig_obj[0] = args;
39485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39486 if (!SWIG_IsOK(res1)) {
39487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39488 }
39489 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39490 {
39491 PyThreadState* __tstate = wxPyBeginAllowThreads();
39492 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39493 wxPyEndAllowThreads(__tstate);
39494 if (PyErr_Occurred()) SWIG_fail;
39495 }
39496 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39497 return resultobj;
39498fail:
39499 return NULL;
d14a1e28
RD
39500}
39501
39502
0085ce49
RD
39503SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39504 PyObject *resultobj = 0;
39505 wxPyControl *arg1 = (wxPyControl *) 0 ;
39506 SwigValueWrapper<wxVisualAttributes > result;
39507 void *argp1 = 0 ;
39508 int res1 = 0 ;
39509 PyObject *swig_obj[1] ;
39510
39511 if (!args) SWIG_fail;
39512 swig_obj[0] = args;
39513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39514 if (!SWIG_IsOK(res1)) {
39515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39516 }
39517 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39518 {
39519 PyThreadState* __tstate = wxPyBeginAllowThreads();
39520 result = (arg1)->GetDefaultAttributes();
39521 wxPyEndAllowThreads(__tstate);
39522 if (PyErr_Occurred()) SWIG_fail;
39523 }
39524 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39525 return resultobj;
39526fail:
39527 return NULL;
d14a1e28
RD
39528}
39529
39530
0085ce49
RD
39531SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39532 PyObject *resultobj = 0;
39533 wxPyControl *arg1 = (wxPyControl *) 0 ;
39534 void *argp1 = 0 ;
39535 int res1 = 0 ;
39536 PyObject *swig_obj[1] ;
39537
39538 if (!args) SWIG_fail;
39539 swig_obj[0] = args;
39540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39541 if (!SWIG_IsOK(res1)) {
39542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39543 }
39544 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39545 {
39546 PyThreadState* __tstate = wxPyBeginAllowThreads();
39547 (arg1)->OnInternalIdle();
39548 wxPyEndAllowThreads(__tstate);
39549 if (PyErr_Occurred()) SWIG_fail;
39550 }
39551 resultobj = SWIG_Py_Void();
39552 return resultobj;
39553fail:
39554 return NULL;
39555}
39556
39557
39558SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39559 PyObject *obj;
39560 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39561 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39562 return SWIG_Py_Void();
39563}
39564
39565SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39566 return SWIG_Python_InitShadowInstance(args);
39567}
39568
39569SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39570 PyObject *resultobj = 0;
39571 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39572 int arg2 = (int) 0 ;
39573 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39574 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39575 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
0085ce49
RD
39576 wxHelpEvent *result = 0 ;
39577 int val1 ;
39578 int ecode1 = 0 ;
39579 int val2 ;
39580 int ecode2 = 0 ;
39581 wxPoint temp3 ;
704eda0c
RD
39582 int val4 ;
39583 int ecode4 = 0 ;
0085ce49
RD
39584 PyObject * obj0 = 0 ;
39585 PyObject * obj1 = 0 ;
39586 PyObject * obj2 = 0 ;
704eda0c 39587 PyObject * obj3 = 0 ;
0085ce49 39588 char * kwnames[] = {
704eda0c 39589 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
0085ce49
RD
39590 };
39591
704eda0c 39592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
39593 if (obj0) {
39594 ecode1 = SWIG_AsVal_int(obj0, &val1);
39595 if (!SWIG_IsOK(ecode1)) {
39596 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39597 }
39598 arg1 = static_cast< wxEventType >(val1);
39599 }
39600 if (obj1) {
39601 ecode2 = SWIG_AsVal_int(obj1, &val2);
39602 if (!SWIG_IsOK(ecode2)) {
39603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39604 }
39605 arg2 = static_cast< int >(val2);
39606 }
39607 if (obj2) {
d14a1e28 39608 {
0085ce49
RD
39609 arg3 = &temp3;
39610 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 39611 }
0085ce49 39612 }
704eda0c
RD
39613 if (obj3) {
39614 ecode4 = SWIG_AsVal_int(obj3, &val4);
39615 if (!SWIG_IsOK(ecode4)) {
39616 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39617 }
39618 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39619 }
0085ce49
RD
39620 {
39621 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39622 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
0085ce49
RD
39623 wxPyEndAllowThreads(__tstate);
39624 if (PyErr_Occurred()) SWIG_fail;
39625 }
39626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39627 return resultobj;
39628fail:
39629 return NULL;
d14a1e28
RD
39630}
39631
39632
0085ce49
RD
39633SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39634 PyObject *resultobj = 0;
39635 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39636 wxPoint result;
39637 void *argp1 = 0 ;
39638 int res1 = 0 ;
39639 PyObject *swig_obj[1] ;
39640
39641 if (!args) SWIG_fail;
39642 swig_obj[0] = args;
39643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39644 if (!SWIG_IsOK(res1)) {
39645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39646 }
39647 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39648 {
39649 PyThreadState* __tstate = wxPyBeginAllowThreads();
39650 result = ((wxHelpEvent const *)arg1)->GetPosition();
39651 wxPyEndAllowThreads(__tstate);
39652 if (PyErr_Occurred()) SWIG_fail;
39653 }
39654 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39655 return resultobj;
39656fail:
39657 return NULL;
39658}
39659
39660
39661SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39662 PyObject *resultobj = 0;
39663 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39664 wxPoint *arg2 = 0 ;
39665 void *argp1 = 0 ;
39666 int res1 = 0 ;
39667 wxPoint temp2 ;
39668 PyObject * obj0 = 0 ;
39669 PyObject * obj1 = 0 ;
39670 char * kwnames[] = {
39671 (char *) "self",(char *) "pos", NULL
39672 };
39673
39674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39676 if (!SWIG_IsOK(res1)) {
39677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39678 }
39679 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39680 {
39681 arg2 = &temp2;
39682 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39683 }
39684 {
39685 PyThreadState* __tstate = wxPyBeginAllowThreads();
39686 (arg1)->SetPosition((wxPoint const &)*arg2);
39687 wxPyEndAllowThreads(__tstate);
39688 if (PyErr_Occurred()) SWIG_fail;
39689 }
39690 resultobj = SWIG_Py_Void();
39691 return resultobj;
39692fail:
39693 return NULL;
d14a1e28
RD
39694}
39695
39696
0085ce49
RD
39697SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39698 PyObject *resultobj = 0;
39699 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39700 wxString *result = 0 ;
39701 void *argp1 = 0 ;
39702 int res1 = 0 ;
39703 PyObject *swig_obj[1] ;
39704
39705 if (!args) SWIG_fail;
39706 swig_obj[0] = args;
39707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39708 if (!SWIG_IsOK(res1)) {
39709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39710 }
39711 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39712 {
39713 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 39714 {
0085ce49
RD
39715 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39716 result = (wxString *) &_result_ref;
093d3ff1 39717 }
0085ce49
RD
39718 wxPyEndAllowThreads(__tstate);
39719 if (PyErr_Occurred()) SWIG_fail;
39720 }
39721 {
39722#if wxUSE_UNICODE
39723 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39724#else
39725 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39726#endif
39727 }
39728 return resultobj;
39729fail:
39730 return NULL;
39731}
39732
39733
39734SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39735 PyObject *resultobj = 0;
39736 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39737 wxString *arg2 = 0 ;
39738 void *argp1 = 0 ;
39739 int res1 = 0 ;
39740 bool temp2 = false ;
39741 PyObject * obj0 = 0 ;
39742 PyObject * obj1 = 0 ;
39743 char * kwnames[] = {
39744 (char *) "self",(char *) "link", NULL
39745 };
39746
39747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39749 if (!SWIG_IsOK(res1)) {
39750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39751 }
39752 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39753 {
39754 arg2 = wxString_in_helper(obj1);
39755 if (arg2 == NULL) SWIG_fail;
39756 temp2 = true;
39757 }
39758 {
39759 PyThreadState* __tstate = wxPyBeginAllowThreads();
39760 (arg1)->SetLink((wxString const &)*arg2);
39761 wxPyEndAllowThreads(__tstate);
39762 if (PyErr_Occurred()) SWIG_fail;
39763 }
39764 resultobj = SWIG_Py_Void();
39765 {
39766 if (temp2)
39767 delete arg2;
39768 }
39769 return resultobj;
39770fail:
39771 {
39772 if (temp2)
39773 delete arg2;
39774 }
39775 return NULL;
d14a1e28
RD
39776}
39777
39778
0085ce49
RD
39779SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39780 PyObject *resultobj = 0;
39781 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39782 wxString *result = 0 ;
39783 void *argp1 = 0 ;
39784 int res1 = 0 ;
39785 PyObject *swig_obj[1] ;
39786
39787 if (!args) SWIG_fail;
39788 swig_obj[0] = args;
39789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39790 if (!SWIG_IsOK(res1)) {
39791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39792 }
39793 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39794 {
39795 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 39796 {
0085ce49
RD
39797 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39798 result = (wxString *) &_result_ref;
d14a1e28 39799 }
0085ce49
RD
39800 wxPyEndAllowThreads(__tstate);
39801 if (PyErr_Occurred()) SWIG_fail;
39802 }
39803 {
39804#if wxUSE_UNICODE
39805 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39806#else
39807 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39808#endif
39809 }
39810 return resultobj;
39811fail:
39812 return NULL;
39813}
39814
39815
39816SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39817 PyObject *resultobj = 0;
39818 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39819 wxString *arg2 = 0 ;
39820 void *argp1 = 0 ;
39821 int res1 = 0 ;
39822 bool temp2 = false ;
39823 PyObject * obj0 = 0 ;
39824 PyObject * obj1 = 0 ;
39825 char * kwnames[] = {
39826 (char *) "self",(char *) "target", NULL
39827 };
39828
39829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39831 if (!SWIG_IsOK(res1)) {
39832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39833 }
39834 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39835 {
39836 arg2 = wxString_in_helper(obj1);
39837 if (arg2 == NULL) SWIG_fail;
39838 temp2 = true;
39839 }
39840 {
39841 PyThreadState* __tstate = wxPyBeginAllowThreads();
39842 (arg1)->SetTarget((wxString const &)*arg2);
39843 wxPyEndAllowThreads(__tstate);
39844 if (PyErr_Occurred()) SWIG_fail;
39845 }
39846 resultobj = SWIG_Py_Void();
39847 {
39848 if (temp2)
39849 delete arg2;
39850 }
39851 return resultobj;
39852fail:
39853 {
39854 if (temp2)
39855 delete arg2;
39856 }
39857 return NULL;
d14a1e28
RD
39858}
39859
39860
704eda0c
RD
39861SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39862 PyObject *resultobj = 0;
39863 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39864 wxHelpEvent::Origin result;
39865 void *argp1 = 0 ;
39866 int res1 = 0 ;
39867 PyObject *swig_obj[1] ;
39868
39869 if (!args) SWIG_fail;
39870 swig_obj[0] = args;
39871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39872 if (!SWIG_IsOK(res1)) {
39873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39874 }
39875 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39876 {
39877 PyThreadState* __tstate = wxPyBeginAllowThreads();
39878 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39879 wxPyEndAllowThreads(__tstate);
39880 if (PyErr_Occurred()) SWIG_fail;
39881 }
39882 resultobj = SWIG_From_int(static_cast< int >(result));
39883 return resultobj;
39884fail:
39885 return NULL;
39886}
39887
39888
39889SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39890 PyObject *resultobj = 0;
39891 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39892 wxHelpEvent::Origin arg2 ;
39893 void *argp1 = 0 ;
39894 int res1 = 0 ;
39895 int val2 ;
39896 int ecode2 = 0 ;
39897 PyObject * obj0 = 0 ;
39898 PyObject * obj1 = 0 ;
39899 char * kwnames[] = {
39900 (char *) "self",(char *) "origin", NULL
39901 };
39902
39903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39905 if (!SWIG_IsOK(res1)) {
39906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39907 }
39908 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39909 ecode2 = SWIG_AsVal_int(obj1, &val2);
39910 if (!SWIG_IsOK(ecode2)) {
39911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39912 }
39913 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39914 {
39915 PyThreadState* __tstate = wxPyBeginAllowThreads();
39916 (arg1)->SetOrigin(arg2);
39917 wxPyEndAllowThreads(__tstate);
39918 if (PyErr_Occurred()) SWIG_fail;
39919 }
39920 resultobj = SWIG_Py_Void();
39921 return resultobj;
39922fail:
39923 return NULL;
39924}
39925
39926
0085ce49
RD
39927SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39928 PyObject *obj;
39929 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39930 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39931 return SWIG_Py_Void();
d14a1e28
RD
39932}
39933
0085ce49
RD
39934SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39935 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
39936}
39937
0085ce49
RD
39938SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39939 PyObject *resultobj = 0;
39940 wxWindow *arg1 = (wxWindow *) NULL ;
39941 bool arg2 = (bool) true ;
39942 wxContextHelp *result = 0 ;
39943 void *argp1 = 0 ;
39944 int res1 = 0 ;
39945 bool val2 ;
39946 int ecode2 = 0 ;
39947 PyObject * obj0 = 0 ;
39948 PyObject * obj1 = 0 ;
39949 char * kwnames[] = {
39950 (char *) "window",(char *) "doNow", NULL
39951 };
39952
39953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39954 if (obj0) {
39955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39956 if (!SWIG_IsOK(res1)) {
39957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d14a1e28 39958 }
0085ce49
RD
39959 arg1 = reinterpret_cast< wxWindow * >(argp1);
39960 }
39961 if (obj1) {
39962 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39963 if (!SWIG_IsOK(ecode2)) {
39964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39965 }
39966 arg2 = static_cast< bool >(val2);
39967 }
39968 {
39969 if (!wxPyCheckForApp()) SWIG_fail;
39970 PyThreadState* __tstate = wxPyBeginAllowThreads();
39971 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39972 wxPyEndAllowThreads(__tstate);
39973 if (PyErr_Occurred()) SWIG_fail;
39974 }
39975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39976 return resultobj;
39977fail:
39978 return NULL;
d14a1e28
RD
39979}
39980
39981
0085ce49
RD
39982SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39983 PyObject *resultobj = 0;
39984 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39985 void *argp1 = 0 ;
39986 int res1 = 0 ;
39987 PyObject *swig_obj[1] ;
39988
39989 if (!args) SWIG_fail;
39990 swig_obj[0] = args;
39991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39992 if (!SWIG_IsOK(res1)) {
39993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39994 }
39995 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39996 {
39997 PyThreadState* __tstate = wxPyBeginAllowThreads();
39998 delete arg1;
3a04f143 39999
0085ce49
RD
40000 wxPyEndAllowThreads(__tstate);
40001 if (PyErr_Occurred()) SWIG_fail;
40002 }
40003 resultobj = SWIG_Py_Void();
40004 return resultobj;
40005fail:
40006 return NULL;
40007}
40008
40009
40010SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40011 PyObject *resultobj = 0;
40012 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40013 wxWindow *arg2 = (wxWindow *) NULL ;
40014 bool result;
40015 void *argp1 = 0 ;
40016 int res1 = 0 ;
40017 void *argp2 = 0 ;
40018 int res2 = 0 ;
40019 PyObject * obj0 = 0 ;
40020 PyObject * obj1 = 0 ;
40021 char * kwnames[] = {
40022 (char *) "self",(char *) "window", NULL
40023 };
40024
40025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40027 if (!SWIG_IsOK(res1)) {
40028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40029 }
40030 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40031 if (obj1) {
40032 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40033 if (!SWIG_IsOK(res2)) {
40034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
3a04f143 40035 }
0085ce49
RD
40036 arg2 = reinterpret_cast< wxWindow * >(argp2);
40037 }
40038 {
40039 PyThreadState* __tstate = wxPyBeginAllowThreads();
40040 result = (bool)(arg1)->BeginContextHelp(arg2);
40041 wxPyEndAllowThreads(__tstate);
40042 if (PyErr_Occurred()) SWIG_fail;
40043 }
40044 {
40045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40046 }
40047 return resultobj;
40048fail:
40049 return NULL;
3a04f143
RD
40050}
40051
40052
0085ce49
RD
40053SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40054 PyObject *resultobj = 0;
40055 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40056 bool result;
40057 void *argp1 = 0 ;
40058 int res1 = 0 ;
40059 PyObject *swig_obj[1] ;
40060
40061 if (!args) SWIG_fail;
40062 swig_obj[0] = args;
40063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40064 if (!SWIG_IsOK(res1)) {
40065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40066 }
40067 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40068 {
40069 PyThreadState* __tstate = wxPyBeginAllowThreads();
40070 result = (bool)(arg1)->EndContextHelp();
40071 wxPyEndAllowThreads(__tstate);
40072 if (PyErr_Occurred()) SWIG_fail;
40073 }
40074 {
40075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40076 }
40077 return resultobj;
40078fail:
40079 return NULL;
40080}
40081
40082
40083SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40084 PyObject *obj;
40085 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40086 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
40087 return SWIG_Py_Void();
40088}
40089
40090SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40091 return SWIG_Python_InitShadowInstance(args);
40092}
40093
40094SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40095 PyObject *resultobj = 0;
40096 wxWindow *arg1 = (wxWindow *) 0 ;
40097 int arg2 = (int) wxID_CONTEXT_HELP ;
40098 wxPoint const &arg3_defvalue = wxDefaultPosition ;
40099 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
40100 wxSize const &arg4_defvalue = wxDefaultSize ;
40101 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
40102 long arg5 = (long) wxBU_AUTODRAW ;
40103 wxContextHelpButton *result = 0 ;
40104 void *argp1 = 0 ;
40105 int res1 = 0 ;
40106 int val2 ;
40107 int ecode2 = 0 ;
40108 wxPoint temp3 ;
40109 wxSize temp4 ;
40110 long val5 ;
40111 int ecode5 = 0 ;
40112 PyObject * obj0 = 0 ;
40113 PyObject * obj1 = 0 ;
40114 PyObject * obj2 = 0 ;
40115 PyObject * obj3 = 0 ;
40116 PyObject * obj4 = 0 ;
40117 char * kwnames[] = {
40118 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
40119 };
40120
40121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40123 if (!SWIG_IsOK(res1)) {
40124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
40125 }
40126 arg1 = reinterpret_cast< wxWindow * >(argp1);
40127 if (obj1) {
40128 ecode2 = SWIG_AsVal_int(obj1, &val2);
40129 if (!SWIG_IsOK(ecode2)) {
40130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
40131 }
40132 arg2 = static_cast< int >(val2);
40133 }
40134 if (obj2) {
d14a1e28 40135 {
0085ce49
RD
40136 arg3 = &temp3;
40137 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d14a1e28 40138 }
0085ce49
RD
40139 }
40140 if (obj3) {
4f89f6a3 40141 {
0085ce49
RD
40142 arg4 = &temp4;
40143 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4f89f6a3 40144 }
0085ce49
RD
40145 }
40146 if (obj4) {
40147 ecode5 = SWIG_AsVal_long(obj4, &val5);
40148 if (!SWIG_IsOK(ecode5)) {
40149 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
40150 }
40151 arg5 = static_cast< long >(val5);
40152 }
40153 {
40154 if (!wxPyCheckForApp()) SWIG_fail;
40155 PyThreadState* __tstate = wxPyBeginAllowThreads();
40156 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
40157 wxPyEndAllowThreads(__tstate);
40158 if (PyErr_Occurred()) SWIG_fail;
40159 }
40160 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
40161 return resultobj;
40162fail:
40163 return NULL;
d14a1e28
RD
40164}
40165
40166
0085ce49
RD
40167SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40168 PyObject *obj;
40169 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40170 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40171 return SWIG_Py_Void();
d14a1e28
RD
40172}
40173
0085ce49
RD
40174SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40175 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
40176}
40177
f52cbe90
RD
40178SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40179 PyObject *resultobj = 0;
40180 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
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_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40188 if (!SWIG_IsOK(res1)) {
40189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40190 }
40191 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40192 {
40193 PyThreadState* __tstate = wxPyBeginAllowThreads();
40194 delete arg1;
40195
40196 wxPyEndAllowThreads(__tstate);
40197 if (PyErr_Occurred()) SWIG_fail;
40198 }
40199 resultobj = SWIG_Py_Void();
40200 return resultobj;
40201fail:
40202 return NULL;
40203}
40204
40205
0085ce49
RD
40206SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40207 PyObject *resultobj = 0;
40208 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40209 wxHelpProvider *result = 0 ;
40210 int res1 = 0 ;
40211 PyObject * obj0 = 0 ;
40212 char * kwnames[] = {
40213 (char *) "helpProvider", NULL
40214 };
40215
40216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40217 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40218 if (!SWIG_IsOK(res1)) {
40219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40220 }
40221 {
40222 PyThreadState* __tstate = wxPyBeginAllowThreads();
40223 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40224 wxPyEndAllowThreads(__tstate);
40225 if (PyErr_Occurred()) SWIG_fail;
40226 }
40227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40228 return resultobj;
40229fail:
40230 return NULL;
d14a1e28
RD
40231}
40232
40233
0085ce49
RD
40234SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40235 PyObject *resultobj = 0;
40236 wxHelpProvider *result = 0 ;
40237
40238 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40239 {
40240 PyThreadState* __tstate = wxPyBeginAllowThreads();
40241 result = (wxHelpProvider *)wxHelpProvider::Get();
40242 wxPyEndAllowThreads(__tstate);
40243 if (PyErr_Occurred()) SWIG_fail;
40244 }
40245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40246 return resultobj;
40247fail:
40248 return NULL;
40249}
40250
40251
40252SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40253 PyObject *resultobj = 0;
40254 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40255 wxWindow *arg2 = (wxWindow *) 0 ;
40256 wxString result;
40257 void *argp1 = 0 ;
40258 int res1 = 0 ;
40259 void *argp2 = 0 ;
40260 int res2 = 0 ;
40261 PyObject * obj0 = 0 ;
40262 PyObject * obj1 = 0 ;
40263 char * kwnames[] = {
40264 (char *) "self",(char *) "window", NULL
40265 };
40266
40267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40269 if (!SWIG_IsOK(res1)) {
40270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40271 }
40272 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40273 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40274 if (!SWIG_IsOK(res2)) {
40275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40276 }
40277 arg2 = reinterpret_cast< wxWindow * >(argp2);
40278 {
40279 PyThreadState* __tstate = wxPyBeginAllowThreads();
40280 result = (arg1)->GetHelp((wxWindow const *)arg2);
40281 wxPyEndAllowThreads(__tstate);
40282 if (PyErr_Occurred()) SWIG_fail;
40283 }
40284 {
40285#if wxUSE_UNICODE
40286 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40287#else
40288 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40289#endif
40290 }
40291 return resultobj;
40292fail:
40293 return NULL;
40294}
40295
40296
40297SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40298 PyObject *resultobj = 0;
40299 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40300 wxWindow *arg2 = (wxWindow *) 0 ;
40301 bool result;
40302 void *argp1 = 0 ;
40303 int res1 = 0 ;
40304 void *argp2 = 0 ;
40305 int res2 = 0 ;
40306 PyObject * obj0 = 0 ;
40307 PyObject * obj1 = 0 ;
40308 char * kwnames[] = {
40309 (char *) "self",(char *) "window", NULL
40310 };
40311
40312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40314 if (!SWIG_IsOK(res1)) {
40315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40316 }
40317 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40318 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40319 if (!SWIG_IsOK(res2)) {
40320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40321 }
40322 arg2 = reinterpret_cast< wxWindow * >(argp2);
40323 {
40324 PyThreadState* __tstate = wxPyBeginAllowThreads();
40325 result = (bool)(arg1)->ShowHelp(arg2);
40326 wxPyEndAllowThreads(__tstate);
40327 if (PyErr_Occurred()) SWIG_fail;
40328 }
40329 {
40330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40331 }
40332 return resultobj;
40333fail:
40334 return NULL;
40335}
40336
40337
b850e7f3
RD
40338SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40339 PyObject *resultobj = 0;
40340 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40341 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40342 wxPoint *arg3 = 0 ;
40343 wxHelpEvent::Origin arg4 ;
40344 bool result;
40345 void *argp1 = 0 ;
40346 int res1 = 0 ;
40347 void *argp2 = 0 ;
40348 int res2 = 0 ;
40349 wxPoint temp3 ;
40350 int val4 ;
40351 int ecode4 = 0 ;
40352 PyObject * obj0 = 0 ;
40353 PyObject * obj1 = 0 ;
40354 PyObject * obj2 = 0 ;
40355 PyObject * obj3 = 0 ;
40356 char * kwnames[] = {
40357 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40358 };
40359
40360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40362 if (!SWIG_IsOK(res1)) {
40363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40364 }
40365 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40366 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40367 if (!SWIG_IsOK(res2)) {
40368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40369 }
40370 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40371 {
40372 arg3 = &temp3;
40373 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40374 }
40375 ecode4 = SWIG_AsVal_int(obj3, &val4);
40376 if (!SWIG_IsOK(ecode4)) {
40377 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40378 }
40379 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40380 {
40381 PyThreadState* __tstate = wxPyBeginAllowThreads();
40382 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40383 wxPyEndAllowThreads(__tstate);
40384 if (PyErr_Occurred()) SWIG_fail;
40385 }
40386 {
40387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40388 }
40389 return resultobj;
40390fail:
40391 return NULL;
40392}
40393
40394
0085ce49
RD
40395SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40396 PyObject *resultobj = 0;
40397 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40398 wxWindow *arg2 = (wxWindow *) 0 ;
40399 wxString *arg3 = 0 ;
40400 void *argp1 = 0 ;
40401 int res1 = 0 ;
40402 void *argp2 = 0 ;
40403 int res2 = 0 ;
40404 bool temp3 = false ;
40405 PyObject * obj0 = 0 ;
40406 PyObject * obj1 = 0 ;
40407 PyObject * obj2 = 0 ;
40408 char * kwnames[] = {
40409 (char *) "self",(char *) "window",(char *) "text", NULL
40410 };
40411
40412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40414 if (!SWIG_IsOK(res1)) {
40415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40416 }
40417 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40418 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40419 if (!SWIG_IsOK(res2)) {
40420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40421 }
40422 arg2 = reinterpret_cast< wxWindow * >(argp2);
40423 {
40424 arg3 = wxString_in_helper(obj2);
40425 if (arg3 == NULL) SWIG_fail;
40426 temp3 = true;
40427 }
40428 {
40429 PyThreadState* __tstate = wxPyBeginAllowThreads();
40430 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40431 wxPyEndAllowThreads(__tstate);
40432 if (PyErr_Occurred()) SWIG_fail;
40433 }
40434 resultobj = SWIG_Py_Void();
40435 {
40436 if (temp3)
40437 delete arg3;
40438 }
40439 return resultobj;
40440fail:
40441 {
40442 if (temp3)
40443 delete arg3;
40444 }
40445 return NULL;
40446}
40447
40448
40449SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40450 PyObject *resultobj = 0;
40451 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40452 int arg2 ;
40453 wxString *arg3 = 0 ;
40454 void *argp1 = 0 ;
40455 int res1 = 0 ;
40456 int val2 ;
40457 int ecode2 = 0 ;
40458 bool temp3 = false ;
40459 PyObject * obj0 = 0 ;
40460 PyObject * obj1 = 0 ;
40461 PyObject * obj2 = 0 ;
40462 char * kwnames[] = {
40463 (char *) "self",(char *) "id",(char *) "text", NULL
40464 };
40465
40466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40468 if (!SWIG_IsOK(res1)) {
40469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40470 }
40471 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40472 ecode2 = SWIG_AsVal_int(obj1, &val2);
40473 if (!SWIG_IsOK(ecode2)) {
40474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40475 }
40476 arg2 = static_cast< int >(val2);
40477 {
40478 arg3 = wxString_in_helper(obj2);
40479 if (arg3 == NULL) SWIG_fail;
40480 temp3 = true;
40481 }
40482 {
40483 PyThreadState* __tstate = wxPyBeginAllowThreads();
40484 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40485 wxPyEndAllowThreads(__tstate);
40486 if (PyErr_Occurred()) SWIG_fail;
40487 }
40488 resultobj = SWIG_Py_Void();
40489 {
40490 if (temp3)
40491 delete arg3;
40492 }
40493 return resultobj;
40494fail:
40495 {
40496 if (temp3)
40497 delete arg3;
40498 }
40499 return NULL;
40500}
40501
40502
40503SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40504 PyObject *resultobj = 0;
40505 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40506 wxWindow *arg2 = (wxWindow *) 0 ;
40507 void *argp1 = 0 ;
40508 int res1 = 0 ;
40509 void *argp2 = 0 ;
40510 int res2 = 0 ;
40511 PyObject * obj0 = 0 ;
40512 PyObject * obj1 = 0 ;
40513 char * kwnames[] = {
40514 (char *) "self",(char *) "window", NULL
40515 };
40516
40517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40519 if (!SWIG_IsOK(res1)) {
40520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40521 }
40522 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40523 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40524 if (!SWIG_IsOK(res2)) {
40525 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40526 }
40527 arg2 = reinterpret_cast< wxWindow * >(argp2);
40528 {
40529 PyThreadState* __tstate = wxPyBeginAllowThreads();
40530 (arg1)->RemoveHelp(arg2);
40531 wxPyEndAllowThreads(__tstate);
40532 if (PyErr_Occurred()) SWIG_fail;
40533 }
40534 resultobj = SWIG_Py_Void();
40535 return resultobj;
40536fail:
40537 return NULL;
d14a1e28
RD
40538}
40539
40540
0085ce49
RD
40541SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40542 PyObject *resultobj = 0;
40543 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40544 void *argp1 = 0 ;
40545 int res1 = 0 ;
40546 PyObject *swig_obj[1] ;
40547
40548 if (!args) SWIG_fail;
40549 swig_obj[0] = args;
40550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40551 if (!SWIG_IsOK(res1)) {
40552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40553 }
40554 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40555 {
40556 PyThreadState* __tstate = wxPyBeginAllowThreads();
40557 wxHelpProvider_Destroy(arg1);
40558 wxPyEndAllowThreads(__tstate);
40559 if (PyErr_Occurred()) SWIG_fail;
40560 }
40561 resultobj = SWIG_Py_Void();
40562 return resultobj;
40563fail:
40564 return NULL;
22bfe96c
RD
40565}
40566
40567
0085ce49
RD
40568SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40569 PyObject *obj;
40570 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40571 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40572 return SWIG_Py_Void();
b2dc1044
RD
40573}
40574
0085ce49
RD
40575SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40576 PyObject *resultobj = 0;
40577 wxSimpleHelpProvider *result = 0 ;
40578
40579 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40580 {
40581 PyThreadState* __tstate = wxPyBeginAllowThreads();
40582 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40583 wxPyEndAllowThreads(__tstate);
40584 if (PyErr_Occurred()) SWIG_fail;
40585 }
40586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40587 return resultobj;
40588fail:
40589 return NULL;
40590}
40591
40592
40593SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40594 PyObject *obj;
40595 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40596 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40597 return SWIG_Py_Void();
40598}
40599
40600SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40601 return SWIG_Python_InitShadowInstance(args);
40602}
40603
40604SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40605 PyObject *resultobj = 0;
40606 wxBitmap *arg1 = 0 ;
40607 wxCursor const &arg2_defvalue = wxNullCursor ;
40608 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40609 wxGenericDragImage *result = 0 ;
40610 void *argp1 = 0 ;
40611 int res1 = 0 ;
40612 void *argp2 = 0 ;
40613 int res2 = 0 ;
40614 PyObject * obj0 = 0 ;
40615 PyObject * obj1 = 0 ;
40616 char * kwnames[] = {
40617 (char *) "image",(char *) "cursor", NULL
40618 };
40619
40620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40621 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40622 if (!SWIG_IsOK(res1)) {
40623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40624 }
40625 if (!argp1) {
40626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40627 }
40628 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40629 if (obj1) {
40630 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40631 if (!SWIG_IsOK(res2)) {
40632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40633 }
0085ce49
RD
40634 if (!argp2) {
40635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40636 }
0085ce49
RD
40637 arg2 = reinterpret_cast< wxCursor * >(argp2);
40638 }
40639 {
40640 if (!wxPyCheckForApp()) SWIG_fail;
40641 PyThreadState* __tstate = wxPyBeginAllowThreads();
40642 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40643 wxPyEndAllowThreads(__tstate);
40644 if (PyErr_Occurred()) SWIG_fail;
40645 }
40646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40647 return resultobj;
40648fail:
40649 return NULL;
40650}
40651
40652
40653SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40654 PyObject *resultobj = 0;
40655 wxIcon *arg1 = 0 ;
40656 wxCursor const &arg2_defvalue = wxNullCursor ;
40657 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40658 wxGenericDragImage *result = 0 ;
40659 void *argp1 = 0 ;
40660 int res1 = 0 ;
40661 void *argp2 = 0 ;
40662 int res2 = 0 ;
40663 PyObject * obj0 = 0 ;
40664 PyObject * obj1 = 0 ;
40665 char * kwnames[] = {
40666 (char *) "image",(char *) "cursor", NULL
40667 };
40668
40669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40670 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40671 if (!SWIG_IsOK(res1)) {
40672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40673 }
40674 if (!argp1) {
40675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40676 }
40677 arg1 = reinterpret_cast< wxIcon * >(argp1);
40678 if (obj1) {
40679 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40680 if (!SWIG_IsOK(res2)) {
40681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40682 }
0085ce49
RD
40683 if (!argp2) {
40684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d14a1e28 40685 }
0085ce49
RD
40686 arg2 = reinterpret_cast< wxCursor * >(argp2);
40687 }
40688 {
40689 if (!wxPyCheckForApp()) SWIG_fail;
40690 PyThreadState* __tstate = wxPyBeginAllowThreads();
40691 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40692 wxPyEndAllowThreads(__tstate);
40693 if (PyErr_Occurred()) SWIG_fail;
40694 }
40695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40696 return resultobj;
40697fail:
40698 return NULL;
40699}
40700
40701
40702SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40703 PyObject *resultobj = 0;
40704 wxString *arg1 = 0 ;
40705 wxCursor const &arg2_defvalue = wxNullCursor ;
40706 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40707 wxGenericDragImage *result = 0 ;
40708 bool temp1 = false ;
40709 void *argp2 = 0 ;
40710 int res2 = 0 ;
40711 PyObject * obj0 = 0 ;
40712 PyObject * obj1 = 0 ;
40713 char * kwnames[] = {
40714 (char *) "str",(char *) "cursor", NULL
40715 };
40716
40717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40718 {
40719 arg1 = wxString_in_helper(obj0);
40720 if (arg1 == NULL) SWIG_fail;
40721 temp1 = true;
40722 }
40723 if (obj1) {
40724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40725 if (!SWIG_IsOK(res2)) {
40726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
7e08d4ef 40727 }
0085ce49
RD
40728 if (!argp2) {
40729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40730 }
40731 arg2 = reinterpret_cast< wxCursor * >(argp2);
40732 }
40733 {
40734 if (!wxPyCheckForApp()) SWIG_fail;
40735 PyThreadState* __tstate = wxPyBeginAllowThreads();
40736 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40737 wxPyEndAllowThreads(__tstate);
40738 if (PyErr_Occurred()) SWIG_fail;
40739 }
40740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40741 {
40742 if (temp1)
40743 delete arg1;
40744 }
40745 return resultobj;
40746fail:
40747 {
40748 if (temp1)
40749 delete arg1;
40750 }
40751 return NULL;
40752}
40753
40754
40755SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40756 PyObject *resultobj = 0;
40757 wxPyTreeCtrl *arg1 = 0 ;
40758 wxTreeItemId *arg2 = 0 ;
40759 wxGenericDragImage *result = 0 ;
40760 void *argp1 = 0 ;
40761 int res1 = 0 ;
40762 void *argp2 = 0 ;
40763 int res2 = 0 ;
40764 PyObject * obj0 = 0 ;
40765 PyObject * obj1 = 0 ;
40766 char * kwnames[] = {
40767 (char *) "treeCtrl",(char *) "id", NULL
40768 };
40769
40770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40771 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40772 if (!SWIG_IsOK(res1)) {
40773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40774 }
40775 if (!argp1) {
40776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40777 }
40778 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40779 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40780 if (!SWIG_IsOK(res2)) {
40781 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40782 }
40783 if (!argp2) {
40784 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40785 }
40786 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40787 {
40788 if (!wxPyCheckForApp()) SWIG_fail;
40789 PyThreadState* __tstate = wxPyBeginAllowThreads();
40790 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40791 wxPyEndAllowThreads(__tstate);
40792 if (PyErr_Occurred()) SWIG_fail;
40793 }
40794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40795 return resultobj;
40796fail:
40797 return NULL;
40798}
40799
40800
40801SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40802 PyObject *resultobj = 0;
40803 wxPyListCtrl *arg1 = 0 ;
40804 long arg2 ;
40805 wxGenericDragImage *result = 0 ;
40806 void *argp1 = 0 ;
40807 int res1 = 0 ;
40808 long val2 ;
40809 int ecode2 = 0 ;
40810 PyObject * obj0 = 0 ;
40811 PyObject * obj1 = 0 ;
40812 char * kwnames[] = {
40813 (char *) "listCtrl",(char *) "id", NULL
40814 };
40815
40816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40817 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40818 if (!SWIG_IsOK(res1)) {
40819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40820 }
40821 if (!argp1) {
40822 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40823 }
40824 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40825 ecode2 = SWIG_AsVal_long(obj1, &val2);
40826 if (!SWIG_IsOK(ecode2)) {
40827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40828 }
40829 arg2 = static_cast< long >(val2);
40830 {
40831 if (!wxPyCheckForApp()) SWIG_fail;
40832 PyThreadState* __tstate = wxPyBeginAllowThreads();
40833 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40834 wxPyEndAllowThreads(__tstate);
40835 if (PyErr_Occurred()) SWIG_fail;
40836 }
40837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40838 return resultobj;
40839fail:
40840 return NULL;
7e08d4ef
RD
40841}
40842
40843
0085ce49
RD
40844SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40845 PyObject *resultobj = 0;
40846 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40847 void *argp1 = 0 ;
40848 int res1 = 0 ;
40849 PyObject *swig_obj[1] ;
40850
40851 if (!args) SWIG_fail;
40852 swig_obj[0] = args;
40853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40854 if (!SWIG_IsOK(res1)) {
40855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40856 }
40857 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40858 {
40859 PyThreadState* __tstate = wxPyBeginAllowThreads();
40860 delete arg1;
d14a1e28 40861
0085ce49
RD
40862 wxPyEndAllowThreads(__tstate);
40863 if (PyErr_Occurred()) SWIG_fail;
40864 }
40865 resultobj = SWIG_Py_Void();
40866 return resultobj;
40867fail:
40868 return NULL;
40869}
40870
40871
40872SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40873 PyObject *resultobj = 0;
40874 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40875 wxBitmap *arg2 = (wxBitmap *) 0 ;
40876 void *argp1 = 0 ;
40877 int res1 = 0 ;
40878 void *argp2 = 0 ;
40879 int res2 = 0 ;
40880 PyObject * obj0 = 0 ;
40881 PyObject * obj1 = 0 ;
40882 char * kwnames[] = {
40883 (char *) "self",(char *) "bitmap", NULL
40884 };
40885
40886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40888 if (!SWIG_IsOK(res1)) {
40889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40890 }
40891 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40892 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40893 if (!SWIG_IsOK(res2)) {
40894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40895 }
40896 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40897 {
40898 PyThreadState* __tstate = wxPyBeginAllowThreads();
40899 (arg1)->SetBackingBitmap(arg2);
40900 wxPyEndAllowThreads(__tstate);
40901 if (PyErr_Occurred()) SWIG_fail;
40902 }
40903 resultobj = SWIG_Py_Void();
40904 return resultobj;
40905fail:
40906 return NULL;
40907}
40908
40909
40910SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40911 PyObject *resultobj = 0;
40912 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40913 wxPoint *arg2 = 0 ;
40914 wxWindow *arg3 = (wxWindow *) 0 ;
40915 bool arg4 = (bool) false ;
40916 wxRect *arg5 = (wxRect *) NULL ;
40917 bool result;
40918 void *argp1 = 0 ;
40919 int res1 = 0 ;
40920 wxPoint temp2 ;
40921 void *argp3 = 0 ;
40922 int res3 = 0 ;
40923 bool val4 ;
40924 int ecode4 = 0 ;
40925 void *argp5 = 0 ;
40926 int res5 = 0 ;
40927 PyObject * obj0 = 0 ;
40928 PyObject * obj1 = 0 ;
40929 PyObject * obj2 = 0 ;
40930 PyObject * obj3 = 0 ;
40931 PyObject * obj4 = 0 ;
40932 char * kwnames[] = {
40933 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40934 };
40935
40936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40938 if (!SWIG_IsOK(res1)) {
40939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40940 }
40941 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40942 {
40943 arg2 = &temp2;
40944 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40945 }
40946 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40947 if (!SWIG_IsOK(res3)) {
40948 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40949 }
40950 arg3 = reinterpret_cast< wxWindow * >(argp3);
40951 if (obj3) {
40952 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40953 if (!SWIG_IsOK(ecode4)) {
40954 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40955 }
40956 arg4 = static_cast< bool >(val4);
40957 }
40958 if (obj4) {
40959 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40960 if (!SWIG_IsOK(res5)) {
40961 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d14a1e28 40962 }
0085ce49
RD
40963 arg5 = reinterpret_cast< wxRect * >(argp5);
40964 }
40965 {
40966 PyThreadState* __tstate = wxPyBeginAllowThreads();
40967 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40968 wxPyEndAllowThreads(__tstate);
40969 if (PyErr_Occurred()) SWIG_fail;
40970 }
40971 {
40972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40973 }
40974 return resultobj;
40975fail:
40976 return NULL;
40977}
40978
40979
40980SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40981 PyObject *resultobj = 0;
40982 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40983 wxPoint *arg2 = 0 ;
40984 wxWindow *arg3 = (wxWindow *) 0 ;
40985 wxWindow *arg4 = (wxWindow *) 0 ;
40986 bool result;
40987 void *argp1 = 0 ;
40988 int res1 = 0 ;
40989 wxPoint temp2 ;
40990 void *argp3 = 0 ;
40991 int res3 = 0 ;
40992 void *argp4 = 0 ;
40993 int res4 = 0 ;
40994 PyObject * obj0 = 0 ;
40995 PyObject * obj1 = 0 ;
40996 PyObject * obj2 = 0 ;
40997 PyObject * obj3 = 0 ;
40998 char * kwnames[] = {
40999 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
41000 };
41001
41002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41004 if (!SWIG_IsOK(res1)) {
41005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41006 }
41007 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41008 {
41009 arg2 = &temp2;
41010 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41011 }
41012 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41013 if (!SWIG_IsOK(res3)) {
41014 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
41015 }
41016 arg3 = reinterpret_cast< wxWindow * >(argp3);
41017 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
41018 if (!SWIG_IsOK(res4)) {
41019 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
41020 }
41021 arg4 = reinterpret_cast< wxWindow * >(argp4);
41022 {
41023 PyThreadState* __tstate = wxPyBeginAllowThreads();
41024 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
41025 wxPyEndAllowThreads(__tstate);
41026 if (PyErr_Occurred()) SWIG_fail;
41027 }
41028 {
41029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41030 }
41031 return resultobj;
41032fail:
41033 return NULL;
d14a1e28
RD
41034}
41035
41036
0085ce49
RD
41037SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41038 PyObject *resultobj = 0;
41039 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41040 bool result;
41041 void *argp1 = 0 ;
41042 int res1 = 0 ;
41043 PyObject *swig_obj[1] ;
41044
41045 if (!args) SWIG_fail;
41046 swig_obj[0] = args;
41047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41048 if (!SWIG_IsOK(res1)) {
41049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41050 }
41051 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41052 {
41053 PyThreadState* __tstate = wxPyBeginAllowThreads();
41054 result = (bool)(arg1)->EndDrag();
41055 wxPyEndAllowThreads(__tstate);
41056 if (PyErr_Occurred()) SWIG_fail;
41057 }
41058 {
41059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41060 }
41061 return resultobj;
41062fail:
41063 return NULL;
41064}
41065
41066
41067SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41068 PyObject *resultobj = 0;
41069 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41070 wxPoint *arg2 = 0 ;
41071 bool result;
41072 void *argp1 = 0 ;
41073 int res1 = 0 ;
41074 wxPoint temp2 ;
41075 PyObject * obj0 = 0 ;
41076 PyObject * obj1 = 0 ;
41077 char * kwnames[] = {
41078 (char *) "self",(char *) "pt", NULL
41079 };
41080
41081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
41082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41083 if (!SWIG_IsOK(res1)) {
41084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41085 }
41086 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41087 {
41088 arg2 = &temp2;
41089 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41090 }
41091 {
41092 PyThreadState* __tstate = wxPyBeginAllowThreads();
41093 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
41094 wxPyEndAllowThreads(__tstate);
41095 if (PyErr_Occurred()) SWIG_fail;
41096 }
41097 {
41098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41099 }
41100 return resultobj;
41101fail:
41102 return NULL;
d14a1e28
RD
41103}
41104
41105
0085ce49
RD
41106SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41107 PyObject *resultobj = 0;
41108 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41109 bool result;
41110 void *argp1 = 0 ;
41111 int res1 = 0 ;
41112 PyObject *swig_obj[1] ;
41113
41114 if (!args) SWIG_fail;
41115 swig_obj[0] = args;
41116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41117 if (!SWIG_IsOK(res1)) {
41118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41119 }
41120 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41121 {
41122 PyThreadState* __tstate = wxPyBeginAllowThreads();
41123 result = (bool)(arg1)->Show();
41124 wxPyEndAllowThreads(__tstate);
41125 if (PyErr_Occurred()) SWIG_fail;
41126 }
41127 {
41128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41129 }
41130 return resultobj;
41131fail:
41132 return NULL;
d14a1e28
RD
41133}
41134
41135
0085ce49
RD
41136SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41137 PyObject *resultobj = 0;
41138 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41139 bool result;
41140 void *argp1 = 0 ;
41141 int res1 = 0 ;
41142 PyObject *swig_obj[1] ;
41143
41144 if (!args) SWIG_fail;
41145 swig_obj[0] = args;
41146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41147 if (!SWIG_IsOK(res1)) {
41148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41149 }
41150 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41151 {
41152 PyThreadState* __tstate = wxPyBeginAllowThreads();
41153 result = (bool)(arg1)->Hide();
41154 wxPyEndAllowThreads(__tstate);
41155 if (PyErr_Occurred()) SWIG_fail;
41156 }
41157 {
41158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41159 }
41160 return resultobj;
41161fail:
41162 return NULL;
41163}
41164
41165
41166SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41167 PyObject *resultobj = 0;
41168 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41169 wxPoint *arg2 = 0 ;
41170 wxRect result;
41171 void *argp1 = 0 ;
41172 int res1 = 0 ;
41173 wxPoint temp2 ;
41174 PyObject * obj0 = 0 ;
41175 PyObject * obj1 = 0 ;
41176 char * kwnames[] = {
41177 (char *) "self",(char *) "pos", NULL
41178 };
41179
41180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41182 if (!SWIG_IsOK(res1)) {
41183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41184 }
41185 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41186 {
41187 arg2 = &temp2;
41188 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41189 }
41190 {
41191 PyThreadState* __tstate = wxPyBeginAllowThreads();
41192 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41193 wxPyEndAllowThreads(__tstate);
41194 if (PyErr_Occurred()) SWIG_fail;
41195 }
41196 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41197 return resultobj;
41198fail:
41199 return NULL;
41200}
41201
41202
41203SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41204 PyObject *resultobj = 0;
41205 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41206 wxDC *arg2 = 0 ;
41207 wxPoint *arg3 = 0 ;
41208 bool result;
41209 void *argp1 = 0 ;
41210 int res1 = 0 ;
41211 void *argp2 = 0 ;
41212 int res2 = 0 ;
41213 wxPoint temp3 ;
41214 PyObject * obj0 = 0 ;
41215 PyObject * obj1 = 0 ;
41216 PyObject * obj2 = 0 ;
41217 char * kwnames[] = {
41218 (char *) "self",(char *) "dc",(char *) "pos", NULL
41219 };
41220
41221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41223 if (!SWIG_IsOK(res1)) {
41224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41225 }
41226 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41227 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41228 if (!SWIG_IsOK(res2)) {
41229 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41230 }
41231 if (!argp2) {
41232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41233 }
41234 arg2 = reinterpret_cast< wxDC * >(argp2);
41235 {
41236 arg3 = &temp3;
41237 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41238 }
41239 {
41240 PyThreadState* __tstate = wxPyBeginAllowThreads();
41241 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41242 wxPyEndAllowThreads(__tstate);
41243 if (PyErr_Occurred()) SWIG_fail;
41244 }
41245 {
41246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41247 }
41248 return resultobj;
41249fail:
41250 return NULL;
41251}
41252
41253
41254SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41255 PyObject *resultobj = 0;
41256 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41257 wxDC *arg2 = 0 ;
41258 wxMemoryDC *arg3 = 0 ;
41259 wxRect *arg4 = 0 ;
41260 wxRect *arg5 = 0 ;
41261 bool result;
41262 void *argp1 = 0 ;
41263 int res1 = 0 ;
41264 void *argp2 = 0 ;
41265 int res2 = 0 ;
41266 void *argp3 = 0 ;
41267 int res3 = 0 ;
41268 wxRect temp4 ;
41269 wxRect temp5 ;
41270 PyObject * obj0 = 0 ;
41271 PyObject * obj1 = 0 ;
41272 PyObject * obj2 = 0 ;
41273 PyObject * obj3 = 0 ;
41274 PyObject * obj4 = 0 ;
41275 char * kwnames[] = {
41276 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41277 };
41278
41279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41281 if (!SWIG_IsOK(res1)) {
41282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41283 }
41284 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41285 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41286 if (!SWIG_IsOK(res2)) {
41287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41288 }
41289 if (!argp2) {
41290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41291 }
41292 arg2 = reinterpret_cast< wxDC * >(argp2);
41293 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41294 if (!SWIG_IsOK(res3)) {
41295 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41296 }
41297 if (!argp3) {
41298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41299 }
41300 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41301 {
41302 arg4 = &temp4;
41303 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41304 }
41305 {
41306 arg5 = &temp5;
41307 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41308 }
41309 {
41310 PyThreadState* __tstate = wxPyBeginAllowThreads();
41311 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41312 wxPyEndAllowThreads(__tstate);
41313 if (PyErr_Occurred()) SWIG_fail;
41314 }
41315 {
41316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41317 }
41318 return resultobj;
41319fail:
41320 return NULL;
41321}
41322
41323
41324SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41325 PyObject *resultobj = 0;
41326 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41327 wxPoint *arg2 = 0 ;
41328 wxPoint *arg3 = 0 ;
41329 bool arg4 ;
41330 bool arg5 ;
41331 bool result;
41332 void *argp1 = 0 ;
41333 int res1 = 0 ;
41334 wxPoint temp2 ;
41335 wxPoint temp3 ;
41336 bool val4 ;
41337 int ecode4 = 0 ;
41338 bool val5 ;
41339 int ecode5 = 0 ;
41340 PyObject * obj0 = 0 ;
41341 PyObject * obj1 = 0 ;
41342 PyObject * obj2 = 0 ;
41343 PyObject * obj3 = 0 ;
41344 PyObject * obj4 = 0 ;
41345 char * kwnames[] = {
41346 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41347 };
41348
41349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41351 if (!SWIG_IsOK(res1)) {
41352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41353 }
41354 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41355 {
41356 arg2 = &temp2;
41357 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41358 }
41359 {
41360 arg3 = &temp3;
41361 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41362 }
41363 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41364 if (!SWIG_IsOK(ecode4)) {
41365 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41366 }
41367 arg4 = static_cast< bool >(val4);
41368 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41369 if (!SWIG_IsOK(ecode5)) {
41370 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41371 }
41372 arg5 = static_cast< bool >(val5);
41373 {
41374 PyThreadState* __tstate = wxPyBeginAllowThreads();
41375 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41376 wxPyEndAllowThreads(__tstate);
41377 if (PyErr_Occurred()) SWIG_fail;
41378 }
41379 {
41380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41381 }
41382 return resultobj;
41383fail:
41384 return NULL;
d14a1e28
RD
41385}
41386
41387
0085ce49
RD
41388SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41389 PyObject *obj;
41390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41391 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41392 return SWIG_Py_Void();
d14a1e28
RD
41393}
41394
0085ce49
RD
41395SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41396 return SWIG_Python_InitShadowInstance(args);
41397}
d14a1e28 41398
0085ce49
RD
41399SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41400 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41401 return 1;
d14a1e28
RD
41402}
41403
41404
0085ce49
RD
41405SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41406 PyObject *pyobj = 0;
41407
41408 {
41409#if wxUSE_UNICODE
41410 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41411#else
41412 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41413#endif
41414 }
41415 return pyobj;
41416}
41417
41418
41419SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41420 PyObject *resultobj = 0;
41421 wxWindow *arg1 = (wxWindow *) 0 ;
41422 int arg2 = (int) -1 ;
41423 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41424 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41425 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41426 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41427 wxSize const &arg5_defvalue = wxDefaultSize ;
41428 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41429 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41430 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41431 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41432 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41433 wxString *arg8 = (wxString *) &arg8_defvalue ;
41434 wxDatePickerCtrl *result = 0 ;
41435 void *argp1 = 0 ;
41436 int res1 = 0 ;
41437 int val2 ;
41438 int ecode2 = 0 ;
41439 void *argp3 = 0 ;
41440 int res3 = 0 ;
41441 wxPoint temp4 ;
41442 wxSize temp5 ;
41443 long val6 ;
41444 int ecode6 = 0 ;
41445 void *argp7 = 0 ;
41446 int res7 = 0 ;
41447 bool temp8 = false ;
41448 PyObject * obj0 = 0 ;
41449 PyObject * obj1 = 0 ;
41450 PyObject * obj2 = 0 ;
41451 PyObject * obj3 = 0 ;
41452 PyObject * obj4 = 0 ;
41453 PyObject * obj5 = 0 ;
41454 PyObject * obj6 = 0 ;
41455 PyObject * obj7 = 0 ;
41456 char * kwnames[] = {
41457 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41458 };
41459
41460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41462 if (!SWIG_IsOK(res1)) {
41463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41464 }
41465 arg1 = reinterpret_cast< wxWindow * >(argp1);
41466 if (obj1) {
41467 ecode2 = SWIG_AsVal_int(obj1, &val2);
41468 if (!SWIG_IsOK(ecode2)) {
41469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41470 }
41471 arg2 = static_cast< int >(val2);
41472 }
41473 if (obj2) {
41474 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41475 if (!SWIG_IsOK(res3)) {
41476 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 41477 }
0085ce49
RD
41478 if (!argp3) {
41479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d14a1e28 41480 }
0085ce49
RD
41481 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41482 }
41483 if (obj3) {
d14a1e28 41484 {
0085ce49
RD
41485 arg4 = &temp4;
41486 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d14a1e28 41487 }
0085ce49
RD
41488 }
41489 if (obj4) {
d14a1e28 41490 {
0085ce49
RD
41491 arg5 = &temp5;
41492 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 41493 }
0085ce49
RD
41494 }
41495 if (obj5) {
41496 ecode6 = SWIG_AsVal_long(obj5, &val6);
41497 if (!SWIG_IsOK(ecode6)) {
41498 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41499 }
41500 arg6 = static_cast< long >(val6);
41501 }
41502 if (obj6) {
41503 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41504 if (!SWIG_IsOK(res7)) {
41505 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41506 }
41507 if (!argp7) {
41508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d14a1e28 41509 }
0085ce49
RD
41510 arg7 = reinterpret_cast< wxValidator * >(argp7);
41511 }
41512 if (obj7) {
d14a1e28 41513 {
0085ce49
RD
41514 arg8 = wxString_in_helper(obj7);
41515 if (arg8 == NULL) SWIG_fail;
41516 temp8 = true;
d14a1e28 41517 }
0085ce49
RD
41518 }
41519 {
41520 if (!wxPyCheckForApp()) SWIG_fail;
41521 PyThreadState* __tstate = wxPyBeginAllowThreads();
41522 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41523 wxPyEndAllowThreads(__tstate);
41524 if (PyErr_Occurred()) SWIG_fail;
41525 }
41526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41527 {
41528 if (temp8)
41529 delete arg8;
41530 }
41531 return resultobj;
41532fail:
41533 {
41534 if (temp8)
41535 delete arg8;
41536 }
41537 return NULL;
d14a1e28
RD
41538}
41539
41540
0085ce49
RD
41541SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41542 PyObject *resultobj = 0;
41543 wxDatePickerCtrl *result = 0 ;
41544
41545 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41546 {
41547 if (!wxPyCheckForApp()) SWIG_fail;
41548 PyThreadState* __tstate = wxPyBeginAllowThreads();
41549 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41550 wxPyEndAllowThreads(__tstate);
41551 if (PyErr_Occurred()) SWIG_fail;
41552 }
41553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41554 return resultobj;
41555fail:
41556 return NULL;
41557}
41558
41559
41560SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41561 PyObject *resultobj = 0;
41562 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41563 wxWindow *arg2 = (wxWindow *) 0 ;
41564 int arg3 = (int) -1 ;
41565 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41566 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41567 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41568 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41569 wxSize const &arg6_defvalue = wxDefaultSize ;
41570 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41571 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41572 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41573 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41574 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41575 wxString *arg9 = (wxString *) &arg9_defvalue ;
41576 bool result;
41577 void *argp1 = 0 ;
41578 int res1 = 0 ;
41579 void *argp2 = 0 ;
41580 int res2 = 0 ;
41581 int val3 ;
41582 int ecode3 = 0 ;
41583 void *argp4 = 0 ;
41584 int res4 = 0 ;
41585 wxPoint temp5 ;
41586 wxSize temp6 ;
41587 long val7 ;
41588 int ecode7 = 0 ;
41589 void *argp8 = 0 ;
41590 int res8 = 0 ;
41591 bool temp9 = false ;
41592 PyObject * obj0 = 0 ;
41593 PyObject * obj1 = 0 ;
41594 PyObject * obj2 = 0 ;
41595 PyObject * obj3 = 0 ;
41596 PyObject * obj4 = 0 ;
41597 PyObject * obj5 = 0 ;
41598 PyObject * obj6 = 0 ;
41599 PyObject * obj7 = 0 ;
41600 PyObject * obj8 = 0 ;
41601 char * kwnames[] = {
41602 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41603 };
41604
41605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41607 if (!SWIG_IsOK(res1)) {
41608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41609 }
41610 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41611 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41612 if (!SWIG_IsOK(res2)) {
41613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41614 }
41615 arg2 = reinterpret_cast< wxWindow * >(argp2);
41616 if (obj2) {
41617 ecode3 = SWIG_AsVal_int(obj2, &val3);
41618 if (!SWIG_IsOK(ecode3)) {
41619 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41620 }
41621 arg3 = static_cast< int >(val3);
41622 }
41623 if (obj3) {
41624 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41625 if (!SWIG_IsOK(res4)) {
41626 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 41627 }
0085ce49
RD
41628 if (!argp4) {
41629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
7e08d4ef 41630 }
0085ce49
RD
41631 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41632 }
41633 if (obj4) {
d14a1e28 41634 {
0085ce49
RD
41635 arg5 = &temp5;
41636 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d14a1e28 41637 }
0085ce49
RD
41638 }
41639 if (obj5) {
d14a1e28 41640 {
0085ce49
RD
41641 arg6 = &temp6;
41642 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41643 }
41644 }
41645 if (obj6) {
41646 ecode7 = SWIG_AsVal_long(obj6, &val7);
41647 if (!SWIG_IsOK(ecode7)) {
41648 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41649 }
41650 arg7 = static_cast< long >(val7);
41651 }
41652 if (obj7) {
41653 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41654 if (!SWIG_IsOK(res8)) {
41655 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41656 }
41657 if (!argp8) {
41658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d14a1e28 41659 }
0085ce49
RD
41660 arg8 = reinterpret_cast< wxValidator * >(argp8);
41661 }
41662 if (obj8) {
d14a1e28 41663 {
0085ce49
RD
41664 arg9 = wxString_in_helper(obj8);
41665 if (arg9 == NULL) SWIG_fail;
41666 temp9 = true;
d14a1e28 41667 }
0085ce49
RD
41668 }
41669 {
41670 PyThreadState* __tstate = wxPyBeginAllowThreads();
41671 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41672 wxPyEndAllowThreads(__tstate);
41673 if (PyErr_Occurred()) SWIG_fail;
41674 }
41675 {
41676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41677 }
41678 {
41679 if (temp9)
41680 delete arg9;
41681 }
41682 return resultobj;
41683fail:
41684 {
41685 if (temp9)
41686 delete arg9;
41687 }
41688 return NULL;
41689}
41690
41691
41692SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41693 PyObject *resultobj = 0;
41694 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41695 wxDateTime *arg2 = 0 ;
41696 void *argp1 = 0 ;
41697 int res1 = 0 ;
41698 void *argp2 = 0 ;
41699 int res2 = 0 ;
41700 PyObject * obj0 = 0 ;
41701 PyObject * obj1 = 0 ;
41702 char * kwnames[] = {
41703 (char *) "self",(char *) "dt", NULL
41704 };
41705
41706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41708 if (!SWIG_IsOK(res1)) {
41709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41710 }
41711 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41712 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41713 if (!SWIG_IsOK(res2)) {
41714 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41715 }
41716 if (!argp2) {
41717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41718 }
41719 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41720 {
41721 PyThreadState* __tstate = wxPyBeginAllowThreads();
41722 (arg1)->SetValue((wxDateTime const &)*arg2);
41723 wxPyEndAllowThreads(__tstate);
41724 if (PyErr_Occurred()) SWIG_fail;
41725 }
41726 resultobj = SWIG_Py_Void();
41727 return resultobj;
41728fail:
41729 return NULL;
d14a1e28
RD
41730}
41731
41732
0085ce49
RD
41733SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41734 PyObject *resultobj = 0;
41735 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41736 wxDateTime result;
41737 void *argp1 = 0 ;
41738 int res1 = 0 ;
41739 PyObject *swig_obj[1] ;
41740
41741 if (!args) SWIG_fail;
41742 swig_obj[0] = args;
41743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41744 if (!SWIG_IsOK(res1)) {
41745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41746 }
41747 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41748 {
41749 PyThreadState* __tstate = wxPyBeginAllowThreads();
41750 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41751 wxPyEndAllowThreads(__tstate);
41752 if (PyErr_Occurred()) SWIG_fail;
41753 }
41754 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41755 return resultobj;
41756fail:
41757 return NULL;
41758}
41759
41760
41761SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41762 PyObject *resultobj = 0;
41763 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41764 wxDateTime *arg2 = 0 ;
41765 wxDateTime *arg3 = 0 ;
41766 void *argp1 = 0 ;
41767 int res1 = 0 ;
41768 void *argp2 = 0 ;
41769 int res2 = 0 ;
41770 void *argp3 = 0 ;
41771 int res3 = 0 ;
41772 PyObject * obj0 = 0 ;
41773 PyObject * obj1 = 0 ;
41774 PyObject * obj2 = 0 ;
41775 char * kwnames[] = {
41776 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41777 };
41778
41779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41781 if (!SWIG_IsOK(res1)) {
41782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41783 }
41784 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41785 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41786 if (!SWIG_IsOK(res2)) {
41787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41788 }
41789 if (!argp2) {
41790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41791 }
41792 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41793 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41794 if (!SWIG_IsOK(res3)) {
41795 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41796 }
41797 if (!argp3) {
41798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41799 }
41800 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41801 {
41802 PyThreadState* __tstate = wxPyBeginAllowThreads();
41803 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41804 wxPyEndAllowThreads(__tstate);
41805 if (PyErr_Occurred()) SWIG_fail;
41806 }
41807 resultobj = SWIG_Py_Void();
41808 return resultobj;
41809fail:
41810 return NULL;
d14a1e28
RD
41811}
41812
41813
0085ce49
RD
41814SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41815 PyObject *resultobj = 0;
41816 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41817 wxDateTime result;
41818 void *argp1 = 0 ;
41819 int res1 = 0 ;
41820 PyObject *swig_obj[1] ;
41821
41822 if (!args) SWIG_fail;
41823 swig_obj[0] = args;
41824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41825 if (!SWIG_IsOK(res1)) {
41826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41827 }
41828 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41829 {
41830 PyThreadState* __tstate = wxPyBeginAllowThreads();
41831 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41832 wxPyEndAllowThreads(__tstate);
41833 if (PyErr_Occurred()) SWIG_fail;
41834 }
41835 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41836 return resultobj;
41837fail:
41838 return NULL;
d14a1e28
RD
41839}
41840
41841
0085ce49
RD
41842SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41843 PyObject *resultobj = 0;
41844 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41845 wxDateTime result;
41846 void *argp1 = 0 ;
41847 int res1 = 0 ;
41848 PyObject *swig_obj[1] ;
41849
41850 if (!args) SWIG_fail;
41851 swig_obj[0] = args;
41852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41853 if (!SWIG_IsOK(res1)) {
41854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41855 }
41856 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41857 {
41858 PyThreadState* __tstate = wxPyBeginAllowThreads();
41859 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41860 wxPyEndAllowThreads(__tstate);
41861 if (PyErr_Occurred()) SWIG_fail;
41862 }
41863 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41864 return resultobj;
41865fail:
41866 return NULL;
d14a1e28
RD
41867}
41868
41869
0085ce49
RD
41870SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41871 PyObject *obj;
41872 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41873 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41874 return SWIG_Py_Void();
d14a1e28
RD
41875}
41876
0085ce49
RD
41877SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41878 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
41879}
41880
704eda0c
RD
41881SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41882 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41883 return 1;
41884}
41885
41886
41887SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41888 PyObject *pyobj = 0;
41889
41890 {
41891#if wxUSE_UNICODE
41892 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41893#else
41894 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41895#endif
41896 }
41897 return pyobj;
41898}
41899
41900
41901SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41902 PyObject *resultobj = 0;
41903 wxWindow *arg1 = (wxWindow *) 0 ;
41904 int arg2 ;
41905 wxString *arg3 = 0 ;
41906 wxString *arg4 = 0 ;
41907 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41908 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41909 wxSize const &arg6_defvalue = wxDefaultSize ;
41910 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41911 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41912 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41913 wxString *arg8 = (wxString *) &arg8_defvalue ;
41914 wxHyperlinkCtrl *result = 0 ;
41915 void *argp1 = 0 ;
41916 int res1 = 0 ;
41917 int val2 ;
41918 int ecode2 = 0 ;
41919 bool temp3 = false ;
41920 bool temp4 = false ;
41921 wxPoint temp5 ;
41922 wxSize temp6 ;
41923 long val7 ;
41924 int ecode7 = 0 ;
41925 bool temp8 = false ;
41926 PyObject * obj0 = 0 ;
41927 PyObject * obj1 = 0 ;
41928 PyObject * obj2 = 0 ;
41929 PyObject * obj3 = 0 ;
41930 PyObject * obj4 = 0 ;
41931 PyObject * obj5 = 0 ;
41932 PyObject * obj6 = 0 ;
41933 PyObject * obj7 = 0 ;
41934 char * kwnames[] = {
41935 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41936 };
41937
41938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41940 if (!SWIG_IsOK(res1)) {
41941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41942 }
41943 arg1 = reinterpret_cast< wxWindow * >(argp1);
41944 ecode2 = SWIG_AsVal_int(obj1, &val2);
41945 if (!SWIG_IsOK(ecode2)) {
41946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41947 }
41948 arg2 = static_cast< int >(val2);
41949 {
41950 arg3 = wxString_in_helper(obj2);
41951 if (arg3 == NULL) SWIG_fail;
41952 temp3 = true;
41953 }
41954 {
41955 arg4 = wxString_in_helper(obj3);
41956 if (arg4 == NULL) SWIG_fail;
41957 temp4 = true;
41958 }
41959 if (obj4) {
41960 {
41961 arg5 = &temp5;
41962 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41963 }
41964 }
41965 if (obj5) {
41966 {
41967 arg6 = &temp6;
41968 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41969 }
41970 }
41971 if (obj6) {
41972 ecode7 = SWIG_AsVal_long(obj6, &val7);
41973 if (!SWIG_IsOK(ecode7)) {
41974 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41975 }
41976 arg7 = static_cast< long >(val7);
41977 }
41978 if (obj7) {
41979 {
41980 arg8 = wxString_in_helper(obj7);
41981 if (arg8 == NULL) SWIG_fail;
41982 temp8 = true;
41983 }
41984 }
41985 {
41986 if (!wxPyCheckForApp()) SWIG_fail;
41987 PyThreadState* __tstate = wxPyBeginAllowThreads();
41988 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41989 wxPyEndAllowThreads(__tstate);
41990 if (PyErr_Occurred()) SWIG_fail;
41991 }
41992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41993 {
41994 if (temp3)
41995 delete arg3;
41996 }
41997 {
41998 if (temp4)
41999 delete arg4;
42000 }
42001 {
42002 if (temp8)
42003 delete arg8;
42004 }
42005 return resultobj;
42006fail:
42007 {
42008 if (temp3)
42009 delete arg3;
42010 }
42011 {
42012 if (temp4)
42013 delete arg4;
42014 }
42015 {
42016 if (temp8)
42017 delete arg8;
42018 }
42019 return NULL;
42020}
42021
42022
42023SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42024 PyObject *resultobj = 0;
42025 wxHyperlinkCtrl *result = 0 ;
42026
42027 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
42028 {
42029 if (!wxPyCheckForApp()) SWIG_fail;
42030 PyThreadState* __tstate = wxPyBeginAllowThreads();
42031 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
42032 wxPyEndAllowThreads(__tstate);
42033 if (PyErr_Occurred()) SWIG_fail;
42034 }
42035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
42036 return resultobj;
42037fail:
42038 return NULL;
42039}
42040
42041
42042SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42043 PyObject *resultobj = 0;
42044 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42045 wxWindow *arg2 = (wxWindow *) 0 ;
42046 int arg3 ;
42047 wxString *arg4 = 0 ;
42048 wxString *arg5 = 0 ;
42049 wxPoint const &arg6_defvalue = wxDefaultPosition ;
42050 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
42051 wxSize const &arg7_defvalue = wxDefaultSize ;
42052 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
42053 long arg8 = (long) wxHL_DEFAULT_STYLE ;
42054 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
42055 wxString *arg9 = (wxString *) &arg9_defvalue ;
42056 bool result;
42057 void *argp1 = 0 ;
42058 int res1 = 0 ;
42059 void *argp2 = 0 ;
42060 int res2 = 0 ;
42061 int val3 ;
42062 int ecode3 = 0 ;
42063 bool temp4 = false ;
42064 bool temp5 = false ;
42065 wxPoint temp6 ;
42066 wxSize temp7 ;
42067 long val8 ;
42068 int ecode8 = 0 ;
42069 bool temp9 = false ;
42070 PyObject * obj0 = 0 ;
42071 PyObject * obj1 = 0 ;
42072 PyObject * obj2 = 0 ;
42073 PyObject * obj3 = 0 ;
42074 PyObject * obj4 = 0 ;
42075 PyObject * obj5 = 0 ;
42076 PyObject * obj6 = 0 ;
42077 PyObject * obj7 = 0 ;
42078 PyObject * obj8 = 0 ;
42079 char * kwnames[] = {
42080 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42081 };
42082
42083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42085 if (!SWIG_IsOK(res1)) {
42086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42087 }
42088 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42089 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42090 if (!SWIG_IsOK(res2)) {
42091 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42092 }
42093 arg2 = reinterpret_cast< wxWindow * >(argp2);
42094 ecode3 = SWIG_AsVal_int(obj2, &val3);
42095 if (!SWIG_IsOK(ecode3)) {
42096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42097 }
42098 arg3 = static_cast< int >(val3);
42099 {
42100 arg4 = wxString_in_helper(obj3);
42101 if (arg4 == NULL) SWIG_fail;
42102 temp4 = true;
42103 }
42104 {
42105 arg5 = wxString_in_helper(obj4);
42106 if (arg5 == NULL) SWIG_fail;
42107 temp5 = true;
42108 }
42109 if (obj5) {
42110 {
42111 arg6 = &temp6;
42112 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
42113 }
42114 }
42115 if (obj6) {
42116 {
42117 arg7 = &temp7;
42118 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
42119 }
42120 }
42121 if (obj7) {
42122 ecode8 = SWIG_AsVal_long(obj7, &val8);
42123 if (!SWIG_IsOK(ecode8)) {
42124 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
42125 }
42126 arg8 = static_cast< long >(val8);
42127 }
42128 if (obj8) {
42129 {
42130 arg9 = wxString_in_helper(obj8);
42131 if (arg9 == NULL) SWIG_fail;
42132 temp9 = true;
42133 }
42134 }
42135 {
42136 PyThreadState* __tstate = wxPyBeginAllowThreads();
42137 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
42138 wxPyEndAllowThreads(__tstate);
42139 if (PyErr_Occurred()) SWIG_fail;
42140 }
42141 {
42142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42143 }
42144 {
42145 if (temp4)
42146 delete arg4;
42147 }
42148 {
42149 if (temp5)
42150 delete arg5;
42151 }
42152 {
42153 if (temp9)
42154 delete arg9;
42155 }
42156 return resultobj;
42157fail:
42158 {
42159 if (temp4)
42160 delete arg4;
42161 }
42162 {
42163 if (temp5)
42164 delete arg5;
42165 }
42166 {
42167 if (temp9)
42168 delete arg9;
42169 }
42170 return NULL;
42171}
42172
42173
42174SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42175 PyObject *resultobj = 0;
42176 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42177 wxColour result;
42178 void *argp1 = 0 ;
42179 int res1 = 0 ;
42180 PyObject *swig_obj[1] ;
42181
42182 if (!args) SWIG_fail;
42183 swig_obj[0] = args;
42184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42185 if (!SWIG_IsOK(res1)) {
42186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42187 }
42188 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42189 {
42190 PyThreadState* __tstate = wxPyBeginAllowThreads();
42191 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42192 wxPyEndAllowThreads(__tstate);
42193 if (PyErr_Occurred()) SWIG_fail;
42194 }
42195 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42196 return resultobj;
42197fail:
42198 return NULL;
42199}
42200
42201
42202SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42203 PyObject *resultobj = 0;
42204 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42205 wxColour *arg2 = 0 ;
42206 void *argp1 = 0 ;
42207 int res1 = 0 ;
42208 wxColour temp2 ;
42209 PyObject * obj0 = 0 ;
42210 PyObject * obj1 = 0 ;
42211 char * kwnames[] = {
42212 (char *) "self",(char *) "colour", NULL
42213 };
42214
42215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42217 if (!SWIG_IsOK(res1)) {
42218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42219 }
42220 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42221 {
42222 arg2 = &temp2;
42223 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42224 }
42225 {
42226 PyThreadState* __tstate = wxPyBeginAllowThreads();
42227 (arg1)->SetHoverColour((wxColour const &)*arg2);
42228 wxPyEndAllowThreads(__tstate);
42229 if (PyErr_Occurred()) SWIG_fail;
42230 }
42231 resultobj = SWIG_Py_Void();
42232 return resultobj;
42233fail:
42234 return NULL;
42235}
42236
42237
42238SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42239 PyObject *resultobj = 0;
42240 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42241 wxColour result;
42242 void *argp1 = 0 ;
42243 int res1 = 0 ;
42244 PyObject *swig_obj[1] ;
42245
42246 if (!args) SWIG_fail;
42247 swig_obj[0] = args;
42248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42249 if (!SWIG_IsOK(res1)) {
42250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42251 }
42252 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42253 {
42254 PyThreadState* __tstate = wxPyBeginAllowThreads();
42255 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42256 wxPyEndAllowThreads(__tstate);
42257 if (PyErr_Occurred()) SWIG_fail;
42258 }
42259 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42260 return resultobj;
42261fail:
42262 return NULL;
42263}
42264
42265
42266SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42267 PyObject *resultobj = 0;
42268 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42269 wxColour *arg2 = 0 ;
42270 void *argp1 = 0 ;
42271 int res1 = 0 ;
42272 wxColour temp2 ;
42273 PyObject * obj0 = 0 ;
42274 PyObject * obj1 = 0 ;
42275 char * kwnames[] = {
42276 (char *) "self",(char *) "colour", NULL
42277 };
42278
42279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42281 if (!SWIG_IsOK(res1)) {
42282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42283 }
42284 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42285 {
42286 arg2 = &temp2;
42287 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42288 }
42289 {
42290 PyThreadState* __tstate = wxPyBeginAllowThreads();
42291 (arg1)->SetNormalColour((wxColour const &)*arg2);
42292 wxPyEndAllowThreads(__tstate);
42293 if (PyErr_Occurred()) SWIG_fail;
42294 }
42295 resultobj = SWIG_Py_Void();
42296 return resultobj;
42297fail:
42298 return NULL;
42299}
42300
42301
42302SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42303 PyObject *resultobj = 0;
42304 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42305 wxColour result;
42306 void *argp1 = 0 ;
42307 int res1 = 0 ;
42308 PyObject *swig_obj[1] ;
42309
42310 if (!args) SWIG_fail;
42311 swig_obj[0] = args;
42312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42313 if (!SWIG_IsOK(res1)) {
42314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42315 }
42316 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42317 {
42318 PyThreadState* __tstate = wxPyBeginAllowThreads();
42319 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42320 wxPyEndAllowThreads(__tstate);
42321 if (PyErr_Occurred()) SWIG_fail;
42322 }
42323 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42324 return resultobj;
42325fail:
42326 return NULL;
42327}
42328
42329
42330SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42331 PyObject *resultobj = 0;
42332 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42333 wxColour *arg2 = 0 ;
42334 void *argp1 = 0 ;
42335 int res1 = 0 ;
42336 wxColour temp2 ;
42337 PyObject * obj0 = 0 ;
42338 PyObject * obj1 = 0 ;
42339 char * kwnames[] = {
42340 (char *) "self",(char *) "colour", NULL
42341 };
42342
42343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42345 if (!SWIG_IsOK(res1)) {
42346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42347 }
42348 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42349 {
42350 arg2 = &temp2;
42351 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42352 }
42353 {
42354 PyThreadState* __tstate = wxPyBeginAllowThreads();
42355 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42356 wxPyEndAllowThreads(__tstate);
42357 if (PyErr_Occurred()) SWIG_fail;
42358 }
42359 resultobj = SWIG_Py_Void();
42360 return resultobj;
42361fail:
42362 return NULL;
42363}
42364
42365
42366SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42367 PyObject *resultobj = 0;
42368 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42369 wxString result;
42370 void *argp1 = 0 ;
42371 int res1 = 0 ;
42372 PyObject *swig_obj[1] ;
42373
42374 if (!args) SWIG_fail;
42375 swig_obj[0] = args;
42376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42377 if (!SWIG_IsOK(res1)) {
42378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42379 }
42380 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42381 {
42382 PyThreadState* __tstate = wxPyBeginAllowThreads();
42383 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42384 wxPyEndAllowThreads(__tstate);
42385 if (PyErr_Occurred()) SWIG_fail;
42386 }
42387 {
42388#if wxUSE_UNICODE
42389 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42390#else
42391 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42392#endif
42393 }
42394 return resultobj;
42395fail:
42396 return NULL;
42397}
42398
42399
42400SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42401 PyObject *resultobj = 0;
42402 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42403 wxString *arg2 = 0 ;
42404 void *argp1 = 0 ;
42405 int res1 = 0 ;
42406 bool temp2 = false ;
42407 PyObject * obj0 = 0 ;
42408 PyObject * obj1 = 0 ;
42409 char * kwnames[] = {
42410 (char *) "self",(char *) "url", NULL
42411 };
42412
42413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42415 if (!SWIG_IsOK(res1)) {
42416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42417 }
42418 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42419 {
42420 arg2 = wxString_in_helper(obj1);
42421 if (arg2 == NULL) SWIG_fail;
42422 temp2 = true;
42423 }
42424 {
42425 PyThreadState* __tstate = wxPyBeginAllowThreads();
42426 (arg1)->SetURL((wxString const &)*arg2);
42427 wxPyEndAllowThreads(__tstate);
42428 if (PyErr_Occurred()) SWIG_fail;
42429 }
42430 resultobj = SWIG_Py_Void();
42431 {
42432 if (temp2)
42433 delete arg2;
42434 }
42435 return resultobj;
42436fail:
42437 {
42438 if (temp2)
42439 delete arg2;
42440 }
42441 return NULL;
42442}
42443
42444
42445SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42446 PyObject *resultobj = 0;
42447 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42448 bool arg2 = (bool) true ;
42449 void *argp1 = 0 ;
42450 int res1 = 0 ;
42451 bool val2 ;
42452 int ecode2 = 0 ;
42453 PyObject * obj0 = 0 ;
42454 PyObject * obj1 = 0 ;
42455 char * kwnames[] = {
42456 (char *) "self",(char *) "visited", NULL
42457 };
42458
42459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42461 if (!SWIG_IsOK(res1)) {
42462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42463 }
42464 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42465 if (obj1) {
42466 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42467 if (!SWIG_IsOK(ecode2)) {
42468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42469 }
42470 arg2 = static_cast< bool >(val2);
42471 }
42472 {
42473 PyThreadState* __tstate = wxPyBeginAllowThreads();
42474 (arg1)->SetVisited(arg2);
42475 wxPyEndAllowThreads(__tstate);
42476 if (PyErr_Occurred()) SWIG_fail;
42477 }
42478 resultobj = SWIG_Py_Void();
42479 return resultobj;
42480fail:
42481 return NULL;
42482}
42483
42484
42485SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42486 PyObject *resultobj = 0;
42487 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42488 bool result;
42489 void *argp1 = 0 ;
42490 int res1 = 0 ;
42491 PyObject *swig_obj[1] ;
42492
42493 if (!args) SWIG_fail;
42494 swig_obj[0] = args;
42495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42496 if (!SWIG_IsOK(res1)) {
42497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42498 }
42499 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42500 {
42501 PyThreadState* __tstate = wxPyBeginAllowThreads();
42502 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42503 wxPyEndAllowThreads(__tstate);
42504 if (PyErr_Occurred()) SWIG_fail;
42505 }
42506 {
42507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42508 }
42509 return resultobj;
42510fail:
42511 return NULL;
42512}
42513
42514
42515SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42516 PyObject *obj;
42517 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42518 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42519 return SWIG_Py_Void();
42520}
42521
42522SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42523 return SWIG_Python_InitShadowInstance(args);
42524}
42525
42526SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42527 PyObject *resultobj = 0;
42528 wxObject *arg1 = (wxObject *) 0 ;
42529 int arg2 ;
42530 wxString *arg3 = 0 ;
42531 wxHyperlinkEvent *result = 0 ;
42532 void *argp1 = 0 ;
42533 int res1 = 0 ;
42534 int val2 ;
42535 int ecode2 = 0 ;
42536 bool temp3 = false ;
42537 PyObject * obj0 = 0 ;
42538 PyObject * obj1 = 0 ;
42539 PyObject * obj2 = 0 ;
42540 char * kwnames[] = {
42541 (char *) "generator",(char *) "id",(char *) "url", NULL
42542 };
42543
42544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42546 if (!SWIG_IsOK(res1)) {
42547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42548 }
42549 arg1 = reinterpret_cast< wxObject * >(argp1);
42550 ecode2 = SWIG_AsVal_int(obj1, &val2);
42551 if (!SWIG_IsOK(ecode2)) {
42552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42553 }
42554 arg2 = static_cast< int >(val2);
42555 {
42556 arg3 = wxString_in_helper(obj2);
42557 if (arg3 == NULL) SWIG_fail;
42558 temp3 = true;
42559 }
42560 {
42561 PyThreadState* __tstate = wxPyBeginAllowThreads();
42562 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42563 wxPyEndAllowThreads(__tstate);
42564 if (PyErr_Occurred()) SWIG_fail;
42565 }
42566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42567 {
42568 if (temp3)
42569 delete arg3;
42570 }
42571 return resultobj;
42572fail:
42573 {
42574 if (temp3)
42575 delete arg3;
42576 }
42577 return NULL;
42578}
42579
42580
42581SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42582 PyObject *resultobj = 0;
42583 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42584 wxString result;
42585 void *argp1 = 0 ;
42586 int res1 = 0 ;
42587 PyObject *swig_obj[1] ;
42588
42589 if (!args) SWIG_fail;
42590 swig_obj[0] = args;
42591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42592 if (!SWIG_IsOK(res1)) {
42593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42594 }
42595 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42596 {
42597 PyThreadState* __tstate = wxPyBeginAllowThreads();
42598 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42599 wxPyEndAllowThreads(__tstate);
42600 if (PyErr_Occurred()) SWIG_fail;
42601 }
42602 {
42603#if wxUSE_UNICODE
42604 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42605#else
42606 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42607#endif
42608 }
42609 return resultobj;
42610fail:
42611 return NULL;
42612}
42613
42614
42615SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42616 PyObject *resultobj = 0;
42617 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42618 wxString *arg2 = 0 ;
42619 void *argp1 = 0 ;
42620 int res1 = 0 ;
42621 bool temp2 = false ;
42622 PyObject * obj0 = 0 ;
42623 PyObject * obj1 = 0 ;
42624 char * kwnames[] = {
42625 (char *) "self",(char *) "url", NULL
42626 };
42627
42628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42630 if (!SWIG_IsOK(res1)) {
42631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42632 }
42633 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42634 {
42635 arg2 = wxString_in_helper(obj1);
42636 if (arg2 == NULL) SWIG_fail;
42637 temp2 = true;
42638 }
42639 {
42640 PyThreadState* __tstate = wxPyBeginAllowThreads();
42641 (arg1)->SetURL((wxString const &)*arg2);
42642 wxPyEndAllowThreads(__tstate);
42643 if (PyErr_Occurred()) SWIG_fail;
42644 }
42645 resultobj = SWIG_Py_Void();
42646 {
42647 if (temp2)
42648 delete arg2;
42649 }
42650 return resultobj;
42651fail:
42652 {
42653 if (temp2)
42654 delete arg2;
42655 }
42656 return NULL;
42657}
42658
42659
42660SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42661 PyObject *obj;
42662 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42663 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42664 return SWIG_Py_Void();
42665}
42666
42667SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42668 return SWIG_Python_InitShadowInstance(args);
42669}
42670
b850e7f3
RD
42671SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42672 PyObject *resultobj = 0;
42673 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42674 wxWindow *arg2 = (wxWindow *) 0 ;
42675 int arg3 ;
42676 wxString const &arg4_defvalue = wxEmptyString ;
42677 wxString *arg4 = (wxString *) &arg4_defvalue ;
42678 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42679 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42680 wxSize const &arg6_defvalue = wxDefaultSize ;
42681 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42682 long arg7 = (long) 0 ;
42683 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42684 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42685 wxString const &arg9_defvalue = wxButtonNameStr ;
42686 wxString *arg9 = (wxString *) &arg9_defvalue ;
42687 bool result;
42688 void *argp1 = 0 ;
42689 int res1 = 0 ;
42690 void *argp2 = 0 ;
42691 int res2 = 0 ;
42692 int val3 ;
42693 int ecode3 = 0 ;
42694 bool temp4 = false ;
42695 wxPoint temp5 ;
42696 wxSize temp6 ;
42697 long val7 ;
42698 int ecode7 = 0 ;
42699 void *argp8 = 0 ;
42700 int res8 = 0 ;
42701 bool temp9 = false ;
42702 PyObject * obj0 = 0 ;
42703 PyObject * obj1 = 0 ;
42704 PyObject * obj2 = 0 ;
42705 PyObject * obj3 = 0 ;
42706 PyObject * obj4 = 0 ;
42707 PyObject * obj5 = 0 ;
42708 PyObject * obj6 = 0 ;
42709 PyObject * obj7 = 0 ;
42710 PyObject * obj8 = 0 ;
42711 char * kwnames[] = {
42712 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42713 };
42714
42715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42717 if (!SWIG_IsOK(res1)) {
42718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42719 }
42720 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42721 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42722 if (!SWIG_IsOK(res2)) {
42723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42724 }
42725 arg2 = reinterpret_cast< wxWindow * >(argp2);
42726 ecode3 = SWIG_AsVal_int(obj2, &val3);
42727 if (!SWIG_IsOK(ecode3)) {
42728 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42729 }
42730 arg3 = static_cast< int >(val3);
42731 if (obj3) {
42732 {
42733 arg4 = wxString_in_helper(obj3);
42734 if (arg4 == NULL) SWIG_fail;
42735 temp4 = true;
42736 }
42737 }
42738 if (obj4) {
42739 {
42740 arg5 = &temp5;
42741 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42742 }
42743 }
42744 if (obj5) {
42745 {
42746 arg6 = &temp6;
42747 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42748 }
42749 }
42750 if (obj6) {
42751 ecode7 = SWIG_AsVal_long(obj6, &val7);
42752 if (!SWIG_IsOK(ecode7)) {
42753 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42754 }
42755 arg7 = static_cast< long >(val7);
42756 }
42757 if (obj7) {
42758 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42759 if (!SWIG_IsOK(res8)) {
42760 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42761 }
42762 if (!argp8) {
42763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42764 }
42765 arg8 = reinterpret_cast< wxValidator * >(argp8);
42766 }
42767 if (obj8) {
42768 {
42769 arg9 = wxString_in_helper(obj8);
42770 if (arg9 == NULL) SWIG_fail;
42771 temp9 = true;
42772 }
42773 }
42774 {
42775 PyThreadState* __tstate = wxPyBeginAllowThreads();
42776 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42777 wxPyEndAllowThreads(__tstate);
42778 if (PyErr_Occurred()) SWIG_fail;
42779 }
42780 {
42781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42782 }
42783 {
42784 if (temp4)
42785 delete arg4;
42786 }
42787 {
42788 if (temp9)
42789 delete arg9;
42790 }
42791 return resultobj;
42792fail:
42793 {
42794 if (temp4)
42795 delete arg4;
42796 }
42797 {
42798 if (temp9)
42799 delete arg9;
42800 }
42801 return NULL;
42802}
42803
42804
42805SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42806 PyObject *resultobj = 0;
42807 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42808 int arg2 ;
42809 void *argp1 = 0 ;
42810 int res1 = 0 ;
42811 int val2 ;
42812 int ecode2 = 0 ;
42813 PyObject * obj0 = 0 ;
42814 PyObject * obj1 = 0 ;
42815 char * kwnames[] = {
42816 (char *) "self",(char *) "newmargin", NULL
42817 };
42818
42819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42821 if (!SWIG_IsOK(res1)) {
42822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42823 }
42824 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42825 ecode2 = SWIG_AsVal_int(obj1, &val2);
42826 if (!SWIG_IsOK(ecode2)) {
42827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42828 }
42829 arg2 = static_cast< int >(val2);
42830 {
42831 PyThreadState* __tstate = wxPyBeginAllowThreads();
42832 (arg1)->SetInternalMargin(arg2);
42833 wxPyEndAllowThreads(__tstate);
42834 if (PyErr_Occurred()) SWIG_fail;
42835 }
42836 resultobj = SWIG_Py_Void();
42837 return resultobj;
42838fail:
42839 return NULL;
42840}
42841
42842
42843SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42844 PyObject *resultobj = 0;
42845 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42846 int result;
42847 void *argp1 = 0 ;
42848 int res1 = 0 ;
42849 PyObject *swig_obj[1] ;
42850
42851 if (!args) SWIG_fail;
42852 swig_obj[0] = args;
42853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42854 if (!SWIG_IsOK(res1)) {
42855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42856 }
42857 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42858 {
42859 PyThreadState* __tstate = wxPyBeginAllowThreads();
42860 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42861 wxPyEndAllowThreads(__tstate);
42862 if (PyErr_Occurred()) SWIG_fail;
42863 }
42864 resultobj = SWIG_From_int(static_cast< int >(result));
42865 return resultobj;
42866fail:
42867 return NULL;
42868}
42869
42870
42871SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42872 PyObject *resultobj = 0;
42873 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42874 int arg2 ;
42875 void *argp1 = 0 ;
42876 int res1 = 0 ;
42877 int val2 ;
42878 int ecode2 = 0 ;
42879 PyObject * obj0 = 0 ;
42880 PyObject * obj1 = 0 ;
42881 char * kwnames[] = {
42882 (char *) "self",(char *) "prop", NULL
42883 };
42884
42885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42887 if (!SWIG_IsOK(res1)) {
42888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42889 }
42890 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42891 ecode2 = SWIG_AsVal_int(obj1, &val2);
42892 if (!SWIG_IsOK(ecode2)) {
42893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42894 }
42895 arg2 = static_cast< int >(val2);
42896 {
42897 PyThreadState* __tstate = wxPyBeginAllowThreads();
42898 (arg1)->SetTextCtrlProportion(arg2);
42899 wxPyEndAllowThreads(__tstate);
42900 if (PyErr_Occurred()) SWIG_fail;
42901 }
42902 resultobj = SWIG_Py_Void();
42903 return resultobj;
42904fail:
42905 return NULL;
42906}
42907
42908
42909SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42910 PyObject *resultobj = 0;
42911 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42912 int result;
42913 void *argp1 = 0 ;
42914 int res1 = 0 ;
42915 PyObject *swig_obj[1] ;
42916
42917 if (!args) SWIG_fail;
42918 swig_obj[0] = args;
42919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42920 if (!SWIG_IsOK(res1)) {
42921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42922 }
42923 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42924 {
42925 PyThreadState* __tstate = wxPyBeginAllowThreads();
42926 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42927 wxPyEndAllowThreads(__tstate);
42928 if (PyErr_Occurred()) SWIG_fail;
42929 }
42930 resultobj = SWIG_From_int(static_cast< int >(result));
42931 return resultobj;
42932fail:
42933 return NULL;
42934}
42935
42936
10044bf1
RD
42937SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42938 PyObject *resultobj = 0;
42939 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42940 int arg2 ;
42941 void *argp1 = 0 ;
42942 int res1 = 0 ;
42943 int val2 ;
42944 int ecode2 = 0 ;
42945 PyObject * obj0 = 0 ;
42946 PyObject * obj1 = 0 ;
42947 char * kwnames[] = {
42948 (char *) "self",(char *) "prop", NULL
42949 };
42950
42951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42953 if (!SWIG_IsOK(res1)) {
42954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42955 }
42956 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42957 ecode2 = SWIG_AsVal_int(obj1, &val2);
42958 if (!SWIG_IsOK(ecode2)) {
42959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42960 }
42961 arg2 = static_cast< int >(val2);
42962 {
42963 PyThreadState* __tstate = wxPyBeginAllowThreads();
42964 (arg1)->SetPickerCtrlProportion(arg2);
42965 wxPyEndAllowThreads(__tstate);
42966 if (PyErr_Occurred()) SWIG_fail;
42967 }
42968 resultobj = SWIG_Py_Void();
42969 return resultobj;
42970fail:
42971 return NULL;
42972}
42973
42974
42975SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42976 PyObject *resultobj = 0;
42977 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42978 int result;
42979 void *argp1 = 0 ;
42980 int res1 = 0 ;
42981 PyObject *swig_obj[1] ;
42982
42983 if (!args) SWIG_fail;
42984 swig_obj[0] = args;
42985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42986 if (!SWIG_IsOK(res1)) {
42987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42988 }
42989 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42990 {
42991 PyThreadState* __tstate = wxPyBeginAllowThreads();
42992 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42993 wxPyEndAllowThreads(__tstate);
42994 if (PyErr_Occurred()) SWIG_fail;
42995 }
42996 resultobj = SWIG_From_int(static_cast< int >(result));
42997 return resultobj;
42998fail:
42999 return NULL;
43000}
43001
43002
b02396e8
RD
43003SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43004 PyObject *resultobj = 0;
43005 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43006 bool result;
43007 void *argp1 = 0 ;
43008 int res1 = 0 ;
43009 PyObject *swig_obj[1] ;
43010
43011 if (!args) SWIG_fail;
43012 swig_obj[0] = args;
43013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43014 if (!SWIG_IsOK(res1)) {
43015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43016 }
43017 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43018 {
43019 PyThreadState* __tstate = wxPyBeginAllowThreads();
43020 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
43021 wxPyEndAllowThreads(__tstate);
43022 if (PyErr_Occurred()) SWIG_fail;
43023 }
43024 {
43025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43026 }
43027 return resultobj;
43028fail:
43029 return NULL;
43030}
43031
43032
43033SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43034 PyObject *resultobj = 0;
43035 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43036 bool arg2 = (bool) true ;
43037 void *argp1 = 0 ;
43038 int res1 = 0 ;
43039 bool val2 ;
43040 int ecode2 = 0 ;
43041 PyObject * obj0 = 0 ;
43042 PyObject * obj1 = 0 ;
43043 char * kwnames[] = {
43044 (char *) "self",(char *) "grow", NULL
43045 };
43046
43047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43049 if (!SWIG_IsOK(res1)) {
43050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43051 }
43052 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43053 if (obj1) {
43054 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43055 if (!SWIG_IsOK(ecode2)) {
43056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43057 }
43058 arg2 = static_cast< bool >(val2);
43059 }
43060 {
43061 PyThreadState* __tstate = wxPyBeginAllowThreads();
43062 (arg1)->SetTextCtrlGrowable(arg2);
43063 wxPyEndAllowThreads(__tstate);
43064 if (PyErr_Occurred()) SWIG_fail;
43065 }
43066 resultobj = SWIG_Py_Void();
43067 return resultobj;
43068fail:
43069 return NULL;
43070}
43071
43072
43073SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43074 PyObject *resultobj = 0;
43075 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43076 bool result;
43077 void *argp1 = 0 ;
43078 int res1 = 0 ;
43079 PyObject *swig_obj[1] ;
43080
43081 if (!args) SWIG_fail;
43082 swig_obj[0] = args;
43083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43084 if (!SWIG_IsOK(res1)) {
43085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43086 }
43087 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43088 {
43089 PyThreadState* __tstate = wxPyBeginAllowThreads();
43090 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
43091 wxPyEndAllowThreads(__tstate);
43092 if (PyErr_Occurred()) SWIG_fail;
43093 }
43094 {
43095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43096 }
43097 return resultobj;
43098fail:
43099 return NULL;
43100}
43101
43102
43103SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43104 PyObject *resultobj = 0;
43105 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43106 bool arg2 = (bool) true ;
43107 void *argp1 = 0 ;
43108 int res1 = 0 ;
43109 bool val2 ;
43110 int ecode2 = 0 ;
43111 PyObject * obj0 = 0 ;
43112 PyObject * obj1 = 0 ;
43113 char * kwnames[] = {
43114 (char *) "self",(char *) "grow", NULL
43115 };
43116
43117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43119 if (!SWIG_IsOK(res1)) {
43120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43121 }
43122 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43123 if (obj1) {
43124 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43125 if (!SWIG_IsOK(ecode2)) {
43126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43127 }
43128 arg2 = static_cast< bool >(val2);
43129 }
43130 {
43131 PyThreadState* __tstate = wxPyBeginAllowThreads();
43132 (arg1)->SetPickerCtrlGrowable(arg2);
43133 wxPyEndAllowThreads(__tstate);
43134 if (PyErr_Occurred()) SWIG_fail;
43135 }
43136 resultobj = SWIG_Py_Void();
43137 return resultobj;
43138fail:
43139 return NULL;
43140}
43141
43142
b850e7f3
RD
43143SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43144 PyObject *resultobj = 0;
43145 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43146 bool result;
43147 void *argp1 = 0 ;
43148 int res1 = 0 ;
43149 PyObject *swig_obj[1] ;
43150
43151 if (!args) SWIG_fail;
43152 swig_obj[0] = args;
43153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43154 if (!SWIG_IsOK(res1)) {
43155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43156 }
43157 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43158 {
43159 PyThreadState* __tstate = wxPyBeginAllowThreads();
43160 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
43161 wxPyEndAllowThreads(__tstate);
43162 if (PyErr_Occurred()) SWIG_fail;
43163 }
43164 {
43165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43166 }
43167 return resultobj;
43168fail:
43169 return NULL;
43170}
43171
43172
43173SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43174 PyObject *resultobj = 0;
43175 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43176 wxTextCtrl *result = 0 ;
43177 void *argp1 = 0 ;
43178 int res1 = 0 ;
43179 PyObject *swig_obj[1] ;
43180
43181 if (!args) SWIG_fail;
43182 swig_obj[0] = args;
43183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43184 if (!SWIG_IsOK(res1)) {
43185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43186 }
43187 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43188 {
43189 PyThreadState* __tstate = wxPyBeginAllowThreads();
43190 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43191 wxPyEndAllowThreads(__tstate);
43192 if (PyErr_Occurred()) SWIG_fail;
43193 }
43194 {
43195 resultobj = wxPyMake_wxObject(result, 0);
43196 }
43197 return resultobj;
43198fail:
43199 return NULL;
43200}
43201
43202
43203SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43204 PyObject *resultobj = 0;
43205 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43206 wxControl *result = 0 ;
43207 void *argp1 = 0 ;
43208 int res1 = 0 ;
43209 PyObject *swig_obj[1] ;
43210
43211 if (!args) SWIG_fail;
43212 swig_obj[0] = args;
43213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43214 if (!SWIG_IsOK(res1)) {
43215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43216 }
43217 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43218 {
43219 PyThreadState* __tstate = wxPyBeginAllowThreads();
43220 result = (wxControl *)(arg1)->GetPickerCtrl();
43221 wxPyEndAllowThreads(__tstate);
43222 if (PyErr_Occurred()) SWIG_fail;
43223 }
43224 {
43225 resultobj = wxPyMake_wxObject(result, 0);
43226 }
43227 return resultobj;
43228fail:
43229 return NULL;
43230}
43231
43232
43233SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43234 PyObject *obj;
43235 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43236 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43237 return SWIG_Py_Void();
43238}
43239
43240SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43241 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43242 return 1;
43243}
43244
43245
43246SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43247 PyObject *pyobj = 0;
43248
43249 {
43250#if wxUSE_UNICODE
43251 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43252#else
43253 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43254#endif
43255 }
43256 return pyobj;
43257}
43258
43259
43260SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43261 PyObject *resultobj = 0;
43262 wxWindow *arg1 = (wxWindow *) 0 ;
43263 int arg2 = (int) -1 ;
43264 wxColour const &arg3_defvalue = *wxBLACK ;
43265 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43266 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43267 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43268 wxSize const &arg5_defvalue = wxDefaultSize ;
43269 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43270 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43271 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43272 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43273 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43274 wxString *arg8 = (wxString *) &arg8_defvalue ;
43275 wxColourPickerCtrl *result = 0 ;
43276 void *argp1 = 0 ;
43277 int res1 = 0 ;
43278 int val2 ;
43279 int ecode2 = 0 ;
43280 wxColour temp3 ;
43281 wxPoint temp4 ;
43282 wxSize temp5 ;
43283 long val6 ;
43284 int ecode6 = 0 ;
43285 void *argp7 = 0 ;
43286 int res7 = 0 ;
43287 bool temp8 = false ;
43288 PyObject * obj0 = 0 ;
43289 PyObject * obj1 = 0 ;
43290 PyObject * obj2 = 0 ;
43291 PyObject * obj3 = 0 ;
43292 PyObject * obj4 = 0 ;
43293 PyObject * obj5 = 0 ;
43294 PyObject * obj6 = 0 ;
43295 PyObject * obj7 = 0 ;
43296 char * kwnames[] = {
43297 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43298 };
43299
43300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43302 if (!SWIG_IsOK(res1)) {
43303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43304 }
43305 arg1 = reinterpret_cast< wxWindow * >(argp1);
43306 if (obj1) {
43307 ecode2 = SWIG_AsVal_int(obj1, &val2);
43308 if (!SWIG_IsOK(ecode2)) {
43309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43310 }
43311 arg2 = static_cast< int >(val2);
43312 }
43313 if (obj2) {
43314 {
43315 arg3 = &temp3;
43316 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43317 }
43318 }
43319 if (obj3) {
43320 {
43321 arg4 = &temp4;
43322 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43323 }
43324 }
43325 if (obj4) {
43326 {
43327 arg5 = &temp5;
43328 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43329 }
43330 }
43331 if (obj5) {
43332 ecode6 = SWIG_AsVal_long(obj5, &val6);
43333 if (!SWIG_IsOK(ecode6)) {
43334 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43335 }
43336 arg6 = static_cast< long >(val6);
43337 }
43338 if (obj6) {
43339 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43340 if (!SWIG_IsOK(res7)) {
43341 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43342 }
43343 if (!argp7) {
43344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43345 }
43346 arg7 = reinterpret_cast< wxValidator * >(argp7);
43347 }
43348 if (obj7) {
43349 {
43350 arg8 = wxString_in_helper(obj7);
43351 if (arg8 == NULL) SWIG_fail;
43352 temp8 = true;
43353 }
43354 }
43355 {
43356 if (!wxPyCheckForApp()) SWIG_fail;
43357 PyThreadState* __tstate = wxPyBeginAllowThreads();
43358 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43359 wxPyEndAllowThreads(__tstate);
43360 if (PyErr_Occurred()) SWIG_fail;
43361 }
43362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43363 {
43364 if (temp8)
43365 delete arg8;
43366 }
43367 return resultobj;
43368fail:
43369 {
43370 if (temp8)
43371 delete arg8;
43372 }
43373 return NULL;
43374}
43375
43376
43377SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43378 PyObject *resultobj = 0;
43379 wxColourPickerCtrl *result = 0 ;
43380
43381 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43382 {
43383 if (!wxPyCheckForApp()) SWIG_fail;
43384 PyThreadState* __tstate = wxPyBeginAllowThreads();
43385 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43386 wxPyEndAllowThreads(__tstate);
43387 if (PyErr_Occurred()) SWIG_fail;
43388 }
43389 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43390 return resultobj;
43391fail:
43392 return NULL;
43393}
43394
43395
43396SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43397 PyObject *resultobj = 0;
43398 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43399 wxWindow *arg2 = (wxWindow *) 0 ;
43400 int arg3 ;
43401 wxColour const &arg4_defvalue = *wxBLACK ;
43402 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43403 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43404 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43405 wxSize const &arg6_defvalue = wxDefaultSize ;
43406 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43407 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43408 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43409 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43410 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43411 wxString *arg9 = (wxString *) &arg9_defvalue ;
43412 bool result;
43413 void *argp1 = 0 ;
43414 int res1 = 0 ;
43415 void *argp2 = 0 ;
43416 int res2 = 0 ;
43417 int val3 ;
43418 int ecode3 = 0 ;
43419 wxColour temp4 ;
43420 wxPoint temp5 ;
43421 wxSize temp6 ;
43422 long val7 ;
43423 int ecode7 = 0 ;
43424 void *argp8 = 0 ;
43425 int res8 = 0 ;
43426 bool temp9 = false ;
43427 PyObject * obj0 = 0 ;
43428 PyObject * obj1 = 0 ;
43429 PyObject * obj2 = 0 ;
43430 PyObject * obj3 = 0 ;
43431 PyObject * obj4 = 0 ;
43432 PyObject * obj5 = 0 ;
43433 PyObject * obj6 = 0 ;
43434 PyObject * obj7 = 0 ;
43435 PyObject * obj8 = 0 ;
43436 char * kwnames[] = {
43437 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43438 };
43439
43440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43442 if (!SWIG_IsOK(res1)) {
43443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43444 }
43445 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43446 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43447 if (!SWIG_IsOK(res2)) {
43448 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43449 }
43450 arg2 = reinterpret_cast< wxWindow * >(argp2);
43451 ecode3 = SWIG_AsVal_int(obj2, &val3);
43452 if (!SWIG_IsOK(ecode3)) {
43453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43454 }
43455 arg3 = static_cast< int >(val3);
43456 if (obj3) {
43457 {
43458 arg4 = &temp4;
43459 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43460 }
43461 }
43462 if (obj4) {
43463 {
43464 arg5 = &temp5;
43465 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43466 }
43467 }
43468 if (obj5) {
43469 {
43470 arg6 = &temp6;
43471 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43472 }
43473 }
43474 if (obj6) {
43475 ecode7 = SWIG_AsVal_long(obj6, &val7);
43476 if (!SWIG_IsOK(ecode7)) {
43477 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43478 }
43479 arg7 = static_cast< long >(val7);
43480 }
43481 if (obj7) {
43482 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43483 if (!SWIG_IsOK(res8)) {
43484 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43485 }
43486 if (!argp8) {
43487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43488 }
43489 arg8 = reinterpret_cast< wxValidator * >(argp8);
43490 }
43491 if (obj8) {
43492 {
43493 arg9 = wxString_in_helper(obj8);
43494 if (arg9 == NULL) SWIG_fail;
43495 temp9 = true;
43496 }
43497 }
43498 {
43499 PyThreadState* __tstate = wxPyBeginAllowThreads();
43500 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43501 wxPyEndAllowThreads(__tstate);
43502 if (PyErr_Occurred()) SWIG_fail;
43503 }
43504 {
43505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43506 }
43507 {
43508 if (temp9)
43509 delete arg9;
43510 }
43511 return resultobj;
43512fail:
43513 {
43514 if (temp9)
43515 delete arg9;
43516 }
43517 return NULL;
43518}
43519
43520
43521SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43522 PyObject *resultobj = 0;
43523 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43524 wxColour result;
43525 void *argp1 = 0 ;
43526 int res1 = 0 ;
43527 PyObject *swig_obj[1] ;
43528
43529 if (!args) SWIG_fail;
43530 swig_obj[0] = args;
43531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43532 if (!SWIG_IsOK(res1)) {
43533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43534 }
43535 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43536 {
43537 PyThreadState* __tstate = wxPyBeginAllowThreads();
43538 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43539 wxPyEndAllowThreads(__tstate);
43540 if (PyErr_Occurred()) SWIG_fail;
43541 }
43542 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43543 return resultobj;
43544fail:
43545 return NULL;
43546}
43547
43548
43549SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43550 PyObject *resultobj = 0;
43551 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43552 wxColour *arg2 = 0 ;
43553 void *argp1 = 0 ;
43554 int res1 = 0 ;
43555 wxColour temp2 ;
43556 PyObject * obj0 = 0 ;
43557 PyObject * obj1 = 0 ;
43558 char * kwnames[] = {
43559 (char *) "self",(char *) "col", NULL
43560 };
43561
43562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43564 if (!SWIG_IsOK(res1)) {
43565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43566 }
43567 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43568 {
43569 arg2 = &temp2;
43570 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43571 }
43572 {
43573 PyThreadState* __tstate = wxPyBeginAllowThreads();
43574 (arg1)->SetColour((wxColour const &)*arg2);
43575 wxPyEndAllowThreads(__tstate);
43576 if (PyErr_Occurred()) SWIG_fail;
43577 }
43578 resultobj = SWIG_Py_Void();
43579 return resultobj;
43580fail:
43581 return NULL;
43582}
43583
43584
43585SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43586 PyObject *obj;
43587 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43588 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43589 return SWIG_Py_Void();
43590}
43591
43592SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43593 return SWIG_Python_InitShadowInstance(args);
43594}
43595
43596SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43597 PyObject *resultobj = 0;
43598 wxObject *arg1 = (wxObject *) 0 ;
43599 int arg2 ;
43600 wxColour *arg3 = 0 ;
43601 wxColourPickerEvent *result = 0 ;
43602 void *argp1 = 0 ;
43603 int res1 = 0 ;
43604 int val2 ;
43605 int ecode2 = 0 ;
43606 wxColour temp3 ;
43607 PyObject * obj0 = 0 ;
43608 PyObject * obj1 = 0 ;
43609 PyObject * obj2 = 0 ;
43610 char * kwnames[] = {
43611 (char *) "generator",(char *) "id",(char *) "col", NULL
43612 };
43613
43614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43616 if (!SWIG_IsOK(res1)) {
43617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43618 }
43619 arg1 = reinterpret_cast< wxObject * >(argp1);
43620 ecode2 = SWIG_AsVal_int(obj1, &val2);
43621 if (!SWIG_IsOK(ecode2)) {
43622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43623 }
43624 arg2 = static_cast< int >(val2);
43625 {
43626 arg3 = &temp3;
43627 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43628 }
43629 {
43630 PyThreadState* __tstate = wxPyBeginAllowThreads();
43631 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43632 wxPyEndAllowThreads(__tstate);
43633 if (PyErr_Occurred()) SWIG_fail;
43634 }
43635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43636 return resultobj;
43637fail:
43638 return NULL;
43639}
43640
43641
43642SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43643 PyObject *resultobj = 0;
43644 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43645 wxColour result;
43646 void *argp1 = 0 ;
43647 int res1 = 0 ;
43648 PyObject *swig_obj[1] ;
43649
43650 if (!args) SWIG_fail;
43651 swig_obj[0] = args;
43652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43653 if (!SWIG_IsOK(res1)) {
43654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43655 }
43656 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43657 {
43658 PyThreadState* __tstate = wxPyBeginAllowThreads();
43659 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43660 wxPyEndAllowThreads(__tstate);
43661 if (PyErr_Occurred()) SWIG_fail;
43662 }
43663 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43664 return resultobj;
43665fail:
43666 return NULL;
43667}
43668
43669
43670SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43671 PyObject *resultobj = 0;
43672 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43673 wxColour *arg2 = 0 ;
43674 void *argp1 = 0 ;
43675 int res1 = 0 ;
43676 wxColour temp2 ;
43677 PyObject * obj0 = 0 ;
43678 PyObject * obj1 = 0 ;
43679 char * kwnames[] = {
43680 (char *) "self",(char *) "c", NULL
43681 };
43682
43683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43685 if (!SWIG_IsOK(res1)) {
43686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43687 }
43688 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43689 {
43690 arg2 = &temp2;
43691 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43692 }
43693 {
43694 PyThreadState* __tstate = wxPyBeginAllowThreads();
43695 (arg1)->SetColour((wxColour const &)*arg2);
43696 wxPyEndAllowThreads(__tstate);
43697 if (PyErr_Occurred()) SWIG_fail;
43698 }
43699 resultobj = SWIG_Py_Void();
43700 return resultobj;
43701fail:
43702 return NULL;
43703}
43704
43705
43706SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43707 PyObject *obj;
43708 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43709 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43710 return SWIG_Py_Void();
43711}
43712
43713SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43714 return SWIG_Python_InitShadowInstance(args);
43715}
43716
43717SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43718 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43719 return 1;
43720}
43721
43722
43723SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43724 PyObject *pyobj = 0;
43725
43726 {
43727#if wxUSE_UNICODE
43728 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43729#else
43730 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43731#endif
43732 }
43733 return pyobj;
43734}
43735
43736
43737SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43738 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43739 return 1;
43740}
43741
43742
43743SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43744 PyObject *pyobj = 0;
43745
43746 {
43747#if wxUSE_UNICODE
43748 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43749#else
43750 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43751#endif
43752 }
43753 return pyobj;
43754}
43755
43756
43757SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43758 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43759 return 1;
43760}
43761
43762
43763SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43764 PyObject *pyobj = 0;
43765
43766 {
43767#if wxUSE_UNICODE
43768 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43769#else
43770 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43771#endif
43772 }
43773 return pyobj;
43774}
43775
43776
43777SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43778 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43779 return 1;
43780}
43781
43782
43783SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43784 PyObject *pyobj = 0;
43785
43786 {
43787#if wxUSE_UNICODE
43788 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43789#else
43790 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43791#endif
43792 }
43793 return pyobj;
43794}
43795
43796
43797SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43798 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43799 return 1;
43800}
43801
43802
43803SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43804 PyObject *pyobj = 0;
43805
43806 {
43807#if wxUSE_UNICODE
43808 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43809#else
43810 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43811#endif
43812 }
43813 return pyobj;
43814}
43815
43816
43817SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43818 PyObject *resultobj = 0;
43819 wxWindow *arg1 = (wxWindow *) 0 ;
43820 int arg2 = (int) -1 ;
43821 wxString const &arg3_defvalue = wxPyEmptyString ;
43822 wxString *arg3 = (wxString *) &arg3_defvalue ;
43823 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43824 wxString *arg4 = (wxString *) &arg4_defvalue ;
43825 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43826 wxString *arg5 = (wxString *) &arg5_defvalue ;
43827 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43828 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43829 wxSize const &arg7_defvalue = wxDefaultSize ;
43830 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43831 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43832 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43833 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43834 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43835 wxString *arg10 = (wxString *) &arg10_defvalue ;
43836 wxFilePickerCtrl *result = 0 ;
43837 void *argp1 = 0 ;
43838 int res1 = 0 ;
43839 int val2 ;
43840 int ecode2 = 0 ;
43841 bool temp3 = false ;
43842 bool temp4 = false ;
43843 bool temp5 = false ;
43844 wxPoint temp6 ;
43845 wxSize temp7 ;
43846 long val8 ;
43847 int ecode8 = 0 ;
43848 void *argp9 = 0 ;
43849 int res9 = 0 ;
43850 bool temp10 = false ;
43851 PyObject * obj0 = 0 ;
43852 PyObject * obj1 = 0 ;
43853 PyObject * obj2 = 0 ;
43854 PyObject * obj3 = 0 ;
43855 PyObject * obj4 = 0 ;
43856 PyObject * obj5 = 0 ;
43857 PyObject * obj6 = 0 ;
43858 PyObject * obj7 = 0 ;
43859 PyObject * obj8 = 0 ;
43860 PyObject * obj9 = 0 ;
43861 char * kwnames[] = {
43862 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43863 };
43864
43865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43867 if (!SWIG_IsOK(res1)) {
43868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43869 }
43870 arg1 = reinterpret_cast< wxWindow * >(argp1);
43871 if (obj1) {
43872 ecode2 = SWIG_AsVal_int(obj1, &val2);
43873 if (!SWIG_IsOK(ecode2)) {
43874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43875 }
43876 arg2 = static_cast< int >(val2);
43877 }
43878 if (obj2) {
43879 {
43880 arg3 = wxString_in_helper(obj2);
43881 if (arg3 == NULL) SWIG_fail;
43882 temp3 = true;
43883 }
43884 }
43885 if (obj3) {
43886 {
43887 arg4 = wxString_in_helper(obj3);
43888 if (arg4 == NULL) SWIG_fail;
43889 temp4 = true;
43890 }
43891 }
43892 if (obj4) {
43893 {
43894 arg5 = wxString_in_helper(obj4);
43895 if (arg5 == NULL) SWIG_fail;
43896 temp5 = true;
43897 }
43898 }
43899 if (obj5) {
43900 {
43901 arg6 = &temp6;
43902 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43903 }
43904 }
43905 if (obj6) {
43906 {
43907 arg7 = &temp7;
43908 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43909 }
43910 }
43911 if (obj7) {
43912 ecode8 = SWIG_AsVal_long(obj7, &val8);
43913 if (!SWIG_IsOK(ecode8)) {
43914 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43915 }
43916 arg8 = static_cast< long >(val8);
43917 }
43918 if (obj8) {
43919 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43920 if (!SWIG_IsOK(res9)) {
43921 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43922 }
43923 if (!argp9) {
43924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43925 }
43926 arg9 = reinterpret_cast< wxValidator * >(argp9);
43927 }
43928 if (obj9) {
43929 {
43930 arg10 = wxString_in_helper(obj9);
43931 if (arg10 == NULL) SWIG_fail;
43932 temp10 = true;
43933 }
43934 }
43935 {
43936 if (!wxPyCheckForApp()) SWIG_fail;
43937 PyThreadState* __tstate = wxPyBeginAllowThreads();
43938 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);
43939 wxPyEndAllowThreads(__tstate);
43940 if (PyErr_Occurred()) SWIG_fail;
43941 }
43942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43943 {
43944 if (temp3)
43945 delete arg3;
43946 }
43947 {
43948 if (temp4)
43949 delete arg4;
43950 }
43951 {
43952 if (temp5)
43953 delete arg5;
43954 }
43955 {
43956 if (temp10)
43957 delete arg10;
43958 }
43959 return resultobj;
43960fail:
43961 {
43962 if (temp3)
43963 delete arg3;
43964 }
43965 {
43966 if (temp4)
43967 delete arg4;
43968 }
43969 {
43970 if (temp5)
43971 delete arg5;
43972 }
43973 {
43974 if (temp10)
43975 delete arg10;
43976 }
43977 return NULL;
43978}
43979
43980
43981SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43982 PyObject *resultobj = 0;
43983 wxFilePickerCtrl *result = 0 ;
43984
43985 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43986 {
43987 if (!wxPyCheckForApp()) SWIG_fail;
43988 PyThreadState* __tstate = wxPyBeginAllowThreads();
43989 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43990 wxPyEndAllowThreads(__tstate);
43991 if (PyErr_Occurred()) SWIG_fail;
43992 }
43993 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43994 return resultobj;
43995fail:
43996 return NULL;
43997}
43998
43999
44000SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44001 PyObject *resultobj = 0;
44002 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44003 wxWindow *arg2 = (wxWindow *) 0 ;
44004 int arg3 = (int) -1 ;
44005 wxString const &arg4_defvalue = wxPyEmptyString ;
44006 wxString *arg4 = (wxString *) &arg4_defvalue ;
44007 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
44008 wxString *arg5 = (wxString *) &arg5_defvalue ;
44009 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44010 wxString *arg6 = (wxString *) &arg6_defvalue ;
44011 wxPoint const &arg7_defvalue = wxDefaultPosition ;
44012 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
44013 wxSize const &arg8_defvalue = wxDefaultSize ;
44014 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
44015 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
44016 wxValidator const &arg10_defvalue = wxDefaultValidator ;
44017 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
44018 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
44019 wxString *arg11 = (wxString *) &arg11_defvalue ;
44020 bool result;
44021 void *argp1 = 0 ;
44022 int res1 = 0 ;
44023 void *argp2 = 0 ;
44024 int res2 = 0 ;
44025 int val3 ;
44026 int ecode3 = 0 ;
44027 bool temp4 = false ;
44028 bool temp5 = false ;
44029 bool temp6 = false ;
44030 wxPoint temp7 ;
44031 wxSize temp8 ;
44032 long val9 ;
44033 int ecode9 = 0 ;
44034 void *argp10 = 0 ;
44035 int res10 = 0 ;
44036 bool temp11 = false ;
44037 PyObject * obj0 = 0 ;
44038 PyObject * obj1 = 0 ;
44039 PyObject * obj2 = 0 ;
44040 PyObject * obj3 = 0 ;
44041 PyObject * obj4 = 0 ;
44042 PyObject * obj5 = 0 ;
44043 PyObject * obj6 = 0 ;
44044 PyObject * obj7 = 0 ;
44045 PyObject * obj8 = 0 ;
44046 PyObject * obj9 = 0 ;
44047 PyObject * obj10 = 0 ;
44048 char * kwnames[] = {
44049 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44050 };
44051
44052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
44053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44054 if (!SWIG_IsOK(res1)) {
44055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44056 }
44057 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44058 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44059 if (!SWIG_IsOK(res2)) {
44060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44061 }
44062 arg2 = reinterpret_cast< wxWindow * >(argp2);
44063 if (obj2) {
44064 ecode3 = SWIG_AsVal_int(obj2, &val3);
44065 if (!SWIG_IsOK(ecode3)) {
44066 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44067 }
44068 arg3 = static_cast< int >(val3);
44069 }
44070 if (obj3) {
44071 {
44072 arg4 = wxString_in_helper(obj3);
44073 if (arg4 == NULL) SWIG_fail;
44074 temp4 = true;
44075 }
44076 }
44077 if (obj4) {
44078 {
44079 arg5 = wxString_in_helper(obj4);
44080 if (arg5 == NULL) SWIG_fail;
44081 temp5 = true;
44082 }
44083 }
44084 if (obj5) {
44085 {
44086 arg6 = wxString_in_helper(obj5);
44087 if (arg6 == NULL) SWIG_fail;
44088 temp6 = true;
44089 }
44090 }
44091 if (obj6) {
44092 {
44093 arg7 = &temp7;
44094 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
44095 }
44096 }
44097 if (obj7) {
44098 {
44099 arg8 = &temp8;
44100 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
44101 }
44102 }
44103 if (obj8) {
44104 ecode9 = SWIG_AsVal_long(obj8, &val9);
44105 if (!SWIG_IsOK(ecode9)) {
44106 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
44107 }
44108 arg9 = static_cast< long >(val9);
44109 }
44110 if (obj9) {
44111 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
44112 if (!SWIG_IsOK(res10)) {
44113 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44114 }
44115 if (!argp10) {
44116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44117 }
44118 arg10 = reinterpret_cast< wxValidator * >(argp10);
44119 }
44120 if (obj10) {
44121 {
44122 arg11 = wxString_in_helper(obj10);
44123 if (arg11 == NULL) SWIG_fail;
44124 temp11 = true;
44125 }
44126 }
44127 {
44128 PyThreadState* __tstate = wxPyBeginAllowThreads();
44129 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);
44130 wxPyEndAllowThreads(__tstate);
44131 if (PyErr_Occurred()) SWIG_fail;
44132 }
44133 {
44134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44135 }
44136 {
44137 if (temp4)
44138 delete arg4;
44139 }
44140 {
44141 if (temp5)
44142 delete arg5;
44143 }
44144 {
44145 if (temp6)
44146 delete arg6;
44147 }
44148 {
44149 if (temp11)
44150 delete arg11;
44151 }
44152 return resultobj;
44153fail:
44154 {
44155 if (temp4)
44156 delete arg4;
44157 }
44158 {
44159 if (temp5)
44160 delete arg5;
44161 }
44162 {
44163 if (temp6)
44164 delete arg6;
44165 }
44166 {
44167 if (temp11)
44168 delete arg11;
44169 }
44170 return NULL;
44171}
44172
44173
44174SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44175 PyObject *resultobj = 0;
44176 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44177 wxString result;
44178 void *argp1 = 0 ;
44179 int res1 = 0 ;
44180 PyObject *swig_obj[1] ;
44181
44182 if (!args) SWIG_fail;
44183 swig_obj[0] = args;
44184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44185 if (!SWIG_IsOK(res1)) {
44186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44187 }
44188 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44189 {
44190 PyThreadState* __tstate = wxPyBeginAllowThreads();
44191 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44192 wxPyEndAllowThreads(__tstate);
44193 if (PyErr_Occurred()) SWIG_fail;
44194 }
44195 {
44196#if wxUSE_UNICODE
44197 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44198#else
44199 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44200#endif
44201 }
44202 return resultobj;
44203fail:
44204 return NULL;
44205}
44206
44207
44208SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44209 PyObject *resultobj = 0;
44210 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44211 wxString *arg2 = 0 ;
44212 void *argp1 = 0 ;
44213 int res1 = 0 ;
44214 bool temp2 = false ;
44215 PyObject * obj0 = 0 ;
44216 PyObject * obj1 = 0 ;
44217 char * kwnames[] = {
44218 (char *) "self",(char *) "str", NULL
44219 };
44220
44221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44223 if (!SWIG_IsOK(res1)) {
44224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44225 }
44226 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44227 {
44228 arg2 = wxString_in_helper(obj1);
44229 if (arg2 == NULL) SWIG_fail;
44230 temp2 = true;
44231 }
44232 {
44233 PyThreadState* __tstate = wxPyBeginAllowThreads();
44234 (arg1)->SetPath((wxString const &)*arg2);
44235 wxPyEndAllowThreads(__tstate);
44236 if (PyErr_Occurred()) SWIG_fail;
44237 }
44238 resultobj = SWIG_Py_Void();
44239 {
44240 if (temp2)
44241 delete arg2;
44242 }
44243 return resultobj;
44244fail:
44245 {
44246 if (temp2)
44247 delete arg2;
44248 }
44249 return NULL;
44250}
44251
44252
b02396e8
RD
44253SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44254 PyObject *resultobj = 0;
44255 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44256 wxString *arg2 = 0 ;
44257 bool result;
44258 void *argp1 = 0 ;
44259 int res1 = 0 ;
44260 bool temp2 = false ;
44261 PyObject * obj0 = 0 ;
44262 PyObject * obj1 = 0 ;
44263 char * kwnames[] = {
44264 (char *) "self",(char *) "path", NULL
44265 };
44266
44267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44269 if (!SWIG_IsOK(res1)) {
44270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44271 }
44272 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44273 {
44274 arg2 = wxString_in_helper(obj1);
44275 if (arg2 == NULL) SWIG_fail;
44276 temp2 = true;
44277 }
44278 {
44279 PyThreadState* __tstate = wxPyBeginAllowThreads();
44280 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44281 wxPyEndAllowThreads(__tstate);
44282 if (PyErr_Occurred()) SWIG_fail;
44283 }
44284 {
44285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44286 }
44287 {
44288 if (temp2)
44289 delete arg2;
44290 }
44291 return resultobj;
44292fail:
44293 {
44294 if (temp2)
44295 delete arg2;
44296 }
44297 return NULL;
44298}
44299
44300
44301SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44302 PyObject *resultobj = 0;
44303 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44304 wxString result;
44305 void *argp1 = 0 ;
44306 int res1 = 0 ;
44307 PyObject *swig_obj[1] ;
44308
44309 if (!args) SWIG_fail;
44310 swig_obj[0] = args;
44311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44312 if (!SWIG_IsOK(res1)) {
44313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44314 }
44315 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44316 {
44317 PyThreadState* __tstate = wxPyBeginAllowThreads();
44318 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44319 wxPyEndAllowThreads(__tstate);
44320 if (PyErr_Occurred()) SWIG_fail;
44321 }
44322 {
44323#if wxUSE_UNICODE
44324 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44325#else
44326 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44327#endif
44328 }
44329 return resultobj;
44330fail:
44331 return NULL;
44332}
44333
44334
b850e7f3
RD
44335SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44336 PyObject *obj;
44337 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44338 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44339 return SWIG_Py_Void();
44340}
44341
44342SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44343 return SWIG_Python_InitShadowInstance(args);
44344}
44345
44346SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44347 PyObject *resultobj = 0;
44348 wxWindow *arg1 = (wxWindow *) 0 ;
44349 int arg2 = (int) -1 ;
44350 wxString const &arg3_defvalue = wxPyEmptyString ;
44351 wxString *arg3 = (wxString *) &arg3_defvalue ;
44352 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44353 wxString *arg4 = (wxString *) &arg4_defvalue ;
44354 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44355 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44356 wxSize const &arg6_defvalue = wxDefaultSize ;
44357 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44358 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44359 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44360 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44361 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44362 wxString *arg9 = (wxString *) &arg9_defvalue ;
44363 wxDirPickerCtrl *result = 0 ;
44364 void *argp1 = 0 ;
44365 int res1 = 0 ;
44366 int val2 ;
44367 int ecode2 = 0 ;
44368 bool temp3 = false ;
44369 bool temp4 = false ;
44370 wxPoint temp5 ;
44371 wxSize temp6 ;
44372 long val7 ;
44373 int ecode7 = 0 ;
44374 void *argp8 = 0 ;
44375 int res8 = 0 ;
44376 bool temp9 = false ;
44377 PyObject * obj0 = 0 ;
44378 PyObject * obj1 = 0 ;
44379 PyObject * obj2 = 0 ;
44380 PyObject * obj3 = 0 ;
44381 PyObject * obj4 = 0 ;
44382 PyObject * obj5 = 0 ;
44383 PyObject * obj6 = 0 ;
44384 PyObject * obj7 = 0 ;
44385 PyObject * obj8 = 0 ;
44386 char * kwnames[] = {
44387 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44388 };
44389
44390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44392 if (!SWIG_IsOK(res1)) {
44393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44394 }
44395 arg1 = reinterpret_cast< wxWindow * >(argp1);
44396 if (obj1) {
44397 ecode2 = SWIG_AsVal_int(obj1, &val2);
44398 if (!SWIG_IsOK(ecode2)) {
44399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44400 }
44401 arg2 = static_cast< int >(val2);
44402 }
44403 if (obj2) {
44404 {
44405 arg3 = wxString_in_helper(obj2);
44406 if (arg3 == NULL) SWIG_fail;
44407 temp3 = true;
44408 }
44409 }
44410 if (obj3) {
44411 {
44412 arg4 = wxString_in_helper(obj3);
44413 if (arg4 == NULL) SWIG_fail;
44414 temp4 = true;
44415 }
44416 }
44417 if (obj4) {
44418 {
44419 arg5 = &temp5;
44420 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44421 }
44422 }
44423 if (obj5) {
44424 {
44425 arg6 = &temp6;
44426 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44427 }
44428 }
44429 if (obj6) {
44430 ecode7 = SWIG_AsVal_long(obj6, &val7);
44431 if (!SWIG_IsOK(ecode7)) {
44432 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44433 }
44434 arg7 = static_cast< long >(val7);
44435 }
44436 if (obj7) {
44437 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44438 if (!SWIG_IsOK(res8)) {
44439 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44440 }
44441 if (!argp8) {
44442 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44443 }
44444 arg8 = reinterpret_cast< wxValidator * >(argp8);
44445 }
44446 if (obj8) {
44447 {
44448 arg9 = wxString_in_helper(obj8);
44449 if (arg9 == NULL) SWIG_fail;
44450 temp9 = true;
44451 }
44452 }
44453 {
44454 if (!wxPyCheckForApp()) SWIG_fail;
44455 PyThreadState* __tstate = wxPyBeginAllowThreads();
44456 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);
44457 wxPyEndAllowThreads(__tstate);
44458 if (PyErr_Occurred()) SWIG_fail;
44459 }
44460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44461 {
44462 if (temp3)
44463 delete arg3;
44464 }
44465 {
44466 if (temp4)
44467 delete arg4;
44468 }
44469 {
44470 if (temp9)
44471 delete arg9;
44472 }
44473 return resultobj;
44474fail:
44475 {
44476 if (temp3)
44477 delete arg3;
44478 }
44479 {
44480 if (temp4)
44481 delete arg4;
44482 }
44483 {
44484 if (temp9)
44485 delete arg9;
44486 }
44487 return NULL;
44488}
44489
44490
44491SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44492 PyObject *resultobj = 0;
44493 wxDirPickerCtrl *result = 0 ;
44494
44495 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44496 {
44497 if (!wxPyCheckForApp()) SWIG_fail;
44498 PyThreadState* __tstate = wxPyBeginAllowThreads();
44499 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44500 wxPyEndAllowThreads(__tstate);
44501 if (PyErr_Occurred()) SWIG_fail;
44502 }
44503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44504 return resultobj;
44505fail:
44506 return NULL;
44507}
44508
44509
44510SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44511 PyObject *resultobj = 0;
44512 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44513 wxWindow *arg2 = (wxWindow *) 0 ;
44514 int arg3 = (int) -1 ;
44515 wxString const &arg4_defvalue = wxPyEmptyString ;
44516 wxString *arg4 = (wxString *) &arg4_defvalue ;
44517 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44518 wxString *arg5 = (wxString *) &arg5_defvalue ;
44519 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44520 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44521 wxSize const &arg7_defvalue = wxDefaultSize ;
44522 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44523 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44524 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44525 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44526 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44527 wxString *arg10 = (wxString *) &arg10_defvalue ;
44528 bool result;
44529 void *argp1 = 0 ;
44530 int res1 = 0 ;
44531 void *argp2 = 0 ;
44532 int res2 = 0 ;
44533 int val3 ;
44534 int ecode3 = 0 ;
44535 bool temp4 = false ;
44536 bool temp5 = false ;
44537 wxPoint temp6 ;
44538 wxSize temp7 ;
44539 long val8 ;
44540 int ecode8 = 0 ;
44541 void *argp9 = 0 ;
44542 int res9 = 0 ;
44543 bool temp10 = false ;
44544 PyObject * obj0 = 0 ;
44545 PyObject * obj1 = 0 ;
44546 PyObject * obj2 = 0 ;
44547 PyObject * obj3 = 0 ;
44548 PyObject * obj4 = 0 ;
44549 PyObject * obj5 = 0 ;
44550 PyObject * obj6 = 0 ;
44551 PyObject * obj7 = 0 ;
44552 PyObject * obj8 = 0 ;
44553 PyObject * obj9 = 0 ;
44554 char * kwnames[] = {
44555 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44556 };
44557
44558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44560 if (!SWIG_IsOK(res1)) {
44561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44562 }
44563 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44564 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44565 if (!SWIG_IsOK(res2)) {
44566 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44567 }
44568 arg2 = reinterpret_cast< wxWindow * >(argp2);
44569 if (obj2) {
44570 ecode3 = SWIG_AsVal_int(obj2, &val3);
44571 if (!SWIG_IsOK(ecode3)) {
44572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44573 }
44574 arg3 = static_cast< int >(val3);
44575 }
44576 if (obj3) {
44577 {
44578 arg4 = wxString_in_helper(obj3);
44579 if (arg4 == NULL) SWIG_fail;
44580 temp4 = true;
44581 }
44582 }
44583 if (obj4) {
44584 {
44585 arg5 = wxString_in_helper(obj4);
44586 if (arg5 == NULL) SWIG_fail;
44587 temp5 = true;
44588 }
44589 }
44590 if (obj5) {
44591 {
44592 arg6 = &temp6;
44593 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44594 }
44595 }
44596 if (obj6) {
44597 {
44598 arg7 = &temp7;
44599 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44600 }
44601 }
44602 if (obj7) {
44603 ecode8 = SWIG_AsVal_long(obj7, &val8);
44604 if (!SWIG_IsOK(ecode8)) {
44605 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44606 }
44607 arg8 = static_cast< long >(val8);
44608 }
44609 if (obj8) {
44610 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44611 if (!SWIG_IsOK(res9)) {
44612 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44613 }
44614 if (!argp9) {
44615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44616 }
44617 arg9 = reinterpret_cast< wxValidator * >(argp9);
44618 }
44619 if (obj9) {
44620 {
44621 arg10 = wxString_in_helper(obj9);
44622 if (arg10 == NULL) SWIG_fail;
44623 temp10 = true;
44624 }
44625 }
44626 {
44627 PyThreadState* __tstate = wxPyBeginAllowThreads();
44628 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);
44629 wxPyEndAllowThreads(__tstate);
44630 if (PyErr_Occurred()) SWIG_fail;
44631 }
44632 {
44633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44634 }
44635 {
44636 if (temp4)
44637 delete arg4;
44638 }
44639 {
44640 if (temp5)
44641 delete arg5;
44642 }
44643 {
44644 if (temp10)
44645 delete arg10;
44646 }
44647 return resultobj;
44648fail:
44649 {
44650 if (temp4)
44651 delete arg4;
44652 }
44653 {
44654 if (temp5)
44655 delete arg5;
44656 }
44657 {
44658 if (temp10)
44659 delete arg10;
44660 }
44661 return NULL;
44662}
44663
44664
44665SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44666 PyObject *resultobj = 0;
44667 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44668 wxString result;
44669 void *argp1 = 0 ;
44670 int res1 = 0 ;
44671 PyObject *swig_obj[1] ;
44672
44673 if (!args) SWIG_fail;
44674 swig_obj[0] = args;
44675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44676 if (!SWIG_IsOK(res1)) {
44677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44678 }
44679 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44680 {
44681 PyThreadState* __tstate = wxPyBeginAllowThreads();
44682 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44683 wxPyEndAllowThreads(__tstate);
44684 if (PyErr_Occurred()) SWIG_fail;
44685 }
44686 {
44687#if wxUSE_UNICODE
44688 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44689#else
44690 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44691#endif
44692 }
44693 return resultobj;
44694fail:
44695 return NULL;
44696}
44697
44698
44699SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44700 PyObject *resultobj = 0;
44701 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44702 wxString *arg2 = 0 ;
44703 void *argp1 = 0 ;
44704 int res1 = 0 ;
44705 bool temp2 = false ;
44706 PyObject * obj0 = 0 ;
44707 PyObject * obj1 = 0 ;
44708 char * kwnames[] = {
44709 (char *) "self",(char *) "str", NULL
44710 };
44711
44712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44714 if (!SWIG_IsOK(res1)) {
44715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44716 }
44717 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44718 {
44719 arg2 = wxString_in_helper(obj1);
44720 if (arg2 == NULL) SWIG_fail;
44721 temp2 = true;
44722 }
44723 {
44724 PyThreadState* __tstate = wxPyBeginAllowThreads();
44725 (arg1)->SetPath((wxString const &)*arg2);
44726 wxPyEndAllowThreads(__tstate);
44727 if (PyErr_Occurred()) SWIG_fail;
44728 }
44729 resultobj = SWIG_Py_Void();
44730 {
44731 if (temp2)
44732 delete arg2;
44733 }
44734 return resultobj;
44735fail:
44736 {
44737 if (temp2)
44738 delete arg2;
44739 }
44740 return NULL;
44741}
44742
44743
b02396e8
RD
44744SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44745 PyObject *resultobj = 0;
44746 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44747 wxString *arg2 = 0 ;
44748 bool result;
44749 void *argp1 = 0 ;
44750 int res1 = 0 ;
44751 bool temp2 = false ;
44752 PyObject * obj0 = 0 ;
44753 PyObject * obj1 = 0 ;
44754 char * kwnames[] = {
44755 (char *) "self",(char *) "path", NULL
44756 };
44757
44758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44760 if (!SWIG_IsOK(res1)) {
44761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44762 }
44763 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44764 {
44765 arg2 = wxString_in_helper(obj1);
44766 if (arg2 == NULL) SWIG_fail;
44767 temp2 = true;
44768 }
44769 {
44770 PyThreadState* __tstate = wxPyBeginAllowThreads();
44771 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44772 wxPyEndAllowThreads(__tstate);
44773 if (PyErr_Occurred()) SWIG_fail;
44774 }
44775 {
44776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44777 }
44778 {
44779 if (temp2)
44780 delete arg2;
44781 }
44782 return resultobj;
44783fail:
44784 {
44785 if (temp2)
44786 delete arg2;
44787 }
44788 return NULL;
44789}
44790
44791
44792SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44793 PyObject *resultobj = 0;
44794 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44795 wxString result;
44796 void *argp1 = 0 ;
44797 int res1 = 0 ;
44798 PyObject *swig_obj[1] ;
44799
44800 if (!args) SWIG_fail;
44801 swig_obj[0] = args;
44802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44803 if (!SWIG_IsOK(res1)) {
44804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44805 }
44806 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44807 {
44808 PyThreadState* __tstate = wxPyBeginAllowThreads();
44809 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44810 wxPyEndAllowThreads(__tstate);
44811 if (PyErr_Occurred()) SWIG_fail;
44812 }
44813 {
44814#if wxUSE_UNICODE
44815 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44816#else
44817 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44818#endif
44819 }
44820 return resultobj;
44821fail:
44822 return NULL;
44823}
44824
44825
b850e7f3
RD
44826SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44827 PyObject *obj;
44828 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44829 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44830 return SWIG_Py_Void();
44831}
44832
44833SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44834 return SWIG_Python_InitShadowInstance(args);
44835}
44836
44837SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44838 PyObject *resultobj = 0;
44839 wxEventType arg1 ;
44840 wxObject *arg2 = (wxObject *) 0 ;
44841 int arg3 ;
44842 wxString *arg4 = 0 ;
44843 wxFileDirPickerEvent *result = 0 ;
44844 int val1 ;
44845 int ecode1 = 0 ;
44846 void *argp2 = 0 ;
44847 int res2 = 0 ;
44848 int val3 ;
44849 int ecode3 = 0 ;
44850 bool temp4 = false ;
44851 PyObject * obj0 = 0 ;
44852 PyObject * obj1 = 0 ;
44853 PyObject * obj2 = 0 ;
44854 PyObject * obj3 = 0 ;
44855 char * kwnames[] = {
44856 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44857 };
44858
44859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44860 ecode1 = SWIG_AsVal_int(obj0, &val1);
44861 if (!SWIG_IsOK(ecode1)) {
44862 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44863 }
44864 arg1 = static_cast< wxEventType >(val1);
44865 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44866 if (!SWIG_IsOK(res2)) {
44867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44868 }
44869 arg2 = reinterpret_cast< wxObject * >(argp2);
44870 ecode3 = SWIG_AsVal_int(obj2, &val3);
44871 if (!SWIG_IsOK(ecode3)) {
44872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44873 }
44874 arg3 = static_cast< int >(val3);
44875 {
44876 arg4 = wxString_in_helper(obj3);
44877 if (arg4 == NULL) SWIG_fail;
44878 temp4 = true;
44879 }
44880 {
44881 PyThreadState* __tstate = wxPyBeginAllowThreads();
44882 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44883 wxPyEndAllowThreads(__tstate);
44884 if (PyErr_Occurred()) SWIG_fail;
44885 }
44886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44887 {
44888 if (temp4)
44889 delete arg4;
44890 }
44891 return resultobj;
44892fail:
44893 {
44894 if (temp4)
44895 delete arg4;
44896 }
44897 return NULL;
44898}
44899
44900
44901SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44902 PyObject *resultobj = 0;
44903 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44904 wxString result;
44905 void *argp1 = 0 ;
44906 int res1 = 0 ;
44907 PyObject *swig_obj[1] ;
44908
44909 if (!args) SWIG_fail;
44910 swig_obj[0] = args;
44911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44912 if (!SWIG_IsOK(res1)) {
44913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44914 }
44915 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44916 {
44917 PyThreadState* __tstate = wxPyBeginAllowThreads();
44918 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44919 wxPyEndAllowThreads(__tstate);
44920 if (PyErr_Occurred()) SWIG_fail;
44921 }
44922 {
44923#if wxUSE_UNICODE
44924 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44925#else
44926 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44927#endif
44928 }
44929 return resultobj;
44930fail:
44931 return NULL;
44932}
44933
44934
44935SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44936 PyObject *resultobj = 0;
44937 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44938 wxString *arg2 = 0 ;
44939 void *argp1 = 0 ;
44940 int res1 = 0 ;
44941 bool temp2 = false ;
44942 PyObject * obj0 = 0 ;
44943 PyObject * obj1 = 0 ;
44944 char * kwnames[] = {
44945 (char *) "self",(char *) "p", NULL
44946 };
44947
44948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44950 if (!SWIG_IsOK(res1)) {
44951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44952 }
44953 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44954 {
44955 arg2 = wxString_in_helper(obj1);
44956 if (arg2 == NULL) SWIG_fail;
44957 temp2 = true;
44958 }
44959 {
44960 PyThreadState* __tstate = wxPyBeginAllowThreads();
44961 (arg1)->SetPath((wxString const &)*arg2);
44962 wxPyEndAllowThreads(__tstate);
44963 if (PyErr_Occurred()) SWIG_fail;
44964 }
44965 resultobj = SWIG_Py_Void();
44966 {
44967 if (temp2)
44968 delete arg2;
44969 }
44970 return resultobj;
44971fail:
44972 {
44973 if (temp2)
44974 delete arg2;
44975 }
44976 return NULL;
44977}
44978
44979
44980SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44981 PyObject *obj;
44982 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44983 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44984 return SWIG_Py_Void();
44985}
44986
44987SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44988 return SWIG_Python_InitShadowInstance(args);
44989}
44990
44991SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44992 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44993 return 1;
44994}
44995
44996
44997SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44998 PyObject *pyobj = 0;
44999
45000 {
45001#if wxUSE_UNICODE
45002 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45003#else
45004 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45005#endif
45006 }
45007 return pyobj;
45008}
45009
45010
45011SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45012 PyObject *resultobj = 0;
45013 wxWindow *arg1 = (wxWindow *) 0 ;
45014 int arg2 = (int) -1 ;
f89238b9 45015 wxFont const &arg3_defvalue = wxNullFont ;
b850e7f3
RD
45016 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
45017 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45018 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45019 wxSize const &arg5_defvalue = wxDefaultSize ;
45020 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45021 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
45022 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45023 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45024 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
45025 wxString *arg8 = (wxString *) &arg8_defvalue ;
45026 wxFontPickerCtrl *result = 0 ;
45027 void *argp1 = 0 ;
45028 int res1 = 0 ;
45029 int val2 ;
45030 int ecode2 = 0 ;
45031 void *argp3 = 0 ;
45032 int res3 = 0 ;
45033 wxPoint temp4 ;
45034 wxSize temp5 ;
45035 long val6 ;
45036 int ecode6 = 0 ;
45037 void *argp7 = 0 ;
45038 int res7 = 0 ;
45039 bool temp8 = false ;
45040 PyObject * obj0 = 0 ;
45041 PyObject * obj1 = 0 ;
45042 PyObject * obj2 = 0 ;
45043 PyObject * obj3 = 0 ;
45044 PyObject * obj4 = 0 ;
45045 PyObject * obj5 = 0 ;
45046 PyObject * obj6 = 0 ;
45047 PyObject * obj7 = 0 ;
45048 char * kwnames[] = {
45049 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45050 };
45051
45052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45054 if (!SWIG_IsOK(res1)) {
45055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
45056 }
45057 arg1 = reinterpret_cast< wxWindow * >(argp1);
45058 if (obj1) {
45059 ecode2 = SWIG_AsVal_int(obj1, &val2);
45060 if (!SWIG_IsOK(ecode2)) {
45061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
45062 }
45063 arg2 = static_cast< int >(val2);
45064 }
45065 if (obj2) {
45066 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45067 if (!SWIG_IsOK(res3)) {
45068 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45069 }
45070 if (!argp3) {
45071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45072 }
45073 arg3 = reinterpret_cast< wxFont * >(argp3);
45074 }
45075 if (obj3) {
45076 {
45077 arg4 = &temp4;
45078 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45079 }
45080 }
45081 if (obj4) {
45082 {
45083 arg5 = &temp5;
45084 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45085 }
45086 }
45087 if (obj5) {
45088 ecode6 = SWIG_AsVal_long(obj5, &val6);
45089 if (!SWIG_IsOK(ecode6)) {
45090 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
45091 }
45092 arg6 = static_cast< long >(val6);
45093 }
45094 if (obj6) {
45095 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45096 if (!SWIG_IsOK(res7)) {
45097 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45098 }
45099 if (!argp7) {
45100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45101 }
45102 arg7 = reinterpret_cast< wxValidator * >(argp7);
45103 }
45104 if (obj7) {
45105 {
45106 arg8 = wxString_in_helper(obj7);
45107 if (arg8 == NULL) SWIG_fail;
45108 temp8 = true;
45109 }
45110 }
45111 {
45112 if (!wxPyCheckForApp()) SWIG_fail;
45113 PyThreadState* __tstate = wxPyBeginAllowThreads();
45114 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45115 wxPyEndAllowThreads(__tstate);
45116 if (PyErr_Occurred()) SWIG_fail;
45117 }
45118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
45119 {
45120 if (temp8)
45121 delete arg8;
45122 }
45123 return resultobj;
45124fail:
45125 {
45126 if (temp8)
45127 delete arg8;
45128 }
45129 return NULL;
45130}
45131
45132
45133SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45134 PyObject *resultobj = 0;
45135 wxFontPickerCtrl *result = 0 ;
45136
45137 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
45138 {
45139 if (!wxPyCheckForApp()) SWIG_fail;
45140 PyThreadState* __tstate = wxPyBeginAllowThreads();
45141 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
45142 wxPyEndAllowThreads(__tstate);
45143 if (PyErr_Occurred()) SWIG_fail;
45144 }
45145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
45146 return resultobj;
45147fail:
45148 return NULL;
45149}
45150
45151
45152SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45153 PyObject *resultobj = 0;
45154 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45155 wxWindow *arg2 = (wxWindow *) 0 ;
45156 int arg3 = (int) -1 ;
f89238b9 45157 wxFont const &arg4_defvalue = wxNullFont ;
b850e7f3
RD
45158 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
45159 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45160 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45161 wxSize const &arg6_defvalue = wxDefaultSize ;
45162 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45163 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45164 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45165 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45166 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45167 wxString *arg9 = (wxString *) &arg9_defvalue ;
45168 bool result;
45169 void *argp1 = 0 ;
45170 int res1 = 0 ;
45171 void *argp2 = 0 ;
45172 int res2 = 0 ;
45173 int val3 ;
45174 int ecode3 = 0 ;
45175 void *argp4 = 0 ;
45176 int res4 = 0 ;
45177 wxPoint temp5 ;
45178 wxSize temp6 ;
45179 long val7 ;
45180 int ecode7 = 0 ;
45181 void *argp8 = 0 ;
45182 int res8 = 0 ;
45183 bool temp9 = false ;
45184 PyObject * obj0 = 0 ;
45185 PyObject * obj1 = 0 ;
45186 PyObject * obj2 = 0 ;
45187 PyObject * obj3 = 0 ;
45188 PyObject * obj4 = 0 ;
45189 PyObject * obj5 = 0 ;
45190 PyObject * obj6 = 0 ;
45191 PyObject * obj7 = 0 ;
45192 PyObject * obj8 = 0 ;
45193 char * kwnames[] = {
45194 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45195 };
45196
45197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45199 if (!SWIG_IsOK(res1)) {
45200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45201 }
45202 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45203 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45204 if (!SWIG_IsOK(res2)) {
45205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45206 }
45207 arg2 = reinterpret_cast< wxWindow * >(argp2);
45208 if (obj2) {
45209 ecode3 = SWIG_AsVal_int(obj2, &val3);
45210 if (!SWIG_IsOK(ecode3)) {
45211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45212 }
45213 arg3 = static_cast< int >(val3);
45214 }
45215 if (obj3) {
45216 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45217 if (!SWIG_IsOK(res4)) {
45218 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45219 }
45220 if (!argp4) {
45221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45222 }
45223 arg4 = reinterpret_cast< wxFont * >(argp4);
45224 }
45225 if (obj4) {
45226 {
45227 arg5 = &temp5;
45228 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45229 }
45230 }
45231 if (obj5) {
45232 {
45233 arg6 = &temp6;
45234 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45235 }
45236 }
45237 if (obj6) {
45238 ecode7 = SWIG_AsVal_long(obj6, &val7);
45239 if (!SWIG_IsOK(ecode7)) {
45240 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45241 }
45242 arg7 = static_cast< long >(val7);
45243 }
45244 if (obj7) {
45245 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45246 if (!SWIG_IsOK(res8)) {
45247 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45248 }
45249 if (!argp8) {
45250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45251 }
45252 arg8 = reinterpret_cast< wxValidator * >(argp8);
45253 }
45254 if (obj8) {
45255 {
45256 arg9 = wxString_in_helper(obj8);
45257 if (arg9 == NULL) SWIG_fail;
45258 temp9 = true;
45259 }
45260 }
45261 {
45262 PyThreadState* __tstate = wxPyBeginAllowThreads();
45263 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45264 wxPyEndAllowThreads(__tstate);
45265 if (PyErr_Occurred()) SWIG_fail;
45266 }
45267 {
45268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45269 }
45270 {
45271 if (temp9)
45272 delete arg9;
45273 }
45274 return resultobj;
45275fail:
45276 {
45277 if (temp9)
45278 delete arg9;
45279 }
45280 return NULL;
45281}
45282
45283
45284SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45285 PyObject *resultobj = 0;
45286 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45287 wxFont result;
45288 void *argp1 = 0 ;
45289 int res1 = 0 ;
45290 PyObject *swig_obj[1] ;
45291
45292 if (!args) SWIG_fail;
45293 swig_obj[0] = args;
45294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45295 if (!SWIG_IsOK(res1)) {
45296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45297 }
45298 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45299 {
45300 PyThreadState* __tstate = wxPyBeginAllowThreads();
45301 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45302 wxPyEndAllowThreads(__tstate);
45303 if (PyErr_Occurred()) SWIG_fail;
45304 }
45305 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45306 return resultobj;
45307fail:
45308 return NULL;
45309}
45310
45311
45312SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45313 PyObject *resultobj = 0;
45314 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45315 wxFont *arg2 = 0 ;
45316 void *argp1 = 0 ;
45317 int res1 = 0 ;
45318 void *argp2 = 0 ;
45319 int res2 = 0 ;
45320 PyObject * obj0 = 0 ;
45321 PyObject * obj1 = 0 ;
45322 char * kwnames[] = {
45323 (char *) "self",(char *) "f", NULL
45324 };
45325
45326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45328 if (!SWIG_IsOK(res1)) {
45329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45330 }
45331 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45332 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45333 if (!SWIG_IsOK(res2)) {
45334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45335 }
45336 if (!argp2) {
45337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45338 }
45339 arg2 = reinterpret_cast< wxFont * >(argp2);
45340 {
45341 PyThreadState* __tstate = wxPyBeginAllowThreads();
45342 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45343 wxPyEndAllowThreads(__tstate);
45344 if (PyErr_Occurred()) SWIG_fail;
45345 }
45346 resultobj = SWIG_Py_Void();
45347 return resultobj;
45348fail:
45349 return NULL;
45350}
45351
45352
45353SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45354 PyObject *resultobj = 0;
45355 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45356 unsigned int arg2 ;
45357 void *argp1 = 0 ;
45358 int res1 = 0 ;
45359 unsigned int val2 ;
45360 int ecode2 = 0 ;
45361 PyObject * obj0 = 0 ;
45362 PyObject * obj1 = 0 ;
45363 char * kwnames[] = {
45364 (char *) "self",(char *) "max", NULL
45365 };
45366
45367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45369 if (!SWIG_IsOK(res1)) {
45370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45371 }
45372 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45373 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45374 if (!SWIG_IsOK(ecode2)) {
45375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45376 }
45377 arg2 = static_cast< unsigned int >(val2);
45378 {
45379 PyThreadState* __tstate = wxPyBeginAllowThreads();
45380 (arg1)->SetMaxPointSize(arg2);
45381 wxPyEndAllowThreads(__tstate);
45382 if (PyErr_Occurred()) SWIG_fail;
45383 }
45384 resultobj = SWIG_Py_Void();
45385 return resultobj;
45386fail:
45387 return NULL;
45388}
45389
45390
45391SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45392 PyObject *resultobj = 0;
45393 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45394 unsigned int result;
45395 void *argp1 = 0 ;
45396 int res1 = 0 ;
45397 PyObject *swig_obj[1] ;
45398
45399 if (!args) SWIG_fail;
45400 swig_obj[0] = args;
45401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45402 if (!SWIG_IsOK(res1)) {
45403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45404 }
45405 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45406 {
45407 PyThreadState* __tstate = wxPyBeginAllowThreads();
45408 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45409 wxPyEndAllowThreads(__tstate);
45410 if (PyErr_Occurred()) SWIG_fail;
45411 }
45412 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45413 return resultobj;
45414fail:
45415 return NULL;
45416}
45417
45418
45419SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45420 PyObject *obj;
45421 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45422 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45423 return SWIG_Py_Void();
45424}
45425
45426SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45427 return SWIG_Python_InitShadowInstance(args);
45428}
45429
45430SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45431 PyObject *resultobj = 0;
45432 wxObject *arg1 = (wxObject *) 0 ;
45433 int arg2 ;
45434 wxFont *arg3 = 0 ;
45435 wxFontPickerEvent *result = 0 ;
45436 void *argp1 = 0 ;
45437 int res1 = 0 ;
45438 int val2 ;
45439 int ecode2 = 0 ;
45440 void *argp3 = 0 ;
45441 int res3 = 0 ;
45442 PyObject * obj0 = 0 ;
45443 PyObject * obj1 = 0 ;
45444 PyObject * obj2 = 0 ;
45445 char * kwnames[] = {
45446 (char *) "generator",(char *) "id",(char *) "f", NULL
45447 };
45448
45449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45451 if (!SWIG_IsOK(res1)) {
45452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45453 }
45454 arg1 = reinterpret_cast< wxObject * >(argp1);
45455 ecode2 = SWIG_AsVal_int(obj1, &val2);
45456 if (!SWIG_IsOK(ecode2)) {
45457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45458 }
45459 arg2 = static_cast< int >(val2);
45460 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45461 if (!SWIG_IsOK(res3)) {
45462 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45463 }
45464 if (!argp3) {
45465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45466 }
45467 arg3 = reinterpret_cast< wxFont * >(argp3);
45468 {
45469 PyThreadState* __tstate = wxPyBeginAllowThreads();
45470 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45471 wxPyEndAllowThreads(__tstate);
45472 if (PyErr_Occurred()) SWIG_fail;
45473 }
45474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45475 return resultobj;
45476fail:
45477 return NULL;
45478}
45479
45480
45481SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45482 PyObject *resultobj = 0;
45483 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45484 wxFont result;
45485 void *argp1 = 0 ;
45486 int res1 = 0 ;
45487 PyObject *swig_obj[1] ;
45488
45489 if (!args) SWIG_fail;
45490 swig_obj[0] = args;
45491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45492 if (!SWIG_IsOK(res1)) {
45493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45494 }
45495 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45496 {
45497 PyThreadState* __tstate = wxPyBeginAllowThreads();
45498 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45499 wxPyEndAllowThreads(__tstate);
45500 if (PyErr_Occurred()) SWIG_fail;
45501 }
45502 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45503 return resultobj;
45504fail:
45505 return NULL;
45506}
45507
45508
45509SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45510 PyObject *resultobj = 0;
45511 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45512 wxFont *arg2 = 0 ;
45513 void *argp1 = 0 ;
45514 int res1 = 0 ;
45515 void *argp2 = 0 ;
45516 int res2 = 0 ;
45517 PyObject * obj0 = 0 ;
45518 PyObject * obj1 = 0 ;
45519 char * kwnames[] = {
45520 (char *) "self",(char *) "c", NULL
45521 };
45522
45523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45525 if (!SWIG_IsOK(res1)) {
45526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45527 }
45528 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45529 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45530 if (!SWIG_IsOK(res2)) {
45531 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45532 }
45533 if (!argp2) {
45534 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45535 }
45536 arg2 = reinterpret_cast< wxFont * >(argp2);
45537 {
45538 PyThreadState* __tstate = wxPyBeginAllowThreads();
45539 (arg1)->SetFont((wxFont const &)*arg2);
45540 wxPyEndAllowThreads(__tstate);
45541 if (PyErr_Occurred()) SWIG_fail;
45542 }
45543 resultobj = SWIG_Py_Void();
45544 return resultobj;
45545fail:
45546 return NULL;
45547}
45548
45549
45550SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45551 PyObject *obj;
45552 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45553 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45554 return SWIG_Py_Void();
45555}
45556
45557SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45558 return SWIG_Python_InitShadowInstance(args);
45559}
45560
5172800e
RD
45561SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45562 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45563 return 1;
45564}
45565
45566
45567SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45568 PyObject *pyobj = 0;
45569
45570 {
45571#if wxUSE_UNICODE
45572 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45573#else
45574 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45575#endif
45576 }
45577 return pyobj;
45578}
45579
45580
45581SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45582 PyObject *resultobj = 0;
45583 wxWindow *arg1 = (wxWindow *) 0 ;
45584 int arg2 = (int) -1 ;
45585 wxString const &arg3_defvalue = wxPyEmptyString ;
45586 wxString *arg3 = (wxString *) &arg3_defvalue ;
45587 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45588 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45589 wxSize const &arg5_defvalue = wxDefaultSize ;
45590 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45591 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45592 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45593 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45594 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45595 wxString *arg8 = (wxString *) &arg8_defvalue ;
45596 wxCollapsiblePane *result = 0 ;
45597 void *argp1 = 0 ;
45598 int res1 = 0 ;
45599 int val2 ;
45600 int ecode2 = 0 ;
45601 bool temp3 = false ;
45602 wxPoint temp4 ;
45603 wxSize temp5 ;
45604 long val6 ;
45605 int ecode6 = 0 ;
45606 void *argp7 = 0 ;
45607 int res7 = 0 ;
45608 bool temp8 = false ;
45609 PyObject * obj0 = 0 ;
45610 PyObject * obj1 = 0 ;
45611 PyObject * obj2 = 0 ;
45612 PyObject * obj3 = 0 ;
45613 PyObject * obj4 = 0 ;
45614 PyObject * obj5 = 0 ;
45615 PyObject * obj6 = 0 ;
45616 PyObject * obj7 = 0 ;
45617 char * kwnames[] = {
45618 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45619 };
45620
45621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45623 if (!SWIG_IsOK(res1)) {
45624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45625 }
45626 arg1 = reinterpret_cast< wxWindow * >(argp1);
45627 if (obj1) {
45628 ecode2 = SWIG_AsVal_int(obj1, &val2);
45629 if (!SWIG_IsOK(ecode2)) {
45630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45631 }
45632 arg2 = static_cast< int >(val2);
45633 }
45634 if (obj2) {
45635 {
45636 arg3 = wxString_in_helper(obj2);
45637 if (arg3 == NULL) SWIG_fail;
45638 temp3 = true;
45639 }
45640 }
45641 if (obj3) {
45642 {
45643 arg4 = &temp4;
45644 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45645 }
45646 }
45647 if (obj4) {
45648 {
45649 arg5 = &temp5;
45650 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45651 }
45652 }
45653 if (obj5) {
45654 ecode6 = SWIG_AsVal_long(obj5, &val6);
45655 if (!SWIG_IsOK(ecode6)) {
45656 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45657 }
45658 arg6 = static_cast< long >(val6);
45659 }
45660 if (obj6) {
45661 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45662 if (!SWIG_IsOK(res7)) {
45663 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45664 }
45665 if (!argp7) {
45666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45667 }
45668 arg7 = reinterpret_cast< wxValidator * >(argp7);
45669 }
45670 if (obj7) {
45671 {
45672 arg8 = wxString_in_helper(obj7);
45673 if (arg8 == NULL) SWIG_fail;
45674 temp8 = true;
45675 }
45676 }
45677 {
45678 if (!wxPyCheckForApp()) SWIG_fail;
45679 PyThreadState* __tstate = wxPyBeginAllowThreads();
45680 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45681 wxPyEndAllowThreads(__tstate);
45682 if (PyErr_Occurred()) SWIG_fail;
45683 }
45684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45685 {
45686 if (temp3)
45687 delete arg3;
45688 }
45689 {
45690 if (temp8)
45691 delete arg8;
45692 }
45693 return resultobj;
45694fail:
45695 {
45696 if (temp3)
45697 delete arg3;
45698 }
45699 {
45700 if (temp8)
45701 delete arg8;
45702 }
45703 return NULL;
45704}
45705
45706
45707SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45708 PyObject *resultobj = 0;
45709 wxCollapsiblePane *result = 0 ;
45710
45711 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45712 {
45713 if (!wxPyCheckForApp()) SWIG_fail;
45714 PyThreadState* __tstate = wxPyBeginAllowThreads();
45715 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45716 wxPyEndAllowThreads(__tstate);
45717 if (PyErr_Occurred()) SWIG_fail;
45718 }
45719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45720 return resultobj;
45721fail:
45722 return NULL;
45723}
45724
45725
45726SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45727 PyObject *resultobj = 0;
45728 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45729 wxWindow *arg2 = (wxWindow *) 0 ;
45730 int arg3 = (int) -1 ;
45731 wxString const &arg4_defvalue = wxPyEmptyString ;
45732 wxString *arg4 = (wxString *) &arg4_defvalue ;
45733 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45734 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45735 wxSize const &arg6_defvalue = wxDefaultSize ;
45736 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45737 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45738 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45739 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45740 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45741 wxString *arg9 = (wxString *) &arg9_defvalue ;
45742 bool result;
45743 void *argp1 = 0 ;
45744 int res1 = 0 ;
45745 void *argp2 = 0 ;
45746 int res2 = 0 ;
45747 int val3 ;
45748 int ecode3 = 0 ;
45749 bool temp4 = false ;
45750 wxPoint temp5 ;
45751 wxSize temp6 ;
45752 long val7 ;
45753 int ecode7 = 0 ;
45754 void *argp8 = 0 ;
45755 int res8 = 0 ;
45756 bool temp9 = false ;
45757 PyObject * obj0 = 0 ;
45758 PyObject * obj1 = 0 ;
45759 PyObject * obj2 = 0 ;
45760 PyObject * obj3 = 0 ;
45761 PyObject * obj4 = 0 ;
45762 PyObject * obj5 = 0 ;
45763 PyObject * obj6 = 0 ;
45764 PyObject * obj7 = 0 ;
45765 PyObject * obj8 = 0 ;
45766 char * kwnames[] = {
45767 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45768 };
45769
45770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45772 if (!SWIG_IsOK(res1)) {
45773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45774 }
45775 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45776 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45777 if (!SWIG_IsOK(res2)) {
45778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45779 }
45780 arg2 = reinterpret_cast< wxWindow * >(argp2);
45781 if (obj2) {
45782 ecode3 = SWIG_AsVal_int(obj2, &val3);
45783 if (!SWIG_IsOK(ecode3)) {
45784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
45785 }
45786 arg3 = static_cast< int >(val3);
45787 }
45788 if (obj3) {
45789 {
45790 arg4 = wxString_in_helper(obj3);
45791 if (arg4 == NULL) SWIG_fail;
45792 temp4 = true;
45793 }
45794 }
45795 if (obj4) {
45796 {
45797 arg5 = &temp5;
45798 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45799 }
45800 }
45801 if (obj5) {
45802 {
45803 arg6 = &temp6;
45804 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45805 }
45806 }
45807 if (obj6) {
45808 ecode7 = SWIG_AsVal_long(obj6, &val7);
45809 if (!SWIG_IsOK(ecode7)) {
45810 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
45811 }
45812 arg7 = static_cast< long >(val7);
45813 }
45814 if (obj7) {
45815 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45816 if (!SWIG_IsOK(res8)) {
45817 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45818 }
45819 if (!argp8) {
45820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45821 }
45822 arg8 = reinterpret_cast< wxValidator * >(argp8);
45823 }
45824 if (obj8) {
45825 {
45826 arg9 = wxString_in_helper(obj8);
45827 if (arg9 == NULL) SWIG_fail;
45828 temp9 = true;
45829 }
45830 }
45831 {
45832 PyThreadState* __tstate = wxPyBeginAllowThreads();
45833 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45834 wxPyEndAllowThreads(__tstate);
45835 if (PyErr_Occurred()) SWIG_fail;
45836 }
45837 {
45838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45839 }
45840 {
45841 if (temp4)
45842 delete arg4;
45843 }
45844 {
45845 if (temp9)
45846 delete arg9;
45847 }
45848 return resultobj;
45849fail:
45850 {
45851 if (temp4)
45852 delete arg4;
45853 }
45854 {
45855 if (temp9)
45856 delete arg9;
45857 }
45858 return NULL;
45859}
45860
45861
45862SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45863 PyObject *resultobj = 0;
45864 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45865 bool arg2 = (bool) true ;
45866 void *argp1 = 0 ;
45867 int res1 = 0 ;
45868 bool val2 ;
45869 int ecode2 = 0 ;
45870 PyObject * obj0 = 0 ;
45871 PyObject * obj1 = 0 ;
45872 char * kwnames[] = {
45873 (char *) "self",(char *) "collapse", NULL
45874 };
45875
45876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
45877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45878 if (!SWIG_IsOK(res1)) {
45879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45880 }
45881 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45882 if (obj1) {
45883 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45884 if (!SWIG_IsOK(ecode2)) {
45885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
45886 }
45887 arg2 = static_cast< bool >(val2);
45888 }
45889 {
45890 PyThreadState* __tstate = wxPyBeginAllowThreads();
45891 (arg1)->Collapse(arg2);
45892 wxPyEndAllowThreads(__tstate);
45893 if (PyErr_Occurred()) SWIG_fail;
45894 }
45895 resultobj = SWIG_Py_Void();
45896 return resultobj;
45897fail:
45898 return NULL;
45899}
45900
45901
45902SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45903 PyObject *resultobj = 0;
45904 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45905 void *argp1 = 0 ;
45906 int res1 = 0 ;
45907 PyObject *swig_obj[1] ;
45908
45909 if (!args) SWIG_fail;
45910 swig_obj[0] = args;
45911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45912 if (!SWIG_IsOK(res1)) {
45913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45914 }
45915 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45916 {
45917 PyThreadState* __tstate = wxPyBeginAllowThreads();
45918 (arg1)->Expand();
45919 wxPyEndAllowThreads(__tstate);
45920 if (PyErr_Occurred()) SWIG_fail;
45921 }
45922 resultobj = SWIG_Py_Void();
45923 return resultobj;
45924fail:
45925 return NULL;
45926}
45927
45928
45929SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45930 PyObject *resultobj = 0;
45931 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45932 bool result;
45933 void *argp1 = 0 ;
45934 int res1 = 0 ;
45935 PyObject *swig_obj[1] ;
45936
45937 if (!args) SWIG_fail;
45938 swig_obj[0] = args;
45939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45940 if (!SWIG_IsOK(res1)) {
45941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45942 }
45943 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45944 {
45945 PyThreadState* __tstate = wxPyBeginAllowThreads();
45946 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
45947 wxPyEndAllowThreads(__tstate);
45948 if (PyErr_Occurred()) SWIG_fail;
45949 }
45950 {
45951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45952 }
45953 return resultobj;
45954fail:
45955 return NULL;
45956}
45957
45958
45959SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45960 PyObject *resultobj = 0;
45961 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45962 bool result;
45963 void *argp1 = 0 ;
45964 int res1 = 0 ;
45965 PyObject *swig_obj[1] ;
45966
45967 if (!args) SWIG_fail;
45968 swig_obj[0] = args;
45969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45970 if (!SWIG_IsOK(res1)) {
45971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45972 }
45973 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45974 {
45975 PyThreadState* __tstate = wxPyBeginAllowThreads();
45976 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
45977 wxPyEndAllowThreads(__tstate);
45978 if (PyErr_Occurred()) SWIG_fail;
45979 }
45980 {
45981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45982 }
45983 return resultobj;
45984fail:
45985 return NULL;
45986}
45987
45988
45989SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45990 PyObject *resultobj = 0;
45991 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45992 wxWindow *result = 0 ;
45993 void *argp1 = 0 ;
45994 int res1 = 0 ;
45995 PyObject *swig_obj[1] ;
45996
45997 if (!args) SWIG_fail;
45998 swig_obj[0] = args;
45999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46000 if (!SWIG_IsOK(res1)) {
46001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46002 }
46003 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46004 {
46005 PyThreadState* __tstate = wxPyBeginAllowThreads();
46006 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
46007 wxPyEndAllowThreads(__tstate);
46008 if (PyErr_Occurred()) SWIG_fail;
46009 }
46010 {
46011 resultobj = wxPyMake_wxObject(result, 0);
46012 }
46013 return resultobj;
46014fail:
46015 return NULL;
46016}
46017
46018
46019SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46020 PyObject *obj;
46021 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46022 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
46023 return SWIG_Py_Void();
46024}
46025
46026SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46027 return SWIG_Python_InitShadowInstance(args);
46028}
46029
46030SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46031 PyObject *resultobj = 0;
46032 wxObject *arg1 = (wxObject *) 0 ;
46033 int arg2 ;
46034 bool arg3 ;
46035 wxCollapsiblePaneEvent *result = 0 ;
46036 void *argp1 = 0 ;
46037 int res1 = 0 ;
46038 int val2 ;
46039 int ecode2 = 0 ;
46040 bool val3 ;
46041 int ecode3 = 0 ;
46042 PyObject * obj0 = 0 ;
46043 PyObject * obj1 = 0 ;
46044 PyObject * obj2 = 0 ;
46045 char * kwnames[] = {
46046 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
46047 };
46048
46049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
46050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
46051 if (!SWIG_IsOK(res1)) {
46052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
46053 }
46054 arg1 = reinterpret_cast< wxObject * >(argp1);
46055 ecode2 = SWIG_AsVal_int(obj1, &val2);
46056 if (!SWIG_IsOK(ecode2)) {
46057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
46058 }
46059 arg2 = static_cast< int >(val2);
46060 ecode3 = SWIG_AsVal_bool(obj2, &val3);
46061 if (!SWIG_IsOK(ecode3)) {
46062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
46063 }
46064 arg3 = static_cast< bool >(val3);
46065 {
46066 PyThreadState* __tstate = wxPyBeginAllowThreads();
46067 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
46068 wxPyEndAllowThreads(__tstate);
46069 if (PyErr_Occurred()) SWIG_fail;
46070 }
46071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
46072 return resultobj;
46073fail:
46074 return NULL;
46075}
46076
46077
46078SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46079 PyObject *resultobj = 0;
46080 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46081 bool result;
46082 void *argp1 = 0 ;
46083 int res1 = 0 ;
46084 PyObject *swig_obj[1] ;
46085
46086 if (!args) SWIG_fail;
46087 swig_obj[0] = args;
46088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46089 if (!SWIG_IsOK(res1)) {
46090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
46091 }
46092 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46093 {
46094 PyThreadState* __tstate = wxPyBeginAllowThreads();
46095 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
46096 wxPyEndAllowThreads(__tstate);
46097 if (PyErr_Occurred()) SWIG_fail;
46098 }
46099 {
46100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46101 }
46102 return resultobj;
46103fail:
46104 return NULL;
46105}
46106
46107
46108SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46109 PyObject *resultobj = 0;
46110 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46111 bool arg2 ;
46112 void *argp1 = 0 ;
46113 int res1 = 0 ;
46114 bool val2 ;
46115 int ecode2 = 0 ;
46116 PyObject * obj0 = 0 ;
46117 PyObject * obj1 = 0 ;
46118 char * kwnames[] = {
46119 (char *) "self",(char *) "c", NULL
46120 };
46121
46122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
46123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46124 if (!SWIG_IsOK(res1)) {
46125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
46126 }
46127 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46128 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46129 if (!SWIG_IsOK(ecode2)) {
46130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
46131 }
46132 arg2 = static_cast< bool >(val2);
46133 {
46134 PyThreadState* __tstate = wxPyBeginAllowThreads();
46135 (arg1)->SetCollapsed(arg2);
46136 wxPyEndAllowThreads(__tstate);
46137 if (PyErr_Occurred()) SWIG_fail;
46138 }
46139 resultobj = SWIG_Py_Void();
46140 return resultobj;
46141fail:
46142 return NULL;
46143}
46144
46145
46146SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46147 PyObject *obj;
46148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46149 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
46150 return SWIG_Py_Void();
46151}
46152
46153SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46154 return SWIG_Python_InitShadowInstance(args);
46155}
46156
3f7f284d
RD
46157SWIGINTERN int SearchCtrlNameStr_set(PyObject *) {
46158 SWIG_Error(SWIG_AttributeError,"Variable SearchCtrlNameStr is read-only.");
46159 return 1;
46160}
46161
46162
46163SWIGINTERN PyObject *SearchCtrlNameStr_get(void) {
46164 PyObject *pyobj = 0;
46165
46166 {
46167#if wxUSE_UNICODE
46168 pyobj = PyUnicode_FromWideChar((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46169#else
46170 pyobj = PyString_FromStringAndSize((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46171#endif
46172 }
46173 return pyobj;
46174}
46175
46176
46177SWIGINTERN PyObject *_wrap_new_SearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46178 PyObject *resultobj = 0;
46179 wxWindow *arg1 = (wxWindow *) 0 ;
46180 int arg2 = (int) -1 ;
46181 wxString const &arg3_defvalue = wxEmptyString ;
46182 wxString *arg3 = (wxString *) &arg3_defvalue ;
46183 wxPoint const &arg4_defvalue = wxDefaultPosition ;
46184 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
46185 wxSize const &arg5_defvalue = wxDefaultSize ;
46186 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
46187 long arg6 = (long) 0 ;
46188 wxValidator const &arg7_defvalue = wxDefaultValidator ;
46189 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
46190 wxString const &arg8_defvalue = wxPySearchCtrlNameStr ;
46191 wxString *arg8 = (wxString *) &arg8_defvalue ;
46192 wxSearchCtrl *result = 0 ;
46193 void *argp1 = 0 ;
46194 int res1 = 0 ;
46195 int val2 ;
46196 int ecode2 = 0 ;
46197 bool temp3 = false ;
46198 wxPoint temp4 ;
46199 wxSize temp5 ;
46200 long val6 ;
46201 int ecode6 = 0 ;
46202 void *argp7 = 0 ;
46203 int res7 = 0 ;
46204 bool temp8 = false ;
46205 PyObject * obj0 = 0 ;
46206 PyObject * obj1 = 0 ;
46207 PyObject * obj2 = 0 ;
46208 PyObject * obj3 = 0 ;
46209 PyObject * obj4 = 0 ;
46210 PyObject * obj5 = 0 ;
46211 PyObject * obj6 = 0 ;
46212 PyObject * obj7 = 0 ;
46213 char * kwnames[] = {
46214 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46215 };
46216
46217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SearchCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
46218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
46219 if (!SWIG_IsOK(res1)) {
46220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SearchCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
46221 }
46222 arg1 = reinterpret_cast< wxWindow * >(argp1);
46223 if (obj1) {
46224 ecode2 = SWIG_AsVal_int(obj1, &val2);
46225 if (!SWIG_IsOK(ecode2)) {
46226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SearchCtrl" "', expected argument " "2"" of type '" "int""'");
46227 }
46228 arg2 = static_cast< int >(val2);
46229 }
46230 if (obj2) {
46231 {
46232 arg3 = wxString_in_helper(obj2);
46233 if (arg3 == NULL) SWIG_fail;
46234 temp3 = true;
46235 }
46236 }
46237 if (obj3) {
46238 {
46239 arg4 = &temp4;
46240 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
46241 }
46242 }
46243 if (obj4) {
46244 {
46245 arg5 = &temp5;
46246 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
46247 }
46248 }
46249 if (obj5) {
46250 ecode6 = SWIG_AsVal_long(obj5, &val6);
46251 if (!SWIG_IsOK(ecode6)) {
46252 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SearchCtrl" "', expected argument " "6"" of type '" "long""'");
46253 }
46254 arg6 = static_cast< long >(val6);
46255 }
46256 if (obj6) {
46257 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
46258 if (!SWIG_IsOK(res7)) {
46259 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46260 }
46261 if (!argp7) {
46262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46263 }
46264 arg7 = reinterpret_cast< wxValidator * >(argp7);
46265 }
46266 if (obj7) {
46267 {
46268 arg8 = wxString_in_helper(obj7);
46269 if (arg8 == NULL) SWIG_fail;
46270 temp8 = true;
46271 }
46272 }
46273 {
46274 if (!wxPyCheckForApp()) SWIG_fail;
46275 PyThreadState* __tstate = wxPyBeginAllowThreads();
46276 result = (wxSearchCtrl *)new wxSearchCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
46277 wxPyEndAllowThreads(__tstate);
46278 if (PyErr_Occurred()) SWIG_fail;
46279 }
46280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_NEW | 0 );
46281 {
46282 if (temp3)
46283 delete arg3;
46284 }
46285 {
46286 if (temp8)
46287 delete arg8;
46288 }
46289 return resultobj;
46290fail:
46291 {
46292 if (temp3)
46293 delete arg3;
46294 }
46295 {
46296 if (temp8)
46297 delete arg8;
46298 }
46299 return NULL;
46300}
46301
46302
46303SWIGINTERN PyObject *_wrap_new_PreSearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46304 PyObject *resultobj = 0;
46305 wxSearchCtrl *result = 0 ;
46306
46307 if (!SWIG_Python_UnpackTuple(args,"new_PreSearchCtrl",0,0,0)) SWIG_fail;
46308 {
46309 if (!wxPyCheckForApp()) SWIG_fail;
46310 PyThreadState* __tstate = wxPyBeginAllowThreads();
46311 result = (wxSearchCtrl *)new wxSearchCtrl();
46312 wxPyEndAllowThreads(__tstate);
46313 if (PyErr_Occurred()) SWIG_fail;
46314 }
46315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_OWN | 0 );
46316 return resultobj;
46317fail:
46318 return NULL;
46319}
46320
46321
46322SWIGINTERN PyObject *_wrap_SearchCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46323 PyObject *resultobj = 0;
46324 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46325 wxWindow *arg2 = (wxWindow *) 0 ;
46326 int arg3 = (int) -1 ;
46327 wxString const &arg4_defvalue = wxEmptyString ;
46328 wxString *arg4 = (wxString *) &arg4_defvalue ;
46329 wxPoint const &arg5_defvalue = wxDefaultPosition ;
46330 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
46331 wxSize const &arg6_defvalue = wxDefaultSize ;
46332 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
46333 long arg7 = (long) 0 ;
46334 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46335 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46336 wxString const &arg9_defvalue = wxPySearchCtrlNameStr ;
46337 wxString *arg9 = (wxString *) &arg9_defvalue ;
46338 bool result;
46339 void *argp1 = 0 ;
46340 int res1 = 0 ;
46341 void *argp2 = 0 ;
46342 int res2 = 0 ;
46343 int val3 ;
46344 int ecode3 = 0 ;
46345 bool temp4 = false ;
46346 wxPoint temp5 ;
46347 wxSize temp6 ;
46348 long val7 ;
46349 int ecode7 = 0 ;
46350 void *argp8 = 0 ;
46351 int res8 = 0 ;
46352 bool temp9 = false ;
46353 PyObject * obj0 = 0 ;
46354 PyObject * obj1 = 0 ;
46355 PyObject * obj2 = 0 ;
46356 PyObject * obj3 = 0 ;
46357 PyObject * obj4 = 0 ;
46358 PyObject * obj5 = 0 ;
46359 PyObject * obj6 = 0 ;
46360 PyObject * obj7 = 0 ;
46361 PyObject * obj8 = 0 ;
46362 char * kwnames[] = {
46363 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46364 };
46365
46366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SearchCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46368 if (!SWIG_IsOK(res1)) {
46369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_Create" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46370 }
46371 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46372 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46373 if (!SWIG_IsOK(res2)) {
46374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46375 }
46376 arg2 = reinterpret_cast< wxWindow * >(argp2);
46377 if (obj2) {
46378 ecode3 = SWIG_AsVal_int(obj2, &val3);
46379 if (!SWIG_IsOK(ecode3)) {
46380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchCtrl_Create" "', expected argument " "3"" of type '" "int""'");
46381 }
46382 arg3 = static_cast< int >(val3);
46383 }
46384 if (obj3) {
46385 {
46386 arg4 = wxString_in_helper(obj3);
46387 if (arg4 == NULL) SWIG_fail;
46388 temp4 = true;
46389 }
46390 }
46391 if (obj4) {
46392 {
46393 arg5 = &temp5;
46394 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46395 }
46396 }
46397 if (obj5) {
46398 {
46399 arg6 = &temp6;
46400 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46401 }
46402 }
46403 if (obj6) {
46404 ecode7 = SWIG_AsVal_long(obj6, &val7);
46405 if (!SWIG_IsOK(ecode7)) {
46406 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SearchCtrl_Create" "', expected argument " "7"" of type '" "long""'");
46407 }
46408 arg7 = static_cast< long >(val7);
46409 }
46410 if (obj7) {
46411 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46412 if (!SWIG_IsOK(res8)) {
46413 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46414 }
46415 if (!argp8) {
46416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46417 }
46418 arg8 = reinterpret_cast< wxValidator * >(argp8);
46419 }
46420 if (obj8) {
46421 {
46422 arg9 = wxString_in_helper(obj8);
46423 if (arg9 == NULL) SWIG_fail;
46424 temp9 = true;
46425 }
46426 }
46427 {
46428 PyThreadState* __tstate = wxPyBeginAllowThreads();
46429 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46430 wxPyEndAllowThreads(__tstate);
46431 if (PyErr_Occurred()) SWIG_fail;
46432 }
46433 {
46434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46435 }
46436 {
46437 if (temp4)
46438 delete arg4;
46439 }
46440 {
46441 if (temp9)
46442 delete arg9;
46443 }
46444 return resultobj;
46445fail:
46446 {
46447 if (temp4)
46448 delete arg4;
46449 }
46450 {
46451 if (temp9)
46452 delete arg9;
46453 }
46454 return NULL;
46455}
46456
46457
46458SWIGINTERN PyObject *_wrap_SearchCtrl_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46459 PyObject *resultobj = 0;
46460 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46461 wxMenu *arg2 = (wxMenu *) 0 ;
46462 void *argp1 = 0 ;
46463 int res1 = 0 ;
46464 void *argp2 = 0 ;
46465 int res2 = 0 ;
46466 PyObject * obj0 = 0 ;
46467 PyObject * obj1 = 0 ;
46468 char * kwnames[] = {
46469 (char *) "self",(char *) "menu", NULL
46470 };
46471
46472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
46473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46474 if (!SWIG_IsOK(res1)) {
46475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46476 }
46477 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46478 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
46479 if (!SWIG_IsOK(res2)) {
46480 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
46481 }
46482 arg2 = reinterpret_cast< wxMenu * >(argp2);
46483 {
46484 PyThreadState* __tstate = wxPyBeginAllowThreads();
46485 (arg1)->SetMenu(arg2);
46486 wxPyEndAllowThreads(__tstate);
46487 if (PyErr_Occurred()) SWIG_fail;
46488 }
46489 resultobj = SWIG_Py_Void();
46490 return resultobj;
46491fail:
46492 return NULL;
46493}
46494
46495
46496SWIGINTERN PyObject *_wrap_SearchCtrl_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46497 PyObject *resultobj = 0;
46498 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46499 wxMenu *result = 0 ;
46500 void *argp1 = 0 ;
46501 int res1 = 0 ;
46502 PyObject *swig_obj[1] ;
46503
46504 if (!args) SWIG_fail;
46505 swig_obj[0] = args;
46506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46507 if (!SWIG_IsOK(res1)) {
46508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46509 }
46510 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46511 {
46512 PyThreadState* __tstate = wxPyBeginAllowThreads();
46513 result = (wxMenu *)(arg1)->GetMenu();
46514 wxPyEndAllowThreads(__tstate);
46515 if (PyErr_Occurred()) SWIG_fail;
46516 }
46517 {
46518 resultobj = wxPyMake_wxObject(result, 0);
46519 }
46520 return resultobj;
46521fail:
46522 return NULL;
46523}
46524
46525
70b63a99 46526SWIGINTERN PyObject *_wrap_SearchCtrl_ShowSearchButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3f7f284d
RD
46527 PyObject *resultobj = 0;
46528 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46529 bool arg2 ;
46530 void *argp1 = 0 ;
46531 int res1 = 0 ;
46532 bool val2 ;
46533 int ecode2 = 0 ;
46534 PyObject * obj0 = 0 ;
46535 PyObject * obj1 = 0 ;
46536 char * kwnames[] = {
46537 (char *) "self",(char *) "show", NULL
46538 };
46539
70b63a99 46540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowSearchButton",kwnames,&obj0,&obj1)) SWIG_fail;
3f7f284d
RD
46541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46542 if (!SWIG_IsOK(res1)) {
70b63a99 46543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
3f7f284d
RD
46544 }
46545 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46546 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46547 if (!SWIG_IsOK(ecode2)) {
70b63a99 46548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "2"" of type '" "bool""'");
3f7f284d
RD
46549 }
46550 arg2 = static_cast< bool >(val2);
46551 {
46552 PyThreadState* __tstate = wxPyBeginAllowThreads();
70b63a99 46553 (arg1)->ShowSearchButton(arg2);
3f7f284d
RD
46554 wxPyEndAllowThreads(__tstate);
46555 if (PyErr_Occurred()) SWIG_fail;
46556 }
46557 resultobj = SWIG_Py_Void();
46558 return resultobj;
46559fail:
46560 return NULL;
46561}
46562
46563
70b63a99 46564SWIGINTERN PyObject *_wrap_SearchCtrl_IsSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3f7f284d
RD
46565 PyObject *resultobj = 0;
46566 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46567 bool result;
46568 void *argp1 = 0 ;
46569 int res1 = 0 ;
46570 PyObject *swig_obj[1] ;
46571
46572 if (!args) SWIG_fail;
46573 swig_obj[0] = args;
46574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46575 if (!SWIG_IsOK(res1)) {
70b63a99 46576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
3f7f284d
RD
46577 }
46578 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46579 {
46580 PyThreadState* __tstate = wxPyBeginAllowThreads();
70b63a99 46581 result = (bool)((wxSearchCtrl const *)arg1)->IsSearchButtonVisible();
3f7f284d
RD
46582 wxPyEndAllowThreads(__tstate);
46583 if (PyErr_Occurred()) SWIG_fail;
46584 }
46585 {
46586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46587 }
46588 return resultobj;
46589fail:
46590 return NULL;
46591}
46592
46593
70b63a99 46594SWIGINTERN PyObject *_wrap_SearchCtrl_ShowCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3f7f284d
RD
46595 PyObject *resultobj = 0;
46596 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46597 bool arg2 ;
46598 void *argp1 = 0 ;
46599 int res1 = 0 ;
46600 bool val2 ;
46601 int ecode2 = 0 ;
46602 PyObject * obj0 = 0 ;
46603 PyObject * obj1 = 0 ;
46604 char * kwnames[] = {
46605 (char *) "self",(char *) "show", NULL
46606 };
46607
70b63a99 46608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowCancelButton",kwnames,&obj0,&obj1)) SWIG_fail;
3f7f284d
RD
46609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46610 if (!SWIG_IsOK(res1)) {
70b63a99 46611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
3f7f284d
RD
46612 }
46613 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46614 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46615 if (!SWIG_IsOK(ecode2)) {
70b63a99 46616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "2"" of type '" "bool""'");
3f7f284d
RD
46617 }
46618 arg2 = static_cast< bool >(val2);
46619 {
46620 PyThreadState* __tstate = wxPyBeginAllowThreads();
70b63a99 46621 (arg1)->ShowCancelButton(arg2);
3f7f284d
RD
46622 wxPyEndAllowThreads(__tstate);
46623 if (PyErr_Occurred()) SWIG_fail;
46624 }
46625 resultobj = SWIG_Py_Void();
46626 return resultobj;
46627fail:
46628 return NULL;
46629}
46630
46631
70b63a99 46632SWIGINTERN PyObject *_wrap_SearchCtrl_IsCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3f7f284d
RD
46633 PyObject *resultobj = 0;
46634 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46635 bool result;
46636 void *argp1 = 0 ;
46637 int res1 = 0 ;
46638 PyObject *swig_obj[1] ;
46639
46640 if (!args) SWIG_fail;
46641 swig_obj[0] = args;
46642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46643 if (!SWIG_IsOK(res1)) {
70b63a99 46644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
3f7f284d
RD
46645 }
46646 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46647 {
46648 PyThreadState* __tstate = wxPyBeginAllowThreads();
70b63a99 46649 result = (bool)((wxSearchCtrl const *)arg1)->IsCancelButtonVisible();
3f7f284d
RD
46650 wxPyEndAllowThreads(__tstate);
46651 if (PyErr_Occurred()) SWIG_fail;
46652 }
46653 {
46654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46655 }
46656 return resultobj;
46657fail:
46658 return NULL;
46659}
46660
46661
46662SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46663 PyObject *resultobj = 0;
46664 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46665 wxBitmap *arg2 = 0 ;
46666 void *argp1 = 0 ;
46667 int res1 = 0 ;
46668 void *argp2 = 0 ;
46669 int res2 = 0 ;
46670 PyObject * obj0 = 0 ;
46671 PyObject * obj1 = 0 ;
46672 char * kwnames[] = {
46673 (char *) "self",(char *) "bitmap", NULL
46674 };
46675
46676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46678 if (!SWIG_IsOK(res1)) {
46679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46680 }
46681 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46682 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46683 if (!SWIG_IsOK(res2)) {
46684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46685 }
46686 if (!argp2) {
46687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46688 }
46689 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46690 {
46691 PyThreadState* __tstate = wxPyBeginAllowThreads();
46692 (arg1)->SetSearchBitmap((wxBitmap const &)*arg2);
46693 wxPyEndAllowThreads(__tstate);
46694 if (PyErr_Occurred()) SWIG_fail;
46695 }
46696 resultobj = SWIG_Py_Void();
46697 return resultobj;
46698fail:
46699 return NULL;
46700}
46701
46702
46703SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchMenuBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46704 PyObject *resultobj = 0;
46705 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46706 wxBitmap *arg2 = 0 ;
46707 void *argp1 = 0 ;
46708 int res1 = 0 ;
46709 void *argp2 = 0 ;
46710 int res2 = 0 ;
46711 PyObject * obj0 = 0 ;
46712 PyObject * obj1 = 0 ;
46713 char * kwnames[] = {
46714 (char *) "self",(char *) "bitmap", NULL
46715 };
46716
46717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchMenuBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46719 if (!SWIG_IsOK(res1)) {
46720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46721 }
46722 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46724 if (!SWIG_IsOK(res2)) {
46725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46726 }
46727 if (!argp2) {
46728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46729 }
46730 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46731 {
46732 PyThreadState* __tstate = wxPyBeginAllowThreads();
46733 (arg1)->SetSearchMenuBitmap((wxBitmap const &)*arg2);
46734 wxPyEndAllowThreads(__tstate);
46735 if (PyErr_Occurred()) SWIG_fail;
46736 }
46737 resultobj = SWIG_Py_Void();
46738 return resultobj;
46739fail:
46740 return NULL;
46741}
46742
46743
46744SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46745 PyObject *resultobj = 0;
46746 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46747 wxBitmap *arg2 = 0 ;
46748 void *argp1 = 0 ;
46749 int res1 = 0 ;
46750 void *argp2 = 0 ;
46751 int res2 = 0 ;
46752 PyObject * obj0 = 0 ;
46753 PyObject * obj1 = 0 ;
46754 char * kwnames[] = {
46755 (char *) "self",(char *) "bitmap", NULL
46756 };
46757
46758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46760 if (!SWIG_IsOK(res1)) {
46761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46762 }
46763 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46764 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46765 if (!SWIG_IsOK(res2)) {
46766 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46767 }
46768 if (!argp2) {
46769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46770 }
46771 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46772 {
46773 PyThreadState* __tstate = wxPyBeginAllowThreads();
46774 (arg1)->SetCancelBitmap((wxBitmap const &)*arg2);
46775 wxPyEndAllowThreads(__tstate);
46776 if (PyErr_Occurred()) SWIG_fail;
46777 }
46778 resultobj = SWIG_Py_Void();
46779 return resultobj;
46780fail:
46781 return NULL;
46782}
46783
46784
46785SWIGINTERN PyObject *SearchCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46786 PyObject *obj;
46787 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46788 SWIG_TypeNewClientData(SWIGTYPE_p_wxSearchCtrl, SWIG_NewClientData(obj));
46789 return SWIG_Py_Void();
46790}
46791
46792SWIGINTERN PyObject *SearchCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46793 return SWIG_Python_InitShadowInstance(args);
46794}
46795
b850e7f3
RD
46796static PyMethodDef SwigMethods[] = {
46797 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
46798 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
46799 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46800 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
46801 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
46802 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46803 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
46804 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
46805 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
46806 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
46807 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46808 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
46809 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
46810 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
46811 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
46812 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
46813 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
46814 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
46815 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46816 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46817 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
46818 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46819 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
46820 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
46821 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
46822 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
46823 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
46824 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
46825 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46826 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
46827 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
46828 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46829 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
46830 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
46831 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
46832 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
46833 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46834 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
46835 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
46836 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
46837 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
46838 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46839 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
46840 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46841 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
46842 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
46843 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
46844 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
46845 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46846 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
46847 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46848 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
46849 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
46850 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
46851 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46852 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
46853 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
46854 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46855 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
46856 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
46857 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
46858 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46859 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46860 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
46861 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46862 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
46863 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
46864 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
46865 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
46866 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
46867 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
46868 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
46869 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
46870 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
46871 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46872 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
46873 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
46874 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
46875 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
46876 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46877 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46878 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
46879 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46880 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
ae5bc7f3 46881 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
b850e7f3
RD
46882 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
46883 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46884 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
46885 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
46886 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
46887 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46888 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
46889 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
46890 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
46891 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
46892 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46893 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46894 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
46895 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
46896 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
46897 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
46898 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46899 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
46900 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
46901 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46902 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
46903 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
46904 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
46905 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
46906 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46907 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
46908 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46909 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
46910 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
46911 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46912 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
46913 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46914 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
46915 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46916 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46917 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46918 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
46919 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
46920 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46921 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
46922 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46923 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46924 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
46925 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46926 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46927 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46928 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46929 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
46930 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
46931 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46932 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
46933 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
46934 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
46935 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46936 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46937 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
46938 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46939 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46940 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46941 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46942 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46943 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
46944 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
46945 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46946 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
46947 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46948 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
46949 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
46950 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
46951 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
46952 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
46953 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46954 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
46955 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
46956 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
46957 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46958 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46959 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46960 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
46961 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
46962 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46963 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46964 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
46965 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
46966 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
46967 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
46968 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
46969 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
46970 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
46971 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
46972 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46973 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
46974 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
46975 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
46976 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
46977 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
46978 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
46979 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
46980 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
46981 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
46982 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
46983 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
46984 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
46985 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
46986 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46987 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
46988 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46989 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
46990 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
46991 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
46992 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46993 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46994 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
46995 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
46996 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
46997 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
46998 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
46999 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
47000 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
47001 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
47002 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
47003 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
47004 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
47005 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
47006 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
47007 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
47008 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
47009 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 47010 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
47011 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
47012 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
47013 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
47014 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
47015 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47016 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47017 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47018 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
47019 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47020 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
47021 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47022 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47023 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
47024 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
47025 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
47026 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
47027 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
47028 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
47029 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
47030 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
47031 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
47032 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
47033 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
47034 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47035 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
47036 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
47037 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
47038 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47039 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
47040 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
d7645bfd 47041 { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 47042 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
b850e7f3
RD
47043 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
47044 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47045 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47046 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
47047 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
47048 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47049 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
47050 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
47051 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
47052 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
47053 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
47054 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
47055 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
47056 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47057 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
47058 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
47059 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
47060 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
47061 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
47062 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47063 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47064 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
47065 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
47066 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
47067 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
47068 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47069 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
47070 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
47071 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
47072 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47073 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47074 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47075 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47076 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
47077 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47078 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
47079 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
47080 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47081 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
47082 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47083 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
47084 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47085 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
47086 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47087 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
47088 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
47089 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47090 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47091 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
47092 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
47093 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47094 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
47095 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47096 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
47097 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
47098 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
47099 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
47100 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47101 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47102 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
47103 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
47104 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47105 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
47106 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
47107 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47108 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
47109 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
47110 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
47111 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47112 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
47113 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
47114 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
47115 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47116 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47117 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47118 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47119 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47120 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47121 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
47122 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
47123 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
47124 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
47125 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47126 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
47127 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47128 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47129 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
47130 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
47131 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
47132 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
47133 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47134 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
47135 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47136 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47137 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
47138 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
47139 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47140 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47141 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
47142 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47143 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
47144 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
47145 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
47146 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
47147 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
47148 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
47149 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
47150 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
47151 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
47152 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
47153 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
47154 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47155 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47156 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
47157 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
47158 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
47159 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
47160 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47161 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47162 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
47163 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47164 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
47165 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
47166 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
47167 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
47168 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
47169 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
47170 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47171 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47172 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47173 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47174 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
47175 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47176 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47177 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47178 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
47179 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
47180 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 47181 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
e9d6f3a4
RD
47182 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47183 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
0085ce49
RD
47184 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
47185 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 47186 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
0085ce49
RD
47187 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
47188 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
47189 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
47190 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
47191 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
47192 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 47193 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 47194 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 47195 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
47196 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47197 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
47198 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47199 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
47200 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47201 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
47202 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47203 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
47204 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
47205 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
47206 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
47207 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47208 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
47209 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
47210 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
47211 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
47212 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
47213 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47214 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
47215 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
47216 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
47217 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47218 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
47219 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
47220 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
47221 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
47222 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47223 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
47224 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
47225 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
47226 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47227 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
47228 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
47229 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
47230 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
47231 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47232 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
47233 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
47234 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
47235 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47236 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
47237 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
47238 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
47239 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
47240 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47241 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47242 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47243 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47244 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
47245 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
47246 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
47247 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
47248 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
47249 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
47250 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47251 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
47252 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
47253 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
47254 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
47255 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47256 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
47257 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
47258 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
47259 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
47260 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47261 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
47262 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
47263 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
47264 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
47265 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
47266 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
47267 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
47268 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
47269 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
47270 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
47271 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
47272 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
47273 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
47274 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
47275 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
47276 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
47277 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
47278 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
47279 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
47280 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
47281 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
47282 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47283 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47284 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47285 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47286 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47287 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47288 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
47289 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
47290 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
47291 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47292 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
47293 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
47294 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
47295 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47296 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47297 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
47298 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
47299 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
47300 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
47301 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
47302 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
47303 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
47304 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
47305 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
47306 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
47307 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
47308 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
47309 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47310 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47311 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47312 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
47313 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
47314 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47315 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47316 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47317 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47318 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47319 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
47320 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47321 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
47322 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
47323 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
47324 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
47325 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
47326 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
47327 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
47328 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
47329 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
47330 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
47331 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
47332 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
47333 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
47334 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47335 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
47336 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
47337 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
47338 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
47339 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
47340 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
47341 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
47342 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47343 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
47344 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
47345 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47346 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
47347 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47348 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47349 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47350 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
47351 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
47352 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
47353 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
47354 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
47355 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
47356 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
47357 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
47358 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
47359 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
47360 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
47361 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
47362 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
47363 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
47364 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
47365 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47366 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47367 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47368 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
47369 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
47370 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
47371 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47372 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47373 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
47374 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47375 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47376 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47377 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
47378 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
47379 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
47380 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
47381 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
47382 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
47383 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
47384 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
47385 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
47386 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
47387 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
47388 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
47389 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
47390 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
47391 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
47392 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
47393 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
47394 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
47395 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
47396 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
47397 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
47398 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
47399 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
47400 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
47401 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
47402 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
47403 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
47404 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
47405 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
47406 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
47407 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
47408 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
47409 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
47410 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
47411 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
47412 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
47413 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47414 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
47415 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
47416 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
47417 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
47418 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
47419 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
47420 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
47421 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
47422 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
47423 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
47424 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
47425 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
47426 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
47427 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
47428 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
47429 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
47430 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
47431 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
47432 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
47433 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
47434 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
47435 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
47436 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
47437 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
47438 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47439 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
47440 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
47441 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47442 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
47443 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47444 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47445 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47446 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47447 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47448 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47449 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
47450 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
47451 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
47452 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47453 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47454 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47455 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47456 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47457 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47458 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47459 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47460 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47461 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47462 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47463 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47464 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
47465 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47466 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
47467 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
47468 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
47469 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47470 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
47471 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
47472 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47473 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
47474 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47475 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47476 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47477 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47478 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47479 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
47480 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
47481 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
47482 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
47483 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
47484 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
47485 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
47486 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47487 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
47488 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
47489 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47490 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47491 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
47492 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47493 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
47494 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 47495 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
47496 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47497 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47498 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
47499 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47500 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
47501 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47502 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
47503 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
47504 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47505 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47506 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47507 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47508 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47509 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47510 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
47511 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
47512 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47513 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
47514 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
47515 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
47516 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
47517 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47518 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47519 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
47520 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
47521 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47522 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
47523 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47524 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47525 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47526 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
47527 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
47528 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
47529 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
47530 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
47531 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
47532 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
47533 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
47534 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
47535 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
47536 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
47537 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47538 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
47539 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
47540 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47541 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
47542 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47543 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
47544 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
47545 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 47546 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
0085ce49
RD
47547 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
47548 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47549 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
47550 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
47551 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
47552 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47553 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
47554 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
47555 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47556 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
47557 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47558 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
47559 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47560 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47561 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
47562 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
47563 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
47564 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47565 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
47566 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47567 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47568 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
47569 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
47570 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47571 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
47572 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47573 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
47574 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
47575 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47576 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47577 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47578 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47579 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47580 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47581 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47582 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47583 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47584 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47585 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47586 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47587 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47588 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47589 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47590 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47591 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
47592 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
47593 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47594 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47595 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47596 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47597 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47598 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47599 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47600 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
1ceb4f4d 47601 { (char *)"TreeCtrl_IsEmpty", (PyCFunction)_wrap_TreeCtrl_IsEmpty, METH_O, NULL},
0085ce49
RD
47602 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
47603 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
47604 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
47605 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
47606 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
47607 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
47608 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
47609 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
47610 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47611 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47612 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
47613 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47614 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47615 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
47616 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
47617 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47618 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
47619 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
47620 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
47621 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47622 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
47623 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
453fb36b
RD
47624 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47625 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
0085ce49 47626 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
1ceb4f4d
RD
47627 { (char *)"TreeCtrl_CollapseAllChildren", (PyCFunction) _wrap_TreeCtrl_CollapseAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47628 { (char *)"TreeCtrl_CollapseAll", (PyCFunction)_wrap_TreeCtrl_CollapseAll, METH_O, NULL},
0085ce49
RD
47629 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
47630 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
47631 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
47632 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47633 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
47634 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47635 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47636 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47637 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
47638 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47639 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
47640 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47641 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47642 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
47643 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
47644 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
47645 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
0085ce49
RD
47646 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
47647 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
47648 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47649 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
47650 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47651 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 47652 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
47653 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
47654 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
47655 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
47656 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
47657 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47658 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
47659 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
47660 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
47661 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
47662 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
47663 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
47664 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
47665 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
47666 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
47667 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
47668 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
47669 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
47670 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
47671 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
47672 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47673 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
47674 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47675 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
47676 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
47677 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
47678 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
47679 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
47680 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
47681 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
47682 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47683 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
47684 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
47685 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
47686 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
47687 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
47688 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
47689 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
47690 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
47691 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
47692 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
47693 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
47694 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
47695 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47696 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
47697 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47698 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
47699 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
47700 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
47701 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
47702 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
47703 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
47704 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
47705 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
47706 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47707 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
47708 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47709 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
47710 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
47711 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
47712 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
47713 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
47714 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 47715 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
0085ce49
RD
47716 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47717 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
47718 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47719 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 47720 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
47721 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47722 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
47723 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47724 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
47725 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
47726 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
47727 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
47728 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
47729 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
47730 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47731 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
47732 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
47733 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
47734 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
47735 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47736 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
47737 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
47738 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
47739 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
47740 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
47741 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
47742 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
47743 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47744 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47745 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47746 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
47747 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
47748 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47749 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
47750 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47751 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47752 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
47753 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47754 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
47755 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
47756 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
47757 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
47758 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47759 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
47760 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47761 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
47762 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
47763 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
47764 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
47765 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
47766 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
47767 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
47768 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47769 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
47770 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
47771 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
47772 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
47773 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47774 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
47775 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47776 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
47777 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
47778 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
47779 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47780 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
47781 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47782 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
10044bf1
RD
47783 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47784 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
b02396e8
RD
47785 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
47786 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
47787 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
47788 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
47789 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
47790 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
47791 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
47792 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
47793 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47794 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
47795 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47796 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
47797 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47798 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
47799 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
47800 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47801 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
47802 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47803 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
47804 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
47805 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47806 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
47807 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47808 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
47809 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
47810 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47811 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
47812 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
47813 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
47814 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47815 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
47816 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47817 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
47818 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
47819 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47820 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
47821 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
47822 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
47823 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47824 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
47825 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47826 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
47827 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
47828 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47829 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
47830 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47831 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
47832 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
47833 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
47834 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
47835 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
47836 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
47837 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47838 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
47839 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47840 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
47841 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
5172800e
RD
47842 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
47843 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
47844 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47845 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47846 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
47847 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
47848 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
47849 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
47850 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
47851 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
47852 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47853 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
47854 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
47855 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
47856 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
3f7f284d
RD
47857 { (char *)"new_SearchCtrl", (PyCFunction) _wrap_new_SearchCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47858 { (char *)"new_PreSearchCtrl", (PyCFunction)_wrap_new_PreSearchCtrl, METH_NOARGS, NULL},
47859 { (char *)"SearchCtrl_Create", (PyCFunction) _wrap_SearchCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47860 { (char *)"SearchCtrl_SetMenu", (PyCFunction) _wrap_SearchCtrl_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
47861 { (char *)"SearchCtrl_GetMenu", (PyCFunction)_wrap_SearchCtrl_GetMenu, METH_O, NULL},
70b63a99
RD
47862 { (char *)"SearchCtrl_ShowSearchButton", (PyCFunction) _wrap_SearchCtrl_ShowSearchButton, METH_VARARGS | METH_KEYWORDS, NULL},
47863 { (char *)"SearchCtrl_IsSearchButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsSearchButtonVisible, METH_O, NULL},
47864 { (char *)"SearchCtrl_ShowCancelButton", (PyCFunction) _wrap_SearchCtrl_ShowCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
47865 { (char *)"SearchCtrl_IsCancelButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsCancelButtonVisible, METH_O, NULL},
3f7f284d
RD
47866 { (char *)"SearchCtrl_SetSearchBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47867 { (char *)"SearchCtrl_SetSearchMenuBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchMenuBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47868 { (char *)"SearchCtrl_SetCancelBitmap", (PyCFunction) _wrap_SearchCtrl_SetCancelBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47869 { (char *)"SearchCtrl_swigregister", SearchCtrl_swigregister, METH_VARARGS, NULL},
47870 { (char *)"SearchCtrl_swiginit", SearchCtrl_swiginit, METH_VARARGS, NULL},
0085ce49
RD
47871 { NULL, NULL, 0, NULL }
47872};
47873
47874
47875/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
47876
47877static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
47878 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
47879}
47880static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
47881 return (void *)((wxEvent *) ((wxMenuEvent *) x));
47882}
47883static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
47884 return (void *)((wxEvent *) ((wxCloseEvent *) x));
47885}
47886static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
47887 return (void *)((wxEvent *) ((wxMouseEvent *) x));
47888}
47889static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
47890 return (void *)((wxEvent *) ((wxEraseEvent *) x));
47891}
47892static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
47893 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47894}
47895static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
47896 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47897}
47898static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
47899 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
47900}
b850e7f3
RD
47901static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
47902 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
47903}
47904static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
47905 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47906}
47907static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
47908 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
47909}
0085ce49
RD
47910static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
47911 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
47912}
47913static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
47914 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
47915}
47916static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
47917 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
47918}
0085ce49
RD
47919static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
47920 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
47921}
34e0a3bb
RD
47922static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
47923 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
47924}
2131d850
RD
47925static void *_p_wxPyEventTo_p_wxEvent(void *x) {
47926 return (void *)((wxEvent *) ((wxPyEvent *) x));
47927}
0085ce49
RD
47928static void *_p_wxListEventTo_p_wxEvent(void *x) {
47929 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47930}
47931static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
47932 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47933}
47934static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
47935 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47936}
47937static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
47938 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47939}
47940static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
47941 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47942}
47943static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
47944 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47945}
47946static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
47947 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
47948}
47949static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
47950 return (void *)((wxEvent *) ((wxIdleEvent *) x));
47951}
47952static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
47953 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
47954}
47955static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
47956 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
47957}
47958static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
47959 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
47960}
47961static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
47962 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
47963}
47964static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
47965 return (void *)((wxEvent *) ((wxActivateEvent *) x));
47966}
47967static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
47968 return (void *)((wxEvent *) ((wxSizeEvent *) x));
47969}
47970static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
47971 return (void *)((wxEvent *) ((wxMoveEvent *) x));
47972}
47973static void *_p_wxDateEventTo_p_wxEvent(void *x) {
47974 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
47975}
5172800e
RD
47976static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
47977 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47978}
0085ce49
RD
47979static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
47980 return (void *)((wxEvent *) ((wxPaintEvent *) x));
47981}
47982static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
47983 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
47984}
34e0a3bb
RD
47985static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
47986 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
47987}
0085ce49
RD
47988static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
47989 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
47990}
47991static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
47992 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
47993}
47994static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
47995 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
47996}
47997static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
47998 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47999}
48000static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
48001 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
48002}
704eda0c
RD
48003static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
48004 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
48005}
0085ce49
RD
48006static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
48007 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
48008}
48009static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
48010 return (void *)((wxEvent *) ((wxFocusEvent *) x));
48011}
48012static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
48013 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
48014}
48015static void *_p_wxShowEventTo_p_wxEvent(void *x) {
48016 return (void *)((wxEvent *) ((wxShowEvent *) x));
48017}
48018static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
48019 return (void *)((wxEvent *) ((wxCommandEvent *) x));
48020}
48021static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
48022 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
48023}
48024static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
48025 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48026}
48027static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
48028 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
48029}
48030static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
48031 return (void *)((wxEvent *) ((wxKeyEvent *) x));
48032}
48033static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
48034 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
48035}
48036static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
48037 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48038}
b850e7f3
RD
48039static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
48040 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
48041}
48042static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
48043 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
48044}
48045static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
48046 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
48047}
48048static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
48049 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
48050}
0085ce49
RD
48051static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
48052 return (void *)((wxItemContainer *) ((wxComboBox *) x));
48053}
48054static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
48055 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48056}
48057static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
48058 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
48059}
48060static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
48061 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
48062}
48063static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
48064 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
48065}
48066static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
48067 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48068}
48069static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
48070 return (void *)((wxPyListCtrl *) ((wxListView *) x));
48071}
5172800e
RD
48072static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
48073 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
48074}
0085ce49
RD
48075static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
48076 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
48077}
48078static void *_p_wxToolBarTo_p_wxControl(void *x) {
48079 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
48080}
b850e7f3
RD
48081static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
48082 return (void *)((wxControl *) ((wxPickerBase *) x));
48083}
0085ce49
RD
48084static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
48085 return (void *)((wxControl *) ((wxToggleButton *) x));
48086}
48087static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
48088 return (void *)((wxControl *) ((wxRadioButton *) x));
48089}
3f7f284d
RD
48090static void *_p_wxSearchCtrlTo_p_wxControl(void *x) {
48091 return (void *)((wxControl *) (wxTextCtrl *) ((wxSearchCtrl *) x));
48092}
0085ce49
RD
48093static void *_p_wxToolbookTo_p_wxControl(void *x) {
48094 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
48095}
48096static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
48097 return (void *)((wxControl *) ((wxToolBarBase *) x));
48098}
48099static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
48100 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48101}
48102static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
48103 return (void *)((wxControl *) ((wxPyListCtrl *) x));
48104}
48105static void *_p_wxComboBoxTo_p_wxControl(void *x) {
48106 return (void *)((wxControl *) ((wxComboBox *) x));
48107}
48108static void *_p_wxPyControlTo_p_wxControl(void *x) {
48109 return (void *)((wxControl *) ((wxPyControl *) x));
48110}
48111static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
48112 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
48113}
48114static void *_p_wxScrollBarTo_p_wxControl(void *x) {
48115 return (void *)((wxControl *) ((wxScrollBar *) x));
48116}
48117static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
48118 return (void *)((wxControl *) ((wxControlWithItems *) x));
48119}
48120static void *_p_wxGaugeTo_p_wxControl(void *x) {
48121 return (void *)((wxControl *) ((wxGauge *) x));
48122}
48123static void *_p_wxStaticLineTo_p_wxControl(void *x) {
48124 return (void *)((wxControl *) ((wxStaticLine *) x));
48125}
48126static void *_p_wxChoicebookTo_p_wxControl(void *x) {
48127 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
48128}
48129static void *_p_wxListbookTo_p_wxControl(void *x) {
48130 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
48131}
704eda0c
RD
48132static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
48133 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
48134}
0085ce49
RD
48135static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
48136 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
48137}
48138static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
48139 return (void *)((wxControl *) ((wxCheckBox *) x));
48140}
48141static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
48142 return (void *)((wxControl *) ((wxRadioBox *) x));
48143}
48144static void *_p_wxChoiceTo_p_wxControl(void *x) {
48145 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
48146}
48147static void *_p_wxListBoxTo_p_wxControl(void *x) {
48148 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
48149}
48150static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
48151 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48152}
48153static void *_p_wxListViewTo_p_wxControl(void *x) {
48154 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
48155}
48156static void *_p_wxNotebookTo_p_wxControl(void *x) {
48157 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
48158}
48159static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
48160 return (void *)((wxControl *) ((wxStaticBitmap *) x));
48161}
48162static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
48163 return (void *)((wxControl *) ((wxSpinCtrl *) x));
48164}
48165static void *_p_wxStaticTextTo_p_wxControl(void *x) {
48166 return (void *)((wxControl *) ((wxStaticText *) x));
48167}
48168static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
48169 return (void *)((wxControl *) ((wxStaticBox *) x));
48170}
48171static void *_p_wxSliderTo_p_wxControl(void *x) {
48172 return (void *)((wxControl *) ((wxSlider *) x));
48173}
48174static void *_p_wxTreebookTo_p_wxControl(void *x) {
48175 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
48176}
48177static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
48178 return (void *)((wxControl *) ((wxSpinButton *) x));
48179}
48180static void *_p_wxButtonTo_p_wxControl(void *x) {
48181 return (void *)((wxControl *) ((wxButton *) x));
48182}
48183static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
48184 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
48185}
48186static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
48187 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48188}
48189static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
48190 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
48191}
b850e7f3
RD
48192static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
48193 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
48194}
48195static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
48196 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
48197}
48198static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
48199 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
48200}
48201static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
48202 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
48203}
0085ce49
RD
48204static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
48205 return (void *)((wxControl *) ((wxTextCtrl *) x));
48206}
48207static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
48208 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
48209}
48210static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
48211 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
48212}
3f7f284d
RD
48213static void *_p_wxSearchCtrlTo_p_wxTextCtrl(void *x) {
48214 return (void *)((wxTextCtrl *) ((wxSearchCtrl *) x));
48215}
0085ce49
RD
48216static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
48217 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48218}
48219static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
48220 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
48221}
48222static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
48223 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
48224}
48225static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
48226 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
48227}
48228static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
48229 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48230}
48231static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
48232 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48233}
48234static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
48235 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48236}
48237static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
48238 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48239}
48240static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
48241 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48242}
48243static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
48244 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
48245}
48246static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
48247 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
48248}
48249static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
48250 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
48251}
48252static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
48253 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
48254}
48255static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
48256 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
48257}
5172800e
RD
48258static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
48259 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48260}
0085ce49
RD
48261static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
48262 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
48263}
48264static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
48265 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48266}
48267static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
48268 return (void *)((wxEvtHandler *) ((wxValidator *) x));
48269}
48270static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
48271 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
48272}
48273static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
48274 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48275}
b850e7f3
RD
48276static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
48277 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
48278}
0085ce49
RD
48279static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
48280 return (void *)((wxEvtHandler *) ((wxMenu *) x));
48281}
48282static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
48283 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
48284}
48285static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
48286 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
48287}
3f7f284d
RD
48288static void *_p_wxSearchCtrlTo_p_wxEvtHandler(void *x) {
48289 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48290}
0085ce49
RD
48291static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
48292 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48293}
48294static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
48295 return (void *)((wxEvtHandler *) ((wxWindow *) x));
48296}
48297static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
48298 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
48299}
48300static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
48301 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
48302}
48303static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
48304 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48305}
48306static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
48307 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48308}
48309static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
48310 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48311}
48312static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
48313 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
48314}
48315static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
48316 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
48317}
48318static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
48319 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48320}
48321static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
48322 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
48323}
48324static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
48325 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48326}
48327static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
48328 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
48329}
48330static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
48331 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
48332}
48333static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
48334 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48335}
48336static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
48337 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48338}
704eda0c
RD
48339static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
48340 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48341}
0085ce49
RD
48342static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
48343 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48344}
48345static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
48346 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
48347}
48348static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
48349 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
48350}
48351static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
48352 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48353}
48354static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
48355 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48356}
48357static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
48358 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48359}
48360static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
48361 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48362}
48363static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
48364 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48365}
48366static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
48367 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48368}
48369static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
48370 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48371}
48372static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
48373 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
48374}
48375static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
48376 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
48377}
48378static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
48379 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
48380}
48381static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
48382 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48383}
48384static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
48385 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
48386}
48387static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
48388 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
48389}
48390static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
48391 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48392}
48393static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
48394 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48395}
48396static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
48397 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48398}
b850e7f3
RD
48399static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
48400 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48401}
48402static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
48403 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48404}
48405static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
48406 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48407}
48408static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
48409 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48410}
0085ce49
RD
48411static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
48412 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48413}
48414static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
48415 return (void *)((wxListBox *) ((wxCheckListBox *) x));
48416}
48417static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
48418 return (void *)((wxButton *) ((wxBitmapButton *) x));
48419}
48420static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
48421 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
48422}
48423static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
48424 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
48425}
48426static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
48427 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
48428}
48429static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
48430 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
48431}
48432static void *_p_wxToolbookTo_p_wxObject(void *x) {
48433 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48434}
0085ce49
RD
48435static void *_p_wxSizerItemTo_p_wxObject(void *x) {
48436 return (void *)((wxObject *) ((wxSizerItem *) x));
48437}
34e0a3bb
RD
48438static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
48439 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
48440}
0085ce49
RD
48441static void *_p_wxScrollEventTo_p_wxObject(void *x) {
48442 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
48443}
48444static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
48445 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
48446}
48447static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
48448 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
48449}
48450static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
48451 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
48452}
48453static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
48454 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
48455}
48456static void *_p_wxSizerTo_p_wxObject(void *x) {
48457 return (void *)((wxObject *) ((wxSizer *) x));
48458}
48459static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
48460 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
48461}
48462static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
48463 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
48464}
48465static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
48466 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48467}
48468static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
48469 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
48470}
48471static void *_p_wxEventTo_p_wxObject(void *x) {
48472 return (void *)((wxObject *) ((wxEvent *) x));
48473}
48474static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
48475 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
48476}
48477static void *_p_wxGridSizerTo_p_wxObject(void *x) {
48478 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
48479}
3f7f284d
RD
48480static void *_p_wxSearchCtrlTo_p_wxObject(void *x) {
48481 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48482}
0085ce49
RD
48483static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
48484 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
48485}
48486static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
48487 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48488}
b850e7f3
RD
48489static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
48490 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
48491}
0085ce49
RD
48492static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
48493 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48494}
48495static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
48496 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48497}
2131d850
RD
48498static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
48499 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
48500}
0085ce49
RD
48501static void *_p_wxPaintEventTo_p_wxObject(void *x) {
48502 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
48503}
48504static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
48505 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
48506}
48507static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
48508 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
48509}
48510static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
48511 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
48512}
48513static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
48514 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48515}
48516static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
48517 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
48518}
48519static void *_p_wxStaticLineTo_p_wxObject(void *x) {
48520 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
48521}
48522static void *_p_wxControlTo_p_wxObject(void *x) {
48523 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
48524}
48525static void *_p_wxPyControlTo_p_wxObject(void *x) {
48526 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
48527}
48528static void *_p_wxGaugeTo_p_wxObject(void *x) {
48529 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
48530}
48531static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
48532 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
48533}
48534static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
48535 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
48536}
48537static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
48538 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48539}
48540static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
48541 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
48542}
b850e7f3
RD
48543static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
48544 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
48545}
48546static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
48547 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48548}
48549static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
48550 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
48551}
0085ce49
RD
48552static void *_p_wxChoiceTo_p_wxObject(void *x) {
48553 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48554}
48555static void *_p_wxFSFileTo_p_wxObject(void *x) {
48556 return (void *)((wxObject *) ((wxFSFile *) x));
48557}
48558static void *_p_wxPySizerTo_p_wxObject(void *x) {
48559 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
48560}
48561static void *_p_wxTreebookTo_p_wxObject(void *x) {
48562 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48563}
48564static void *_p_wxListViewTo_p_wxObject(void *x) {
48565 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48566}
704eda0c
RD
48567static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
48568 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
48569}
0085ce49
RD
48570static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
48571 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48572}
48573static void *_p_wxNotebookTo_p_wxObject(void *x) {
48574 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48575}
48576static void *_p_wxPyEventTo_p_wxObject(void *x) {
48577 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
48578}
48579static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
48580 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
48581}
48582static void *_p_wxChoicebookTo_p_wxObject(void *x) {
48583 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48584}
48585static void *_p_wxListbookTo_p_wxObject(void *x) {
48586 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48587}
48588static void *_p_wxShowEventTo_p_wxObject(void *x) {
48589 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
48590}
48591static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
48592 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48593}
48594static void *_p_wxSliderTo_p_wxObject(void *x) {
48595 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
48596}
48597static void *_p_wxMenuItemTo_p_wxObject(void *x) {
48598 return (void *)((wxObject *) ((wxMenuItem *) x));
48599}
48600static void *_p_wxDateEventTo_p_wxObject(void *x) {
48601 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
48602}
48603static void *_p_wxIdleEventTo_p_wxObject(void *x) {
48604 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
48605}
48606static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
48607 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
48608}
48609static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
48610 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
48611}
48612static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
48613 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
48614}
48615static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
48616 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
48617}
48618static void *_p_wxSizeEventTo_p_wxObject(void *x) {
48619 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
48620}
48621static void *_p_wxMoveEventTo_p_wxObject(void *x) {
48622 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
48623}
48624static void *_p_wxActivateEventTo_p_wxObject(void *x) {
48625 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
48626}
48627static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
48628 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
48629}
48630static void *_p_wxContextHelpTo_p_wxObject(void *x) {
48631 return (void *)((wxObject *) ((wxContextHelp *) x));
48632}
5172800e
RD
48633static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
48634 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48635}
0085ce49
RD
48636static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
48637 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48638}
48639static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
48640 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
48641}
48642static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
48643 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
48644}
48645static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
48646 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
48647}
48648static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
48649 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
48650}
48651static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
48652 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
48653}
48654static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
48655 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
48656}
48657static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
48658 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
48659}
48660static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
48661 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
48662}
48663static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
48664 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
48665}
48666static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
48667 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
48668}
48669static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
48670 return (void *)((wxObject *) ((wxImageHandler *) x));
48671}
48672static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
48673 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
48674}
48675static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
48676 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
48677}
580080c5
RD
48678static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
48679 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
48680}
0085ce49
RD
48681static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
48682 return (void *)((wxObject *) ((wxEvtHandler *) x));
48683}
34e0a3bb
RD
48684static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
48685 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
48686}
0085ce49
RD
48687static void *_p_wxListEventTo_p_wxObject(void *x) {
48688 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48689}
48690static void *_p_wxListBoxTo_p_wxObject(void *x) {
48691 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48692}
48693static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
48694 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48695}
48696static void *_p_wxButtonTo_p_wxObject(void *x) {
48697 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
48698}
48699static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
48700 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48701}
48702static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
48703 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
48704}
48705static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
48706 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48707}
0085ce49
RD
48708static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
48709 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
48710}
580080c5
RD
48711static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
48712 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
48713}
0085ce49
RD
48714static void *_p_wxScrollBarTo_p_wxObject(void *x) {
48715 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
48716}
48717static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
48718 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
48719}
48720static void *_p_wxComboBoxTo_p_wxObject(void *x) {
48721 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
48722}
48723static void *_p_wxHelpEventTo_p_wxObject(void *x) {
48724 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
48725}
48726static void *_p_wxListItemTo_p_wxObject(void *x) {
48727 return (void *)((wxObject *) ((wxListItem *) x));
48728}
48729static void *_p_wxImageTo_p_wxObject(void *x) {
48730 return (void *)((wxObject *) ((wxImage *) x));
48731}
48732static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
48733 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
48734}
48735static void *_p_wxSpinEventTo_p_wxObject(void *x) {
48736 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48737}
48738static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
48739 return (void *)((wxObject *) ((wxGenericDragImage *) x));
48740}
48741static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
48742 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48743}
48744static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
48745 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48746}
48747static void *_p_wxListbookEventTo_p_wxObject(void *x) {
48748 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48749}
48750static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
48751 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48752}
48753static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
48754 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48755}
48756static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
48757 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48758}
48759static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
48760 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48761}
48762static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
48763 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
48764}
48765static void *_p_wxKeyEventTo_p_wxObject(void *x) {
48766 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
48767}
48768static void *_p_wxWindowTo_p_wxObject(void *x) {
48769 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
48770}
48771static void *_p_wxMenuTo_p_wxObject(void *x) {
48772 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
48773}
48774static void *_p_wxMenuBarTo_p_wxObject(void *x) {
48775 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
48776}
48777static void *_p_wxFileSystemTo_p_wxObject(void *x) {
48778 return (void *)((wxObject *) ((wxFileSystem *) x));
48779}
5172800e
RD
48780static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
48781 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48782}
0085ce49
RD
48783static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
48784 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
48785}
48786static void *_p_wxMenuEventTo_p_wxObject(void *x) {
48787 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
48788}
48789static void *_p_wxPyAppTo_p_wxObject(void *x) {
48790 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
48791}
48792static void *_p_wxCloseEventTo_p_wxObject(void *x) {
48793 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
48794}
48795static void *_p_wxMouseEventTo_p_wxObject(void *x) {
48796 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
48797}
48798static void *_p_wxEraseEventTo_p_wxObject(void *x) {
48799 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
48800}
48801static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
48802 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48803}
48804static void *_p_wxTreeEventTo_p_wxObject(void *x) {
48805 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
48806}
48807static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
48808 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
48809}
48810static void *_p_wxCommandEventTo_p_wxObject(void *x) {
48811 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
48812}
48813static void *_p_wxStaticTextTo_p_wxObject(void *x) {
48814 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
48815}
48816static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
48817 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
48818}
48819static void *_p_wxFocusEventTo_p_wxObject(void *x) {
48820 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
48821}
48822static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
48823 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
48824}
48825static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
48826 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48827}
b850e7f3
RD
48828static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
48829 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48830}
48831static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
48832 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48833}
48834static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
48835 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48836}
48837static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
48838 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48839}
0085ce49
RD
48840static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
48841 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48842}
704eda0c
RD
48843static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
48844 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48845}
0085ce49
RD
48846static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
48847 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
48848}
48849static void *_p_wxToolBarTo_p_wxObject(void *x) {
48850 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48851}
48852static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
48853 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
48854}
48855static void *_p_wxValidatorTo_p_wxObject(void *x) {
48856 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
48857}
5172800e
RD
48858static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
48859 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
48860}
0085ce49
RD
48861static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
48862 return (void *)((wxWindow *) ((wxMenuBar *) x));
48863}
48864static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
48865 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
48866}
48867static void *_p_wxToolBarTo_p_wxWindow(void *x) {
48868 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48869}
b850e7f3
RD
48870static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
48871 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
48872}
0085ce49
RD
48873static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
48874 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
48875}
48876static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
48877 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
48878}
3f7f284d
RD
48879static void *_p_wxSearchCtrlTo_p_wxWindow(void *x) {
48880 return (void *)((wxWindow *) (wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48881}
0085ce49
RD
48882static void *_p_wxToolbookTo_p_wxWindow(void *x) {
48883 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48884}
48885static void *_p_wxControlTo_p_wxWindow(void *x) {
48886 return (void *)((wxWindow *) ((wxControl *) x));
48887}
48888static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
48889 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
48890}
48891static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
48892 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
48893}
48894static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
48895 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
48896}
48897static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
48898 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48899}
48900static void *_p_wxPyControlTo_p_wxWindow(void *x) {
48901 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
48902}
48903static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
48904 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
48905}
48906static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
48907 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
48908}
48909static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
48910 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
48911}
48912static void *_p_wxGaugeTo_p_wxWindow(void *x) {
48913 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
48914}
48915static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
48916 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
48917}
48918static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
48919 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48920}
48921static void *_p_wxListbookTo_p_wxWindow(void *x) {
48922 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48923}
704eda0c
RD
48924static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
48925 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
48926}
0085ce49
RD
48927static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
48928 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
48929}
48930static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
48931 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
48932}
48933static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
48934 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
48935}
48936static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
48937 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48938}
48939static void *_p_wxChoiceTo_p_wxWindow(void *x) {
48940 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48941}
48942static void *_p_wxListBoxTo_p_wxWindow(void *x) {
48943 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48944}
48945static void *_p_wxListViewTo_p_wxWindow(void *x) {
48946 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48947}
48948static void *_p_wxNotebookTo_p_wxWindow(void *x) {
48949 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48950}
48951static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
48952 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
48953}
48954static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
48955 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
48956}
48957static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
48958 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
48959}
48960static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
48961 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
48962}
48963static void *_p_wxSliderTo_p_wxWindow(void *x) {
48964 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
48965}
48966static void *_p_wxTreebookTo_p_wxWindow(void *x) {
48967 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48968}
48969static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
48970 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
48971}
48972static void *_p_wxButtonTo_p_wxWindow(void *x) {
48973 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
48974}
48975static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
48976 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
48977}
48978static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
48979 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48980}
48981static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
48982 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
48983}
b850e7f3
RD
48984static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
48985 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48986}
48987static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
48988 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48989}
48990static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
48991 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48992}
48993static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
48994 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48995}
0085ce49
RD
48996static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
48997 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
48998}
48999static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49000 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49001}
49002static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49003 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49004}
49005static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49006 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49007}
49008static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49009 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49010}
49011static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49012 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49013}
49014static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
49015 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
49016}
704eda0c
RD
49017static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
49018 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
49019}
2131d850
RD
49020static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
49021 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
49022}
b850e7f3
RD
49023static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
49024 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
49025}
49026static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
49027 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
49028}
49029static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
49030 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
49031}
0085ce49
RD
49032static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
49033 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
49034}
49035static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
49036 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
49037}
49038static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
49039 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
49040}
49041static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
49042 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
49043}
49044static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
49045 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
49046}
0085ce49
RD
49047static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
49048 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49049}
2131d850
RD
49050static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
49051 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49052}
0085ce49
RD
49053static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
49054 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49055}
49056static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
49057 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49058}
49059static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
49060 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49061}
49062static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
49063 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
49064}
49065static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
49066 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
49067}
49068static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
49069 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
49070}
5172800e
RD
49071static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
49072 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
49073}
0085ce49
RD
49074static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
49075 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49076}
49077static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
49078 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
49079}
49080static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
49081 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
49082}
49083static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
49084 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
49085}
49086static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
49087 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
49088}
49089static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
49090 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
49091}
49092static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
49093 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
49094}
49095static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
49096 return (void *)((wxControlWithItems *) ((wxChoice *) x));
49097}
49098static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
49099 return (void *)((wxControlWithItems *) ((wxListBox *) x));
49100}
49101static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
49102 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
49103}
49104static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
49105 return (void *)((wxValidator *) ((wxPyValidator *) x));
49106}
49107static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
49108static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
49109static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
49110static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
49111static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
49112static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
49113static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
49114static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
49115static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
49116static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
49117static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
49118static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
49119static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
49120static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
49121static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
49122static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
49123static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
49124static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
49125static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
49126static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
49127static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
5172800e
RD
49128static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
49129static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
0085ce49 49130static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
49131static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
49132static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
49133static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
49134static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
49135static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 49136static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
49137static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
49138static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
49139static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
49140static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
49141static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
49142static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
49143static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
49144static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
49145static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
49146static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
49147static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
49148static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
49149static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
49150static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
49151static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
49152static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 49153static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
0085ce49
RD
49154static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
49155static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
49156static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
49157static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
49158static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
49159static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
49160static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
49161static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
34e0a3bb 49162static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
0085ce49
RD
49163static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
49164static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
49165static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
49166static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
49167static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
49168static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
34e0a3bb 49169static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
0085ce49
RD
49170static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
49171static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
49172static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
49173static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
49174static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
49175static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
49176static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
49177static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
49178static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
49179static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
49180static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
49181static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
49182static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
49183static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
49184static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
b850e7f3
RD
49185static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
49186static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
0085ce49 49187static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
49188static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
49189static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
49190static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
49191static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
49192static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
49193static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
49194static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
49195static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
49196static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
49197static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
49198static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
49199static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
49200static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
49201static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
49202static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
49203static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
49204static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
49205static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
49206static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
49207static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
49208static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
3f7f284d 49209static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
0085ce49
RD
49210static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
49211static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
49212static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
49213static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
49214static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
49215static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
0085ce49 49216static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 49217static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
0085ce49
RD
49218static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
49219static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
49220static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
49221static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
49222static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
49223static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
49224static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
49225static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
49226static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
49227static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
0085ce49
RD
49228static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
49229static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
49230static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
3f7f284d 49231static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
5172800e 49232static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
49233static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
49234static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
49235static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
49236static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 49237static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 49238static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
0085ce49
RD
49239static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
49240static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
580080c5 49241static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
0085ce49 49242static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 49243static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
0085ce49
RD
49244static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
49245static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
49246static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 49247static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
0085ce49
RD
49248static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
49249static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
49250static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
49251static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
49252static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
49253static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
49254static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
49255static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
49256static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
3f7f284d 49257static swig_type_info _swigt__p_wxSearchCtrl = {"_p_wxSearchCtrl", "wxSearchCtrl *", 0, 0, (void*)0, 0};
0085ce49
RD
49258static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
49259static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
49260static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
49261static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
49262static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
49263static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
49264static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
49265static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
49266static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
49267static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
49268static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
49269static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
49270static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
49271static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
49272static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
49273static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
49274static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
49275static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
49276static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
49277static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
0085ce49
RD
49278static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
49279static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
49280static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
49281static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
49282static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
49283static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
49284static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 49285static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
0085ce49
RD
49286
49287static swig_type_info *swig_type_initial[] = {
49288 &_swigt__p_bool,
49289 &_swigt__p_char,
49290 &_swigt__p_form_ops_t,
49291 &_swigt__p_int,
49292 &_swigt__p_long,
49293 &_swigt__p_unsigned_char,
49294 &_swigt__p_unsigned_int,
49295 &_swigt__p_unsigned_long,
49296 &_swigt__p_void,
49297 &_swigt__p_wxANIHandler,
49298 &_swigt__p_wxAcceleratorTable,
49299 &_swigt__p_wxActivateEvent,
49300 &_swigt__p_wxArrayInt,
49301 &_swigt__p_wxArrayString,
49302 &_swigt__p_wxBMPHandler,
49303 &_swigt__p_wxBitmap,
49304 &_swigt__p_wxBitmapButton,
49305 &_swigt__p_wxBookCtrlBase,
49306 &_swigt__p_wxBookCtrlBaseEvent,
49307 &_swigt__p_wxBoxSizer,
49308 &_swigt__p_wxButton,
49309 &_swigt__p_wxCURHandler,
49310 &_swigt__p_wxCheckBox,
49311 &_swigt__p_wxCheckListBox,
49312 &_swigt__p_wxChildFocusEvent,
49313 &_swigt__p_wxChoice,
49314 &_swigt__p_wxChoicebook,
49315 &_swigt__p_wxChoicebookEvent,
2131d850 49316 &_swigt__p_wxClipboardTextEvent,
0085ce49 49317 &_swigt__p_wxCloseEvent,
5172800e
RD
49318 &_swigt__p_wxCollapsiblePane,
49319 &_swigt__p_wxCollapsiblePaneEvent,
0085ce49 49320 &_swigt__p_wxColour,
b850e7f3
RD
49321 &_swigt__p_wxColourPickerCtrl,
49322 &_swigt__p_wxColourPickerEvent,
0085ce49
RD
49323 &_swigt__p_wxComboBox,
49324 &_swigt__p_wxCommandEvent,
49325 &_swigt__p_wxContextHelp,
49326 &_swigt__p_wxContextHelpButton,
49327 &_swigt__p_wxContextMenuEvent,
49328 &_swigt__p_wxControl,
49329 &_swigt__p_wxControlWithItems,
49330 &_swigt__p_wxCursor,
49331 &_swigt__p_wxDC,
49332 &_swigt__p_wxDateEvent,
49333 &_swigt__p_wxDatePickerCtrl,
49334 &_swigt__p_wxDateTime,
49335 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 49336 &_swigt__p_wxDirPickerCtrl,
0085ce49
RD
49337 &_swigt__p_wxDisplayChangedEvent,
49338 &_swigt__p_wxDropFilesEvent,
49339 &_swigt__p_wxDuplexMode,
49340 &_swigt__p_wxEraseEvent,
49341 &_swigt__p_wxEvent,
49342 &_swigt__p_wxEvtHandler,
49343 &_swigt__p_wxFSFile,
b850e7f3
RD
49344 &_swigt__p_wxFileDirPickerEvent,
49345 &_swigt__p_wxFilePickerCtrl,
0085ce49
RD
49346 &_swigt__p_wxFileSystem,
49347 &_swigt__p_wxFlexGridSizer,
49348 &_swigt__p_wxFocusEvent,
49349 &_swigt__p_wxFont,
b850e7f3
RD
49350 &_swigt__p_wxFontPickerCtrl,
49351 &_swigt__p_wxFontPickerEvent,
0085ce49
RD
49352 &_swigt__p_wxGBSizerItem,
49353 &_swigt__p_wxGIFHandler,
49354 &_swigt__p_wxGauge,
49355 &_swigt__p_wxGenericDirCtrl,
49356 &_swigt__p_wxGenericDragImage,
49357 &_swigt__p_wxGridBagSizer,
49358 &_swigt__p_wxGridSizer,
49359 &_swigt__p_wxHelpEvent,
49360 &_swigt__p_wxHelpProvider,
704eda0c
RD
49361 &_swigt__p_wxHyperlinkCtrl,
49362 &_swigt__p_wxHyperlinkEvent,
0085ce49
RD
49363 &_swigt__p_wxICOHandler,
49364 &_swigt__p_wxIcon,
49365 &_swigt__p_wxIconizeEvent,
49366 &_swigt__p_wxIdleEvent,
49367 &_swigt__p_wxImage,
49368 &_swigt__p_wxImageHandler,
49369 &_swigt__p_wxImageList,
49370 &_swigt__p_wxIndividualLayoutConstraint,
49371 &_swigt__p_wxInitDialogEvent,
49372 &_swigt__p_wxItemContainer,
49373 &_swigt__p_wxJPEGHandler,
49374 &_swigt__p_wxKeyEvent,
49375 &_swigt__p_wxLayoutConstraints,
49376 &_swigt__p_wxListBox,
49377 &_swigt__p_wxListEvent,
49378 &_swigt__p_wxListItem,
49379 &_swigt__p_wxListItemAttr,
49380 &_swigt__p_wxListView,
49381 &_swigt__p_wxListbook,
49382 &_swigt__p_wxListbookEvent,
49383 &_swigt__p_wxMaximizeEvent,
49384 &_swigt__p_wxMemoryDC,
49385 &_swigt__p_wxMenu,
49386 &_swigt__p_wxMenuBar,
49387 &_swigt__p_wxMenuEvent,
49388 &_swigt__p_wxMenuItem,
49389 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 49390 &_swigt__p_wxMouseCaptureLostEvent,
0085ce49
RD
49391 &_swigt__p_wxMouseEvent,
49392 &_swigt__p_wxMoveEvent,
49393 &_swigt__p_wxNavigationKeyEvent,
49394 &_swigt__p_wxNcPaintEvent,
49395 &_swigt__p_wxNotebook,
49396 &_swigt__p_wxNotebookEvent,
49397 &_swigt__p_wxNotifyEvent,
49398 &_swigt__p_wxObject,
49399 &_swigt__p_wxPCXHandler,
49400 &_swigt__p_wxPNGHandler,
49401 &_swigt__p_wxPNMHandler,
49402 &_swigt__p_wxPaintEvent,
49403 &_swigt__p_wxPaletteChangedEvent,
49404 &_swigt__p_wxPaperSize,
b850e7f3 49405 &_swigt__p_wxPickerBase,
0085ce49
RD
49406 &_swigt__p_wxPoint,
49407 &_swigt__p_wxPyApp,
49408 &_swigt__p_wxPyCommandEvent,
49409 &_swigt__p_wxPyControl,
49410 &_swigt__p_wxPyEvent,
49411 &_swigt__p_wxPyImageHandler,
49412 &_swigt__p_wxPyListCtrl,
49413 &_swigt__p_wxPySizer,
49414 &_swigt__p_wxPyTreeCtrl,
49415 &_swigt__p_wxPyTreeItemData,
49416 &_swigt__p_wxPyValidator,
49417 &_swigt__p_wxQueryNewPaletteEvent,
49418 &_swigt__p_wxRadioBox,
49419 &_swigt__p_wxRadioButton,
49420 &_swigt__p_wxRect,
49421 &_swigt__p_wxScrollBar,
49422 &_swigt__p_wxScrollEvent,
49423 &_swigt__p_wxScrollWinEvent,
3f7f284d 49424 &_swigt__p_wxSearchCtrl,
0085ce49
RD
49425 &_swigt__p_wxSetCursorEvent,
49426 &_swigt__p_wxShowEvent,
49427 &_swigt__p_wxSimpleHelpProvider,
49428 &_swigt__p_wxSize,
49429 &_swigt__p_wxSizeEvent,
49430 &_swigt__p_wxSizer,
49431 &_swigt__p_wxSizerItem,
49432 &_swigt__p_wxSlider,
49433 &_swigt__p_wxSpinButton,
49434 &_swigt__p_wxSpinCtrl,
49435 &_swigt__p_wxSpinEvent,
49436 &_swigt__p_wxStaticBitmap,
49437 &_swigt__p_wxStaticBox,
49438 &_swigt__p_wxStaticBoxSizer,
49439 &_swigt__p_wxStaticLine,
49440 &_swigt__p_wxStaticText,
49441 &_swigt__p_wxStdDialogButtonSizer,
49442 &_swigt__p_wxString,
49443 &_swigt__p_wxSysColourChangedEvent,
580080c5 49444 &_swigt__p_wxTGAHandler,
0085ce49
RD
49445 &_swigt__p_wxTIFFHandler,
49446 &_swigt__p_wxTextAttr,
49447 &_swigt__p_wxTextCtrl,
49448 &_swigt__p_wxTextUrlEvent,
49449 &_swigt__p_wxToggleButton,
49450 &_swigt__p_wxToolBar,
49451 &_swigt__p_wxToolBarBase,
49452 &_swigt__p_wxToolBarToolBase,
49453 &_swigt__p_wxToolbook,
49454 &_swigt__p_wxToolbookEvent,
0085ce49
RD
49455 &_swigt__p_wxTreeEvent,
49456 &_swigt__p_wxTreeItemId,
49457 &_swigt__p_wxTreebook,
49458 &_swigt__p_wxTreebookEvent,
49459 &_swigt__p_wxUpdateUIEvent,
49460 &_swigt__p_wxValidator,
49461 &_swigt__p_wxVisualAttributes,
49462 &_swigt__p_wxWindow,
b850e7f3 49463 &_swigt__p_wxWindowBase,
0085ce49
RD
49464 &_swigt__p_wxWindowCreateEvent,
49465 &_swigt__p_wxWindowDestroyEvent,
49466 &_swigt__p_wxXPMHandler,
49467};
49468
49469static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
49470static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
49471static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
49472static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
49473static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
49474static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
49475static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
49476static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
49477static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
49478static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
49479static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
49480static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
49481static 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}};
49482static 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}};
49483static 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}};
49484static 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}};
49485static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
49486static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
49487static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
49488static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
49489static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e
RD
49490static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
49491static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 49492static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
49493static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49494static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49495static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
49496static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 49497static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49498static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
49499static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
49500static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49501static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49502static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
49503static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
49504static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e 49505static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49506static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
49507static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49508static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxControl, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49509static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
49510static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
49511static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
49512static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49513static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
49514static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 49515static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49516static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
49517static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49518static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
49519static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
49520static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
49521static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
49522static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 49523static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49524static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
49525static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49526static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49527static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
49528static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49529static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 49530static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49531static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49532static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49533static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49534static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49535static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49536static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49537static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
49538static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49539static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
49540static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49541static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e 49542static 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}};
0085ce49
RD
49543static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
49544static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
49545static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49546static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_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_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_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
49547static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49548static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 49549static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
49550static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49551static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49552static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
49553static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
49554static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
49555static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
49556static 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
49557static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
49558static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49559static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
49560static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
49561static 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}};
49562static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49563static 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}};
49564static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
49565static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
49566static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
49567static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
49568static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
49569static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49570static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49571static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49572static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
49573static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
49574static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49575static 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}};
49576static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 49577static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 49578static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49579static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
49580static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49581static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49582static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
49583static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
49584static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49585static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49586static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
49587static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
49588static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49589static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
49590static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
49591static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49592static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
5172800e 49593static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
49594static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
49595static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
49596static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
49597static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 49598static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 49599static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49600static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
49601static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 49602static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 49603static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 49604static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49605static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
49606static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49607static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
0085ce49 49608static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 49609static swig_cast_info _swigc__p_wxPickerBase[] = { {&_swigt__p_wxPickerBase, 0, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxPickerBase, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49610static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
49611static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
49612static 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}};
49613static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
49614static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
49615static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
49616static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
49617static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
49618static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49619static swig_cast_info _swigc__p_wxSearchCtrl[] = { {&_swigt__p_wxSearchCtrl, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49620static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
49621static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
49622static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
49623static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
49624static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
49625static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
49626static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
49627static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
49628static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
49629static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
49630static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
49631static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49632static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxTextCtrl, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49633static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
49634static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
49635static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
49636static 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}};
49637static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
49638static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
49639static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49640static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
49641static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
49642static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
49643static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49644static 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}};
49645static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
3f7f284d 49646static 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 49647static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
49648
49649static swig_cast_info *swig_cast_initial[] = {
49650 _swigc__p_bool,
49651 _swigc__p_char,
49652 _swigc__p_form_ops_t,
49653 _swigc__p_int,
49654 _swigc__p_long,
49655 _swigc__p_unsigned_char,
49656 _swigc__p_unsigned_int,
49657 _swigc__p_unsigned_long,
49658 _swigc__p_void,
49659 _swigc__p_wxANIHandler,
49660 _swigc__p_wxAcceleratorTable,
49661 _swigc__p_wxActivateEvent,
49662 _swigc__p_wxArrayInt,
49663 _swigc__p_wxArrayString,
49664 _swigc__p_wxBMPHandler,
49665 _swigc__p_wxBitmap,
49666 _swigc__p_wxBitmapButton,
49667 _swigc__p_wxBookCtrlBase,
49668 _swigc__p_wxBookCtrlBaseEvent,
49669 _swigc__p_wxBoxSizer,
49670 _swigc__p_wxButton,
49671 _swigc__p_wxCURHandler,
49672 _swigc__p_wxCheckBox,
49673 _swigc__p_wxCheckListBox,
49674 _swigc__p_wxChildFocusEvent,
49675 _swigc__p_wxChoice,
49676 _swigc__p_wxChoicebook,
49677 _swigc__p_wxChoicebookEvent,
2131d850 49678 _swigc__p_wxClipboardTextEvent,
0085ce49 49679 _swigc__p_wxCloseEvent,
5172800e
RD
49680 _swigc__p_wxCollapsiblePane,
49681 _swigc__p_wxCollapsiblePaneEvent,
0085ce49 49682 _swigc__p_wxColour,
b850e7f3
RD
49683 _swigc__p_wxColourPickerCtrl,
49684 _swigc__p_wxColourPickerEvent,
0085ce49
RD
49685 _swigc__p_wxComboBox,
49686 _swigc__p_wxCommandEvent,
49687 _swigc__p_wxContextHelp,
49688 _swigc__p_wxContextHelpButton,
49689 _swigc__p_wxContextMenuEvent,
49690 _swigc__p_wxControl,
49691 _swigc__p_wxControlWithItems,
49692 _swigc__p_wxCursor,
49693 _swigc__p_wxDC,
49694 _swigc__p_wxDateEvent,
49695 _swigc__p_wxDatePickerCtrl,
49696 _swigc__p_wxDateTime,
49697 _swigc__p_wxDirFilterListCtrl,
b850e7f3 49698 _swigc__p_wxDirPickerCtrl,
0085ce49
RD
49699 _swigc__p_wxDisplayChangedEvent,
49700 _swigc__p_wxDropFilesEvent,
49701 _swigc__p_wxDuplexMode,
49702 _swigc__p_wxEraseEvent,
49703 _swigc__p_wxEvent,
49704 _swigc__p_wxEvtHandler,
49705 _swigc__p_wxFSFile,
b850e7f3
RD
49706 _swigc__p_wxFileDirPickerEvent,
49707 _swigc__p_wxFilePickerCtrl,
0085ce49
RD
49708 _swigc__p_wxFileSystem,
49709 _swigc__p_wxFlexGridSizer,
49710 _swigc__p_wxFocusEvent,
49711 _swigc__p_wxFont,
b850e7f3
RD
49712 _swigc__p_wxFontPickerCtrl,
49713 _swigc__p_wxFontPickerEvent,
0085ce49
RD
49714 _swigc__p_wxGBSizerItem,
49715 _swigc__p_wxGIFHandler,
49716 _swigc__p_wxGauge,
49717 _swigc__p_wxGenericDirCtrl,
49718 _swigc__p_wxGenericDragImage,
49719 _swigc__p_wxGridBagSizer,
49720 _swigc__p_wxGridSizer,
49721 _swigc__p_wxHelpEvent,
49722 _swigc__p_wxHelpProvider,
704eda0c
RD
49723 _swigc__p_wxHyperlinkCtrl,
49724 _swigc__p_wxHyperlinkEvent,
0085ce49
RD
49725 _swigc__p_wxICOHandler,
49726 _swigc__p_wxIcon,
49727 _swigc__p_wxIconizeEvent,
49728 _swigc__p_wxIdleEvent,
49729 _swigc__p_wxImage,
49730 _swigc__p_wxImageHandler,
49731 _swigc__p_wxImageList,
49732 _swigc__p_wxIndividualLayoutConstraint,
49733 _swigc__p_wxInitDialogEvent,
49734 _swigc__p_wxItemContainer,
49735 _swigc__p_wxJPEGHandler,
49736 _swigc__p_wxKeyEvent,
49737 _swigc__p_wxLayoutConstraints,
49738 _swigc__p_wxListBox,
49739 _swigc__p_wxListEvent,
49740 _swigc__p_wxListItem,
49741 _swigc__p_wxListItemAttr,
49742 _swigc__p_wxListView,
49743 _swigc__p_wxListbook,
49744 _swigc__p_wxListbookEvent,
49745 _swigc__p_wxMaximizeEvent,
49746 _swigc__p_wxMemoryDC,
49747 _swigc__p_wxMenu,
49748 _swigc__p_wxMenuBar,
49749 _swigc__p_wxMenuEvent,
49750 _swigc__p_wxMenuItem,
49751 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 49752 _swigc__p_wxMouseCaptureLostEvent,
0085ce49
RD
49753 _swigc__p_wxMouseEvent,
49754 _swigc__p_wxMoveEvent,
49755 _swigc__p_wxNavigationKeyEvent,
49756 _swigc__p_wxNcPaintEvent,
49757 _swigc__p_wxNotebook,
49758 _swigc__p_wxNotebookEvent,
49759 _swigc__p_wxNotifyEvent,
49760 _swigc__p_wxObject,
49761 _swigc__p_wxPCXHandler,
49762 _swigc__p_wxPNGHandler,
49763 _swigc__p_wxPNMHandler,
49764 _swigc__p_wxPaintEvent,
49765 _swigc__p_wxPaletteChangedEvent,
49766 _swigc__p_wxPaperSize,
b850e7f3 49767 _swigc__p_wxPickerBase,
0085ce49
RD
49768 _swigc__p_wxPoint,
49769 _swigc__p_wxPyApp,
49770 _swigc__p_wxPyCommandEvent,
49771 _swigc__p_wxPyControl,
49772 _swigc__p_wxPyEvent,
49773 _swigc__p_wxPyImageHandler,
49774 _swigc__p_wxPyListCtrl,
49775 _swigc__p_wxPySizer,
49776 _swigc__p_wxPyTreeCtrl,
49777 _swigc__p_wxPyTreeItemData,
49778 _swigc__p_wxPyValidator,
49779 _swigc__p_wxQueryNewPaletteEvent,
49780 _swigc__p_wxRadioBox,
49781 _swigc__p_wxRadioButton,
49782 _swigc__p_wxRect,
49783 _swigc__p_wxScrollBar,
49784 _swigc__p_wxScrollEvent,
49785 _swigc__p_wxScrollWinEvent,
3f7f284d 49786 _swigc__p_wxSearchCtrl,
0085ce49
RD
49787 _swigc__p_wxSetCursorEvent,
49788 _swigc__p_wxShowEvent,
49789 _swigc__p_wxSimpleHelpProvider,
49790 _swigc__p_wxSize,
49791 _swigc__p_wxSizeEvent,
49792 _swigc__p_wxSizer,
49793 _swigc__p_wxSizerItem,
49794 _swigc__p_wxSlider,
49795 _swigc__p_wxSpinButton,
49796 _swigc__p_wxSpinCtrl,
49797 _swigc__p_wxSpinEvent,
49798 _swigc__p_wxStaticBitmap,
49799 _swigc__p_wxStaticBox,
49800 _swigc__p_wxStaticBoxSizer,
49801 _swigc__p_wxStaticLine,
49802 _swigc__p_wxStaticText,
49803 _swigc__p_wxStdDialogButtonSizer,
49804 _swigc__p_wxString,
49805 _swigc__p_wxSysColourChangedEvent,
580080c5 49806 _swigc__p_wxTGAHandler,
0085ce49
RD
49807 _swigc__p_wxTIFFHandler,
49808 _swigc__p_wxTextAttr,
49809 _swigc__p_wxTextCtrl,
49810 _swigc__p_wxTextUrlEvent,
49811 _swigc__p_wxToggleButton,
49812 _swigc__p_wxToolBar,
49813 _swigc__p_wxToolBarBase,
49814 _swigc__p_wxToolBarToolBase,
49815 _swigc__p_wxToolbook,
49816 _swigc__p_wxToolbookEvent,
0085ce49
RD
49817 _swigc__p_wxTreeEvent,
49818 _swigc__p_wxTreeItemId,
49819 _swigc__p_wxTreebook,
49820 _swigc__p_wxTreebookEvent,
49821 _swigc__p_wxUpdateUIEvent,
49822 _swigc__p_wxValidator,
49823 _swigc__p_wxVisualAttributes,
49824 _swigc__p_wxWindow,
b850e7f3 49825 _swigc__p_wxWindowBase,
0085ce49
RD
49826 _swigc__p_wxWindowCreateEvent,
49827 _swigc__p_wxWindowDestroyEvent,
49828 _swigc__p_wxXPMHandler,
49829};
49830
49831
49832/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
49833
49834static swig_const_info swig_const_table[] = {
49835{0, 0, 0, 0.0, 0, 0}};
49836
49837#ifdef __cplusplus
49838}
49839#endif
49840/* -----------------------------------------------------------------------------
49841 * Type initialization:
49842 * This problem is tough by the requirement that no dynamic
49843 * memory is used. Also, since swig_type_info structures store pointers to
49844 * swig_cast_info structures and swig_cast_info structures store pointers back
49845 * to swig_type_info structures, we need some lookup code at initialization.
49846 * The idea is that swig generates all the structures that are needed.
49847 * The runtime then collects these partially filled structures.
49848 * The SWIG_InitializeModule function takes these initial arrays out of
49849 * swig_module, and does all the lookup, filling in the swig_module.types
49850 * array with the correct data and linking the correct swig_cast_info
49851 * structures together.
49852 *
49853 * The generated swig_type_info structures are assigned staticly to an initial
49854 * array. We just loop though that array, and handle each type individually.
49855 * First we lookup if this type has been already loaded, and if so, use the
49856 * loaded structure instead of the generated one. Then we have to fill in the
49857 * cast linked list. The cast data is initially stored in something like a
49858 * two-dimensional array. Each row corresponds to a type (there are the same
49859 * number of rows as there are in the swig_type_initial array). Each entry in
49860 * a column is one of the swig_cast_info structures for that type.
49861 * The cast_initial array is actually an array of arrays, because each row has
49862 * a variable number of columns. So to actually build the cast linked list,
49863 * we find the array of casts associated with the type, and loop through it
49864 * adding the casts to the list. The one last trick we need to do is making
49865 * sure the type pointer in the swig_cast_info struct is correct.
49866 *
49867 * First off, we lookup the cast->type name to see if it is already loaded.
49868 * There are three cases to handle:
49869 * 1) If the cast->type has already been loaded AND the type we are adding
49870 * casting info to has not been loaded (it is in this module), THEN we
49871 * replace the cast->type pointer with the type pointer that has already
49872 * been loaded.
49873 * 2) If BOTH types (the one we are adding casting info to, and the
49874 * cast->type) are loaded, THEN the cast info has already been loaded by
49875 * the previous module so we just ignore it.
49876 * 3) Finally, if cast->type has not already been loaded, then we add that
49877 * swig_cast_info to the linked list (because the cast->type) pointer will
49878 * be correct.
49879 * ----------------------------------------------------------------------------- */
49880
49881#ifdef __cplusplus
49882extern "C" {
49883#if 0
49884} /* c-mode */
49885#endif
49886#endif
49887
49888#if 0
49889#define SWIGRUNTIME_DEBUG
49890#endif
49891
49892SWIGRUNTIME void
49893SWIG_InitializeModule(void *clientdata) {
49894 size_t i;
49895 swig_module_info *module_head;
49896 static int init_run = 0;
49897
49898 clientdata = clientdata;
49899
49900 if (init_run) return;
49901 init_run = 1;
49902
49903 /* Initialize the swig_module */
49904 swig_module.type_initial = swig_type_initial;
49905 swig_module.cast_initial = swig_cast_initial;
49906
49907 /* Try and load any already created modules */
49908 module_head = SWIG_GetModule(clientdata);
49909 if (module_head) {
49910 swig_module.next = module_head->next;
49911 module_head->next = &swig_module;
49912 } else {
49913 /* This is the first module loaded */
49914 swig_module.next = &swig_module;
49915 SWIG_SetModule(clientdata, &swig_module);
49916 }
49917
49918 /* Now work on filling in swig_module.types */
49919#ifdef SWIGRUNTIME_DEBUG
49920 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
49921#endif
49922 for (i = 0; i < swig_module.size; ++i) {
49923 swig_type_info *type = 0;
49924 swig_type_info *ret;
49925 swig_cast_info *cast;
d14a1e28 49926
0085ce49
RD
49927#ifdef SWIGRUNTIME_DEBUG
49928 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49929#endif
d14a1e28 49930
0085ce49
RD
49931 /* if there is another module already loaded */
49932 if (swig_module.next != &swig_module) {
49933 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
093d3ff1 49934 }
0085ce49
RD
49935 if (type) {
49936 /* Overwrite clientdata field */
49937#ifdef SWIGRUNTIME_DEBUG
49938 printf("SWIG_InitializeModule: found type %s\n", type->name);
49939#endif
49940 if (swig_module.type_initial[i]->clientdata) {
49941 type->clientdata = swig_module.type_initial[i]->clientdata;
49942#ifdef SWIGRUNTIME_DEBUG
49943 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
49944#endif
49945 }
49946 } else {
49947 type = swig_module.type_initial[i];
093d3ff1 49948 }
d14a1e28 49949
0085ce49
RD
49950 /* Insert casting types */
49951 cast = swig_module.cast_initial[i];
49952 while (cast->type) {
49953 /* Don't need to add information already in the list */
49954 ret = 0;
49955#ifdef SWIGRUNTIME_DEBUG
49956 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
49957#endif
49958 if (swig_module.next != &swig_module) {
49959 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
49960#ifdef SWIGRUNTIME_DEBUG
49961 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
49962#endif
49963 }
49964 if (ret) {
49965 if (type == swig_module.type_initial[i]) {
49966#ifdef SWIGRUNTIME_DEBUG
49967 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
49968#endif
49969 cast->type = ret;
49970 ret = 0;
49971 } else {
49972 /* Check for casting already in the list */
49973 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
49974#ifdef SWIGRUNTIME_DEBUG
49975 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
49976#endif
49977 if (!ocast) ret = 0;
49978 }
49979 }
49980
49981 if (!ret) {
49982#ifdef SWIGRUNTIME_DEBUG
49983 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
49984#endif
49985 if (type->cast) {
49986 type->cast->prev = cast;
49987 cast->next = type->cast;
49988 }
49989 type->cast = cast;
49990 }
49991 cast++;
093d3ff1 49992 }
0085ce49
RD
49993 /* Set entry in modules->types array equal to the type */
49994 swig_module.types[i] = type;
49995 }
49996 swig_module.types[i] = 0;
49997
49998#ifdef SWIGRUNTIME_DEBUG
49999 printf("**** SWIG_InitializeModule: Cast List ******\n");
50000 for (i = 0; i < swig_module.size; ++i) {
50001 int j = 0;
50002 swig_cast_info *cast = swig_module.cast_initial[i];
50003 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
50004 while (cast->type) {
50005 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
50006 cast++;
50007 ++j;
50008 }
50009 printf("---- Total casts: %d\n",j);
50010 }
50011 printf("**** SWIG_InitializeModule: Cast List ******\n");
50012#endif
50013}
50014
50015/* This function will propagate the clientdata field of type to
50016* any new swig_type_info structures that have been added into the list
50017* of equivalent types. It is like calling
50018* SWIG_TypeClientData(type, clientdata) a second time.
50019*/
50020SWIGRUNTIME void
50021SWIG_PropagateClientData(void) {
50022 size_t i;
50023 swig_cast_info *equiv;
50024 static int init_run = 0;
50025
50026 if (init_run) return;
50027 init_run = 1;
50028
50029 for (i = 0; i < swig_module.size; i++) {
50030 if (swig_module.types[i]->clientdata) {
50031 equiv = swig_module.types[i]->cast;
50032 while (equiv) {
50033 if (!equiv->converter) {
50034 if (equiv->type && !equiv->type->clientdata)
50035 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
50036 }
50037 equiv = equiv->next;
50038 }
093d3ff1 50039 }
0085ce49
RD
50040 }
50041}
50042
50043#ifdef __cplusplus
50044#if 0
50045{
50046 /* c-mode */
50047#endif
50048}
50049#endif
50050
50051
50052
50053#ifdef __cplusplus
50054extern "C" {
50055#endif
50056
50057 /* Python-specific SWIG API */
50058#define SWIG_newvarlink() SWIG_Python_newvarlink()
50059#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
50060#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
50061
50062 /* -----------------------------------------------------------------------------
50063 * global variable support code.
50064 * ----------------------------------------------------------------------------- */
50065
50066 typedef struct swig_globalvar {
50067 char *name; /* Name of global variable */
50068 PyObject *(*get_attr)(void); /* Return the current value */
50069 int (*set_attr)(PyObject *); /* Set the value */
50070 struct swig_globalvar *next;
50071 } swig_globalvar;
50072
50073 typedef struct swig_varlinkobject {
50074 PyObject_HEAD
50075 swig_globalvar *vars;
50076 } swig_varlinkobject;
50077
50078 SWIGINTERN PyObject *
50079 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
50080 return PyString_FromString("<Swig global variables>");
50081 }
50082
50083 SWIGINTERN PyObject *
50084 swig_varlink_str(swig_varlinkobject *v) {
50085 PyObject *str = PyString_FromString("(");
50086 swig_globalvar *var;
50087 for (var = v->vars; var; var=var->next) {
50088 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
50089 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
50090 }
50091 PyString_ConcatAndDel(&str,PyString_FromString(")"));
50092 return str;
50093 }
50094
50095 SWIGINTERN int
50096 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
50097 PyObject *str = swig_varlink_str(v);
50098 fprintf(fp,"Swig global variables ");
50099 fprintf(fp,"%s\n", PyString_AsString(str));
50100 Py_DECREF(str);
50101 return 0;
50102 }
50103
50104 SWIGINTERN void
50105 swig_varlink_dealloc(swig_varlinkobject *v) {
50106 swig_globalvar *var = v->vars;
50107 while (var) {
50108 swig_globalvar *n = var->next;
50109 free(var->name);
50110 free(var);
50111 var = n;
093d3ff1 50112 }
0085ce49
RD
50113 }
50114
50115 SWIGINTERN PyObject *
50116 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
50117 PyObject *res = NULL;
50118 swig_globalvar *var = v->vars;
50119 while (var) {
50120 if (strcmp(var->name,n) == 0) {
50121 res = (*var->get_attr)();
50122 break;
50123 }
50124 var = var->next;
093d3ff1 50125 }
0085ce49
RD
50126 if (res == NULL && !PyErr_Occurred()) {
50127 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
093d3ff1 50128 }
0085ce49
RD
50129 return res;
50130 }
50131
50132 SWIGINTERN int
50133 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
50134 int res = 1;
50135 swig_globalvar *var = v->vars;
50136 while (var) {
50137 if (strcmp(var->name,n) == 0) {
50138 res = (*var->set_attr)(p);
50139 break;
50140 }
50141 var = var->next;
093d3ff1 50142 }
0085ce49
RD
50143 if (res == 1 && !PyErr_Occurred()) {
50144 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 50145 }
0085ce49
RD
50146 return res;
50147 }
50148
50149 SWIGINTERN PyTypeObject*
50150 swig_varlink_type(void) {
50151 static char varlink__doc__[] = "Swig var link object";
50152 static PyTypeObject varlink_type;
50153 static int type_init = 0;
50154 if (!type_init) {
50155 const PyTypeObject tmp
50156 = {
50157 PyObject_HEAD_INIT(NULL)
50158 0, /* Number of items in variable part (ob_size) */
50159 (char *)"swigvarlink", /* Type name (tp_name) */
50160 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
50161 0, /* Itemsize (tp_itemsize) */
50162 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
50163 (printfunc) swig_varlink_print, /* Print (tp_print) */
50164 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
50165 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
50166 0, /* tp_compare */
50167 (reprfunc) swig_varlink_repr, /* tp_repr */
50168 0, /* tp_as_number */
50169 0, /* tp_as_sequence */
50170 0, /* tp_as_mapping */
50171 0, /* tp_hash */
50172 0, /* tp_call */
50173 (reprfunc)swig_varlink_str, /* tp_str */
50174 0, /* tp_getattro */
50175 0, /* tp_setattro */
50176 0, /* tp_as_buffer */
50177 0, /* tp_flags */
50178 varlink__doc__, /* tp_doc */
50179 0, /* tp_traverse */
50180 0, /* tp_clear */
50181 0, /* tp_richcompare */
50182 0, /* tp_weaklistoffset */
50183#if PY_VERSION_HEX >= 0x02020000
50184 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
50185#endif
50186#if PY_VERSION_HEX >= 0x02030000
50187 0, /* tp_del */
50188#endif
50189#ifdef COUNT_ALLOCS
50190 0,0,0,0 /* tp_alloc -> tp_next */
50191#endif
50192 };
50193 varlink_type = tmp;
50194 varlink_type.ob_type = &PyType_Type;
50195 type_init = 1;
53aa7709 50196 }
0085ce49
RD
50197 return &varlink_type;
50198 }
50199
50200 /* Create a variable linking object for use later */
50201 SWIGINTERN PyObject *
50202 SWIG_Python_newvarlink(void) {
50203 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
50204 if (result) {
50205 result->vars = 0;
50206 }
50207 return ((PyObject*) result);
50208 }
50209
50210 SWIGINTERN void
50211 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
50212 swig_varlinkobject *v = (swig_varlinkobject *) p;
50213 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
50214 if (gv) {
50215 size_t size = strlen(name)+1;
50216 gv->name = (char *)malloc(size);
50217 if (gv->name) {
50218 strncpy(gv->name,name,size);
50219 gv->get_attr = get_attr;
50220 gv->set_attr = set_attr;
50221 gv->next = v->vars;
50222 }
53aa7709 50223 }
0085ce49
RD
50224 v->vars = gv;
50225 }
50226
50227 SWIGINTERN PyObject *
50228 SWIG_globals() {
50229 static PyObject *_SWIG_globals = 0;
50230 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
50231 return _SWIG_globals;
50232 }
50233
50234 /* -----------------------------------------------------------------------------
50235 * constants/methods manipulation
50236 * ----------------------------------------------------------------------------- */
50237
50238 /* Install Constants */
50239 SWIGINTERN void
50240 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
50241 PyObject *obj = 0;
50242 size_t i;
50243 for (i = 0; constants[i].type; ++i) {
50244 switch(constants[i].type) {
50245 case SWIG_PY_POINTER:
50246 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
50247 break;
50248 case SWIG_PY_BINARY:
50249 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
50250 break;
50251 default:
50252 obj = 0;
50253 break;
50254 }
50255 if (obj) {
50256 PyDict_SetItemString(d, constants[i].name, obj);
50257 Py_DECREF(obj);
50258 }
53aa7709 50259 }
0085ce49
RD
50260 }
50261
50262 /* -----------------------------------------------------------------------------*/
50263 /* Fix SwigMethods to carry the callback ptrs when needed */
50264 /* -----------------------------------------------------------------------------*/
50265
50266 SWIGINTERN void
50267 SWIG_Python_FixMethods(PyMethodDef *methods,
50268 swig_const_info *const_table,
50269 swig_type_info **types,
50270 swig_type_info **types_initial) {
50271 size_t i;
50272 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 50273 const char *c = methods[i].ml_doc;
0085ce49
RD
50274 if (c && (c = strstr(c, "swig_ptr: "))) {
50275 int j;
50276 swig_const_info *ci = 0;
453fb36b 50277 const char *name = c + 10;
0085ce49
RD
50278 for (j = 0; const_table[j].type; ++j) {
50279 if (strncmp(const_table[j].name, name,
50280 strlen(const_table[j].name)) == 0) {
50281 ci = &(const_table[j]);
50282 break;
50283 }
50284 }
50285 if (ci) {
50286 size_t shift = (ci->ptype) - types;
50287 swig_type_info *ty = types_initial[shift];
50288 size_t ldoc = (c - methods[i].ml_doc);
50289 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
50290 char *ndoc = (char*)malloc(ldoc + lptr + 10);
50291 if (ndoc) {
50292 char *buff = ndoc;
50293 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
50294 if (ptr) {
50295 strncpy(buff, methods[i].ml_doc, ldoc);
50296 buff += ldoc;
50297 strncpy(buff, "swig_ptr: ", 10);
50298 buff += 10;
50299 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
50300 methods[i].ml_doc = ndoc;
50301 }
50302 }
50303 }
50304 }
53aa7709 50305 }
0085ce49
RD
50306 }
50307
50308#ifdef __cplusplus
50309}
50310#endif
50311
50312/* -----------------------------------------------------------------------------*
50313 * Partial Init method
50314 * -----------------------------------------------------------------------------*/
50315
50316#ifdef __cplusplus
50317extern "C"
50318#endif
50319SWIGEXPORT void SWIG_init(void) {
50320 PyObject *m, *d;
50321
50322 /* Fix SwigMethods to carry the callback ptrs when needed */
50323 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
50324
50325 m = Py_InitModule((char *) SWIG_name, SwigMethods);
50326 d = PyModule_GetDict(m);
50327
50328 SWIG_InitializeModule(0);
50329 SWIG_InstallConstants(d,swig_const_table);
50330
50331
50332 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
50333 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
50334 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
50335 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
50336 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
50337 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
50338 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
50339 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
50340 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
50341 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
50342 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
50343 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
50344 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
50345 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
50346 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
50347 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
50348 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
50349 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
50350 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
50351 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
50352 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
50353 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
0085ce49
RD
50354 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
50355 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
50356 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
3f7f284d 50357 SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
0085ce49
RD
50358 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
50359 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
50360 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
50361 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
50362 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
50363 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
50364 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
50365 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
50366 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
50367 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
50368 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
50369 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
50370 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
50371 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
50372 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
50373 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
50374 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
50375 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
50376 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
50377 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
0085ce49
RD
50378 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
50379 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
50380 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
50381 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
50382 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
50383 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
50384 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
50385 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
50386 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
50387 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
50388 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
50389 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
50390 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
50391 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
50392 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
50393 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
50394 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
50395 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
50396 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
50397 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
50398 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
50399 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
50400 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
50401 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
50402 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
50403 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
50404 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
f5263701 50405 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
0085ce49
RD
50406 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
50407 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
50408 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
50409 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
50410 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
50411 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
50412 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
50413 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
50414 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
50415 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
50416 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
50417 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
50418 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
50419 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
50420 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
50421 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
50422 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
50423 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
50424 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
50425 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
50426 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
50427 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
50428 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
50429 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
50430 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
50431 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
50432 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
50433 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
50434 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
50435 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
50436 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
50437 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
50438 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
50439 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
50440 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
50441 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 50442 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
50443 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
50444 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
50445 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
50446 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
50447 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
0085ce49
RD
50448 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
50449 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
50450 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
50451 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
50452 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
50453 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
50454 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
50455 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
50456 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
50457 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
50458 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 50459 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
0085ce49
RD
50460 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
50461 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
50462 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
50463 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
50464 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
50465 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
50466 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
50467 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
50468 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
50469 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
50470 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
50471 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
50472 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
50473 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
50474 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
50475 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
50476 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
50477 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
50478 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
50479 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
50480 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
50481 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
50482 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
50483 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
50484 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
50485 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
50486 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
50487 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
50488 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
8f514ab4
RD
50489 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
50490 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
50491 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
50492 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
0085ce49
RD
50493 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
50494 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
50495 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
50496 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
50497 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
50498 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
50499 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
50500 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
50501 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 50502 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
0085ce49
RD
50503 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
50504 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
50505 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
50506 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
50507 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
50508 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
50509 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
50510 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
50511 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
50512 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
50513 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
50514 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
50515 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
50516 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
50517 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
50518 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
50519 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
50520 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
50521 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
50522 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
50523 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
50524 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
50525 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
50526 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
50527 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
50528 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
50529 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
50530 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
50531 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
50532 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
50533 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
50534 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
50535 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
50536 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
50537 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
50538 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
50539 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
50540 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
50541 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
50542 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
50543 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
50544 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
50545 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
50546 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
50547 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
50548 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
50549 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 50550 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
0085ce49
RD
50551 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
50552 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
50553 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
50554 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
50555 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
50556 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
50557 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
50558 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
50559 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
50560 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
50561 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
50562 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
50563 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
50564 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
50565 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
50566 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
50567 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
50568 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
50569 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
50570 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
50571 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
50572 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
50573 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
50574 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
50575 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
50576 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
50577 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
50578 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
50579 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
50580 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
50581 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
50582 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
50583 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
50584 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
50585 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
50586 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
50587 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
50588 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
50589 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
50590 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
50591 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
50592 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
50593
50594 // Map renamed classes back to their common name for OOR
50595 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
50596
50597 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
50598 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
50599 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
50600 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
50601 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
50602 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
50603 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
50604 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
50605 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
50606 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
50607 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
50608 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
50609 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
50610 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
50611 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
0085ce49
RD
50612 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
50613 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
50614 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
50615 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
50616 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
50617 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
50618 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
50619 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
50620 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
50621 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
50622 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
50623 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
50624 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
50625 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
50626 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
50627 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
50628 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
50629 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
50630 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
50631 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
50632 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
50633 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
50634 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
50635 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
50636 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
50637 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
50638 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
50639 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
50640 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
50641 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
50642 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
50643 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
50644 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
50645 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
50646 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
50647 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
50648 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
50649 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
50650 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
50651 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 50652 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
0085ce49
RD
50653
50654 // Map renamed classes back to their common name for OOR
50655 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
50656 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
50657
50658 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
50659 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
50660 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
50661 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
50662 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
50663 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
0085ce49
RD
50664 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
50665 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
50666 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
50667 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
50668 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
0085ce49
RD
50669
50670 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
50671
50672 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
50673 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
50674 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
50675 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
50676 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
50677 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
50678 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
50679 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
33d6fd3b
RD
50680 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
50681 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
50682 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
704eda0c
RD
50683 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
50684 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
50685 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
50686 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
50687 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
50688 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
50689 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
50690 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
50691 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
50692 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
50693 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
50694 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
50695 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
50696 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
50697 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
50698 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
50699 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
50700 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
50701 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
50702 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
50703 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
50704 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
50705 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
50706 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
50707 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
50708 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
50709 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
50710 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
50711 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
50712 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
50713 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
50714 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
5172800e
RD
50715 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
50716 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
50717 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
50718 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
3f7f284d 50719 SWIG_addvarlink(SWIG_globals(),(char*)"SearchCtrlNameStr",SearchCtrlNameStr_get, SearchCtrlNameStr_set);
4ed51f4d
RD
50720 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN));
50721 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN));
d14a1e28
RD
50722}
50723