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 * ----------------------------------------------------------------------------- */
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
15 template<class T
> class SwigValueWrapper
{
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
) : tt(new T(*rhs
.tt
)) { }
20 SwigValueWrapper(const T
& t
) : tt(new T(t
)) { }
21 ~SwigValueWrapper() { delete tt
; }
22 SwigValueWrapper
& operator=(const T
& t
) { delete tt
; tt
= new T(t
); return *this; }
23 operator T
&() const { return *tt
; }
24 T
*operator&() { return tt
; }
26 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
41 # define SWIGTEMPLATEDISAMBIGUATOR
44 # define SWIGTEMPLATEDISAMBIGUATOR
48 /* inline attribute */
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
66 # define SWIGUNUSED __attribute__ ((__unused__))
72 #ifndef SWIGUNUSEDPARM
74 # define SWIGUNUSEDPARM(p)
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
80 /* internal SWIG method */
82 # define SWIGINTERN static SWIGUNUSED
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
102 # define SWIGEXPORT __declspec(dllexport)
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
113 /* calling conventions for Windows */
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
128 /* Python.h has to appear first */
131 /* -----------------------------------------------------------------------------
134 * This file contains generic CAPI SWIG runtime support for pointer
136 * ----------------------------------------------------------------------------- */
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
148 # define SWIG_TYPE_TABLE_NAME
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
161 # define SWIGRUNTIME SWIGINTERN
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
181 Flags/methods for returning states.
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
187 Use the following macros/flags to set or process the returning
190 In old swig versions, you usually write code as:
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
198 Now you can be more explicit as:
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
207 that seems to be the same, but now you can also do
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
213 if (SWIG_IsNewObj(res) {
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
227 int SWIG_ConvertPtr(obj, ptr,...) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
233 *ptr = <ptr to old object>;
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
256 just use the SWIG_AddCast()/SWIG_CheckState()
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE
int SWIG_AddCast(int r
) {
296 return SWIG_IsOK(r
) ? ((SWIG_CastRank(r
) < SWIG_MAXCASTRANK
) ? (r
+ 1) : SWIG_ERROR
) : r
;
298 SWIGINTERNINLINE
int SWIG_CheckState(int r
) {
299 return SWIG_IsOK(r
) ? SWIG_CastRank(r
) + 1 : 0;
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
315 typedef void *(*swig_converter_func
)(void *);
316 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info
{
320 const char *name
; /* mangled name of this type */
321 const char *str
; /* human readable name of this type */
322 swig_dycast_func dcast
; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info
*cast
; /* linked list of types that can cast into this type */
324 void *clientdata
; /* language specific type data */
325 int owndata
; /* flag if the structure owns the clientdata */
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info
{
330 swig_type_info
*type
; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter
; /* function to cast the void pointers */
332 struct swig_cast_info
*next
; /* pointer to next cast in linked list */
333 struct swig_cast_info
*prev
; /* pointer to the previous cast */
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info
{
340 swig_type_info
**types
; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size
; /* Number of types in this module */
342 struct swig_module_info
*next
; /* Pointer to next element in circularly linked list */
343 swig_type_info
**type_initial
; /* Array of initially generated type structures */
344 swig_cast_info
**cast_initial
; /* Array of initially generated casting structures */
345 void *clientdata
; /* Language specific module data */
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
356 SWIG_TypeNameComp(const char *f1
, const char *l1
,
357 const char *f2
, const char *l2
) {
358 for (;(f1
!= l1
) && (f2
!= l2
); ++f1
, ++f2
) {
359 while ((*f1
== ' ') && (f1
!= l1
)) ++f1
;
360 while ((*f2
== ' ') && (f2
!= l2
)) ++f2
;
361 if (*f1
!= *f2
) return (*f1
> *f2
) ? 1 : -1;
363 return (l1
- f1
) - (l2
- f2
);
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
371 SWIG_TypeEquiv(const char *nb
, const char *tb
) {
373 const char* te
= tb
+ strlen(tb
);
375 while (!equiv
&& *ne
) {
376 for (nb
= ne
; *ne
; ++ne
) {
377 if (*ne
== '|') break;
379 equiv
= (SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0) ? 1 : 0;
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
390 SWIG_TypeCompare(const char *nb
, const char *tb
) {
392 const char* te
= tb
+ strlen(tb
);
394 while (!equiv
&& *ne
) {
395 for (nb
= ne
; *ne
; ++ne
) {
396 if (*ne
== '|') break;
398 equiv
= (SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0) ? 1 : 0;
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
408 swig_cast_info *iter = ty->cast; \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
418 if (ty->cast) ty->cast->prev = iter; \
430 SWIGRUNTIME swig_cast_info
*
431 SWIG_TypeCheck(const char *c
, swig_type_info
*ty
) {
432 SWIG_TypeCheck_Template(strcmp(iter
->type
->name
, c
) == 0, ty
);
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info
*
437 SWIG_TypeCheckStruct(swig_type_info
*from
, swig_type_info
*into
) {
438 SWIG_TypeCheck_Template(iter
->type
== from
, into
);
442 Cast a pointer up an inheritance hierarchy
444 SWIGRUNTIMEINLINE
void *
445 SWIG_TypeCast(swig_cast_info
*ty
, void *ptr
) {
446 return ((!ty
) || (!ty
->converter
)) ? ptr
: (*ty
->converter
)(ptr
);
450 Dynamic pointer casting. Down an inheritance hierarchy
452 SWIGRUNTIME swig_type_info
*
453 SWIG_TypeDynamicCast(swig_type_info
*ty
, void **ptr
) {
454 swig_type_info
*lastty
= ty
;
455 if (!ty
|| !ty
->dcast
) return ty
;
456 while (ty
&& (ty
->dcast
)) {
457 ty
= (*ty
->dcast
)(ptr
);
464 Return the name associated with this type
466 SWIGRUNTIMEINLINE
const char *
467 SWIG_TypeName(const swig_type_info
*ty
) {
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
475 SWIGRUNTIME
const char *
476 SWIG_TypePrettyName(const swig_type_info
*type
) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
481 if (!type
) return NULL
;
482 if (type
->str
!= NULL
) {
483 const char *last_name
= type
->str
;
485 for (s
= type
->str
; *s
; s
++)
486 if (*s
== '|') last_name
= s
+1;
494 Set the clientdata field for a type
497 SWIG_TypeClientData(swig_type_info
*ti
, void *clientdata
) {
498 swig_cast_info
*cast
= ti
->cast
;
499 /* if (ti->clientdata == clientdata) return; */
500 ti
->clientdata
= clientdata
;
503 if (!cast
->converter
) {
504 swig_type_info
*tc
= cast
->type
;
505 if (!tc
->clientdata
) {
506 SWIG_TypeClientData(tc
, clientdata
);
513 SWIG_TypeNewClientData(swig_type_info
*ti
, void *clientdata
) {
514 SWIG_TypeClientData(ti
, clientdata
);
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
526 SWIGRUNTIME swig_type_info
*
527 SWIG_MangledTypeQueryModule(swig_module_info
*start
,
528 swig_module_info
*end
,
530 swig_module_info
*iter
= start
;
533 register size_t l
= 0;
534 register size_t r
= iter
->size
- 1;
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i
= (l
+ r
) >> 1;
538 const char *iname
= iter
->types
[i
]->name
;
540 register int compare
= strcmp(name
, iname
);
542 return iter
->types
[i
];
543 } else if (compare
< 0) {
549 } else if (compare
> 0) {
553 break; /* should never happen */
558 } while (iter
!= end
);
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
571 SWIGRUNTIME swig_type_info
*
572 SWIG_TypeQueryModule(swig_module_info
*start
,
573 swig_module_info
*end
,
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info
*ret
= SWIG_MangledTypeQueryModule(start
, end
, name
);
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info
*iter
= start
;
584 register size_t i
= 0;
585 for (; i
< iter
->size
; ++i
) {
586 if (iter
->types
[i
]->str
&& (SWIG_TypeEquiv(iter
->types
[i
]->str
, name
)))
587 return iter
->types
[i
];
590 } while (iter
!= end
);
593 /* neither found a match */
598 Pack binary data into a string
601 SWIG_PackData(char *c
, void *ptr
, size_t sz
) {
602 static const char hex
[17] = "0123456789abcdef";
603 register const unsigned char *u
= (unsigned char *) ptr
;
604 register const unsigned char *eu
= u
+ sz
;
605 for (; u
!= eu
; ++u
) {
606 register unsigned char uu
= *u
;
607 *(c
++) = hex
[(uu
& 0xf0) >> 4];
608 *(c
++) = hex
[uu
& 0xf];
614 Unpack binary data from a string
616 SWIGRUNTIME
const char *
617 SWIG_UnpackData(const char *c
, void *ptr
, size_t sz
) {
618 register unsigned char *u
= (unsigned char *) ptr
;
619 register const unsigned char *eu
= u
+ sz
;
620 for (; u
!= eu
; ++u
) {
621 register char d
= *(c
++);
622 register unsigned char uu
;
623 if ((d
>= '0') && (d
<= '9'))
624 uu
= ((d
- '0') << 4);
625 else if ((d
>= 'a') && (d
<= 'f'))
626 uu
= ((d
- ('a'-10)) << 4);
630 if ((d
>= '0') && (d
<= '9'))
632 else if ((d
>= 'a') && (d
<= 'f'))
633 uu
|= (d
- ('a'-10));
642 Pack 'void *' into a string buffer.
645 SWIG_PackVoidPtr(char *buff
, void *ptr
, const char *name
, size_t bsz
) {
647 if ((2*sizeof(void *) + 2) > bsz
) return 0;
649 r
= SWIG_PackData(r
,&ptr
,sizeof(void *));
650 if (strlen(name
) + 1 > (bsz
- (r
- buff
))) return 0;
655 SWIGRUNTIME
const char *
656 SWIG_UnpackVoidPtr(const char *c
, void **ptr
, const char *name
) {
658 if (strcmp(c
,"NULL") == 0) {
665 return SWIG_UnpackData(++c
,ptr
,sizeof(void *));
669 SWIG_PackDataName(char *buff
, void *ptr
, size_t sz
, const char *name
, size_t bsz
) {
671 size_t lname
= (name
? strlen(name
) : 0);
672 if ((2*sz
+ 2 + lname
) > bsz
) return 0;
674 r
= SWIG_PackData(r
,ptr
,sz
);
676 strncpy(r
,name
,lname
+1);
683 SWIGRUNTIME
const char *
684 SWIG_UnpackDataName(const char *c
, void *ptr
, size_t sz
, const char *name
) {
686 if (strcmp(c
,"NULL") == 0) {
693 return SWIG_UnpackData(++c
,ptr
,sz
);
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
717 /* Python.h has to appear first */
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
725 # define PyOS_snprintf snprintf
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
737 PyString_FromFormat(const char *fmt
, ...) {
739 char buf
[SWIG_PYBUFFER_SIZE
* 2];
742 res
= vsnprintf(buf
, sizeof(buf
), fmt
, ap
);
744 return (res
< 0 || res
>= (int)sizeof(buf
)) ? 0 : PyString_FromString(buf
);
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
753 # define PyObject_DEL PyObject_Del
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
791 PyObject
*PyBool_FromLong(long ok
)
793 PyObject
*result
= ok
? Py_True
: Py_False
;
800 /* -----------------------------------------------------------------------------
802 * ----------------------------------------------------------------------------- */
804 SWIGRUNTIME PyObject
*
805 SWIG_Python_ErrorType(int code
) {
808 case SWIG_MemoryError
:
809 type
= PyExc_MemoryError
;
812 type
= PyExc_IOError
;
814 case SWIG_RuntimeError
:
815 type
= PyExc_RuntimeError
;
817 case SWIG_IndexError
:
818 type
= PyExc_IndexError
;
821 type
= PyExc_TypeError
;
823 case SWIG_DivisionByZero
:
824 type
= PyExc_ZeroDivisionError
;
826 case SWIG_OverflowError
:
827 type
= PyExc_OverflowError
;
829 case SWIG_SyntaxError
:
830 type
= PyExc_SyntaxError
;
832 case SWIG_ValueError
:
833 type
= PyExc_ValueError
;
835 case SWIG_SystemError
:
836 type
= PyExc_SystemError
;
838 case SWIG_AttributeError
:
839 type
= PyExc_AttributeError
;
842 type
= PyExc_RuntimeError
;
849 SWIG_Python_AddErrorMsg(const char* mesg
)
853 PyObject
*traceback
= 0;
855 if (PyErr_Occurred()) PyErr_Fetch(&type
, &value
, &traceback
);
857 PyObject
*old_str
= PyObject_Str(value
);
860 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
864 PyErr_Format(PyExc_RuntimeError
, mesg
);
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block
{
888 PyGILState_STATE state
;
890 void end() { if (status
) { PyGILState_Release(state
); status
= false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
894 class SWIG_Python_Thread_Allow
{
898 void end() { if (status
) { PyEval_RestoreThread(save
); status
= false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
956 /* Constant information structure */
957 typedef struct swig_const_info
{
963 swig_type_info
**ptype
;
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
984 * ----------------------------------------------------------------------------- */
986 /* Common SWIG API */
988 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1027 /* Runtime API implementation */
1029 /* Error manipulation */
1032 SWIG_Python_SetErrorObj(PyObject
*errtype
, PyObject
*obj
) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
1034 PyErr_SetObject(errtype
, obj
);
1036 SWIG_PYTHON_THREAD_END_BLOCK
;
1040 SWIG_Python_SetErrorMsg(PyObject
*errtype
, const char *msg
) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK
;
1042 PyErr_SetString(errtype
, (char *) msg
);
1043 SWIG_PYTHON_THREAD_END_BLOCK
;
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1048 /* Set a constant value */
1051 SWIG_Python_SetConstant(PyObject
*d
, const char *name
, PyObject
*obj
) {
1052 PyDict_SetItemString(d
, (char*) name
, obj
);
1056 /* Append a value to the result obj */
1058 SWIGINTERN PyObject
*
1059 SWIG_Python_AppendOutput(PyObject
* result
, PyObject
* obj
) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1063 } else if (result
== Py_None
) {
1067 if (!PyList_Check(result
)) {
1068 PyObject
*o2
= result
;
1069 result
= PyList_New(1);
1070 PyList_SetItem(result
, 0, o2
);
1072 PyList_Append(result
,obj
);
1081 } else if (result
== Py_None
) {
1085 if (!PyTuple_Check(result
)) {
1087 result
= PyTuple_New(1);
1088 PyTuple_SET_ITEM(result
, 0, o2
);
1090 o3
= PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3
, 0, obj
);
1093 result
= PySequence_Concat(o2
, o3
);
1101 /* Unpack the argument tuple */
1104 SWIG_Python_UnpackTuple(PyObject
*args
, const char *name
, int min
, int max
, PyObject
**objs
)
1110 PyErr_Format(PyExc_TypeError
, "%s expected %s%d arguments, got none",
1111 name
, (min
== max
? "" : "at least "), min
);
1115 if (!PyTuple_Check(args
)) {
1116 PyErr_SetString(PyExc_SystemError
, "UnpackTuple() argument list is not a tuple");
1119 register int l
= PyTuple_GET_SIZE(args
);
1121 PyErr_Format(PyExc_TypeError
, "%s expected %s%d arguments, got %d",
1122 name
, (min
== max
? "" : "at least "), min
, l
);
1124 } else if (l
> max
) {
1125 PyErr_Format(PyExc_TypeError
, "%s expected %s%d arguments, got %d",
1126 name
, (min
== max
? "" : "at most "), max
, l
);
1130 for (i
= 0; i
< l
; ++i
) {
1131 objs
[i
] = PyTuple_GET_ITEM(args
, i
);
1133 for (; l
< max
; ++l
) {
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1153 #define SWIG_STATIC_POINTER(var) var
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1187 # define Py_None SWIG_Py_None()
1189 SWIGRUNTIMEINLINE PyObject
*
1192 PyObject
*none
= Py_BuildValue("");
1196 SWIGRUNTIME PyObject
*
1199 static PyObject
*SWIG_STATIC_POINTER(none
) = _SWIG_Py_None();
1204 /* The python void return value */
1206 SWIGRUNTIMEINLINE PyObject
*
1209 PyObject
*none
= Py_None
;
1214 /* PySwigClientData */
1225 SWIGRUNTIMEINLINE
int
1226 SWIG_Python_CheckImplicit(swig_type_info
*ty
)
1228 PySwigClientData
*data
= (PySwigClientData
*)ty
->clientdata
;
1229 return data
? data
->implicitconv
: 0;
1232 SWIGRUNTIMEINLINE PyObject
*
1233 SWIG_Python_ExceptionType(swig_type_info
*desc
) {
1234 PySwigClientData
*data
= desc
? (PySwigClientData
*) desc
->clientdata
: 0;
1235 PyObject
*klass
= data
? data
->klass
: 0;
1236 return (klass
? klass
: PyExc_RuntimeError
);
1240 SWIGRUNTIME PySwigClientData
*
1241 PySwigClientData_New(PyObject
* obj
)
1246 PySwigClientData
*data
= (PySwigClientData
*)malloc(sizeof(PySwigClientData
));
1247 /* the klass element */
1249 Py_INCREF(data
->klass
);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj
)) {
1253 data
->newargs
= obj
;
1256 #if (PY_VERSION_HEX < 0x02020000)
1259 data
->newraw
= PyObject_GetAttrString(data
->klass
, (char *)"__new__");
1262 Py_INCREF(data
->newraw
);
1263 data
->newargs
= PyTuple_New(1);
1264 PyTuple_SetItem(data
->newargs
, 0, obj
);
1266 data
->newargs
= obj
;
1268 Py_INCREF(data
->newargs
);
1270 /* the destroy method, aka as the C++ delete method */
1271 data
->destroy
= PyObject_GetAttrString(data
->klass
, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1276 if (data
->destroy
) {
1278 Py_INCREF(data
->destroy
);
1279 flags
= PyCFunction_GET_FLAGS(data
->destroy
);
1281 data
->delargs
= !(flags
& (METH_O
));
1288 data
->implicitconv
= 0;
1294 PySwigClientData_Del(PySwigClientData
* data
)
1296 Py_XDECREF(data
->newraw
);
1297 Py_XDECREF(data
->newargs
);
1298 Py_XDECREF(data
->destroy
);
1301 /* =============== PySwigObject =====================*/
1311 SWIGRUNTIME PyObject
*
1312 PySwigObject_long(PySwigObject
*v
)
1314 return PyLong_FromVoidPtr(v
->ptr
);
1317 SWIGRUNTIME PyObject
*
1318 PySwigObject_format(const char* fmt
, PySwigObject
*v
)
1320 PyObject
*res
= NULL
;
1321 PyObject
*args
= PyTuple_New(1);
1323 if (PyTuple_SetItem(args
, 0, PySwigObject_long(v
)) == 0) {
1324 PyObject
*ofmt
= PyString_FromString(fmt
);
1326 res
= PyString_Format(ofmt
,args
);
1335 SWIGRUNTIME PyObject
*
1336 PySwigObject_oct(PySwigObject
*v
)
1338 return PySwigObject_format("%o",v
);
1341 SWIGRUNTIME PyObject
*
1342 PySwigObject_hex(PySwigObject
*v
)
1344 return PySwigObject_format("%x",v
);
1347 SWIGRUNTIME PyObject
*
1349 PySwigObject_repr(PySwigObject
*v
)
1351 PySwigObject_repr(PySwigObject
*v
, PyObject
*args
)
1354 const char *name
= SWIG_TypePrettyName(v
->ty
);
1355 PyObject
*hex
= PySwigObject_hex(v
);
1356 PyObject
*repr
= PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name
, PyString_AsString(hex
));
1360 PyObject
*nrep
= PySwigObject_repr((PySwigObject
*)v
->next
);
1362 PyObject
*nrep
= PySwigObject_repr((PySwigObject
*)v
->next
, args
);
1364 PyString_ConcatAndDel(&repr
,nrep
);
1370 PySwigObject_print(PySwigObject
*v
, FILE *fp
, int SWIGUNUSEDPARM(flags
))
1373 PyObject
*repr
= PySwigObject_repr(v
);
1375 PyObject
*repr
= PySwigObject_repr(v
, NULL
);
1378 fputs(PyString_AsString(repr
), fp
);
1386 SWIGRUNTIME PyObject
*
1387 PySwigObject_str(PySwigObject
*v
)
1389 char result
[SWIG_BUFFER_SIZE
];
1390 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->ty
->name
, sizeof(result
)) ?
1391 PyString_FromString(result
) : 0;
1395 PySwigObject_compare(PySwigObject
*v
, PySwigObject
*w
)
1399 return (i
< j
) ? -1 : ((i
> j
) ? 1 : 0);
1402 SWIGRUNTIME PyTypeObject
* _PySwigObject_type(void);
1404 SWIGRUNTIME PyTypeObject
*
1405 PySwigObject_type(void) {
1406 static PyTypeObject
*SWIG_STATIC_POINTER(type
) = _PySwigObject_type();
1410 SWIGRUNTIMEINLINE
int
1411 PySwigObject_Check(PyObject
*op
) {
1412 return ((op
)->ob_type
== PySwigObject_type())
1413 || (strcmp((op
)->ob_type
->tp_name
,"PySwigObject") == 0);
1416 SWIGRUNTIME PyObject
*
1417 PySwigObject_New(void *ptr
, swig_type_info
*ty
, int own
);
1420 PySwigObject_dealloc(PyObject
*v
)
1422 PySwigObject
*sobj
= (PySwigObject
*) v
;
1423 PyObject
*next
= sobj
->next
;
1425 swig_type_info
*ty
= sobj
->ty
;
1426 PySwigClientData
*data
= ty
? (PySwigClientData
*) ty
->clientdata
: 0;
1427 PyObject
*destroy
= data
? data
->destroy
: 0;
1429 /* destroy is always a VARARGS method */
1431 if (data
->delargs
) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject
*tmp
= PySwigObject_New(sobj
->ptr
, ty
, 0);
1434 res
= SWIG_Python_CallFunctor(destroy
, tmp
);
1437 PyCFunction meth
= PyCFunction_GET_FUNCTION(destroy
);
1438 PyObject
*mself
= PyCFunction_GET_SELF(destroy
);
1439 res
= ((*meth
)(mself
, v
));
1443 const char *name
= SWIG_TypePrettyName(ty
);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name
);
1453 SWIGRUNTIME PyObject
*
1454 PySwigObject_append(PyObject
* v
, PyObject
* next
)
1456 PySwigObject
*sobj
= (PySwigObject
*) v
;
1459 if (!PyArg_ParseTuple(next
,(char *)"O:append", &tmp
)) return NULL
;
1462 if (!PySwigObject_Check(next
)) {
1467 return SWIG_Py_Void();
1470 SWIGRUNTIME PyObject
*
1472 PySwigObject_next(PyObject
* v
)
1474 PySwigObject_next(PyObject
* v
, PyObject
*SWIGUNUSEDPARM(args
))
1477 PySwigObject
*sobj
= (PySwigObject
*) v
;
1479 Py_INCREF(sobj
->next
);
1482 return SWIG_Py_Void();
1486 SWIGINTERN PyObject
*
1488 PySwigObject_disown(PyObject
*v
)
1490 PySwigObject_disown(PyObject
* v
, PyObject
*SWIGUNUSEDPARM(args
))
1493 PySwigObject
*sobj
= (PySwigObject
*)v
;
1495 return SWIG_Py_Void();
1498 SWIGINTERN PyObject
*
1500 PySwigObject_acquire(PyObject
*v
)
1502 PySwigObject_acquire(PyObject
* v
, PyObject
*SWIGUNUSEDPARM(args
))
1505 PySwigObject
*sobj
= (PySwigObject
*)v
;
1506 sobj
->own
= SWIG_POINTER_OWN
;
1507 return SWIG_Py_Void();
1510 SWIGINTERN PyObject
*
1511 PySwigObject_own(PyObject
*v
, PyObject
*args
)
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args
,(char *)"|O:own",&val
))
1517 if (!PyArg_UnpackTuple(args
, (char *)"own", 0, 1, &val
))
1524 PySwigObject
*sobj
= (PySwigObject
*)v
;
1525 PyObject
*obj
= PyBool_FromLong(sobj
->own
);
1528 if (PyObject_IsTrue(val
)) {
1529 PySwigObject_acquire(v
);
1531 PySwigObject_disown(v
);
1534 if (PyObject_IsTrue(val
)) {
1535 PySwigObject_acquire(v
,args
);
1537 PySwigObject_disown(v
,args
);
1547 swigobject_methods
[] = {
1548 {(char *)"disown", (PyCFunction
)PySwigObject_disown
, METH_NOARGS
, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction
)PySwigObject_acquire
, METH_NOARGS
, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction
)PySwigObject_own
, METH_VARARGS
, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction
)PySwigObject_append
, METH_O
, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction
)PySwigObject_next
, METH_NOARGS
, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction
)PySwigObject_repr
, METH_NOARGS
, (char *)"returns object representation"},
1558 swigobject_methods
[] = {
1559 {(char *)"disown", (PyCFunction
)PySwigObject_disown
, METH_VARARGS
, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction
)PySwigObject_acquire
, METH_VARARGS
, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction
)PySwigObject_own
, METH_VARARGS
, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction
)PySwigObject_append
, METH_VARARGS
, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction
)PySwigObject_next
, METH_VARARGS
, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction
)PySwigObject_repr
, METH_VARARGS
, (char *)"returns object representation"},
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject
*
1571 PySwigObject_getattr(PySwigObject
*sobj
,char *name
)
1573 return Py_FindMethod(swigobject_methods
, (PyObject
*)sobj
, name
);
1577 SWIGRUNTIME PyTypeObject
*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc
[] = "Swig object carries a C/C++ instance pointer";
1581 static PyNumberMethods PySwigObject_as_number
= {
1582 (binaryfunc
)0, /*nb_add*/
1583 (binaryfunc
)0, /*nb_subtract*/
1584 (binaryfunc
)0, /*nb_multiply*/
1585 (binaryfunc
)0, /*nb_divide*/
1586 (binaryfunc
)0, /*nb_remainder*/
1587 (binaryfunc
)0, /*nb_divmod*/
1588 (ternaryfunc
)0,/*nb_power*/
1589 (unaryfunc
)0, /*nb_negative*/
1590 (unaryfunc
)0, /*nb_positive*/
1591 (unaryfunc
)0, /*nb_absolute*/
1592 (inquiry
)0, /*nb_nonzero*/
1599 (coercion
)0, /*nb_coerce*/
1600 (unaryfunc
)PySwigObject_long
, /*nb_int*/
1601 (unaryfunc
)PySwigObject_long
, /*nb_long*/
1602 (unaryfunc
)0, /*nb_float*/
1603 (unaryfunc
)PySwigObject_oct
, /*nb_oct*/
1604 (unaryfunc
)PySwigObject_hex
, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1612 static PyTypeObject pyswigobject_type
;
1613 static int type_init
= 0;
1615 const PyTypeObject tmp
1617 PyObject_HEAD_INIT(NULL
)
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject
), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor
)PySwigObject_dealloc
, /* tp_dealloc */
1623 (printfunc
)PySwigObject_print
, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc
)PySwigObject_getattr
, /* tp_getattr */
1627 (getattrfunc
)0, /* tp_getattr */
1629 (setattrfunc
)0, /* tp_setattr */
1630 (cmpfunc
)PySwigObject_compare
, /* tp_compare */
1631 (reprfunc
)PySwigObject_repr
, /* tp_repr */
1632 &PySwigObject_as_number
, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc
)0, /* tp_hash */
1636 (ternaryfunc
)0, /* tp_call */
1637 (reprfunc
)PySwigObject_str
, /* tp_str */
1638 PyObject_GenericGetAttr
, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT
, /* tp_flags */
1642 swigobject_doc
, /* tp_doc */
1643 0, /* tp_traverse */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1649 0, /* tp_iternext */
1650 swigobject_methods
, /* tp_methods */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1669 #if PY_VERSION_HEX >= 0x02030000
1673 0,0,0,0 /* tp_alloc -> tp_next */
1676 pyswigobject_type
= tmp
;
1677 pyswigobject_type
.ob_type
= &PyType_Type
;
1680 return &pyswigobject_type
;
1683 SWIGRUNTIME PyObject
*
1684 PySwigObject_New(void *ptr
, swig_type_info
*ty
, int own
)
1686 PySwigObject
*sobj
= PyObject_NEW(PySwigObject
, PySwigObject_type());
1693 return (PyObject
*)sobj
;
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1708 PySwigPacked_print(PySwigPacked
*v
, FILE *fp
, int SWIGUNUSEDPARM(flags
))
1710 char result
[SWIG_BUFFER_SIZE
];
1711 fputs("<Swig Packed ", fp
);
1712 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
1716 fputs(v
->ty
->name
,fp
);
1721 SWIGRUNTIME PyObject
*
1722 PySwigPacked_repr(PySwigPacked
*v
)
1724 char result
[SWIG_BUFFER_SIZE
];
1725 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result
, v
->ty
->name
);
1728 return PyString_FromFormat("<Swig Packed %s>", v
->ty
->name
);
1732 SWIGRUNTIME PyObject
*
1733 PySwigPacked_str(PySwigPacked
*v
)
1735 char result
[SWIG_BUFFER_SIZE
];
1736 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))){
1737 return PyString_FromFormat("%s%s", result
, v
->ty
->name
);
1739 return PyString_FromString(v
->ty
->name
);
1744 PySwigPacked_compare(PySwigPacked
*v
, PySwigPacked
*w
)
1748 int s
= (i
< j
) ? -1 : ((i
> j
) ? 1 : 0);
1749 return s
? s
: strncmp((char *)v
->pack
, (char *)w
->pack
, 2*v
->size
);
1752 SWIGRUNTIME PyTypeObject
* _PySwigPacked_type(void);
1754 SWIGRUNTIME PyTypeObject
*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject
*SWIG_STATIC_POINTER(type
) = _PySwigPacked_type();
1760 SWIGRUNTIMEINLINE
int
1761 PySwigPacked_Check(PyObject
*op
) {
1762 return ((op
)->ob_type
== _PySwigPacked_type())
1763 || (strcmp((op
)->ob_type
->tp_name
,"PySwigPacked") == 0);
1767 PySwigPacked_dealloc(PyObject
*v
)
1769 if (PySwigPacked_Check(v
)) {
1770 PySwigPacked
*sobj
= (PySwigPacked
*) v
;
1776 SWIGRUNTIME PyTypeObject
*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc
[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type
;
1780 static int type_init
= 0;
1782 const PyTypeObject tmp
1784 PyObject_HEAD_INIT(NULL
)
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked
), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor
)PySwigPacked_dealloc
, /* tp_dealloc */
1790 (printfunc
)PySwigPacked_print
, /* tp_print */
1791 (getattrfunc
)0, /* tp_getattr */
1792 (setattrfunc
)0, /* tp_setattr */
1793 (cmpfunc
)PySwigPacked_compare
, /* tp_compare */
1794 (reprfunc
)PySwigPacked_repr
, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc
)0, /* tp_hash */
1799 (ternaryfunc
)0, /* tp_call */
1800 (reprfunc
)PySwigPacked_str
, /* tp_str */
1801 PyObject_GenericGetAttr
, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT
, /* tp_flags */
1805 swigpacked_doc
, /* tp_doc */
1806 0, /* tp_traverse */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1812 0, /* tp_iternext */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1832 #if PY_VERSION_HEX >= 0x02030000
1836 0,0,0,0 /* tp_alloc -> tp_next */
1839 pyswigpacked_type
= tmp
;
1840 pyswigpacked_type
.ob_type
= &PyType_Type
;
1843 return &pyswigpacked_type
;
1846 SWIGRUNTIME PyObject
*
1847 PySwigPacked_New(void *ptr
, size_t size
, swig_type_info
*ty
)
1849 PySwigPacked
*sobj
= PyObject_NEW(PySwigPacked
, PySwigPacked_type());
1851 void *pack
= malloc(size
);
1853 memcpy(pack
, ptr
, size
);
1858 PyObject_DEL((PyObject
*) sobj
);
1862 return (PyObject
*) sobj
;
1865 SWIGRUNTIME swig_type_info
*
1866 PySwigPacked_UnpackData(PyObject
*obj
, void *ptr
, size_t size
)
1868 if (PySwigPacked_Check(obj
)) {
1869 PySwigPacked
*sobj
= (PySwigPacked
*)obj
;
1870 if (sobj
->size
!= size
) return 0;
1871 memcpy(ptr
, sobj
->pack
, size
);
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1882 SWIGRUNTIMEINLINE PyObject
*
1885 return PyString_FromString("this");
1888 SWIGRUNTIME PyObject
*
1891 static PyObject
*SWIG_STATIC_POINTER(swig_this
) = _SWIG_This();
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1897 SWIGRUNTIME PySwigObject
*
1898 SWIG_Python_GetSwigThis(PyObject
*pyobj
)
1900 if (PySwigObject_Check(pyobj
)) {
1901 return (PySwigObject
*) pyobj
;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj
)) {
1906 obj
= _PyInstance_Lookup(pyobj
, SWIG_This());
1908 PyObject
**dictptr
= _PyObject_GetDictPtr(pyobj
);
1909 if (dictptr
!= NULL
) {
1910 PyObject
*dict
= *dictptr
;
1911 obj
= dict
? PyDict_GetItem(dict
, SWIG_This()) : 0;
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj
)) {
1915 PyObject
*wobj
= PyWeakref_GET_OBJECT(pyobj
);
1916 return wobj
? SWIG_Python_GetSwigThis(wobj
) : 0;
1919 obj
= PyObject_GetAttr(pyobj
,SWIG_This());
1923 if (PyErr_Occurred()) PyErr_Clear();
1929 obj
= PyObject_GetAttr(pyobj
,SWIG_This());
1933 if (PyErr_Occurred()) PyErr_Clear();
1937 if (obj
&& !PySwigObject_Check(obj
)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj
);
1942 return (PySwigObject
*)obj
;
1946 /* Acquire a pointer value */
1949 SWIG_Python_AcquirePtr(PyObject
*obj
, int own
) {
1951 PySwigObject
*sobj
= SWIG_Python_GetSwigThis(obj
);
1953 int oldown
= sobj
->own
;
1961 /* Convert a pointer value */
1964 SWIG_Python_ConvertPtrAndOwn(PyObject
*obj
, void **ptr
, swig_type_info
*ty
, int flags
, int *own
) {
1965 if (!obj
) return SWIG_ERROR
;
1966 if (obj
== Py_None
) {
1970 PySwigObject
*sobj
= SWIG_Python_GetSwigThis(obj
);
1972 void *vptr
= sobj
->ptr
;
1974 swig_type_info
*to
= sobj
->ty
;
1976 /* no type cast needed */
1977 if (ptr
) *ptr
= vptr
;
1980 swig_cast_info
*tc
= SWIG_TypeCheck(to
->name
,ty
);
1982 sobj
= (PySwigObject
*)sobj
->next
;
1984 if (ptr
) *ptr
= SWIG_TypeCast(tc
,vptr
);
1989 if (ptr
) *ptr
= vptr
;
1994 if (own
) *own
= sobj
->own
;
1995 if (flags
& SWIG_POINTER_DISOWN
) {
2000 int res
= SWIG_ERROR
;
2001 if (flags
& SWIG_POINTER_IMPLICIT_CONV
) {
2002 PySwigClientData
*data
= ty
? (PySwigClientData
*) ty
->clientdata
: 0;
2003 if (data
&& !data
->implicitconv
) {
2004 PyObject
*klass
= data
->klass
;
2007 data
->implicitconv
= 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv
= SWIG_Python_CallFunctor(klass
, obj
);
2009 data
->implicitconv
= 0;
2010 if (PyErr_Occurred()) {
2015 PySwigObject
*iobj
= SWIG_Python_GetSwigThis(impconv
);
2018 res
= SWIG_Python_ConvertPtrAndOwn((PyObject
*)iobj
, &vptr
, ty
, 0, 0);
2019 if (SWIG_IsOK(res
)) {
2022 /* transfer the ownership to 'ptr' */
2024 res
= SWIG_AddCast(res
);
2025 res
= SWIG_AddNewMask(res
);
2027 res
= SWIG_AddCast(res
);
2041 /* Convert a function ptr value */
2044 SWIG_Python_ConvertFunctionPtr(PyObject
*obj
, void **ptr
, swig_type_info
*ty
) {
2045 if (!PyCFunction_Check(obj
)) {
2046 return SWIG_ConvertPtr(obj
, ptr
, ty
, 0);
2050 /* here we get the method pointer for callbacks */
2051 char *doc
= (((PyCFunctionObject
*)obj
) -> m_ml
-> ml_doc
);
2052 const char *desc
= doc
? strstr(doc
, "swig_ptr: ") : 0;
2054 desc
= ty
? SWIG_UnpackVoidPtr(desc
+ 10, &vptr
, ty
->name
) : 0;
2055 if (!desc
) return SWIG_ERROR
;
2058 swig_cast_info
*tc
= SWIG_TypeCheck(desc
,ty
);
2059 if (!tc
) return SWIG_ERROR
;
2060 *ptr
= SWIG_TypeCast(tc
,vptr
);
2068 /* Convert a packed value value */
2071 SWIG_Python_ConvertPacked(PyObject
*obj
, void *ptr
, size_t sz
, swig_type_info
*ty
) {
2072 swig_type_info
*to
= PySwigPacked_UnpackData(obj
, ptr
, sz
);
2073 if (!to
) return SWIG_ERROR
;
2076 /* check type cast? */
2077 swig_cast_info
*tc
= SWIG_TypeCheck(to
->name
,ty
);
2078 if (!tc
) return SWIG_ERROR
;
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2089 Create a new instance object, whitout calling __init__, and set the
2093 SWIGRUNTIME PyObject
*
2094 SWIG_Python_NewShadowInstance(PySwigClientData
*data
, PyObject
*swig_this
)
2096 #if (PY_VERSION_HEX >= 0x02020000)
2098 PyObject
*newraw
= data
->newraw
;
2100 inst
= PyObject_Call(newraw
, data
->newargs
, NULL
);
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject
**dictptr
= _PyObject_GetDictPtr(inst
);
2104 if (dictptr
!= NULL
) {
2105 PyObject
*dict
= *dictptr
;
2107 dict
= PyDict_New();
2109 PyDict_SetItem(dict
, SWIG_This(), swig_this
);
2113 PyObject
*key
= SWIG_This();
2114 PyObject_SetAttr(inst
, key
, swig_this
);
2118 PyObject
*dict
= PyDict_New();
2119 PyDict_SetItem(dict
, SWIG_This(), swig_this
);
2120 inst
= PyInstance_NewRaw(data
->newargs
, dict
);
2125 #if (PY_VERSION_HEX >= 0x02010000)
2127 PyObject
*dict
= PyDict_New();
2128 PyDict_SetItem(dict
, SWIG_This(), swig_this
);
2129 inst
= PyInstance_NewRaw(data
->newargs
, dict
);
2131 return (PyObject
*) inst
;
2133 PyInstanceObject
*inst
= PyObject_NEW(PyInstanceObject
, &PyInstance_Type
);
2137 inst
->in_class
= (PyClassObject
*)data
->newargs
;
2138 Py_INCREF(inst
->in_class
);
2139 inst
->in_dict
= PyDict_New();
2140 if (inst
->in_dict
== NULL
) {
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst
->in_weakreflist
= NULL
;
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst
);
2150 PyDict_SetItem(inst
->in_dict
, SWIG_This(), swig_this
);
2151 return (PyObject
*) inst
;
2157 SWIG_Python_SetSwigThis(PyObject
*inst
, PyObject
*swig_this
)
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject
**dictptr
= _PyObject_GetDictPtr(inst
);
2162 if (dictptr
!= NULL
) {
2165 dict
= PyDict_New();
2168 PyDict_SetItem(dict
, SWIG_This(), swig_this
);
2172 dict
= PyObject_GetAttrString(inst
, "__dict__");
2173 PyDict_SetItem(dict
, SWIG_This(), swig_this
);
2178 SWIGINTERN PyObject
*
2179 SWIG_Python_InitShadowInstance(PyObject
*args
) {
2181 if (!SWIG_Python_UnpackTuple(args
,(char*)"swiginit", 2, 2, obj
)) {
2184 PySwigObject
*sthis
= SWIG_Python_GetSwigThis(obj
[0]);
2186 PySwigObject_append((PyObject
*) sthis
, obj
[1]);
2188 SWIG_Python_SetSwigThis(obj
[0], obj
[1]);
2190 return SWIG_Py_Void();
2194 /* Create a new pointer object */
2196 SWIGRUNTIME PyObject
*
2197 SWIG_Python_NewPointerObj(void *ptr
, swig_type_info
*type
, int flags
) {
2199 return SWIG_Py_Void();
2201 int own
= (flags
& SWIG_POINTER_OWN
) ? SWIG_POINTER_OWN
: 0;
2202 PyObject
*robj
= PySwigObject_New(ptr
, type
, own
);
2203 PySwigClientData
*clientdata
= type
? (PySwigClientData
*)(type
->clientdata
) : 0;
2204 if (clientdata
&& !(flags
& SWIG_POINTER_NOSHADOW
)) {
2205 PyObject
*inst
= SWIG_Python_NewShadowInstance(clientdata
, robj
);
2215 /* Create a new packed object */
2217 SWIGRUNTIMEINLINE PyObject
*
2218 SWIG_Python_NewPackedObj(void *ptr
, size_t sz
, swig_type_info
*type
) {
2219 return ptr
? PySwigPacked_New((void *) ptr
, sz
, type
) : SWIG_Py_Void();
2222 /* -----------------------------------------------------------------------------*
2224 * -----------------------------------------------------------------------------*/
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2230 SWIGRUNTIME swig_module_info
*
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer
= (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer
) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer
= SWIG_ReturnGlobalTypeList((void *)0);
2238 type_pointer
= PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
);
2240 if (PyErr_Occurred()) {
2242 type_pointer
= (void *)0;
2246 return (swig_module_info
*) type_pointer
;
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2253 PyModule_AddObject(PyObject
*m
, char *name
, PyObject
*o
)
2256 if (!PyModule_Check(m
)) {
2257 PyErr_SetString(PyExc_TypeError
,
2258 "PyModule_AddObject() needs module as first arg");
2262 PyErr_SetString(PyExc_TypeError
,
2263 "PyModule_AddObject() needs non-NULL value");
2267 dict
= PyModule_GetDict(m
);
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__",
2271 PyModule_GetName(m
));
2274 if (PyDict_SetItemString(dict
, name
, o
))
2282 SWIG_Python_DestroyModule(void *vptr
)
2284 swig_module_info
*swig_module
= (swig_module_info
*) vptr
;
2285 swig_type_info
**types
= swig_module
->types
;
2287 for (i
=0; i
< swig_module
->size
; ++i
) {
2288 swig_type_info
*ty
= types
[i
];
2290 PySwigClientData
*data
= (PySwigClientData
*) ty
->clientdata
;
2291 if (data
) PySwigClientData_Del(data
);
2294 Py_DECREF(SWIG_This());
2298 SWIG_Python_SetModule(swig_module_info
*swig_module
) {
2299 static PyMethodDef swig_empty_runtime_method_table
[] = { {NULL
, NULL
, 0, NULL
} };/* Sentinel */
2301 PyObject
*module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
2302 swig_empty_runtime_method_table
);
2303 PyObject
*pointer
= PyCObject_FromVoidPtr((void *) swig_module
, SWIG_Python_DestroyModule
);
2304 if (pointer
&& module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
, pointer
);
2307 Py_XDECREF(pointer
);
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject
*
2313 SWIG_Python_TypeCache() {
2314 static PyObject
*SWIG_STATIC_POINTER(cache
) = PyDict_New();
2318 SWIGRUNTIME swig_type_info
*
2319 SWIG_Python_TypeQuery(const char *type
)
2321 PyObject
*cache
= SWIG_Python_TypeCache();
2322 PyObject
*key
= PyString_FromString(type
);
2323 PyObject
*obj
= PyDict_GetItem(cache
, key
);
2324 swig_type_info
*descriptor
;
2326 descriptor
= (swig_type_info
*) PyCObject_AsVoidPtr(obj
);
2328 swig_module_info
*swig_module
= SWIG_Python_GetModule();
2329 descriptor
= SWIG_TypeQueryModule(swig_module
, swig_module
, type
);
2331 obj
= PyCObject_FromVoidPtr(descriptor
, NULL
);
2332 PyDict_SetItem(cache
, key
, obj
);
2341 For backward compatibility only
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2348 SWIG_Python_AddErrMesg(const char* mesg
, int infront
)
2350 if (PyErr_Occurred()) {
2352 PyObject
*value
= 0;
2353 PyObject
*traceback
= 0;
2354 PyErr_Fetch(&type
, &value
, &traceback
);
2356 PyObject
*old_str
= PyObject_Str(value
);
2360 PyErr_Format(type
, "%s %s", mesg
, PyString_AsString(old_str
));
2362 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
2373 SWIG_Python_ArgFail(int argnum
)
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2378 PyOS_snprintf(mesg
, sizeof(mesg
), "argument number %d:", argnum
);
2379 return SWIG_Python_AddErrMesg(mesg
, 1);
2385 SWIGRUNTIMEINLINE
const char *
2386 PySwigObject_GetDesc(PyObject
*self
)
2388 PySwigObject
*v
= (PySwigObject
*)self
;
2389 swig_type_info
*ty
= v
? v
->ty
: 0;
2390 return ty
? ty
->str
: (char*)"";
2394 SWIG_Python_TypeError(const char *type
, PyObject
*obj
)
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj
&& PySwigObject_Check(obj
)) {
2399 const char *otype
= (const char *) PySwigObject_GetDesc(obj
);
2401 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, 'PySwigObject(%s)' is received",
2408 const char *otype
= (obj
? obj
->ob_type
->tp_name
: 0);
2410 PyObject
*str
= PyObject_Str(obj
);
2411 const char *cstr
= str
? PyString_AsString(str
) : 0;
2413 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s(%s)' is received",
2416 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s' is received",
2423 PyErr_Format(PyExc_TypeError
, "a '%s' is expected", type
);
2425 PyErr_Format(PyExc_TypeError
, "unexpected type is received");
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2432 SWIG_Python_MustGetPtr(PyObject
*obj
, swig_type_info
*ty
, int argnum
, int flags
) {
2434 if (SWIG_Python_ConvertPtr(obj
, &result
, ty
, flags
) == -1) {
2436 if (flags
& SWIG_POINTER_EXCEPTION
) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
2438 SWIG_Python_ArgFail(argnum
);
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2462 #define SWIGTYPE_p_char swig_types[0]
2463 #define SWIGTYPE_p_form_ops_t swig_types[1]
2464 #define SWIGTYPE_p_int swig_types[2]
2465 #define SWIGTYPE_p_unsigned_char swig_types[3]
2466 #define SWIGTYPE_p_unsigned_int swig_types[4]
2467 #define SWIGTYPE_p_unsigned_long swig_types[5]
2468 #define SWIGTYPE_p_wxANIHandler swig_types[6]
2469 #define SWIGTYPE_p_wxAcceleratorTable swig_types[7]
2470 #define SWIGTYPE_p_wxActivateEvent swig_types[8]
2471 #define SWIGTYPE_p_wxArtClient swig_types[9]
2472 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
2473 #define SWIGTYPE_p_wxBitmap swig_types[11]
2474 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
2475 #define SWIGTYPE_p_wxCURHandler swig_types[13]
2476 #define SWIGTYPE_p_wxChar swig_types[14]
2477 #define SWIGTYPE_p_wxChildFocusEvent swig_types[15]
2478 #define SWIGTYPE_p_wxCloseEvent swig_types[16]
2479 #define SWIGTYPE_p_wxColour swig_types[17]
2480 #define SWIGTYPE_p_wxCommandEvent swig_types[18]
2481 #define SWIGTYPE_p_wxContextMenuEvent swig_types[19]
2482 #define SWIGTYPE_p_wxControl swig_types[20]
2483 #define SWIGTYPE_p_wxControlWithItems swig_types[21]
2484 #define SWIGTYPE_p_wxDateEvent swig_types[22]
2485 #define SWIGTYPE_p_wxDialog swig_types[23]
2486 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[24]
2487 #define SWIGTYPE_p_wxDropFilesEvent swig_types[25]
2488 #define SWIGTYPE_p_wxDuplexMode swig_types[26]
2489 #define SWIGTYPE_p_wxEraseEvent swig_types[27]
2490 #define SWIGTYPE_p_wxEvent swig_types[28]
2491 #define SWIGTYPE_p_wxEvtHandler swig_types[29]
2492 #define SWIGTYPE_p_wxFSFile swig_types[30]
2493 #define SWIGTYPE_p_wxFileSystem swig_types[31]
2494 #define SWIGTYPE_p_wxFlexGridSizer swig_types[32]
2495 #define SWIGTYPE_p_wxFocusEvent swig_types[33]
2496 #define SWIGTYPE_p_wxFont swig_types[34]
2497 #define SWIGTYPE_p_wxFrame swig_types[35]
2498 #define SWIGTYPE_p_wxGBSizerItem swig_types[36]
2499 #define SWIGTYPE_p_wxGIFHandler swig_types[37]
2500 #define SWIGTYPE_p_wxGridBagSizer swig_types[38]
2501 #define SWIGTYPE_p_wxGridSizer swig_types[39]
2502 #define SWIGTYPE_p_wxICOHandler swig_types[40]
2503 #define SWIGTYPE_p_wxIcon swig_types[41]
2504 #define SWIGTYPE_p_wxIconizeEvent swig_types[42]
2505 #define SWIGTYPE_p_wxIdleEvent swig_types[43]
2506 #define SWIGTYPE_p_wxImage swig_types[44]
2507 #define SWIGTYPE_p_wxImageHandler swig_types[45]
2508 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[46]
2509 #define SWIGTYPE_p_wxInitDialogEvent swig_types[47]
2510 #define SWIGTYPE_p_wxInputStream swig_types[48]
2511 #define SWIGTYPE_p_wxJPEGHandler swig_types[49]
2512 #define SWIGTYPE_p_wxKeyEvent swig_types[50]
2513 #define SWIGTYPE_p_wxLayoutConstraints swig_types[51]
2514 #define SWIGTYPE_p_wxMaximizeEvent swig_types[52]
2515 #define SWIGTYPE_p_wxMenu swig_types[53]
2516 #define SWIGTYPE_p_wxMenuBar swig_types[54]
2517 #define SWIGTYPE_p_wxMenuEvent swig_types[55]
2518 #define SWIGTYPE_p_wxMenuItem swig_types[56]
2519 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[57]
2520 #define SWIGTYPE_p_wxMouseEvent swig_types[58]
2521 #define SWIGTYPE_p_wxMoveEvent swig_types[59]
2522 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[60]
2523 #define SWIGTYPE_p_wxNcPaintEvent swig_types[61]
2524 #define SWIGTYPE_p_wxNotifyEvent swig_types[62]
2525 #define SWIGTYPE_p_wxObject swig_types[63]
2526 #define SWIGTYPE_p_wxOutputStream swig_types[64]
2527 #define SWIGTYPE_p_wxPCXHandler swig_types[65]
2528 #define SWIGTYPE_p_wxPNGHandler swig_types[66]
2529 #define SWIGTYPE_p_wxPNMHandler swig_types[67]
2530 #define SWIGTYPE_p_wxPaintEvent swig_types[68]
2531 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[69]
2532 #define SWIGTYPE_p_wxPanel swig_types[70]
2533 #define SWIGTYPE_p_wxPaperSize swig_types[71]
2534 #define SWIGTYPE_p_wxPoint swig_types[72]
2535 #define SWIGTYPE_p_wxPyApp swig_types[73]
2536 #define SWIGTYPE_p_wxPyCommandEvent swig_types[74]
2537 #define SWIGTYPE_p_wxPyEvent swig_types[75]
2538 #define SWIGTYPE_p_wxPyImageHandler swig_types[76]
2539 #define SWIGTYPE_p_wxPySizer swig_types[77]
2540 #define SWIGTYPE_p_wxPyValidator swig_types[78]
2541 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[79]
2542 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[80]
2543 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[81]
2544 #define SWIGTYPE_p_wxScrollEvent swig_types[82]
2545 #define SWIGTYPE_p_wxScrollWinEvent swig_types[83]
2546 #define SWIGTYPE_p_wxSetCursorEvent swig_types[84]
2547 #define SWIGTYPE_p_wxShowEvent swig_types[85]
2548 #define SWIGTYPE_p_wxSize swig_types[86]
2549 #define SWIGTYPE_p_wxSizeEvent swig_types[87]
2550 #define SWIGTYPE_p_wxSizer swig_types[88]
2551 #define SWIGTYPE_p_wxSizerItem swig_types[89]
2552 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[90]
2553 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[91]
2554 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[92]
2555 #define SWIGTYPE_p_wxTIFFHandler swig_types[93]
2556 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[94]
2557 #define SWIGTYPE_p_wxValidator swig_types[95]
2558 #define SWIGTYPE_p_wxWindow swig_types[96]
2559 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[97]
2560 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[98]
2561 #define SWIGTYPE_p_wxXPMHandler swig_types[99]
2562 #define SWIGTYPE_p_wxXmlDocument swig_types[100]
2563 #define SWIGTYPE_p_wxXmlNode swig_types[101]
2564 #define SWIGTYPE_p_wxXmlProperty swig_types[102]
2565 #define SWIGTYPE_p_wxXmlResource swig_types[103]
2566 static swig_type_info
*swig_types
[105];
2567 static swig_module_info swig_module
= {swig_types
, 104, 0, 0, 0, 0};
2568 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2569 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2571 /* -------- TYPES TABLE (END) -------- */
2573 #if (PY_VERSION_HEX <= 0x02000000)
2574 # if !defined(SWIG_PYTHON_CLASSIC)
2575 # error "This python version requires to use swig with the '-classic' option"
2578 #if (PY_VERSION_HEX <= 0x02020000)
2579 # error "This python version requires to use swig with the '-nomodern' option"
2581 #if (PY_VERSION_HEX <= 0x02020000)
2582 # error "This python version requires to use swig with the '-nomodernargs' option"
2585 # error "This python version requires to use swig with the '-nofastunpack' option"
2588 /*-----------------------------------------------
2590 ------------------------------------------------*/
2591 #define SWIG_init init_xrc
2593 #define SWIG_name "_xrc"
2595 #define SWIGVERSION 0x010329
2598 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2599 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2602 #include <stdexcept>
2606 class PyObject_ptr
{
2611 PyObject_ptr() :_obj(0)
2615 PyObject_ptr(const PyObject_ptr
& item
) : _obj(item
._obj
)
2620 PyObject_ptr(PyObject
*obj
, bool initial_ref
= true) :_obj(obj
)
2622 if (initial_ref
) Py_XINCREF(_obj
);
2625 PyObject_ptr
& operator=(const PyObject_ptr
& item
)
2627 Py_XINCREF(item
._obj
);
2638 operator PyObject
*() const
2643 PyObject
*operator->() const
2652 struct PyObject_var
: PyObject_ptr
{
2653 PyObject_var(PyObject
* obj
= 0) : PyObject_ptr(obj
, false) { }
2655 PyObject_var
& operator = (PyObject
* obj
)
2665 #include "wx/wxPython/wxPython.h"
2666 #include "wx/wxPython/pyclasses.h"
2667 #include "wx/wxPython/pyistream.h"
2669 #include <wx/xml/xml.h>
2670 #include <wx/xrc/xmlres.h>
2672 static const wxString
wxPyEmptyString(wxEmptyString
);
2673 static const wxString
wxPyUTF8String(wxT("UTF-8"));
2674 static const wxString
wxPyStyleString(wxT("style"));
2675 static const wxString
wxPySizeString(wxT("size"));
2676 static const wxString
wxPyPosString(wxT("pos"));
2677 static const wxString
wxPyBitmapString(wxT("bitmap"));
2678 static const wxString
wxPyIconString(wxT("icon"));
2679 static const wxString
wxPyFontString(wxT("font"));
2681 #define SWIG_From_long PyInt_FromLong
2684 SWIGINTERNINLINE PyObject
*
2685 SWIG_From_int (int value
)
2687 return SWIG_From_long (value
);
2693 # define LLONG_MIN LONG_LONG_MIN
2696 # define LLONG_MAX LONG_LONG_MAX
2699 # define ULLONG_MAX ULONG_LONG_MAX
2704 SWIG_AsVal_long (PyObject
* obj
, long* val
)
2706 if (PyNumber_Check(obj
)) {
2707 if (val
) *val
= PyInt_AsLong(obj
);
2710 return SWIG_TypeError
;
2715 SWIG_AsVal_int (PyObject
* obj
, int *val
)
2718 int res
= SWIG_AsVal_long (obj
, &v
);
2719 if (SWIG_IsOK(res
)) {
2720 if ((v
< INT_MIN
|| v
> INT_MAX
)) {
2721 return SWIG_OverflowError
;
2723 if (val
) *val
= static_cast< int >(v
);
2729 SWIGINTERN
bool wxXmlResource_LoadFromString(wxXmlResource
*self
,wxString
const &data
){
2730 static int s_memFileIdx
= 0;
2732 // Check for memory FS. If not present, load the handler:
2733 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
2736 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
2737 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
2741 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
2743 // Now put the resource data into the memory FS
2744 wxString
filename(wxT("XRC_resource/data_string_"));
2745 filename
<< s_memFileIdx
;
2747 wxMemoryFSHandler::AddFile(filename
, data
);
2749 // Load the "file" into the resource object
2750 bool retval
= self
->Load(wxT("memory:") + filename
);
2755 class wxPyXmlSubclassFactory
: public wxXmlSubclassFactory
2758 wxPyXmlSubclassFactory() {}
2759 DEC_PYCALLBACK_OBJECT_STRING_pure(Create
);
2763 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory
, wxXmlSubclassFactory
, Create
);
2765 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
2766 // callbacks, as well as to make some protected things public so they can
2768 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
2770 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
2771 //~wxPyXmlResourceHandler();
2773 // Base class virtuals
2775 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
2776 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
2779 // accessors for protected members
2781 wxXmlResource
* GetResource() { return m_resource
; }
2782 wxXmlNode
* GetNode() { return m_node
; }
2783 wxString
GetClass() { return m_class
; }
2784 wxObject
* GetParent() { return m_parent
; }
2785 wxObject
* GetInstance() { return m_instance
; }
2786 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
2789 // turn some protected methods into public via delegation
2791 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
2792 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
2794 wxString
GetNodeContent(wxXmlNode
*node
)
2795 { return wxXmlResourceHandler::GetNodeContent(node
); }
2797 bool HasParam(const wxString
& param
)
2798 { return wxXmlResourceHandler::HasParam(param
); }
2800 wxXmlNode
*GetParamNode(const wxString
& param
)
2801 { return wxXmlResourceHandler::GetParamNode(param
); }
2803 wxString
GetParamValue(const wxString
& param
)
2804 { return wxXmlResourceHandler::GetParamValue(param
); }
2806 void AddStyle(const wxString
& name
, int value
)
2807 { wxXmlResourceHandler::AddStyle(name
, value
); }
2809 void AddWindowStyles()
2810 { wxXmlResourceHandler::AddWindowStyles(); }
2812 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
2813 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
2815 wxString
GetText(const wxString
& param
, bool translate
= true)
2816 { return wxXmlResourceHandler::GetText(param
, translate
); }
2819 { return wxXmlResourceHandler::GetID(); }
2822 { return wxXmlResourceHandler::GetName(); }
2824 bool GetBool(const wxString
& param
, bool defaultv
= false)
2825 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
2827 long GetLong( const wxString
& param
, long defaultv
= 0 )
2828 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
2830 wxColour
GetColour(const wxString
& param
)
2831 { return wxXmlResourceHandler::GetColour(param
); }
2833 wxSize
GetSize(const wxString
& param
= wxT("size"))
2834 { return wxXmlResourceHandler::GetSize(param
); }
2836 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
2837 { return wxXmlResourceHandler::GetPosition(param
); }
2839 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
2840 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
2842 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
2843 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
2844 wxSize size
= wxDefaultSize
)
2845 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
2847 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
2848 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
2849 wxSize size
= wxDefaultSize
)
2850 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
2852 wxFont
GetFont(const wxString
& param
= wxT("font"))
2853 { return wxXmlResourceHandler::GetFont(param
); }
2855 void SetupWindow(wxWindow
*wnd
)
2856 { wxXmlResourceHandler::SetupWindow(wnd
); }
2858 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= false)
2859 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
2861 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
2862 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
2864 wxObject
*CreateResFromNode(wxXmlNode
*node
,
2865 wxObject
*parent
, wxObject
*instance
= NULL
)
2866 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
2868 wxFileSystem
& GetCurFileSystem()
2869 { return wxXmlResourceHandler::GetCurFileSystem(); }
2875 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
2876 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
2881 SWIG_AsVal_bool (PyObject
*obj
, bool *val
)
2883 if (obj
== Py_True
) {
2884 if (val
) *val
= true;
2886 } else if (obj
== Py_False
) {
2887 if (val
) *val
= false;
2891 int res
= SWIG_AddCast(SWIG_AsVal_long (obj
, val
? &v
: 0));
2892 if (SWIG_IsOK(res
) && val
) *val
= v
? true : false;
2900 SWIGINTERN
int UTF8String_set(PyObject
*) {
2901 SWIG_Error(SWIG_AttributeError
,"Variable UTF8String is read-only.");
2906 SWIGINTERN PyObject
*UTF8String_get(void) {
2907 PyObject
*pyobj
= 0;
2911 pyobj
= PyUnicode_FromWideChar((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
2913 pyobj
= PyString_FromStringAndSize((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
2920 SWIGINTERN
int StyleString_set(PyObject
*) {
2921 SWIG_Error(SWIG_AttributeError
,"Variable StyleString is read-only.");
2926 SWIGINTERN PyObject
*StyleString_get(void) {
2927 PyObject
*pyobj
= 0;
2931 pyobj
= PyUnicode_FromWideChar((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
2933 pyobj
= PyString_FromStringAndSize((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
2940 SWIGINTERN
int SizeString_set(PyObject
*) {
2941 SWIG_Error(SWIG_AttributeError
,"Variable SizeString is read-only.");
2946 SWIGINTERN PyObject
*SizeString_get(void) {
2947 PyObject
*pyobj
= 0;
2951 pyobj
= PyUnicode_FromWideChar((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
2953 pyobj
= PyString_FromStringAndSize((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
2960 SWIGINTERN
int PosString_set(PyObject
*) {
2961 SWIG_Error(SWIG_AttributeError
,"Variable PosString is read-only.");
2966 SWIGINTERN PyObject
*PosString_get(void) {
2967 PyObject
*pyobj
= 0;
2971 pyobj
= PyUnicode_FromWideChar((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
2973 pyobj
= PyString_FromStringAndSize((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
2980 SWIGINTERN
int BitmapString_set(PyObject
*) {
2981 SWIG_Error(SWIG_AttributeError
,"Variable BitmapString is read-only.");
2986 SWIGINTERN PyObject
*BitmapString_get(void) {
2987 PyObject
*pyobj
= 0;
2991 pyobj
= PyUnicode_FromWideChar((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
2993 pyobj
= PyString_FromStringAndSize((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
3000 SWIGINTERN
int IconString_set(PyObject
*) {
3001 SWIG_Error(SWIG_AttributeError
,"Variable IconString is read-only.");
3006 SWIGINTERN PyObject
*IconString_get(void) {
3007 PyObject
*pyobj
= 0;
3011 pyobj
= PyUnicode_FromWideChar((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
3013 pyobj
= PyString_FromStringAndSize((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
3020 SWIGINTERN
int FontString_set(PyObject
*) {
3021 SWIG_Error(SWIG_AttributeError
,"Variable FontString is read-only.");
3026 SWIGINTERN PyObject
*FontString_get(void) {
3027 PyObject
*pyobj
= 0;
3031 pyobj
= PyUnicode_FromWideChar((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
3033 pyobj
= PyString_FromStringAndSize((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
3040 SWIGINTERN PyObject
*_wrap_new_XmlResource(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3041 PyObject
*resultobj
= 0;
3042 wxString
*arg1
= 0 ;
3043 int arg2
= (int) wxXRC_USE_LOCALE
;
3044 wxXmlResource
*result
= 0 ;
3045 bool temp1
= false ;
3048 PyObject
* obj0
= 0 ;
3049 PyObject
* obj1
= 0 ;
3050 char * kwnames
[] = {
3051 (char *) "filemask",(char *) "flags", NULL
3054 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlResource",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
3056 arg1
= wxString_in_helper(obj0
);
3057 if (arg1
== NULL
) SWIG_fail
;
3061 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
3062 if (!SWIG_IsOK(ecode2
)) {
3063 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_XmlResource" "', expected argument " "2"" of type '" "int""'");
3065 arg2
= static_cast< int >(val2
);
3068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3069 result
= (wxXmlResource
*)new wxXmlResource((wxString
const &)*arg1
,arg2
);
3070 wxPyEndAllowThreads(__tstate
);
3071 if (PyErr_Occurred()) SWIG_fail
;
3073 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_NEW
| 0 );
3088 SWIGINTERN PyObject
*_wrap_new_EmptyXmlResource(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3089 PyObject
*resultobj
= 0;
3090 int arg1
= (int) wxXRC_USE_LOCALE
;
3091 wxXmlResource
*result
= 0 ;
3094 PyObject
* obj0
= 0 ;
3095 char * kwnames
[] = {
3096 (char *) "flags", NULL
3099 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|O:new_EmptyXmlResource",kwnames
,&obj0
)) SWIG_fail
;
3101 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
3102 if (!SWIG_IsOK(ecode1
)) {
3103 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "new_EmptyXmlResource" "', expected argument " "1"" of type '" "int""'");
3105 arg1
= static_cast< int >(val1
);
3108 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3109 result
= (wxXmlResource
*)new wxXmlResource(arg1
);
3110 wxPyEndAllowThreads(__tstate
);
3111 if (PyErr_Occurred()) SWIG_fail
;
3113 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_OWN
| 0 );
3120 SWIGINTERN PyObject
*_wrap_delete_XmlResource(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3121 PyObject
*resultobj
= 0;
3122 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3125 PyObject
*swig_obj
[1] ;
3127 if (!args
) SWIG_fail
;
3129 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_DISOWN
| 0 );
3130 if (!SWIG_IsOK(res1
)) {
3131 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_XmlResource" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3133 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3135 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3138 wxPyEndAllowThreads(__tstate
);
3139 if (PyErr_Occurred()) SWIG_fail
;
3141 resultobj
= SWIG_Py_Void();
3148 SWIGINTERN PyObject
*_wrap_XmlResource_Load(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3149 PyObject
*resultobj
= 0;
3150 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3151 wxString
*arg2
= 0 ;
3155 bool temp2
= false ;
3156 PyObject
* obj0
= 0 ;
3157 PyObject
* obj1
= 0 ;
3158 char * kwnames
[] = {
3159 (char *) "self",(char *) "filemask", NULL
3162 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Load",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
3163 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3164 if (!SWIG_IsOK(res1
)) {
3165 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_Load" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3167 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3169 arg2
= wxString_in_helper(obj1
);
3170 if (arg2
== NULL
) SWIG_fail
;
3174 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3175 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
);
3176 wxPyEndAllowThreads(__tstate
);
3177 if (PyErr_Occurred()) SWIG_fail
;
3180 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3196 SWIGINTERN PyObject
*_wrap_XmlResource_LoadFromString(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3197 PyObject
*resultobj
= 0;
3198 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3199 wxString
*arg2
= 0 ;
3203 bool temp2
= false ;
3204 PyObject
* obj0
= 0 ;
3205 PyObject
* obj1
= 0 ;
3206 char * kwnames
[] = {
3207 (char *) "self",(char *) "data", NULL
3210 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadFromString",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
3211 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3212 if (!SWIG_IsOK(res1
)) {
3213 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_LoadFromString" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3215 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3217 arg2
= wxString_in_helper(obj1
);
3218 if (arg2
== NULL
) SWIG_fail
;
3222 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3223 result
= (bool)wxXmlResource_LoadFromString(arg1
,(wxString
const &)*arg2
);
3224 wxPyEndAllowThreads(__tstate
);
3225 if (PyErr_Occurred()) SWIG_fail
;
3228 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3244 SWIGINTERN PyObject
*_wrap_XmlResource_Unload(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3245 PyObject
*resultobj
= 0;
3246 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3247 wxString
*arg2
= 0 ;
3251 bool temp2
= false ;
3252 PyObject
* obj0
= 0 ;
3253 PyObject
* obj1
= 0 ;
3254 char * kwnames
[] = {
3255 (char *) "self",(char *) "filename", NULL
3258 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Unload",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
3259 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3260 if (!SWIG_IsOK(res1
)) {
3261 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_Unload" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3263 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3265 arg2
= wxString_in_helper(obj1
);
3266 if (arg2
== NULL
) SWIG_fail
;
3270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3271 result
= (bool)(arg1
)->Unload((wxString
const &)*arg2
);
3272 wxPyEndAllowThreads(__tstate
);
3273 if (PyErr_Occurred()) SWIG_fail
;
3276 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3292 SWIGINTERN PyObject
*_wrap_XmlResource_InitAllHandlers(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3293 PyObject
*resultobj
= 0;
3294 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3297 PyObject
*swig_obj
[1] ;
3299 if (!args
) SWIG_fail
;
3301 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3302 if (!SWIG_IsOK(res1
)) {
3303 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_InitAllHandlers" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3305 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3307 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3308 (arg1
)->InitAllHandlers();
3309 wxPyEndAllowThreads(__tstate
);
3310 if (PyErr_Occurred()) SWIG_fail
;
3312 resultobj
= SWIG_Py_Void();
3319 SWIGINTERN PyObject
*_wrap_XmlResource_AddHandler(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3320 PyObject
*resultobj
= 0;
3321 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3322 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
3327 PyObject
* obj0
= 0 ;
3328 PyObject
* obj1
= 0 ;
3329 char * kwnames
[] = {
3330 (char *) "self",(char *) "handler", NULL
3333 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_AddHandler",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
3334 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3335 if (!SWIG_IsOK(res1
)) {
3336 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_AddHandler" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3338 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3339 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
3340 if (!SWIG_IsOK(res2
)) {
3341 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResource_AddHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'");
3343 arg2
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp2
);
3345 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3346 (arg1
)->AddHandler(arg2
);
3347 wxPyEndAllowThreads(__tstate
);
3348 if (PyErr_Occurred()) SWIG_fail
;
3350 resultobj
= SWIG_Py_Void();
3357 SWIGINTERN PyObject
*_wrap_XmlResource_InsertHandler(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3358 PyObject
*resultobj
= 0;
3359 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3360 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
3365 PyObject
* obj0
= 0 ;
3366 PyObject
* obj1
= 0 ;
3367 char * kwnames
[] = {
3368 (char *) "self",(char *) "handler", NULL
3371 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_InsertHandler",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
3372 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3373 if (!SWIG_IsOK(res1
)) {
3374 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_InsertHandler" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3376 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3377 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
3378 if (!SWIG_IsOK(res2
)) {
3379 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResource_InsertHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'");
3381 arg2
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp2
);
3383 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3384 (arg1
)->InsertHandler(arg2
);
3385 wxPyEndAllowThreads(__tstate
);
3386 if (PyErr_Occurred()) SWIG_fail
;
3388 resultobj
= SWIG_Py_Void();
3395 SWIGINTERN PyObject
*_wrap_XmlResource_ClearHandlers(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
3396 PyObject
*resultobj
= 0;
3397 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3400 PyObject
*swig_obj
[1] ;
3402 if (!args
) SWIG_fail
;
3404 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3405 if (!SWIG_IsOK(res1
)) {
3406 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_ClearHandlers" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3408 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3410 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3411 (arg1
)->ClearHandlers();
3412 wxPyEndAllowThreads(__tstate
);
3413 if (PyErr_Occurred()) SWIG_fail
;
3415 resultobj
= SWIG_Py_Void();
3422 SWIGINTERN PyObject
*_wrap_XmlResource_AddSubclassFactory(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3423 PyObject
*resultobj
= 0;
3424 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
3427 PyObject
* obj0
= 0 ;
3428 char * kwnames
[] = {
3429 (char *) "factory", NULL
3432 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_AddSubclassFactory",kwnames
,&obj0
)) SWIG_fail
;
3433 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlSubclassFactory
, 0 | 0 );
3434 if (!SWIG_IsOK(res1
)) {
3435 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_AddSubclassFactory" "', expected argument " "1"" of type '" "wxPyXmlSubclassFactory *""'");
3437 arg1
= reinterpret_cast< wxPyXmlSubclassFactory
* >(argp1
);
3439 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3440 wxXmlResource::AddSubclassFactory(arg1
);
3441 wxPyEndAllowThreads(__tstate
);
3442 if (PyErr_Occurred()) SWIG_fail
;
3444 resultobj
= SWIG_Py_Void();
3451 SWIGINTERN PyObject
*_wrap_XmlResource_LoadMenu(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3452 PyObject
*resultobj
= 0;
3453 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3454 wxString
*arg2
= 0 ;
3455 wxMenu
*result
= 0 ;
3458 bool temp2
= false ;
3459 PyObject
* obj0
= 0 ;
3460 PyObject
* obj1
= 0 ;
3461 char * kwnames
[] = {
3462 (char *) "self",(char *) "name", NULL
3465 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenu",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
3466 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3467 if (!SWIG_IsOK(res1
)) {
3468 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_LoadMenu" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3470 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3472 arg2
= wxString_in_helper(obj1
);
3473 if (arg2
== NULL
) SWIG_fail
;
3477 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3478 result
= (wxMenu
*)(arg1
)->LoadMenu((wxString
const &)*arg2
);
3479 wxPyEndAllowThreads(__tstate
);
3480 if (PyErr_Occurred()) SWIG_fail
;
3483 resultobj
= wxPyMake_wxObject(result
, 0);
3499 SWIGINTERN PyObject
*_wrap_XmlResource_LoadMenuBar(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3500 PyObject
*resultobj
= 0;
3501 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3502 wxString
*arg2
= 0 ;
3503 wxMenuBar
*result
= 0 ;
3506 bool temp2
= false ;
3507 PyObject
* obj0
= 0 ;
3508 PyObject
* obj1
= 0 ;
3509 char * kwnames
[] = {
3510 (char *) "self",(char *) "name", NULL
3513 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenuBar",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
3514 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3515 if (!SWIG_IsOK(res1
)) {
3516 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_LoadMenuBar" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3518 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3520 arg2
= wxString_in_helper(obj1
);
3521 if (arg2
== NULL
) SWIG_fail
;
3525 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3526 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar((wxString
const &)*arg2
);
3527 wxPyEndAllowThreads(__tstate
);
3528 if (PyErr_Occurred()) SWIG_fail
;
3531 resultobj
= wxPyMake_wxObject(result
, 0);
3547 SWIGINTERN PyObject
*_wrap_XmlResource_LoadMenuBarOnFrame(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3548 PyObject
*resultobj
= 0;
3549 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3550 wxWindow
*arg2
= (wxWindow
*) 0 ;
3551 wxString
*arg3
= 0 ;
3552 wxMenuBar
*result
= 0 ;
3557 bool temp3
= false ;
3558 PyObject
* obj0
= 0 ;
3559 PyObject
* obj1
= 0 ;
3560 PyObject
* obj2
= 0 ;
3561 char * kwnames
[] = {
3562 (char *) "self",(char *) "parent",(char *) "name", NULL
3565 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
3566 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3567 if (!SWIG_IsOK(res1
)) {
3568 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_LoadMenuBarOnFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3570 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3571 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
3572 if (!SWIG_IsOK(res2
)) {
3573 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResource_LoadMenuBarOnFrame" "', expected argument " "2"" of type '" "wxWindow *""'");
3575 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
3577 arg3
= wxString_in_helper(obj2
);
3578 if (arg3
== NULL
) SWIG_fail
;
3582 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3583 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar(arg2
,(wxString
const &)*arg3
);
3584 wxPyEndAllowThreads(__tstate
);
3585 if (PyErr_Occurred()) SWIG_fail
;
3588 resultobj
= wxPyMake_wxObject(result
, 0);
3604 SWIGINTERN PyObject
*_wrap_XmlResource_LoadToolBar(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3605 PyObject
*resultobj
= 0;
3606 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3607 wxWindow
*arg2
= (wxWindow
*) 0 ;
3608 wxString
*arg3
= 0 ;
3609 wxToolBar
*result
= 0 ;
3614 bool temp3
= false ;
3615 PyObject
* obj0
= 0 ;
3616 PyObject
* obj1
= 0 ;
3617 PyObject
* obj2
= 0 ;
3618 char * kwnames
[] = {
3619 (char *) "self",(char *) "parent",(char *) "name", NULL
3622 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadToolBar",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
3623 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3624 if (!SWIG_IsOK(res1
)) {
3625 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_LoadToolBar" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3627 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3628 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
3629 if (!SWIG_IsOK(res2
)) {
3630 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResource_LoadToolBar" "', expected argument " "2"" of type '" "wxWindow *""'");
3632 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
3634 arg3
= wxString_in_helper(obj2
);
3635 if (arg3
== NULL
) SWIG_fail
;
3639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3640 result
= (wxToolBar
*)(arg1
)->LoadToolBar(arg2
,(wxString
const &)*arg3
);
3641 wxPyEndAllowThreads(__tstate
);
3642 if (PyErr_Occurred()) SWIG_fail
;
3645 resultobj
= wxPyMake_wxObject(result
, (bool)0);
3661 SWIGINTERN PyObject
*_wrap_XmlResource_LoadDialog(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3662 PyObject
*resultobj
= 0;
3663 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3664 wxWindow
*arg2
= (wxWindow
*) 0 ;
3665 wxString
*arg3
= 0 ;
3666 wxDialog
*result
= 0 ;
3671 bool temp3
= false ;
3672 PyObject
* obj0
= 0 ;
3673 PyObject
* obj1
= 0 ;
3674 PyObject
* obj2
= 0 ;
3675 char * kwnames
[] = {
3676 (char *) "self",(char *) "parent",(char *) "name", NULL
3679 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadDialog",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
3680 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3681 if (!SWIG_IsOK(res1
)) {
3682 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_LoadDialog" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3684 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3685 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
3686 if (!SWIG_IsOK(res2
)) {
3687 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResource_LoadDialog" "', expected argument " "2"" of type '" "wxWindow *""'");
3689 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
3691 arg3
= wxString_in_helper(obj2
);
3692 if (arg3
== NULL
) SWIG_fail
;
3696 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3697 result
= (wxDialog
*)(arg1
)->LoadDialog(arg2
,(wxString
const &)*arg3
);
3698 wxPyEndAllowThreads(__tstate
);
3699 if (PyErr_Occurred()) SWIG_fail
;
3702 resultobj
= wxPyMake_wxObject(result
, (bool)0);
3718 SWIGINTERN PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3719 PyObject
*resultobj
= 0;
3720 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3721 wxDialog
*arg2
= (wxDialog
*) 0 ;
3722 wxWindow
*arg3
= (wxWindow
*) 0 ;
3723 wxString
*arg4
= 0 ;
3731 bool temp4
= false ;
3732 PyObject
* obj0
= 0 ;
3733 PyObject
* obj1
= 0 ;
3734 PyObject
* obj2
= 0 ;
3735 PyObject
* obj3
= 0 ;
3736 char * kwnames
[] = {
3737 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
3740 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
3741 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3742 if (!SWIG_IsOK(res1
)) {
3743 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3745 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3746 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxDialog
, 0 | 0 );
3747 if (!SWIG_IsOK(res2
)) {
3748 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "2"" of type '" "wxDialog *""'");
3750 arg2
= reinterpret_cast< wxDialog
* >(argp2
);
3751 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_wxWindow
, 0 | 0 );
3752 if (!SWIG_IsOK(res3
)) {
3753 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "3"" of type '" "wxWindow *""'");
3755 arg3
= reinterpret_cast< wxWindow
* >(argp3
);
3757 arg4
= wxString_in_helper(obj3
);
3758 if (arg4
== NULL
) SWIG_fail
;
3762 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3763 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
3764 wxPyEndAllowThreads(__tstate
);
3765 if (PyErr_Occurred()) SWIG_fail
;
3768 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3784 SWIGINTERN PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3785 PyObject
*resultobj
= 0;
3786 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3787 wxWindow
*arg2
= (wxWindow
*) 0 ;
3788 wxString
*arg3
= 0 ;
3789 wxPanel
*result
= 0 ;
3794 bool temp3
= false ;
3795 PyObject
* obj0
= 0 ;
3796 PyObject
* obj1
= 0 ;
3797 PyObject
* obj2
= 0 ;
3798 char * kwnames
[] = {
3799 (char *) "self",(char *) "parent",(char *) "name", NULL
3802 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
3803 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3804 if (!SWIG_IsOK(res1
)) {
3805 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_LoadPanel" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3807 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3808 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
3809 if (!SWIG_IsOK(res2
)) {
3810 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResource_LoadPanel" "', expected argument " "2"" of type '" "wxWindow *""'");
3812 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
3814 arg3
= wxString_in_helper(obj2
);
3815 if (arg3
== NULL
) SWIG_fail
;
3819 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3820 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
3821 wxPyEndAllowThreads(__tstate
);
3822 if (PyErr_Occurred()) SWIG_fail
;
3825 resultobj
= wxPyMake_wxObject(result
, (bool)0);
3841 SWIGINTERN PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3842 PyObject
*resultobj
= 0;
3843 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3844 wxPanel
*arg2
= (wxPanel
*) 0 ;
3845 wxWindow
*arg3
= (wxWindow
*) 0 ;
3846 wxString
*arg4
= 0 ;
3854 bool temp4
= false ;
3855 PyObject
* obj0
= 0 ;
3856 PyObject
* obj1
= 0 ;
3857 PyObject
* obj2
= 0 ;
3858 PyObject
* obj3
= 0 ;
3859 char * kwnames
[] = {
3860 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
3863 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
3864 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3865 if (!SWIG_IsOK(res1
)) {
3866 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3868 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3869 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxPanel
, 0 | 0 );
3870 if (!SWIG_IsOK(res2
)) {
3871 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "2"" of type '" "wxPanel *""'");
3873 arg2
= reinterpret_cast< wxPanel
* >(argp2
);
3874 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_wxWindow
, 0 | 0 );
3875 if (!SWIG_IsOK(res3
)) {
3876 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "3"" of type '" "wxWindow *""'");
3878 arg3
= reinterpret_cast< wxWindow
* >(argp3
);
3880 arg4
= wxString_in_helper(obj3
);
3881 if (arg4
== NULL
) SWIG_fail
;
3885 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3886 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
3887 wxPyEndAllowThreads(__tstate
);
3888 if (PyErr_Occurred()) SWIG_fail
;
3891 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3907 SWIGINTERN PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3908 PyObject
*resultobj
= 0;
3909 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3910 wxWindow
*arg2
= (wxWindow
*) 0 ;
3911 wxString
*arg3
= 0 ;
3912 wxFrame
*result
= 0 ;
3917 bool temp3
= false ;
3918 PyObject
* obj0
= 0 ;
3919 PyObject
* obj1
= 0 ;
3920 PyObject
* obj2
= 0 ;
3921 char * kwnames
[] = {
3922 (char *) "self",(char *) "parent",(char *) "name", NULL
3925 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
3926 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3927 if (!SWIG_IsOK(res1
)) {
3928 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_LoadFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3930 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3931 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
3932 if (!SWIG_IsOK(res2
)) {
3933 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResource_LoadFrame" "', expected argument " "2"" of type '" "wxWindow *""'");
3935 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
3937 arg3
= wxString_in_helper(obj2
);
3938 if (arg3
== NULL
) SWIG_fail
;
3942 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3943 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
3944 wxPyEndAllowThreads(__tstate
);
3945 if (PyErr_Occurred()) SWIG_fail
;
3948 resultobj
= wxPyMake_wxObject(result
, (bool)0);
3964 SWIGINTERN PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
3965 PyObject
*resultobj
= 0;
3966 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3967 wxFrame
*arg2
= (wxFrame
*) 0 ;
3968 wxWindow
*arg3
= (wxWindow
*) 0 ;
3969 wxString
*arg4
= 0 ;
3977 bool temp4
= false ;
3978 PyObject
* obj0
= 0 ;
3979 PyObject
* obj1
= 0 ;
3980 PyObject
* obj2
= 0 ;
3981 PyObject
* obj3
= 0 ;
3982 char * kwnames
[] = {
3983 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
3986 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
3987 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
3988 if (!SWIG_IsOK(res1
)) {
3989 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3991 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
3992 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxFrame
, 0 | 0 );
3993 if (!SWIG_IsOK(res2
)) {
3994 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "2"" of type '" "wxFrame *""'");
3996 arg2
= reinterpret_cast< wxFrame
* >(argp2
);
3997 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_wxWindow
, 0 | 0 );
3998 if (!SWIG_IsOK(res3
)) {
3999 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "3"" of type '" "wxWindow *""'");
4001 arg3
= reinterpret_cast< wxWindow
* >(argp3
);
4003 arg4
= wxString_in_helper(obj3
);
4004 if (arg4
== NULL
) SWIG_fail
;
4008 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4009 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
4010 wxPyEndAllowThreads(__tstate
);
4011 if (PyErr_Occurred()) SWIG_fail
;
4014 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4030 SWIGINTERN PyObject
*_wrap_XmlResource_LoadObject(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4031 PyObject
*resultobj
= 0;
4032 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
4033 wxWindow
*arg2
= (wxWindow
*) 0 ;
4034 wxString
*arg3
= 0 ;
4035 wxString
*arg4
= 0 ;
4036 wxObject
*result
= 0 ;
4041 bool temp3
= false ;
4042 bool temp4
= false ;
4043 PyObject
* obj0
= 0 ;
4044 PyObject
* obj1
= 0 ;
4045 PyObject
* obj2
= 0 ;
4046 PyObject
* obj3
= 0 ;
4047 char * kwnames
[] = {
4048 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
4051 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
4052 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4053 if (!SWIG_IsOK(res1
)) {
4054 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_LoadObject" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4056 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
4057 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
4058 if (!SWIG_IsOK(res2
)) {
4059 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResource_LoadObject" "', expected argument " "2"" of type '" "wxWindow *""'");
4061 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
4063 arg3
= wxString_in_helper(obj2
);
4064 if (arg3
== NULL
) SWIG_fail
;
4068 arg4
= wxString_in_helper(obj3
);
4069 if (arg4
== NULL
) SWIG_fail
;
4073 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4074 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
4075 wxPyEndAllowThreads(__tstate
);
4076 if (PyErr_Occurred()) SWIG_fail
;
4079 resultobj
= wxPyMake_wxObject(result
, (bool)0);
4103 SWIGINTERN PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4104 PyObject
*resultobj
= 0;
4105 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
4106 wxObject
*arg2
= (wxObject
*) 0 ;
4107 wxWindow
*arg3
= (wxWindow
*) 0 ;
4108 wxString
*arg4
= 0 ;
4109 wxString
*arg5
= 0 ;
4117 bool temp4
= false ;
4118 bool temp5
= false ;
4119 PyObject
* obj0
= 0 ;
4120 PyObject
* obj1
= 0 ;
4121 PyObject
* obj2
= 0 ;
4122 PyObject
* obj3
= 0 ;
4123 PyObject
* obj4
= 0 ;
4124 char * kwnames
[] = {
4125 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
4128 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
4129 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4130 if (!SWIG_IsOK(res1
)) {
4131 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_LoadOnObject" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4133 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
4134 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxObject
, 0 | 0 );
4135 if (!SWIG_IsOK(res2
)) {
4136 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResource_LoadOnObject" "', expected argument " "2"" of type '" "wxObject *""'");
4138 arg2
= reinterpret_cast< wxObject
* >(argp2
);
4139 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_wxWindow
, 0 | 0 );
4140 if (!SWIG_IsOK(res3
)) {
4141 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlResource_LoadOnObject" "', expected argument " "3"" of type '" "wxWindow *""'");
4143 arg3
= reinterpret_cast< wxWindow
* >(argp3
);
4145 arg4
= wxString_in_helper(obj3
);
4146 if (arg4
== NULL
) SWIG_fail
;
4150 arg5
= wxString_in_helper(obj4
);
4151 if (arg5
== NULL
) SWIG_fail
;
4155 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4156 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
4157 wxPyEndAllowThreads(__tstate
);
4158 if (PyErr_Occurred()) SWIG_fail
;
4161 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4185 SWIGINTERN PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4186 PyObject
*resultobj
= 0;
4187 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
4188 wxString
*arg2
= 0 ;
4192 bool temp2
= false ;
4193 PyObject
* obj0
= 0 ;
4194 PyObject
* obj1
= 0 ;
4195 char * kwnames
[] = {
4196 (char *) "self",(char *) "name", NULL
4199 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4200 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4201 if (!SWIG_IsOK(res1
)) {
4202 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_LoadBitmap" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4204 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
4206 arg2
= wxString_in_helper(obj1
);
4207 if (arg2
== NULL
) SWIG_fail
;
4211 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4212 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
4213 wxPyEndAllowThreads(__tstate
);
4214 if (PyErr_Occurred()) SWIG_fail
;
4216 resultobj
= SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap
& >(result
))), SWIGTYPE_p_wxBitmap
, SWIG_POINTER_OWN
| 0 );
4231 SWIGINTERN PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4232 PyObject
*resultobj
= 0;
4233 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
4234 wxString
*arg2
= 0 ;
4238 bool temp2
= false ;
4239 PyObject
* obj0
= 0 ;
4240 PyObject
* obj1
= 0 ;
4241 char * kwnames
[] = {
4242 (char *) "self",(char *) "name", NULL
4245 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4246 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4247 if (!SWIG_IsOK(res1
)) {
4248 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_LoadIcon" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4250 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
4252 arg2
= wxString_in_helper(obj1
);
4253 if (arg2
== NULL
) SWIG_fail
;
4257 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4258 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
4259 wxPyEndAllowThreads(__tstate
);
4260 if (PyErr_Occurred()) SWIG_fail
;
4262 resultobj
= SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon
& >(result
))), SWIGTYPE_p_wxIcon
, SWIG_POINTER_OWN
| 0 );
4277 SWIGINTERN PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4278 PyObject
*resultobj
= 0;
4279 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
4280 wxString
*arg2
= 0 ;
4281 wxWindow
*arg3
= (wxWindow
*) 0 ;
4282 wxWindow
*arg4
= (wxWindow
*) NULL
;
4286 bool temp2
= false ;
4291 PyObject
* obj0
= 0 ;
4292 PyObject
* obj1
= 0 ;
4293 PyObject
* obj2
= 0 ;
4294 PyObject
* obj3
= 0 ;
4295 char * kwnames
[] = {
4296 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
4299 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
4300 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4301 if (!SWIG_IsOK(res1
)) {
4302 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4304 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
4306 arg2
= wxString_in_helper(obj1
);
4307 if (arg2
== NULL
) SWIG_fail
;
4310 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_wxWindow
, 0 | 0 );
4311 if (!SWIG_IsOK(res3
)) {
4312 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "3"" of type '" "wxWindow *""'");
4314 arg3
= reinterpret_cast< wxWindow
* >(argp3
);
4316 res4
= SWIG_ConvertPtr(obj3
, &argp4
,SWIGTYPE_p_wxWindow
, 0 | 0 );
4317 if (!SWIG_IsOK(res4
)) {
4318 SWIG_exception_fail(SWIG_ArgError(res4
), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "4"" of type '" "wxWindow *""'");
4320 arg4
= reinterpret_cast< wxWindow
* >(argp4
);
4323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4324 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
4325 wxPyEndAllowThreads(__tstate
);
4326 if (PyErr_Occurred()) SWIG_fail
;
4329 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4345 SWIGINTERN PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4346 PyObject
*resultobj
= 0;
4347 wxChar
*arg1
= (wxChar
*) 0 ;
4348 int arg2
= (int) wxID_NONE
;
4354 PyObject
* obj0
= 0 ;
4355 PyObject
* obj1
= 0 ;
4356 char * kwnames
[] = {
4357 (char *) "str_id",(char *) "value_if_not_found", NULL
4360 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResource_GetXRCID",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4361 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxChar
, 0 | 0 );
4362 if (!SWIG_IsOK(res1
)) {
4363 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_GetXRCID" "', expected argument " "1"" of type '" "wxChar const *""'");
4365 arg1
= reinterpret_cast< wxChar
* >(argp1
);
4367 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
4368 if (!SWIG_IsOK(ecode2
)) {
4369 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "XmlResource_GetXRCID" "', expected argument " "2"" of type '" "int""'");
4371 arg2
= static_cast< int >(val2
);
4374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4375 result
= (int)wxXmlResource::GetXRCID((wxChar
const *)arg1
,arg2
);
4376 wxPyEndAllowThreads(__tstate
);
4377 if (PyErr_Occurred()) SWIG_fail
;
4379 resultobj
= SWIG_From_int(static_cast< int >(result
));
4386 SWIGINTERN PyObject
*_wrap_XmlResource_GetVersion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4387 PyObject
*resultobj
= 0;
4388 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
4392 PyObject
*swig_obj
[1] ;
4394 if (!args
) SWIG_fail
;
4396 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4397 if (!SWIG_IsOK(res1
)) {
4398 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_GetVersion" "', expected argument " "1"" of type '" "wxXmlResource const *""'");
4400 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
4402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4403 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
4404 wxPyEndAllowThreads(__tstate
);
4405 if (PyErr_Occurred()) SWIG_fail
;
4407 resultobj
= SWIG_From_long(static_cast< long >(result
));
4414 SWIGINTERN PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4415 PyObject
*resultobj
= 0;
4416 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
4432 PyObject
* obj0
= 0 ;
4433 PyObject
* obj1
= 0 ;
4434 PyObject
* obj2
= 0 ;
4435 PyObject
* obj3
= 0 ;
4436 PyObject
* obj4
= 0 ;
4437 char * kwnames
[] = {
4438 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
4441 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_CompareVersion",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
4442 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4443 if (!SWIG_IsOK(res1
)) {
4444 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_CompareVersion" "', expected argument " "1"" of type '" "wxXmlResource const *""'");
4446 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
4447 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
4448 if (!SWIG_IsOK(ecode2
)) {
4449 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "XmlResource_CompareVersion" "', expected argument " "2"" of type '" "int""'");
4451 arg2
= static_cast< int >(val2
);
4452 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
4453 if (!SWIG_IsOK(ecode3
)) {
4454 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResource_CompareVersion" "', expected argument " "3"" of type '" "int""'");
4456 arg3
= static_cast< int >(val3
);
4457 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
4458 if (!SWIG_IsOK(ecode4
)) {
4459 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "XmlResource_CompareVersion" "', expected argument " "4"" of type '" "int""'");
4461 arg4
= static_cast< int >(val4
);
4462 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
4463 if (!SWIG_IsOK(ecode5
)) {
4464 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "XmlResource_CompareVersion" "', expected argument " "5"" of type '" "int""'");
4466 arg5
= static_cast< int >(val5
);
4468 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4469 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
4470 wxPyEndAllowThreads(__tstate
);
4471 if (PyErr_Occurred()) SWIG_fail
;
4473 resultobj
= SWIG_From_int(static_cast< int >(result
));
4480 SWIGINTERN PyObject
*_wrap_XmlResource_Get(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4481 PyObject
*resultobj
= 0;
4482 wxXmlResource
*result
= 0 ;
4484 if (!SWIG_Python_UnpackTuple(args
,"XmlResource_Get",0,0,0)) SWIG_fail
;
4486 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4487 result
= (wxXmlResource
*)wxXmlResource::Get();
4488 wxPyEndAllowThreads(__tstate
);
4489 if (PyErr_Occurred()) SWIG_fail
;
4491 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4498 SWIGINTERN PyObject
*_wrap_XmlResource_Set(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4499 PyObject
*resultobj
= 0;
4500 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
4501 wxXmlResource
*result
= 0 ;
4504 PyObject
* obj0
= 0 ;
4505 char * kwnames
[] = {
4506 (char *) "res", NULL
4509 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) SWIG_fail
;
4510 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4511 if (!SWIG_IsOK(res1
)) {
4512 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_Set" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4514 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
4516 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4517 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
4518 wxPyEndAllowThreads(__tstate
);
4519 if (PyErr_Occurred()) SWIG_fail
;
4521 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4528 SWIGINTERN PyObject
*_wrap_XmlResource_GetFlags(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4529 PyObject
*resultobj
= 0;
4530 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
4534 PyObject
*swig_obj
[1] ;
4536 if (!args
) SWIG_fail
;
4538 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4539 if (!SWIG_IsOK(res1
)) {
4540 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_GetFlags" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4542 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
4544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4545 result
= (int)(arg1
)->GetFlags();
4546 wxPyEndAllowThreads(__tstate
);
4547 if (PyErr_Occurred()) SWIG_fail
;
4549 resultobj
= SWIG_From_int(static_cast< int >(result
));
4556 SWIGINTERN PyObject
*_wrap_XmlResource_SetFlags(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4557 PyObject
*resultobj
= 0;
4558 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
4564 PyObject
* obj0
= 0 ;
4565 PyObject
* obj1
= 0 ;
4566 char * kwnames
[] = {
4567 (char *) "self",(char *) "flags", NULL
4570 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_SetFlags",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4571 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4572 if (!SWIG_IsOK(res1
)) {
4573 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_SetFlags" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4575 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
4576 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
4577 if (!SWIG_IsOK(ecode2
)) {
4578 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "XmlResource_SetFlags" "', expected argument " "2"" of type '" "int""'");
4580 arg2
= static_cast< int >(val2
);
4582 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4583 (arg1
)->SetFlags(arg2
);
4584 wxPyEndAllowThreads(__tstate
);
4585 if (PyErr_Occurred()) SWIG_fail
;
4587 resultobj
= SWIG_Py_Void();
4594 SWIGINTERN PyObject
*XmlResource_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4596 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
4597 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlResource
, SWIG_NewClientData(obj
));
4598 return SWIG_Py_Void();
4601 SWIGINTERN PyObject
*XmlResource_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4602 return SWIG_Python_InitShadowInstance(args
);
4605 SWIGINTERN PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4606 PyObject
*resultobj
= 0;
4607 wxPyXmlSubclassFactory
*result
= 0 ;
4609 if (!SWIG_Python_UnpackTuple(args
,"new_XmlSubclassFactory",0,0,0)) SWIG_fail
;
4611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4612 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
4613 wxPyEndAllowThreads(__tstate
);
4614 if (PyErr_Occurred()) SWIG_fail
;
4616 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxPyXmlSubclassFactory
, SWIG_POINTER_NEW
| 0 );
4623 SWIGINTERN PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4624 PyObject
*resultobj
= 0;
4625 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
4626 PyObject
*arg2
= (PyObject
*) 0 ;
4627 PyObject
*arg3
= (PyObject
*) 0 ;
4630 PyObject
* obj0
= 0 ;
4631 PyObject
* obj1
= 0 ;
4632 PyObject
* obj2
= 0 ;
4633 char * kwnames
[] = {
4634 (char *) "self",(char *) "self",(char *) "_class", NULL
4637 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
4638 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlSubclassFactory
, 0 | 0 );
4639 if (!SWIG_IsOK(res1
)) {
4640 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlSubclassFactory__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyXmlSubclassFactory *""'");
4642 arg1
= reinterpret_cast< wxPyXmlSubclassFactory
* >(argp1
);
4646 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4647 (arg1
)->_setCallbackInfo(arg2
,arg3
);
4648 wxPyEndAllowThreads(__tstate
);
4649 if (PyErr_Occurred()) SWIG_fail
;
4651 resultobj
= SWIG_Py_Void();
4658 SWIGINTERN PyObject
*XmlSubclassFactory_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4660 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
4661 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, SWIG_NewClientData(obj
));
4662 return SWIG_Py_Void();
4665 SWIGINTERN PyObject
*XmlSubclassFactory_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4666 return SWIG_Python_InitShadowInstance(args
);
4669 SWIGINTERN PyObject
*_wrap_new_XmlProperty(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4670 PyObject
*resultobj
= 0;
4671 wxString
const &arg1_defvalue
= wxPyEmptyString
;
4672 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
4673 wxString
const &arg2_defvalue
= wxPyEmptyString
;
4674 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4675 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
4676 wxXmlProperty
*result
= 0 ;
4677 bool temp1
= false ;
4678 bool temp2
= false ;
4681 PyObject
* obj0
= 0 ;
4682 PyObject
* obj1
= 0 ;
4683 PyObject
* obj2
= 0 ;
4684 char * kwnames
[] = {
4685 (char *) "name",(char *) "value",(char *) "next", NULL
4688 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
4691 arg1
= wxString_in_helper(obj0
);
4692 if (arg1
== NULL
) SWIG_fail
;
4698 arg2
= wxString_in_helper(obj1
);
4699 if (arg2
== NULL
) SWIG_fail
;
4704 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4705 if (!SWIG_IsOK(res3
)) {
4706 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "new_XmlProperty" "', expected argument " "3"" of type '" "wxXmlProperty *""'");
4708 arg3
= reinterpret_cast< wxXmlProperty
* >(argp3
);
4711 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4712 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
4713 wxPyEndAllowThreads(__tstate
);
4714 if (PyErr_Occurred()) SWIG_fail
;
4716 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_NEW
| 0 );
4739 SWIGINTERN PyObject
*_wrap_XmlProperty_GetName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4740 PyObject
*resultobj
= 0;
4741 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
4745 PyObject
*swig_obj
[1] ;
4747 if (!args
) SWIG_fail
;
4749 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4750 if (!SWIG_IsOK(res1
)) {
4751 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlProperty_GetName" "', expected argument " "1"" of type '" "wxXmlProperty const *""'");
4753 arg1
= reinterpret_cast< wxXmlProperty
* >(argp1
);
4755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4756 result
= ((wxXmlProperty
const *)arg1
)->GetName();
4757 wxPyEndAllowThreads(__tstate
);
4758 if (PyErr_Occurred()) SWIG_fail
;
4762 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4764 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4773 SWIGINTERN PyObject
*_wrap_XmlProperty_GetValue(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4774 PyObject
*resultobj
= 0;
4775 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
4779 PyObject
*swig_obj
[1] ;
4781 if (!args
) SWIG_fail
;
4783 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4784 if (!SWIG_IsOK(res1
)) {
4785 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlProperty_GetValue" "', expected argument " "1"" of type '" "wxXmlProperty const *""'");
4787 arg1
= reinterpret_cast< wxXmlProperty
* >(argp1
);
4789 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4790 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
4791 wxPyEndAllowThreads(__tstate
);
4792 if (PyErr_Occurred()) SWIG_fail
;
4796 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4798 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4807 SWIGINTERN PyObject
*_wrap_XmlProperty_GetNext(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4808 PyObject
*resultobj
= 0;
4809 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
4810 wxXmlProperty
*result
= 0 ;
4813 PyObject
*swig_obj
[1] ;
4815 if (!args
) SWIG_fail
;
4817 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4818 if (!SWIG_IsOK(res1
)) {
4819 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlProperty_GetNext" "', expected argument " "1"" of type '" "wxXmlProperty const *""'");
4821 arg1
= reinterpret_cast< wxXmlProperty
* >(argp1
);
4823 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4824 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
4825 wxPyEndAllowThreads(__tstate
);
4826 if (PyErr_Occurred()) SWIG_fail
;
4828 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4835 SWIGINTERN PyObject
*_wrap_XmlProperty_SetName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4836 PyObject
*resultobj
= 0;
4837 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
4838 wxString
*arg2
= 0 ;
4841 bool temp2
= false ;
4842 PyObject
* obj0
= 0 ;
4843 PyObject
* obj1
= 0 ;
4844 char * kwnames
[] = {
4845 (char *) "self",(char *) "name", NULL
4848 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4849 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4850 if (!SWIG_IsOK(res1
)) {
4851 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlProperty_SetName" "', expected argument " "1"" of type '" "wxXmlProperty *""'");
4853 arg1
= reinterpret_cast< wxXmlProperty
* >(argp1
);
4855 arg2
= wxString_in_helper(obj1
);
4856 if (arg2
== NULL
) SWIG_fail
;
4860 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4861 (arg1
)->SetName((wxString
const &)*arg2
);
4862 wxPyEndAllowThreads(__tstate
);
4863 if (PyErr_Occurred()) SWIG_fail
;
4865 resultobj
= SWIG_Py_Void();
4880 SWIGINTERN PyObject
*_wrap_XmlProperty_SetValue(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4881 PyObject
*resultobj
= 0;
4882 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
4883 wxString
*arg2
= 0 ;
4886 bool temp2
= false ;
4887 PyObject
* obj0
= 0 ;
4888 PyObject
* obj1
= 0 ;
4889 char * kwnames
[] = {
4890 (char *) "self",(char *) "value", NULL
4893 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4894 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4895 if (!SWIG_IsOK(res1
)) {
4896 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlProperty_SetValue" "', expected argument " "1"" of type '" "wxXmlProperty *""'");
4898 arg1
= reinterpret_cast< wxXmlProperty
* >(argp1
);
4900 arg2
= wxString_in_helper(obj1
);
4901 if (arg2
== NULL
) SWIG_fail
;
4905 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4906 (arg1
)->SetValue((wxString
const &)*arg2
);
4907 wxPyEndAllowThreads(__tstate
);
4908 if (PyErr_Occurred()) SWIG_fail
;
4910 resultobj
= SWIG_Py_Void();
4925 SWIGINTERN PyObject
*_wrap_XmlProperty_SetNext(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4926 PyObject
*resultobj
= 0;
4927 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
4928 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
4933 PyObject
* obj0
= 0 ;
4934 PyObject
* obj1
= 0 ;
4935 char * kwnames
[] = {
4936 (char *) "self",(char *) "next", NULL
4939 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4940 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4941 if (!SWIG_IsOK(res1
)) {
4942 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlProperty_SetNext" "', expected argument " "1"" of type '" "wxXmlProperty *""'");
4944 arg1
= reinterpret_cast< wxXmlProperty
* >(argp1
);
4945 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4946 if (!SWIG_IsOK(res2
)) {
4947 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlProperty_SetNext" "', expected argument " "2"" of type '" "wxXmlProperty *""'");
4949 arg2
= reinterpret_cast< wxXmlProperty
* >(argp2
);
4951 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4952 (arg1
)->SetNext(arg2
);
4953 wxPyEndAllowThreads(__tstate
);
4954 if (PyErr_Occurred()) SWIG_fail
;
4956 resultobj
= SWIG_Py_Void();
4963 SWIGINTERN PyObject
*XmlProperty_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4965 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
4966 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlProperty
, SWIG_NewClientData(obj
));
4967 return SWIG_Py_Void();
4970 SWIGINTERN PyObject
*XmlProperty_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4971 return SWIG_Python_InitShadowInstance(args
);
4974 SWIGINTERN PyObject
*_wrap_new_XmlNode(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4975 PyObject
*resultobj
= 0;
4976 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
4977 wxXmlNodeType arg2
= (wxXmlNodeType
) 0 ;
4978 wxString
const &arg3_defvalue
= wxPyEmptyString
;
4979 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
4980 wxString
const &arg4_defvalue
= wxPyEmptyString
;
4981 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
4982 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
4983 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
4984 wxXmlNode
*result
= 0 ;
4989 bool temp3
= false ;
4990 bool temp4
= false ;
4995 PyObject
* obj0
= 0 ;
4996 PyObject
* obj1
= 0 ;
4997 PyObject
* obj2
= 0 ;
4998 PyObject
* obj3
= 0 ;
4999 PyObject
* obj4
= 0 ;
5000 PyObject
* obj5
= 0 ;
5001 char * kwnames
[] = {
5002 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
5005 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOOO:new_XmlNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) SWIG_fail
;
5007 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5008 if (!SWIG_IsOK(res1
)) {
5009 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_XmlNode" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5011 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5014 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
5015 if (!SWIG_IsOK(ecode2
)) {
5016 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_XmlNode" "', expected argument " "2"" of type '" "wxXmlNodeType""'");
5018 arg2
= static_cast< wxXmlNodeType
>(val2
);
5022 arg3
= wxString_in_helper(obj2
);
5023 if (arg3
== NULL
) SWIG_fail
;
5029 arg4
= wxString_in_helper(obj3
);
5030 if (arg4
== NULL
) SWIG_fail
;
5035 res5
= SWIG_ConvertPtr(obj4
, &argp5
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
5036 if (!SWIG_IsOK(res5
)) {
5037 SWIG_exception_fail(SWIG_ArgError(res5
), "in method '" "new_XmlNode" "', expected argument " "5"" of type '" "wxXmlProperty *""'");
5039 arg5
= reinterpret_cast< wxXmlProperty
* >(argp5
);
5042 res6
= SWIG_ConvertPtr(obj5
, &argp6
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5043 if (!SWIG_IsOK(res6
)) {
5044 SWIG_exception_fail(SWIG_ArgError(res6
), "in method '" "new_XmlNode" "', expected argument " "6"" of type '" "wxXmlNode *""'");
5046 arg6
= reinterpret_cast< wxXmlNode
* >(argp6
);
5049 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5050 result
= (wxXmlNode
*)new wxXmlNode(arg1
,arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
5051 wxPyEndAllowThreads(__tstate
);
5052 if (PyErr_Occurred()) SWIG_fail
;
5054 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_NEW
| 0 );
5077 SWIGINTERN PyObject
*_wrap_delete_XmlNode(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5078 PyObject
*resultobj
= 0;
5079 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5082 PyObject
*swig_obj
[1] ;
5084 if (!args
) SWIG_fail
;
5086 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_DISOWN
| 0 );
5087 if (!SWIG_IsOK(res1
)) {
5088 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_XmlNode" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5090 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5092 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5095 wxPyEndAllowThreads(__tstate
);
5096 if (PyErr_Occurred()) SWIG_fail
;
5098 resultobj
= SWIG_Py_Void();
5105 SWIGINTERN PyObject
*_wrap_new_XmlNodeEasy(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5106 PyObject
*resultobj
= 0;
5107 wxXmlNodeType arg1
;
5108 wxString
*arg2
= 0 ;
5109 wxString
const &arg3_defvalue
= wxPyEmptyString
;
5110 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
5111 wxXmlNode
*result
= 0 ;
5114 bool temp2
= false ;
5115 bool temp3
= false ;
5116 PyObject
* obj0
= 0 ;
5117 PyObject
* obj1
= 0 ;
5118 PyObject
* obj2
= 0 ;
5119 char * kwnames
[] = {
5120 (char *) "type",(char *) "name",(char *) "content", NULL
5123 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:new_XmlNodeEasy",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
5124 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
5125 if (!SWIG_IsOK(ecode1
)) {
5126 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "new_XmlNodeEasy" "', expected argument " "1"" of type '" "wxXmlNodeType""'");
5128 arg1
= static_cast< wxXmlNodeType
>(val1
);
5130 arg2
= wxString_in_helper(obj1
);
5131 if (arg2
== NULL
) SWIG_fail
;
5136 arg3
= wxString_in_helper(obj2
);
5137 if (arg3
== NULL
) SWIG_fail
;
5142 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5143 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
5144 wxPyEndAllowThreads(__tstate
);
5145 if (PyErr_Occurred()) SWIG_fail
;
5147 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_OWN
| 0 );
5170 SWIGINTERN PyObject
*_wrap_XmlNode_AddChild(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5171 PyObject
*resultobj
= 0;
5172 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5173 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5178 PyObject
* obj0
= 0 ;
5179 PyObject
* obj1
= 0 ;
5180 char * kwnames
[] = {
5181 (char *) "self",(char *) "child", NULL
5184 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5185 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5186 if (!SWIG_IsOK(res1
)) {
5187 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_AddChild" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5189 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5190 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5191 if (!SWIG_IsOK(res2
)) {
5192 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_AddChild" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5194 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
5196 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5197 (arg1
)->AddChild(arg2
);
5198 wxPyEndAllowThreads(__tstate
);
5199 if (PyErr_Occurred()) SWIG_fail
;
5201 resultobj
= SWIG_Py_Void();
5208 SWIGINTERN PyObject
*_wrap_XmlNode_InsertChild(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5209 PyObject
*resultobj
= 0;
5210 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5211 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5212 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
5219 PyObject
* obj0
= 0 ;
5220 PyObject
* obj1
= 0 ;
5221 PyObject
* obj2
= 0 ;
5222 char * kwnames
[] = {
5223 (char *) "self",(char *) "child",(char *) "before_node", NULL
5226 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
5227 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5228 if (!SWIG_IsOK(res1
)) {
5229 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_InsertChild" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5231 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5232 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5233 if (!SWIG_IsOK(res2
)) {
5234 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_InsertChild" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5236 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
5237 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5238 if (!SWIG_IsOK(res3
)) {
5239 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlNode_InsertChild" "', expected argument " "3"" of type '" "wxXmlNode *""'");
5241 arg3
= reinterpret_cast< wxXmlNode
* >(argp3
);
5243 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5244 (arg1
)->InsertChild(arg2
,arg3
);
5245 wxPyEndAllowThreads(__tstate
);
5246 if (PyErr_Occurred()) SWIG_fail
;
5248 resultobj
= SWIG_Py_Void();
5255 SWIGINTERN PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5256 PyObject
*resultobj
= 0;
5257 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5258 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5264 PyObject
* obj0
= 0 ;
5265 PyObject
* obj1
= 0 ;
5266 char * kwnames
[] = {
5267 (char *) "self",(char *) "child", NULL
5270 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5271 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5272 if (!SWIG_IsOK(res1
)) {
5273 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_RemoveChild" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5275 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5276 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5277 if (!SWIG_IsOK(res2
)) {
5278 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_RemoveChild" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5280 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
5282 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5283 result
= (bool)(arg1
)->RemoveChild(arg2
);
5284 wxPyEndAllowThreads(__tstate
);
5285 if (PyErr_Occurred()) SWIG_fail
;
5288 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5296 SWIGINTERN PyObject
*_wrap_XmlNode_AddProperty(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5297 PyObject
*resultobj
= 0;
5298 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5299 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
5304 PyObject
* obj0
= 0 ;
5305 PyObject
* obj1
= 0 ;
5306 char * kwnames
[] = {
5307 (char *) "self",(char *) "prop", NULL
5310 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5311 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5312 if (!SWIG_IsOK(res1
)) {
5313 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_AddProperty" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5315 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5316 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
5317 if (!SWIG_IsOK(res2
)) {
5318 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_AddProperty" "', expected argument " "2"" of type '" "wxXmlProperty *""'");
5320 arg2
= reinterpret_cast< wxXmlProperty
* >(argp2
);
5322 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5323 (arg1
)->AddProperty(arg2
);
5324 wxPyEndAllowThreads(__tstate
);
5325 if (PyErr_Occurred()) SWIG_fail
;
5327 resultobj
= SWIG_Py_Void();
5334 SWIGINTERN PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5335 PyObject
*resultobj
= 0;
5336 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5337 wxString
*arg2
= 0 ;
5338 wxString
*arg3
= 0 ;
5341 bool temp2
= false ;
5342 bool temp3
= false ;
5343 PyObject
* obj0
= 0 ;
5344 PyObject
* obj1
= 0 ;
5345 PyObject
* obj2
= 0 ;
5346 char * kwnames
[] = {
5347 (char *) "self",(char *) "name",(char *) "value", NULL
5350 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
5351 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5352 if (!SWIG_IsOK(res1
)) {
5353 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_AddPropertyName" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5355 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5357 arg2
= wxString_in_helper(obj1
);
5358 if (arg2
== NULL
) SWIG_fail
;
5362 arg3
= wxString_in_helper(obj2
);
5363 if (arg3
== NULL
) SWIG_fail
;
5367 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5368 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
5369 wxPyEndAllowThreads(__tstate
);
5370 if (PyErr_Occurred()) SWIG_fail
;
5372 resultobj
= SWIG_Py_Void();
5395 SWIGINTERN PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5396 PyObject
*resultobj
= 0;
5397 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5398 wxString
*arg2
= 0 ;
5402 bool temp2
= false ;
5403 PyObject
* obj0
= 0 ;
5404 PyObject
* obj1
= 0 ;
5405 char * kwnames
[] = {
5406 (char *) "self",(char *) "name", NULL
5409 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5410 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5411 if (!SWIG_IsOK(res1
)) {
5412 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_DeleteProperty" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5414 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5416 arg2
= wxString_in_helper(obj1
);
5417 if (arg2
== NULL
) SWIG_fail
;
5421 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5422 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
5423 wxPyEndAllowThreads(__tstate
);
5424 if (PyErr_Occurred()) SWIG_fail
;
5427 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5443 SWIGINTERN PyObject
*_wrap_XmlNode_GetType(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5444 PyObject
*resultobj
= 0;
5445 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5446 wxXmlNodeType result
;
5449 PyObject
*swig_obj
[1] ;
5451 if (!args
) SWIG_fail
;
5453 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5454 if (!SWIG_IsOK(res1
)) {
5455 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetType" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5457 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5459 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5460 result
= (wxXmlNodeType
)((wxXmlNode
const *)arg1
)->GetType();
5461 wxPyEndAllowThreads(__tstate
);
5462 if (PyErr_Occurred()) SWIG_fail
;
5464 resultobj
= SWIG_From_int(static_cast< int >(result
));
5471 SWIGINTERN PyObject
*_wrap_XmlNode_GetName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5472 PyObject
*resultobj
= 0;
5473 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5477 PyObject
*swig_obj
[1] ;
5479 if (!args
) SWIG_fail
;
5481 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5482 if (!SWIG_IsOK(res1
)) {
5483 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetName" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5485 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5488 result
= ((wxXmlNode
const *)arg1
)->GetName();
5489 wxPyEndAllowThreads(__tstate
);
5490 if (PyErr_Occurred()) SWIG_fail
;
5494 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5496 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5505 SWIGINTERN PyObject
*_wrap_XmlNode_GetContent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5506 PyObject
*resultobj
= 0;
5507 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5511 PyObject
*swig_obj
[1] ;
5513 if (!args
) SWIG_fail
;
5515 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5516 if (!SWIG_IsOK(res1
)) {
5517 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetContent" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5519 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5521 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5522 result
= ((wxXmlNode
const *)arg1
)->GetContent();
5523 wxPyEndAllowThreads(__tstate
);
5524 if (PyErr_Occurred()) SWIG_fail
;
5528 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5530 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5539 SWIGINTERN PyObject
*_wrap_XmlNode_GetParent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5540 PyObject
*resultobj
= 0;
5541 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5542 wxXmlNode
*result
= 0 ;
5545 PyObject
*swig_obj
[1] ;
5547 if (!args
) SWIG_fail
;
5549 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5550 if (!SWIG_IsOK(res1
)) {
5551 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetParent" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5553 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5555 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5556 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
5557 wxPyEndAllowThreads(__tstate
);
5558 if (PyErr_Occurred()) SWIG_fail
;
5560 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5567 SWIGINTERN PyObject
*_wrap_XmlNode_GetNext(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5568 PyObject
*resultobj
= 0;
5569 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5570 wxXmlNode
*result
= 0 ;
5573 PyObject
*swig_obj
[1] ;
5575 if (!args
) SWIG_fail
;
5577 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5578 if (!SWIG_IsOK(res1
)) {
5579 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetNext" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5581 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5583 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5584 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
5585 wxPyEndAllowThreads(__tstate
);
5586 if (PyErr_Occurred()) SWIG_fail
;
5588 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5595 SWIGINTERN PyObject
*_wrap_XmlNode_GetChildren(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5596 PyObject
*resultobj
= 0;
5597 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5598 wxXmlNode
*result
= 0 ;
5601 PyObject
*swig_obj
[1] ;
5603 if (!args
) SWIG_fail
;
5605 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5606 if (!SWIG_IsOK(res1
)) {
5607 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetChildren" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5609 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5612 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
5613 wxPyEndAllowThreads(__tstate
);
5614 if (PyErr_Occurred()) SWIG_fail
;
5616 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5623 SWIGINTERN PyObject
*_wrap_XmlNode_GetProperties(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5624 PyObject
*resultobj
= 0;
5625 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5626 wxXmlProperty
*result
= 0 ;
5629 PyObject
*swig_obj
[1] ;
5631 if (!args
) SWIG_fail
;
5633 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5634 if (!SWIG_IsOK(res1
)) {
5635 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetProperties" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5637 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5640 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
5641 wxPyEndAllowThreads(__tstate
);
5642 if (PyErr_Occurred()) SWIG_fail
;
5644 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
5651 SWIGINTERN PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5652 PyObject
*resultobj
= 0;
5653 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5654 wxString
*arg2
= 0 ;
5655 wxString
*arg3
= 0 ;
5659 bool temp2
= false ;
5660 bool temp3
= false ;
5661 PyObject
* obj0
= 0 ;
5662 PyObject
* obj1
= 0 ;
5663 PyObject
* obj2
= 0 ;
5664 char * kwnames
[] = {
5665 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
5668 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
5669 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5670 if (!SWIG_IsOK(res1
)) {
5671 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetPropVal" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5673 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5675 arg2
= wxString_in_helper(obj1
);
5676 if (arg2
== NULL
) SWIG_fail
;
5680 arg3
= wxString_in_helper(obj2
);
5681 if (arg3
== NULL
) SWIG_fail
;
5685 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5686 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
5687 wxPyEndAllowThreads(__tstate
);
5688 if (PyErr_Occurred()) SWIG_fail
;
5692 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5694 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5719 SWIGINTERN PyObject
*_wrap_XmlNode_HasProp(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5720 PyObject
*resultobj
= 0;
5721 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5722 wxString
*arg2
= 0 ;
5726 bool temp2
= false ;
5727 PyObject
* obj0
= 0 ;
5728 PyObject
* obj1
= 0 ;
5729 char * kwnames
[] = {
5730 (char *) "self",(char *) "propName", NULL
5733 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5734 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5735 if (!SWIG_IsOK(res1
)) {
5736 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_HasProp" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5738 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5740 arg2
= wxString_in_helper(obj1
);
5741 if (arg2
== NULL
) SWIG_fail
;
5745 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5746 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
5747 wxPyEndAllowThreads(__tstate
);
5748 if (PyErr_Occurred()) SWIG_fail
;
5751 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5767 SWIGINTERN PyObject
*_wrap_XmlNode_SetType(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5768 PyObject
*resultobj
= 0;
5769 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5770 wxXmlNodeType arg2
;
5775 PyObject
* obj0
= 0 ;
5776 PyObject
* obj1
= 0 ;
5777 char * kwnames
[] = {
5778 (char *) "self",(char *) "type", NULL
5781 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetType",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5782 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5783 if (!SWIG_IsOK(res1
)) {
5784 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_SetType" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5786 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5787 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
5788 if (!SWIG_IsOK(ecode2
)) {
5789 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "XmlNode_SetType" "', expected argument " "2"" of type '" "wxXmlNodeType""'");
5791 arg2
= static_cast< wxXmlNodeType
>(val2
);
5793 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5794 (arg1
)->SetType(arg2
);
5795 wxPyEndAllowThreads(__tstate
);
5796 if (PyErr_Occurred()) SWIG_fail
;
5798 resultobj
= SWIG_Py_Void();
5805 SWIGINTERN PyObject
*_wrap_XmlNode_SetName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5806 PyObject
*resultobj
= 0;
5807 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5808 wxString
*arg2
= 0 ;
5811 bool temp2
= false ;
5812 PyObject
* obj0
= 0 ;
5813 PyObject
* obj1
= 0 ;
5814 char * kwnames
[] = {
5815 (char *) "self",(char *) "name", NULL
5818 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5819 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5820 if (!SWIG_IsOK(res1
)) {
5821 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_SetName" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5823 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5825 arg2
= wxString_in_helper(obj1
);
5826 if (arg2
== NULL
) SWIG_fail
;
5830 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5831 (arg1
)->SetName((wxString
const &)*arg2
);
5832 wxPyEndAllowThreads(__tstate
);
5833 if (PyErr_Occurred()) SWIG_fail
;
5835 resultobj
= SWIG_Py_Void();
5850 SWIGINTERN PyObject
*_wrap_XmlNode_SetContent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5851 PyObject
*resultobj
= 0;
5852 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5853 wxString
*arg2
= 0 ;
5856 bool temp2
= false ;
5857 PyObject
* obj0
= 0 ;
5858 PyObject
* obj1
= 0 ;
5859 char * kwnames
[] = {
5860 (char *) "self",(char *) "con", NULL
5863 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5864 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5865 if (!SWIG_IsOK(res1
)) {
5866 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_SetContent" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5868 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5870 arg2
= wxString_in_helper(obj1
);
5871 if (arg2
== NULL
) SWIG_fail
;
5875 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5876 (arg1
)->SetContent((wxString
const &)*arg2
);
5877 wxPyEndAllowThreads(__tstate
);
5878 if (PyErr_Occurred()) SWIG_fail
;
5880 resultobj
= SWIG_Py_Void();
5895 SWIGINTERN PyObject
*_wrap_XmlNode_SetParent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5896 PyObject
*resultobj
= 0;
5897 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5898 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5903 PyObject
* obj0
= 0 ;
5904 PyObject
* obj1
= 0 ;
5905 char * kwnames
[] = {
5906 (char *) "self",(char *) "parent", NULL
5909 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5910 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5911 if (!SWIG_IsOK(res1
)) {
5912 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_SetParent" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5914 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5915 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5916 if (!SWIG_IsOK(res2
)) {
5917 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_SetParent" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5919 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
5921 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5922 (arg1
)->SetParent(arg2
);
5923 wxPyEndAllowThreads(__tstate
);
5924 if (PyErr_Occurred()) SWIG_fail
;
5926 resultobj
= SWIG_Py_Void();
5933 SWIGINTERN PyObject
*_wrap_XmlNode_SetNext(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5934 PyObject
*resultobj
= 0;
5935 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5936 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5941 PyObject
* obj0
= 0 ;
5942 PyObject
* obj1
= 0 ;
5943 char * kwnames
[] = {
5944 (char *) "self",(char *) "next", NULL
5947 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5948 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5949 if (!SWIG_IsOK(res1
)) {
5950 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_SetNext" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5952 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5953 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5954 if (!SWIG_IsOK(res2
)) {
5955 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_SetNext" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5957 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
5959 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5960 (arg1
)->SetNext(arg2
);
5961 wxPyEndAllowThreads(__tstate
);
5962 if (PyErr_Occurred()) SWIG_fail
;
5964 resultobj
= SWIG_Py_Void();
5971 SWIGINTERN PyObject
*_wrap_XmlNode_SetChildren(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5972 PyObject
*resultobj
= 0;
5973 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5974 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5979 PyObject
* obj0
= 0 ;
5980 PyObject
* obj1
= 0 ;
5981 char * kwnames
[] = {
5982 (char *) "self",(char *) "child", NULL
5985 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5986 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5987 if (!SWIG_IsOK(res1
)) {
5988 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_SetChildren" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5990 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5991 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5992 if (!SWIG_IsOK(res2
)) {
5993 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_SetChildren" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5995 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
5997 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5998 (arg1
)->SetChildren(arg2
);
5999 wxPyEndAllowThreads(__tstate
);
6000 if (PyErr_Occurred()) SWIG_fail
;
6002 resultobj
= SWIG_Py_Void();
6009 SWIGINTERN PyObject
*_wrap_XmlNode_SetProperties(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6010 PyObject
*resultobj
= 0;
6011 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
6012 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
6017 PyObject
* obj0
= 0 ;
6018 PyObject
* obj1
= 0 ;
6019 char * kwnames
[] = {
6020 (char *) "self",(char *) "prop", NULL
6023 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6024 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
6025 if (!SWIG_IsOK(res1
)) {
6026 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_SetProperties" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6028 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
6029 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
6030 if (!SWIG_IsOK(res2
)) {
6031 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_SetProperties" "', expected argument " "2"" of type '" "wxXmlProperty *""'");
6033 arg2
= reinterpret_cast< wxXmlProperty
* >(argp2
);
6035 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6036 (arg1
)->SetProperties(arg2
);
6037 wxPyEndAllowThreads(__tstate
);
6038 if (PyErr_Occurred()) SWIG_fail
;
6040 resultobj
= SWIG_Py_Void();
6047 SWIGINTERN PyObject
*XmlNode_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6049 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
6050 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlNode
, SWIG_NewClientData(obj
));
6051 return SWIG_Py_Void();
6054 SWIGINTERN PyObject
*XmlNode_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6055 return SWIG_Python_InitShadowInstance(args
);
6058 SWIGINTERN PyObject
*_wrap_new_XmlDocument(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6059 PyObject
*resultobj
= 0;
6060 wxString
*arg1
= 0 ;
6061 wxString
const &arg2_defvalue
= wxPyUTF8String
;
6062 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
6063 wxXmlDocument
*result
= 0 ;
6064 bool temp1
= false ;
6065 bool temp2
= false ;
6066 PyObject
* obj0
= 0 ;
6067 PyObject
* obj1
= 0 ;
6068 char * kwnames
[] = {
6069 (char *) "filename",(char *) "encoding", NULL
6072 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6074 arg1
= wxString_in_helper(obj0
);
6075 if (arg1
== NULL
) SWIG_fail
;
6080 arg2
= wxString_in_helper(obj1
);
6081 if (arg2
== NULL
) SWIG_fail
;
6086 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6087 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
6088 wxPyEndAllowThreads(__tstate
);
6089 if (PyErr_Occurred()) SWIG_fail
;
6091 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_NEW
| 0 );
6114 SWIGINTERN PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6115 PyObject
*resultobj
= 0;
6116 wxInputStream
*arg1
= 0 ;
6117 wxString
const &arg2_defvalue
= wxPyUTF8String
;
6118 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
6119 wxXmlDocument
*result
= 0 ;
6120 wxPyInputStream
*temp1
;
6122 bool temp2
= false ;
6123 PyObject
* obj0
= 0 ;
6124 PyObject
* obj1
= 0 ;
6125 char * kwnames
[] = {
6126 (char *) "stream",(char *) "encoding", NULL
6129 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6131 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
6132 arg1
= temp1
->m_wxis
;
6135 PyErr_Clear(); // clear the failure of the wxPyConvert above
6136 arg1
= wxPyCBInputStream_create(obj0
, false);
6138 PyErr_SetString(PyExc_TypeError
, "Expected wx.InputStream or Python file-like object.");
6146 arg2
= wxString_in_helper(obj1
);
6147 if (arg2
== NULL
) SWIG_fail
;
6152 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6153 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
6154 wxPyEndAllowThreads(__tstate
);
6155 if (PyErr_Occurred()) SWIG_fail
;
6157 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_OWN
| 0 );
6159 if (created1
) delete arg1
;
6168 if (created1
) delete arg1
;
6178 SWIGINTERN PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6179 PyObject
*resultobj
= 0;
6180 wxXmlDocument
*result
= 0 ;
6182 if (!SWIG_Python_UnpackTuple(args
,"new_EmptyXmlDocument",0,0,0)) SWIG_fail
;
6184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6185 result
= (wxXmlDocument
*)new wxXmlDocument();
6186 wxPyEndAllowThreads(__tstate
);
6187 if (PyErr_Occurred()) SWIG_fail
;
6189 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_OWN
| 0 );
6196 SWIGINTERN PyObject
*_wrap_delete_XmlDocument(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6197 PyObject
*resultobj
= 0;
6198 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6201 PyObject
*swig_obj
[1] ;
6203 if (!args
) SWIG_fail
;
6205 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_DISOWN
| 0 );
6206 if (!SWIG_IsOK(res1
)) {
6207 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_XmlDocument" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6209 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6211 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6214 wxPyEndAllowThreads(__tstate
);
6215 if (PyErr_Occurred()) SWIG_fail
;
6217 resultobj
= SWIG_Py_Void();
6224 SWIGINTERN PyObject
*_wrap_XmlDocument_Load(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6225 PyObject
*resultobj
= 0;
6226 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6227 wxString
*arg2
= 0 ;
6228 wxString
const &arg3_defvalue
= wxPyUTF8String
;
6229 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
6233 bool temp2
= false ;
6234 bool temp3
= false ;
6235 PyObject
* obj0
= 0 ;
6236 PyObject
* obj1
= 0 ;
6237 PyObject
* obj2
= 0 ;
6238 char * kwnames
[] = {
6239 (char *) "self",(char *) "filename",(char *) "encoding", NULL
6242 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
6243 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6244 if (!SWIG_IsOK(res1
)) {
6245 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_Load" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6247 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6249 arg2
= wxString_in_helper(obj1
);
6250 if (arg2
== NULL
) SWIG_fail
;
6255 arg3
= wxString_in_helper(obj2
);
6256 if (arg3
== NULL
) SWIG_fail
;
6261 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6262 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
6263 wxPyEndAllowThreads(__tstate
);
6264 if (PyErr_Occurred()) SWIG_fail
;
6267 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6291 SWIGINTERN PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6292 PyObject
*resultobj
= 0;
6293 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6294 wxInputStream
*arg2
= 0 ;
6295 wxString
const &arg3_defvalue
= wxPyUTF8String
;
6296 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
6300 wxPyInputStream
*temp2
;
6302 bool temp3
= false ;
6303 PyObject
* obj0
= 0 ;
6304 PyObject
* obj1
= 0 ;
6305 PyObject
* obj2
= 0 ;
6306 char * kwnames
[] = {
6307 (char *) "self",(char *) "stream",(char *) "encoding", NULL
6310 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
6311 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6312 if (!SWIG_IsOK(res1
)) {
6313 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_LoadFromStream" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6315 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6317 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
6318 arg2
= temp2
->m_wxis
;
6321 PyErr_Clear(); // clear the failure of the wxPyConvert above
6322 arg2
= wxPyCBInputStream_create(obj1
, false);
6324 PyErr_SetString(PyExc_TypeError
, "Expected wx.InputStream or Python file-like object.");
6332 arg3
= wxString_in_helper(obj2
);
6333 if (arg3
== NULL
) SWIG_fail
;
6338 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6339 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
6340 wxPyEndAllowThreads(__tstate
);
6341 if (PyErr_Occurred()) SWIG_fail
;
6344 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6347 if (created2
) delete arg2
;
6356 if (created2
) delete arg2
;
6366 SWIGINTERN PyObject
*_wrap_XmlDocument_Save(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6367 PyObject
*resultobj
= 0;
6368 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6369 wxString
*arg2
= 0 ;
6373 bool temp2
= false ;
6374 PyObject
* obj0
= 0 ;
6375 PyObject
* obj1
= 0 ;
6376 char * kwnames
[] = {
6377 (char *) "self",(char *) "filename", NULL
6380 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6381 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6382 if (!SWIG_IsOK(res1
)) {
6383 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_Save" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6385 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6387 arg2
= wxString_in_helper(obj1
);
6388 if (arg2
== NULL
) SWIG_fail
;
6392 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6393 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
6394 wxPyEndAllowThreads(__tstate
);
6395 if (PyErr_Occurred()) SWIG_fail
;
6398 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6414 SWIGINTERN PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6415 PyObject
*resultobj
= 0;
6416 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6417 wxOutputStream
*arg2
= 0 ;
6423 PyObject
* obj0
= 0 ;
6424 PyObject
* obj1
= 0 ;
6425 char * kwnames
[] = {
6426 (char *) "self",(char *) "stream", NULL
6429 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6430 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6431 if (!SWIG_IsOK(res1
)) {
6432 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_SaveToStream" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6434 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6435 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxOutputStream
, 0 );
6436 if (!SWIG_IsOK(res2
)) {
6437 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlDocument_SaveToStream" "', expected argument " "2"" of type '" "wxOutputStream &""'");
6440 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "XmlDocument_SaveToStream" "', expected argument " "2"" of type '" "wxOutputStream &""'");
6442 arg2
= reinterpret_cast< wxOutputStream
* >(argp2
);
6444 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6445 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
6446 wxPyEndAllowThreads(__tstate
);
6447 if (PyErr_Occurred()) SWIG_fail
;
6450 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6458 SWIGINTERN PyObject
*_wrap_XmlDocument_IsOk(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6459 PyObject
*resultobj
= 0;
6460 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6464 PyObject
*swig_obj
[1] ;
6466 if (!args
) SWIG_fail
;
6468 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6469 if (!SWIG_IsOK(res1
)) {
6470 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_IsOk" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6472 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6474 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6475 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
6476 wxPyEndAllowThreads(__tstate
);
6477 if (PyErr_Occurred()) SWIG_fail
;
6480 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6488 SWIGINTERN PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6489 PyObject
*resultobj
= 0;
6490 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6491 wxXmlNode
*result
= 0 ;
6494 PyObject
*swig_obj
[1] ;
6496 if (!args
) SWIG_fail
;
6498 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6499 if (!SWIG_IsOK(res1
)) {
6500 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_GetRoot" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6502 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6504 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6505 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
6506 wxPyEndAllowThreads(__tstate
);
6507 if (PyErr_Occurred()) SWIG_fail
;
6509 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, 0 | 0 );
6516 SWIGINTERN PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6517 PyObject
*resultobj
= 0;
6518 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6522 PyObject
*swig_obj
[1] ;
6524 if (!args
) SWIG_fail
;
6526 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6527 if (!SWIG_IsOK(res1
)) {
6528 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_GetVersion" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6530 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6532 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6533 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
6534 wxPyEndAllowThreads(__tstate
);
6535 if (PyErr_Occurred()) SWIG_fail
;
6539 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
6541 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
6550 SWIGINTERN PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6551 PyObject
*resultobj
= 0;
6552 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6556 PyObject
*swig_obj
[1] ;
6558 if (!args
) SWIG_fail
;
6560 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6561 if (!SWIG_IsOK(res1
)) {
6562 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_GetFileEncoding" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6564 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6566 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6567 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
6568 wxPyEndAllowThreads(__tstate
);
6569 if (PyErr_Occurred()) SWIG_fail
;
6573 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
6575 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
6584 SWIGINTERN PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6585 PyObject
*resultobj
= 0;
6586 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6587 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
6592 PyObject
* obj0
= 0 ;
6593 PyObject
* obj1
= 0 ;
6594 char * kwnames
[] = {
6595 (char *) "self",(char *) "node", NULL
6598 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6599 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6600 if (!SWIG_IsOK(res1
)) {
6601 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_SetRoot" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6603 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6604 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
6605 if (!SWIG_IsOK(res2
)) {
6606 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlDocument_SetRoot" "', expected argument " "2"" of type '" "wxXmlNode *""'");
6608 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
6610 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6611 (arg1
)->SetRoot(arg2
);
6612 wxPyEndAllowThreads(__tstate
);
6613 if (PyErr_Occurred()) SWIG_fail
;
6615 resultobj
= SWIG_Py_Void();
6622 SWIGINTERN PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6623 PyObject
*resultobj
= 0;
6624 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6625 wxString
*arg2
= 0 ;
6628 bool temp2
= false ;
6629 PyObject
* obj0
= 0 ;
6630 PyObject
* obj1
= 0 ;
6631 char * kwnames
[] = {
6632 (char *) "self",(char *) "version", NULL
6635 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6636 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6637 if (!SWIG_IsOK(res1
)) {
6638 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_SetVersion" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6640 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6642 arg2
= wxString_in_helper(obj1
);
6643 if (arg2
== NULL
) SWIG_fail
;
6647 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6648 (arg1
)->SetVersion((wxString
const &)*arg2
);
6649 wxPyEndAllowThreads(__tstate
);
6650 if (PyErr_Occurred()) SWIG_fail
;
6652 resultobj
= SWIG_Py_Void();
6667 SWIGINTERN PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6668 PyObject
*resultobj
= 0;
6669 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6670 wxString
*arg2
= 0 ;
6673 bool temp2
= false ;
6674 PyObject
* obj0
= 0 ;
6675 PyObject
* obj1
= 0 ;
6676 char * kwnames
[] = {
6677 (char *) "self",(char *) "encoding", NULL
6680 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6681 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6682 if (!SWIG_IsOK(res1
)) {
6683 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_SetFileEncoding" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6685 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6687 arg2
= wxString_in_helper(obj1
);
6688 if (arg2
== NULL
) SWIG_fail
;
6692 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6693 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
6694 wxPyEndAllowThreads(__tstate
);
6695 if (PyErr_Occurred()) SWIG_fail
;
6697 resultobj
= SWIG_Py_Void();
6712 SWIGINTERN PyObject
*XmlDocument_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6714 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
6715 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlDocument
, SWIG_NewClientData(obj
));
6716 return SWIG_Py_Void();
6719 SWIGINTERN PyObject
*XmlDocument_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6720 return SWIG_Python_InitShadowInstance(args
);
6723 SWIGINTERN PyObject
*_wrap_new_XmlResourceHandler(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6724 PyObject
*resultobj
= 0;
6725 wxPyXmlResourceHandler
*result
= 0 ;
6727 if (!SWIG_Python_UnpackTuple(args
,"new_XmlResourceHandler",0,0,0)) SWIG_fail
;
6729 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6730 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
6731 wxPyEndAllowThreads(__tstate
);
6732 if (PyErr_Occurred()) SWIG_fail
;
6734 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_NEW
| 0 );
6741 SWIGINTERN PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6742 PyObject
*resultobj
= 0;
6743 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6744 PyObject
*arg2
= (PyObject
*) 0 ;
6745 PyObject
*arg3
= (PyObject
*) 0 ;
6748 PyObject
* obj0
= 0 ;
6749 PyObject
* obj1
= 0 ;
6750 PyObject
* obj2
= 0 ;
6751 char * kwnames
[] = {
6752 (char *) "self",(char *) "self",(char *) "_class", NULL
6755 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
6756 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
6757 if (!SWIG_IsOK(res1
)) {
6758 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
6760 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
6764 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6765 (arg1
)->_setCallbackInfo(arg2
,arg3
);
6766 wxPyEndAllowThreads(__tstate
);
6767 if (PyErr_Occurred()) SWIG_fail
;
6769 resultobj
= SWIG_Py_Void();
6776 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6777 PyObject
*resultobj
= 0;
6778 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6779 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
6780 wxObject
*arg3
= (wxObject
*) 0 ;
6781 wxObject
*arg4
= (wxObject
*) 0 ;
6782 wxObject
*result
= 0 ;
6791 PyObject
* obj0
= 0 ;
6792 PyObject
* obj1
= 0 ;
6793 PyObject
* obj2
= 0 ;
6794 PyObject
* obj3
= 0 ;
6795 char * kwnames
[] = {
6796 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
6799 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
6800 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
6801 if (!SWIG_IsOK(res1
)) {
6802 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
6804 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
6805 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
6806 if (!SWIG_IsOK(res2
)) {
6807 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "2"" of type '" "wxXmlNode *""'");
6809 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
6810 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_wxObject
, 0 | 0 );
6811 if (!SWIG_IsOK(res3
)) {
6812 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "3"" of type '" "wxObject *""'");
6814 arg3
= reinterpret_cast< wxObject
* >(argp3
);
6815 res4
= SWIG_ConvertPtr(obj3
, &argp4
,SWIGTYPE_p_wxObject
, 0 | 0 );
6816 if (!SWIG_IsOK(res4
)) {
6817 SWIG_exception_fail(SWIG_ArgError(res4
), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "4"" of type '" "wxObject *""'");
6819 arg4
= reinterpret_cast< wxObject
* >(argp4
);
6821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6822 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
6823 wxPyEndAllowThreads(__tstate
);
6824 if (PyErr_Occurred()) SWIG_fail
;
6827 resultobj
= wxPyMake_wxObject(result
, (bool)0);
6835 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6836 PyObject
*resultobj
= 0;
6837 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6838 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
6843 PyObject
* obj0
= 0 ;
6844 PyObject
* obj1
= 0 ;
6845 char * kwnames
[] = {
6846 (char *) "self",(char *) "res", NULL
6849 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6850 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
6851 if (!SWIG_IsOK(res1
)) {
6852 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_SetParentResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
6854 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
6855 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
6856 if (!SWIG_IsOK(res2
)) {
6857 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_SetParentResource" "', expected argument " "2"" of type '" "wxXmlResource *""'");
6859 arg2
= reinterpret_cast< wxXmlResource
* >(argp2
);
6861 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6862 (arg1
)->SetParentResource(arg2
);
6863 wxPyEndAllowThreads(__tstate
);
6864 if (PyErr_Occurred()) SWIG_fail
;
6866 resultobj
= SWIG_Py_Void();
6873 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6874 PyObject
*resultobj
= 0;
6875 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6876 wxXmlResource
*result
= 0 ;
6879 PyObject
*swig_obj
[1] ;
6881 if (!args
) SWIG_fail
;
6883 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
6884 if (!SWIG_IsOK(res1
)) {
6885 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
6887 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
6889 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6890 result
= (wxXmlResource
*)(arg1
)->GetResource();
6891 wxPyEndAllowThreads(__tstate
);
6892 if (PyErr_Occurred()) SWIG_fail
;
6894 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlResource
, 0 | 0 );
6901 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6902 PyObject
*resultobj
= 0;
6903 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6904 wxXmlNode
*result
= 0 ;
6907 PyObject
*swig_obj
[1] ;
6909 if (!args
) SWIG_fail
;
6911 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
6912 if (!SWIG_IsOK(res1
)) {
6913 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
6915 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
6917 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6918 result
= (wxXmlNode
*)(arg1
)->GetNode();
6919 wxPyEndAllowThreads(__tstate
);
6920 if (PyErr_Occurred()) SWIG_fail
;
6922 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, 0 | 0 );
6929 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6930 PyObject
*resultobj
= 0;
6931 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6935 PyObject
*swig_obj
[1] ;
6937 if (!args
) SWIG_fail
;
6939 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
6940 if (!SWIG_IsOK(res1
)) {
6941 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetClass" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
6943 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
6945 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6946 result
= (arg1
)->GetClass();
6947 wxPyEndAllowThreads(__tstate
);
6948 if (PyErr_Occurred()) SWIG_fail
;
6952 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
6954 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
6963 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6964 PyObject
*resultobj
= 0;
6965 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6966 wxObject
*result
= 0 ;
6969 PyObject
*swig_obj
[1] ;
6971 if (!args
) SWIG_fail
;
6973 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
6974 if (!SWIG_IsOK(res1
)) {
6975 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetParent" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
6977 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
6979 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6980 result
= (wxObject
*)(arg1
)->GetParent();
6981 wxPyEndAllowThreads(__tstate
);
6982 if (PyErr_Occurred()) SWIG_fail
;
6985 resultobj
= wxPyMake_wxObject(result
, (bool)0);
6993 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6994 PyObject
*resultobj
= 0;
6995 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6996 wxObject
*result
= 0 ;
6999 PyObject
*swig_obj
[1] ;
7001 if (!args
) SWIG_fail
;
7003 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7004 if (!SWIG_IsOK(res1
)) {
7005 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetInstance" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7007 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7009 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7010 result
= (wxObject
*)(arg1
)->GetInstance();
7011 wxPyEndAllowThreads(__tstate
);
7012 if (PyErr_Occurred()) SWIG_fail
;
7015 resultobj
= wxPyMake_wxObject(result
, (bool)0);
7023 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7024 PyObject
*resultobj
= 0;
7025 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7026 wxWindow
*result
= 0 ;
7029 PyObject
*swig_obj
[1] ;
7031 if (!args
) SWIG_fail
;
7033 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7034 if (!SWIG_IsOK(res1
)) {
7035 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetParentAsWindow" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7037 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7040 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
7041 wxPyEndAllowThreads(__tstate
);
7042 if (PyErr_Occurred()) SWIG_fail
;
7045 resultobj
= wxPyMake_wxObject(result
, 0);
7053 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7054 PyObject
*resultobj
= 0;
7055 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7056 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
7057 wxString
*arg3
= 0 ;
7063 bool temp3
= false ;
7064 PyObject
* obj0
= 0 ;
7065 PyObject
* obj1
= 0 ;
7066 PyObject
* obj2
= 0 ;
7067 char * kwnames
[] = {
7068 (char *) "self",(char *) "node",(char *) "classname", NULL
7071 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
7072 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7073 if (!SWIG_IsOK(res1
)) {
7074 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_IsOfClass" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7076 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7077 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
7078 if (!SWIG_IsOK(res2
)) {
7079 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_IsOfClass" "', expected argument " "2"" of type '" "wxXmlNode *""'");
7081 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
7083 arg3
= wxString_in_helper(obj2
);
7084 if (arg3
== NULL
) SWIG_fail
;
7088 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7089 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
7090 wxPyEndAllowThreads(__tstate
);
7091 if (PyErr_Occurred()) SWIG_fail
;
7094 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
7110 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7111 PyObject
*resultobj
= 0;
7112 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7113 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
7119 PyObject
* obj0
= 0 ;
7120 PyObject
* obj1
= 0 ;
7121 char * kwnames
[] = {
7122 (char *) "self",(char *) "node", NULL
7125 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7126 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7127 if (!SWIG_IsOK(res1
)) {
7128 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetNodeContent" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7130 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7131 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
7132 if (!SWIG_IsOK(res2
)) {
7133 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_GetNodeContent" "', expected argument " "2"" of type '" "wxXmlNode *""'");
7135 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
7137 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7138 result
= (arg1
)->GetNodeContent(arg2
);
7139 wxPyEndAllowThreads(__tstate
);
7140 if (PyErr_Occurred()) SWIG_fail
;
7144 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
7146 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
7155 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7156 PyObject
*resultobj
= 0;
7157 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7158 wxString
*arg2
= 0 ;
7162 bool temp2
= false ;
7163 PyObject
* obj0
= 0 ;
7164 PyObject
* obj1
= 0 ;
7165 char * kwnames
[] = {
7166 (char *) "self",(char *) "param", NULL
7169 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7170 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7171 if (!SWIG_IsOK(res1
)) {
7172 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_HasParam" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7174 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7176 arg2
= wxString_in_helper(obj1
);
7177 if (arg2
== NULL
) SWIG_fail
;
7181 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7182 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
7183 wxPyEndAllowThreads(__tstate
);
7184 if (PyErr_Occurred()) SWIG_fail
;
7187 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
7203 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7204 PyObject
*resultobj
= 0;
7205 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7206 wxString
*arg2
= 0 ;
7207 wxXmlNode
*result
= 0 ;
7210 bool temp2
= false ;
7211 PyObject
* obj0
= 0 ;
7212 PyObject
* obj1
= 0 ;
7213 char * kwnames
[] = {
7214 (char *) "self",(char *) "param", NULL
7217 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7218 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7219 if (!SWIG_IsOK(res1
)) {
7220 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetParamNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7222 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7224 arg2
= wxString_in_helper(obj1
);
7225 if (arg2
== NULL
) SWIG_fail
;
7229 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7230 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
7231 wxPyEndAllowThreads(__tstate
);
7232 if (PyErr_Occurred()) SWIG_fail
;
7234 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, 0 | 0 );
7249 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7250 PyObject
*resultobj
= 0;
7251 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7252 wxString
*arg2
= 0 ;
7256 bool temp2
= false ;
7257 PyObject
* obj0
= 0 ;
7258 PyObject
* obj1
= 0 ;
7259 char * kwnames
[] = {
7260 (char *) "self",(char *) "param", NULL
7263 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7264 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7265 if (!SWIG_IsOK(res1
)) {
7266 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetParamValue" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7268 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7270 arg2
= wxString_in_helper(obj1
);
7271 if (arg2
== NULL
) SWIG_fail
;
7275 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7276 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
7277 wxPyEndAllowThreads(__tstate
);
7278 if (PyErr_Occurred()) SWIG_fail
;
7282 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
7284 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
7301 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7302 PyObject
*resultobj
= 0;
7303 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7304 wxString
*arg2
= 0 ;
7308 bool temp2
= false ;
7311 PyObject
* obj0
= 0 ;
7312 PyObject
* obj1
= 0 ;
7313 PyObject
* obj2
= 0 ;
7314 char * kwnames
[] = {
7315 (char *) "self",(char *) "name",(char *) "value", NULL
7318 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
7319 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7320 if (!SWIG_IsOK(res1
)) {
7321 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_AddStyle" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7323 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7325 arg2
= wxString_in_helper(obj1
);
7326 if (arg2
== NULL
) SWIG_fail
;
7329 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
7330 if (!SWIG_IsOK(ecode3
)) {
7331 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResourceHandler_AddStyle" "', expected argument " "3"" of type '" "int""'");
7333 arg3
= static_cast< int >(val3
);
7335 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7336 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
7337 wxPyEndAllowThreads(__tstate
);
7338 if (PyErr_Occurred()) SWIG_fail
;
7340 resultobj
= SWIG_Py_Void();
7355 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7356 PyObject
*resultobj
= 0;
7357 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7360 PyObject
*swig_obj
[1] ;
7362 if (!args
) SWIG_fail
;
7364 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7365 if (!SWIG_IsOK(res1
)) {
7366 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_AddWindowStyles" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7368 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7370 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7371 (arg1
)->AddWindowStyles();
7372 wxPyEndAllowThreads(__tstate
);
7373 if (PyErr_Occurred()) SWIG_fail
;
7375 resultobj
= SWIG_Py_Void();
7382 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7383 PyObject
*resultobj
= 0;
7384 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7385 wxString
const &arg2_defvalue
= wxPyStyleString
;
7386 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
7387 int arg3
= (int) 0 ;
7391 bool temp2
= false ;
7394 PyObject
* obj0
= 0 ;
7395 PyObject
* obj1
= 0 ;
7396 PyObject
* obj2
= 0 ;
7397 char * kwnames
[] = {
7398 (char *) "self",(char *) "param",(char *) "defaults", NULL
7401 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
7402 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7403 if (!SWIG_IsOK(res1
)) {
7404 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetStyle" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7406 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7409 arg2
= wxString_in_helper(obj1
);
7410 if (arg2
== NULL
) SWIG_fail
;
7415 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
7416 if (!SWIG_IsOK(ecode3
)) {
7417 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResourceHandler_GetStyle" "', expected argument " "3"" of type '" "int""'");
7419 arg3
= static_cast< int >(val3
);
7422 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7423 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
7424 wxPyEndAllowThreads(__tstate
);
7425 if (PyErr_Occurred()) SWIG_fail
;
7427 resultobj
= SWIG_From_int(static_cast< int >(result
));
7442 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7443 PyObject
*resultobj
= 0;
7444 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7445 wxString
*arg2
= 0 ;
7446 bool arg3
= (bool) true ;
7450 bool temp2
= false ;
7453 PyObject
* obj0
= 0 ;
7454 PyObject
* obj1
= 0 ;
7455 PyObject
* obj2
= 0 ;
7456 char * kwnames
[] = {
7457 (char *) "self",(char *) "param",(char *) "translate", NULL
7460 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
7461 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7462 if (!SWIG_IsOK(res1
)) {
7463 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetText" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7465 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7467 arg2
= wxString_in_helper(obj1
);
7468 if (arg2
== NULL
) SWIG_fail
;
7472 ecode3
= SWIG_AsVal_bool(obj2
, &val3
);
7473 if (!SWIG_IsOK(ecode3
)) {
7474 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResourceHandler_GetText" "', expected argument " "3"" of type '" "bool""'");
7476 arg3
= static_cast< bool >(val3
);
7479 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7480 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
7481 wxPyEndAllowThreads(__tstate
);
7482 if (PyErr_Occurred()) SWIG_fail
;
7486 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
7488 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
7505 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7506 PyObject
*resultobj
= 0;
7507 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7511 PyObject
*swig_obj
[1] ;
7513 if (!args
) SWIG_fail
;
7515 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7516 if (!SWIG_IsOK(res1
)) {
7517 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetID" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7519 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7521 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7522 result
= (int)(arg1
)->GetID();
7523 wxPyEndAllowThreads(__tstate
);
7524 if (PyErr_Occurred()) SWIG_fail
;
7526 resultobj
= SWIG_From_int(static_cast< int >(result
));
7533 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7534 PyObject
*resultobj
= 0;
7535 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7539 PyObject
*swig_obj
[1] ;
7541 if (!args
) SWIG_fail
;
7543 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7544 if (!SWIG_IsOK(res1
)) {
7545 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetName" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7547 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7549 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7550 result
= (arg1
)->GetName();
7551 wxPyEndAllowThreads(__tstate
);
7552 if (PyErr_Occurred()) SWIG_fail
;
7556 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
7558 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
7567 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7568 PyObject
*resultobj
= 0;
7569 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7570 wxString
*arg2
= 0 ;
7571 bool arg3
= (bool) false ;
7575 bool temp2
= false ;
7578 PyObject
* obj0
= 0 ;
7579 PyObject
* obj1
= 0 ;
7580 PyObject
* obj2
= 0 ;
7581 char * kwnames
[] = {
7582 (char *) "self",(char *) "param",(char *) "defaultv", NULL
7585 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
7586 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7587 if (!SWIG_IsOK(res1
)) {
7588 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetBool" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7590 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7592 arg2
= wxString_in_helper(obj1
);
7593 if (arg2
== NULL
) SWIG_fail
;
7597 ecode3
= SWIG_AsVal_bool(obj2
, &val3
);
7598 if (!SWIG_IsOK(ecode3
)) {
7599 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResourceHandler_GetBool" "', expected argument " "3"" of type '" "bool""'");
7601 arg3
= static_cast< bool >(val3
);
7604 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7605 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
7606 wxPyEndAllowThreads(__tstate
);
7607 if (PyErr_Occurred()) SWIG_fail
;
7610 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
7626 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7627 PyObject
*resultobj
= 0;
7628 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7629 wxString
*arg2
= 0 ;
7630 long arg3
= (long) 0 ;
7634 bool temp2
= false ;
7637 PyObject
* obj0
= 0 ;
7638 PyObject
* obj1
= 0 ;
7639 PyObject
* obj2
= 0 ;
7640 char * kwnames
[] = {
7641 (char *) "self",(char *) "param",(char *) "defaultv", NULL
7644 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
7645 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7646 if (!SWIG_IsOK(res1
)) {
7647 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetLong" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7649 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7651 arg2
= wxString_in_helper(obj1
);
7652 if (arg2
== NULL
) SWIG_fail
;
7656 ecode3
= SWIG_AsVal_long(obj2
, &val3
);
7657 if (!SWIG_IsOK(ecode3
)) {
7658 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResourceHandler_GetLong" "', expected argument " "3"" of type '" "long""'");
7660 arg3
= static_cast< long >(val3
);
7663 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7664 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
7665 wxPyEndAllowThreads(__tstate
);
7666 if (PyErr_Occurred()) SWIG_fail
;
7668 resultobj
= SWIG_From_long(static_cast< long >(result
));
7683 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7684 PyObject
*resultobj
= 0;
7685 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7686 wxString
*arg2
= 0 ;
7690 bool temp2
= false ;
7691 PyObject
* obj0
= 0 ;
7692 PyObject
* obj1
= 0 ;
7693 char * kwnames
[] = {
7694 (char *) "self",(char *) "param", NULL
7697 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7698 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7699 if (!SWIG_IsOK(res1
)) {
7700 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetColour" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7702 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7704 arg2
= wxString_in_helper(obj1
);
7705 if (arg2
== NULL
) SWIG_fail
;
7709 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7710 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
7711 wxPyEndAllowThreads(__tstate
);
7712 if (PyErr_Occurred()) SWIG_fail
;
7714 resultobj
= SWIG_NewPointerObj((new wxColour(static_cast< const wxColour
& >(result
))), SWIGTYPE_p_wxColour
, SWIG_POINTER_OWN
| 0 );
7729 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7730 PyObject
*resultobj
= 0;
7731 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7732 wxString
const &arg2_defvalue
= wxPySizeString
;
7733 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
7737 bool temp2
= false ;
7738 PyObject
* obj0
= 0 ;
7739 PyObject
* obj1
= 0 ;
7740 char * kwnames
[] = {
7741 (char *) "self",(char *) "param", NULL
7744 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7745 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7746 if (!SWIG_IsOK(res1
)) {
7747 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetSize" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7749 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7752 arg2
= wxString_in_helper(obj1
);
7753 if (arg2
== NULL
) SWIG_fail
;
7758 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7759 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
7760 wxPyEndAllowThreads(__tstate
);
7761 if (PyErr_Occurred()) SWIG_fail
;
7763 resultobj
= SWIG_NewPointerObj((new wxSize(static_cast< const wxSize
& >(result
))), SWIGTYPE_p_wxSize
, SWIG_POINTER_OWN
| 0 );
7778 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7779 PyObject
*resultobj
= 0;
7780 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7781 wxString
const &arg2_defvalue
= wxPyPosString
;
7782 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
7786 bool temp2
= false ;
7787 PyObject
* obj0
= 0 ;
7788 PyObject
* obj1
= 0 ;
7789 char * kwnames
[] = {
7790 (char *) "self",(char *) "param", NULL
7793 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7794 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7795 if (!SWIG_IsOK(res1
)) {
7796 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetPosition" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7798 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7801 arg2
= wxString_in_helper(obj1
);
7802 if (arg2
== NULL
) SWIG_fail
;
7807 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7808 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
7809 wxPyEndAllowThreads(__tstate
);
7810 if (PyErr_Occurred()) SWIG_fail
;
7812 resultobj
= SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint
& >(result
))), SWIGTYPE_p_wxPoint
, SWIG_POINTER_OWN
| 0 );
7827 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7828 PyObject
*resultobj
= 0;
7829 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7830 wxString
*arg2
= 0 ;
7831 int arg3
= (int) 0 ;
7835 bool temp2
= false ;
7838 PyObject
* obj0
= 0 ;
7839 PyObject
* obj1
= 0 ;
7840 PyObject
* obj2
= 0 ;
7841 char * kwnames
[] = {
7842 (char *) "self",(char *) "param",(char *) "defaultv", NULL
7845 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
7846 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7847 if (!SWIG_IsOK(res1
)) {
7848 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetDimension" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7850 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7852 arg2
= wxString_in_helper(obj1
);
7853 if (arg2
== NULL
) SWIG_fail
;
7857 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
7858 if (!SWIG_IsOK(ecode3
)) {
7859 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResourceHandler_GetDimension" "', expected argument " "3"" of type '" "int""'");
7861 arg3
= static_cast< int >(val3
);
7864 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7865 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
7866 wxPyEndAllowThreads(__tstate
);
7867 if (PyErr_Occurred()) SWIG_fail
;
7869 resultobj
= SWIG_From_int(static_cast< int >(result
));
7884 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7885 PyObject
*resultobj
= 0;
7886 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7887 wxString
const &arg2_defvalue
= wxPyBitmapString
;
7888 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
7889 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
7890 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
7891 wxSize arg4
= (wxSize
) wxDefaultSize
;
7895 bool temp2
= false ;
7900 PyObject
* obj0
= 0 ;
7901 PyObject
* obj1
= 0 ;
7902 PyObject
* obj2
= 0 ;
7903 PyObject
* obj3
= 0 ;
7904 char * kwnames
[] = {
7905 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
7908 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
7909 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7910 if (!SWIG_IsOK(res1
)) {
7911 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7913 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7916 arg2
= wxString_in_helper(obj1
);
7917 if (arg2
== NULL
) SWIG_fail
;
7922 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxArtClient
, 0 | 0);
7923 if (!SWIG_IsOK(res3
)) {
7924 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "3"" of type '" "wxArtClient const &""'");
7927 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "3"" of type '" "wxArtClient const &""'");
7929 arg3
= reinterpret_cast< wxArtClient
* >(argp3
);
7933 res4
= SWIG_ConvertPtr(obj3
, &argp4
, SWIGTYPE_p_wxSize
, 0 | 0);
7934 if (!SWIG_IsOK(res4
)) {
7935 SWIG_exception_fail(SWIG_ArgError(res4
), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "4"" of type '" "wxSize""'");
7938 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "4"" of type '" "wxSize""'");
7940 wxSize
* temp
= reinterpret_cast< wxSize
* >(argp4
);
7942 if (SWIG_IsNewObj(res4
)) delete temp
;
7947 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7948 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
7949 wxPyEndAllowThreads(__tstate
);
7950 if (PyErr_Occurred()) SWIG_fail
;
7952 resultobj
= SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap
& >(result
))), SWIGTYPE_p_wxBitmap
, SWIG_POINTER_OWN
| 0 );
7967 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7968 PyObject
*resultobj
= 0;
7969 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7970 wxString
const &arg2_defvalue
= wxPyIconString
;
7971 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
7972 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
7973 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
7974 wxSize arg4
= (wxSize
) wxDefaultSize
;
7978 bool temp2
= false ;
7983 PyObject
* obj0
= 0 ;
7984 PyObject
* obj1
= 0 ;
7985 PyObject
* obj2
= 0 ;
7986 PyObject
* obj3
= 0 ;
7987 char * kwnames
[] = {
7988 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
7991 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
7992 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7993 if (!SWIG_IsOK(res1
)) {
7994 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7996 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7999 arg2
= wxString_in_helper(obj1
);
8000 if (arg2
== NULL
) SWIG_fail
;
8005 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxArtClient
, 0 | 0);
8006 if (!SWIG_IsOK(res3
)) {
8007 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "3"" of type '" "wxArtClient const &""'");
8010 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "3"" of type '" "wxArtClient const &""'");
8012 arg3
= reinterpret_cast< wxArtClient
* >(argp3
);
8016 res4
= SWIG_ConvertPtr(obj3
, &argp4
, SWIGTYPE_p_wxSize
, 0 | 0);
8017 if (!SWIG_IsOK(res4
)) {
8018 SWIG_exception_fail(SWIG_ArgError(res4
), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "4"" of type '" "wxSize""'");
8021 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "4"" of type '" "wxSize""'");
8023 wxSize
* temp
= reinterpret_cast< wxSize
* >(argp4
);
8025 if (SWIG_IsNewObj(res4
)) delete temp
;
8030 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8031 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
8032 wxPyEndAllowThreads(__tstate
);
8033 if (PyErr_Occurred()) SWIG_fail
;
8035 resultobj
= SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon
& >(result
))), SWIGTYPE_p_wxIcon
, SWIG_POINTER_OWN
| 0 );
8050 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8051 PyObject
*resultobj
= 0;
8052 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
8053 wxString
const &arg2_defvalue
= wxPyFontString
;
8054 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
8058 bool temp2
= false ;
8059 PyObject
* obj0
= 0 ;
8060 PyObject
* obj1
= 0 ;
8061 char * kwnames
[] = {
8062 (char *) "self",(char *) "param", NULL
8065 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
8066 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
8067 if (!SWIG_IsOK(res1
)) {
8068 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetFont" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8070 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
8073 arg2
= wxString_in_helper(obj1
);
8074 if (arg2
== NULL
) SWIG_fail
;
8079 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8080 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
8081 wxPyEndAllowThreads(__tstate
);
8082 if (PyErr_Occurred()) SWIG_fail
;
8084 resultobj
= SWIG_NewPointerObj((new wxFont(static_cast< const wxFont
& >(result
))), SWIGTYPE_p_wxFont
, SWIG_POINTER_OWN
| 0 );
8099 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8100 PyObject
*resultobj
= 0;
8101 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
8102 wxWindow
*arg2
= (wxWindow
*) 0 ;
8107 PyObject
* obj0
= 0 ;
8108 PyObject
* obj1
= 0 ;
8109 char * kwnames
[] = {
8110 (char *) "self",(char *) "wnd", NULL
8113 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
8114 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
8115 if (!SWIG_IsOK(res1
)) {
8116 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_SetupWindow" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8118 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
8119 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
8120 if (!SWIG_IsOK(res2
)) {
8121 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_SetupWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
8123 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
8125 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8126 (arg1
)->SetupWindow(arg2
);
8127 wxPyEndAllowThreads(__tstate
);
8128 if (PyErr_Occurred()) SWIG_fail
;
8130 resultobj
= SWIG_Py_Void();
8137 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8138 PyObject
*resultobj
= 0;
8139 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
8140 wxObject
*arg2
= (wxObject
*) 0 ;
8141 bool arg3
= (bool) false ;
8148 PyObject
* obj0
= 0 ;
8149 PyObject
* obj1
= 0 ;
8150 PyObject
* obj2
= 0 ;
8151 char * kwnames
[] = {
8152 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
8155 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
8156 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
8157 if (!SWIG_IsOK(res1
)) {
8158 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8160 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
8161 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxObject
, 0 | 0 );
8162 if (!SWIG_IsOK(res2
)) {
8163 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "2"" of type '" "wxObject *""'");
8165 arg2
= reinterpret_cast< wxObject
* >(argp2
);
8167 ecode3
= SWIG_AsVal_bool(obj2
, &val3
);
8168 if (!SWIG_IsOK(ecode3
)) {
8169 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "3"" of type '" "bool""'");
8171 arg3
= static_cast< bool >(val3
);
8174 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8175 (arg1
)->CreateChildren(arg2
,arg3
);
8176 wxPyEndAllowThreads(__tstate
);
8177 if (PyErr_Occurred()) SWIG_fail
;
8179 resultobj
= SWIG_Py_Void();
8186 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8187 PyObject
*resultobj
= 0;
8188 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
8189 wxObject
*arg2
= (wxObject
*) 0 ;
8190 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
8197 PyObject
* obj0
= 0 ;
8198 PyObject
* obj1
= 0 ;
8199 PyObject
* obj2
= 0 ;
8200 char * kwnames
[] = {
8201 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
8204 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
8205 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
8206 if (!SWIG_IsOK(res1
)) {
8207 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8209 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
8210 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxObject
, 0 | 0 );
8211 if (!SWIG_IsOK(res2
)) {
8212 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "2"" of type '" "wxObject *""'");
8214 arg2
= reinterpret_cast< wxObject
* >(argp2
);
8216 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
8217 if (!SWIG_IsOK(res3
)) {
8218 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "3"" of type '" "wxXmlNode *""'");
8220 arg3
= reinterpret_cast< wxXmlNode
* >(argp3
);
8223 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8224 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
8225 wxPyEndAllowThreads(__tstate
);
8226 if (PyErr_Occurred()) SWIG_fail
;
8228 resultobj
= SWIG_Py_Void();
8235 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8236 PyObject
*resultobj
= 0;
8237 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
8238 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
8239 wxObject
*arg3
= (wxObject
*) 0 ;
8240 wxObject
*arg4
= (wxObject
*) NULL
;
8241 wxObject
*result
= 0 ;
8250 PyObject
* obj0
= 0 ;
8251 PyObject
* obj1
= 0 ;
8252 PyObject
* obj2
= 0 ;
8253 PyObject
* obj3
= 0 ;
8254 char * kwnames
[] = {
8255 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
8258 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
8259 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
8260 if (!SWIG_IsOK(res1
)) {
8261 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8263 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
8264 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
8265 if (!SWIG_IsOK(res2
)) {
8266 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "2"" of type '" "wxXmlNode *""'");
8268 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
8269 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_wxObject
, 0 | 0 );
8270 if (!SWIG_IsOK(res3
)) {
8271 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "3"" of type '" "wxObject *""'");
8273 arg3
= reinterpret_cast< wxObject
* >(argp3
);
8275 res4
= SWIG_ConvertPtr(obj3
, &argp4
,SWIGTYPE_p_wxObject
, 0 | 0 );
8276 if (!SWIG_IsOK(res4
)) {
8277 SWIG_exception_fail(SWIG_ArgError(res4
), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "4"" of type '" "wxObject *""'");
8279 arg4
= reinterpret_cast< wxObject
* >(argp4
);
8282 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8283 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
8284 wxPyEndAllowThreads(__tstate
);
8285 if (PyErr_Occurred()) SWIG_fail
;
8288 resultobj
= wxPyMake_wxObject(result
, (bool)0);
8296 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
8297 PyObject
*resultobj
= 0;
8298 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
8299 wxFileSystem
*result
= 0 ;
8302 PyObject
*swig_obj
[1] ;
8304 if (!args
) SWIG_fail
;
8306 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
8307 if (!SWIG_IsOK(res1
)) {
8308 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetCurFileSystem" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8310 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
8312 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8314 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
8315 result
= (wxFileSystem
*) &_result_ref
;
8317 wxPyEndAllowThreads(__tstate
);
8318 if (PyErr_Occurred()) SWIG_fail
;
8320 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxFileSystem
, 0 | 0 );
8327 SWIGINTERN PyObject
*XmlResourceHandler_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
8329 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
8330 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_NewClientData(obj
));
8331 return SWIG_Py_Void();
8334 SWIGINTERN PyObject
*XmlResourceHandler_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
8335 return SWIG_Python_InitShadowInstance(args
);
8338 static PyMethodDef SwigMethods
[] = {
8339 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8340 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8341 { (char *)"delete_XmlResource", (PyCFunction
)_wrap_delete_XmlResource
, METH_O
, NULL
},
8342 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8343 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8344 { (char *)"XmlResource_Unload", (PyCFunction
) _wrap_XmlResource_Unload
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8345 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
)_wrap_XmlResource_InitAllHandlers
, METH_O
, NULL
},
8346 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8347 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8348 { (char *)"XmlResource_ClearHandlers", (PyCFunction
)_wrap_XmlResource_ClearHandlers
, METH_O
, NULL
},
8349 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8350 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8351 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8352 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8353 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8354 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8355 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8356 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8357 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8358 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8359 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8360 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8361 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8362 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8363 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8364 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8365 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8366 { (char *)"XmlResource_GetVersion", (PyCFunction
)_wrap_XmlResource_GetVersion
, METH_O
, NULL
},
8367 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8368 { (char *)"XmlResource_Get", (PyCFunction
)_wrap_XmlResource_Get
, METH_NOARGS
, NULL
},
8369 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8370 { (char *)"XmlResource_GetFlags", (PyCFunction
)_wrap_XmlResource_GetFlags
, METH_O
, NULL
},
8371 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8372 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
, NULL
},
8373 { (char *)"XmlResource_swiginit", XmlResource_swiginit
, METH_VARARGS
, NULL
},
8374 { (char *)"new_XmlSubclassFactory", (PyCFunction
)_wrap_new_XmlSubclassFactory
, METH_NOARGS
, NULL
},
8375 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8376 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
, NULL
},
8377 { (char *)"XmlSubclassFactory_swiginit", XmlSubclassFactory_swiginit
, METH_VARARGS
, NULL
},
8378 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8379 { (char *)"XmlProperty_GetName", (PyCFunction
)_wrap_XmlProperty_GetName
, METH_O
, NULL
},
8380 { (char *)"XmlProperty_GetValue", (PyCFunction
)_wrap_XmlProperty_GetValue
, METH_O
, NULL
},
8381 { (char *)"XmlProperty_GetNext", (PyCFunction
)_wrap_XmlProperty_GetNext
, METH_O
, NULL
},
8382 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8383 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8384 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8385 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
, NULL
},
8386 { (char *)"XmlProperty_swiginit", XmlProperty_swiginit
, METH_VARARGS
, NULL
},
8387 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8388 { (char *)"delete_XmlNode", (PyCFunction
)_wrap_delete_XmlNode
, METH_O
, NULL
},
8389 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8390 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8391 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8392 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8393 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8394 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8395 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8396 { (char *)"XmlNode_GetType", (PyCFunction
)_wrap_XmlNode_GetType
, METH_O
, NULL
},
8397 { (char *)"XmlNode_GetName", (PyCFunction
)_wrap_XmlNode_GetName
, METH_O
, NULL
},
8398 { (char *)"XmlNode_GetContent", (PyCFunction
)_wrap_XmlNode_GetContent
, METH_O
, NULL
},
8399 { (char *)"XmlNode_GetParent", (PyCFunction
)_wrap_XmlNode_GetParent
, METH_O
, NULL
},
8400 { (char *)"XmlNode_GetNext", (PyCFunction
)_wrap_XmlNode_GetNext
, METH_O
, NULL
},
8401 { (char *)"XmlNode_GetChildren", (PyCFunction
)_wrap_XmlNode_GetChildren
, METH_O
, NULL
},
8402 { (char *)"XmlNode_GetProperties", (PyCFunction
)_wrap_XmlNode_GetProperties
, METH_O
, NULL
},
8403 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8404 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8405 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8406 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8407 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8408 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8409 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8410 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8411 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8412 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
, NULL
},
8413 { (char *)"XmlNode_swiginit", XmlNode_swiginit
, METH_VARARGS
, NULL
},
8414 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8415 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8416 { (char *)"new_EmptyXmlDocument", (PyCFunction
)_wrap_new_EmptyXmlDocument
, METH_NOARGS
, NULL
},
8417 { (char *)"delete_XmlDocument", (PyCFunction
)_wrap_delete_XmlDocument
, METH_O
, NULL
},
8418 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8419 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8420 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8421 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8422 { (char *)"XmlDocument_IsOk", (PyCFunction
)_wrap_XmlDocument_IsOk
, METH_O
, NULL
},
8423 { (char *)"XmlDocument_GetRoot", (PyCFunction
)_wrap_XmlDocument_GetRoot
, METH_O
, NULL
},
8424 { (char *)"XmlDocument_GetVersion", (PyCFunction
)_wrap_XmlDocument_GetVersion
, METH_O
, NULL
},
8425 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
)_wrap_XmlDocument_GetFileEncoding
, METH_O
, NULL
},
8426 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8427 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8428 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8429 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
, NULL
},
8430 { (char *)"XmlDocument_swiginit", XmlDocument_swiginit
, METH_VARARGS
, NULL
},
8431 { (char *)"new_XmlResourceHandler", (PyCFunction
)_wrap_new_XmlResourceHandler
, METH_NOARGS
, NULL
},
8432 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8433 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8434 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8435 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
)_wrap_XmlResourceHandler_GetResource
, METH_O
, NULL
},
8436 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
)_wrap_XmlResourceHandler_GetNode
, METH_O
, NULL
},
8437 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
)_wrap_XmlResourceHandler_GetClass
, METH_O
, NULL
},
8438 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
)_wrap_XmlResourceHandler_GetParent
, METH_O
, NULL
},
8439 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
)_wrap_XmlResourceHandler_GetInstance
, METH_O
, NULL
},
8440 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
)_wrap_XmlResourceHandler_GetParentAsWindow
, METH_O
, NULL
},
8441 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8442 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8443 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8444 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8445 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8446 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8447 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
)_wrap_XmlResourceHandler_AddWindowStyles
, METH_O
, NULL
},
8448 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8449 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8450 { (char *)"XmlResourceHandler_GetID", (PyCFunction
)_wrap_XmlResourceHandler_GetID
, METH_O
, NULL
},
8451 { (char *)"XmlResourceHandler_GetName", (PyCFunction
)_wrap_XmlResourceHandler_GetName
, METH_O
, NULL
},
8452 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8453 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8454 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8455 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8456 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8457 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8458 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8459 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8460 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8461 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8462 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8463 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8464 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8465 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
)_wrap_XmlResourceHandler_GetCurFileSystem
, METH_O
, NULL
},
8466 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
, NULL
},
8467 { (char *)"XmlResourceHandler_swiginit", XmlResourceHandler_swiginit
, METH_VARARGS
, NULL
},
8468 { NULL
, NULL
, 0, NULL
}
8472 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
8474 static void *_p_wxControlTo_p_wxWindow(void *x
) {
8475 return (void *)((wxWindow
*) ((wxControl
*) x
));
8477 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
8478 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
8480 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
8481 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
8483 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
8484 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
8486 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
8487 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
8489 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
8490 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
8492 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
8493 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
8495 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
8496 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
8498 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
8499 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
8501 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
8502 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
8504 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
8505 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
8507 static void *_p_wxSizerTo_p_wxObject(void *x
) {
8508 return (void *)((wxObject
*) ((wxSizer
*) x
));
8510 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
8511 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
8513 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
8514 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
8516 static void *_p_wxEventTo_p_wxObject(void *x
) {
8517 return (void *)((wxObject
*) ((wxEvent
*) x
));
8519 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
8520 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
8522 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
8523 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
8525 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
8526 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
8528 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
8529 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
8531 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
8532 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
8534 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
8535 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
8537 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
8538 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
8540 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
8541 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
8543 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
8544 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
8546 static void *_p_wxControlTo_p_wxObject(void *x
) {
8547 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
8549 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
8550 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
8552 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
8553 return (void *)((wxObject
*) ((wxFSFile
*) x
));
8555 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
8556 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
8558 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
8559 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
8561 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
8562 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
8564 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
8565 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
8567 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
8568 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
8570 static void *_p_wxDateEventTo_p_wxObject(void *x
) {
8571 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxDateEvent
*) x
));
8573 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
8574 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
8576 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
8577 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
8579 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
8580 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
8582 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
8583 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
8585 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
8586 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
8588 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
8589 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
8591 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
8592 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
8594 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
8595 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
8597 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
8598 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
8600 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
8601 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
8603 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
8604 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
8606 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
8607 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
8609 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
8610 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
8612 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
8613 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
8615 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
8616 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
8618 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
8619 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
8621 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
8622 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
8624 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x
) {
8625 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPyImageHandler
*) x
));
8627 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
8628 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
8630 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
8631 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
8633 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
8634 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
8636 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
8637 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
8639 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
8640 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
8642 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) {
8643 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStdDialogButtonSizer
*) x
));
8645 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
8646 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
8648 static void *_p_wxImageTo_p_wxObject(void *x
) {
8649 return (void *)((wxObject
*) ((wxImage
*) x
));
8651 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
8652 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
8654 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
8655 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
8657 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
8658 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
8660 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
8661 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
8663 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
8664 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
8666 static void *_p_wxWindowTo_p_wxObject(void *x
) {
8667 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
8669 static void *_p_wxMenuTo_p_wxObject(void *x
) {
8670 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
8672 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
8673 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
8675 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
8676 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
8678 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
8679 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
8681 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
8682 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
8684 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
8685 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
8687 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
8688 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
8690 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
8691 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
8693 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
8694 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
8696 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
8697 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
8699 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
8700 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
8702 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
8703 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
8705 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
8706 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
8708 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
8709 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
8711 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
8712 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
8714 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
8715 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
8717 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
8718 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
8720 static swig_type_info _swigt__p_char
= {"_p_char", "char *", 0, 0, (void*)0, 0};
8721 static swig_type_info _swigt__p_form_ops_t
= {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
8722 static swig_type_info _swigt__p_int
= {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0};
8723 static swig_type_info _swigt__p_unsigned_char
= {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
8724 static swig_type_info _swigt__p_unsigned_int
= {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
8725 static swig_type_info _swigt__p_unsigned_long
= {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
8726 static swig_type_info _swigt__p_wxArtClient
= {"_p_wxArtClient", "wxArtClient *", 0, 0, (void*)0, 0};
8727 static swig_type_info _swigt__p_wxBitmap
= {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
8728 static swig_type_info _swigt__p_wxChar
= {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
8729 static swig_type_info _swigt__p_wxColour
= {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
8730 static swig_type_info _swigt__p_wxDialog
= {"_p_wxDialog", "wxDialog *", 0, 0, (void*)0, 0};
8731 static swig_type_info _swigt__p_wxDuplexMode
= {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
8732 static swig_type_info _swigt__p_wxFileSystem
= {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0};
8733 static swig_type_info _swigt__p_wxFont
= {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
8734 static swig_type_info _swigt__p_wxFrame
= {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0};
8735 static swig_type_info _swigt__p_wxIcon
= {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
8736 static swig_type_info _swigt__p_wxInputStream
= {"_p_wxInputStream", "wxInputStream *", 0, 0, (void*)0, 0};
8737 static swig_type_info _swigt__p_wxObject
= {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
8738 static swig_type_info _swigt__p_wxLayoutConstraints
= {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
8739 static swig_type_info _swigt__p_wxGBSizerItem
= {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
8740 static swig_type_info _swigt__p_wxSizerItem
= {"_p_wxSizerItem", 0, 0, 0, 0, 0};
8741 static swig_type_info _swigt__p_wxScrollEvent
= {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
8742 static swig_type_info _swigt__p_wxIndividualLayoutConstraint
= {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
8743 static swig_type_info _swigt__p_wxStaticBoxSizer
= {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
8744 static swig_type_info _swigt__p_wxBoxSizer
= {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
8745 static swig_type_info _swigt__p_wxSizer
= {"_p_wxSizer", 0, 0, 0, 0, 0};
8746 static swig_type_info _swigt__p_wxGridBagSizer
= {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
8747 static swig_type_info _swigt__p_wxUpdateUIEvent
= {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
8748 static swig_type_info _swigt__p_wxMenu
= {"_p_wxMenu", 0, 0, 0, 0, 0};
8749 static swig_type_info _swigt__p_wxEvent
= {"_p_wxEvent", 0, 0, 0, 0, 0};
8750 static swig_type_info _swigt__p_wxFlexGridSizer
= {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
8751 static swig_type_info _swigt__p_wxGridSizer
= {"_p_wxGridSizer", 0, 0, 0, 0, 0};
8752 static swig_type_info _swigt__p_wxInitDialogEvent
= {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
8753 static swig_type_info _swigt__p_wxPaintEvent
= {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
8754 static swig_type_info _swigt__p_wxNcPaintEvent
= {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
8755 static swig_type_info _swigt__p_wxPaletteChangedEvent
= {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
8756 static swig_type_info _swigt__p_wxDisplayChangedEvent
= {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
8757 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent
= {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
8758 static swig_type_info _swigt__p_wxSysColourChangedEvent
= {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
8759 static swig_type_info _swigt__p_wxControl
= {"_p_wxControl", 0, 0, 0, 0, 0};
8760 static swig_type_info _swigt__p_wxSetCursorEvent
= {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
8761 static swig_type_info _swigt__p_wxFSFile
= {"_p_wxFSFile", 0, 0, 0, 0, 0};
8762 static swig_type_info _swigt__p_wxPySizer
= {"_p_wxPySizer", 0, 0, 0, 0, 0};
8763 static swig_type_info _swigt__p_wxPyEvent
= {"_p_wxPyEvent", 0, 0, 0, 0, 0};
8764 static swig_type_info _swigt__p_wxNotifyEvent
= {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
8765 static swig_type_info _swigt__p_wxShowEvent
= {"_p_wxShowEvent", 0, 0, 0, 0, 0};
8766 static swig_type_info _swigt__p_wxMenuItem
= {"_p_wxMenuItem", 0, 0, 0, 0, 0};
8767 static swig_type_info _swigt__p_wxQueryNewPaletteEvent
= {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
8768 static swig_type_info _swigt__p_wxWindowCreateEvent
= {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
8769 static swig_type_info _swigt__p_wxIdleEvent
= {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
8770 static swig_type_info _swigt__p_wxDateEvent
= {"_p_wxDateEvent", 0, 0, 0, 0, 0};
8771 static swig_type_info _swigt__p_wxMaximizeEvent
= {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
8772 static swig_type_info _swigt__p_wxIconizeEvent
= {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
8773 static swig_type_info _swigt__p_wxActivateEvent
= {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
8774 static swig_type_info _swigt__p_wxMoveEvent
= {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
8775 static swig_type_info _swigt__p_wxSizeEvent
= {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
8776 static swig_type_info _swigt__p_wxPNMHandler
= {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
8777 static swig_type_info _swigt__p_wxJPEGHandler
= {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
8778 static swig_type_info _swigt__p_wxPCXHandler
= {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
8779 static swig_type_info _swigt__p_wxGIFHandler
= {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
8780 static swig_type_info _swigt__p_wxPNGHandler
= {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
8781 static swig_type_info _swigt__p_wxANIHandler
= {"_p_wxANIHandler", 0, 0, 0, 0, 0};
8782 static swig_type_info _swigt__p_wxCURHandler
= {"_p_wxCURHandler", 0, 0, 0, 0, 0};
8783 static swig_type_info _swigt__p_wxICOHandler
= {"_p_wxICOHandler", 0, 0, 0, 0, 0};
8784 static swig_type_info _swigt__p_wxBMPHandler
= {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
8785 static swig_type_info _swigt__p_wxPyImageHandler
= {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
8786 static swig_type_info _swigt__p_wxImageHandler
= {"_p_wxImageHandler", 0, 0, 0, 0, 0};
8787 static swig_type_info _swigt__p_wxXPMHandler
= {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
8788 static swig_type_info _swigt__p_wxTIFFHandler
= {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
8789 static swig_type_info _swigt__p_wxEvtHandler
= {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
8790 static swig_type_info _swigt__p_wxStdDialogButtonSizer
= {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
8791 static swig_type_info _swigt__p_wxAcceleratorTable
= {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
8792 static swig_type_info _swigt__p_wxImage
= {"_p_wxImage", 0, 0, 0, 0, 0};
8793 static swig_type_info _swigt__p_wxScrollWinEvent
= {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
8794 static swig_type_info _swigt__p_wxWindowDestroyEvent
= {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
8795 static swig_type_info _swigt__p_wxNavigationKeyEvent
= {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
8796 static swig_type_info _swigt__p_wxKeyEvent
= {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
8797 static swig_type_info _swigt__p_wxMenuBar
= {"_p_wxMenuBar", 0, 0, 0, 0, 0};
8798 static swig_type_info _swigt__p_wxContextMenuEvent
= {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
8799 static swig_type_info _swigt__p_wxMenuEvent
= {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
8800 static swig_type_info _swigt__p_wxPyApp
= {"_p_wxPyApp", 0, 0, 0, 0, 0};
8801 static swig_type_info _swigt__p_wxCloseEvent
= {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
8802 static swig_type_info _swigt__p_wxMouseEvent
= {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
8803 static swig_type_info _swigt__p_wxEraseEvent
= {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
8804 static swig_type_info _swigt__p_wxCommandEvent
= {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
8805 static swig_type_info _swigt__p_wxPyCommandEvent
= {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
8806 static swig_type_info _swigt__p_wxDropFilesEvent
= {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
8807 static swig_type_info _swigt__p_wxFocusEvent
= {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
8808 static swig_type_info _swigt__p_wxChildFocusEvent
= {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
8809 static swig_type_info _swigt__p_wxControlWithItems
= {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
8810 static swig_type_info _swigt__p_wxPyValidator
= {"_p_wxPyValidator", 0, 0, 0, 0, 0};
8811 static swig_type_info _swigt__p_wxValidator
= {"_p_wxValidator", 0, 0, 0, 0, 0};
8812 static swig_type_info _swigt__p_wxOutputStream
= {"_p_wxOutputStream", "wxOutputStream *", 0, 0, (void*)0, 0};
8813 static swig_type_info _swigt__p_wxPanel
= {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0};
8814 static swig_type_info _swigt__p_wxPaperSize
= {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
8815 static swig_type_info _swigt__p_wxPoint
= {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
8816 static swig_type_info _swigt__p_wxPyXmlResourceHandler
= {"_p_wxPyXmlResourceHandler", "wxPyXmlResourceHandler *", 0, 0, (void*)0, 0};
8817 static swig_type_info _swigt__p_wxPyXmlSubclassFactory
= {"_p_wxPyXmlSubclassFactory", "wxPyXmlSubclassFactory *", 0, 0, (void*)0, 0};
8818 static swig_type_info _swigt__p_wxSize
= {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
8819 static swig_type_info _swigt__p_wxWindow
= {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
8820 static swig_type_info _swigt__p_wxXmlDocument
= {"_p_wxXmlDocument", "wxXmlDocument *", 0, 0, (void*)0, 0};
8821 static swig_type_info _swigt__p_wxXmlNode
= {"_p_wxXmlNode", "wxXmlNode *", 0, 0, (void*)0, 0};
8822 static swig_type_info _swigt__p_wxXmlProperty
= {"_p_wxXmlProperty", "wxXmlProperty *", 0, 0, (void*)0, 0};
8823 static swig_type_info _swigt__p_wxXmlResource
= {"_p_wxXmlResource", "wxXmlResource *", 0, 0, (void*)0, 0};
8825 static swig_type_info
*swig_type_initial
[] = {
8827 &_swigt__p_form_ops_t
,
8829 &_swigt__p_unsigned_char
,
8830 &_swigt__p_unsigned_int
,
8831 &_swigt__p_unsigned_long
,
8832 &_swigt__p_wxANIHandler
,
8833 &_swigt__p_wxAcceleratorTable
,
8834 &_swigt__p_wxActivateEvent
,
8835 &_swigt__p_wxArtClient
,
8836 &_swigt__p_wxBMPHandler
,
8837 &_swigt__p_wxBitmap
,
8838 &_swigt__p_wxBoxSizer
,
8839 &_swigt__p_wxCURHandler
,
8841 &_swigt__p_wxChildFocusEvent
,
8842 &_swigt__p_wxCloseEvent
,
8843 &_swigt__p_wxColour
,
8844 &_swigt__p_wxCommandEvent
,
8845 &_swigt__p_wxContextMenuEvent
,
8846 &_swigt__p_wxControl
,
8847 &_swigt__p_wxControlWithItems
,
8848 &_swigt__p_wxDateEvent
,
8849 &_swigt__p_wxDialog
,
8850 &_swigt__p_wxDisplayChangedEvent
,
8851 &_swigt__p_wxDropFilesEvent
,
8852 &_swigt__p_wxDuplexMode
,
8853 &_swigt__p_wxEraseEvent
,
8855 &_swigt__p_wxEvtHandler
,
8856 &_swigt__p_wxFSFile
,
8857 &_swigt__p_wxFileSystem
,
8858 &_swigt__p_wxFlexGridSizer
,
8859 &_swigt__p_wxFocusEvent
,
8862 &_swigt__p_wxGBSizerItem
,
8863 &_swigt__p_wxGIFHandler
,
8864 &_swigt__p_wxGridBagSizer
,
8865 &_swigt__p_wxGridSizer
,
8866 &_swigt__p_wxICOHandler
,
8868 &_swigt__p_wxIconizeEvent
,
8869 &_swigt__p_wxIdleEvent
,
8871 &_swigt__p_wxImageHandler
,
8872 &_swigt__p_wxIndividualLayoutConstraint
,
8873 &_swigt__p_wxInitDialogEvent
,
8874 &_swigt__p_wxInputStream
,
8875 &_swigt__p_wxJPEGHandler
,
8876 &_swigt__p_wxKeyEvent
,
8877 &_swigt__p_wxLayoutConstraints
,
8878 &_swigt__p_wxMaximizeEvent
,
8880 &_swigt__p_wxMenuBar
,
8881 &_swigt__p_wxMenuEvent
,
8882 &_swigt__p_wxMenuItem
,
8883 &_swigt__p_wxMouseCaptureChangedEvent
,
8884 &_swigt__p_wxMouseEvent
,
8885 &_swigt__p_wxMoveEvent
,
8886 &_swigt__p_wxNavigationKeyEvent
,
8887 &_swigt__p_wxNcPaintEvent
,
8888 &_swigt__p_wxNotifyEvent
,
8889 &_swigt__p_wxObject
,
8890 &_swigt__p_wxOutputStream
,
8891 &_swigt__p_wxPCXHandler
,
8892 &_swigt__p_wxPNGHandler
,
8893 &_swigt__p_wxPNMHandler
,
8894 &_swigt__p_wxPaintEvent
,
8895 &_swigt__p_wxPaletteChangedEvent
,
8897 &_swigt__p_wxPaperSize
,
8900 &_swigt__p_wxPyCommandEvent
,
8901 &_swigt__p_wxPyEvent
,
8902 &_swigt__p_wxPyImageHandler
,
8903 &_swigt__p_wxPySizer
,
8904 &_swigt__p_wxPyValidator
,
8905 &_swigt__p_wxPyXmlResourceHandler
,
8906 &_swigt__p_wxPyXmlSubclassFactory
,
8907 &_swigt__p_wxQueryNewPaletteEvent
,
8908 &_swigt__p_wxScrollEvent
,
8909 &_swigt__p_wxScrollWinEvent
,
8910 &_swigt__p_wxSetCursorEvent
,
8911 &_swigt__p_wxShowEvent
,
8913 &_swigt__p_wxSizeEvent
,
8915 &_swigt__p_wxSizerItem
,
8916 &_swigt__p_wxStaticBoxSizer
,
8917 &_swigt__p_wxStdDialogButtonSizer
,
8918 &_swigt__p_wxSysColourChangedEvent
,
8919 &_swigt__p_wxTIFFHandler
,
8920 &_swigt__p_wxUpdateUIEvent
,
8921 &_swigt__p_wxValidator
,
8922 &_swigt__p_wxWindow
,
8923 &_swigt__p_wxWindowCreateEvent
,
8924 &_swigt__p_wxWindowDestroyEvent
,
8925 &_swigt__p_wxXPMHandler
,
8926 &_swigt__p_wxXmlDocument
,
8927 &_swigt__p_wxXmlNode
,
8928 &_swigt__p_wxXmlProperty
,
8929 &_swigt__p_wxXmlResource
,
8932 static swig_cast_info _swigc__p_char
[] = { {&_swigt__p_char
, 0, 0, 0},{0, 0, 0, 0}};
8933 static swig_cast_info _swigc__p_form_ops_t
[] = { {&_swigt__p_form_ops_t
, 0, 0, 0},{0, 0, 0, 0}};
8934 static swig_cast_info _swigc__p_int
[] = { {&_swigt__p_int
, 0, 0, 0},{0, 0, 0, 0}};
8935 static swig_cast_info _swigc__p_unsigned_char
[] = { {&_swigt__p_unsigned_char
, 0, 0, 0},{0, 0, 0, 0}};
8936 static swig_cast_info _swigc__p_unsigned_int
[] = { {&_swigt__p_unsigned_int
, 0, 0, 0},{0, 0, 0, 0}};
8937 static swig_cast_info _swigc__p_unsigned_long
[] = { {&_swigt__p_unsigned_long
, 0, 0, 0},{0, 0, 0, 0}};
8938 static swig_cast_info _swigc__p_wxArtClient
[] = { {&_swigt__p_wxArtClient
, 0, 0, 0},{0, 0, 0, 0}};
8939 static swig_cast_info _swigc__p_wxBitmap
[] = { {&_swigt__p_wxBitmap
, 0, 0, 0},{0, 0, 0, 0}};
8940 static swig_cast_info _swigc__p_wxChar
[] = { {&_swigt__p_wxChar
, 0, 0, 0},{0, 0, 0, 0}};
8941 static swig_cast_info _swigc__p_wxColour
[] = { {&_swigt__p_wxColour
, 0, 0, 0},{0, 0, 0, 0}};
8942 static swig_cast_info _swigc__p_wxDialog
[] = { {&_swigt__p_wxDialog
, 0, 0, 0},{0, 0, 0, 0}};
8943 static swig_cast_info _swigc__p_wxDuplexMode
[] = { {&_swigt__p_wxDuplexMode
, 0, 0, 0},{0, 0, 0, 0}};
8944 static swig_cast_info _swigc__p_wxFileSystem
[] = { {&_swigt__p_wxFileSystem
, 0, 0, 0},{0, 0, 0, 0}};
8945 static swig_cast_info _swigc__p_wxFont
[] = { {&_swigt__p_wxFont
, 0, 0, 0},{0, 0, 0, 0}};
8946 static swig_cast_info _swigc__p_wxFrame
[] = { {&_swigt__p_wxFrame
, 0, 0, 0},{0, 0, 0, 0}};
8947 static swig_cast_info _swigc__p_wxIcon
[] = { {&_swigt__p_wxIcon
, 0, 0, 0},{0, 0, 0, 0}};
8948 static swig_cast_info _swigc__p_wxInputStream
[] = { {&_swigt__p_wxInputStream
, 0, 0, 0},{0, 0, 0, 0}};
8949 static swig_cast_info _swigc__p_wxLayoutConstraints
[] = {{&_swigt__p_wxLayoutConstraints
, 0, 0, 0},{0, 0, 0, 0}};
8950 static swig_cast_info _swigc__p_wxGBSizerItem
[] = {{&_swigt__p_wxGBSizerItem
, 0, 0, 0},{0, 0, 0, 0}};
8951 static swig_cast_info _swigc__p_wxSizerItem
[] = {{&_swigt__p_wxSizerItem
, 0, 0, 0},{0, 0, 0, 0}};
8952 static swig_cast_info _swigc__p_wxScrollEvent
[] = {{&_swigt__p_wxScrollEvent
, 0, 0, 0},{0, 0, 0, 0}};
8953 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint
[] = {{&_swigt__p_wxIndividualLayoutConstraint
, 0, 0, 0},{0, 0, 0, 0}};
8954 static swig_cast_info _swigc__p_wxStaticBoxSizer
[] = {{&_swigt__p_wxStaticBoxSizer
, 0, 0, 0},{0, 0, 0, 0}};
8955 static swig_cast_info _swigc__p_wxBoxSizer
[] = {{&_swigt__p_wxBoxSizer
, 0, 0, 0},{0, 0, 0, 0}};
8956 static swig_cast_info _swigc__p_wxSizer
[] = {{&_swigt__p_wxSizer
, 0, 0, 0},{0, 0, 0, 0}};
8957 static swig_cast_info _swigc__p_wxGridBagSizer
[] = {{&_swigt__p_wxGridBagSizer
, 0, 0, 0},{0, 0, 0, 0}};
8958 static swig_cast_info _swigc__p_wxUpdateUIEvent
[] = {{&_swigt__p_wxUpdateUIEvent
, 0, 0, 0},{0, 0, 0, 0}};
8959 static swig_cast_info _swigc__p_wxMenu
[] = {{&_swigt__p_wxMenu
, 0, 0, 0},{0, 0, 0, 0}};
8960 static swig_cast_info _swigc__p_wxEvent
[] = {{&_swigt__p_wxEvent
, 0, 0, 0},{0, 0, 0, 0}};
8961 static swig_cast_info _swigc__p_wxFlexGridSizer
[] = {{&_swigt__p_wxFlexGridSizer
, 0, 0, 0},{0, 0, 0, 0}};
8962 static swig_cast_info _swigc__p_wxGridSizer
[] = {{&_swigt__p_wxGridSizer
, 0, 0, 0},{0, 0, 0, 0}};
8963 static swig_cast_info _swigc__p_wxInitDialogEvent
[] = {{&_swigt__p_wxInitDialogEvent
, 0, 0, 0},{0, 0, 0, 0}};
8964 static swig_cast_info _swigc__p_wxPaintEvent
[] = {{&_swigt__p_wxPaintEvent
, 0, 0, 0},{0, 0, 0, 0}};
8965 static swig_cast_info _swigc__p_wxNcPaintEvent
[] = {{&_swigt__p_wxNcPaintEvent
, 0, 0, 0},{0, 0, 0, 0}};
8966 static swig_cast_info _swigc__p_wxPaletteChangedEvent
[] = {{&_swigt__p_wxPaletteChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
8967 static swig_cast_info _swigc__p_wxDisplayChangedEvent
[] = {{&_swigt__p_wxDisplayChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
8968 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent
[] = {{&_swigt__p_wxMouseCaptureChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
8969 static swig_cast_info _swigc__p_wxSysColourChangedEvent
[] = {{&_swigt__p_wxSysColourChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
8970 static swig_cast_info _swigc__p_wxControl
[] = {{&_swigt__p_wxControl
, 0, 0, 0},{0, 0, 0, 0}};
8971 static swig_cast_info _swigc__p_wxSetCursorEvent
[] = {{&_swigt__p_wxSetCursorEvent
, 0, 0, 0},{0, 0, 0, 0}};
8972 static swig_cast_info _swigc__p_wxFSFile
[] = {{&_swigt__p_wxFSFile
, 0, 0, 0},{0, 0, 0, 0}};
8973 static swig_cast_info _swigc__p_wxPySizer
[] = {{&_swigt__p_wxPySizer
, 0, 0, 0},{0, 0, 0, 0}};
8974 static swig_cast_info _swigc__p_wxPyEvent
[] = {{&_swigt__p_wxPyEvent
, 0, 0, 0},{0, 0, 0, 0}};
8975 static swig_cast_info _swigc__p_wxNotifyEvent
[] = {{&_swigt__p_wxNotifyEvent
, 0, 0, 0},{0, 0, 0, 0}};
8976 static swig_cast_info _swigc__p_wxShowEvent
[] = {{&_swigt__p_wxShowEvent
, 0, 0, 0},{0, 0, 0, 0}};
8977 static swig_cast_info _swigc__p_wxMenuItem
[] = {{&_swigt__p_wxMenuItem
, 0, 0, 0},{0, 0, 0, 0}};
8978 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent
[] = {{&_swigt__p_wxQueryNewPaletteEvent
, 0, 0, 0},{0, 0, 0, 0}};
8979 static swig_cast_info _swigc__p_wxWindowCreateEvent
[] = {{&_swigt__p_wxWindowCreateEvent
, 0, 0, 0},{0, 0, 0, 0}};
8980 static swig_cast_info _swigc__p_wxIdleEvent
[] = {{&_swigt__p_wxIdleEvent
, 0, 0, 0},{0, 0, 0, 0}};
8981 static swig_cast_info _swigc__p_wxDateEvent
[] = {{&_swigt__p_wxDateEvent
, 0, 0, 0},{0, 0, 0, 0}};
8982 static swig_cast_info _swigc__p_wxMaximizeEvent
[] = {{&_swigt__p_wxMaximizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
8983 static swig_cast_info _swigc__p_wxIconizeEvent
[] = {{&_swigt__p_wxIconizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
8984 static swig_cast_info _swigc__p_wxActivateEvent
[] = {{&_swigt__p_wxActivateEvent
, 0, 0, 0},{0, 0, 0, 0}};
8985 static swig_cast_info _swigc__p_wxMoveEvent
[] = {{&_swigt__p_wxMoveEvent
, 0, 0, 0},{0, 0, 0, 0}};
8986 static swig_cast_info _swigc__p_wxSizeEvent
[] = {{&_swigt__p_wxSizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
8987 static swig_cast_info _swigc__p_wxPNMHandler
[] = {{&_swigt__p_wxPNMHandler
, 0, 0, 0},{0, 0, 0, 0}};
8988 static swig_cast_info _swigc__p_wxJPEGHandler
[] = {{&_swigt__p_wxJPEGHandler
, 0, 0, 0},{0, 0, 0, 0}};
8989 static swig_cast_info _swigc__p_wxPCXHandler
[] = {{&_swigt__p_wxPCXHandler
, 0, 0, 0},{0, 0, 0, 0}};
8990 static swig_cast_info _swigc__p_wxGIFHandler
[] = {{&_swigt__p_wxGIFHandler
, 0, 0, 0},{0, 0, 0, 0}};
8991 static swig_cast_info _swigc__p_wxPNGHandler
[] = {{&_swigt__p_wxPNGHandler
, 0, 0, 0},{0, 0, 0, 0}};
8992 static swig_cast_info _swigc__p_wxANIHandler
[] = {{&_swigt__p_wxANIHandler
, 0, 0, 0},{0, 0, 0, 0}};
8993 static swig_cast_info _swigc__p_wxCURHandler
[] = {{&_swigt__p_wxCURHandler
, 0, 0, 0},{0, 0, 0, 0}};
8994 static swig_cast_info _swigc__p_wxICOHandler
[] = {{&_swigt__p_wxICOHandler
, 0, 0, 0},{0, 0, 0, 0}};
8995 static swig_cast_info _swigc__p_wxBMPHandler
[] = {{&_swigt__p_wxBMPHandler
, 0, 0, 0},{0, 0, 0, 0}};
8996 static swig_cast_info _swigc__p_wxPyImageHandler
[] = {{&_swigt__p_wxPyImageHandler
, 0, 0, 0},{0, 0, 0, 0}};
8997 static swig_cast_info _swigc__p_wxImageHandler
[] = {{&_swigt__p_wxImageHandler
, 0, 0, 0},{0, 0, 0, 0}};
8998 static swig_cast_info _swigc__p_wxXPMHandler
[] = {{&_swigt__p_wxXPMHandler
, 0, 0, 0},{0, 0, 0, 0}};
8999 static swig_cast_info _swigc__p_wxTIFFHandler
[] = {{&_swigt__p_wxTIFFHandler
, 0, 0, 0},{0, 0, 0, 0}};
9000 static swig_cast_info _swigc__p_wxEvtHandler
[] = {{&_swigt__p_wxEvtHandler
, 0, 0, 0},{0, 0, 0, 0}};
9001 static swig_cast_info _swigc__p_wxStdDialogButtonSizer
[] = {{&_swigt__p_wxStdDialogButtonSizer
, 0, 0, 0},{0, 0, 0, 0}};
9002 static swig_cast_info _swigc__p_wxAcceleratorTable
[] = {{&_swigt__p_wxAcceleratorTable
, 0, 0, 0},{0, 0, 0, 0}};
9003 static swig_cast_info _swigc__p_wxImage
[] = {{&_swigt__p_wxImage
, 0, 0, 0},{0, 0, 0, 0}};
9004 static swig_cast_info _swigc__p_wxScrollWinEvent
[] = {{&_swigt__p_wxScrollWinEvent
, 0, 0, 0},{0, 0, 0, 0}};
9005 static swig_cast_info _swigc__p_wxWindowDestroyEvent
[] = {{&_swigt__p_wxWindowDestroyEvent
, 0, 0, 0},{0, 0, 0, 0}};
9006 static swig_cast_info _swigc__p_wxNavigationKeyEvent
[] = {{&_swigt__p_wxNavigationKeyEvent
, 0, 0, 0},{0, 0, 0, 0}};
9007 static swig_cast_info _swigc__p_wxKeyEvent
[] = {{&_swigt__p_wxKeyEvent
, 0, 0, 0},{0, 0, 0, 0}};
9008 static swig_cast_info _swigc__p_wxMenuBar
[] = {{&_swigt__p_wxMenuBar
, 0, 0, 0},{0, 0, 0, 0}};
9009 static swig_cast_info _swigc__p_wxContextMenuEvent
[] = {{&_swigt__p_wxContextMenuEvent
, 0, 0, 0},{0, 0, 0, 0}};
9010 static swig_cast_info _swigc__p_wxMenuEvent
[] = {{&_swigt__p_wxMenuEvent
, 0, 0, 0},{0, 0, 0, 0}};
9011 static swig_cast_info _swigc__p_wxPyApp
[] = {{&_swigt__p_wxPyApp
, 0, 0, 0},{0, 0, 0, 0}};
9012 static swig_cast_info _swigc__p_wxCloseEvent
[] = {{&_swigt__p_wxCloseEvent
, 0, 0, 0},{0, 0, 0, 0}};
9013 static swig_cast_info _swigc__p_wxMouseEvent
[] = {{&_swigt__p_wxMouseEvent
, 0, 0, 0},{0, 0, 0, 0}};
9014 static swig_cast_info _swigc__p_wxEraseEvent
[] = {{&_swigt__p_wxEraseEvent
, 0, 0, 0},{0, 0, 0, 0}};
9015 static swig_cast_info _swigc__p_wxCommandEvent
[] = {{&_swigt__p_wxCommandEvent
, 0, 0, 0},{0, 0, 0, 0}};
9016 static swig_cast_info _swigc__p_wxPyCommandEvent
[] = {{&_swigt__p_wxPyCommandEvent
, 0, 0, 0},{0, 0, 0, 0}};
9017 static swig_cast_info _swigc__p_wxDropFilesEvent
[] = {{&_swigt__p_wxDropFilesEvent
, 0, 0, 0},{0, 0, 0, 0}};
9018 static swig_cast_info _swigc__p_wxFocusEvent
[] = {{&_swigt__p_wxFocusEvent
, 0, 0, 0},{0, 0, 0, 0}};
9019 static swig_cast_info _swigc__p_wxChildFocusEvent
[] = {{&_swigt__p_wxChildFocusEvent
, 0, 0, 0},{0, 0, 0, 0}};
9020 static swig_cast_info _swigc__p_wxControlWithItems
[] = {{&_swigt__p_wxControlWithItems
, 0, 0, 0},{0, 0, 0, 0}};
9021 static swig_cast_info _swigc__p_wxPyValidator
[] = {{&_swigt__p_wxPyValidator
, 0, 0, 0},{0, 0, 0, 0}};
9022 static swig_cast_info _swigc__p_wxValidator
[] = {{&_swigt__p_wxValidator
, 0, 0, 0},{0, 0, 0, 0}};
9023 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}};
9024 static swig_cast_info _swigc__p_wxOutputStream
[] = { {&_swigt__p_wxOutputStream
, 0, 0, 0},{0, 0, 0, 0}};
9025 static swig_cast_info _swigc__p_wxPanel
[] = { {&_swigt__p_wxPanel
, 0, 0, 0},{0, 0, 0, 0}};
9026 static swig_cast_info _swigc__p_wxPaperSize
[] = { {&_swigt__p_wxPaperSize
, 0, 0, 0},{0, 0, 0, 0}};
9027 static swig_cast_info _swigc__p_wxPoint
[] = { {&_swigt__p_wxPoint
, 0, 0, 0},{0, 0, 0, 0}};
9028 static swig_cast_info _swigc__p_wxPyXmlResourceHandler
[] = { {&_swigt__p_wxPyXmlResourceHandler
, 0, 0, 0},{0, 0, 0, 0}};
9029 static swig_cast_info _swigc__p_wxPyXmlSubclassFactory
[] = { {&_swigt__p_wxPyXmlSubclassFactory
, 0, 0, 0},{0, 0, 0, 0}};
9030 static swig_cast_info _swigc__p_wxSize
[] = { {&_swigt__p_wxSize
, 0, 0, 0},{0, 0, 0, 0}};
9031 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}};
9032 static swig_cast_info _swigc__p_wxXmlDocument
[] = { {&_swigt__p_wxXmlDocument
, 0, 0, 0},{0, 0, 0, 0}};
9033 static swig_cast_info _swigc__p_wxXmlNode
[] = { {&_swigt__p_wxXmlNode
, 0, 0, 0},{0, 0, 0, 0}};
9034 static swig_cast_info _swigc__p_wxXmlProperty
[] = { {&_swigt__p_wxXmlProperty
, 0, 0, 0},{0, 0, 0, 0}};
9035 static swig_cast_info _swigc__p_wxXmlResource
[] = { {&_swigt__p_wxXmlResource
, 0, 0, 0},{0, 0, 0, 0}};
9037 static swig_cast_info
*swig_cast_initial
[] = {
9039 _swigc__p_form_ops_t
,
9041 _swigc__p_unsigned_char
,
9042 _swigc__p_unsigned_int
,
9043 _swigc__p_unsigned_long
,
9044 _swigc__p_wxANIHandler
,
9045 _swigc__p_wxAcceleratorTable
,
9046 _swigc__p_wxActivateEvent
,
9047 _swigc__p_wxArtClient
,
9048 _swigc__p_wxBMPHandler
,
9050 _swigc__p_wxBoxSizer
,
9051 _swigc__p_wxCURHandler
,
9053 _swigc__p_wxChildFocusEvent
,
9054 _swigc__p_wxCloseEvent
,
9056 _swigc__p_wxCommandEvent
,
9057 _swigc__p_wxContextMenuEvent
,
9058 _swigc__p_wxControl
,
9059 _swigc__p_wxControlWithItems
,
9060 _swigc__p_wxDateEvent
,
9062 _swigc__p_wxDisplayChangedEvent
,
9063 _swigc__p_wxDropFilesEvent
,
9064 _swigc__p_wxDuplexMode
,
9065 _swigc__p_wxEraseEvent
,
9067 _swigc__p_wxEvtHandler
,
9069 _swigc__p_wxFileSystem
,
9070 _swigc__p_wxFlexGridSizer
,
9071 _swigc__p_wxFocusEvent
,
9074 _swigc__p_wxGBSizerItem
,
9075 _swigc__p_wxGIFHandler
,
9076 _swigc__p_wxGridBagSizer
,
9077 _swigc__p_wxGridSizer
,
9078 _swigc__p_wxICOHandler
,
9080 _swigc__p_wxIconizeEvent
,
9081 _swigc__p_wxIdleEvent
,
9083 _swigc__p_wxImageHandler
,
9084 _swigc__p_wxIndividualLayoutConstraint
,
9085 _swigc__p_wxInitDialogEvent
,
9086 _swigc__p_wxInputStream
,
9087 _swigc__p_wxJPEGHandler
,
9088 _swigc__p_wxKeyEvent
,
9089 _swigc__p_wxLayoutConstraints
,
9090 _swigc__p_wxMaximizeEvent
,
9092 _swigc__p_wxMenuBar
,
9093 _swigc__p_wxMenuEvent
,
9094 _swigc__p_wxMenuItem
,
9095 _swigc__p_wxMouseCaptureChangedEvent
,
9096 _swigc__p_wxMouseEvent
,
9097 _swigc__p_wxMoveEvent
,
9098 _swigc__p_wxNavigationKeyEvent
,
9099 _swigc__p_wxNcPaintEvent
,
9100 _swigc__p_wxNotifyEvent
,
9102 _swigc__p_wxOutputStream
,
9103 _swigc__p_wxPCXHandler
,
9104 _swigc__p_wxPNGHandler
,
9105 _swigc__p_wxPNMHandler
,
9106 _swigc__p_wxPaintEvent
,
9107 _swigc__p_wxPaletteChangedEvent
,
9109 _swigc__p_wxPaperSize
,
9112 _swigc__p_wxPyCommandEvent
,
9113 _swigc__p_wxPyEvent
,
9114 _swigc__p_wxPyImageHandler
,
9115 _swigc__p_wxPySizer
,
9116 _swigc__p_wxPyValidator
,
9117 _swigc__p_wxPyXmlResourceHandler
,
9118 _swigc__p_wxPyXmlSubclassFactory
,
9119 _swigc__p_wxQueryNewPaletteEvent
,
9120 _swigc__p_wxScrollEvent
,
9121 _swigc__p_wxScrollWinEvent
,
9122 _swigc__p_wxSetCursorEvent
,
9123 _swigc__p_wxShowEvent
,
9125 _swigc__p_wxSizeEvent
,
9127 _swigc__p_wxSizerItem
,
9128 _swigc__p_wxStaticBoxSizer
,
9129 _swigc__p_wxStdDialogButtonSizer
,
9130 _swigc__p_wxSysColourChangedEvent
,
9131 _swigc__p_wxTIFFHandler
,
9132 _swigc__p_wxUpdateUIEvent
,
9133 _swigc__p_wxValidator
,
9135 _swigc__p_wxWindowCreateEvent
,
9136 _swigc__p_wxWindowDestroyEvent
,
9137 _swigc__p_wxXPMHandler
,
9138 _swigc__p_wxXmlDocument
,
9139 _swigc__p_wxXmlNode
,
9140 _swigc__p_wxXmlProperty
,
9141 _swigc__p_wxXmlResource
,
9145 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
9147 static swig_const_info swig_const_table
[] = {
9148 {0, 0, 0, 0.0, 0, 0}};
9153 /* -----------------------------------------------------------------------------
9154 * Type initialization:
9155 * This problem is tough by the requirement that no dynamic
9156 * memory is used. Also, since swig_type_info structures store pointers to
9157 * swig_cast_info structures and swig_cast_info structures store pointers back
9158 * to swig_type_info structures, we need some lookup code at initialization.
9159 * The idea is that swig generates all the structures that are needed.
9160 * The runtime then collects these partially filled structures.
9161 * The SWIG_InitializeModule function takes these initial arrays out of
9162 * swig_module, and does all the lookup, filling in the swig_module.types
9163 * array with the correct data and linking the correct swig_cast_info
9164 * structures together.
9166 * The generated swig_type_info structures are assigned staticly to an initial
9167 * array. We just loop though that array, and handle each type individually.
9168 * First we lookup if this type has been already loaded, and if so, use the
9169 * loaded structure instead of the generated one. Then we have to fill in the
9170 * cast linked list. The cast data is initially stored in something like a
9171 * two-dimensional array. Each row corresponds to a type (there are the same
9172 * number of rows as there are in the swig_type_initial array). Each entry in
9173 * a column is one of the swig_cast_info structures for that type.
9174 * The cast_initial array is actually an array of arrays, because each row has
9175 * a variable number of columns. So to actually build the cast linked list,
9176 * we find the array of casts associated with the type, and loop through it
9177 * adding the casts to the list. The one last trick we need to do is making
9178 * sure the type pointer in the swig_cast_info struct is correct.
9180 * First off, we lookup the cast->type name to see if it is already loaded.
9181 * There are three cases to handle:
9182 * 1) If the cast->type has already been loaded AND the type we are adding
9183 * casting info to has not been loaded (it is in this module), THEN we
9184 * replace the cast->type pointer with the type pointer that has already
9186 * 2) If BOTH types (the one we are adding casting info to, and the
9187 * cast->type) are loaded, THEN the cast info has already been loaded by
9188 * the previous module so we just ignore it.
9189 * 3) Finally, if cast->type has not already been loaded, then we add that
9190 * swig_cast_info to the linked list (because the cast->type) pointer will
9192 * ----------------------------------------------------------------------------- */
9202 #define SWIGRUNTIME_DEBUG
9206 SWIG_InitializeModule(void *clientdata
) {
9208 swig_module_info
*module_head
;
9209 static int init_run
= 0;
9211 clientdata
= clientdata
;
9213 if (init_run
) return;
9216 /* Initialize the swig_module */
9217 swig_module
.type_initial
= swig_type_initial
;
9218 swig_module
.cast_initial
= swig_cast_initial
;
9220 /* Try and load any already created modules */
9221 module_head
= SWIG_GetModule(clientdata
);
9223 swig_module
.next
= module_head
->next
;
9224 module_head
->next
= &swig_module
;
9226 /* This is the first module loaded */
9227 swig_module
.next
= &swig_module
;
9228 SWIG_SetModule(clientdata
, &swig_module
);
9231 /* Now work on filling in swig_module.types */
9232 #ifdef SWIGRUNTIME_DEBUG
9233 printf("SWIG_InitializeModule: size %d\n", swig_module
.size
);
9235 for (i
= 0; i
< swig_module
.size
; ++i
) {
9236 swig_type_info
*type
= 0;
9237 swig_type_info
*ret
;
9238 swig_cast_info
*cast
;
9240 #ifdef SWIGRUNTIME_DEBUG
9241 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
9244 /* if there is another module already loaded */
9245 if (swig_module
.next
!= &swig_module
) {
9246 type
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, swig_module
.type_initial
[i
]->name
);
9249 /* Overwrite clientdata field */
9250 #ifdef SWIGRUNTIME_DEBUG
9251 printf("SWIG_InitializeModule: found type %s\n", type
->name
);
9253 if (swig_module
.type_initial
[i
]->clientdata
) {
9254 type
->clientdata
= swig_module
.type_initial
[i
]->clientdata
;
9255 #ifdef SWIGRUNTIME_DEBUG
9256 printf("SWIG_InitializeModule: found and overwrite type %s \n", type
->name
);
9260 type
= swig_module
.type_initial
[i
];
9263 /* Insert casting types */
9264 cast
= swig_module
.cast_initial
[i
];
9265 while (cast
->type
) {
9266 /* Don't need to add information already in the list */
9268 #ifdef SWIGRUNTIME_DEBUG
9269 printf("SWIG_InitializeModule: look cast %s\n", cast
->type
->name
);
9271 if (swig_module
.next
!= &swig_module
) {
9272 ret
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, cast
->type
->name
);
9273 #ifdef SWIGRUNTIME_DEBUG
9274 if (ret
) printf("SWIG_InitializeModule: found cast %s\n", ret
->name
);
9278 if (type
== swig_module
.type_initial
[i
]) {
9279 #ifdef SWIGRUNTIME_DEBUG
9280 printf("SWIG_InitializeModule: skip old type %s\n", ret
->name
);
9285 /* Check for casting already in the list */
9286 swig_cast_info
*ocast
= SWIG_TypeCheck(ret
->name
, type
);
9287 #ifdef SWIGRUNTIME_DEBUG
9288 if (ocast
) printf("SWIG_InitializeModule: skip old cast %s\n", ret
->name
);
9290 if (!ocast
) ret
= 0;
9295 #ifdef SWIGRUNTIME_DEBUG
9296 printf("SWIG_InitializeModule: adding cast %s\n", cast
->type
->name
);
9299 type
->cast
->prev
= cast
;
9300 cast
->next
= type
->cast
;
9306 /* Set entry in modules->types array equal to the type */
9307 swig_module
.types
[i
] = type
;
9309 swig_module
.types
[i
] = 0;
9311 #ifdef SWIGRUNTIME_DEBUG
9312 printf("**** SWIG_InitializeModule: Cast List ******\n");
9313 for (i
= 0; i
< swig_module
.size
; ++i
) {
9315 swig_cast_info
*cast
= swig_module
.cast_initial
[i
];
9316 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
9317 while (cast
->type
) {
9318 printf("SWIG_InitializeModule: cast type %s\n", cast
->type
->name
);
9322 printf("---- Total casts: %d\n",j
);
9324 printf("**** SWIG_InitializeModule: Cast List ******\n");
9328 /* This function will propagate the clientdata field of type to
9329 * any new swig_type_info structures that have been added into the list
9330 * of equivalent types. It is like calling
9331 * SWIG_TypeClientData(type, clientdata) a second time.
9334 SWIG_PropagateClientData(void) {
9336 swig_cast_info
*equiv
;
9337 static int init_run
= 0;
9339 if (init_run
) return;
9342 for (i
= 0; i
< swig_module
.size
; i
++) {
9343 if (swig_module
.types
[i
]->clientdata
) {
9344 equiv
= swig_module
.types
[i
]->cast
;
9346 if (!equiv
->converter
) {
9347 if (equiv
->type
&& !equiv
->type
->clientdata
)
9348 SWIG_TypeClientData(equiv
->type
, swig_module
.types
[i
]->clientdata
);
9350 equiv
= equiv
->next
;
9370 /* Python-specific SWIG API */
9371 #define SWIG_newvarlink() SWIG_Python_newvarlink()
9372 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
9373 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
9375 /* -----------------------------------------------------------------------------
9376 * global variable support code.
9377 * ----------------------------------------------------------------------------- */
9379 typedef struct swig_globalvar
{
9380 char *name
; /* Name of global variable */
9381 PyObject
*(*get_attr
)(void); /* Return the current value */
9382 int (*set_attr
)(PyObject
*); /* Set the value */
9383 struct swig_globalvar
*next
;
9386 typedef struct swig_varlinkobject
{
9388 swig_globalvar
*vars
;
9389 } swig_varlinkobject
;
9391 SWIGINTERN PyObject
*
9392 swig_varlink_repr(swig_varlinkobject
*SWIGUNUSEDPARM(v
)) {
9393 return PyString_FromString("<Swig global variables>");
9396 SWIGINTERN PyObject
*
9397 swig_varlink_str(swig_varlinkobject
*v
) {
9398 PyObject
*str
= PyString_FromString("(");
9399 swig_globalvar
*var
;
9400 for (var
= v
->vars
; var
; var
=var
->next
) {
9401 PyString_ConcatAndDel(&str
,PyString_FromString(var
->name
));
9402 if (var
->next
) PyString_ConcatAndDel(&str
,PyString_FromString(", "));
9404 PyString_ConcatAndDel(&str
,PyString_FromString(")"));
9409 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int SWIGUNUSEDPARM(flags
)) {
9410 PyObject
*str
= swig_varlink_str(v
);
9411 fprintf(fp
,"Swig global variables ");
9412 fprintf(fp
,"%s\n", PyString_AsString(str
));
9418 swig_varlink_dealloc(swig_varlinkobject
*v
) {
9419 swig_globalvar
*var
= v
->vars
;
9421 swig_globalvar
*n
= var
->next
;
9428 SWIGINTERN PyObject
*
9429 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
9430 PyObject
*res
= NULL
;
9431 swig_globalvar
*var
= v
->vars
;
9433 if (strcmp(var
->name
,n
) == 0) {
9434 res
= (*var
->get_attr
)();
9439 if (res
== NULL
&& !PyErr_Occurred()) {
9440 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
9446 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
9448 swig_globalvar
*var
= v
->vars
;
9450 if (strcmp(var
->name
,n
) == 0) {
9451 res
= (*var
->set_attr
)(p
);
9456 if (res
== 1 && !PyErr_Occurred()) {
9457 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
9462 SWIGINTERN PyTypeObject
*
9463 swig_varlink_type(void) {
9464 static char varlink__doc__
[] = "Swig var link object";
9465 static PyTypeObject varlink_type
;
9466 static int type_init
= 0;
9468 const PyTypeObject tmp
9470 PyObject_HEAD_INIT(NULL
)
9471 0, /* Number of items in variable part (ob_size) */
9472 (char *)"swigvarlink", /* Type name (tp_name) */
9473 sizeof(swig_varlinkobject
), /* Basic size (tp_basicsize) */
9474 0, /* Itemsize (tp_itemsize) */
9475 (destructor
) swig_varlink_dealloc
, /* Deallocator (tp_dealloc) */
9476 (printfunc
) swig_varlink_print
, /* Print (tp_print) */
9477 (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */
9478 (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */
9480 (reprfunc
) swig_varlink_repr
, /* tp_repr */
9481 0, /* tp_as_number */
9482 0, /* tp_as_sequence */
9483 0, /* tp_as_mapping */
9486 (reprfunc
)swig_varlink_str
, /* tp_str */
9487 0, /* tp_getattro */
9488 0, /* tp_setattro */
9489 0, /* tp_as_buffer */
9491 varlink__doc__
, /* tp_doc */
9492 0, /* tp_traverse */
9494 0, /* tp_richcompare */
9495 0, /* tp_weaklistoffset */
9496 #if PY_VERSION_HEX >= 0x02020000
9497 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
9499 #if PY_VERSION_HEX >= 0x02030000
9503 0,0,0,0 /* tp_alloc -> tp_next */
9507 varlink_type
.ob_type
= &PyType_Type
;
9510 return &varlink_type
;
9513 /* Create a variable linking object for use later */
9514 SWIGINTERN PyObject
*
9515 SWIG_Python_newvarlink(void) {
9516 swig_varlinkobject
*result
= PyObject_NEW(swig_varlinkobject
, swig_varlink_type());
9520 return ((PyObject
*) result
);
9524 SWIG_Python_addvarlink(PyObject
*p
, char *name
, PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
)) {
9525 swig_varlinkobject
*v
= (swig_varlinkobject
*) p
;
9526 swig_globalvar
*gv
= (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
9528 size_t size
= strlen(name
)+1;
9529 gv
->name
= (char *)malloc(size
);
9531 strncpy(gv
->name
,name
,size
);
9532 gv
->get_attr
= get_attr
;
9533 gv
->set_attr
= set_attr
;
9540 SWIGINTERN PyObject
*
9542 static PyObject
*_SWIG_globals
= 0;
9543 if (!_SWIG_globals
) _SWIG_globals
= SWIG_newvarlink();
9544 return _SWIG_globals
;
9547 /* -----------------------------------------------------------------------------
9548 * constants/methods manipulation
9549 * ----------------------------------------------------------------------------- */
9551 /* Install Constants */
9553 SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
9556 for (i
= 0; constants
[i
].type
; ++i
) {
9557 switch(constants
[i
].type
) {
9558 case SWIG_PY_POINTER
:
9559 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
9561 case SWIG_PY_BINARY
:
9562 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
9569 PyDict_SetItemString(d
, constants
[i
].name
, obj
);
9575 /* -----------------------------------------------------------------------------*/
9576 /* Fix SwigMethods to carry the callback ptrs when needed */
9577 /* -----------------------------------------------------------------------------*/
9580 SWIG_Python_FixMethods(PyMethodDef
*methods
,
9581 swig_const_info
*const_table
,
9582 swig_type_info
**types
,
9583 swig_type_info
**types_initial
) {
9585 for (i
= 0; methods
[i
].ml_name
; ++i
) {
9586 char *c
= methods
[i
].ml_doc
;
9587 if (c
&& (c
= strstr(c
, "swig_ptr: "))) {
9589 swig_const_info
*ci
= 0;
9590 char *name
= c
+ 10;
9591 for (j
= 0; const_table
[j
].type
; ++j
) {
9592 if (strncmp(const_table
[j
].name
, name
,
9593 strlen(const_table
[j
].name
)) == 0) {
9594 ci
= &(const_table
[j
]);
9599 size_t shift
= (ci
->ptype
) - types
;
9600 swig_type_info
*ty
= types_initial
[shift
];
9601 size_t ldoc
= (c
- methods
[i
].ml_doc
);
9602 size_t lptr
= strlen(ty
->name
)+2*sizeof(void*)+2;
9603 char *ndoc
= (char*)malloc(ldoc
+ lptr
+ 10);
9606 void *ptr
= (ci
->type
== SWIG_PY_POINTER
) ? ci
->pvalue
: 0;
9608 strncpy(buff
, methods
[i
].ml_doc
, ldoc
);
9610 strncpy(buff
, "swig_ptr: ", 10);
9612 SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
);
9613 methods
[i
].ml_doc
= ndoc
;
9625 /* -----------------------------------------------------------------------------*
9626 * Partial Init method
9627 * -----------------------------------------------------------------------------*/
9632 SWIGEXPORT
void SWIG_init(void) {
9635 /* Fix SwigMethods to carry the callback ptrs when needed */
9636 SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_type_initial
);
9638 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
9639 d
= PyModule_GetDict(m
);
9641 SWIG_InitializeModule(0);
9642 SWIG_InstallConstants(d
,swig_const_table
);
9645 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals());
9646 SWIG_addvarlink(SWIG_globals(),(char*)"UTF8String",UTF8String_get
, UTF8String_set
);
9647 SWIG_addvarlink(SWIG_globals(),(char*)"StyleString",StyleString_get
, StyleString_set
);
9648 SWIG_addvarlink(SWIG_globals(),(char*)"SizeString",SizeString_get
, SizeString_set
);
9649 SWIG_addvarlink(SWIG_globals(),(char*)"PosString",PosString_get
, PosString_set
);
9650 SWIG_addvarlink(SWIG_globals(),(char*)"BitmapString",BitmapString_get
, BitmapString_set
);
9651 SWIG_addvarlink(SWIG_globals(),(char*)"IconString",IconString_get
, IconString_set
);
9652 SWIG_addvarlink(SWIG_globals(),(char*)"FontString",FontString_get
, FontString_set
);
9653 SWIG_Python_SetConstant(d
, "WX_XMLRES_CURRENT_VERSION_MAJOR",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_MAJOR
)));
9654 SWIG_Python_SetConstant(d
, "WX_XMLRES_CURRENT_VERSION_MINOR",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_MINOR
)));
9655 SWIG_Python_SetConstant(d
, "WX_XMLRES_CURRENT_VERSION_RELEASE",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_RELEASE
)));
9656 SWIG_Python_SetConstant(d
, "WX_XMLRES_CURRENT_VERSION_REVISION",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_REVISION
)));
9657 SWIG_Python_SetConstant(d
, "XRC_USE_LOCALE",SWIG_From_int(static_cast< int >(wxXRC_USE_LOCALE
)));
9658 SWIG_Python_SetConstant(d
, "XRC_NO_SUBCLASSING",SWIG_From_int(static_cast< int >(wxXRC_NO_SUBCLASSING
)));
9659 SWIG_Python_SetConstant(d
, "XRC_NO_RELOADING",SWIG_From_int(static_cast< int >(wxXRC_NO_RELOADING
)));
9660 SWIG_Python_SetConstant(d
, "XML_ELEMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_ELEMENT_NODE
)));
9661 SWIG_Python_SetConstant(d
, "XML_ATTRIBUTE_NODE",SWIG_From_int(static_cast< int >(wxXML_ATTRIBUTE_NODE
)));
9662 SWIG_Python_SetConstant(d
, "XML_TEXT_NODE",SWIG_From_int(static_cast< int >(wxXML_TEXT_NODE
)));
9663 SWIG_Python_SetConstant(d
, "XML_CDATA_SECTION_NODE",SWIG_From_int(static_cast< int >(wxXML_CDATA_SECTION_NODE
)));
9664 SWIG_Python_SetConstant(d
, "XML_ENTITY_REF_NODE",SWIG_From_int(static_cast< int >(wxXML_ENTITY_REF_NODE
)));
9665 SWIG_Python_SetConstant(d
, "XML_ENTITY_NODE",SWIG_From_int(static_cast< int >(wxXML_ENTITY_NODE
)));
9666 SWIG_Python_SetConstant(d
, "XML_PI_NODE",SWIG_From_int(static_cast< int >(wxXML_PI_NODE
)));
9667 SWIG_Python_SetConstant(d
, "XML_COMMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_COMMENT_NODE
)));
9668 SWIG_Python_SetConstant(d
, "XML_DOCUMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_NODE
)));
9669 SWIG_Python_SetConstant(d
, "XML_DOCUMENT_TYPE_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_TYPE_NODE
)));
9670 SWIG_Python_SetConstant(d
, "XML_DOCUMENT_FRAG_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_FRAG_NODE
)));
9671 SWIG_Python_SetConstant(d
, "XML_NOTATION_NODE",SWIG_From_int(static_cast< int >(wxXML_NOTATION_NODE
)));
9672 SWIG_Python_SetConstant(d
, "XML_HTML_DOCUMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_HTML_DOCUMENT_NODE
)));
9675 wxXmlInitResourceModule();
9676 wxXmlResource::Get()->InitAllHandlers();