1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
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 * ----------------------------------------------------------------------------- */
14 template<class T
> class SwigValueWrapper
{
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
) : tt(new T(*rhs
.tt
)) { }
19 SwigValueWrapper(const T
& t
) : tt(new T(t
)) { }
20 ~SwigValueWrapper() { delete tt
; }
21 SwigValueWrapper
& operator=(const T
& t
) { delete tt
; tt
= new T(t
); return *this; }
22 operator T
&() const { return *tt
; }
23 T
*operator&() { return tt
; }
25 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
29 /***********************************************************************
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
34 ************************************************************************/
36 /* template workaround for compilers that cannot correctly implement the C++ standard */
37 #ifndef SWIGTEMPLATEDISAMBIGUATOR
38 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
41 # define SWIGTEMPLATEDISAMBIGUATOR
45 /* inline attribute */
47 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
48 # define SWIGINLINE inline
54 /* attribute recognised by some compilers to avoid 'unused' warnings */
56 # if defined(__GNUC__) || defined(__ICC)
57 # define SWIGUNUSED __attribute__ ((unused))
63 /* internal SWIG method */
65 # define SWIGINTERN static SWIGUNUSED
68 /* internal inline SWIG method */
69 #ifndef SWIGINTERNINLINE
70 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
73 /* exporting methods for Windows DLLs */
75 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
76 # if defined(STATIC_LINKED)
79 # define SWIGEXPORT __declspec(dllexport)
86 /* calling conventions for Windows */
88 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
89 # define SWIGSTDCALL __stdcall
99 /***********************************************************************
102 * This file contains generic CAPI SWIG runtime support for pointer
105 ************************************************************************/
107 /* This should only be incremented when either the layout of swig_type_info changes,
108 or for whatever reason, the runtime changes incompatibly */
109 #define SWIG_RUNTIME_VERSION "2"
111 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
112 #ifdef SWIG_TYPE_TABLE
113 # define SWIG_QUOTE_STRING(x) #x
114 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
115 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
117 # define SWIG_TYPE_TABLE_NAME
121 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
122 creating a static or dynamic library from the swig runtime code.
123 In 99.9% of the cases, swig just needs to declare them as 'static'.
125 But only do this if is strictly necessary, ie, if you have problems
126 with your compiler or so.
130 # define SWIGRUNTIME SWIGINTERN
133 #ifndef SWIGRUNTIMEINLINE
134 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
143 typedef void *(*swig_converter_func
)(void *);
144 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
146 /* Structure to store inforomation on one type */
147 typedef struct swig_type_info
{
148 const char *name
; /* mangled name of this type */
149 const char *str
; /* human readable name of this type */
150 swig_dycast_func dcast
; /* dynamic cast function down a hierarchy */
151 struct swig_cast_info
*cast
; /* linked list of types that can cast into this type */
152 void *clientdata
; /* language specific type data */
155 /* Structure to store a type and conversion function used for casting */
156 typedef struct swig_cast_info
{
157 swig_type_info
*type
; /* pointer to type that is equivalent to this type */
158 swig_converter_func converter
; /* function to cast the void pointers */
159 struct swig_cast_info
*next
; /* pointer to next cast in linked list */
160 struct swig_cast_info
*prev
; /* pointer to the previous cast */
163 /* Structure used to store module information
164 * Each module generates one structure like this, and the runtime collects
165 * all of these structures and stores them in a circularly linked list.*/
166 typedef struct swig_module_info
{
167 swig_type_info
**types
; /* Array of pointers to swig_type_info structures that are in this module */
168 size_t size
; /* Number of types in this module */
169 struct swig_module_info
*next
; /* Pointer to next element in circularly linked list */
170 swig_type_info
**type_initial
; /* Array of initially generated type structures */
171 swig_cast_info
**cast_initial
; /* Array of initially generated casting structures */
172 void *clientdata
; /* Language specific module data */
177 Compare two type names skipping the space characters, therefore
178 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
180 Return 0 when the two name types are equivalent, as in
181 strncmp, but skipping ' '.
184 SWIG_TypeNameComp(const char *f1
, const char *l1
,
185 const char *f2
, const char *l2
) {
186 for (;(f1
!= l1
) && (f2
!= l2
); ++f1
, ++f2
) {
187 while ((*f1
== ' ') && (f1
!= l1
)) ++f1
;
188 while ((*f2
== ' ') && (f2
!= l2
)) ++f2
;
189 if (*f1
!= *f2
) return (int)(*f1
- *f2
);
191 return (l1
- f1
) - (l2
- f2
);
195 Check type equivalence in a name list like <name1>|<name2>|...
196 Return 0 if not equal, 1 if equal
199 SWIG_TypeEquiv(const char *nb
, const char *tb
) {
201 const char* te
= tb
+ strlen(tb
);
203 while (!equiv
&& *ne
) {
204 for (nb
= ne
; *ne
; ++ne
) {
205 if (*ne
== '|') break;
207 equiv
= (SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0) ? 1 : 0;
214 Check type equivalence in a name list like <name1>|<name2>|...
215 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
218 SWIG_TypeCompare(const char *nb
, const char *tb
) {
220 const char* te
= tb
+ strlen(tb
);
222 while (!equiv
&& *ne
) {
223 for (nb
= ne
; *ne
; ++ne
) {
224 if (*ne
== '|') break;
226 equiv
= (SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0) ? 1 : 0;
233 /* think of this as a c++ template<> or a scheme macro */
234 #define SWIG_TypeCheck_Template(comparison, ty) \
236 swig_cast_info *iter = ty->cast; \
239 if (iter == ty->cast) return iter; \
240 /* Move iter to the top of the linked list */ \
241 iter->prev->next = iter->next; \
243 iter->next->prev = iter->prev; \
244 iter->next = ty->cast; \
246 if (ty->cast) ty->cast->prev = iter; \
258 SWIGRUNTIME swig_cast_info
*
259 SWIG_TypeCheck(const char *c
, swig_type_info
*ty
) {
260 SWIG_TypeCheck_Template(strcmp(iter
->type
->name
, c
) == 0, ty
);
263 /* Same as previous function, except strcmp is replaced with a pointer comparison */
264 SWIGRUNTIME swig_cast_info
*
265 SWIG_TypeCheckStruct(swig_type_info
*from
, swig_type_info
*into
) {
266 SWIG_TypeCheck_Template(iter
->type
== from
, into
);
270 Cast a pointer up an inheritance hierarchy
272 SWIGRUNTIMEINLINE
void *
273 SWIG_TypeCast(swig_cast_info
*ty
, void *ptr
) {
274 return ((!ty
) || (!ty
->converter
)) ? ptr
: (*ty
->converter
)(ptr
);
278 Dynamic pointer casting. Down an inheritance hierarchy
280 SWIGRUNTIME swig_type_info
*
281 SWIG_TypeDynamicCast(swig_type_info
*ty
, void **ptr
) {
282 swig_type_info
*lastty
= ty
;
283 if (!ty
|| !ty
->dcast
) return ty
;
284 while (ty
&& (ty
->dcast
)) {
285 ty
= (*ty
->dcast
)(ptr
);
292 Return the name associated with this type
294 SWIGRUNTIMEINLINE
const char *
295 SWIG_TypeName(const swig_type_info
*ty
) {
300 Return the pretty name associated with this type,
301 that is an unmangled type name in a form presentable to the user.
303 SWIGRUNTIME
const char *
304 SWIG_TypePrettyName(const swig_type_info
*type
) {
305 /* The "str" field contains the equivalent pretty names of the
306 type, separated by vertical-bar characters. We choose
307 to print the last name, as it is often (?) the most
309 if (type
->str
!= NULL
) {
310 const char *last_name
= type
->str
;
312 for (s
= type
->str
; *s
; s
++)
313 if (*s
== '|') last_name
= s
+1;
321 Set the clientdata field for a type
324 SWIG_TypeClientData(swig_type_info
*ti
, void *clientdata
) {
325 swig_cast_info
*cast
= ti
->cast
;
326 /* if (ti->clientdata == clientdata) return; */
327 ti
->clientdata
= clientdata
;
330 if (!cast
->converter
) {
331 swig_type_info
*tc
= cast
->type
;
332 if (!tc
->clientdata
) {
333 SWIG_TypeClientData(tc
, clientdata
);
341 Search for a swig_type_info structure only by mangled name
342 Search is a O(log #types)
344 We start searching at module start, and finish searching when start == end.
345 Note: if start == end at the beginning of the function, we go all the way around
348 SWIGRUNTIME swig_type_info
*
349 SWIG_MangledTypeQueryModule(swig_module_info
*start
,
350 swig_module_info
*end
,
352 swig_module_info
*iter
= start
;
355 register size_t l
= 0;
356 register size_t r
= iter
->size
- 1;
358 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
359 register size_t i
= (l
+ r
) >> 1;
360 const char *iname
= iter
->types
[i
]->name
;
362 register int compare
= strcmp(name
, iname
);
364 return iter
->types
[i
];
365 } else if (compare
< 0) {
371 } else if (compare
> 0) {
375 break; /* should never happen */
380 } while (iter
!= end
);
385 Search for a swig_type_info structure for either a mangled name or a human readable name.
386 It first searches the mangled names of the types, which is a O(log #types)
387 If a type is not found it then searches the human readable names, which is O(#types).
389 We start searching at module start, and finish searching when start == end.
390 Note: if start == end at the beginning of the function, we go all the way around
393 SWIGRUNTIME swig_type_info
*
394 SWIG_TypeQueryModule(swig_module_info
*start
,
395 swig_module_info
*end
,
397 /* STEP 1: Search the name field using binary search */
398 swig_type_info
*ret
= SWIG_MangledTypeQueryModule(start
, end
, name
);
402 /* STEP 2: If the type hasn't been found, do a complete search
403 of the str field (the human readable name) */
404 swig_module_info
*iter
= start
;
406 register size_t i
= 0;
407 for (; i
< iter
->size
; ++i
) {
408 if (iter
->types
[i
]->str
&& (SWIG_TypeEquiv(iter
->types
[i
]->str
, name
)))
409 return iter
->types
[i
];
412 } while (iter
!= end
);
415 /* neither found a match */
421 Pack binary data into a string
424 SWIG_PackData(char *c
, void *ptr
, size_t sz
) {
425 static const char hex
[17] = "0123456789abcdef";
426 register const unsigned char *u
= (unsigned char *) ptr
;
427 register const unsigned char *eu
= u
+ sz
;
428 for (; u
!= eu
; ++u
) {
429 register unsigned char uu
= *u
;
430 *(c
++) = hex
[(uu
& 0xf0) >> 4];
431 *(c
++) = hex
[uu
& 0xf];
437 Unpack binary data from a string
439 SWIGRUNTIME
const char *
440 SWIG_UnpackData(const char *c
, void *ptr
, size_t sz
) {
441 register unsigned char *u
= (unsigned char *) ptr
;
442 register const unsigned char *eu
= u
+ sz
;
443 for (; u
!= eu
; ++u
) {
444 register char d
= *(c
++);
445 register unsigned char uu
= 0;
446 if ((d
>= '0') && (d
<= '9'))
447 uu
= ((d
- '0') << 4);
448 else if ((d
>= 'a') && (d
<= 'f'))
449 uu
= ((d
- ('a'-10)) << 4);
453 if ((d
>= '0') && (d
<= '9'))
455 else if ((d
>= 'a') && (d
<= 'f'))
456 uu
|= (d
- ('a'-10));
465 Pack 'void *' into a string buffer.
468 SWIG_PackVoidPtr(char *buff
, void *ptr
, const char *name
, size_t bsz
) {
470 if ((2*sizeof(void *) + 2) > bsz
) return 0;
472 r
= SWIG_PackData(r
,&ptr
,sizeof(void *));
473 if (strlen(name
) + 1 > (bsz
- (r
- buff
))) return 0;
478 SWIGRUNTIME
const char *
479 SWIG_UnpackVoidPtr(const char *c
, void **ptr
, const char *name
) {
481 if (strcmp(c
,"NULL") == 0) {
488 return SWIG_UnpackData(++c
,ptr
,sizeof(void *));
492 SWIG_PackDataName(char *buff
, void *ptr
, size_t sz
, const char *name
, size_t bsz
) {
494 size_t lname
= (name
? strlen(name
) : 0);
495 if ((2*sz
+ 2 + lname
) > bsz
) return 0;
497 r
= SWIG_PackData(r
,ptr
,sz
);
499 strncpy(r
,name
,lname
+1);
506 SWIGRUNTIME
const char *
507 SWIG_UnpackDataName(const char *c
, void *ptr
, size_t sz
, const char *name
) {
509 if (strcmp(c
,"NULL") == 0) {
516 return SWIG_UnpackData(++c
,ptr
,sz
);
523 /* -----------------------------------------------------------------------------
524 * SWIG API. Portion that goes into the runtime
525 * ----------------------------------------------------------------------------- */
531 /* -----------------------------------------------------------------------------
532 * for internal method declarations
533 * ----------------------------------------------------------------------------- */
536 # define SWIGINTERN static SWIGUNUSED
539 #ifndef SWIGINTERNINLINE
540 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
544 Exception handling in wrappers
546 #define SWIG_fail goto fail
547 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
548 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
549 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
550 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
551 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
556 #define SWIG_contract_assert(expr, msg) \
557 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
559 /* -----------------------------------------------------------------------------
560 * Constant declarations
561 * ----------------------------------------------------------------------------- */
564 #define SWIG_PY_INT 1
565 #define SWIG_PY_FLOAT 2
566 #define SWIG_PY_STRING 3
567 #define SWIG_PY_POINTER 4
568 #define SWIG_PY_BINARY 5
570 /* Constant information structure */
571 typedef struct swig_const_info
{
577 swig_type_info
**ptype
;
581 /* -----------------------------------------------------------------------------
582 * Alloc. memory flags
583 * ----------------------------------------------------------------------------- */
584 #define SWIG_OLDOBJ 1
585 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
586 #define SWIG_PYSTR SWIG_NEWOBJ + 1
593 /***********************************************************************
596 * This file contains the runtime support for Python modules
597 * and includes code for managing global variables and pointer
600 * Author : David Beazley (beazley@cs.uchicago.edu)
601 ************************************************************************/
603 /* Common SWIG API */
604 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
605 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
606 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
609 /* Python-specific SWIG API */
610 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
611 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
614 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
615 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
617 /* -----------------------------------------------------------------------------
618 * Pointer declarations
619 * ----------------------------------------------------------------------------- */
621 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
622 C/C++ pointers in the python side. Very useful for debugging, but
625 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
626 # define SWIG_COBJECT_TYPES
629 /* Flags for pointer conversion */
630 #define SWIG_POINTER_EXCEPTION 0x1
631 #define SWIG_POINTER_DISOWN 0x2
634 /* Add PyOS_snprintf for old Pythons */
635 #if PY_VERSION_HEX < 0x02020000
636 #define PyOS_snprintf snprintf
643 /* -----------------------------------------------------------------------------
644 * Create a new pointer string
645 * ----------------------------------------------------------------------------- */
646 #ifndef SWIG_BUFFER_SIZE
647 #define SWIG_BUFFER_SIZE 1024
650 /* A crude PyString_FromFormat implementation for old Pythons */
651 #if PY_VERSION_HEX < 0x02020000
653 PyString_FromFormat(const char *fmt
, ...) {
655 char buf
[SWIG_BUFFER_SIZE
* 2];
658 res
= vsnprintf(buf
, sizeof(buf
), fmt
, ap
);
660 return (res
< 0 || res
>= sizeof(buf
)) ? 0 : PyString_FromString(buf
);
664 #if PY_VERSION_HEX < 0x01060000
665 #define PyObject_Del(op) PyMem_DEL((op))
668 #if defined(SWIG_COBJECT_TYPES)
669 #if !defined(SWIG_COBJECT_PYTHON)
670 /* -----------------------------------------------------------------------------
671 * Implements a simple Swig Object type, and use it instead of PyCObject
672 * ----------------------------------------------------------------------------- */
680 /* Declarations for objects of type PySwigObject */
683 PySwigObject_print(PySwigObject
*v
, FILE *fp
, int flags
)
685 char result
[SWIG_BUFFER_SIZE
];
687 if (SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
))) {
688 fputs("<Swig Object at ", fp
); fputs(result
, fp
); fputs(">", fp
);
695 SWIGRUNTIME PyObject
*
696 PySwigObject_repr(PySwigObject
*v
)
698 char result
[SWIG_BUFFER_SIZE
];
699 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
700 PyString_FromFormat("<Swig Object at %s>", result
) : 0;
703 SWIGRUNTIME PyObject
*
704 PySwigObject_str(PySwigObject
*v
)
706 char result
[SWIG_BUFFER_SIZE
];
707 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
708 PyString_FromString(result
) : 0;
711 SWIGRUNTIME PyObject
*
712 PySwigObject_long(PySwigObject
*v
)
714 return PyLong_FromVoidPtr(v
->ptr
);
717 SWIGRUNTIME PyObject
*
718 PySwigObject_format(const char* fmt
, PySwigObject
*v
)
720 PyObject
*res
= NULL
;
721 PyObject
*args
= PyTuple_New(1);
722 if (args
&& (PyTuple_SetItem(args
, 0, PySwigObject_long(v
)) == 0)) {
723 PyObject
*ofmt
= PyString_FromString(fmt
);
725 res
= PyString_Format(ofmt
,args
);
733 SWIGRUNTIME PyObject
*
734 PySwigObject_oct(PySwigObject
*v
)
736 return PySwigObject_format("%o",v
);
739 SWIGRUNTIME PyObject
*
740 PySwigObject_hex(PySwigObject
*v
)
742 return PySwigObject_format("%x",v
);
746 PySwigObject_compare(PySwigObject
*v
, PySwigObject
*w
)
748 int c
= strcmp(v
->desc
, w
->desc
);
750 return (c
> 0) ? 1 : -1;
754 return (i
< j
) ? -1 : ((i
> j
) ? 1 : 0);
759 PySwigObject_dealloc(PySwigObject
*self
)
764 SWIGRUNTIME PyTypeObject
*
765 PySwigObject_type(void) {
766 static char pyswigobject_type__doc__
[] =
767 "Swig object carries a C/C++ instance pointer";
769 static PyNumberMethods PySwigObject_as_number
= {
770 (binaryfunc
)0, /*nb_add*/
771 (binaryfunc
)0, /*nb_subtract*/
772 (binaryfunc
)0, /*nb_multiply*/
773 (binaryfunc
)0, /*nb_divide*/
774 (binaryfunc
)0, /*nb_remainder*/
775 (binaryfunc
)0, /*nb_divmod*/
776 (ternaryfunc
)0,/*nb_power*/
777 (unaryfunc
)0, /*nb_negative*/
778 (unaryfunc
)0, /*nb_positive*/
779 (unaryfunc
)0, /*nb_absolute*/
780 (inquiry
)0, /*nb_nonzero*/
787 (coercion
)0, /*nb_coerce*/
788 (unaryfunc
)PySwigObject_long
, /*nb_int*/
789 (unaryfunc
)PySwigObject_long
, /*nb_long*/
790 (unaryfunc
)0, /*nb_float*/
791 (unaryfunc
)PySwigObject_oct
, /*nb_oct*/
792 (unaryfunc
)PySwigObject_hex
, /*nb_hex*/
793 #if PY_VERSION_HEX >= 0x02020000
794 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
795 #elif PY_VERSION_HEX >= 0x02000000
796 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
800 static PyTypeObject pyswigobject_type
801 #if !defined(__cplusplus)
803 static int type_init
= 0;
808 PyObject_HEAD_INIT(&PyType_Type
)
810 (char *)"PySwigObject", /*tp_name*/
811 sizeof(PySwigObject
), /*tp_basicsize*/
814 (destructor
)PySwigObject_dealloc
, /*tp_dealloc*/
815 (printfunc
)PySwigObject_print
, /*tp_print*/
816 (getattrfunc
)0, /*tp_getattr*/
817 (setattrfunc
)0, /*tp_setattr*/
818 (cmpfunc
)PySwigObject_compare
, /*tp_compare*/
819 (reprfunc
)PySwigObject_repr
, /*tp_repr*/
820 &PySwigObject_as_number
, /*tp_as_number*/
821 0, /*tp_as_sequence*/
823 (hashfunc
)0, /*tp_hash*/
824 (ternaryfunc
)0, /*tp_call*/
825 (reprfunc
)PySwigObject_str
, /*tp_str*/
826 /* Space for future expansion */
828 pyswigobject_type__doc__
, /* Documentation string */
829 #if PY_VERSION_HEX >= 0x02000000
833 #if PY_VERSION_HEX >= 0x02010000
834 0, /* tp_richcompare */
835 0, /* tp_weaklistoffset */
837 #if PY_VERSION_HEX >= 0x02020000
838 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
840 #if PY_VERSION_HEX >= 0x02030000
844 0,0,0,0 /* tp_alloc -> tp_next */
847 #if !defined(__cplusplus)
848 pyswigobject_type
= tmp
;
852 return &pyswigobject_type
;
855 SWIGRUNTIME PyObject
*
856 PySwigObject_FromVoidPtrAndDesc(void *ptr
, const char *desc
)
858 PySwigObject
*self
= PyObject_NEW(PySwigObject
, PySwigObject_type());
863 return (PyObject
*)self
;
866 SWIGRUNTIMEINLINE
void *
867 PySwigObject_AsVoidPtr(PyObject
*self
)
869 return ((PySwigObject
*)self
)->ptr
;
872 SWIGRUNTIMEINLINE
const char *
873 PySwigObject_GetDesc(PyObject
*self
)
875 return ((PySwigObject
*)self
)->desc
;
878 SWIGRUNTIMEINLINE
int
879 PySwigObject_Check(PyObject
*op
) {
880 return ((op
)->ob_type
== PySwigObject_type())
881 || (strcmp((op
)->ob_type
->tp_name
,"PySwigObject") == 0);
884 /* -----------------------------------------------------------------------------
885 * Implements a simple Swig Packed type, and use it instead of string
886 * ----------------------------------------------------------------------------- */
896 PySwigPacked_print(PySwigPacked
*v
, FILE *fp
, int flags
)
898 char result
[SWIG_BUFFER_SIZE
];
900 fputs("<Swig Packed ", fp
);
901 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
910 SWIGRUNTIME PyObject
*
911 PySwigPacked_repr(PySwigPacked
*v
)
913 char result
[SWIG_BUFFER_SIZE
];
914 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
915 return PyString_FromFormat("<Swig Packed at %s%s>", result
, v
->desc
);
917 return PyString_FromFormat("<Swig Packed %s>", v
->desc
);
921 SWIGRUNTIME PyObject
*
922 PySwigPacked_str(PySwigPacked
*v
)
924 char result
[SWIG_BUFFER_SIZE
];
925 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))){
926 return PyString_FromFormat("%s%s", result
, v
->desc
);
928 return PyString_FromString(v
->desc
);
933 PySwigPacked_compare(PySwigPacked
*v
, PySwigPacked
*w
)
935 int c
= strcmp(v
->desc
, w
->desc
);
937 return (c
> 0) ? 1 : -1;
941 int s
= (i
< j
) ? -1 : ((i
> j
) ? 1 : 0);
942 return s
? s
: strncmp((char *)v
->pack
, (char *)w
->pack
, 2*v
->size
);
947 PySwigPacked_dealloc(PySwigPacked
*self
)
953 SWIGRUNTIME PyTypeObject
*
954 PySwigPacked_type(void) {
955 static char pyswigpacked_type__doc__
[] =
956 "Swig object carries a C/C++ instance pointer";
957 static PyTypeObject pyswigpacked_type
958 #if !defined(__cplusplus)
960 static int type_init
= 0;
965 PyObject_HEAD_INIT(&PyType_Type
)
967 (char *)"PySwigPacked", /*tp_name*/
968 sizeof(PySwigPacked
), /*tp_basicsize*/
971 (destructor
)PySwigPacked_dealloc
, /*tp_dealloc*/
972 (printfunc
)PySwigPacked_print
, /*tp_print*/
973 (getattrfunc
)0, /*tp_getattr*/
974 (setattrfunc
)0, /*tp_setattr*/
975 (cmpfunc
)PySwigPacked_compare
, /*tp_compare*/
976 (reprfunc
)PySwigPacked_repr
, /*tp_repr*/
978 0, /*tp_as_sequence*/
980 (hashfunc
)0, /*tp_hash*/
981 (ternaryfunc
)0, /*tp_call*/
982 (reprfunc
)PySwigPacked_str
, /*tp_str*/
983 /* Space for future expansion */
985 pyswigpacked_type__doc__
, /* Documentation string */
986 #if PY_VERSION_HEX >= 0x02000000
990 #if PY_VERSION_HEX >= 0x02010000
991 0, /* tp_richcompare */
992 0, /* tp_weaklistoffset */
994 #if PY_VERSION_HEX >= 0x02020000
995 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
997 #if PY_VERSION_HEX >= 0x02030000
1001 0,0,0,0 /* tp_alloc -> tp_next */
1004 #if !defined(__cplusplus)
1005 pyswigpacked_type
= tmp
;
1009 return &pyswigpacked_type
;
1012 SWIGRUNTIME PyObject
*
1013 PySwigPacked_FromDataAndDesc(void *ptr
, size_t size
, const char *desc
)
1015 PySwigPacked
*self
= PyObject_NEW(PySwigPacked
, PySwigPacked_type());
1019 void *pack
= malloc(size
);
1021 memcpy(pack
, ptr
, size
);
1025 return (PyObject
*) self
;
1031 SWIGRUNTIMEINLINE
const char *
1032 PySwigPacked_UnpackData(PyObject
*obj
, void *ptr
, size_t size
)
1034 PySwigPacked
*self
= (PySwigPacked
*)obj
;
1035 if (self
->size
!= size
) return 0;
1036 memcpy(ptr
, self
->pack
, size
);
1040 SWIGRUNTIMEINLINE
const char *
1041 PySwigPacked_GetDesc(PyObject
*self
)
1043 return ((PySwigPacked
*)self
)->desc
;
1046 SWIGRUNTIMEINLINE
int
1047 PySwigPacked_Check(PyObject
*op
) {
1048 return ((op
)->ob_type
== PySwigPacked_type())
1049 || (strcmp((op
)->ob_type
->tp_name
,"PySwigPacked") == 0);
1053 /* -----------------------------------------------------------------------------
1054 * Use the old Python PyCObject instead of PySwigObject
1055 * ----------------------------------------------------------------------------- */
1057 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1058 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1059 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1060 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1066 /* -----------------------------------------------------------------------------
1067 * errors manipulation
1068 * ----------------------------------------------------------------------------- */
1071 SWIG_Python_TypeError(const char *type
, PyObject
*obj
)
1074 #if defined(SWIG_COBJECT_TYPES)
1075 if (obj
&& PySwigObject_Check(obj
)) {
1076 const char *otype
= (const char *) PySwigObject_GetDesc(obj
);
1078 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, 'PySwigObject(%s)' is received",
1085 const char *otype
= (obj
? obj
->ob_type
->tp_name
: 0);
1087 PyObject
*str
= PyObject_Str(obj
);
1088 const char *cstr
= str
? PyString_AsString(str
) : 0;
1090 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s(%s)' is received",
1093 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s' is received",
1100 PyErr_Format(PyExc_TypeError
, "a '%s' is expected", type
);
1102 PyErr_Format(PyExc_TypeError
, "unexpected type is received");
1106 SWIGRUNTIMEINLINE
void
1107 SWIG_Python_NullRef(const char *type
)
1110 PyErr_Format(PyExc_TypeError
, "null reference of type '%s' was received",type
);
1112 PyErr_Format(PyExc_TypeError
, "null reference was received");
1117 SWIG_Python_AddErrMesg(const char* mesg
, int infront
)
1119 if (PyErr_Occurred()) {
1121 PyObject
*value
= 0;
1122 PyObject
*traceback
= 0;
1123 PyErr_Fetch(&type
, &value
, &traceback
);
1125 PyObject
*old_str
= PyObject_Str(value
);
1129 PyErr_Format(type
, "%s %s", mesg
, PyString_AsString(old_str
));
1131 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
1142 SWIG_Python_ArgFail(int argnum
)
1144 if (PyErr_Occurred()) {
1145 /* add information about failing argument */
1147 PyOS_snprintf(mesg
, sizeof(mesg
), "argument number %d:", argnum
);
1148 return SWIG_Python_AddErrMesg(mesg
, 1);
1155 /* -----------------------------------------------------------------------------
1156 * pointers/data manipulation
1157 * ----------------------------------------------------------------------------- */
1159 /* Convert a pointer value */
1161 SWIG_Python_ConvertPtr(PyObject
*obj
, void **ptr
, swig_type_info
*ty
, int flags
) {
1164 static PyObject
*SWIG_this
= 0;
1166 PyObject
*pyobj
= 0;
1170 if (obj
== Py_None
) {
1175 #ifdef SWIG_COBJECT_TYPES
1176 if (!(PySwigObject_Check(obj
))) {
1178 SWIG_this
= PyString_FromString("this");
1180 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1182 if (!obj
) goto type_error
;
1183 if (!PySwigObject_Check(obj
)) {
1188 vptr
= PySwigObject_AsVoidPtr(obj
);
1189 c
= (const char *) PySwigObject_GetDesc(obj
);
1190 if (newref
) { Py_DECREF(obj
); }
1193 if (!(PyString_Check(obj
))) {
1195 SWIG_this
= PyString_FromString("this");
1197 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1199 if (!obj
) goto type_error
;
1200 if (!PyString_Check(obj
)) {
1205 c
= PyString_AsString(obj
);
1206 /* Pointer values must start with leading underscore */
1207 c
= SWIG_UnpackVoidPtr(c
, &vptr
, ty
->name
);
1208 if (newref
) { Py_DECREF(obj
); }
1209 if (!c
) goto type_error
;
1214 tc
= SWIG_TypeCheck(c
,ty
);
1215 if (!tc
) goto type_error
;
1216 *ptr
= SWIG_TypeCast(tc
,vptr
);
1220 if ((pyobj
) && (flags
& SWIG_POINTER_DISOWN
)) {
1221 PyObject_SetAttrString(pyobj
,(char*)"thisown",Py_False
);
1227 if (pyobj
&& !obj
) {
1229 if (PyCFunction_Check(obj
)) {
1230 /* here we get the method pointer for callbacks */
1231 char *doc
= (((PyCFunctionObject
*)obj
) -> m_ml
-> ml_doc
);
1232 c
= doc
? strstr(doc
, "swig_ptr: ") : 0;
1234 c
= ty
? SWIG_UnpackVoidPtr(c
+ 10, &vptr
, ty
->name
) : 0;
1235 if (!c
) goto type_error
;
1240 if (flags
& SWIG_POINTER_EXCEPTION
) {
1242 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1244 SWIG_Python_TypeError("C/C++ pointer", obj
);
1250 /* Convert a pointer value, signal an exception on a type mismatch */
1252 SWIG_Python_MustGetPtr(PyObject
*obj
, swig_type_info
*ty
, int argnum
, int flags
) {
1254 if (SWIG_Python_ConvertPtr(obj
, &result
, ty
, flags
) == -1) {
1256 if (flags
& SWIG_POINTER_EXCEPTION
) {
1257 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1258 SWIG_Python_ArgFail(argnum
);
1264 /* Convert a packed value value */
1266 SWIG_Python_ConvertPacked(PyObject
*obj
, void *ptr
, size_t sz
, swig_type_info
*ty
, int flags
) {
1270 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1271 c
= PySwigPacked_UnpackData(obj
, ptr
, sz
);
1273 if ((!obj
) || (!PyString_Check(obj
))) goto type_error
;
1274 c
= PyString_AsString(obj
);
1275 /* Pointer values must start with leading underscore */
1276 c
= SWIG_UnpackDataName(c
, ptr
, sz
, ty
->name
);
1278 if (!c
) goto type_error
;
1280 tc
= SWIG_TypeCheck(c
,ty
);
1281 if (!tc
) goto type_error
;
1287 if (flags
& SWIG_POINTER_EXCEPTION
) {
1289 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1291 SWIG_Python_TypeError("C/C++ packed data", obj
);
1297 /* Create a new array object */
1298 SWIGRUNTIME PyObject
*
1299 SWIG_Python_NewPointerObj(void *ptr
, swig_type_info
*type
, int own
) {
1302 if (!PyErr_Occurred()) {
1303 PyErr_Format(PyExc_TypeError
, "Swig: null type passed to NewPointerObj");
1311 #ifdef SWIG_COBJECT_TYPES
1312 robj
= PySwigObject_FromVoidPtrAndDesc((void *) ptr
, (char *)type
->name
);
1315 char result
[SWIG_BUFFER_SIZE
];
1316 robj
= SWIG_PackVoidPtr(result
, ptr
, type
->name
, sizeof(result
)) ?
1317 PyString_FromString(result
) : 0;
1320 if (!robj
|| (robj
== Py_None
)) return robj
;
1321 if (type
->clientdata
) {
1323 PyObject
*args
= Py_BuildValue((char*)"(O)", robj
);
1325 inst
= PyObject_CallObject((PyObject
*) type
->clientdata
, args
);
1329 PyObject_SetAttrString(inst
,(char*)"thisown",Py_True
);
1337 SWIGRUNTIME PyObject
*
1338 SWIG_Python_NewPackedObj(void *ptr
, size_t sz
, swig_type_info
*type
) {
1344 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1345 robj
= PySwigPacked_FromDataAndDesc((void *) ptr
, sz
, (char *)type
->name
);
1348 char result
[SWIG_BUFFER_SIZE
];
1349 robj
= SWIG_PackDataName(result
, ptr
, sz
, type
->name
, sizeof(result
)) ?
1350 PyString_FromString(result
) : 0;
1356 /* -----------------------------------------------------------------------------*
1358 * -----------------------------------------------------------------------------*/
1360 #ifdef SWIG_LINK_RUNTIME
1361 void *SWIG_ReturnGlobalTypeList(void *);
1364 SWIGRUNTIME swig_module_info
*
1365 SWIG_Python_GetModule(void) {
1366 static void *type_pointer
= (void *)0;
1367 /* first check if module already created */
1368 if (!type_pointer
) {
1369 #ifdef SWIG_LINK_RUNTIME
1370 type_pointer
= SWIG_ReturnGlobalTypeList((void *)0);
1372 type_pointer
= PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
1373 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
);
1374 if (PyErr_Occurred()) {
1376 type_pointer
= (void *)0;
1380 return (swig_module_info
*) type_pointer
;
1383 #if PY_MAJOR_VERSION < 2
1384 /* PyModule_AddObject function was introduced in Python 2.0. The following function
1385 is copied out of Python/modsupport.c in python version 2.3.4 */
1387 PyModule_AddObject(PyObject
*m
, char *name
, PyObject
*o
)
1390 if (!PyModule_Check(m
)) {
1391 PyErr_SetString(PyExc_TypeError
,
1392 "PyModule_AddObject() needs module as first arg");
1396 PyErr_SetString(PyExc_TypeError
,
1397 "PyModule_AddObject() needs non-NULL value");
1401 dict
= PyModule_GetDict(m
);
1403 /* Internal error -- modules must have a dict! */
1404 PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__",
1405 PyModule_GetName(m
));
1408 if (PyDict_SetItemString(dict
, name
, o
))
1416 SWIG_Python_SetModule(swig_module_info
*swig_module
) {
1417 static PyMethodDef swig_empty_runtime_method_table
[] = { {NULL
, NULL
, 0, NULL
} };/* Sentinel */
1419 PyObject
*module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
1420 swig_empty_runtime_method_table
);
1421 PyObject
*pointer
= PyCObject_FromVoidPtr((void *) swig_module
, NULL
);
1422 if (pointer
&& module) {
1423 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
, pointer
);
1432 /* -------- TYPES TABLE (BEGIN) -------- */
1434 #define SWIGTYPE_p_char swig_types[0]
1435 #define SWIGTYPE_p_form_ops_t swig_types[1]
1436 #define SWIGTYPE_p_int swig_types[2]
1437 #define SWIGTYPE_p_unsigned_char swig_types[3]
1438 #define SWIGTYPE_p_unsigned_int swig_types[4]
1439 #define SWIGTYPE_p_unsigned_long swig_types[5]
1440 #define SWIGTYPE_p_wxANIHandler swig_types[6]
1441 #define SWIGTYPE_p_wxAcceleratorTable swig_types[7]
1442 #define SWIGTYPE_p_wxActivateEvent swig_types[8]
1443 #define SWIGTYPE_p_wxArtClient swig_types[9]
1444 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
1445 #define SWIGTYPE_p_wxBitmap swig_types[11]
1446 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
1447 #define SWIGTYPE_p_wxCURHandler swig_types[13]
1448 #define SWIGTYPE_p_wxChildFocusEvent swig_types[14]
1449 #define SWIGTYPE_p_wxCloseEvent swig_types[15]
1450 #define SWIGTYPE_p_wxColour swig_types[16]
1451 #define SWIGTYPE_p_wxCommandEvent swig_types[17]
1452 #define SWIGTYPE_p_wxContextMenuEvent swig_types[18]
1453 #define SWIGTYPE_p_wxControl swig_types[19]
1454 #define SWIGTYPE_p_wxControlWithItems swig_types[20]
1455 #define SWIGTYPE_p_wxDateEvent swig_types[21]
1456 #define SWIGTYPE_p_wxDialog swig_types[22]
1457 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[23]
1458 #define SWIGTYPE_p_wxDropFilesEvent swig_types[24]
1459 #define SWIGTYPE_p_wxDuplexMode swig_types[25]
1460 #define SWIGTYPE_p_wxEraseEvent swig_types[26]
1461 #define SWIGTYPE_p_wxEvent swig_types[27]
1462 #define SWIGTYPE_p_wxEvtHandler swig_types[28]
1463 #define SWIGTYPE_p_wxFSFile swig_types[29]
1464 #define SWIGTYPE_p_wxFileSystem swig_types[30]
1465 #define SWIGTYPE_p_wxFlexGridSizer swig_types[31]
1466 #define SWIGTYPE_p_wxFocusEvent swig_types[32]
1467 #define SWIGTYPE_p_wxFont swig_types[33]
1468 #define SWIGTYPE_p_wxFrame swig_types[34]
1469 #define SWIGTYPE_p_wxGBSizerItem swig_types[35]
1470 #define SWIGTYPE_p_wxGIFHandler swig_types[36]
1471 #define SWIGTYPE_p_wxGridBagSizer swig_types[37]
1472 #define SWIGTYPE_p_wxGridSizer swig_types[38]
1473 #define SWIGTYPE_p_wxICOHandler swig_types[39]
1474 #define SWIGTYPE_p_wxIcon swig_types[40]
1475 #define SWIGTYPE_p_wxIconizeEvent swig_types[41]
1476 #define SWIGTYPE_p_wxIdleEvent swig_types[42]
1477 #define SWIGTYPE_p_wxImage swig_types[43]
1478 #define SWIGTYPE_p_wxImageHandler swig_types[44]
1479 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[45]
1480 #define SWIGTYPE_p_wxInitDialogEvent swig_types[46]
1481 #define SWIGTYPE_p_wxInputStream swig_types[47]
1482 #define SWIGTYPE_p_wxJPEGHandler swig_types[48]
1483 #define SWIGTYPE_p_wxKeyEvent swig_types[49]
1484 #define SWIGTYPE_p_wxLayoutConstraints swig_types[50]
1485 #define SWIGTYPE_p_wxMaximizeEvent swig_types[51]
1486 #define SWIGTYPE_p_wxMenu swig_types[52]
1487 #define SWIGTYPE_p_wxMenuBar swig_types[53]
1488 #define SWIGTYPE_p_wxMenuEvent swig_types[54]
1489 #define SWIGTYPE_p_wxMenuItem swig_types[55]
1490 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[56]
1491 #define SWIGTYPE_p_wxMouseEvent swig_types[57]
1492 #define SWIGTYPE_p_wxMoveEvent swig_types[58]
1493 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[59]
1494 #define SWIGTYPE_p_wxNcPaintEvent swig_types[60]
1495 #define SWIGTYPE_p_wxNotifyEvent swig_types[61]
1496 #define SWIGTYPE_p_wxObject swig_types[62]
1497 #define SWIGTYPE_p_wxOutputStream swig_types[63]
1498 #define SWIGTYPE_p_wxPCXHandler swig_types[64]
1499 #define SWIGTYPE_p_wxPNGHandler swig_types[65]
1500 #define SWIGTYPE_p_wxPNMHandler swig_types[66]
1501 #define SWIGTYPE_p_wxPaintEvent swig_types[67]
1502 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[68]
1503 #define SWIGTYPE_p_wxPanel swig_types[69]
1504 #define SWIGTYPE_p_wxPaperSize swig_types[70]
1505 #define SWIGTYPE_p_wxPoint swig_types[71]
1506 #define SWIGTYPE_p_wxPyApp swig_types[72]
1507 #define SWIGTYPE_p_wxPyCommandEvent swig_types[73]
1508 #define SWIGTYPE_p_wxPyEvent swig_types[74]
1509 #define SWIGTYPE_p_wxPyImageHandler swig_types[75]
1510 #define SWIGTYPE_p_wxPySizer swig_types[76]
1511 #define SWIGTYPE_p_wxPyValidator swig_types[77]
1512 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[78]
1513 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[79]
1514 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[80]
1515 #define SWIGTYPE_p_wxScrollEvent swig_types[81]
1516 #define SWIGTYPE_p_wxScrollWinEvent swig_types[82]
1517 #define SWIGTYPE_p_wxSetCursorEvent swig_types[83]
1518 #define SWIGTYPE_p_wxShowEvent swig_types[84]
1519 #define SWIGTYPE_p_wxSize swig_types[85]
1520 #define SWIGTYPE_p_wxSizeEvent swig_types[86]
1521 #define SWIGTYPE_p_wxSizer swig_types[87]
1522 #define SWIGTYPE_p_wxSizerItem swig_types[88]
1523 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[89]
1524 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[90]
1525 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[91]
1526 #define SWIGTYPE_p_wxTIFFHandler swig_types[92]
1527 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[93]
1528 #define SWIGTYPE_p_wxValidator swig_types[94]
1529 #define SWIGTYPE_p_wxWindow swig_types[95]
1530 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[96]
1531 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[97]
1532 #define SWIGTYPE_p_wxXPMHandler swig_types[98]
1533 #define SWIGTYPE_p_wxXmlDocument swig_types[99]
1534 #define SWIGTYPE_p_wxXmlNode swig_types[100]
1535 #define SWIGTYPE_p_wxXmlProperty swig_types[101]
1536 #define SWIGTYPE_p_wxXmlResource swig_types[102]
1537 #define SWIGTYPE_ptrdiff_t swig_types[103]
1538 #define SWIGTYPE_std__ptrdiff_t swig_types[104]
1539 #define SWIGTYPE_unsigned_int swig_types[105]
1540 static swig_type_info
*swig_types
[107];
1541 static swig_module_info swig_module
= {swig_types
, 106, 0, 0, 0, 0};
1542 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1543 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1545 /* -------- TYPES TABLE (END) -------- */
1548 /*-----------------------------------------------
1550 ------------------------------------------------*/
1551 #define SWIG_init init_xrc
1553 #define SWIG_name "_xrc"
1555 #include "wx/wxPython/wxPython.h"
1556 #include "wx/wxPython/pyclasses.h"
1557 #include "wx/wxPython/pyistream.h"
1559 #include <wx/xml/xml.h>
1560 #include <wx/xrc/xmlres.h>
1562 static const wxString
wxPyEmptyString(wxEmptyString
);
1563 static const wxString
wxPyUTF8String(wxT("UTF-8"));
1564 static const wxString
wxPyStyleString(wxT("style"));
1565 static const wxString
wxPySizeString(wxT("size"));
1566 static const wxString
wxPyPosString(wxT("pos"));
1567 static const wxString
wxPyBitmapString(wxT("bitmap"));
1568 static const wxString
wxPyIconString(wxT("icon"));
1569 static const wxString
wxPyFontString(wxT("font"));
1571 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
1572 #define SWIG_From_int PyInt_FromLong
1580 SWIG_CheckLongInRange(long value
, long min_value
, long max_value
,
1583 if (value
< min_value
) {
1585 PyErr_Format(PyExc_OverflowError
,
1586 "value %ld is less than '%s' minimum %ld",
1587 value
, errmsg
, min_value
);
1590 } else if (value
> max_value
) {
1592 PyErr_Format(PyExc_OverflowError
,
1593 "value %ld is greater than '%s' maximum %ld",
1594 value
, errmsg
, max_value
);
1603 SWIG_AsVal_long(PyObject
* obj
, long* val
)
1605 if (PyNumber_Check(obj
)) {
1606 if (val
) *val
= PyInt_AsLong(obj
);
1610 SWIG_Python_TypeError("number", obj
);
1616 #if INT_MAX != LONG_MAX
1618 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1620 const char* errmsg
= val
? "int" : (char*)0;
1622 if (SWIG_AsVal_long(obj
, &v
)) {
1623 if (SWIG_CheckLongInRange(v
, INT_MIN
,INT_MAX
, errmsg
)) {
1624 if (val
) *val
= static_cast<int >(v
);
1633 SWIG_type_error(errmsg
, obj
);
1638 SWIGINTERNINLINE
int
1639 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1641 return SWIG_AsVal_long(obj
,(long*)val
);
1646 SWIGINTERNINLINE
int
1647 SWIG_As_int(PyObject
* obj
)
1650 if (!SWIG_AsVal_int(obj
, &v
)) {
1652 this is needed to make valgrind/purify happier.
1654 memset((void*)&v
, 0, sizeof(int));
1660 SWIGINTERNINLINE
int
1661 SWIG_Check_int(PyObject
* obj
)
1663 return SWIG_AsVal_int(obj
, (int*)0);
1666 static bool wxXmlResource_LoadFromString(wxXmlResource
*self
,wxString
const &data
){
1667 static int s_memFileIdx
= 0;
1669 // Check for memory FS. If not present, load the handler:
1670 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
1673 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
1674 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
1678 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
1680 // Now put the resource data into the memory FS
1681 wxString
filename(wxT("XRC_resource/data_string_"));
1682 filename
<< s_memFileIdx
;
1684 wxMemoryFSHandler::AddFile(filename
, data
);
1686 // Load the "file" into the resource object
1687 bool retval
= self
->Load(wxT("memory:") + filename
);
1692 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
1693 #define SWIG_From_long PyInt_FromLong
1697 class wxPyXmlSubclassFactory
: public wxXmlSubclassFactory
1700 wxPyXmlSubclassFactory() {}
1701 DEC_PYCALLBACK_OBJECT_STRING_pure(Create
);
1705 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory
, wxXmlSubclassFactory
, Create
);
1707 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
1708 // callbacks, as well as to make some protected things public so they can
1710 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
1712 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
1713 //~wxPyXmlResourceHandler();
1715 // Base class virtuals
1717 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
1718 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
1721 // accessors for protected members
1723 wxXmlResource
* GetResource() { return m_resource
; }
1724 wxXmlNode
* GetNode() { return m_node
; }
1725 wxString
GetClass() { return m_class
; }
1726 wxObject
* GetParent() { return m_parent
; }
1727 wxObject
* GetInstance() { return m_instance
; }
1728 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
1731 // turn some protected methods into public via delegation
1733 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
1734 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
1736 wxString
GetNodeContent(wxXmlNode
*node
)
1737 { return wxXmlResourceHandler::GetNodeContent(node
); }
1739 bool HasParam(const wxString
& param
)
1740 { return wxXmlResourceHandler::HasParam(param
); }
1742 wxXmlNode
*GetParamNode(const wxString
& param
)
1743 { return wxXmlResourceHandler::GetParamNode(param
); }
1745 wxString
GetParamValue(const wxString
& param
)
1746 { return wxXmlResourceHandler::GetParamValue(param
); }
1748 void AddStyle(const wxString
& name
, int value
)
1749 { wxXmlResourceHandler::AddStyle(name
, value
); }
1751 void AddWindowStyles()
1752 { wxXmlResourceHandler::AddWindowStyles(); }
1754 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
1755 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
1757 wxString
GetText(const wxString
& param
, bool translate
= true)
1758 { return wxXmlResourceHandler::GetText(param
, translate
); }
1761 { return wxXmlResourceHandler::GetID(); }
1764 { return wxXmlResourceHandler::GetName(); }
1766 bool GetBool(const wxString
& param
, bool defaultv
= false)
1767 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
1769 long GetLong( const wxString
& param
, long defaultv
= 0 )
1770 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
1772 wxColour
GetColour(const wxString
& param
)
1773 { return wxXmlResourceHandler::GetColour(param
); }
1775 wxSize
GetSize(const wxString
& param
= wxT("size"))
1776 { return wxXmlResourceHandler::GetSize(param
); }
1778 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
1779 { return wxXmlResourceHandler::GetPosition(param
); }
1781 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
1782 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
1784 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
1785 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
1786 wxSize size
= wxDefaultSize
)
1787 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
1789 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
1790 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
1791 wxSize size
= wxDefaultSize
)
1792 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
1794 wxFont
GetFont(const wxString
& param
= wxT("font"))
1795 { return wxXmlResourceHandler::GetFont(param
); }
1797 void SetupWindow(wxWindow
*wnd
)
1798 { wxXmlResourceHandler::SetupWindow(wnd
); }
1800 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= false)
1801 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
1803 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
1804 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
1806 wxObject
*CreateResFromNode(wxXmlNode
*node
,
1807 wxObject
*parent
, wxObject
*instance
= NULL
)
1808 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
1810 wxFileSystem
& GetCurFileSystem()
1811 { return wxXmlResourceHandler::GetCurFileSystem(); }
1817 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
1818 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
1823 SWIG_AsVal_bool(PyObject
*obj
, bool *val
)
1825 if (obj
== Py_True
) {
1826 if (val
) *val
= true;
1829 if (obj
== Py_False
) {
1830 if (val
) *val
= false;
1834 if (SWIG_AsVal_int(obj
, &res
)) {
1835 if (val
) *val
= res
? true : false;
1841 SWIG_type_error("bool", obj
);
1847 SWIGINTERNINLINE
bool
1848 SWIG_As_bool(PyObject
* obj
)
1851 if (!SWIG_AsVal_bool(obj
, &v
)) {
1853 this is needed to make valgrind/purify happier.
1855 memset((void*)&v
, 0, sizeof(bool));
1861 SWIGINTERNINLINE
int
1862 SWIG_Check_bool(PyObject
* obj
)
1864 return SWIG_AsVal_bool(obj
, (bool*)0);
1868 SWIGINTERNINLINE
long
1869 SWIG_As_long(PyObject
* obj
)
1872 if (!SWIG_AsVal_long(obj
, &v
)) {
1874 this is needed to make valgrind/purify happier.
1876 memset((void*)&v
, 0, sizeof(long));
1882 SWIGINTERNINLINE
int
1883 SWIG_Check_long(PyObject
* obj
)
1885 return SWIG_AsVal_long(obj
, (long*)0);
1891 static int _wrap_UTF8String_set(PyObject
*) {
1892 PyErr_SetString(PyExc_TypeError
,"Variable UTF8String is read-only.");
1897 static PyObject
*_wrap_UTF8String_get(void) {
1898 PyObject
*pyobj
= NULL
;
1902 pyobj
= PyUnicode_FromWideChar((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
1904 pyobj
= PyString_FromStringAndSize((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
1911 static int _wrap_StyleString_set(PyObject
*) {
1912 PyErr_SetString(PyExc_TypeError
,"Variable StyleString is read-only.");
1917 static PyObject
*_wrap_StyleString_get(void) {
1918 PyObject
*pyobj
= NULL
;
1922 pyobj
= PyUnicode_FromWideChar((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
1924 pyobj
= PyString_FromStringAndSize((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
1931 static int _wrap_SizeString_set(PyObject
*) {
1932 PyErr_SetString(PyExc_TypeError
,"Variable SizeString is read-only.");
1937 static PyObject
*_wrap_SizeString_get(void) {
1938 PyObject
*pyobj
= NULL
;
1942 pyobj
= PyUnicode_FromWideChar((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
1944 pyobj
= PyString_FromStringAndSize((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
1951 static int _wrap_PosString_set(PyObject
*) {
1952 PyErr_SetString(PyExc_TypeError
,"Variable PosString is read-only.");
1957 static PyObject
*_wrap_PosString_get(void) {
1958 PyObject
*pyobj
= NULL
;
1962 pyobj
= PyUnicode_FromWideChar((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
1964 pyobj
= PyString_FromStringAndSize((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
1971 static int _wrap_BitmapString_set(PyObject
*) {
1972 PyErr_SetString(PyExc_TypeError
,"Variable BitmapString is read-only.");
1977 static PyObject
*_wrap_BitmapString_get(void) {
1978 PyObject
*pyobj
= NULL
;
1982 pyobj
= PyUnicode_FromWideChar((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
1984 pyobj
= PyString_FromStringAndSize((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
1991 static int _wrap_IconString_set(PyObject
*) {
1992 PyErr_SetString(PyExc_TypeError
,"Variable IconString is read-only.");
1997 static PyObject
*_wrap_IconString_get(void) {
1998 PyObject
*pyobj
= NULL
;
2002 pyobj
= PyUnicode_FromWideChar((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
2004 pyobj
= PyString_FromStringAndSize((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
2011 static int _wrap_FontString_set(PyObject
*) {
2012 PyErr_SetString(PyExc_TypeError
,"Variable FontString is read-only.");
2017 static PyObject
*_wrap_FontString_get(void) {
2018 PyObject
*pyobj
= NULL
;
2022 pyobj
= PyUnicode_FromWideChar((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
2024 pyobj
= PyString_FromStringAndSize((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
2031 static PyObject
*_wrap_new_XmlResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2032 PyObject
*resultobj
= NULL
;
2033 wxString
*arg1
= 0 ;
2034 int arg2
= (int) wxXRC_USE_LOCALE
;
2035 wxXmlResource
*result
;
2036 bool temp1
= false ;
2037 PyObject
* obj0
= 0 ;
2038 PyObject
* obj1
= 0 ;
2040 (char *) "filemask",(char *) "flags", NULL
2043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlResource",kwnames
,&obj0
,&obj1
)) goto fail
;
2045 arg1
= wxString_in_helper(obj0
);
2046 if (arg1
== NULL
) SWIG_fail
;
2051 arg2
= static_cast<int >(SWIG_As_int(obj1
));
2052 if (SWIG_arg_fail(2)) SWIG_fail
;
2056 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2057 result
= (wxXmlResource
*)new wxXmlResource((wxString
const &)*arg1
,arg2
);
2059 wxPyEndAllowThreads(__tstate
);
2060 if (PyErr_Occurred()) SWIG_fail
;
2062 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 1);
2077 static PyObject
*_wrap_new_EmptyXmlResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2078 PyObject
*resultobj
= NULL
;
2079 int arg1
= (int) wxXRC_USE_LOCALE
;
2080 wxXmlResource
*result
;
2081 PyObject
* obj0
= 0 ;
2083 (char *) "flags", NULL
2086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|O:new_EmptyXmlResource",kwnames
,&obj0
)) goto fail
;
2089 arg1
= static_cast<int >(SWIG_As_int(obj0
));
2090 if (SWIG_arg_fail(1)) SWIG_fail
;
2094 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2095 result
= (wxXmlResource
*)new wxXmlResource(arg1
);
2097 wxPyEndAllowThreads(__tstate
);
2098 if (PyErr_Occurred()) SWIG_fail
;
2100 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 1);
2107 static PyObject
*_wrap_delete_XmlResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2108 PyObject
*resultobj
= NULL
;
2109 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2110 PyObject
* obj0
= 0 ;
2112 (char *) "self", NULL
2115 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlResource",kwnames
,&obj0
)) goto fail
;
2116 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2117 if (SWIG_arg_fail(1)) SWIG_fail
;
2119 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2122 wxPyEndAllowThreads(__tstate
);
2123 if (PyErr_Occurred()) SWIG_fail
;
2125 Py_INCREF(Py_None
); resultobj
= Py_None
;
2132 static PyObject
*_wrap_XmlResource_Load(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2133 PyObject
*resultobj
= NULL
;
2134 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2135 wxString
*arg2
= 0 ;
2137 bool temp2
= false ;
2138 PyObject
* obj0
= 0 ;
2139 PyObject
* obj1
= 0 ;
2141 (char *) "self",(char *) "filemask", NULL
2144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Load",kwnames
,&obj0
,&obj1
)) goto fail
;
2145 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2146 if (SWIG_arg_fail(1)) SWIG_fail
;
2148 arg2
= wxString_in_helper(obj1
);
2149 if (arg2
== NULL
) SWIG_fail
;
2153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2154 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
);
2156 wxPyEndAllowThreads(__tstate
);
2157 if (PyErr_Occurred()) SWIG_fail
;
2160 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2176 static PyObject
*_wrap_XmlResource_LoadFromString(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2177 PyObject
*resultobj
= NULL
;
2178 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2179 wxString
*arg2
= 0 ;
2181 bool temp2
= false ;
2182 PyObject
* obj0
= 0 ;
2183 PyObject
* obj1
= 0 ;
2185 (char *) "self",(char *) "data", NULL
2188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadFromString",kwnames
,&obj0
,&obj1
)) goto fail
;
2189 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2190 if (SWIG_arg_fail(1)) SWIG_fail
;
2192 arg2
= wxString_in_helper(obj1
);
2193 if (arg2
== NULL
) SWIG_fail
;
2197 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2198 result
= (bool)wxXmlResource_LoadFromString(arg1
,(wxString
const &)*arg2
);
2200 wxPyEndAllowThreads(__tstate
);
2201 if (PyErr_Occurred()) SWIG_fail
;
2204 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2220 static PyObject
*_wrap_XmlResource_Unload(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2221 PyObject
*resultobj
= NULL
;
2222 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2223 wxString
*arg2
= 0 ;
2225 bool temp2
= false ;
2226 PyObject
* obj0
= 0 ;
2227 PyObject
* obj1
= 0 ;
2229 (char *) "self",(char *) "filename", NULL
2232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Unload",kwnames
,&obj0
,&obj1
)) goto fail
;
2233 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2234 if (SWIG_arg_fail(1)) SWIG_fail
;
2236 arg2
= wxString_in_helper(obj1
);
2237 if (arg2
== NULL
) SWIG_fail
;
2241 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2242 result
= (bool)(arg1
)->Unload((wxString
const &)*arg2
);
2244 wxPyEndAllowThreads(__tstate
);
2245 if (PyErr_Occurred()) SWIG_fail
;
2248 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2264 static PyObject
*_wrap_XmlResource_InitAllHandlers(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2265 PyObject
*resultobj
= NULL
;
2266 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2267 PyObject
* obj0
= 0 ;
2269 (char *) "self", NULL
2272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_InitAllHandlers",kwnames
,&obj0
)) goto fail
;
2273 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2274 if (SWIG_arg_fail(1)) SWIG_fail
;
2276 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2277 (arg1
)->InitAllHandlers();
2279 wxPyEndAllowThreads(__tstate
);
2280 if (PyErr_Occurred()) SWIG_fail
;
2282 Py_INCREF(Py_None
); resultobj
= Py_None
;
2289 static PyObject
*_wrap_XmlResource_AddHandler(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2290 PyObject
*resultobj
= NULL
;
2291 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2292 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
2293 PyObject
* obj0
= 0 ;
2294 PyObject
* obj1
= 0 ;
2296 (char *) "self",(char *) "handler", NULL
2299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_AddHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
2300 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2301 if (SWIG_arg_fail(1)) SWIG_fail
;
2302 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
2303 if (SWIG_arg_fail(2)) SWIG_fail
;
2305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2306 (arg1
)->AddHandler(arg2
);
2308 wxPyEndAllowThreads(__tstate
);
2309 if (PyErr_Occurred()) SWIG_fail
;
2311 Py_INCREF(Py_None
); resultobj
= Py_None
;
2318 static PyObject
*_wrap_XmlResource_InsertHandler(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2319 PyObject
*resultobj
= NULL
;
2320 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2321 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
2322 PyObject
* obj0
= 0 ;
2323 PyObject
* obj1
= 0 ;
2325 (char *) "self",(char *) "handler", NULL
2328 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_InsertHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
2329 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2330 if (SWIG_arg_fail(1)) SWIG_fail
;
2331 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
2332 if (SWIG_arg_fail(2)) SWIG_fail
;
2334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2335 (arg1
)->InsertHandler(arg2
);
2337 wxPyEndAllowThreads(__tstate
);
2338 if (PyErr_Occurred()) SWIG_fail
;
2340 Py_INCREF(Py_None
); resultobj
= Py_None
;
2347 static PyObject
*_wrap_XmlResource_ClearHandlers(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2348 PyObject
*resultobj
= NULL
;
2349 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2350 PyObject
* obj0
= 0 ;
2352 (char *) "self", NULL
2355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_ClearHandlers",kwnames
,&obj0
)) goto fail
;
2356 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2357 if (SWIG_arg_fail(1)) SWIG_fail
;
2359 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2360 (arg1
)->ClearHandlers();
2362 wxPyEndAllowThreads(__tstate
);
2363 if (PyErr_Occurred()) SWIG_fail
;
2365 Py_INCREF(Py_None
); resultobj
= Py_None
;
2372 static PyObject
*_wrap_XmlResource_AddSubclassFactory(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2373 PyObject
*resultobj
= NULL
;
2374 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
2375 PyObject
* obj0
= 0 ;
2377 (char *) "factory", NULL
2380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_AddSubclassFactory",kwnames
,&obj0
)) goto fail
;
2381 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
, SWIG_POINTER_EXCEPTION
| 0);
2382 if (SWIG_arg_fail(1)) SWIG_fail
;
2384 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2385 wxXmlResource::AddSubclassFactory(arg1
);
2387 wxPyEndAllowThreads(__tstate
);
2388 if (PyErr_Occurred()) SWIG_fail
;
2390 Py_INCREF(Py_None
); resultobj
= Py_None
;
2397 static PyObject
*_wrap_XmlResource_LoadMenu(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2398 PyObject
*resultobj
= NULL
;
2399 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2400 wxString
*arg2
= 0 ;
2402 bool temp2
= false ;
2403 PyObject
* obj0
= 0 ;
2404 PyObject
* obj1
= 0 ;
2406 (char *) "self",(char *) "name", NULL
2409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenu",kwnames
,&obj0
,&obj1
)) goto fail
;
2410 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2411 if (SWIG_arg_fail(1)) SWIG_fail
;
2413 arg2
= wxString_in_helper(obj1
);
2414 if (arg2
== NULL
) SWIG_fail
;
2418 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2419 result
= (wxMenu
*)(arg1
)->LoadMenu((wxString
const &)*arg2
);
2421 wxPyEndAllowThreads(__tstate
);
2422 if (PyErr_Occurred()) SWIG_fail
;
2425 resultobj
= wxPyMake_wxObject(result
, 0);
2441 static PyObject
*_wrap_XmlResource_LoadMenuBar(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2442 PyObject
*resultobj
= NULL
;
2443 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2444 wxString
*arg2
= 0 ;
2446 bool temp2
= false ;
2447 PyObject
* obj0
= 0 ;
2448 PyObject
* obj1
= 0 ;
2450 (char *) "self",(char *) "name", NULL
2453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenuBar",kwnames
,&obj0
,&obj1
)) goto fail
;
2454 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2455 if (SWIG_arg_fail(1)) SWIG_fail
;
2457 arg2
= wxString_in_helper(obj1
);
2458 if (arg2
== NULL
) SWIG_fail
;
2462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2463 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar((wxString
const &)*arg2
);
2465 wxPyEndAllowThreads(__tstate
);
2466 if (PyErr_Occurred()) SWIG_fail
;
2469 resultobj
= wxPyMake_wxObject(result
, 0);
2485 static PyObject
*_wrap_XmlResource_LoadMenuBarOnFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2486 PyObject
*resultobj
= NULL
;
2487 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2488 wxWindow
*arg2
= (wxWindow
*) 0 ;
2489 wxString
*arg3
= 0 ;
2491 bool temp3
= false ;
2492 PyObject
* obj0
= 0 ;
2493 PyObject
* obj1
= 0 ;
2494 PyObject
* obj2
= 0 ;
2496 (char *) "self",(char *) "parent",(char *) "name", NULL
2499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2500 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2501 if (SWIG_arg_fail(1)) SWIG_fail
;
2502 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2503 if (SWIG_arg_fail(2)) SWIG_fail
;
2505 arg3
= wxString_in_helper(obj2
);
2506 if (arg3
== NULL
) SWIG_fail
;
2510 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2511 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar(arg2
,(wxString
const &)*arg3
);
2513 wxPyEndAllowThreads(__tstate
);
2514 if (PyErr_Occurred()) SWIG_fail
;
2517 resultobj
= wxPyMake_wxObject(result
, 0);
2533 static PyObject
*_wrap_XmlResource_LoadToolBar(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2534 PyObject
*resultobj
= NULL
;
2535 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2536 wxWindow
*arg2
= (wxWindow
*) 0 ;
2537 wxString
*arg3
= 0 ;
2539 bool temp3
= false ;
2540 PyObject
* obj0
= 0 ;
2541 PyObject
* obj1
= 0 ;
2542 PyObject
* obj2
= 0 ;
2544 (char *) "self",(char *) "parent",(char *) "name", NULL
2547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadToolBar",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2548 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2549 if (SWIG_arg_fail(1)) SWIG_fail
;
2550 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2551 if (SWIG_arg_fail(2)) SWIG_fail
;
2553 arg3
= wxString_in_helper(obj2
);
2554 if (arg3
== NULL
) SWIG_fail
;
2558 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2559 result
= (wxToolBar
*)(arg1
)->LoadToolBar(arg2
,(wxString
const &)*arg3
);
2561 wxPyEndAllowThreads(__tstate
);
2562 if (PyErr_Occurred()) SWIG_fail
;
2565 resultobj
= wxPyMake_wxObject(result
, (bool)0);
2581 static PyObject
*_wrap_XmlResource_LoadDialog(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2582 PyObject
*resultobj
= NULL
;
2583 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2584 wxWindow
*arg2
= (wxWindow
*) 0 ;
2585 wxString
*arg3
= 0 ;
2587 bool temp3
= false ;
2588 PyObject
* obj0
= 0 ;
2589 PyObject
* obj1
= 0 ;
2590 PyObject
* obj2
= 0 ;
2592 (char *) "self",(char *) "parent",(char *) "name", NULL
2595 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadDialog",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2596 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2597 if (SWIG_arg_fail(1)) SWIG_fail
;
2598 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2599 if (SWIG_arg_fail(2)) SWIG_fail
;
2601 arg3
= wxString_in_helper(obj2
);
2602 if (arg3
== NULL
) SWIG_fail
;
2606 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2607 result
= (wxDialog
*)(arg1
)->LoadDialog(arg2
,(wxString
const &)*arg3
);
2609 wxPyEndAllowThreads(__tstate
);
2610 if (PyErr_Occurred()) SWIG_fail
;
2613 resultobj
= wxPyMake_wxObject(result
, (bool)0);
2629 static PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2630 PyObject
*resultobj
= NULL
;
2631 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2632 wxDialog
*arg2
= (wxDialog
*) 0 ;
2633 wxWindow
*arg3
= (wxWindow
*) 0 ;
2634 wxString
*arg4
= 0 ;
2636 bool temp4
= false ;
2637 PyObject
* obj0
= 0 ;
2638 PyObject
* obj1
= 0 ;
2639 PyObject
* obj2
= 0 ;
2640 PyObject
* obj3
= 0 ;
2642 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
2645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2646 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2647 if (SWIG_arg_fail(1)) SWIG_fail
;
2648 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDialog
, SWIG_POINTER_EXCEPTION
| 0);
2649 if (SWIG_arg_fail(2)) SWIG_fail
;
2650 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2651 if (SWIG_arg_fail(3)) SWIG_fail
;
2653 arg4
= wxString_in_helper(obj3
);
2654 if (arg4
== NULL
) SWIG_fail
;
2658 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2659 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
2661 wxPyEndAllowThreads(__tstate
);
2662 if (PyErr_Occurred()) SWIG_fail
;
2665 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2681 static PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2682 PyObject
*resultobj
= NULL
;
2683 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2684 wxWindow
*arg2
= (wxWindow
*) 0 ;
2685 wxString
*arg3
= 0 ;
2687 bool temp3
= false ;
2688 PyObject
* obj0
= 0 ;
2689 PyObject
* obj1
= 0 ;
2690 PyObject
* obj2
= 0 ;
2692 (char *) "self",(char *) "parent",(char *) "name", NULL
2695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2696 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2697 if (SWIG_arg_fail(1)) SWIG_fail
;
2698 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2699 if (SWIG_arg_fail(2)) SWIG_fail
;
2701 arg3
= wxString_in_helper(obj2
);
2702 if (arg3
== NULL
) SWIG_fail
;
2706 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2707 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
2709 wxPyEndAllowThreads(__tstate
);
2710 if (PyErr_Occurred()) SWIG_fail
;
2713 resultobj
= wxPyMake_wxObject(result
, (bool)0);
2729 static PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2730 PyObject
*resultobj
= NULL
;
2731 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2732 wxPanel
*arg2
= (wxPanel
*) 0 ;
2733 wxWindow
*arg3
= (wxWindow
*) 0 ;
2734 wxString
*arg4
= 0 ;
2736 bool temp4
= false ;
2737 PyObject
* obj0
= 0 ;
2738 PyObject
* obj1
= 0 ;
2739 PyObject
* obj2
= 0 ;
2740 PyObject
* obj3
= 0 ;
2742 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
2745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2746 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2747 if (SWIG_arg_fail(1)) SWIG_fail
;
2748 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxPanel
, SWIG_POINTER_EXCEPTION
| 0);
2749 if (SWIG_arg_fail(2)) SWIG_fail
;
2750 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2751 if (SWIG_arg_fail(3)) SWIG_fail
;
2753 arg4
= wxString_in_helper(obj3
);
2754 if (arg4
== NULL
) SWIG_fail
;
2758 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2759 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
2761 wxPyEndAllowThreads(__tstate
);
2762 if (PyErr_Occurred()) SWIG_fail
;
2765 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2781 static PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2782 PyObject
*resultobj
= NULL
;
2783 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2784 wxWindow
*arg2
= (wxWindow
*) 0 ;
2785 wxString
*arg3
= 0 ;
2787 bool temp3
= false ;
2788 PyObject
* obj0
= 0 ;
2789 PyObject
* obj1
= 0 ;
2790 PyObject
* obj2
= 0 ;
2792 (char *) "self",(char *) "parent",(char *) "name", NULL
2795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2796 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2797 if (SWIG_arg_fail(1)) SWIG_fail
;
2798 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2799 if (SWIG_arg_fail(2)) SWIG_fail
;
2801 arg3
= wxString_in_helper(obj2
);
2802 if (arg3
== NULL
) SWIG_fail
;
2806 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2807 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
2809 wxPyEndAllowThreads(__tstate
);
2810 if (PyErr_Occurred()) SWIG_fail
;
2813 resultobj
= wxPyMake_wxObject(result
, (bool)0);
2829 static PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2830 PyObject
*resultobj
= NULL
;
2831 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2832 wxFrame
*arg2
= (wxFrame
*) 0 ;
2833 wxWindow
*arg3
= (wxWindow
*) 0 ;
2834 wxString
*arg4
= 0 ;
2836 bool temp4
= false ;
2837 PyObject
* obj0
= 0 ;
2838 PyObject
* obj1
= 0 ;
2839 PyObject
* obj2
= 0 ;
2840 PyObject
* obj3
= 0 ;
2842 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
2845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2846 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2847 if (SWIG_arg_fail(1)) SWIG_fail
;
2848 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxFrame
, SWIG_POINTER_EXCEPTION
| 0);
2849 if (SWIG_arg_fail(2)) SWIG_fail
;
2850 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2851 if (SWIG_arg_fail(3)) SWIG_fail
;
2853 arg4
= wxString_in_helper(obj3
);
2854 if (arg4
== NULL
) SWIG_fail
;
2858 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2859 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
2861 wxPyEndAllowThreads(__tstate
);
2862 if (PyErr_Occurred()) SWIG_fail
;
2865 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2881 static PyObject
*_wrap_XmlResource_LoadObject(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2882 PyObject
*resultobj
= NULL
;
2883 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2884 wxWindow
*arg2
= (wxWindow
*) 0 ;
2885 wxString
*arg3
= 0 ;
2886 wxString
*arg4
= 0 ;
2888 bool temp3
= false ;
2889 bool temp4
= false ;
2890 PyObject
* obj0
= 0 ;
2891 PyObject
* obj1
= 0 ;
2892 PyObject
* obj2
= 0 ;
2893 PyObject
* obj3
= 0 ;
2895 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
2898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2899 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2900 if (SWIG_arg_fail(1)) SWIG_fail
;
2901 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2902 if (SWIG_arg_fail(2)) SWIG_fail
;
2904 arg3
= wxString_in_helper(obj2
);
2905 if (arg3
== NULL
) SWIG_fail
;
2909 arg4
= wxString_in_helper(obj3
);
2910 if (arg4
== NULL
) SWIG_fail
;
2914 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2915 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
2917 wxPyEndAllowThreads(__tstate
);
2918 if (PyErr_Occurred()) SWIG_fail
;
2921 resultobj
= wxPyMake_wxObject(result
, (bool)0);
2945 static PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2946 PyObject
*resultobj
= NULL
;
2947 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2948 wxObject
*arg2
= (wxObject
*) 0 ;
2949 wxWindow
*arg3
= (wxWindow
*) 0 ;
2950 wxString
*arg4
= 0 ;
2951 wxString
*arg5
= 0 ;
2953 bool temp4
= false ;
2954 bool temp5
= false ;
2955 PyObject
* obj0
= 0 ;
2956 PyObject
* obj1
= 0 ;
2957 PyObject
* obj2
= 0 ;
2958 PyObject
* obj3
= 0 ;
2959 PyObject
* obj4
= 0 ;
2961 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
2964 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
2965 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2966 if (SWIG_arg_fail(1)) SWIG_fail
;
2967 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxObject
, SWIG_POINTER_EXCEPTION
| 0);
2968 if (SWIG_arg_fail(2)) SWIG_fail
;
2969 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2970 if (SWIG_arg_fail(3)) SWIG_fail
;
2972 arg4
= wxString_in_helper(obj3
);
2973 if (arg4
== NULL
) SWIG_fail
;
2977 arg5
= wxString_in_helper(obj4
);
2978 if (arg5
== NULL
) SWIG_fail
;
2982 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2983 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
2985 wxPyEndAllowThreads(__tstate
);
2986 if (PyErr_Occurred()) SWIG_fail
;
2989 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3013 static PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3014 PyObject
*resultobj
= NULL
;
3015 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3016 wxString
*arg2
= 0 ;
3018 bool temp2
= false ;
3019 PyObject
* obj0
= 0 ;
3020 PyObject
* obj1
= 0 ;
3022 (char *) "self",(char *) "name", NULL
3025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) goto fail
;
3026 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
3027 if (SWIG_arg_fail(1)) SWIG_fail
;
3029 arg2
= wxString_in_helper(obj1
);
3030 if (arg2
== NULL
) SWIG_fail
;
3034 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3035 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
3037 wxPyEndAllowThreads(__tstate
);
3038 if (PyErr_Occurred()) SWIG_fail
;
3041 wxBitmap
* resultptr
;
3042 resultptr
= new wxBitmap(static_cast<wxBitmap
& >(result
));
3043 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
3059 static PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3060 PyObject
*resultobj
= NULL
;
3061 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3062 wxString
*arg2
= 0 ;
3064 bool temp2
= false ;
3065 PyObject
* obj0
= 0 ;
3066 PyObject
* obj1
= 0 ;
3068 (char *) "self",(char *) "name", NULL
3071 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) goto fail
;
3072 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
3073 if (SWIG_arg_fail(1)) SWIG_fail
;
3075 arg2
= wxString_in_helper(obj1
);
3076 if (arg2
== NULL
) SWIG_fail
;
3080 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3081 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
3083 wxPyEndAllowThreads(__tstate
);
3084 if (PyErr_Occurred()) SWIG_fail
;
3088 resultptr
= new wxIcon(static_cast<wxIcon
& >(result
));
3089 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
3105 static PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3106 PyObject
*resultobj
= NULL
;
3107 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3108 wxString
*arg2
= 0 ;
3109 wxWindow
*arg3
= (wxWindow
*) 0 ;
3110 wxWindow
*arg4
= (wxWindow
*) NULL
;
3112 bool temp2
= false ;
3113 PyObject
* obj0
= 0 ;
3114 PyObject
* obj1
= 0 ;
3115 PyObject
* obj2
= 0 ;
3116 PyObject
* obj3
= 0 ;
3118 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
3121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
3122 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
3123 if (SWIG_arg_fail(1)) SWIG_fail
;
3125 arg2
= wxString_in_helper(obj1
);
3126 if (arg2
== NULL
) SWIG_fail
;
3129 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
3130 if (SWIG_arg_fail(3)) SWIG_fail
;
3132 SWIG_Python_ConvertPtr(obj3
, (void **)&arg4
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
3133 if (SWIG_arg_fail(4)) SWIG_fail
;
3136 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3137 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
3139 wxPyEndAllowThreads(__tstate
);
3140 if (PyErr_Occurred()) SWIG_fail
;
3143 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3159 static PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3160 PyObject
*resultobj
= NULL
;
3161 wxString
*arg1
= 0 ;
3163 bool temp1
= false ;
3164 PyObject
* obj0
= 0 ;
3166 (char *) "str_id", NULL
3169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetXRCID",kwnames
,&obj0
)) goto fail
;
3171 arg1
= wxString_in_helper(obj0
);
3172 if (arg1
== NULL
) SWIG_fail
;
3176 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3177 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
);
3179 wxPyEndAllowThreads(__tstate
);
3180 if (PyErr_Occurred()) SWIG_fail
;
3183 resultobj
= SWIG_From_int(static_cast<int >(result
));
3199 static PyObject
*_wrap_XmlResource_GetVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3200 PyObject
*resultobj
= NULL
;
3201 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3203 PyObject
* obj0
= 0 ;
3205 (char *) "self", NULL
3208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetVersion",kwnames
,&obj0
)) goto fail
;
3209 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
3210 if (SWIG_arg_fail(1)) SWIG_fail
;
3212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3213 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
3215 wxPyEndAllowThreads(__tstate
);
3216 if (PyErr_Occurred()) SWIG_fail
;
3219 resultobj
= SWIG_From_long(static_cast<long >(result
));
3227 static PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3228 PyObject
*resultobj
= NULL
;
3229 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3235 PyObject
* obj0
= 0 ;
3236 PyObject
* obj1
= 0 ;
3237 PyObject
* obj2
= 0 ;
3238 PyObject
* obj3
= 0 ;
3239 PyObject
* obj4
= 0 ;
3241 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
3244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_CompareVersion",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
3245 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
3246 if (SWIG_arg_fail(1)) SWIG_fail
;
3248 arg2
= static_cast<int >(SWIG_As_int(obj1
));
3249 if (SWIG_arg_fail(2)) SWIG_fail
;
3252 arg3
= static_cast<int >(SWIG_As_int(obj2
));
3253 if (SWIG_arg_fail(3)) SWIG_fail
;
3256 arg4
= static_cast<int >(SWIG_As_int(obj3
));
3257 if (SWIG_arg_fail(4)) SWIG_fail
;
3260 arg5
= static_cast<int >(SWIG_As_int(obj4
));
3261 if (SWIG_arg_fail(5)) SWIG_fail
;
3264 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3265 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
3267 wxPyEndAllowThreads(__tstate
);
3268 if (PyErr_Occurred()) SWIG_fail
;
3271 resultobj
= SWIG_From_int(static_cast<int >(result
));
3279 static PyObject
*_wrap_XmlResource_Get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3280 PyObject
*resultobj
= NULL
;
3281 wxXmlResource
*result
;
3286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":XmlResource_Get",kwnames
)) goto fail
;
3288 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3289 result
= (wxXmlResource
*)wxXmlResource::Get();
3291 wxPyEndAllowThreads(__tstate
);
3292 if (PyErr_Occurred()) SWIG_fail
;
3294 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
3301 static PyObject
*_wrap_XmlResource_Set(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3302 PyObject
*resultobj
= NULL
;
3303 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3304 wxXmlResource
*result
;
3305 PyObject
* obj0
= 0 ;
3307 (char *) "res", NULL
3310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) goto fail
;
3311 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
3312 if (SWIG_arg_fail(1)) SWIG_fail
;
3314 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3315 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
3317 wxPyEndAllowThreads(__tstate
);
3318 if (PyErr_Occurred()) SWIG_fail
;
3320 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
3327 static PyObject
*_wrap_XmlResource_GetFlags(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3328 PyObject
*resultobj
= NULL
;
3329 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3331 PyObject
* obj0
= 0 ;
3333 (char *) "self", NULL
3336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetFlags",kwnames
,&obj0
)) goto fail
;
3337 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
3338 if (SWIG_arg_fail(1)) SWIG_fail
;
3340 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3341 result
= (int)(arg1
)->GetFlags();
3343 wxPyEndAllowThreads(__tstate
);
3344 if (PyErr_Occurred()) SWIG_fail
;
3347 resultobj
= SWIG_From_int(static_cast<int >(result
));
3355 static PyObject
*_wrap_XmlResource_SetFlags(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3356 PyObject
*resultobj
= NULL
;
3357 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3359 PyObject
* obj0
= 0 ;
3360 PyObject
* obj1
= 0 ;
3362 (char *) "self",(char *) "flags", NULL
3365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_SetFlags",kwnames
,&obj0
,&obj1
)) goto fail
;
3366 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
3367 if (SWIG_arg_fail(1)) SWIG_fail
;
3369 arg2
= static_cast<int >(SWIG_As_int(obj1
));
3370 if (SWIG_arg_fail(2)) SWIG_fail
;
3373 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3374 (arg1
)->SetFlags(arg2
);
3376 wxPyEndAllowThreads(__tstate
);
3377 if (PyErr_Occurred()) SWIG_fail
;
3379 Py_INCREF(Py_None
); resultobj
= Py_None
;
3386 static PyObject
* XmlResource_swigregister(PyObject
*, PyObject
*args
) {
3388 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3389 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource
, obj
);
3391 return Py_BuildValue((char *)"");
3393 static PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3394 PyObject
*resultobj
= NULL
;
3395 wxPyXmlSubclassFactory
*result
;
3400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlSubclassFactory",kwnames
)) goto fail
;
3402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3403 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
3405 wxPyEndAllowThreads(__tstate
);
3406 if (PyErr_Occurred()) SWIG_fail
;
3408 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlSubclassFactory
, 1);
3415 static PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3416 PyObject
*resultobj
= NULL
;
3417 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
3418 PyObject
*arg2
= (PyObject
*) 0 ;
3419 PyObject
*arg3
= (PyObject
*) 0 ;
3420 PyObject
* obj0
= 0 ;
3421 PyObject
* obj1
= 0 ;
3422 PyObject
* obj2
= 0 ;
3424 (char *) "self",(char *) "self",(char *) "_class", NULL
3427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3428 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
, SWIG_POINTER_EXCEPTION
| 0);
3429 if (SWIG_arg_fail(1)) SWIG_fail
;
3433 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3434 (arg1
)->_setCallbackInfo(arg2
,arg3
);
3436 wxPyEndAllowThreads(__tstate
);
3437 if (PyErr_Occurred()) SWIG_fail
;
3439 Py_INCREF(Py_None
); resultobj
= Py_None
;
3446 static PyObject
* XmlSubclassFactory_swigregister(PyObject
*, PyObject
*args
) {
3448 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3449 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, obj
);
3451 return Py_BuildValue((char *)"");
3453 static PyObject
*_wrap_new_XmlProperty(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3454 PyObject
*resultobj
= NULL
;
3455 wxString
const &arg1_defvalue
= wxPyEmptyString
;
3456 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
3457 wxString
const &arg2_defvalue
= wxPyEmptyString
;
3458 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3459 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
3460 wxXmlProperty
*result
;
3461 bool temp1
= false ;
3462 bool temp2
= false ;
3463 PyObject
* obj0
= 0 ;
3464 PyObject
* obj1
= 0 ;
3465 PyObject
* obj2
= 0 ;
3467 (char *) "name",(char *) "value",(char *) "next", NULL
3470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3473 arg1
= wxString_in_helper(obj0
);
3474 if (arg1
== NULL
) SWIG_fail
;
3480 arg2
= wxString_in_helper(obj1
);
3481 if (arg2
== NULL
) SWIG_fail
;
3486 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3487 if (SWIG_arg_fail(3)) SWIG_fail
;
3490 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3491 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
3493 wxPyEndAllowThreads(__tstate
);
3494 if (PyErr_Occurred()) SWIG_fail
;
3496 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 1);
3519 static PyObject
*_wrap_XmlProperty_GetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3520 PyObject
*resultobj
= NULL
;
3521 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
3523 PyObject
* obj0
= 0 ;
3525 (char *) "self", NULL
3528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetName",kwnames
,&obj0
)) goto fail
;
3529 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3530 if (SWIG_arg_fail(1)) SWIG_fail
;
3532 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3533 result
= ((wxXmlProperty
const *)arg1
)->GetName();
3535 wxPyEndAllowThreads(__tstate
);
3536 if (PyErr_Occurred()) SWIG_fail
;
3540 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3542 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3551 static PyObject
*_wrap_XmlProperty_GetValue(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3552 PyObject
*resultobj
= NULL
;
3553 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
3555 PyObject
* obj0
= 0 ;
3557 (char *) "self", NULL
3560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetValue",kwnames
,&obj0
)) goto fail
;
3561 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3562 if (SWIG_arg_fail(1)) SWIG_fail
;
3564 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3565 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
3567 wxPyEndAllowThreads(__tstate
);
3568 if (PyErr_Occurred()) SWIG_fail
;
3572 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3574 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3583 static PyObject
*_wrap_XmlProperty_GetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3584 PyObject
*resultobj
= NULL
;
3585 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
3586 wxXmlProperty
*result
;
3587 PyObject
* obj0
= 0 ;
3589 (char *) "self", NULL
3592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetNext",kwnames
,&obj0
)) goto fail
;
3593 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3594 if (SWIG_arg_fail(1)) SWIG_fail
;
3596 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3597 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
3599 wxPyEndAllowThreads(__tstate
);
3600 if (PyErr_Occurred()) SWIG_fail
;
3602 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
3609 static PyObject
*_wrap_XmlProperty_SetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3610 PyObject
*resultobj
= NULL
;
3611 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
3612 wxString
*arg2
= 0 ;
3613 bool temp2
= false ;
3614 PyObject
* obj0
= 0 ;
3615 PyObject
* obj1
= 0 ;
3617 (char *) "self",(char *) "name", NULL
3620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
3621 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3622 if (SWIG_arg_fail(1)) SWIG_fail
;
3624 arg2
= wxString_in_helper(obj1
);
3625 if (arg2
== NULL
) SWIG_fail
;
3629 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3630 (arg1
)->SetName((wxString
const &)*arg2
);
3632 wxPyEndAllowThreads(__tstate
);
3633 if (PyErr_Occurred()) SWIG_fail
;
3635 Py_INCREF(Py_None
); resultobj
= Py_None
;
3650 static PyObject
*_wrap_XmlProperty_SetValue(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3651 PyObject
*resultobj
= NULL
;
3652 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
3653 wxString
*arg2
= 0 ;
3654 bool temp2
= false ;
3655 PyObject
* obj0
= 0 ;
3656 PyObject
* obj1
= 0 ;
3658 (char *) "self",(char *) "value", NULL
3661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) goto fail
;
3662 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3663 if (SWIG_arg_fail(1)) SWIG_fail
;
3665 arg2
= wxString_in_helper(obj1
);
3666 if (arg2
== NULL
) SWIG_fail
;
3670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3671 (arg1
)->SetValue((wxString
const &)*arg2
);
3673 wxPyEndAllowThreads(__tstate
);
3674 if (PyErr_Occurred()) SWIG_fail
;
3676 Py_INCREF(Py_None
); resultobj
= Py_None
;
3691 static PyObject
*_wrap_XmlProperty_SetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3692 PyObject
*resultobj
= NULL
;
3693 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
3694 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
3695 PyObject
* obj0
= 0 ;
3696 PyObject
* obj1
= 0 ;
3698 (char *) "self",(char *) "next", NULL
3701 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
3702 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3703 if (SWIG_arg_fail(1)) SWIG_fail
;
3704 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3705 if (SWIG_arg_fail(2)) SWIG_fail
;
3707 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3708 (arg1
)->SetNext(arg2
);
3710 wxPyEndAllowThreads(__tstate
);
3711 if (PyErr_Occurred()) SWIG_fail
;
3713 Py_INCREF(Py_None
); resultobj
= Py_None
;
3720 static PyObject
* XmlProperty_swigregister(PyObject
*, PyObject
*args
) {
3722 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3723 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty
, obj
);
3725 return Py_BuildValue((char *)"");
3727 static PyObject
*_wrap_new_XmlNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3728 PyObject
*resultobj
= NULL
;
3729 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
3730 wxXmlNodeType arg2
= (wxXmlNodeType
) 0 ;
3731 wxString
const &arg3_defvalue
= wxPyEmptyString
;
3732 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3733 wxString
const &arg4_defvalue
= wxPyEmptyString
;
3734 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
3735 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
3736 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
3738 bool temp3
= false ;
3739 bool temp4
= false ;
3740 PyObject
* obj0
= 0 ;
3741 PyObject
* obj1
= 0 ;
3742 PyObject
* obj2
= 0 ;
3743 PyObject
* obj3
= 0 ;
3744 PyObject
* obj4
= 0 ;
3745 PyObject
* obj5
= 0 ;
3747 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
3750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOOO:new_XmlNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) goto fail
;
3752 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3753 if (SWIG_arg_fail(1)) SWIG_fail
;
3757 arg2
= static_cast<wxXmlNodeType
>(SWIG_As_int(obj1
));
3758 if (SWIG_arg_fail(2)) SWIG_fail
;
3763 arg3
= wxString_in_helper(obj2
);
3764 if (arg3
== NULL
) SWIG_fail
;
3770 arg4
= wxString_in_helper(obj3
);
3771 if (arg4
== NULL
) SWIG_fail
;
3776 SWIG_Python_ConvertPtr(obj4
, (void **)&arg5
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3777 if (SWIG_arg_fail(5)) SWIG_fail
;
3780 SWIG_Python_ConvertPtr(obj5
, (void **)&arg6
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3781 if (SWIG_arg_fail(6)) SWIG_fail
;
3784 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3785 result
= (wxXmlNode
*)new wxXmlNode(arg1
,arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
3787 wxPyEndAllowThreads(__tstate
);
3788 if (PyErr_Occurred()) SWIG_fail
;
3790 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
3813 static PyObject
*_wrap_delete_XmlNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3814 PyObject
*resultobj
= NULL
;
3815 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3816 PyObject
* obj0
= 0 ;
3818 (char *) "self", NULL
3821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlNode",kwnames
,&obj0
)) goto fail
;
3822 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3823 if (SWIG_arg_fail(1)) SWIG_fail
;
3825 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3828 wxPyEndAllowThreads(__tstate
);
3829 if (PyErr_Occurred()) SWIG_fail
;
3831 Py_INCREF(Py_None
); resultobj
= Py_None
;
3838 static PyObject
*_wrap_new_XmlNodeEasy(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3839 PyObject
*resultobj
= NULL
;
3840 wxXmlNodeType arg1
;
3841 wxString
*arg2
= 0 ;
3842 wxString
const &arg3_defvalue
= wxPyEmptyString
;
3843 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3845 bool temp2
= false ;
3846 bool temp3
= false ;
3847 PyObject
* obj0
= 0 ;
3848 PyObject
* obj1
= 0 ;
3849 PyObject
* obj2
= 0 ;
3851 (char *) "type",(char *) "name",(char *) "content", NULL
3854 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:new_XmlNodeEasy",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3856 arg1
= static_cast<wxXmlNodeType
>(SWIG_As_int(obj0
));
3857 if (SWIG_arg_fail(1)) SWIG_fail
;
3860 arg2
= wxString_in_helper(obj1
);
3861 if (arg2
== NULL
) SWIG_fail
;
3866 arg3
= wxString_in_helper(obj2
);
3867 if (arg3
== NULL
) SWIG_fail
;
3872 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3873 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
3875 wxPyEndAllowThreads(__tstate
);
3876 if (PyErr_Occurred()) SWIG_fail
;
3878 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
3901 static PyObject
*_wrap_XmlNode_AddChild(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3902 PyObject
*resultobj
= NULL
;
3903 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3904 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3905 PyObject
* obj0
= 0 ;
3906 PyObject
* obj1
= 0 ;
3908 (char *) "self",(char *) "child", NULL
3911 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) goto fail
;
3912 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3913 if (SWIG_arg_fail(1)) SWIG_fail
;
3914 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3915 if (SWIG_arg_fail(2)) SWIG_fail
;
3917 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3918 (arg1
)->AddChild(arg2
);
3920 wxPyEndAllowThreads(__tstate
);
3921 if (PyErr_Occurred()) SWIG_fail
;
3923 Py_INCREF(Py_None
); resultobj
= Py_None
;
3930 static PyObject
*_wrap_XmlNode_InsertChild(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3931 PyObject
*resultobj
= NULL
;
3932 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3933 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3934 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
3935 PyObject
* obj0
= 0 ;
3936 PyObject
* obj1
= 0 ;
3937 PyObject
* obj2
= 0 ;
3939 (char *) "self",(char *) "child",(char *) "before_node", NULL
3942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3943 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3944 if (SWIG_arg_fail(1)) SWIG_fail
;
3945 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3946 if (SWIG_arg_fail(2)) SWIG_fail
;
3947 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3948 if (SWIG_arg_fail(3)) SWIG_fail
;
3950 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3951 (arg1
)->InsertChild(arg2
,arg3
);
3953 wxPyEndAllowThreads(__tstate
);
3954 if (PyErr_Occurred()) SWIG_fail
;
3956 Py_INCREF(Py_None
); resultobj
= Py_None
;
3963 static PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3964 PyObject
*resultobj
= NULL
;
3965 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3966 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3968 PyObject
* obj0
= 0 ;
3969 PyObject
* obj1
= 0 ;
3971 (char *) "self",(char *) "child", NULL
3974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) goto fail
;
3975 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3976 if (SWIG_arg_fail(1)) SWIG_fail
;
3977 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3978 if (SWIG_arg_fail(2)) SWIG_fail
;
3980 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3981 result
= (bool)(arg1
)->RemoveChild(arg2
);
3983 wxPyEndAllowThreads(__tstate
);
3984 if (PyErr_Occurred()) SWIG_fail
;
3987 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3995 static PyObject
*_wrap_XmlNode_AddProperty(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3996 PyObject
*resultobj
= NULL
;
3997 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3998 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
3999 PyObject
* obj0
= 0 ;
4000 PyObject
* obj1
= 0 ;
4002 (char *) "self",(char *) "prop", NULL
4005 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
4006 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4007 if (SWIG_arg_fail(1)) SWIG_fail
;
4008 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
4009 if (SWIG_arg_fail(2)) SWIG_fail
;
4011 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4012 (arg1
)->AddProperty(arg2
);
4014 wxPyEndAllowThreads(__tstate
);
4015 if (PyErr_Occurred()) SWIG_fail
;
4017 Py_INCREF(Py_None
); resultobj
= Py_None
;
4024 static PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4025 PyObject
*resultobj
= NULL
;
4026 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4027 wxString
*arg2
= 0 ;
4028 wxString
*arg3
= 0 ;
4029 bool temp2
= false ;
4030 bool temp3
= false ;
4031 PyObject
* obj0
= 0 ;
4032 PyObject
* obj1
= 0 ;
4033 PyObject
* obj2
= 0 ;
4035 (char *) "self",(char *) "name",(char *) "value", NULL
4038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4039 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4040 if (SWIG_arg_fail(1)) SWIG_fail
;
4042 arg2
= wxString_in_helper(obj1
);
4043 if (arg2
== NULL
) SWIG_fail
;
4047 arg3
= wxString_in_helper(obj2
);
4048 if (arg3
== NULL
) SWIG_fail
;
4052 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4053 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
4055 wxPyEndAllowThreads(__tstate
);
4056 if (PyErr_Occurred()) SWIG_fail
;
4058 Py_INCREF(Py_None
); resultobj
= Py_None
;
4081 static PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4082 PyObject
*resultobj
= NULL
;
4083 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4084 wxString
*arg2
= 0 ;
4086 bool temp2
= false ;
4087 PyObject
* obj0
= 0 ;
4088 PyObject
* obj1
= 0 ;
4090 (char *) "self",(char *) "name", NULL
4093 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
4094 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4095 if (SWIG_arg_fail(1)) SWIG_fail
;
4097 arg2
= wxString_in_helper(obj1
);
4098 if (arg2
== NULL
) SWIG_fail
;
4102 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4103 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
4105 wxPyEndAllowThreads(__tstate
);
4106 if (PyErr_Occurred()) SWIG_fail
;
4109 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4125 static PyObject
*_wrap_XmlNode_GetType(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4126 PyObject
*resultobj
= NULL
;
4127 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4128 wxXmlNodeType result
;
4129 PyObject
* obj0
= 0 ;
4131 (char *) "self", NULL
4134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetType",kwnames
,&obj0
)) goto fail
;
4135 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4136 if (SWIG_arg_fail(1)) SWIG_fail
;
4138 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4139 result
= (wxXmlNodeType
)((wxXmlNode
const *)arg1
)->GetType();
4141 wxPyEndAllowThreads(__tstate
);
4142 if (PyErr_Occurred()) SWIG_fail
;
4144 resultobj
= SWIG_From_int((result
));
4151 static PyObject
*_wrap_XmlNode_GetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4152 PyObject
*resultobj
= NULL
;
4153 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4155 PyObject
* obj0
= 0 ;
4157 (char *) "self", NULL
4160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetName",kwnames
,&obj0
)) goto fail
;
4161 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4162 if (SWIG_arg_fail(1)) SWIG_fail
;
4164 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4165 result
= ((wxXmlNode
const *)arg1
)->GetName();
4167 wxPyEndAllowThreads(__tstate
);
4168 if (PyErr_Occurred()) SWIG_fail
;
4172 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4174 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4183 static PyObject
*_wrap_XmlNode_GetContent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4184 PyObject
*resultobj
= NULL
;
4185 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4187 PyObject
* obj0
= 0 ;
4189 (char *) "self", NULL
4192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetContent",kwnames
,&obj0
)) goto fail
;
4193 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4194 if (SWIG_arg_fail(1)) SWIG_fail
;
4196 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4197 result
= ((wxXmlNode
const *)arg1
)->GetContent();
4199 wxPyEndAllowThreads(__tstate
);
4200 if (PyErr_Occurred()) SWIG_fail
;
4204 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4206 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4215 static PyObject
*_wrap_XmlNode_GetParent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4216 PyObject
*resultobj
= NULL
;
4217 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4219 PyObject
* obj0
= 0 ;
4221 (char *) "self", NULL
4224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetParent",kwnames
,&obj0
)) goto fail
;
4225 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4226 if (SWIG_arg_fail(1)) SWIG_fail
;
4228 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4229 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
4231 wxPyEndAllowThreads(__tstate
);
4232 if (PyErr_Occurred()) SWIG_fail
;
4234 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4241 static PyObject
*_wrap_XmlNode_GetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4242 PyObject
*resultobj
= NULL
;
4243 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4245 PyObject
* obj0
= 0 ;
4247 (char *) "self", NULL
4250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetNext",kwnames
,&obj0
)) goto fail
;
4251 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4252 if (SWIG_arg_fail(1)) SWIG_fail
;
4254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4255 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
4257 wxPyEndAllowThreads(__tstate
);
4258 if (PyErr_Occurred()) SWIG_fail
;
4260 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4267 static PyObject
*_wrap_XmlNode_GetChildren(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4268 PyObject
*resultobj
= NULL
;
4269 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4271 PyObject
* obj0
= 0 ;
4273 (char *) "self", NULL
4276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetChildren",kwnames
,&obj0
)) goto fail
;
4277 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4278 if (SWIG_arg_fail(1)) SWIG_fail
;
4280 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4281 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
4283 wxPyEndAllowThreads(__tstate
);
4284 if (PyErr_Occurred()) SWIG_fail
;
4286 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4293 static PyObject
*_wrap_XmlNode_GetProperties(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4294 PyObject
*resultobj
= NULL
;
4295 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4296 wxXmlProperty
*result
;
4297 PyObject
* obj0
= 0 ;
4299 (char *) "self", NULL
4302 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetProperties",kwnames
,&obj0
)) goto fail
;
4303 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4304 if (SWIG_arg_fail(1)) SWIG_fail
;
4306 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4307 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
4309 wxPyEndAllowThreads(__tstate
);
4310 if (PyErr_Occurred()) SWIG_fail
;
4312 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
4319 static PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4320 PyObject
*resultobj
= NULL
;
4321 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4322 wxString
*arg2
= 0 ;
4323 wxString
*arg3
= 0 ;
4325 bool temp2
= false ;
4326 bool temp3
= false ;
4327 PyObject
* obj0
= 0 ;
4328 PyObject
* obj1
= 0 ;
4329 PyObject
* obj2
= 0 ;
4331 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
4334 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4335 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4336 if (SWIG_arg_fail(1)) SWIG_fail
;
4338 arg2
= wxString_in_helper(obj1
);
4339 if (arg2
== NULL
) SWIG_fail
;
4343 arg3
= wxString_in_helper(obj2
);
4344 if (arg3
== NULL
) SWIG_fail
;
4348 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4349 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
4351 wxPyEndAllowThreads(__tstate
);
4352 if (PyErr_Occurred()) SWIG_fail
;
4356 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4358 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4383 static PyObject
*_wrap_XmlNode_HasProp(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4384 PyObject
*resultobj
= NULL
;
4385 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4386 wxString
*arg2
= 0 ;
4388 bool temp2
= false ;
4389 PyObject
* obj0
= 0 ;
4390 PyObject
* obj1
= 0 ;
4392 (char *) "self",(char *) "propName", NULL
4395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) goto fail
;
4396 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4397 if (SWIG_arg_fail(1)) SWIG_fail
;
4399 arg2
= wxString_in_helper(obj1
);
4400 if (arg2
== NULL
) SWIG_fail
;
4404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4405 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
4407 wxPyEndAllowThreads(__tstate
);
4408 if (PyErr_Occurred()) SWIG_fail
;
4411 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4427 static PyObject
*_wrap_XmlNode_SetType(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4428 PyObject
*resultobj
= NULL
;
4429 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4430 wxXmlNodeType arg2
;
4431 PyObject
* obj0
= 0 ;
4432 PyObject
* obj1
= 0 ;
4434 (char *) "self",(char *) "type", NULL
4437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetType",kwnames
,&obj0
,&obj1
)) goto fail
;
4438 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4439 if (SWIG_arg_fail(1)) SWIG_fail
;
4441 arg2
= static_cast<wxXmlNodeType
>(SWIG_As_int(obj1
));
4442 if (SWIG_arg_fail(2)) SWIG_fail
;
4445 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4446 (arg1
)->SetType(arg2
);
4448 wxPyEndAllowThreads(__tstate
);
4449 if (PyErr_Occurred()) SWIG_fail
;
4451 Py_INCREF(Py_None
); resultobj
= Py_None
;
4458 static PyObject
*_wrap_XmlNode_SetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4459 PyObject
*resultobj
= NULL
;
4460 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4461 wxString
*arg2
= 0 ;
4462 bool temp2
= false ;
4463 PyObject
* obj0
= 0 ;
4464 PyObject
* obj1
= 0 ;
4466 (char *) "self",(char *) "name", NULL
4469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
4470 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4471 if (SWIG_arg_fail(1)) SWIG_fail
;
4473 arg2
= wxString_in_helper(obj1
);
4474 if (arg2
== NULL
) SWIG_fail
;
4478 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4479 (arg1
)->SetName((wxString
const &)*arg2
);
4481 wxPyEndAllowThreads(__tstate
);
4482 if (PyErr_Occurred()) SWIG_fail
;
4484 Py_INCREF(Py_None
); resultobj
= Py_None
;
4499 static PyObject
*_wrap_XmlNode_SetContent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4500 PyObject
*resultobj
= NULL
;
4501 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4502 wxString
*arg2
= 0 ;
4503 bool temp2
= false ;
4504 PyObject
* obj0
= 0 ;
4505 PyObject
* obj1
= 0 ;
4507 (char *) "self",(char *) "con", NULL
4510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) goto fail
;
4511 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4512 if (SWIG_arg_fail(1)) SWIG_fail
;
4514 arg2
= wxString_in_helper(obj1
);
4515 if (arg2
== NULL
) SWIG_fail
;
4519 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4520 (arg1
)->SetContent((wxString
const &)*arg2
);
4522 wxPyEndAllowThreads(__tstate
);
4523 if (PyErr_Occurred()) SWIG_fail
;
4525 Py_INCREF(Py_None
); resultobj
= Py_None
;
4540 static PyObject
*_wrap_XmlNode_SetParent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4541 PyObject
*resultobj
= NULL
;
4542 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4543 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4544 PyObject
* obj0
= 0 ;
4545 PyObject
* obj1
= 0 ;
4547 (char *) "self",(char *) "parent", NULL
4550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) goto fail
;
4551 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4552 if (SWIG_arg_fail(1)) SWIG_fail
;
4553 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4554 if (SWIG_arg_fail(2)) SWIG_fail
;
4556 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4557 (arg1
)->SetParent(arg2
);
4559 wxPyEndAllowThreads(__tstate
);
4560 if (PyErr_Occurred()) SWIG_fail
;
4562 Py_INCREF(Py_None
); resultobj
= Py_None
;
4569 static PyObject
*_wrap_XmlNode_SetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4570 PyObject
*resultobj
= NULL
;
4571 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4572 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4573 PyObject
* obj0
= 0 ;
4574 PyObject
* obj1
= 0 ;
4576 (char *) "self",(char *) "next", NULL
4579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
4580 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4581 if (SWIG_arg_fail(1)) SWIG_fail
;
4582 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4583 if (SWIG_arg_fail(2)) SWIG_fail
;
4585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4586 (arg1
)->SetNext(arg2
);
4588 wxPyEndAllowThreads(__tstate
);
4589 if (PyErr_Occurred()) SWIG_fail
;
4591 Py_INCREF(Py_None
); resultobj
= Py_None
;
4598 static PyObject
*_wrap_XmlNode_SetChildren(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4599 PyObject
*resultobj
= NULL
;
4600 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4601 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4602 PyObject
* obj0
= 0 ;
4603 PyObject
* obj1
= 0 ;
4605 (char *) "self",(char *) "child", NULL
4608 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) goto fail
;
4609 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4610 if (SWIG_arg_fail(1)) SWIG_fail
;
4611 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4612 if (SWIG_arg_fail(2)) SWIG_fail
;
4614 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4615 (arg1
)->SetChildren(arg2
);
4617 wxPyEndAllowThreads(__tstate
);
4618 if (PyErr_Occurred()) SWIG_fail
;
4620 Py_INCREF(Py_None
); resultobj
= Py_None
;
4627 static PyObject
*_wrap_XmlNode_SetProperties(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4628 PyObject
*resultobj
= NULL
;
4629 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4630 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
4631 PyObject
* obj0
= 0 ;
4632 PyObject
* obj1
= 0 ;
4634 (char *) "self",(char *) "prop", NULL
4637 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) goto fail
;
4638 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4639 if (SWIG_arg_fail(1)) SWIG_fail
;
4640 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
4641 if (SWIG_arg_fail(2)) SWIG_fail
;
4643 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4644 (arg1
)->SetProperties(arg2
);
4646 wxPyEndAllowThreads(__tstate
);
4647 if (PyErr_Occurred()) SWIG_fail
;
4649 Py_INCREF(Py_None
); resultobj
= Py_None
;
4656 static PyObject
* XmlNode_swigregister(PyObject
*, PyObject
*args
) {
4658 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4659 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode
, obj
);
4661 return Py_BuildValue((char *)"");
4663 static PyObject
*_wrap_new_XmlDocument(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4664 PyObject
*resultobj
= NULL
;
4665 wxString
*arg1
= 0 ;
4666 wxString
const &arg2_defvalue
= wxPyUTF8String
;
4667 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4668 wxXmlDocument
*result
;
4669 bool temp1
= false ;
4670 bool temp2
= false ;
4671 PyObject
* obj0
= 0 ;
4672 PyObject
* obj1
= 0 ;
4674 (char *) "filename",(char *) "encoding", NULL
4677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) goto fail
;
4679 arg1
= wxString_in_helper(obj0
);
4680 if (arg1
== NULL
) SWIG_fail
;
4685 arg2
= wxString_in_helper(obj1
);
4686 if (arg2
== NULL
) SWIG_fail
;
4691 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4692 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
4694 wxPyEndAllowThreads(__tstate
);
4695 if (PyErr_Occurred()) SWIG_fail
;
4697 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
4720 static PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4721 PyObject
*resultobj
= NULL
;
4722 wxInputStream
*arg1
= 0 ;
4723 wxString
const &arg2_defvalue
= wxPyUTF8String
;
4724 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4725 wxXmlDocument
*result
;
4726 wxPyInputStream
*temp1
;
4728 bool temp2
= false ;
4729 PyObject
* obj0
= 0 ;
4730 PyObject
* obj1
= 0 ;
4732 (char *) "stream",(char *) "encoding", NULL
4735 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) goto fail
;
4737 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
4738 arg1
= temp1
->m_wxis
;
4741 PyErr_Clear(); // clear the failure of the wxPyConvert above
4742 arg1
= wxPyCBInputStream_create(obj0
, false);
4744 PyErr_SetString(PyExc_TypeError
, "Expected wx.InputStream or Python file-like object.");
4752 arg2
= wxString_in_helper(obj1
);
4753 if (arg2
== NULL
) SWIG_fail
;
4758 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4759 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
4761 wxPyEndAllowThreads(__tstate
);
4762 if (PyErr_Occurred()) SWIG_fail
;
4764 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
4766 if (created1
) delete arg1
;
4775 if (created1
) delete arg1
;
4785 static PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4786 PyObject
*resultobj
= NULL
;
4787 wxXmlDocument
*result
;
4792 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_EmptyXmlDocument",kwnames
)) goto fail
;
4794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4795 result
= (wxXmlDocument
*)new wxXmlDocument();
4797 wxPyEndAllowThreads(__tstate
);
4798 if (PyErr_Occurred()) SWIG_fail
;
4800 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
4807 static PyObject
*_wrap_delete_XmlDocument(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4808 PyObject
*resultobj
= NULL
;
4809 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
4810 PyObject
* obj0
= 0 ;
4812 (char *) "self", NULL
4815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlDocument",kwnames
,&obj0
)) goto fail
;
4816 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
4817 if (SWIG_arg_fail(1)) SWIG_fail
;
4819 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4822 wxPyEndAllowThreads(__tstate
);
4823 if (PyErr_Occurred()) SWIG_fail
;
4825 Py_INCREF(Py_None
); resultobj
= Py_None
;
4832 static PyObject
*_wrap_XmlDocument_Load(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4833 PyObject
*resultobj
= NULL
;
4834 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
4835 wxString
*arg2
= 0 ;
4836 wxString
const &arg3_defvalue
= wxPyUTF8String
;
4837 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
4839 bool temp2
= false ;
4840 bool temp3
= false ;
4841 PyObject
* obj0
= 0 ;
4842 PyObject
* obj1
= 0 ;
4843 PyObject
* obj2
= 0 ;
4845 (char *) "self",(char *) "filename",(char *) "encoding", NULL
4848 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4849 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
4850 if (SWIG_arg_fail(1)) SWIG_fail
;
4852 arg2
= wxString_in_helper(obj1
);
4853 if (arg2
== NULL
) SWIG_fail
;
4858 arg3
= wxString_in_helper(obj2
);
4859 if (arg3
== NULL
) SWIG_fail
;
4864 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4865 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
4867 wxPyEndAllowThreads(__tstate
);
4868 if (PyErr_Occurred()) SWIG_fail
;
4871 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4895 static PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4896 PyObject
*resultobj
= NULL
;
4897 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
4898 wxInputStream
*arg2
= 0 ;
4899 wxString
const &arg3_defvalue
= wxPyUTF8String
;
4900 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
4902 wxPyInputStream
*temp2
;
4904 bool temp3
= false ;
4905 PyObject
* obj0
= 0 ;
4906 PyObject
* obj1
= 0 ;
4907 PyObject
* obj2
= 0 ;
4909 (char *) "self",(char *) "stream",(char *) "encoding", NULL
4912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4913 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
4914 if (SWIG_arg_fail(1)) SWIG_fail
;
4916 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
4917 arg2
= temp2
->m_wxis
;
4920 PyErr_Clear(); // clear the failure of the wxPyConvert above
4921 arg2
= wxPyCBInputStream_create(obj1
, false);
4923 PyErr_SetString(PyExc_TypeError
, "Expected wx.InputStream or Python file-like object.");
4931 arg3
= wxString_in_helper(obj2
);
4932 if (arg3
== NULL
) SWIG_fail
;
4937 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4938 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
4940 wxPyEndAllowThreads(__tstate
);
4941 if (PyErr_Occurred()) SWIG_fail
;
4944 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4947 if (created2
) delete arg2
;
4956 if (created2
) delete arg2
;
4966 static PyObject
*_wrap_XmlDocument_Save(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4967 PyObject
*resultobj
= NULL
;
4968 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
4969 wxString
*arg2
= 0 ;
4971 bool temp2
= false ;
4972 PyObject
* obj0
= 0 ;
4973 PyObject
* obj1
= 0 ;
4975 (char *) "self",(char *) "filename", NULL
4978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) goto fail
;
4979 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
4980 if (SWIG_arg_fail(1)) SWIG_fail
;
4982 arg2
= wxString_in_helper(obj1
);
4983 if (arg2
== NULL
) SWIG_fail
;
4987 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4988 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
4990 wxPyEndAllowThreads(__tstate
);
4991 if (PyErr_Occurred()) SWIG_fail
;
4994 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5010 static PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5011 PyObject
*resultobj
= NULL
;
5012 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
5013 wxOutputStream
*arg2
= 0 ;
5015 PyObject
* obj0
= 0 ;
5016 PyObject
* obj1
= 0 ;
5018 (char *) "self",(char *) "stream", NULL
5021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) goto fail
;
5022 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
5023 if (SWIG_arg_fail(1)) SWIG_fail
;
5025 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxOutputStream
, SWIG_POINTER_EXCEPTION
| 0);
5026 if (SWIG_arg_fail(2)) SWIG_fail
;
5028 SWIG_null_ref("wxOutputStream");
5030 if (SWIG_arg_fail(2)) SWIG_fail
;
5033 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5034 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
5036 wxPyEndAllowThreads(__tstate
);
5037 if (PyErr_Occurred()) SWIG_fail
;
5040 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5048 static PyObject
*_wrap_XmlDocument_IsOk(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5049 PyObject
*resultobj
= NULL
;
5050 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
5052 PyObject
* obj0
= 0 ;
5054 (char *) "self", NULL
5057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_IsOk",kwnames
,&obj0
)) goto fail
;
5058 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
5059 if (SWIG_arg_fail(1)) SWIG_fail
;
5061 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5062 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
5064 wxPyEndAllowThreads(__tstate
);
5065 if (PyErr_Occurred()) SWIG_fail
;
5068 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5076 static PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5077 PyObject
*resultobj
= NULL
;
5078 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
5080 PyObject
* obj0
= 0 ;
5082 (char *) "self", NULL
5085 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetRoot",kwnames
,&obj0
)) goto fail
;
5086 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
5087 if (SWIG_arg_fail(1)) SWIG_fail
;
5089 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5090 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
5092 wxPyEndAllowThreads(__tstate
);
5093 if (PyErr_Occurred()) SWIG_fail
;
5095 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
5102 static PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5103 PyObject
*resultobj
= NULL
;
5104 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
5106 PyObject
* obj0
= 0 ;
5108 (char *) "self", NULL
5111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetVersion",kwnames
,&obj0
)) goto fail
;
5112 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
5113 if (SWIG_arg_fail(1)) SWIG_fail
;
5115 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5116 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
5118 wxPyEndAllowThreads(__tstate
);
5119 if (PyErr_Occurred()) SWIG_fail
;
5123 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5125 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5134 static PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5135 PyObject
*resultobj
= NULL
;
5136 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
5138 PyObject
* obj0
= 0 ;
5140 (char *) "self", NULL
5143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetFileEncoding",kwnames
,&obj0
)) goto fail
;
5144 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
5145 if (SWIG_arg_fail(1)) SWIG_fail
;
5147 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5148 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
5150 wxPyEndAllowThreads(__tstate
);
5151 if (PyErr_Occurred()) SWIG_fail
;
5155 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5157 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5166 static PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5167 PyObject
*resultobj
= NULL
;
5168 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
5169 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5170 PyObject
* obj0
= 0 ;
5171 PyObject
* obj1
= 0 ;
5173 (char *) "self",(char *) "node", NULL
5176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) goto fail
;
5177 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
5178 if (SWIG_arg_fail(1)) SWIG_fail
;
5179 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
5180 if (SWIG_arg_fail(2)) SWIG_fail
;
5182 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5183 (arg1
)->SetRoot(arg2
);
5185 wxPyEndAllowThreads(__tstate
);
5186 if (PyErr_Occurred()) SWIG_fail
;
5188 Py_INCREF(Py_None
); resultobj
= Py_None
;
5195 static PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5196 PyObject
*resultobj
= NULL
;
5197 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
5198 wxString
*arg2
= 0 ;
5199 bool temp2
= false ;
5200 PyObject
* obj0
= 0 ;
5201 PyObject
* obj1
= 0 ;
5203 (char *) "self",(char *) "version", NULL
5206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) goto fail
;
5207 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
5208 if (SWIG_arg_fail(1)) SWIG_fail
;
5210 arg2
= wxString_in_helper(obj1
);
5211 if (arg2
== NULL
) SWIG_fail
;
5215 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5216 (arg1
)->SetVersion((wxString
const &)*arg2
);
5218 wxPyEndAllowThreads(__tstate
);
5219 if (PyErr_Occurred()) SWIG_fail
;
5221 Py_INCREF(Py_None
); resultobj
= Py_None
;
5236 static PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5237 PyObject
*resultobj
= NULL
;
5238 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
5239 wxString
*arg2
= 0 ;
5240 bool temp2
= false ;
5241 PyObject
* obj0
= 0 ;
5242 PyObject
* obj1
= 0 ;
5244 (char *) "self",(char *) "encoding", NULL
5247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) goto fail
;
5248 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
5249 if (SWIG_arg_fail(1)) SWIG_fail
;
5251 arg2
= wxString_in_helper(obj1
);
5252 if (arg2
== NULL
) SWIG_fail
;
5256 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5257 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
5259 wxPyEndAllowThreads(__tstate
);
5260 if (PyErr_Occurred()) SWIG_fail
;
5262 Py_INCREF(Py_None
); resultobj
= Py_None
;
5277 static PyObject
* XmlDocument_swigregister(PyObject
*, PyObject
*args
) {
5279 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
5280 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument
, obj
);
5282 return Py_BuildValue((char *)"");
5284 static PyObject
*_wrap_new_XmlResourceHandler(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5285 PyObject
*resultobj
= NULL
;
5286 wxPyXmlResourceHandler
*result
;
5291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlResourceHandler",kwnames
)) goto fail
;
5293 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5294 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
5296 wxPyEndAllowThreads(__tstate
);
5297 if (PyErr_Occurred()) SWIG_fail
;
5299 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlResourceHandler
, 1);
5306 static PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5307 PyObject
*resultobj
= NULL
;
5308 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5309 PyObject
*arg2
= (PyObject
*) 0 ;
5310 PyObject
*arg3
= (PyObject
*) 0 ;
5311 PyObject
* obj0
= 0 ;
5312 PyObject
* obj1
= 0 ;
5313 PyObject
* obj2
= 0 ;
5315 (char *) "self",(char *) "self",(char *) "_class", NULL
5318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5319 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5320 if (SWIG_arg_fail(1)) SWIG_fail
;
5324 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5325 (arg1
)->_setCallbackInfo(arg2
,arg3
);
5327 wxPyEndAllowThreads(__tstate
);
5328 if (PyErr_Occurred()) SWIG_fail
;
5330 Py_INCREF(Py_None
); resultobj
= Py_None
;
5337 static PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5338 PyObject
*resultobj
= NULL
;
5339 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5340 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5341 wxObject
*arg3
= (wxObject
*) 0 ;
5342 wxObject
*arg4
= (wxObject
*) 0 ;
5344 PyObject
* obj0
= 0 ;
5345 PyObject
* obj1
= 0 ;
5346 PyObject
* obj2
= 0 ;
5347 PyObject
* obj3
= 0 ;
5349 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
5352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5353 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5354 if (SWIG_arg_fail(1)) SWIG_fail
;
5355 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
5356 if (SWIG_arg_fail(2)) SWIG_fail
;
5357 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxObject
, SWIG_POINTER_EXCEPTION
| 0);
5358 if (SWIG_arg_fail(3)) SWIG_fail
;
5359 SWIG_Python_ConvertPtr(obj3
, (void **)&arg4
, SWIGTYPE_p_wxObject
, SWIG_POINTER_EXCEPTION
| 0);
5360 if (SWIG_arg_fail(4)) SWIG_fail
;
5362 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5363 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
5365 wxPyEndAllowThreads(__tstate
);
5366 if (PyErr_Occurred()) SWIG_fail
;
5369 resultobj
= wxPyMake_wxObject(result
, (bool)0);
5377 static PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5378 PyObject
*resultobj
= NULL
;
5379 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5380 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
5381 PyObject
* obj0
= 0 ;
5382 PyObject
* obj1
= 0 ;
5384 (char *) "self",(char *) "res", NULL
5387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) goto fail
;
5388 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5389 if (SWIG_arg_fail(1)) SWIG_fail
;
5390 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
5391 if (SWIG_arg_fail(2)) SWIG_fail
;
5393 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5394 (arg1
)->SetParentResource(arg2
);
5396 wxPyEndAllowThreads(__tstate
);
5397 if (PyErr_Occurred()) SWIG_fail
;
5399 Py_INCREF(Py_None
); resultobj
= Py_None
;
5406 static PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5407 PyObject
*resultobj
= NULL
;
5408 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5409 wxXmlResource
*result
;
5410 PyObject
* obj0
= 0 ;
5412 (char *) "self", NULL
5415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetResource",kwnames
,&obj0
)) goto fail
;
5416 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5417 if (SWIG_arg_fail(1)) SWIG_fail
;
5419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5420 result
= (wxXmlResource
*)(arg1
)->GetResource();
5422 wxPyEndAllowThreads(__tstate
);
5423 if (PyErr_Occurred()) SWIG_fail
;
5425 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
5432 static PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5433 PyObject
*resultobj
= NULL
;
5434 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5436 PyObject
* obj0
= 0 ;
5438 (char *) "self", NULL
5441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetNode",kwnames
,&obj0
)) goto fail
;
5442 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5443 if (SWIG_arg_fail(1)) SWIG_fail
;
5445 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5446 result
= (wxXmlNode
*)(arg1
)->GetNode();
5448 wxPyEndAllowThreads(__tstate
);
5449 if (PyErr_Occurred()) SWIG_fail
;
5451 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
5458 static PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5459 PyObject
*resultobj
= NULL
;
5460 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5462 PyObject
* obj0
= 0 ;
5464 (char *) "self", NULL
5467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetClass",kwnames
,&obj0
)) goto fail
;
5468 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5469 if (SWIG_arg_fail(1)) SWIG_fail
;
5471 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5472 result
= (arg1
)->GetClass();
5474 wxPyEndAllowThreads(__tstate
);
5475 if (PyErr_Occurred()) SWIG_fail
;
5479 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5481 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5490 static PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5491 PyObject
*resultobj
= NULL
;
5492 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5494 PyObject
* obj0
= 0 ;
5496 (char *) "self", NULL
5499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParent",kwnames
,&obj0
)) goto fail
;
5500 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5501 if (SWIG_arg_fail(1)) SWIG_fail
;
5503 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5504 result
= (wxObject
*)(arg1
)->GetParent();
5506 wxPyEndAllowThreads(__tstate
);
5507 if (PyErr_Occurred()) SWIG_fail
;
5510 resultobj
= wxPyMake_wxObject(result
, (bool)0);
5518 static PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5519 PyObject
*resultobj
= NULL
;
5520 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5522 PyObject
* obj0
= 0 ;
5524 (char *) "self", NULL
5527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstance",kwnames
,&obj0
)) goto fail
;
5528 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5529 if (SWIG_arg_fail(1)) SWIG_fail
;
5531 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5532 result
= (wxObject
*)(arg1
)->GetInstance();
5534 wxPyEndAllowThreads(__tstate
);
5535 if (PyErr_Occurred()) SWIG_fail
;
5538 resultobj
= wxPyMake_wxObject(result
, (bool)0);
5546 static PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5547 PyObject
*resultobj
= NULL
;
5548 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5550 PyObject
* obj0
= 0 ;
5552 (char *) "self", NULL
5555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames
,&obj0
)) goto fail
;
5556 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5557 if (SWIG_arg_fail(1)) SWIG_fail
;
5559 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5560 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
5562 wxPyEndAllowThreads(__tstate
);
5563 if (PyErr_Occurred()) SWIG_fail
;
5566 resultobj
= wxPyMake_wxObject(result
, 0);
5574 static PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5575 PyObject
*resultobj
= NULL
;
5576 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5577 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5578 wxString
*arg3
= 0 ;
5580 bool temp3
= false ;
5581 PyObject
* obj0
= 0 ;
5582 PyObject
* obj1
= 0 ;
5583 PyObject
* obj2
= 0 ;
5585 (char *) "self",(char *) "node",(char *) "classname", NULL
5588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5589 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5590 if (SWIG_arg_fail(1)) SWIG_fail
;
5591 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
5592 if (SWIG_arg_fail(2)) SWIG_fail
;
5594 arg3
= wxString_in_helper(obj2
);
5595 if (arg3
== NULL
) SWIG_fail
;
5599 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5600 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
5602 wxPyEndAllowThreads(__tstate
);
5603 if (PyErr_Occurred()) SWIG_fail
;
5606 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5622 static PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5623 PyObject
*resultobj
= NULL
;
5624 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5625 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5627 PyObject
* obj0
= 0 ;
5628 PyObject
* obj1
= 0 ;
5630 (char *) "self",(char *) "node", NULL
5633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) goto fail
;
5634 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5635 if (SWIG_arg_fail(1)) SWIG_fail
;
5636 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
5637 if (SWIG_arg_fail(2)) SWIG_fail
;
5639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5640 result
= (arg1
)->GetNodeContent(arg2
);
5642 wxPyEndAllowThreads(__tstate
);
5643 if (PyErr_Occurred()) SWIG_fail
;
5647 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5649 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5658 static PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5659 PyObject
*resultobj
= NULL
;
5660 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5661 wxString
*arg2
= 0 ;
5663 bool temp2
= false ;
5664 PyObject
* obj0
= 0 ;
5665 PyObject
* obj1
= 0 ;
5667 (char *) "self",(char *) "param", NULL
5670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) goto fail
;
5671 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5672 if (SWIG_arg_fail(1)) SWIG_fail
;
5674 arg2
= wxString_in_helper(obj1
);
5675 if (arg2
== NULL
) SWIG_fail
;
5679 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5680 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
5682 wxPyEndAllowThreads(__tstate
);
5683 if (PyErr_Occurred()) SWIG_fail
;
5686 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5702 static PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5703 PyObject
*resultobj
= NULL
;
5704 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5705 wxString
*arg2
= 0 ;
5707 bool temp2
= false ;
5708 PyObject
* obj0
= 0 ;
5709 PyObject
* obj1
= 0 ;
5711 (char *) "self",(char *) "param", NULL
5714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) goto fail
;
5715 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5716 if (SWIG_arg_fail(1)) SWIG_fail
;
5718 arg2
= wxString_in_helper(obj1
);
5719 if (arg2
== NULL
) SWIG_fail
;
5723 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5724 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
5726 wxPyEndAllowThreads(__tstate
);
5727 if (PyErr_Occurred()) SWIG_fail
;
5729 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
5744 static PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5745 PyObject
*resultobj
= NULL
;
5746 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5747 wxString
*arg2
= 0 ;
5749 bool temp2
= false ;
5750 PyObject
* obj0
= 0 ;
5751 PyObject
* obj1
= 0 ;
5753 (char *) "self",(char *) "param", NULL
5756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) goto fail
;
5757 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5758 if (SWIG_arg_fail(1)) SWIG_fail
;
5760 arg2
= wxString_in_helper(obj1
);
5761 if (arg2
== NULL
) SWIG_fail
;
5765 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5766 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
5768 wxPyEndAllowThreads(__tstate
);
5769 if (PyErr_Occurred()) SWIG_fail
;
5773 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5775 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5792 static PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5793 PyObject
*resultobj
= NULL
;
5794 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5795 wxString
*arg2
= 0 ;
5797 bool temp2
= false ;
5798 PyObject
* obj0
= 0 ;
5799 PyObject
* obj1
= 0 ;
5800 PyObject
* obj2
= 0 ;
5802 (char *) "self",(char *) "name",(char *) "value", NULL
5805 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5806 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5807 if (SWIG_arg_fail(1)) SWIG_fail
;
5809 arg2
= wxString_in_helper(obj1
);
5810 if (arg2
== NULL
) SWIG_fail
;
5814 arg3
= static_cast<int >(SWIG_As_int(obj2
));
5815 if (SWIG_arg_fail(3)) SWIG_fail
;
5818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5819 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
5821 wxPyEndAllowThreads(__tstate
);
5822 if (PyErr_Occurred()) SWIG_fail
;
5824 Py_INCREF(Py_None
); resultobj
= Py_None
;
5839 static PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5840 PyObject
*resultobj
= NULL
;
5841 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5842 PyObject
* obj0
= 0 ;
5844 (char *) "self", NULL
5847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames
,&obj0
)) goto fail
;
5848 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5849 if (SWIG_arg_fail(1)) SWIG_fail
;
5851 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5852 (arg1
)->AddWindowStyles();
5854 wxPyEndAllowThreads(__tstate
);
5855 if (PyErr_Occurred()) SWIG_fail
;
5857 Py_INCREF(Py_None
); resultobj
= Py_None
;
5864 static PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5865 PyObject
*resultobj
= NULL
;
5866 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5867 wxString
const &arg2_defvalue
= wxPyStyleString
;
5868 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5869 int arg3
= (int) 0 ;
5871 bool temp2
= false ;
5872 PyObject
* obj0
= 0 ;
5873 PyObject
* obj1
= 0 ;
5874 PyObject
* obj2
= 0 ;
5876 (char *) "self",(char *) "param",(char *) "defaults", NULL
5879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5880 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5881 if (SWIG_arg_fail(1)) SWIG_fail
;
5884 arg2
= wxString_in_helper(obj1
);
5885 if (arg2
== NULL
) SWIG_fail
;
5891 arg3
= static_cast<int >(SWIG_As_int(obj2
));
5892 if (SWIG_arg_fail(3)) SWIG_fail
;
5896 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5897 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
5899 wxPyEndAllowThreads(__tstate
);
5900 if (PyErr_Occurred()) SWIG_fail
;
5903 resultobj
= SWIG_From_int(static_cast<int >(result
));
5919 static PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5920 PyObject
*resultobj
= NULL
;
5921 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5922 wxString
*arg2
= 0 ;
5923 bool arg3
= (bool) true ;
5925 bool temp2
= false ;
5926 PyObject
* obj0
= 0 ;
5927 PyObject
* obj1
= 0 ;
5928 PyObject
* obj2
= 0 ;
5930 (char *) "self",(char *) "param",(char *) "translate", NULL
5933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5934 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5935 if (SWIG_arg_fail(1)) SWIG_fail
;
5937 arg2
= wxString_in_helper(obj1
);
5938 if (arg2
== NULL
) SWIG_fail
;
5943 arg3
= static_cast<bool >(SWIG_As_bool(obj2
));
5944 if (SWIG_arg_fail(3)) SWIG_fail
;
5948 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5949 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
5951 wxPyEndAllowThreads(__tstate
);
5952 if (PyErr_Occurred()) SWIG_fail
;
5956 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5958 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5975 static PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5976 PyObject
*resultobj
= NULL
;
5977 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5979 PyObject
* obj0
= 0 ;
5981 (char *) "self", NULL
5984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetID",kwnames
,&obj0
)) goto fail
;
5985 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5986 if (SWIG_arg_fail(1)) SWIG_fail
;
5988 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5989 result
= (int)(arg1
)->GetID();
5991 wxPyEndAllowThreads(__tstate
);
5992 if (PyErr_Occurred()) SWIG_fail
;
5995 resultobj
= SWIG_From_int(static_cast<int >(result
));
6003 static PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6004 PyObject
*resultobj
= NULL
;
6005 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6007 PyObject
* obj0
= 0 ;
6009 (char *) "self", NULL
6012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetName",kwnames
,&obj0
)) goto fail
;
6013 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6014 if (SWIG_arg_fail(1)) SWIG_fail
;
6016 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6017 result
= (arg1
)->GetName();
6019 wxPyEndAllowThreads(__tstate
);
6020 if (PyErr_Occurred()) SWIG_fail
;
6024 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
6026 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
6035 static PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6036 PyObject
*resultobj
= NULL
;
6037 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6038 wxString
*arg2
= 0 ;
6039 bool arg3
= (bool) false ;
6041 bool temp2
= false ;
6042 PyObject
* obj0
= 0 ;
6043 PyObject
* obj1
= 0 ;
6044 PyObject
* obj2
= 0 ;
6046 (char *) "self",(char *) "param",(char *) "defaultv", NULL
6049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
6050 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6051 if (SWIG_arg_fail(1)) SWIG_fail
;
6053 arg2
= wxString_in_helper(obj1
);
6054 if (arg2
== NULL
) SWIG_fail
;
6059 arg3
= static_cast<bool >(SWIG_As_bool(obj2
));
6060 if (SWIG_arg_fail(3)) SWIG_fail
;
6064 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6065 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
6067 wxPyEndAllowThreads(__tstate
);
6068 if (PyErr_Occurred()) SWIG_fail
;
6071 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6087 static PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6088 PyObject
*resultobj
= NULL
;
6089 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6090 wxString
*arg2
= 0 ;
6091 long arg3
= (long) 0 ;
6093 bool temp2
= false ;
6094 PyObject
* obj0
= 0 ;
6095 PyObject
* obj1
= 0 ;
6096 PyObject
* obj2
= 0 ;
6098 (char *) "self",(char *) "param",(char *) "defaultv", NULL
6101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
6102 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6103 if (SWIG_arg_fail(1)) SWIG_fail
;
6105 arg2
= wxString_in_helper(obj1
);
6106 if (arg2
== NULL
) SWIG_fail
;
6111 arg3
= static_cast<long >(SWIG_As_long(obj2
));
6112 if (SWIG_arg_fail(3)) SWIG_fail
;
6116 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6117 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
6119 wxPyEndAllowThreads(__tstate
);
6120 if (PyErr_Occurred()) SWIG_fail
;
6123 resultobj
= SWIG_From_long(static_cast<long >(result
));
6139 static PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6140 PyObject
*resultobj
= NULL
;
6141 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6142 wxString
*arg2
= 0 ;
6144 bool temp2
= false ;
6145 PyObject
* obj0
= 0 ;
6146 PyObject
* obj1
= 0 ;
6148 (char *) "self",(char *) "param", NULL
6151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
6152 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6153 if (SWIG_arg_fail(1)) SWIG_fail
;
6155 arg2
= wxString_in_helper(obj1
);
6156 if (arg2
== NULL
) SWIG_fail
;
6160 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6161 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
6163 wxPyEndAllowThreads(__tstate
);
6164 if (PyErr_Occurred()) SWIG_fail
;
6167 wxColour
* resultptr
;
6168 resultptr
= new wxColour(static_cast<wxColour
& >(result
));
6169 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
6185 static PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6186 PyObject
*resultobj
= NULL
;
6187 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6188 wxString
const &arg2_defvalue
= wxPySizeString
;
6189 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
6191 bool temp2
= false ;
6192 PyObject
* obj0
= 0 ;
6193 PyObject
* obj1
= 0 ;
6195 (char *) "self",(char *) "param", NULL
6198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) goto fail
;
6199 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6200 if (SWIG_arg_fail(1)) SWIG_fail
;
6203 arg2
= wxString_in_helper(obj1
);
6204 if (arg2
== NULL
) SWIG_fail
;
6209 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6210 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
6212 wxPyEndAllowThreads(__tstate
);
6213 if (PyErr_Occurred()) SWIG_fail
;
6217 resultptr
= new wxSize(static_cast<wxSize
& >(result
));
6218 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
6234 static PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6235 PyObject
*resultobj
= NULL
;
6236 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6237 wxString
const &arg2_defvalue
= wxPyPosString
;
6238 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
6240 bool temp2
= false ;
6241 PyObject
* obj0
= 0 ;
6242 PyObject
* obj1
= 0 ;
6244 (char *) "self",(char *) "param", NULL
6247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
6248 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6249 if (SWIG_arg_fail(1)) SWIG_fail
;
6252 arg2
= wxString_in_helper(obj1
);
6253 if (arg2
== NULL
) SWIG_fail
;
6258 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6259 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
6261 wxPyEndAllowThreads(__tstate
);
6262 if (PyErr_Occurred()) SWIG_fail
;
6265 wxPoint
* resultptr
;
6266 resultptr
= new wxPoint(static_cast<wxPoint
& >(result
));
6267 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxPoint
, 1);
6283 static PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6284 PyObject
*resultobj
= NULL
;
6285 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6286 wxString
*arg2
= 0 ;
6287 int arg3
= (int) 0 ;
6289 bool temp2
= false ;
6290 PyObject
* obj0
= 0 ;
6291 PyObject
* obj1
= 0 ;
6292 PyObject
* obj2
= 0 ;
6294 (char *) "self",(char *) "param",(char *) "defaultv", NULL
6297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
6298 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6299 if (SWIG_arg_fail(1)) SWIG_fail
;
6301 arg2
= wxString_in_helper(obj1
);
6302 if (arg2
== NULL
) SWIG_fail
;
6307 arg3
= static_cast<int >(SWIG_As_int(obj2
));
6308 if (SWIG_arg_fail(3)) SWIG_fail
;
6312 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6313 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
6315 wxPyEndAllowThreads(__tstate
);
6316 if (PyErr_Occurred()) SWIG_fail
;
6319 resultobj
= SWIG_From_int(static_cast<int >(result
));
6335 static PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6336 PyObject
*resultobj
= NULL
;
6337 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6338 wxString
const &arg2_defvalue
= wxPyBitmapString
;
6339 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
6340 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
6341 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
6342 wxSize arg4
= (wxSize
) wxDefaultSize
;
6344 bool temp2
= false ;
6345 PyObject
* obj0
= 0 ;
6346 PyObject
* obj1
= 0 ;
6347 PyObject
* obj2
= 0 ;
6348 PyObject
* obj3
= 0 ;
6350 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
6353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
6354 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6355 if (SWIG_arg_fail(1)) SWIG_fail
;
6358 arg2
= wxString_in_helper(obj1
);
6359 if (arg2
== NULL
) SWIG_fail
;
6365 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxArtClient
, SWIG_POINTER_EXCEPTION
| 0);
6366 if (SWIG_arg_fail(3)) SWIG_fail
;
6368 SWIG_null_ref("wxArtClient");
6370 if (SWIG_arg_fail(3)) SWIG_fail
;
6376 SWIG_Python_ConvertPtr(obj3
, (void **)&argp
, SWIGTYPE_p_wxSize
, SWIG_POINTER_EXCEPTION
);
6377 if (SWIG_arg_fail(4)) SWIG_fail
;
6379 SWIG_null_ref("wxSize");
6381 if (SWIG_arg_fail(4)) SWIG_fail
;
6386 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6387 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
6389 wxPyEndAllowThreads(__tstate
);
6390 if (PyErr_Occurred()) SWIG_fail
;
6393 wxBitmap
* resultptr
;
6394 resultptr
= new wxBitmap(static_cast<wxBitmap
& >(result
));
6395 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
6411 static PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6412 PyObject
*resultobj
= NULL
;
6413 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6414 wxString
const &arg2_defvalue
= wxPyIconString
;
6415 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
6416 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
6417 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
6418 wxSize arg4
= (wxSize
) wxDefaultSize
;
6420 bool temp2
= false ;
6421 PyObject
* obj0
= 0 ;
6422 PyObject
* obj1
= 0 ;
6423 PyObject
* obj2
= 0 ;
6424 PyObject
* obj3
= 0 ;
6426 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
6429 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
6430 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6431 if (SWIG_arg_fail(1)) SWIG_fail
;
6434 arg2
= wxString_in_helper(obj1
);
6435 if (arg2
== NULL
) SWIG_fail
;
6441 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxArtClient
, SWIG_POINTER_EXCEPTION
| 0);
6442 if (SWIG_arg_fail(3)) SWIG_fail
;
6444 SWIG_null_ref("wxArtClient");
6446 if (SWIG_arg_fail(3)) SWIG_fail
;
6452 SWIG_Python_ConvertPtr(obj3
, (void **)&argp
, SWIGTYPE_p_wxSize
, SWIG_POINTER_EXCEPTION
);
6453 if (SWIG_arg_fail(4)) SWIG_fail
;
6455 SWIG_null_ref("wxSize");
6457 if (SWIG_arg_fail(4)) SWIG_fail
;
6462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6463 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
6465 wxPyEndAllowThreads(__tstate
);
6466 if (PyErr_Occurred()) SWIG_fail
;
6470 resultptr
= new wxIcon(static_cast<wxIcon
& >(result
));
6471 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
6487 static PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6488 PyObject
*resultobj
= NULL
;
6489 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6490 wxString
const &arg2_defvalue
= wxPyFontString
;
6491 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
6493 bool temp2
= false ;
6494 PyObject
* obj0
= 0 ;
6495 PyObject
* obj1
= 0 ;
6497 (char *) "self",(char *) "param", NULL
6500 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
6501 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6502 if (SWIG_arg_fail(1)) SWIG_fail
;
6505 arg2
= wxString_in_helper(obj1
);
6506 if (arg2
== NULL
) SWIG_fail
;
6511 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6512 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
6514 wxPyEndAllowThreads(__tstate
);
6515 if (PyErr_Occurred()) SWIG_fail
;
6519 resultptr
= new wxFont(static_cast<wxFont
& >(result
));
6520 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxFont
, 1);
6536 static PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6537 PyObject
*resultobj
= NULL
;
6538 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6539 wxWindow
*arg2
= (wxWindow
*) 0 ;
6540 PyObject
* obj0
= 0 ;
6541 PyObject
* obj1
= 0 ;
6543 (char *) "self",(char *) "wnd", NULL
6546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
6547 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6548 if (SWIG_arg_fail(1)) SWIG_fail
;
6549 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
6550 if (SWIG_arg_fail(2)) SWIG_fail
;
6552 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6553 (arg1
)->SetupWindow(arg2
);
6555 wxPyEndAllowThreads(__tstate
);
6556 if (PyErr_Occurred()) SWIG_fail
;
6558 Py_INCREF(Py_None
); resultobj
= Py_None
;
6565 static PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6566 PyObject
*resultobj
= NULL
;
6567 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6568 wxObject
*arg2
= (wxObject
*) 0 ;
6569 bool arg3
= (bool) false ;
6570 PyObject
* obj0
= 0 ;
6571 PyObject
* obj1
= 0 ;
6572 PyObject
* obj2
= 0 ;
6574 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
6577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
6578 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6579 if (SWIG_arg_fail(1)) SWIG_fail
;
6580 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxObject
, SWIG_POINTER_EXCEPTION
| 0);
6581 if (SWIG_arg_fail(2)) SWIG_fail
;
6584 arg3
= static_cast<bool >(SWIG_As_bool(obj2
));
6585 if (SWIG_arg_fail(3)) SWIG_fail
;
6589 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6590 (arg1
)->CreateChildren(arg2
,arg3
);
6592 wxPyEndAllowThreads(__tstate
);
6593 if (PyErr_Occurred()) SWIG_fail
;
6595 Py_INCREF(Py_None
); resultobj
= Py_None
;
6602 static PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6603 PyObject
*resultobj
= NULL
;
6604 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6605 wxObject
*arg2
= (wxObject
*) 0 ;
6606 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
6607 PyObject
* obj0
= 0 ;
6608 PyObject
* obj1
= 0 ;
6609 PyObject
* obj2
= 0 ;
6611 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
6614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
6615 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6616 if (SWIG_arg_fail(1)) SWIG_fail
;
6617 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxObject
, SWIG_POINTER_EXCEPTION
| 0);
6618 if (SWIG_arg_fail(2)) SWIG_fail
;
6620 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
6621 if (SWIG_arg_fail(3)) SWIG_fail
;
6624 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6625 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
6627 wxPyEndAllowThreads(__tstate
);
6628 if (PyErr_Occurred()) SWIG_fail
;
6630 Py_INCREF(Py_None
); resultobj
= Py_None
;
6637 static PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6638 PyObject
*resultobj
= NULL
;
6639 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6640 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
6641 wxObject
*arg3
= (wxObject
*) 0 ;
6642 wxObject
*arg4
= (wxObject
*) NULL
;
6644 PyObject
* obj0
= 0 ;
6645 PyObject
* obj1
= 0 ;
6646 PyObject
* obj2
= 0 ;
6647 PyObject
* obj3
= 0 ;
6649 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
6652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
6653 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6654 if (SWIG_arg_fail(1)) SWIG_fail
;
6655 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
6656 if (SWIG_arg_fail(2)) SWIG_fail
;
6657 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxObject
, SWIG_POINTER_EXCEPTION
| 0);
6658 if (SWIG_arg_fail(3)) SWIG_fail
;
6660 SWIG_Python_ConvertPtr(obj3
, (void **)&arg4
, SWIGTYPE_p_wxObject
, SWIG_POINTER_EXCEPTION
| 0);
6661 if (SWIG_arg_fail(4)) SWIG_fail
;
6664 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6665 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
6667 wxPyEndAllowThreads(__tstate
);
6668 if (PyErr_Occurred()) SWIG_fail
;
6671 resultobj
= wxPyMake_wxObject(result
, (bool)0);
6679 static PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6680 PyObject
*resultobj
= NULL
;
6681 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6682 wxFileSystem
*result
;
6683 PyObject
* obj0
= 0 ;
6685 (char *) "self", NULL
6688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames
,&obj0
)) goto fail
;
6689 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6690 if (SWIG_arg_fail(1)) SWIG_fail
;
6692 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6694 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
6695 result
= (wxFileSystem
*) &_result_ref
;
6698 wxPyEndAllowThreads(__tstate
);
6699 if (PyErr_Occurred()) SWIG_fail
;
6701 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFileSystem
, 0);
6708 static PyObject
* XmlResourceHandler_swigregister(PyObject
*, PyObject
*args
) {
6710 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
6711 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, obj
);
6713 return Py_BuildValue((char *)"");
6715 static PyMethodDef SwigMethods
[] = {
6716 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6717 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6718 { (char *)"delete_XmlResource", (PyCFunction
) _wrap_delete_XmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6719 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6720 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6721 { (char *)"XmlResource_Unload", (PyCFunction
) _wrap_XmlResource_Unload
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6722 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
) _wrap_XmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6723 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6724 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6725 { (char *)"XmlResource_ClearHandlers", (PyCFunction
) _wrap_XmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6726 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6727 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6728 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6729 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6730 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6731 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6732 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6733 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6734 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6735 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6736 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6737 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6738 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6739 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6740 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6741 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6742 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6743 { (char *)"XmlResource_GetVersion", (PyCFunction
) _wrap_XmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6744 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6745 { (char *)"XmlResource_Get", (PyCFunction
) _wrap_XmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6746 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6747 { (char *)"XmlResource_GetFlags", (PyCFunction
) _wrap_XmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6748 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6749 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
, NULL
},
6750 { (char *)"new_XmlSubclassFactory", (PyCFunction
) _wrap_new_XmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6751 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6752 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
, NULL
},
6753 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6754 { (char *)"XmlProperty_GetName", (PyCFunction
) _wrap_XmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6755 { (char *)"XmlProperty_GetValue", (PyCFunction
) _wrap_XmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6756 { (char *)"XmlProperty_GetNext", (PyCFunction
) _wrap_XmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6757 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6758 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6759 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6760 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
, NULL
},
6761 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6762 { (char *)"delete_XmlNode", (PyCFunction
) _wrap_delete_XmlNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6763 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6764 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6765 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6766 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6767 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6768 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6769 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6770 { (char *)"XmlNode_GetType", (PyCFunction
) _wrap_XmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6771 { (char *)"XmlNode_GetName", (PyCFunction
) _wrap_XmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6772 { (char *)"XmlNode_GetContent", (PyCFunction
) _wrap_XmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6773 { (char *)"XmlNode_GetParent", (PyCFunction
) _wrap_XmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6774 { (char *)"XmlNode_GetNext", (PyCFunction
) _wrap_XmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6775 { (char *)"XmlNode_GetChildren", (PyCFunction
) _wrap_XmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6776 { (char *)"XmlNode_GetProperties", (PyCFunction
) _wrap_XmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6777 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6778 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6779 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6780 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6781 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6782 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6783 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6784 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6785 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6786 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
, NULL
},
6787 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6788 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6789 { (char *)"new_EmptyXmlDocument", (PyCFunction
) _wrap_new_EmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6790 { (char *)"delete_XmlDocument", (PyCFunction
) _wrap_delete_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6791 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6792 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6793 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6794 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6795 { (char *)"XmlDocument_IsOk", (PyCFunction
) _wrap_XmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6796 { (char *)"XmlDocument_GetRoot", (PyCFunction
) _wrap_XmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6797 { (char *)"XmlDocument_GetVersion", (PyCFunction
) _wrap_XmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6798 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
) _wrap_XmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6799 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6800 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6801 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6802 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
, NULL
},
6803 { (char *)"new_XmlResourceHandler", (PyCFunction
) _wrap_new_XmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6804 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6805 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6806 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6807 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
) _wrap_XmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6808 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
) _wrap_XmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6809 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
) _wrap_XmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6810 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
) _wrap_XmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6811 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
) _wrap_XmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6812 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6813 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6814 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6815 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6816 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6817 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6818 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6819 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_XmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6820 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6821 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6822 { (char *)"XmlResourceHandler_GetID", (PyCFunction
) _wrap_XmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6823 { (char *)"XmlResourceHandler_GetName", (PyCFunction
) _wrap_XmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6824 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6825 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6826 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6827 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6828 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6829 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6830 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6831 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6832 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6833 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6834 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6835 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6836 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6837 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_XmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6838 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
, NULL
},
6839 { NULL
, NULL
, 0, NULL
}
6843 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
6845 static void *_p_wxControlTo_p_wxWindow(void *x
) {
6846 return (void *)((wxWindow
*) ((wxControl
*) x
));
6848 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
6849 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
6851 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
6852 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
6854 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
6855 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
6857 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
6858 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
6860 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
6861 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
6863 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
6864 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
6866 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
6867 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
6869 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
6870 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
6872 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
6873 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
6875 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
6876 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
6878 static void *_p_wxSizerTo_p_wxObject(void *x
) {
6879 return (void *)((wxObject
*) ((wxSizer
*) x
));
6881 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
6882 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
6884 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
6885 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
6887 static void *_p_wxEventTo_p_wxObject(void *x
) {
6888 return (void *)((wxObject
*) ((wxEvent
*) x
));
6890 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
6891 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
6893 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
6894 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
6896 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
6897 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
6899 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
6900 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
6902 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
6903 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
6905 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
6906 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
6908 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
6909 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
6911 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
6912 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
6914 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
6915 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
6917 static void *_p_wxControlTo_p_wxObject(void *x
) {
6918 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
6920 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
6921 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
6923 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
6924 return (void *)((wxObject
*) ((wxFSFile
*) x
));
6926 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
6927 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
6929 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
6930 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
6932 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
6933 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
6935 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
6936 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
6938 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
6939 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
6941 static void *_p_wxDateEventTo_p_wxObject(void *x
) {
6942 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxDateEvent
*) x
));
6944 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
6945 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
6947 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
6948 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
6950 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
6951 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
6953 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
6954 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
6956 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
6957 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
6959 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
6960 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
6962 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
6963 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
6965 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
6966 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
6968 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
6969 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
6971 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
6972 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
6974 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
6975 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
6977 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
6978 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
6980 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
6981 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
6983 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
6984 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
6986 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
6987 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
6989 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
6990 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
6992 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
6993 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
6995 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x
) {
6996 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPyImageHandler
*) x
));
6998 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
6999 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
7001 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
7002 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
7004 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
7005 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
7007 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
7008 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
7010 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
7011 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
7013 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) {
7014 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStdDialogButtonSizer
*) x
));
7016 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
7017 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
7019 static void *_p_wxImageTo_p_wxObject(void *x
) {
7020 return (void *)((wxObject
*) ((wxImage
*) x
));
7022 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
7023 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
7025 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
7026 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
7028 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
7029 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
7031 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
7032 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
7034 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
7035 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
7037 static void *_p_wxWindowTo_p_wxObject(void *x
) {
7038 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
7040 static void *_p_wxMenuTo_p_wxObject(void *x
) {
7041 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
7043 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
7044 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
7046 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
7047 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
7049 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
7050 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
7052 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
7053 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
7055 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
7056 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
7058 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
7059 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
7061 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
7062 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
7064 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
7065 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
7067 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
7068 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
7070 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
7071 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
7073 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
7074 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
7076 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
7077 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
7079 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
7080 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
7082 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
7083 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
7085 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
7086 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
7088 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
7089 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
7091 static swig_type_info _swigt__p_char
= {"_p_char", "char *", 0, 0, 0};
7092 static swig_type_info _swigt__p_form_ops_t
= {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0};
7093 static swig_type_info _swigt__p_int
= {"_p_int", "int *|wxEventType *", 0, 0, 0};
7094 static swig_type_info _swigt__p_unsigned_char
= {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0};
7095 static swig_type_info _swigt__p_unsigned_int
= {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0};
7096 static swig_type_info _swigt__p_unsigned_long
= {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0};
7097 static swig_type_info _swigt__p_wxArtClient
= {"_p_wxArtClient", "wxArtClient *", 0, 0, 0};
7098 static swig_type_info _swigt__p_wxBitmap
= {"_p_wxBitmap", "wxBitmap *", 0, 0, 0};
7099 static swig_type_info _swigt__p_wxColour
= {"_p_wxColour", "wxColour *", 0, 0, 0};
7100 static swig_type_info _swigt__p_wxDialog
= {"_p_wxDialog", "wxDialog *", 0, 0, 0};
7101 static swig_type_info _swigt__p_wxDuplexMode
= {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0};
7102 static swig_type_info _swigt__p_wxFileSystem
= {"_p_wxFileSystem", "wxFileSystem *", 0, 0, 0};
7103 static swig_type_info _swigt__p_wxFont
= {"_p_wxFont", "wxFont *", 0, 0, 0};
7104 static swig_type_info _swigt__p_wxFrame
= {"_p_wxFrame", "wxFrame *", 0, 0, 0};
7105 static swig_type_info _swigt__p_wxIcon
= {"_p_wxIcon", "wxIcon *", 0, 0, 0};
7106 static swig_type_info _swigt__p_wxInputStream
= {"_p_wxInputStream", "wxInputStream *", 0, 0, 0};
7107 static swig_type_info _swigt__p_wxObject
= {"_p_wxObject", "wxObject *", 0, 0, 0};
7108 static swig_type_info _swigt__p_wxLayoutConstraints
= {"_p_wxLayoutConstraints", 0, 0, 0, 0};
7109 static swig_type_info _swigt__p_wxGBSizerItem
= {"_p_wxGBSizerItem", 0, 0, 0, 0};
7110 static swig_type_info _swigt__p_wxSizerItem
= {"_p_wxSizerItem", 0, 0, 0, 0};
7111 static swig_type_info _swigt__p_wxScrollEvent
= {"_p_wxScrollEvent", 0, 0, 0, 0};
7112 static swig_type_info _swigt__p_wxIndividualLayoutConstraint
= {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0};
7113 static swig_type_info _swigt__p_wxStaticBoxSizer
= {"_p_wxStaticBoxSizer", 0, 0, 0, 0};
7114 static swig_type_info _swigt__p_wxBoxSizer
= {"_p_wxBoxSizer", 0, 0, 0, 0};
7115 static swig_type_info _swigt__p_wxSizer
= {"_p_wxSizer", 0, 0, 0, 0};
7116 static swig_type_info _swigt__p_wxGridBagSizer
= {"_p_wxGridBagSizer", 0, 0, 0, 0};
7117 static swig_type_info _swigt__p_wxUpdateUIEvent
= {"_p_wxUpdateUIEvent", 0, 0, 0, 0};
7118 static swig_type_info _swigt__p_wxMenu
= {"_p_wxMenu", 0, 0, 0, 0};
7119 static swig_type_info _swigt__p_wxEvent
= {"_p_wxEvent", 0, 0, 0, 0};
7120 static swig_type_info _swigt__p_wxFlexGridSizer
= {"_p_wxFlexGridSizer", 0, 0, 0, 0};
7121 static swig_type_info _swigt__p_wxGridSizer
= {"_p_wxGridSizer", 0, 0, 0, 0};
7122 static swig_type_info _swigt__p_wxInitDialogEvent
= {"_p_wxInitDialogEvent", 0, 0, 0, 0};
7123 static swig_type_info _swigt__p_wxPaintEvent
= {"_p_wxPaintEvent", 0, 0, 0, 0};
7124 static swig_type_info _swigt__p_wxNcPaintEvent
= {"_p_wxNcPaintEvent", 0, 0, 0, 0};
7125 static swig_type_info _swigt__p_wxPaletteChangedEvent
= {"_p_wxPaletteChangedEvent", 0, 0, 0, 0};
7126 static swig_type_info _swigt__p_wxDisplayChangedEvent
= {"_p_wxDisplayChangedEvent", 0, 0, 0, 0};
7127 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent
= {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0};
7128 static swig_type_info _swigt__p_wxSysColourChangedEvent
= {"_p_wxSysColourChangedEvent", 0, 0, 0, 0};
7129 static swig_type_info _swigt__p_wxControl
= {"_p_wxControl", 0, 0, 0, 0};
7130 static swig_type_info _swigt__p_wxSetCursorEvent
= {"_p_wxSetCursorEvent", 0, 0, 0, 0};
7131 static swig_type_info _swigt__p_wxFSFile
= {"_p_wxFSFile", 0, 0, 0, 0};
7132 static swig_type_info _swigt__p_wxPySizer
= {"_p_wxPySizer", 0, 0, 0, 0};
7133 static swig_type_info _swigt__p_wxPyEvent
= {"_p_wxPyEvent", 0, 0, 0, 0};
7134 static swig_type_info _swigt__p_wxNotifyEvent
= {"_p_wxNotifyEvent", 0, 0, 0, 0};
7135 static swig_type_info _swigt__p_wxShowEvent
= {"_p_wxShowEvent", 0, 0, 0, 0};
7136 static swig_type_info _swigt__p_wxMenuItem
= {"_p_wxMenuItem", 0, 0, 0, 0};
7137 static swig_type_info _swigt__p_wxQueryNewPaletteEvent
= {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0};
7138 static swig_type_info _swigt__p_wxWindowCreateEvent
= {"_p_wxWindowCreateEvent", 0, 0, 0, 0};
7139 static swig_type_info _swigt__p_wxIdleEvent
= {"_p_wxIdleEvent", 0, 0, 0, 0};
7140 static swig_type_info _swigt__p_wxDateEvent
= {"_p_wxDateEvent", 0, 0, 0, 0};
7141 static swig_type_info _swigt__p_wxMaximizeEvent
= {"_p_wxMaximizeEvent", 0, 0, 0, 0};
7142 static swig_type_info _swigt__p_wxIconizeEvent
= {"_p_wxIconizeEvent", 0, 0, 0, 0};
7143 static swig_type_info _swigt__p_wxActivateEvent
= {"_p_wxActivateEvent", 0, 0, 0, 0};
7144 static swig_type_info _swigt__p_wxMoveEvent
= {"_p_wxMoveEvent", 0, 0, 0, 0};
7145 static swig_type_info _swigt__p_wxSizeEvent
= {"_p_wxSizeEvent", 0, 0, 0, 0};
7146 static swig_type_info _swigt__p_wxPNMHandler
= {"_p_wxPNMHandler", 0, 0, 0, 0};
7147 static swig_type_info _swigt__p_wxJPEGHandler
= {"_p_wxJPEGHandler", 0, 0, 0, 0};
7148 static swig_type_info _swigt__p_wxPCXHandler
= {"_p_wxPCXHandler", 0, 0, 0, 0};
7149 static swig_type_info _swigt__p_wxGIFHandler
= {"_p_wxGIFHandler", 0, 0, 0, 0};
7150 static swig_type_info _swigt__p_wxPNGHandler
= {"_p_wxPNGHandler", 0, 0, 0, 0};
7151 static swig_type_info _swigt__p_wxANIHandler
= {"_p_wxANIHandler", 0, 0, 0, 0};
7152 static swig_type_info _swigt__p_wxCURHandler
= {"_p_wxCURHandler", 0, 0, 0, 0};
7153 static swig_type_info _swigt__p_wxICOHandler
= {"_p_wxICOHandler", 0, 0, 0, 0};
7154 static swig_type_info _swigt__p_wxBMPHandler
= {"_p_wxBMPHandler", 0, 0, 0, 0};
7155 static swig_type_info _swigt__p_wxPyImageHandler
= {"_p_wxPyImageHandler", 0, 0, 0, 0};
7156 static swig_type_info _swigt__p_wxImageHandler
= {"_p_wxImageHandler", 0, 0, 0, 0};
7157 static swig_type_info _swigt__p_wxXPMHandler
= {"_p_wxXPMHandler", 0, 0, 0, 0};
7158 static swig_type_info _swigt__p_wxTIFFHandler
= {"_p_wxTIFFHandler", 0, 0, 0, 0};
7159 static swig_type_info _swigt__p_wxEvtHandler
= {"_p_wxEvtHandler", 0, 0, 0, 0};
7160 static swig_type_info _swigt__p_wxStdDialogButtonSizer
= {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0};
7161 static swig_type_info _swigt__p_wxAcceleratorTable
= {"_p_wxAcceleratorTable", 0, 0, 0, 0};
7162 static swig_type_info _swigt__p_wxImage
= {"_p_wxImage", 0, 0, 0, 0};
7163 static swig_type_info _swigt__p_wxScrollWinEvent
= {"_p_wxScrollWinEvent", 0, 0, 0, 0};
7164 static swig_type_info _swigt__p_wxWindowDestroyEvent
= {"_p_wxWindowDestroyEvent", 0, 0, 0, 0};
7165 static swig_type_info _swigt__p_wxNavigationKeyEvent
= {"_p_wxNavigationKeyEvent", 0, 0, 0, 0};
7166 static swig_type_info _swigt__p_wxKeyEvent
= {"_p_wxKeyEvent", 0, 0, 0, 0};
7167 static swig_type_info _swigt__p_wxMenuBar
= {"_p_wxMenuBar", 0, 0, 0, 0};
7168 static swig_type_info _swigt__p_wxContextMenuEvent
= {"_p_wxContextMenuEvent", 0, 0, 0, 0};
7169 static swig_type_info _swigt__p_wxMenuEvent
= {"_p_wxMenuEvent", 0, 0, 0, 0};
7170 static swig_type_info _swigt__p_wxPyApp
= {"_p_wxPyApp", 0, 0, 0, 0};
7171 static swig_type_info _swigt__p_wxCloseEvent
= {"_p_wxCloseEvent", 0, 0, 0, 0};
7172 static swig_type_info _swigt__p_wxMouseEvent
= {"_p_wxMouseEvent", 0, 0, 0, 0};
7173 static swig_type_info _swigt__p_wxEraseEvent
= {"_p_wxEraseEvent", 0, 0, 0, 0};
7174 static swig_type_info _swigt__p_wxCommandEvent
= {"_p_wxCommandEvent", 0, 0, 0, 0};
7175 static swig_type_info _swigt__p_wxPyCommandEvent
= {"_p_wxPyCommandEvent", 0, 0, 0, 0};
7176 static swig_type_info _swigt__p_wxDropFilesEvent
= {"_p_wxDropFilesEvent", 0, 0, 0, 0};
7177 static swig_type_info _swigt__p_wxFocusEvent
= {"_p_wxFocusEvent", 0, 0, 0, 0};
7178 static swig_type_info _swigt__p_wxChildFocusEvent
= {"_p_wxChildFocusEvent", 0, 0, 0, 0};
7179 static swig_type_info _swigt__p_wxControlWithItems
= {"_p_wxControlWithItems", 0, 0, 0, 0};
7180 static swig_type_info _swigt__p_wxPyValidator
= {"_p_wxPyValidator", 0, 0, 0, 0};
7181 static swig_type_info _swigt__p_wxValidator
= {"_p_wxValidator", 0, 0, 0, 0};
7182 static swig_type_info _swigt__p_wxOutputStream
= {"_p_wxOutputStream", "wxOutputStream *", 0, 0, 0};
7183 static swig_type_info _swigt__p_wxPanel
= {"_p_wxPanel", "wxPanel *", 0, 0, 0};
7184 static swig_type_info _swigt__p_wxPaperSize
= {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0};
7185 static swig_type_info _swigt__p_wxPoint
= {"_p_wxPoint", "wxPoint *", 0, 0, 0};
7186 static swig_type_info _swigt__p_wxPyXmlResourceHandler
= {"_p_wxPyXmlResourceHandler", "wxPyXmlResourceHandler *", 0, 0, 0};
7187 static swig_type_info _swigt__p_wxPyXmlSubclassFactory
= {"_p_wxPyXmlSubclassFactory", "wxPyXmlSubclassFactory *", 0, 0, 0};
7188 static swig_type_info _swigt__p_wxSize
= {"_p_wxSize", "wxSize *", 0, 0, 0};
7189 static swig_type_info _swigt__p_wxWindow
= {"_p_wxWindow", "wxWindow *", 0, 0, 0};
7190 static swig_type_info _swigt__p_wxXmlDocument
= {"_p_wxXmlDocument", "wxXmlDocument *", 0, 0, 0};
7191 static swig_type_info _swigt__p_wxXmlNode
= {"_p_wxXmlNode", "wxXmlNode *", 0, 0, 0};
7192 static swig_type_info _swigt__p_wxXmlProperty
= {"_p_wxXmlProperty", "wxXmlProperty *", 0, 0, 0};
7193 static swig_type_info _swigt__p_wxXmlResource
= {"_p_wxXmlResource", "wxXmlResource *", 0, 0, 0};
7194 static swig_type_info _swigt__ptrdiff_t
= {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
7195 static swig_type_info _swigt__std__ptrdiff_t
= {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0};
7196 static swig_type_info _swigt__unsigned_int
= {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0};
7198 static swig_type_info
*swig_type_initial
[] = {
7200 &_swigt__p_form_ops_t
,
7202 &_swigt__p_unsigned_char
,
7203 &_swigt__p_unsigned_int
,
7204 &_swigt__p_unsigned_long
,
7205 &_swigt__p_wxANIHandler
,
7206 &_swigt__p_wxAcceleratorTable
,
7207 &_swigt__p_wxActivateEvent
,
7208 &_swigt__p_wxArtClient
,
7209 &_swigt__p_wxBMPHandler
,
7210 &_swigt__p_wxBitmap
,
7211 &_swigt__p_wxBoxSizer
,
7212 &_swigt__p_wxCURHandler
,
7213 &_swigt__p_wxChildFocusEvent
,
7214 &_swigt__p_wxCloseEvent
,
7215 &_swigt__p_wxColour
,
7216 &_swigt__p_wxCommandEvent
,
7217 &_swigt__p_wxContextMenuEvent
,
7218 &_swigt__p_wxControl
,
7219 &_swigt__p_wxControlWithItems
,
7220 &_swigt__p_wxDateEvent
,
7221 &_swigt__p_wxDialog
,
7222 &_swigt__p_wxDisplayChangedEvent
,
7223 &_swigt__p_wxDropFilesEvent
,
7224 &_swigt__p_wxDuplexMode
,
7225 &_swigt__p_wxEraseEvent
,
7227 &_swigt__p_wxEvtHandler
,
7228 &_swigt__p_wxFSFile
,
7229 &_swigt__p_wxFileSystem
,
7230 &_swigt__p_wxFlexGridSizer
,
7231 &_swigt__p_wxFocusEvent
,
7234 &_swigt__p_wxGBSizerItem
,
7235 &_swigt__p_wxGIFHandler
,
7236 &_swigt__p_wxGridBagSizer
,
7237 &_swigt__p_wxGridSizer
,
7238 &_swigt__p_wxICOHandler
,
7240 &_swigt__p_wxIconizeEvent
,
7241 &_swigt__p_wxIdleEvent
,
7243 &_swigt__p_wxImageHandler
,
7244 &_swigt__p_wxIndividualLayoutConstraint
,
7245 &_swigt__p_wxInitDialogEvent
,
7246 &_swigt__p_wxInputStream
,
7247 &_swigt__p_wxJPEGHandler
,
7248 &_swigt__p_wxKeyEvent
,
7249 &_swigt__p_wxLayoutConstraints
,
7250 &_swigt__p_wxMaximizeEvent
,
7252 &_swigt__p_wxMenuBar
,
7253 &_swigt__p_wxMenuEvent
,
7254 &_swigt__p_wxMenuItem
,
7255 &_swigt__p_wxMouseCaptureChangedEvent
,
7256 &_swigt__p_wxMouseEvent
,
7257 &_swigt__p_wxMoveEvent
,
7258 &_swigt__p_wxNavigationKeyEvent
,
7259 &_swigt__p_wxNcPaintEvent
,
7260 &_swigt__p_wxNotifyEvent
,
7261 &_swigt__p_wxObject
,
7262 &_swigt__p_wxOutputStream
,
7263 &_swigt__p_wxPCXHandler
,
7264 &_swigt__p_wxPNGHandler
,
7265 &_swigt__p_wxPNMHandler
,
7266 &_swigt__p_wxPaintEvent
,
7267 &_swigt__p_wxPaletteChangedEvent
,
7269 &_swigt__p_wxPaperSize
,
7272 &_swigt__p_wxPyCommandEvent
,
7273 &_swigt__p_wxPyEvent
,
7274 &_swigt__p_wxPyImageHandler
,
7275 &_swigt__p_wxPySizer
,
7276 &_swigt__p_wxPyValidator
,
7277 &_swigt__p_wxPyXmlResourceHandler
,
7278 &_swigt__p_wxPyXmlSubclassFactory
,
7279 &_swigt__p_wxQueryNewPaletteEvent
,
7280 &_swigt__p_wxScrollEvent
,
7281 &_swigt__p_wxScrollWinEvent
,
7282 &_swigt__p_wxSetCursorEvent
,
7283 &_swigt__p_wxShowEvent
,
7285 &_swigt__p_wxSizeEvent
,
7287 &_swigt__p_wxSizerItem
,
7288 &_swigt__p_wxStaticBoxSizer
,
7289 &_swigt__p_wxStdDialogButtonSizer
,
7290 &_swigt__p_wxSysColourChangedEvent
,
7291 &_swigt__p_wxTIFFHandler
,
7292 &_swigt__p_wxUpdateUIEvent
,
7293 &_swigt__p_wxValidator
,
7294 &_swigt__p_wxWindow
,
7295 &_swigt__p_wxWindowCreateEvent
,
7296 &_swigt__p_wxWindowDestroyEvent
,
7297 &_swigt__p_wxXPMHandler
,
7298 &_swigt__p_wxXmlDocument
,
7299 &_swigt__p_wxXmlNode
,
7300 &_swigt__p_wxXmlProperty
,
7301 &_swigt__p_wxXmlResource
,
7303 &_swigt__std__ptrdiff_t
,
7304 &_swigt__unsigned_int
,
7307 static swig_cast_info _swigc__p_char
[] = { {&_swigt__p_char
, 0, 0, 0},{0, 0, 0, 0}};
7308 static swig_cast_info _swigc__p_form_ops_t
[] = { {&_swigt__p_form_ops_t
, 0, 0, 0},{0, 0, 0, 0}};
7309 static swig_cast_info _swigc__p_int
[] = { {&_swigt__p_int
, 0, 0, 0},{0, 0, 0, 0}};
7310 static swig_cast_info _swigc__p_unsigned_char
[] = { {&_swigt__p_unsigned_char
, 0, 0, 0},{0, 0, 0, 0}};
7311 static swig_cast_info _swigc__p_unsigned_int
[] = { {&_swigt__p_unsigned_int
, 0, 0, 0},{0, 0, 0, 0}};
7312 static swig_cast_info _swigc__p_unsigned_long
[] = { {&_swigt__p_unsigned_long
, 0, 0, 0},{0, 0, 0, 0}};
7313 static swig_cast_info _swigc__p_wxArtClient
[] = { {&_swigt__p_wxArtClient
, 0, 0, 0},{0, 0, 0, 0}};
7314 static swig_cast_info _swigc__p_wxBitmap
[] = { {&_swigt__p_wxBitmap
, 0, 0, 0},{0, 0, 0, 0}};
7315 static swig_cast_info _swigc__p_wxColour
[] = { {&_swigt__p_wxColour
, 0, 0, 0},{0, 0, 0, 0}};
7316 static swig_cast_info _swigc__p_wxDialog
[] = { {&_swigt__p_wxDialog
, 0, 0, 0},{0, 0, 0, 0}};
7317 static swig_cast_info _swigc__p_wxDuplexMode
[] = { {&_swigt__p_wxDuplexMode
, 0, 0, 0},{0, 0, 0, 0}};
7318 static swig_cast_info _swigc__p_wxFileSystem
[] = { {&_swigt__p_wxFileSystem
, 0, 0, 0},{0, 0, 0, 0}};
7319 static swig_cast_info _swigc__p_wxFont
[] = { {&_swigt__p_wxFont
, 0, 0, 0},{0, 0, 0, 0}};
7320 static swig_cast_info _swigc__p_wxFrame
[] = { {&_swigt__p_wxFrame
, 0, 0, 0},{0, 0, 0, 0}};
7321 static swig_cast_info _swigc__p_wxIcon
[] = { {&_swigt__p_wxIcon
, 0, 0, 0},{0, 0, 0, 0}};
7322 static swig_cast_info _swigc__p_wxInputStream
[] = { {&_swigt__p_wxInputStream
, 0, 0, 0},{0, 0, 0, 0}};
7323 static swig_cast_info _swigc__p_wxLayoutConstraints
[] = {{&_swigt__p_wxLayoutConstraints
, 0, 0, 0},{0, 0, 0, 0}};
7324 static swig_cast_info _swigc__p_wxGBSizerItem
[] = {{&_swigt__p_wxGBSizerItem
, 0, 0, 0},{0, 0, 0, 0}};
7325 static swig_cast_info _swigc__p_wxSizerItem
[] = {{&_swigt__p_wxSizerItem
, 0, 0, 0},{0, 0, 0, 0}};
7326 static swig_cast_info _swigc__p_wxScrollEvent
[] = {{&_swigt__p_wxScrollEvent
, 0, 0, 0},{0, 0, 0, 0}};
7327 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint
[] = {{&_swigt__p_wxIndividualLayoutConstraint
, 0, 0, 0},{0, 0, 0, 0}};
7328 static swig_cast_info _swigc__p_wxStaticBoxSizer
[] = {{&_swigt__p_wxStaticBoxSizer
, 0, 0, 0},{0, 0, 0, 0}};
7329 static swig_cast_info _swigc__p_wxBoxSizer
[] = {{&_swigt__p_wxBoxSizer
, 0, 0, 0},{0, 0, 0, 0}};
7330 static swig_cast_info _swigc__p_wxSizer
[] = {{&_swigt__p_wxSizer
, 0, 0, 0},{0, 0, 0, 0}};
7331 static swig_cast_info _swigc__p_wxGridBagSizer
[] = {{&_swigt__p_wxGridBagSizer
, 0, 0, 0},{0, 0, 0, 0}};
7332 static swig_cast_info _swigc__p_wxUpdateUIEvent
[] = {{&_swigt__p_wxUpdateUIEvent
, 0, 0, 0},{0, 0, 0, 0}};
7333 static swig_cast_info _swigc__p_wxMenu
[] = {{&_swigt__p_wxMenu
, 0, 0, 0},{0, 0, 0, 0}};
7334 static swig_cast_info _swigc__p_wxEvent
[] = {{&_swigt__p_wxEvent
, 0, 0, 0},{0, 0, 0, 0}};
7335 static swig_cast_info _swigc__p_wxFlexGridSizer
[] = {{&_swigt__p_wxFlexGridSizer
, 0, 0, 0},{0, 0, 0, 0}};
7336 static swig_cast_info _swigc__p_wxGridSizer
[] = {{&_swigt__p_wxGridSizer
, 0, 0, 0},{0, 0, 0, 0}};
7337 static swig_cast_info _swigc__p_wxInitDialogEvent
[] = {{&_swigt__p_wxInitDialogEvent
, 0, 0, 0},{0, 0, 0, 0}};
7338 static swig_cast_info _swigc__p_wxPaintEvent
[] = {{&_swigt__p_wxPaintEvent
, 0, 0, 0},{0, 0, 0, 0}};
7339 static swig_cast_info _swigc__p_wxNcPaintEvent
[] = {{&_swigt__p_wxNcPaintEvent
, 0, 0, 0},{0, 0, 0, 0}};
7340 static swig_cast_info _swigc__p_wxPaletteChangedEvent
[] = {{&_swigt__p_wxPaletteChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
7341 static swig_cast_info _swigc__p_wxDisplayChangedEvent
[] = {{&_swigt__p_wxDisplayChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
7342 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent
[] = {{&_swigt__p_wxMouseCaptureChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
7343 static swig_cast_info _swigc__p_wxSysColourChangedEvent
[] = {{&_swigt__p_wxSysColourChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
7344 static swig_cast_info _swigc__p_wxControl
[] = {{&_swigt__p_wxControl
, 0, 0, 0},{0, 0, 0, 0}};
7345 static swig_cast_info _swigc__p_wxSetCursorEvent
[] = {{&_swigt__p_wxSetCursorEvent
, 0, 0, 0},{0, 0, 0, 0}};
7346 static swig_cast_info _swigc__p_wxFSFile
[] = {{&_swigt__p_wxFSFile
, 0, 0, 0},{0, 0, 0, 0}};
7347 static swig_cast_info _swigc__p_wxPySizer
[] = {{&_swigt__p_wxPySizer
, 0, 0, 0},{0, 0, 0, 0}};
7348 static swig_cast_info _swigc__p_wxPyEvent
[] = {{&_swigt__p_wxPyEvent
, 0, 0, 0},{0, 0, 0, 0}};
7349 static swig_cast_info _swigc__p_wxNotifyEvent
[] = {{&_swigt__p_wxNotifyEvent
, 0, 0, 0},{0, 0, 0, 0}};
7350 static swig_cast_info _swigc__p_wxShowEvent
[] = {{&_swigt__p_wxShowEvent
, 0, 0, 0},{0, 0, 0, 0}};
7351 static swig_cast_info _swigc__p_wxMenuItem
[] = {{&_swigt__p_wxMenuItem
, 0, 0, 0},{0, 0, 0, 0}};
7352 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent
[] = {{&_swigt__p_wxQueryNewPaletteEvent
, 0, 0, 0},{0, 0, 0, 0}};
7353 static swig_cast_info _swigc__p_wxWindowCreateEvent
[] = {{&_swigt__p_wxWindowCreateEvent
, 0, 0, 0},{0, 0, 0, 0}};
7354 static swig_cast_info _swigc__p_wxIdleEvent
[] = {{&_swigt__p_wxIdleEvent
, 0, 0, 0},{0, 0, 0, 0}};
7355 static swig_cast_info _swigc__p_wxDateEvent
[] = {{&_swigt__p_wxDateEvent
, 0, 0, 0},{0, 0, 0, 0}};
7356 static swig_cast_info _swigc__p_wxMaximizeEvent
[] = {{&_swigt__p_wxMaximizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
7357 static swig_cast_info _swigc__p_wxIconizeEvent
[] = {{&_swigt__p_wxIconizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
7358 static swig_cast_info _swigc__p_wxActivateEvent
[] = {{&_swigt__p_wxActivateEvent
, 0, 0, 0},{0, 0, 0, 0}};
7359 static swig_cast_info _swigc__p_wxMoveEvent
[] = {{&_swigt__p_wxMoveEvent
, 0, 0, 0},{0, 0, 0, 0}};
7360 static swig_cast_info _swigc__p_wxSizeEvent
[] = {{&_swigt__p_wxSizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
7361 static swig_cast_info _swigc__p_wxPNMHandler
[] = {{&_swigt__p_wxPNMHandler
, 0, 0, 0},{0, 0, 0, 0}};
7362 static swig_cast_info _swigc__p_wxJPEGHandler
[] = {{&_swigt__p_wxJPEGHandler
, 0, 0, 0},{0, 0, 0, 0}};
7363 static swig_cast_info _swigc__p_wxPCXHandler
[] = {{&_swigt__p_wxPCXHandler
, 0, 0, 0},{0, 0, 0, 0}};
7364 static swig_cast_info _swigc__p_wxGIFHandler
[] = {{&_swigt__p_wxGIFHandler
, 0, 0, 0},{0, 0, 0, 0}};
7365 static swig_cast_info _swigc__p_wxPNGHandler
[] = {{&_swigt__p_wxPNGHandler
, 0, 0, 0},{0, 0, 0, 0}};
7366 static swig_cast_info _swigc__p_wxANIHandler
[] = {{&_swigt__p_wxANIHandler
, 0, 0, 0},{0, 0, 0, 0}};
7367 static swig_cast_info _swigc__p_wxCURHandler
[] = {{&_swigt__p_wxCURHandler
, 0, 0, 0},{0, 0, 0, 0}};
7368 static swig_cast_info _swigc__p_wxICOHandler
[] = {{&_swigt__p_wxICOHandler
, 0, 0, 0},{0, 0, 0, 0}};
7369 static swig_cast_info _swigc__p_wxBMPHandler
[] = {{&_swigt__p_wxBMPHandler
, 0, 0, 0},{0, 0, 0, 0}};
7370 static swig_cast_info _swigc__p_wxPyImageHandler
[] = {{&_swigt__p_wxPyImageHandler
, 0, 0, 0},{0, 0, 0, 0}};
7371 static swig_cast_info _swigc__p_wxImageHandler
[] = {{&_swigt__p_wxImageHandler
, 0, 0, 0},{0, 0, 0, 0}};
7372 static swig_cast_info _swigc__p_wxXPMHandler
[] = {{&_swigt__p_wxXPMHandler
, 0, 0, 0},{0, 0, 0, 0}};
7373 static swig_cast_info _swigc__p_wxTIFFHandler
[] = {{&_swigt__p_wxTIFFHandler
, 0, 0, 0},{0, 0, 0, 0}};
7374 static swig_cast_info _swigc__p_wxEvtHandler
[] = {{&_swigt__p_wxEvtHandler
, 0, 0, 0},{0, 0, 0, 0}};
7375 static swig_cast_info _swigc__p_wxStdDialogButtonSizer
[] = {{&_swigt__p_wxStdDialogButtonSizer
, 0, 0, 0},{0, 0, 0, 0}};
7376 static swig_cast_info _swigc__p_wxAcceleratorTable
[] = {{&_swigt__p_wxAcceleratorTable
, 0, 0, 0},{0, 0, 0, 0}};
7377 static swig_cast_info _swigc__p_wxImage
[] = {{&_swigt__p_wxImage
, 0, 0, 0},{0, 0, 0, 0}};
7378 static swig_cast_info _swigc__p_wxScrollWinEvent
[] = {{&_swigt__p_wxScrollWinEvent
, 0, 0, 0},{0, 0, 0, 0}};
7379 static swig_cast_info _swigc__p_wxWindowDestroyEvent
[] = {{&_swigt__p_wxWindowDestroyEvent
, 0, 0, 0},{0, 0, 0, 0}};
7380 static swig_cast_info _swigc__p_wxNavigationKeyEvent
[] = {{&_swigt__p_wxNavigationKeyEvent
, 0, 0, 0},{0, 0, 0, 0}};
7381 static swig_cast_info _swigc__p_wxKeyEvent
[] = {{&_swigt__p_wxKeyEvent
, 0, 0, 0},{0, 0, 0, 0}};
7382 static swig_cast_info _swigc__p_wxMenuBar
[] = {{&_swigt__p_wxMenuBar
, 0, 0, 0},{0, 0, 0, 0}};
7383 static swig_cast_info _swigc__p_wxContextMenuEvent
[] = {{&_swigt__p_wxContextMenuEvent
, 0, 0, 0},{0, 0, 0, 0}};
7384 static swig_cast_info _swigc__p_wxMenuEvent
[] = {{&_swigt__p_wxMenuEvent
, 0, 0, 0},{0, 0, 0, 0}};
7385 static swig_cast_info _swigc__p_wxPyApp
[] = {{&_swigt__p_wxPyApp
, 0, 0, 0},{0, 0, 0, 0}};
7386 static swig_cast_info _swigc__p_wxCloseEvent
[] = {{&_swigt__p_wxCloseEvent
, 0, 0, 0},{0, 0, 0, 0}};
7387 static swig_cast_info _swigc__p_wxMouseEvent
[] = {{&_swigt__p_wxMouseEvent
, 0, 0, 0},{0, 0, 0, 0}};
7388 static swig_cast_info _swigc__p_wxEraseEvent
[] = {{&_swigt__p_wxEraseEvent
, 0, 0, 0},{0, 0, 0, 0}};
7389 static swig_cast_info _swigc__p_wxCommandEvent
[] = {{&_swigt__p_wxCommandEvent
, 0, 0, 0},{0, 0, 0, 0}};
7390 static swig_cast_info _swigc__p_wxPyCommandEvent
[] = {{&_swigt__p_wxPyCommandEvent
, 0, 0, 0},{0, 0, 0, 0}};
7391 static swig_cast_info _swigc__p_wxDropFilesEvent
[] = {{&_swigt__p_wxDropFilesEvent
, 0, 0, 0},{0, 0, 0, 0}};
7392 static swig_cast_info _swigc__p_wxFocusEvent
[] = {{&_swigt__p_wxFocusEvent
, 0, 0, 0},{0, 0, 0, 0}};
7393 static swig_cast_info _swigc__p_wxChildFocusEvent
[] = {{&_swigt__p_wxChildFocusEvent
, 0, 0, 0},{0, 0, 0, 0}};
7394 static swig_cast_info _swigc__p_wxControlWithItems
[] = {{&_swigt__p_wxControlWithItems
, 0, 0, 0},{0, 0, 0, 0}};
7395 static swig_cast_info _swigc__p_wxPyValidator
[] = {{&_swigt__p_wxPyValidator
, 0, 0, 0},{0, 0, 0, 0}};
7396 static swig_cast_info _swigc__p_wxValidator
[] = {{&_swigt__p_wxValidator
, 0, 0, 0},{0, 0, 0, 0}};
7397 static swig_cast_info _swigc__p_wxObject
[] = { {&_swigt__p_wxLayoutConstraints
, _p_wxLayoutConstraintsTo_p_wxObject
, 0, 0}, {&_swigt__p_wxXmlDocument
, _p_wxXmlDocumentTo_p_wxObject
, 0, 0}, {&_swigt__p_wxGBSizerItem
, _p_wxGBSizerItemTo_p_wxObject
, 0, 0}, {&_swigt__p_wxSizerItem
, _p_wxSizerItemTo_p_wxObject
, 0, 0}, {&_swigt__p_wxScrollEvent
, _p_wxScrollEventTo_p_wxObject
, 0, 0}, {&_swigt__p_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_wxUpdateUIEvent
, _p_wxUpdateUIEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMenu
, _p_wxMenuTo_p_wxObject
, 0, 0}, {&_swigt__p_wxEvent
, _p_wxEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxFlexGridSizer
, _p_wxFlexGridSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxGridSizer
, _p_wxGridSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxInitDialogEvent
, _p_wxInitDialogEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPaintEvent
, _p_wxPaintEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxNcPaintEvent
, _p_wxNcPaintEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPaletteChangedEvent
, _p_wxPaletteChangedEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxDisplayChangedEvent
, _p_wxDisplayChangedEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent
, _p_wxMouseCaptureChangedEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxSysColourChangedEvent
, _p_wxSysColourChangedEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxControl
, _p_wxControlTo_p_wxObject
, 0, 0}, {&_swigt__p_wxSetCursorEvent
, _p_wxSetCursorEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxFSFile
, _p_wxFSFileTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPySizer
, _p_wxPySizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPyEvent
, _p_wxPyEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxNotifyEvent
, _p_wxNotifyEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxShowEvent
, _p_wxShowEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMenuItem
, _p_wxMenuItemTo_p_wxObject
, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent
, _p_wxQueryNewPaletteEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxWindowCreateEvent
, _p_wxWindowCreateEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxIdleEvent
, _p_wxIdleEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxDateEvent
, _p_wxDateEventTo_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_wxMoveEvent
, _p_wxMoveEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxSizeEvent
, _p_wxSizeEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPNMHandler
, _p_wxPNMHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxJPEGHandler
, _p_wxJPEGHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPCXHandler
, _p_wxPCXHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxGIFHandler
, _p_wxGIFHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPNGHandler
, _p_wxPNGHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxANIHandler
, _p_wxANIHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxCURHandler
, _p_wxCURHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxICOHandler
, _p_wxICOHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxBMPHandler
, _p_wxBMPHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPyImageHandler
, _p_wxPyImageHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxImageHandler
, _p_wxImageHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxXPMHandler
, _p_wxXPMHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxTIFFHandler
, _p_wxTIFFHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxEvtHandler
, _p_wxEvtHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPyXmlResourceHandler
, _p_wxPyXmlResourceHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer
, _p_wxStdDialogButtonSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxAcceleratorTable
, _p_wxAcceleratorTableTo_p_wxObject
, 0, 0}, {&_swigt__p_wxImage
, _p_wxImageTo_p_wxObject
, 0, 0}, {&_swigt__p_wxScrollWinEvent
, _p_wxScrollWinEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxObject
, 0, 0, 0}, {&_swigt__p_wxXmlResource
, _p_wxXmlResourceTo_p_wxObject
, 0, 0}, {&_swigt__p_wxWindowDestroyEvent
, _p_wxWindowDestroyEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxNavigationKeyEvent
, _p_wxNavigationKeyEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxKeyEvent
, _p_wxKeyEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxWindow
, _p_wxWindowTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMenuBar
, _p_wxMenuBarTo_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_wxPyApp
, _p_wxPyAppTo_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_wxCommandEvent
, _p_wxCommandEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPyCommandEvent
, _p_wxPyCommandEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxDropFilesEvent
, _p_wxDropFilesEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxFocusEvent
, _p_wxFocusEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxChildFocusEvent
, _p_wxChildFocusEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxControlWithItems
, _p_wxControlWithItemsTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPyValidator
, _p_wxPyValidatorTo_p_wxObject
, 0, 0}, {&_swigt__p_wxValidator
, _p_wxValidatorTo_p_wxObject
, 0, 0},{0, 0, 0, 0}};
7398 static swig_cast_info _swigc__p_wxOutputStream
[] = { {&_swigt__p_wxOutputStream
, 0, 0, 0},{0, 0, 0, 0}};
7399 static swig_cast_info _swigc__p_wxPanel
[] = { {&_swigt__p_wxPanel
, 0, 0, 0},{0, 0, 0, 0}};
7400 static swig_cast_info _swigc__p_wxPaperSize
[] = { {&_swigt__p_wxPaperSize
, 0, 0, 0},{0, 0, 0, 0}};
7401 static swig_cast_info _swigc__p_wxPoint
[] = { {&_swigt__p_wxPoint
, 0, 0, 0},{0, 0, 0, 0}};
7402 static swig_cast_info _swigc__p_wxPyXmlResourceHandler
[] = { {&_swigt__p_wxPyXmlResourceHandler
, 0, 0, 0},{0, 0, 0, 0}};
7403 static swig_cast_info _swigc__p_wxPyXmlSubclassFactory
[] = { {&_swigt__p_wxPyXmlSubclassFactory
, 0, 0, 0},{0, 0, 0, 0}};
7404 static swig_cast_info _swigc__p_wxSize
[] = { {&_swigt__p_wxSize
, 0, 0, 0},{0, 0, 0, 0}};
7405 static swig_cast_info _swigc__p_wxWindow
[] = { {&_swigt__p_wxControl
, _p_wxControlTo_p_wxWindow
, 0, 0}, {&_swigt__p_wxWindow
, 0, 0, 0}, {&_swigt__p_wxControlWithItems
, _p_wxControlWithItemsTo_p_wxWindow
, 0, 0}, {&_swigt__p_wxMenuBar
, _p_wxMenuBarTo_p_wxWindow
, 0, 0},{0, 0, 0, 0}};
7406 static swig_cast_info _swigc__p_wxXmlDocument
[] = { {&_swigt__p_wxXmlDocument
, 0, 0, 0},{0, 0, 0, 0}};
7407 static swig_cast_info _swigc__p_wxXmlNode
[] = { {&_swigt__p_wxXmlNode
, 0, 0, 0},{0, 0, 0, 0}};
7408 static swig_cast_info _swigc__p_wxXmlProperty
[] = { {&_swigt__p_wxXmlProperty
, 0, 0, 0},{0, 0, 0, 0}};
7409 static swig_cast_info _swigc__p_wxXmlResource
[] = { {&_swigt__p_wxXmlResource
, 0, 0, 0},{0, 0, 0, 0}};
7410 static swig_cast_info _swigc__ptrdiff_t
[] = { {&_swigt__ptrdiff_t
, 0, 0, 0},{0, 0, 0, 0}};
7411 static swig_cast_info _swigc__std__ptrdiff_t
[] = { {&_swigt__std__ptrdiff_t
, 0, 0, 0},{0, 0, 0, 0}};
7412 static swig_cast_info _swigc__unsigned_int
[] = { {&_swigt__unsigned_int
, 0, 0, 0},{0, 0, 0, 0}};
7414 static swig_cast_info
*swig_cast_initial
[] = {
7416 _swigc__p_form_ops_t
,
7418 _swigc__p_unsigned_char
,
7419 _swigc__p_unsigned_int
,
7420 _swigc__p_unsigned_long
,
7421 _swigc__p_wxANIHandler
,
7422 _swigc__p_wxAcceleratorTable
,
7423 _swigc__p_wxActivateEvent
,
7424 _swigc__p_wxArtClient
,
7425 _swigc__p_wxBMPHandler
,
7427 _swigc__p_wxBoxSizer
,
7428 _swigc__p_wxCURHandler
,
7429 _swigc__p_wxChildFocusEvent
,
7430 _swigc__p_wxCloseEvent
,
7432 _swigc__p_wxCommandEvent
,
7433 _swigc__p_wxContextMenuEvent
,
7434 _swigc__p_wxControl
,
7435 _swigc__p_wxControlWithItems
,
7436 _swigc__p_wxDateEvent
,
7438 _swigc__p_wxDisplayChangedEvent
,
7439 _swigc__p_wxDropFilesEvent
,
7440 _swigc__p_wxDuplexMode
,
7441 _swigc__p_wxEraseEvent
,
7443 _swigc__p_wxEvtHandler
,
7445 _swigc__p_wxFileSystem
,
7446 _swigc__p_wxFlexGridSizer
,
7447 _swigc__p_wxFocusEvent
,
7450 _swigc__p_wxGBSizerItem
,
7451 _swigc__p_wxGIFHandler
,
7452 _swigc__p_wxGridBagSizer
,
7453 _swigc__p_wxGridSizer
,
7454 _swigc__p_wxICOHandler
,
7456 _swigc__p_wxIconizeEvent
,
7457 _swigc__p_wxIdleEvent
,
7459 _swigc__p_wxImageHandler
,
7460 _swigc__p_wxIndividualLayoutConstraint
,
7461 _swigc__p_wxInitDialogEvent
,
7462 _swigc__p_wxInputStream
,
7463 _swigc__p_wxJPEGHandler
,
7464 _swigc__p_wxKeyEvent
,
7465 _swigc__p_wxLayoutConstraints
,
7466 _swigc__p_wxMaximizeEvent
,
7468 _swigc__p_wxMenuBar
,
7469 _swigc__p_wxMenuEvent
,
7470 _swigc__p_wxMenuItem
,
7471 _swigc__p_wxMouseCaptureChangedEvent
,
7472 _swigc__p_wxMouseEvent
,
7473 _swigc__p_wxMoveEvent
,
7474 _swigc__p_wxNavigationKeyEvent
,
7475 _swigc__p_wxNcPaintEvent
,
7476 _swigc__p_wxNotifyEvent
,
7478 _swigc__p_wxOutputStream
,
7479 _swigc__p_wxPCXHandler
,
7480 _swigc__p_wxPNGHandler
,
7481 _swigc__p_wxPNMHandler
,
7482 _swigc__p_wxPaintEvent
,
7483 _swigc__p_wxPaletteChangedEvent
,
7485 _swigc__p_wxPaperSize
,
7488 _swigc__p_wxPyCommandEvent
,
7489 _swigc__p_wxPyEvent
,
7490 _swigc__p_wxPyImageHandler
,
7491 _swigc__p_wxPySizer
,
7492 _swigc__p_wxPyValidator
,
7493 _swigc__p_wxPyXmlResourceHandler
,
7494 _swigc__p_wxPyXmlSubclassFactory
,
7495 _swigc__p_wxQueryNewPaletteEvent
,
7496 _swigc__p_wxScrollEvent
,
7497 _swigc__p_wxScrollWinEvent
,
7498 _swigc__p_wxSetCursorEvent
,
7499 _swigc__p_wxShowEvent
,
7501 _swigc__p_wxSizeEvent
,
7503 _swigc__p_wxSizerItem
,
7504 _swigc__p_wxStaticBoxSizer
,
7505 _swigc__p_wxStdDialogButtonSizer
,
7506 _swigc__p_wxSysColourChangedEvent
,
7507 _swigc__p_wxTIFFHandler
,
7508 _swigc__p_wxUpdateUIEvent
,
7509 _swigc__p_wxValidator
,
7511 _swigc__p_wxWindowCreateEvent
,
7512 _swigc__p_wxWindowDestroyEvent
,
7513 _swigc__p_wxXPMHandler
,
7514 _swigc__p_wxXmlDocument
,
7515 _swigc__p_wxXmlNode
,
7516 _swigc__p_wxXmlProperty
,
7517 _swigc__p_wxXmlResource
,
7519 _swigc__std__ptrdiff_t
,
7520 _swigc__unsigned_int
,
7524 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
7526 static swig_const_info swig_const_table
[] = {
7527 {0, 0, 0, 0.0, 0, 0}};
7532 /*************************************************************************
7533 * Type initialization:
7534 * This problem is tough by the requirement that no dynamic
7535 * memory is used. Also, since swig_type_info structures store pointers to
7536 * swig_cast_info structures and swig_cast_info structures store pointers back
7537 * to swig_type_info structures, we need some lookup code at initialization.
7538 * The idea is that swig generates all the structures that are needed.
7539 * The runtime then collects these partially filled structures.
7540 * The SWIG_InitializeModule function takes these initial arrays out of
7541 * swig_module, and does all the lookup, filling in the swig_module.types
7542 * array with the correct data and linking the correct swig_cast_info
7543 * structures together.
7545 * The generated swig_type_info structures are assigned staticly to an initial
7546 * array. We just loop though that array, and handle each type individually.
7547 * First we lookup if this type has been already loaded, and if so, use the
7548 * loaded structure instead of the generated one. Then we have to fill in the
7549 * cast linked list. The cast data is initially stored in something like a
7550 * two-dimensional array. Each row corresponds to a type (there are the same
7551 * number of rows as there are in the swig_type_initial array). Each entry in
7552 * a column is one of the swig_cast_info structures for that type.
7553 * The cast_initial array is actually an array of arrays, because each row has
7554 * a variable number of columns. So to actually build the cast linked list,
7555 * we find the array of casts associated with the type, and loop through it
7556 * adding the casts to the list. The one last trick we need to do is making
7557 * sure the type pointer in the swig_cast_info struct is correct.
7559 * First off, we lookup the cast->type name to see if it is already loaded.
7560 * There are three cases to handle:
7561 * 1) If the cast->type has already been loaded AND the type we are adding
7562 * casting info to has not been loaded (it is in this module), THEN we
7563 * replace the cast->type pointer with the type pointer that has already
7565 * 2) If BOTH types (the one we are adding casting info to, and the
7566 * cast->type) are loaded, THEN the cast info has already been loaded by
7567 * the previous module so we just ignore it.
7568 * 3) Finally, if cast->type has not already been loaded, then we add that
7569 * swig_cast_info to the linked list (because the cast->type) pointer will
7581 #define SWIGRUNTIME_DEBUG
7585 SWIG_InitializeModule(void *clientdata
) {
7587 swig_module_info
*module_head
;
7588 static int init_run
= 0;
7590 clientdata
= clientdata
;
7592 if (init_run
) return;
7595 /* Initialize the swig_module */
7596 swig_module
.type_initial
= swig_type_initial
;
7597 swig_module
.cast_initial
= swig_cast_initial
;
7599 /* Try and load any already created modules */
7600 module_head
= SWIG_GetModule(clientdata
);
7602 swig_module
.next
= module_head
->next
;
7603 module_head
->next
= &swig_module
;
7605 /* This is the first module loaded */
7606 swig_module
.next
= &swig_module
;
7607 SWIG_SetModule(clientdata
, &swig_module
);
7610 /* Now work on filling in swig_module.types */
7611 #ifdef SWIGRUNTIME_DEBUG
7612 printf("SWIG_InitializeModule: size %d\n", swig_module
.size
);
7614 for (i
= 0; i
< swig_module
.size
; ++i
) {
7615 swig_type_info
*type
= 0;
7616 swig_type_info
*ret
;
7617 swig_cast_info
*cast
;
7619 #ifdef SWIGRUNTIME_DEBUG
7620 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
7623 /* if there is another module already loaded */
7624 if (swig_module
.next
!= &swig_module
) {
7625 type
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, swig_module
.type_initial
[i
]->name
);
7628 /* Overwrite clientdata field */
7629 #ifdef SWIGRUNTIME_DEBUG
7630 printf("SWIG_InitializeModule: found type %s\n", type
->name
);
7632 if (swig_module
.type_initial
[i
]->clientdata
) {
7633 type
->clientdata
= swig_module
.type_initial
[i
]->clientdata
;
7634 #ifdef SWIGRUNTIME_DEBUG
7635 printf("SWIG_InitializeModule: found and overwrite type %s \n", type
->name
);
7639 type
= swig_module
.type_initial
[i
];
7642 /* Insert casting types */
7643 cast
= swig_module
.cast_initial
[i
];
7644 while (cast
->type
) {
7645 /* Don't need to add information already in the list */
7647 #ifdef SWIGRUNTIME_DEBUG
7648 printf("SWIG_InitializeModule: look cast %s\n", cast
->type
->name
);
7650 if (swig_module
.next
!= &swig_module
) {
7651 ret
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, cast
->type
->name
);
7652 #ifdef SWIGRUNTIME_DEBUG
7653 if (ret
) printf("SWIG_InitializeModule: found cast %s\n", ret
->name
);
7657 if (type
== swig_module
.type_initial
[i
]) {
7658 #ifdef SWIGRUNTIME_DEBUG
7659 printf("SWIG_InitializeModule: skip old type %s\n", ret
->name
);
7664 /* Check for casting already in the list */
7665 swig_cast_info
*ocast
= SWIG_TypeCheck(ret
->name
, type
);
7666 #ifdef SWIGRUNTIME_DEBUG
7667 if (ocast
) printf("SWIG_InitializeModule: skip old cast %s\n", ret
->name
);
7669 if (!ocast
) ret
= 0;
7674 #ifdef SWIGRUNTIME_DEBUG
7675 printf("SWIG_InitializeModule: adding cast %s\n", cast
->type
->name
);
7678 type
->cast
->prev
= cast
;
7679 cast
->next
= type
->cast
;
7685 /* Set entry in modules->types array equal to the type */
7686 swig_module
.types
[i
] = type
;
7688 swig_module
.types
[i
] = 0;
7690 #ifdef SWIGRUNTIME_DEBUG
7691 printf("**** SWIG_InitializeModule: Cast List ******\n");
7692 for (i
= 0; i
< swig_module
.size
; ++i
) {
7694 swig_cast_info
*cast
= swig_module
.cast_initial
[i
];
7695 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
7696 while (cast
->type
) {
7697 printf("SWIG_InitializeModule: cast type %s\n", cast
->type
->name
);
7701 printf("---- Total casts: %d\n",j
);
7703 printf("**** SWIG_InitializeModule: Cast List ******\n");
7707 /* This function will propagate the clientdata field of type to
7708 * any new swig_type_info structures that have been added into the list
7709 * of equivalent types. It is like calling
7710 * SWIG_TypeClientData(type, clientdata) a second time.
7713 SWIG_PropagateClientData(void) {
7715 swig_cast_info
*equiv
;
7716 static int init_run
= 0;
7718 if (init_run
) return;
7721 for (i
= 0; i
< swig_module
.size
; i
++) {
7722 if (swig_module
.types
[i
]->clientdata
) {
7723 equiv
= swig_module
.types
[i
]->cast
;
7725 if (!equiv
->converter
) {
7726 if (equiv
->type
&& !equiv
->type
->clientdata
)
7727 SWIG_TypeClientData(equiv
->type
, swig_module
.types
[i
]->clientdata
);
7729 equiv
= equiv
->next
;
7749 /* Python-specific SWIG API */
7750 #define SWIG_newvarlink() SWIG_Python_newvarlink()
7751 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
7752 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
7754 /* -----------------------------------------------------------------------------
7755 * global variable support code.
7756 * ----------------------------------------------------------------------------- */
7758 typedef struct swig_globalvar
{
7759 char *name
; /* Name of global variable */
7760 PyObject
*(*get_attr
)(void); /* Return the current value */
7761 int (*set_attr
)(PyObject
*); /* Set the value */
7762 struct swig_globalvar
*next
;
7765 typedef struct swig_varlinkobject
{
7767 swig_globalvar
*vars
;
7768 } swig_varlinkobject
;
7770 SWIGINTERN PyObject
*
7771 swig_varlink_repr(swig_varlinkobject
*v
) {
7773 return PyString_FromString("<Swig global variables>");
7777 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
) {
7778 swig_globalvar
*var
;
7780 fprintf(fp
,"Swig global variables { ");
7781 for (var
= v
->vars
; var
; var
=var
->next
) {
7782 fprintf(fp
,"%s", var
->name
);
7783 if (var
->next
) fprintf(fp
,", ");
7789 SWIGINTERN PyObject
*
7790 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
7791 swig_globalvar
*var
= v
->vars
;
7793 if (strcmp(var
->name
,n
) == 0) {
7794 return (*var
->get_attr
)();
7798 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
7803 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
7804 swig_globalvar
*var
= v
->vars
;
7806 if (strcmp(var
->name
,n
) == 0) {
7807 return (*var
->set_attr
)(p
);
7811 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
7815 SWIGINTERN PyTypeObject
*
7816 swig_varlink_type(void) {
7817 static char varlink__doc__
[] = "Swig var link object";
7818 static PyTypeObject varlink_type
7819 #if !defined(__cplusplus)
7821 static int type_init
= 0;
7826 PyObject_HEAD_INIT(&PyType_Type
)
7827 0, /* Number of items in variable part (ob_size) */
7828 (char *)"swigvarlink", /* Type name (tp_name) */
7829 sizeof(swig_varlinkobject
), /* Basic size (tp_basicsize) */
7830 0, /* Itemsize (tp_itemsize) */
7831 0, /* Deallocator (tp_dealloc) */
7832 (printfunc
) swig_varlink_print
, /* Print (tp_print) */
7833 (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */
7834 (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */
7836 (reprfunc
) swig_varlink_repr
, /* tp_repr */
7837 0, /* tp_as_number */
7838 0, /* tp_as_sequence */
7839 0, /* tp_as_mapping */
7843 0, /* tp_getattro */
7844 0, /* tp_setattro */
7845 0, /* tp_as_buffer */
7847 varlink__doc__
, /* tp_doc */
7848 #if PY_VERSION_HEX >= 0x02000000
7849 0, /* tp_traverse */
7852 #if PY_VERSION_HEX >= 0x02010000
7853 0, /* tp_richcompare */
7854 0, /* tp_weaklistoffset */
7856 #if PY_VERSION_HEX >= 0x02020000
7857 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
7859 #if PY_VERSION_HEX >= 0x02030000
7863 0,0,0,0 /* tp_alloc -> tp_next */
7866 #if !defined(__cplusplus)
7871 return &varlink_type
;
7874 /* Create a variable linking object for use later */
7875 SWIGINTERN PyObject
*
7876 SWIG_Python_newvarlink(void) {
7877 swig_varlinkobject
*result
= PyObject_NEW(swig_varlinkobject
, swig_varlink_type());
7881 return ((PyObject
*) result
);
7885 SWIG_Python_addvarlink(PyObject
*p
, char *name
, PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
)) {
7886 swig_varlinkobject
*v
= (swig_varlinkobject
*) p
;
7887 swig_globalvar
*gv
= (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
7889 size_t size
= strlen(name
)+1;
7890 gv
->name
= (char *)malloc(size
);
7892 strncpy(gv
->name
,name
,size
);
7893 gv
->get_attr
= get_attr
;
7894 gv
->set_attr
= set_attr
;
7901 /* -----------------------------------------------------------------------------
7902 * constants/methods manipulation
7903 * ----------------------------------------------------------------------------- */
7905 /* Install Constants */
7907 SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
7910 for (i
= 0; constants
[i
].type
; ++i
) {
7911 switch(constants
[i
].type
) {
7913 obj
= PyInt_FromLong(constants
[i
].lvalue
);
7916 obj
= PyFloat_FromDouble(constants
[i
].dvalue
);
7918 case SWIG_PY_STRING
:
7919 if (constants
[i
].pvalue
) {
7920 obj
= PyString_FromString((char *) constants
[i
].pvalue
);
7926 case SWIG_PY_POINTER
:
7927 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
7929 case SWIG_PY_BINARY
:
7930 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
7937 PyDict_SetItemString(d
,constants
[i
].name
,obj
);
7943 /* -----------------------------------------------------------------------------*/
7944 /* Fix SwigMethods to carry the callback ptrs when needed */
7945 /* -----------------------------------------------------------------------------*/
7948 SWIG_Python_FixMethods(PyMethodDef
*methods
,
7949 swig_const_info
*const_table
,
7950 swig_type_info
**types
,
7951 swig_type_info
**types_initial
) {
7953 for (i
= 0; methods
[i
].ml_name
; ++i
) {
7954 char *c
= methods
[i
].ml_doc
;
7955 if (c
&& (c
= strstr(c
, "swig_ptr: "))) {
7957 swig_const_info
*ci
= 0;
7958 char *name
= c
+ 10;
7959 for (j
= 0; const_table
[j
].type
; ++j
) {
7960 if (strncmp(const_table
[j
].name
, name
,
7961 strlen(const_table
[j
].name
)) == 0) {
7962 ci
= &(const_table
[j
]);
7967 size_t shift
= (ci
->ptype
) - types
;
7968 swig_type_info
*ty
= types_initial
[shift
];
7969 size_t ldoc
= (c
- methods
[i
].ml_doc
);
7970 size_t lptr
= strlen(ty
->name
)+2*sizeof(void*)+2;
7971 char *ndoc
= (char*)malloc(ldoc
+ lptr
+ 10);
7974 void *ptr
= (ci
->type
== SWIG_PY_POINTER
) ? ci
->pvalue
: 0;
7976 strncpy(buff
, methods
[i
].ml_doc
, ldoc
);
7978 strncpy(buff
, "swig_ptr: ", 10);
7980 SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
);
7981 methods
[i
].ml_doc
= ndoc
;
7989 /* -----------------------------------------------------------------------------*
7990 * Initialize type list
7991 * -----------------------------------------------------------------------------*/
7997 /* -----------------------------------------------------------------------------*
7998 * Partial Init method
7999 * -----------------------------------------------------------------------------*/
8004 SWIGEXPORT
void SWIG_init(void) {
8005 static PyObject
*SWIG_globals
= 0;
8007 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
8009 /* Fix SwigMethods to carry the callback ptrs when needed */
8010 SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_type_initial
);
8012 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
8013 d
= PyModule_GetDict(m
);
8015 SWIG_InitializeModule(0);
8016 SWIG_InstallConstants(d
,swig_const_table
);
8018 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
8019 SWIG_addvarlink(SWIG_globals
,(char*)"UTF8String",_wrap_UTF8String_get
, _wrap_UTF8String_set
);
8020 SWIG_addvarlink(SWIG_globals
,(char*)"StyleString",_wrap_StyleString_get
, _wrap_StyleString_set
);
8021 SWIG_addvarlink(SWIG_globals
,(char*)"SizeString",_wrap_SizeString_get
, _wrap_SizeString_set
);
8022 SWIG_addvarlink(SWIG_globals
,(char*)"PosString",_wrap_PosString_get
, _wrap_PosString_set
);
8023 SWIG_addvarlink(SWIG_globals
,(char*)"BitmapString",_wrap_BitmapString_get
, _wrap_BitmapString_set
);
8024 SWIG_addvarlink(SWIG_globals
,(char*)"IconString",_wrap_IconString_get
, _wrap_IconString_set
);
8025 SWIG_addvarlink(SWIG_globals
,(char*)"FontString",_wrap_FontString_get
, _wrap_FontString_set
);
8027 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MAJOR", SWIG_From_int(static_cast<int >(WX_XMLRES_CURRENT_VERSION_MAJOR
)));
8030 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MINOR", SWIG_From_int(static_cast<int >(WX_XMLRES_CURRENT_VERSION_MINOR
)));
8033 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_RELEASE", SWIG_From_int(static_cast<int >(WX_XMLRES_CURRENT_VERSION_RELEASE
)));
8036 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_REVISION", SWIG_From_int(static_cast<int >(WX_XMLRES_CURRENT_VERSION_REVISION
)));
8039 PyDict_SetItemString(d
,"XRC_USE_LOCALE", SWIG_From_int(static_cast<int >(wxXRC_USE_LOCALE
)));
8042 PyDict_SetItemString(d
,"XRC_NO_SUBCLASSING", SWIG_From_int(static_cast<int >(wxXRC_NO_SUBCLASSING
)));
8045 PyDict_SetItemString(d
,"XRC_NO_RELOADING", SWIG_From_int(static_cast<int >(wxXRC_NO_RELOADING
)));
8048 PyDict_SetItemString(d
,"XML_ELEMENT_NODE", SWIG_From_int(static_cast<int >(wxXML_ELEMENT_NODE
)));
8051 PyDict_SetItemString(d
,"XML_ATTRIBUTE_NODE", SWIG_From_int(static_cast<int >(wxXML_ATTRIBUTE_NODE
)));
8054 PyDict_SetItemString(d
,"XML_TEXT_NODE", SWIG_From_int(static_cast<int >(wxXML_TEXT_NODE
)));
8057 PyDict_SetItemString(d
,"XML_CDATA_SECTION_NODE", SWIG_From_int(static_cast<int >(wxXML_CDATA_SECTION_NODE
)));
8060 PyDict_SetItemString(d
,"XML_ENTITY_REF_NODE", SWIG_From_int(static_cast<int >(wxXML_ENTITY_REF_NODE
)));
8063 PyDict_SetItemString(d
,"XML_ENTITY_NODE", SWIG_From_int(static_cast<int >(wxXML_ENTITY_NODE
)));
8066 PyDict_SetItemString(d
,"XML_PI_NODE", SWIG_From_int(static_cast<int >(wxXML_PI_NODE
)));
8069 PyDict_SetItemString(d
,"XML_COMMENT_NODE", SWIG_From_int(static_cast<int >(wxXML_COMMENT_NODE
)));
8072 PyDict_SetItemString(d
,"XML_DOCUMENT_NODE", SWIG_From_int(static_cast<int >(wxXML_DOCUMENT_NODE
)));
8075 PyDict_SetItemString(d
,"XML_DOCUMENT_TYPE_NODE", SWIG_From_int(static_cast<int >(wxXML_DOCUMENT_TYPE_NODE
)));
8078 PyDict_SetItemString(d
,"XML_DOCUMENT_FRAG_NODE", SWIG_From_int(static_cast<int >(wxXML_DOCUMENT_FRAG_NODE
)));
8081 PyDict_SetItemString(d
,"XML_NOTATION_NODE", SWIG_From_int(static_cast<int >(wxXML_NOTATION_NODE
)));
8084 PyDict_SetItemString(d
,"XML_HTML_DOCUMENT_NODE", SWIG_From_int(static_cast<int >(wxXML_HTML_DOCUMENT_NODE
)));
8088 wxXmlInitResourceModule();
8089 wxXmlResource::Get()->InitAllHandlers();