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_wxChildFocusEvent swig_types[14]
2477 #define SWIGTYPE_p_wxClipboardTextEvent 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 wxString
*arg1
= 0 ;
4348 int arg2
= (int) wxID_NONE
;
4350 bool temp1
= false ;
4353 PyObject
* obj0
= 0 ;
4354 PyObject
* obj1
= 0 ;
4355 char * kwnames
[] = {
4356 (char *) "str_id",(char *) "value_if_not_found", NULL
4359 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResource_GetXRCID",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4361 arg1
= wxString_in_helper(obj0
);
4362 if (arg1
== NULL
) SWIG_fail
;
4366 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
4367 if (!SWIG_IsOK(ecode2
)) {
4368 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "XmlResource_GetXRCID" "', expected argument " "2"" of type '" "int""'");
4370 arg2
= static_cast< int >(val2
);
4373 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4374 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
,arg2
);
4375 wxPyEndAllowThreads(__tstate
);
4376 if (PyErr_Occurred()) SWIG_fail
;
4378 resultobj
= SWIG_From_int(static_cast< int >(result
));
4393 SWIGINTERN PyObject
*_wrap_XmlResource_GetVersion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4394 PyObject
*resultobj
= 0;
4395 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
4399 PyObject
*swig_obj
[1] ;
4401 if (!args
) SWIG_fail
;
4403 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4404 if (!SWIG_IsOK(res1
)) {
4405 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_GetVersion" "', expected argument " "1"" of type '" "wxXmlResource const *""'");
4407 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
4409 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4410 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
4411 wxPyEndAllowThreads(__tstate
);
4412 if (PyErr_Occurred()) SWIG_fail
;
4414 resultobj
= SWIG_From_long(static_cast< long >(result
));
4421 SWIGINTERN PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4422 PyObject
*resultobj
= 0;
4423 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
4439 PyObject
* obj0
= 0 ;
4440 PyObject
* obj1
= 0 ;
4441 PyObject
* obj2
= 0 ;
4442 PyObject
* obj3
= 0 ;
4443 PyObject
* obj4
= 0 ;
4444 char * kwnames
[] = {
4445 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
4448 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_CompareVersion",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) SWIG_fail
;
4449 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4450 if (!SWIG_IsOK(res1
)) {
4451 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_CompareVersion" "', expected argument " "1"" of type '" "wxXmlResource const *""'");
4453 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
4454 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
4455 if (!SWIG_IsOK(ecode2
)) {
4456 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "XmlResource_CompareVersion" "', expected argument " "2"" of type '" "int""'");
4458 arg2
= static_cast< int >(val2
);
4459 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
4460 if (!SWIG_IsOK(ecode3
)) {
4461 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResource_CompareVersion" "', expected argument " "3"" of type '" "int""'");
4463 arg3
= static_cast< int >(val3
);
4464 ecode4
= SWIG_AsVal_int(obj3
, &val4
);
4465 if (!SWIG_IsOK(ecode4
)) {
4466 SWIG_exception_fail(SWIG_ArgError(ecode4
), "in method '" "XmlResource_CompareVersion" "', expected argument " "4"" of type '" "int""'");
4468 arg4
= static_cast< int >(val4
);
4469 ecode5
= SWIG_AsVal_int(obj4
, &val5
);
4470 if (!SWIG_IsOK(ecode5
)) {
4471 SWIG_exception_fail(SWIG_ArgError(ecode5
), "in method '" "XmlResource_CompareVersion" "', expected argument " "5"" of type '" "int""'");
4473 arg5
= static_cast< int >(val5
);
4475 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4476 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
4477 wxPyEndAllowThreads(__tstate
);
4478 if (PyErr_Occurred()) SWIG_fail
;
4480 resultobj
= SWIG_From_int(static_cast< int >(result
));
4487 SWIGINTERN PyObject
*_wrap_XmlResource_Get(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4488 PyObject
*resultobj
= 0;
4489 wxXmlResource
*result
= 0 ;
4491 if (!SWIG_Python_UnpackTuple(args
,"XmlResource_Get",0,0,0)) SWIG_fail
;
4493 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4494 result
= (wxXmlResource
*)wxXmlResource::Get();
4495 wxPyEndAllowThreads(__tstate
);
4496 if (PyErr_Occurred()) SWIG_fail
;
4498 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4505 SWIGINTERN PyObject
*_wrap_XmlResource_Set(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4506 PyObject
*resultobj
= 0;
4507 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
4508 wxXmlResource
*result
= 0 ;
4511 PyObject
* obj0
= 0 ;
4512 char * kwnames
[] = {
4513 (char *) "res", NULL
4516 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) SWIG_fail
;
4517 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4518 if (!SWIG_IsOK(res1
)) {
4519 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_Set" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4521 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
4523 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4524 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
4525 wxPyEndAllowThreads(__tstate
);
4526 if (PyErr_Occurred()) SWIG_fail
;
4528 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4535 SWIGINTERN PyObject
*_wrap_XmlResource_GetFlags(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4536 PyObject
*resultobj
= 0;
4537 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
4541 PyObject
*swig_obj
[1] ;
4543 if (!args
) SWIG_fail
;
4545 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4546 if (!SWIG_IsOK(res1
)) {
4547 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_GetFlags" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4549 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
4551 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4552 result
= (int)(arg1
)->GetFlags();
4553 wxPyEndAllowThreads(__tstate
);
4554 if (PyErr_Occurred()) SWIG_fail
;
4556 resultobj
= SWIG_From_int(static_cast< int >(result
));
4563 SWIGINTERN PyObject
*_wrap_XmlResource_SetFlags(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4564 PyObject
*resultobj
= 0;
4565 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
4571 PyObject
* obj0
= 0 ;
4572 PyObject
* obj1
= 0 ;
4573 char * kwnames
[] = {
4574 (char *) "self",(char *) "flags", NULL
4577 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_SetFlags",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4578 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
4579 if (!SWIG_IsOK(res1
)) {
4580 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResource_SetFlags" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4582 arg1
= reinterpret_cast< wxXmlResource
* >(argp1
);
4583 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
4584 if (!SWIG_IsOK(ecode2
)) {
4585 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "XmlResource_SetFlags" "', expected argument " "2"" of type '" "int""'");
4587 arg2
= static_cast< int >(val2
);
4589 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4590 (arg1
)->SetFlags(arg2
);
4591 wxPyEndAllowThreads(__tstate
);
4592 if (PyErr_Occurred()) SWIG_fail
;
4594 resultobj
= SWIG_Py_Void();
4601 SWIGINTERN PyObject
*XmlResource_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4603 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
4604 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlResource
, SWIG_NewClientData(obj
));
4605 return SWIG_Py_Void();
4608 SWIGINTERN PyObject
*XmlResource_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4609 return SWIG_Python_InitShadowInstance(args
);
4612 SWIGINTERN PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4613 PyObject
*resultobj
= 0;
4614 wxPyXmlSubclassFactory
*result
= 0 ;
4616 if (!SWIG_Python_UnpackTuple(args
,"new_XmlSubclassFactory",0,0,0)) SWIG_fail
;
4618 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4619 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
4620 wxPyEndAllowThreads(__tstate
);
4621 if (PyErr_Occurred()) SWIG_fail
;
4623 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxPyXmlSubclassFactory
, SWIG_POINTER_NEW
| 0 );
4630 SWIGINTERN PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4631 PyObject
*resultobj
= 0;
4632 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
4633 PyObject
*arg2
= (PyObject
*) 0 ;
4634 PyObject
*arg3
= (PyObject
*) 0 ;
4637 PyObject
* obj0
= 0 ;
4638 PyObject
* obj1
= 0 ;
4639 PyObject
* obj2
= 0 ;
4640 char * kwnames
[] = {
4641 (char *) "self",(char *) "self",(char *) "_class", NULL
4644 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
4645 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlSubclassFactory
, 0 | 0 );
4646 if (!SWIG_IsOK(res1
)) {
4647 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlSubclassFactory__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyXmlSubclassFactory *""'");
4649 arg1
= reinterpret_cast< wxPyXmlSubclassFactory
* >(argp1
);
4653 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4654 (arg1
)->_setCallbackInfo(arg2
,arg3
);
4655 wxPyEndAllowThreads(__tstate
);
4656 if (PyErr_Occurred()) SWIG_fail
;
4658 resultobj
= SWIG_Py_Void();
4665 SWIGINTERN PyObject
*XmlSubclassFactory_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4667 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
4668 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, SWIG_NewClientData(obj
));
4669 return SWIG_Py_Void();
4672 SWIGINTERN PyObject
*XmlSubclassFactory_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4673 return SWIG_Python_InitShadowInstance(args
);
4676 SWIGINTERN PyObject
*_wrap_new_XmlProperty(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4677 PyObject
*resultobj
= 0;
4678 wxString
const &arg1_defvalue
= wxPyEmptyString
;
4679 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
4680 wxString
const &arg2_defvalue
= wxPyEmptyString
;
4681 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4682 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
4683 wxXmlProperty
*result
= 0 ;
4684 bool temp1
= false ;
4685 bool temp2
= false ;
4688 PyObject
* obj0
= 0 ;
4689 PyObject
* obj1
= 0 ;
4690 PyObject
* obj2
= 0 ;
4691 char * kwnames
[] = {
4692 (char *) "name",(char *) "value",(char *) "next", NULL
4695 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
4698 arg1
= wxString_in_helper(obj0
);
4699 if (arg1
== NULL
) SWIG_fail
;
4705 arg2
= wxString_in_helper(obj1
);
4706 if (arg2
== NULL
) SWIG_fail
;
4711 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4712 if (!SWIG_IsOK(res3
)) {
4713 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "new_XmlProperty" "', expected argument " "3"" of type '" "wxXmlProperty *""'");
4715 arg3
= reinterpret_cast< wxXmlProperty
* >(argp3
);
4718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4719 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
4720 wxPyEndAllowThreads(__tstate
);
4721 if (PyErr_Occurred()) SWIG_fail
;
4723 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_NEW
| 0 );
4746 SWIGINTERN PyObject
*_wrap_XmlProperty_GetName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4747 PyObject
*resultobj
= 0;
4748 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
4752 PyObject
*swig_obj
[1] ;
4754 if (!args
) SWIG_fail
;
4756 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4757 if (!SWIG_IsOK(res1
)) {
4758 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlProperty_GetName" "', expected argument " "1"" of type '" "wxXmlProperty const *""'");
4760 arg1
= reinterpret_cast< wxXmlProperty
* >(argp1
);
4762 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4763 result
= ((wxXmlProperty
const *)arg1
)->GetName();
4764 wxPyEndAllowThreads(__tstate
);
4765 if (PyErr_Occurred()) SWIG_fail
;
4769 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4771 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4780 SWIGINTERN PyObject
*_wrap_XmlProperty_GetValue(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4781 PyObject
*resultobj
= 0;
4782 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
4786 PyObject
*swig_obj
[1] ;
4788 if (!args
) SWIG_fail
;
4790 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4791 if (!SWIG_IsOK(res1
)) {
4792 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlProperty_GetValue" "', expected argument " "1"" of type '" "wxXmlProperty const *""'");
4794 arg1
= reinterpret_cast< wxXmlProperty
* >(argp1
);
4796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4797 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
4798 wxPyEndAllowThreads(__tstate
);
4799 if (PyErr_Occurred()) SWIG_fail
;
4803 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4805 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4814 SWIGINTERN PyObject
*_wrap_XmlProperty_GetNext(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4815 PyObject
*resultobj
= 0;
4816 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
4817 wxXmlProperty
*result
= 0 ;
4820 PyObject
*swig_obj
[1] ;
4822 if (!args
) SWIG_fail
;
4824 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4825 if (!SWIG_IsOK(res1
)) {
4826 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlProperty_GetNext" "', expected argument " "1"" of type '" "wxXmlProperty const *""'");
4828 arg1
= reinterpret_cast< wxXmlProperty
* >(argp1
);
4830 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4831 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
4832 wxPyEndAllowThreads(__tstate
);
4833 if (PyErr_Occurred()) SWIG_fail
;
4835 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4842 SWIGINTERN PyObject
*_wrap_XmlProperty_SetName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4843 PyObject
*resultobj
= 0;
4844 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
4845 wxString
*arg2
= 0 ;
4848 bool temp2
= false ;
4849 PyObject
* obj0
= 0 ;
4850 PyObject
* obj1
= 0 ;
4851 char * kwnames
[] = {
4852 (char *) "self",(char *) "name", NULL
4855 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4856 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4857 if (!SWIG_IsOK(res1
)) {
4858 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlProperty_SetName" "', expected argument " "1"" of type '" "wxXmlProperty *""'");
4860 arg1
= reinterpret_cast< wxXmlProperty
* >(argp1
);
4862 arg2
= wxString_in_helper(obj1
);
4863 if (arg2
== NULL
) SWIG_fail
;
4867 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4868 (arg1
)->SetName((wxString
const &)*arg2
);
4869 wxPyEndAllowThreads(__tstate
);
4870 if (PyErr_Occurred()) SWIG_fail
;
4872 resultobj
= SWIG_Py_Void();
4887 SWIGINTERN PyObject
*_wrap_XmlProperty_SetValue(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4888 PyObject
*resultobj
= 0;
4889 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
4890 wxString
*arg2
= 0 ;
4893 bool temp2
= false ;
4894 PyObject
* obj0
= 0 ;
4895 PyObject
* obj1
= 0 ;
4896 char * kwnames
[] = {
4897 (char *) "self",(char *) "value", NULL
4900 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4901 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4902 if (!SWIG_IsOK(res1
)) {
4903 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlProperty_SetValue" "', expected argument " "1"" of type '" "wxXmlProperty *""'");
4905 arg1
= reinterpret_cast< wxXmlProperty
* >(argp1
);
4907 arg2
= wxString_in_helper(obj1
);
4908 if (arg2
== NULL
) SWIG_fail
;
4912 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4913 (arg1
)->SetValue((wxString
const &)*arg2
);
4914 wxPyEndAllowThreads(__tstate
);
4915 if (PyErr_Occurred()) SWIG_fail
;
4917 resultobj
= SWIG_Py_Void();
4932 SWIGINTERN PyObject
*_wrap_XmlProperty_SetNext(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4933 PyObject
*resultobj
= 0;
4934 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
4935 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
4940 PyObject
* obj0
= 0 ;
4941 PyObject
* obj1
= 0 ;
4942 char * kwnames
[] = {
4943 (char *) "self",(char *) "next", NULL
4946 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
4947 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4948 if (!SWIG_IsOK(res1
)) {
4949 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlProperty_SetNext" "', expected argument " "1"" of type '" "wxXmlProperty *""'");
4951 arg1
= reinterpret_cast< wxXmlProperty
* >(argp1
);
4952 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
4953 if (!SWIG_IsOK(res2
)) {
4954 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlProperty_SetNext" "', expected argument " "2"" of type '" "wxXmlProperty *""'");
4956 arg2
= reinterpret_cast< wxXmlProperty
* >(argp2
);
4958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4959 (arg1
)->SetNext(arg2
);
4960 wxPyEndAllowThreads(__tstate
);
4961 if (PyErr_Occurred()) SWIG_fail
;
4963 resultobj
= SWIG_Py_Void();
4970 SWIGINTERN PyObject
*XmlProperty_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4972 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
4973 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlProperty
, SWIG_NewClientData(obj
));
4974 return SWIG_Py_Void();
4977 SWIGINTERN PyObject
*XmlProperty_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
4978 return SWIG_Python_InitShadowInstance(args
);
4981 SWIGINTERN PyObject
*_wrap_new_XmlNode(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
4982 PyObject
*resultobj
= 0;
4983 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
4984 wxXmlNodeType arg2
= (wxXmlNodeType
) 0 ;
4985 wxString
const &arg3_defvalue
= wxPyEmptyString
;
4986 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
4987 wxString
const &arg4_defvalue
= wxPyEmptyString
;
4988 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
4989 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
4990 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
4991 wxXmlNode
*result
= 0 ;
4996 bool temp3
= false ;
4997 bool temp4
= false ;
5002 PyObject
* obj0
= 0 ;
5003 PyObject
* obj1
= 0 ;
5004 PyObject
* obj2
= 0 ;
5005 PyObject
* obj3
= 0 ;
5006 PyObject
* obj4
= 0 ;
5007 PyObject
* obj5
= 0 ;
5008 char * kwnames
[] = {
5009 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
5012 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOOO:new_XmlNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) SWIG_fail
;
5014 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5015 if (!SWIG_IsOK(res1
)) {
5016 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "new_XmlNode" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5018 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5021 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
5022 if (!SWIG_IsOK(ecode2
)) {
5023 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "new_XmlNode" "', expected argument " "2"" of type '" "wxXmlNodeType""'");
5025 arg2
= static_cast< wxXmlNodeType
>(val2
);
5029 arg3
= wxString_in_helper(obj2
);
5030 if (arg3
== NULL
) SWIG_fail
;
5036 arg4
= wxString_in_helper(obj3
);
5037 if (arg4
== NULL
) SWIG_fail
;
5042 res5
= SWIG_ConvertPtr(obj4
, &argp5
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
5043 if (!SWIG_IsOK(res5
)) {
5044 SWIG_exception_fail(SWIG_ArgError(res5
), "in method '" "new_XmlNode" "', expected argument " "5"" of type '" "wxXmlProperty *""'");
5046 arg5
= reinterpret_cast< wxXmlProperty
* >(argp5
);
5049 res6
= SWIG_ConvertPtr(obj5
, &argp6
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5050 if (!SWIG_IsOK(res6
)) {
5051 SWIG_exception_fail(SWIG_ArgError(res6
), "in method '" "new_XmlNode" "', expected argument " "6"" of type '" "wxXmlNode *""'");
5053 arg6
= reinterpret_cast< wxXmlNode
* >(argp6
);
5056 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5057 result
= (wxXmlNode
*)new wxXmlNode(arg1
,arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
5058 wxPyEndAllowThreads(__tstate
);
5059 if (PyErr_Occurred()) SWIG_fail
;
5061 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_NEW
| 0 );
5084 SWIGINTERN PyObject
*_wrap_delete_XmlNode(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5085 PyObject
*resultobj
= 0;
5086 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5089 PyObject
*swig_obj
[1] ;
5091 if (!args
) SWIG_fail
;
5093 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_DISOWN
| 0 );
5094 if (!SWIG_IsOK(res1
)) {
5095 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_XmlNode" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5097 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5099 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5102 wxPyEndAllowThreads(__tstate
);
5103 if (PyErr_Occurred()) SWIG_fail
;
5105 resultobj
= SWIG_Py_Void();
5112 SWIGINTERN PyObject
*_wrap_new_XmlNodeEasy(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5113 PyObject
*resultobj
= 0;
5114 wxXmlNodeType arg1
;
5115 wxString
*arg2
= 0 ;
5116 wxString
const &arg3_defvalue
= wxPyEmptyString
;
5117 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
5118 wxXmlNode
*result
= 0 ;
5121 bool temp2
= false ;
5122 bool temp3
= false ;
5123 PyObject
* obj0
= 0 ;
5124 PyObject
* obj1
= 0 ;
5125 PyObject
* obj2
= 0 ;
5126 char * kwnames
[] = {
5127 (char *) "type",(char *) "name",(char *) "content", NULL
5130 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:new_XmlNodeEasy",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
5131 ecode1
= SWIG_AsVal_int(obj0
, &val1
);
5132 if (!SWIG_IsOK(ecode1
)) {
5133 SWIG_exception_fail(SWIG_ArgError(ecode1
), "in method '" "new_XmlNodeEasy" "', expected argument " "1"" of type '" "wxXmlNodeType""'");
5135 arg1
= static_cast< wxXmlNodeType
>(val1
);
5137 arg2
= wxString_in_helper(obj1
);
5138 if (arg2
== NULL
) SWIG_fail
;
5143 arg3
= wxString_in_helper(obj2
);
5144 if (arg3
== NULL
) SWIG_fail
;
5149 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5150 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
5151 wxPyEndAllowThreads(__tstate
);
5152 if (PyErr_Occurred()) SWIG_fail
;
5154 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_OWN
| 0 );
5177 SWIGINTERN PyObject
*_wrap_XmlNode_AddChild(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5178 PyObject
*resultobj
= 0;
5179 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5180 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5185 PyObject
* obj0
= 0 ;
5186 PyObject
* obj1
= 0 ;
5187 char * kwnames
[] = {
5188 (char *) "self",(char *) "child", NULL
5191 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5192 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5193 if (!SWIG_IsOK(res1
)) {
5194 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_AddChild" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5196 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5197 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5198 if (!SWIG_IsOK(res2
)) {
5199 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_AddChild" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5201 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
5203 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5204 (arg1
)->AddChild(arg2
);
5205 wxPyEndAllowThreads(__tstate
);
5206 if (PyErr_Occurred()) SWIG_fail
;
5208 resultobj
= SWIG_Py_Void();
5215 SWIGINTERN PyObject
*_wrap_XmlNode_InsertChild(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5216 PyObject
*resultobj
= 0;
5217 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5218 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5219 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
5226 PyObject
* obj0
= 0 ;
5227 PyObject
* obj1
= 0 ;
5228 PyObject
* obj2
= 0 ;
5229 char * kwnames
[] = {
5230 (char *) "self",(char *) "child",(char *) "before_node", NULL
5233 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
5234 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5235 if (!SWIG_IsOK(res1
)) {
5236 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_InsertChild" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5238 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5239 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5240 if (!SWIG_IsOK(res2
)) {
5241 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_InsertChild" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5243 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
5244 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5245 if (!SWIG_IsOK(res3
)) {
5246 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlNode_InsertChild" "', expected argument " "3"" of type '" "wxXmlNode *""'");
5248 arg3
= reinterpret_cast< wxXmlNode
* >(argp3
);
5250 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5251 (arg1
)->InsertChild(arg2
,arg3
);
5252 wxPyEndAllowThreads(__tstate
);
5253 if (PyErr_Occurred()) SWIG_fail
;
5255 resultobj
= SWIG_Py_Void();
5262 SWIGINTERN PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5263 PyObject
*resultobj
= 0;
5264 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5265 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5271 PyObject
* obj0
= 0 ;
5272 PyObject
* obj1
= 0 ;
5273 char * kwnames
[] = {
5274 (char *) "self",(char *) "child", NULL
5277 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5278 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5279 if (!SWIG_IsOK(res1
)) {
5280 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_RemoveChild" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5282 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5283 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5284 if (!SWIG_IsOK(res2
)) {
5285 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_RemoveChild" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5287 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
5289 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5290 result
= (bool)(arg1
)->RemoveChild(arg2
);
5291 wxPyEndAllowThreads(__tstate
);
5292 if (PyErr_Occurred()) SWIG_fail
;
5295 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5303 SWIGINTERN PyObject
*_wrap_XmlNode_AddProperty(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5304 PyObject
*resultobj
= 0;
5305 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5306 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
5311 PyObject
* obj0
= 0 ;
5312 PyObject
* obj1
= 0 ;
5313 char * kwnames
[] = {
5314 (char *) "self",(char *) "prop", NULL
5317 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5318 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5319 if (!SWIG_IsOK(res1
)) {
5320 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_AddProperty" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5322 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5323 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
5324 if (!SWIG_IsOK(res2
)) {
5325 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_AddProperty" "', expected argument " "2"" of type '" "wxXmlProperty *""'");
5327 arg2
= reinterpret_cast< wxXmlProperty
* >(argp2
);
5329 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5330 (arg1
)->AddProperty(arg2
);
5331 wxPyEndAllowThreads(__tstate
);
5332 if (PyErr_Occurred()) SWIG_fail
;
5334 resultobj
= SWIG_Py_Void();
5341 SWIGINTERN PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5342 PyObject
*resultobj
= 0;
5343 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5344 wxString
*arg2
= 0 ;
5345 wxString
*arg3
= 0 ;
5348 bool temp2
= false ;
5349 bool temp3
= false ;
5350 PyObject
* obj0
= 0 ;
5351 PyObject
* obj1
= 0 ;
5352 PyObject
* obj2
= 0 ;
5353 char * kwnames
[] = {
5354 (char *) "self",(char *) "name",(char *) "value", NULL
5357 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
5358 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5359 if (!SWIG_IsOK(res1
)) {
5360 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_AddPropertyName" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5362 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5364 arg2
= wxString_in_helper(obj1
);
5365 if (arg2
== NULL
) SWIG_fail
;
5369 arg3
= wxString_in_helper(obj2
);
5370 if (arg3
== NULL
) SWIG_fail
;
5374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5375 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
5376 wxPyEndAllowThreads(__tstate
);
5377 if (PyErr_Occurred()) SWIG_fail
;
5379 resultobj
= SWIG_Py_Void();
5402 SWIGINTERN PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5403 PyObject
*resultobj
= 0;
5404 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5405 wxString
*arg2
= 0 ;
5409 bool temp2
= false ;
5410 PyObject
* obj0
= 0 ;
5411 PyObject
* obj1
= 0 ;
5412 char * kwnames
[] = {
5413 (char *) "self",(char *) "name", NULL
5416 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5417 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5418 if (!SWIG_IsOK(res1
)) {
5419 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_DeleteProperty" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5421 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5423 arg2
= wxString_in_helper(obj1
);
5424 if (arg2
== NULL
) SWIG_fail
;
5428 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5429 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
5430 wxPyEndAllowThreads(__tstate
);
5431 if (PyErr_Occurred()) SWIG_fail
;
5434 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5450 SWIGINTERN PyObject
*_wrap_XmlNode_GetType(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5451 PyObject
*resultobj
= 0;
5452 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5453 wxXmlNodeType result
;
5456 PyObject
*swig_obj
[1] ;
5458 if (!args
) SWIG_fail
;
5460 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5461 if (!SWIG_IsOK(res1
)) {
5462 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetType" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5464 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5466 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5467 result
= (wxXmlNodeType
)((wxXmlNode
const *)arg1
)->GetType();
5468 wxPyEndAllowThreads(__tstate
);
5469 if (PyErr_Occurred()) SWIG_fail
;
5471 resultobj
= SWIG_From_int(static_cast< int >(result
));
5478 SWIGINTERN PyObject
*_wrap_XmlNode_GetName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5479 PyObject
*resultobj
= 0;
5480 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5484 PyObject
*swig_obj
[1] ;
5486 if (!args
) SWIG_fail
;
5488 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5489 if (!SWIG_IsOK(res1
)) {
5490 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetName" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5492 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5494 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5495 result
= ((wxXmlNode
const *)arg1
)->GetName();
5496 wxPyEndAllowThreads(__tstate
);
5497 if (PyErr_Occurred()) SWIG_fail
;
5501 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5503 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5512 SWIGINTERN PyObject
*_wrap_XmlNode_GetContent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5513 PyObject
*resultobj
= 0;
5514 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5518 PyObject
*swig_obj
[1] ;
5520 if (!args
) SWIG_fail
;
5522 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5523 if (!SWIG_IsOK(res1
)) {
5524 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetContent" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5526 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5529 result
= ((wxXmlNode
const *)arg1
)->GetContent();
5530 wxPyEndAllowThreads(__tstate
);
5531 if (PyErr_Occurred()) SWIG_fail
;
5535 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5537 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5546 SWIGINTERN PyObject
*_wrap_XmlNode_GetParent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5547 PyObject
*resultobj
= 0;
5548 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5549 wxXmlNode
*result
= 0 ;
5552 PyObject
*swig_obj
[1] ;
5554 if (!args
) SWIG_fail
;
5556 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5557 if (!SWIG_IsOK(res1
)) {
5558 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetParent" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5560 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5563 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
5564 wxPyEndAllowThreads(__tstate
);
5565 if (PyErr_Occurred()) SWIG_fail
;
5567 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5574 SWIGINTERN PyObject
*_wrap_XmlNode_GetNext(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5575 PyObject
*resultobj
= 0;
5576 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5577 wxXmlNode
*result
= 0 ;
5580 PyObject
*swig_obj
[1] ;
5582 if (!args
) SWIG_fail
;
5584 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5585 if (!SWIG_IsOK(res1
)) {
5586 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetNext" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5588 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5590 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5591 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
5592 wxPyEndAllowThreads(__tstate
);
5593 if (PyErr_Occurred()) SWIG_fail
;
5595 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5602 SWIGINTERN PyObject
*_wrap_XmlNode_GetChildren(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5603 PyObject
*resultobj
= 0;
5604 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5605 wxXmlNode
*result
= 0 ;
5608 PyObject
*swig_obj
[1] ;
5610 if (!args
) SWIG_fail
;
5612 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5613 if (!SWIG_IsOK(res1
)) {
5614 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetChildren" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5616 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5618 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5619 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
5620 wxPyEndAllowThreads(__tstate
);
5621 if (PyErr_Occurred()) SWIG_fail
;
5623 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5630 SWIGINTERN PyObject
*_wrap_XmlNode_GetProperties(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
5631 PyObject
*resultobj
= 0;
5632 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5633 wxXmlProperty
*result
= 0 ;
5636 PyObject
*swig_obj
[1] ;
5638 if (!args
) SWIG_fail
;
5640 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5641 if (!SWIG_IsOK(res1
)) {
5642 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetProperties" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5644 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5646 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5647 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
5648 wxPyEndAllowThreads(__tstate
);
5649 if (PyErr_Occurred()) SWIG_fail
;
5651 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
5658 SWIGINTERN PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5659 PyObject
*resultobj
= 0;
5660 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5661 wxString
*arg2
= 0 ;
5662 wxString
*arg3
= 0 ;
5666 bool temp2
= false ;
5667 bool temp3
= false ;
5668 PyObject
* obj0
= 0 ;
5669 PyObject
* obj1
= 0 ;
5670 PyObject
* obj2
= 0 ;
5671 char * kwnames
[] = {
5672 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
5675 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
5676 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5677 if (!SWIG_IsOK(res1
)) {
5678 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_GetPropVal" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5680 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5682 arg2
= wxString_in_helper(obj1
);
5683 if (arg2
== NULL
) SWIG_fail
;
5687 arg3
= wxString_in_helper(obj2
);
5688 if (arg3
== NULL
) SWIG_fail
;
5692 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5693 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
5694 wxPyEndAllowThreads(__tstate
);
5695 if (PyErr_Occurred()) SWIG_fail
;
5699 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5701 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5726 SWIGINTERN PyObject
*_wrap_XmlNode_HasProp(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5727 PyObject
*resultobj
= 0;
5728 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5729 wxString
*arg2
= 0 ;
5733 bool temp2
= false ;
5734 PyObject
* obj0
= 0 ;
5735 PyObject
* obj1
= 0 ;
5736 char * kwnames
[] = {
5737 (char *) "self",(char *) "propName", NULL
5740 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5741 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5742 if (!SWIG_IsOK(res1
)) {
5743 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_HasProp" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5745 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5747 arg2
= wxString_in_helper(obj1
);
5748 if (arg2
== NULL
) SWIG_fail
;
5752 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5753 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
5754 wxPyEndAllowThreads(__tstate
);
5755 if (PyErr_Occurred()) SWIG_fail
;
5758 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5774 SWIGINTERN PyObject
*_wrap_XmlNode_SetType(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5775 PyObject
*resultobj
= 0;
5776 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5777 wxXmlNodeType arg2
;
5782 PyObject
* obj0
= 0 ;
5783 PyObject
* obj1
= 0 ;
5784 char * kwnames
[] = {
5785 (char *) "self",(char *) "type", NULL
5788 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetType",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5789 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5790 if (!SWIG_IsOK(res1
)) {
5791 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_SetType" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5793 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5794 ecode2
= SWIG_AsVal_int(obj1
, &val2
);
5795 if (!SWIG_IsOK(ecode2
)) {
5796 SWIG_exception_fail(SWIG_ArgError(ecode2
), "in method '" "XmlNode_SetType" "', expected argument " "2"" of type '" "wxXmlNodeType""'");
5798 arg2
= static_cast< wxXmlNodeType
>(val2
);
5800 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5801 (arg1
)->SetType(arg2
);
5802 wxPyEndAllowThreads(__tstate
);
5803 if (PyErr_Occurred()) SWIG_fail
;
5805 resultobj
= SWIG_Py_Void();
5812 SWIGINTERN PyObject
*_wrap_XmlNode_SetName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5813 PyObject
*resultobj
= 0;
5814 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5815 wxString
*arg2
= 0 ;
5818 bool temp2
= false ;
5819 PyObject
* obj0
= 0 ;
5820 PyObject
* obj1
= 0 ;
5821 char * kwnames
[] = {
5822 (char *) "self",(char *) "name", NULL
5825 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5826 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5827 if (!SWIG_IsOK(res1
)) {
5828 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_SetName" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5830 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5832 arg2
= wxString_in_helper(obj1
);
5833 if (arg2
== NULL
) SWIG_fail
;
5837 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5838 (arg1
)->SetName((wxString
const &)*arg2
);
5839 wxPyEndAllowThreads(__tstate
);
5840 if (PyErr_Occurred()) SWIG_fail
;
5842 resultobj
= SWIG_Py_Void();
5857 SWIGINTERN PyObject
*_wrap_XmlNode_SetContent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5858 PyObject
*resultobj
= 0;
5859 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5860 wxString
*arg2
= 0 ;
5863 bool temp2
= false ;
5864 PyObject
* obj0
= 0 ;
5865 PyObject
* obj1
= 0 ;
5866 char * kwnames
[] = {
5867 (char *) "self",(char *) "con", NULL
5870 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5871 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5872 if (!SWIG_IsOK(res1
)) {
5873 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_SetContent" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5875 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5877 arg2
= wxString_in_helper(obj1
);
5878 if (arg2
== NULL
) SWIG_fail
;
5882 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5883 (arg1
)->SetContent((wxString
const &)*arg2
);
5884 wxPyEndAllowThreads(__tstate
);
5885 if (PyErr_Occurred()) SWIG_fail
;
5887 resultobj
= SWIG_Py_Void();
5902 SWIGINTERN PyObject
*_wrap_XmlNode_SetParent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5903 PyObject
*resultobj
= 0;
5904 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5905 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5910 PyObject
* obj0
= 0 ;
5911 PyObject
* obj1
= 0 ;
5912 char * kwnames
[] = {
5913 (char *) "self",(char *) "parent", NULL
5916 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5917 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5918 if (!SWIG_IsOK(res1
)) {
5919 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_SetParent" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5921 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5922 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5923 if (!SWIG_IsOK(res2
)) {
5924 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_SetParent" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5926 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
5928 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5929 (arg1
)->SetParent(arg2
);
5930 wxPyEndAllowThreads(__tstate
);
5931 if (PyErr_Occurred()) SWIG_fail
;
5933 resultobj
= SWIG_Py_Void();
5940 SWIGINTERN PyObject
*_wrap_XmlNode_SetNext(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5941 PyObject
*resultobj
= 0;
5942 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5943 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5948 PyObject
* obj0
= 0 ;
5949 PyObject
* obj1
= 0 ;
5950 char * kwnames
[] = {
5951 (char *) "self",(char *) "next", NULL
5954 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5955 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5956 if (!SWIG_IsOK(res1
)) {
5957 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_SetNext" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5959 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5960 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5961 if (!SWIG_IsOK(res2
)) {
5962 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_SetNext" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5964 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
5966 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5967 (arg1
)->SetNext(arg2
);
5968 wxPyEndAllowThreads(__tstate
);
5969 if (PyErr_Occurred()) SWIG_fail
;
5971 resultobj
= SWIG_Py_Void();
5978 SWIGINTERN PyObject
*_wrap_XmlNode_SetChildren(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
5979 PyObject
*resultobj
= 0;
5980 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
5981 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5986 PyObject
* obj0
= 0 ;
5987 PyObject
* obj1
= 0 ;
5988 char * kwnames
[] = {
5989 (char *) "self",(char *) "child", NULL
5992 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
5993 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5994 if (!SWIG_IsOK(res1
)) {
5995 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_SetChildren" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5997 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
5998 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
5999 if (!SWIG_IsOK(res2
)) {
6000 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_SetChildren" "', expected argument " "2"" of type '" "wxXmlNode *""'");
6002 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
6004 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6005 (arg1
)->SetChildren(arg2
);
6006 wxPyEndAllowThreads(__tstate
);
6007 if (PyErr_Occurred()) SWIG_fail
;
6009 resultobj
= SWIG_Py_Void();
6016 SWIGINTERN PyObject
*_wrap_XmlNode_SetProperties(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6017 PyObject
*resultobj
= 0;
6018 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
6019 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
6024 PyObject
* obj0
= 0 ;
6025 PyObject
* obj1
= 0 ;
6026 char * kwnames
[] = {
6027 (char *) "self",(char *) "prop", NULL
6030 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6031 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
6032 if (!SWIG_IsOK(res1
)) {
6033 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlNode_SetProperties" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6035 arg1
= reinterpret_cast< wxXmlNode
* >(argp1
);
6036 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlProperty
, 0 | 0 );
6037 if (!SWIG_IsOK(res2
)) {
6038 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlNode_SetProperties" "', expected argument " "2"" of type '" "wxXmlProperty *""'");
6040 arg2
= reinterpret_cast< wxXmlProperty
* >(argp2
);
6042 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6043 (arg1
)->SetProperties(arg2
);
6044 wxPyEndAllowThreads(__tstate
);
6045 if (PyErr_Occurred()) SWIG_fail
;
6047 resultobj
= SWIG_Py_Void();
6054 SWIGINTERN PyObject
*XmlNode_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6056 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
6057 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlNode
, SWIG_NewClientData(obj
));
6058 return SWIG_Py_Void();
6061 SWIGINTERN PyObject
*XmlNode_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6062 return SWIG_Python_InitShadowInstance(args
);
6065 SWIGINTERN PyObject
*_wrap_new_XmlDocument(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6066 PyObject
*resultobj
= 0;
6067 wxString
*arg1
= 0 ;
6068 wxString
const &arg2_defvalue
= wxPyUTF8String
;
6069 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
6070 wxXmlDocument
*result
= 0 ;
6071 bool temp1
= false ;
6072 bool temp2
= false ;
6073 PyObject
* obj0
= 0 ;
6074 PyObject
* obj1
= 0 ;
6075 char * kwnames
[] = {
6076 (char *) "filename",(char *) "encoding", NULL
6079 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6081 arg1
= wxString_in_helper(obj0
);
6082 if (arg1
== NULL
) SWIG_fail
;
6087 arg2
= wxString_in_helper(obj1
);
6088 if (arg2
== NULL
) SWIG_fail
;
6093 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6094 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
6095 wxPyEndAllowThreads(__tstate
);
6096 if (PyErr_Occurred()) SWIG_fail
;
6098 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_NEW
| 0 );
6121 SWIGINTERN PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6122 PyObject
*resultobj
= 0;
6123 wxInputStream
*arg1
= 0 ;
6124 wxString
const &arg2_defvalue
= wxPyUTF8String
;
6125 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
6126 wxXmlDocument
*result
= 0 ;
6127 wxPyInputStream
*temp1
;
6129 bool temp2
= false ;
6130 PyObject
* obj0
= 0 ;
6131 PyObject
* obj1
= 0 ;
6132 char * kwnames
[] = {
6133 (char *) "stream",(char *) "encoding", NULL
6136 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6138 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
6139 arg1
= temp1
->m_wxis
;
6142 PyErr_Clear(); // clear the failure of the wxPyConvert above
6143 arg1
= wxPyCBInputStream_create(obj0
, false);
6145 PyErr_SetString(PyExc_TypeError
, "Expected wx.InputStream or Python file-like object.");
6153 arg2
= wxString_in_helper(obj1
);
6154 if (arg2
== NULL
) SWIG_fail
;
6159 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6160 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
6161 wxPyEndAllowThreads(__tstate
);
6162 if (PyErr_Occurred()) SWIG_fail
;
6164 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_OWN
| 0 );
6166 if (created1
) delete arg1
;
6175 if (created1
) delete arg1
;
6185 SWIGINTERN PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6186 PyObject
*resultobj
= 0;
6187 wxXmlDocument
*result
= 0 ;
6189 if (!SWIG_Python_UnpackTuple(args
,"new_EmptyXmlDocument",0,0,0)) SWIG_fail
;
6191 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6192 result
= (wxXmlDocument
*)new wxXmlDocument();
6193 wxPyEndAllowThreads(__tstate
);
6194 if (PyErr_Occurred()) SWIG_fail
;
6196 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_OWN
| 0 );
6203 SWIGINTERN PyObject
*_wrap_delete_XmlDocument(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6204 PyObject
*resultobj
= 0;
6205 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6208 PyObject
*swig_obj
[1] ;
6210 if (!args
) SWIG_fail
;
6212 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_DISOWN
| 0 );
6213 if (!SWIG_IsOK(res1
)) {
6214 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "delete_XmlDocument" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6216 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6218 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6221 wxPyEndAllowThreads(__tstate
);
6222 if (PyErr_Occurred()) SWIG_fail
;
6224 resultobj
= SWIG_Py_Void();
6231 SWIGINTERN PyObject
*_wrap_XmlDocument_Load(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6232 PyObject
*resultobj
= 0;
6233 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6234 wxString
*arg2
= 0 ;
6235 wxString
const &arg3_defvalue
= wxPyUTF8String
;
6236 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
6240 bool temp2
= false ;
6241 bool temp3
= false ;
6242 PyObject
* obj0
= 0 ;
6243 PyObject
* obj1
= 0 ;
6244 PyObject
* obj2
= 0 ;
6245 char * kwnames
[] = {
6246 (char *) "self",(char *) "filename",(char *) "encoding", NULL
6249 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
6250 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6251 if (!SWIG_IsOK(res1
)) {
6252 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_Load" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6254 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6256 arg2
= wxString_in_helper(obj1
);
6257 if (arg2
== NULL
) SWIG_fail
;
6262 arg3
= wxString_in_helper(obj2
);
6263 if (arg3
== NULL
) SWIG_fail
;
6268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6269 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
6270 wxPyEndAllowThreads(__tstate
);
6271 if (PyErr_Occurred()) SWIG_fail
;
6274 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6298 SWIGINTERN PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6299 PyObject
*resultobj
= 0;
6300 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6301 wxInputStream
*arg2
= 0 ;
6302 wxString
const &arg3_defvalue
= wxPyUTF8String
;
6303 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
6307 wxPyInputStream
*temp2
;
6309 bool temp3
= false ;
6310 PyObject
* obj0
= 0 ;
6311 PyObject
* obj1
= 0 ;
6312 PyObject
* obj2
= 0 ;
6313 char * kwnames
[] = {
6314 (char *) "self",(char *) "stream",(char *) "encoding", NULL
6317 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
6318 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6319 if (!SWIG_IsOK(res1
)) {
6320 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_LoadFromStream" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6322 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6324 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
6325 arg2
= temp2
->m_wxis
;
6328 PyErr_Clear(); // clear the failure of the wxPyConvert above
6329 arg2
= wxPyCBInputStream_create(obj1
, false);
6331 PyErr_SetString(PyExc_TypeError
, "Expected wx.InputStream or Python file-like object.");
6339 arg3
= wxString_in_helper(obj2
);
6340 if (arg3
== NULL
) SWIG_fail
;
6345 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6346 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
6347 wxPyEndAllowThreads(__tstate
);
6348 if (PyErr_Occurred()) SWIG_fail
;
6351 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6354 if (created2
) delete arg2
;
6363 if (created2
) delete arg2
;
6373 SWIGINTERN PyObject
*_wrap_XmlDocument_Save(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6374 PyObject
*resultobj
= 0;
6375 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6376 wxString
*arg2
= 0 ;
6380 bool temp2
= false ;
6381 PyObject
* obj0
= 0 ;
6382 PyObject
* obj1
= 0 ;
6383 char * kwnames
[] = {
6384 (char *) "self",(char *) "filename", NULL
6387 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6388 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6389 if (!SWIG_IsOK(res1
)) {
6390 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_Save" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6392 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6394 arg2
= wxString_in_helper(obj1
);
6395 if (arg2
== NULL
) SWIG_fail
;
6399 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6400 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
6401 wxPyEndAllowThreads(__tstate
);
6402 if (PyErr_Occurred()) SWIG_fail
;
6405 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6421 SWIGINTERN PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6422 PyObject
*resultobj
= 0;
6423 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6424 wxOutputStream
*arg2
= 0 ;
6430 PyObject
* obj0
= 0 ;
6431 PyObject
* obj1
= 0 ;
6432 char * kwnames
[] = {
6433 (char *) "self",(char *) "stream", NULL
6436 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6437 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6438 if (!SWIG_IsOK(res1
)) {
6439 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_SaveToStream" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6441 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6442 res2
= SWIG_ConvertPtr(obj1
, &argp2
, SWIGTYPE_p_wxOutputStream
, 0 );
6443 if (!SWIG_IsOK(res2
)) {
6444 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlDocument_SaveToStream" "', expected argument " "2"" of type '" "wxOutputStream &""'");
6447 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "XmlDocument_SaveToStream" "', expected argument " "2"" of type '" "wxOutputStream &""'");
6449 arg2
= reinterpret_cast< wxOutputStream
* >(argp2
);
6451 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6452 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
6453 wxPyEndAllowThreads(__tstate
);
6454 if (PyErr_Occurred()) SWIG_fail
;
6457 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6465 SWIGINTERN PyObject
*_wrap_XmlDocument_IsOk(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6466 PyObject
*resultobj
= 0;
6467 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6471 PyObject
*swig_obj
[1] ;
6473 if (!args
) SWIG_fail
;
6475 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6476 if (!SWIG_IsOK(res1
)) {
6477 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_IsOk" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6479 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6481 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6482 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
6483 wxPyEndAllowThreads(__tstate
);
6484 if (PyErr_Occurred()) SWIG_fail
;
6487 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
6495 SWIGINTERN PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6496 PyObject
*resultobj
= 0;
6497 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6498 wxXmlNode
*result
= 0 ;
6501 PyObject
*swig_obj
[1] ;
6503 if (!args
) SWIG_fail
;
6505 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6506 if (!SWIG_IsOK(res1
)) {
6507 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_GetRoot" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6509 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6511 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6512 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
6513 wxPyEndAllowThreads(__tstate
);
6514 if (PyErr_Occurred()) SWIG_fail
;
6516 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, 0 | 0 );
6523 SWIGINTERN PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6524 PyObject
*resultobj
= 0;
6525 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6529 PyObject
*swig_obj
[1] ;
6531 if (!args
) SWIG_fail
;
6533 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6534 if (!SWIG_IsOK(res1
)) {
6535 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_GetVersion" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6537 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6539 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6540 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
6541 wxPyEndAllowThreads(__tstate
);
6542 if (PyErr_Occurred()) SWIG_fail
;
6546 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
6548 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
6557 SWIGINTERN PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6558 PyObject
*resultobj
= 0;
6559 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6563 PyObject
*swig_obj
[1] ;
6565 if (!args
) SWIG_fail
;
6567 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6568 if (!SWIG_IsOK(res1
)) {
6569 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_GetFileEncoding" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6571 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6573 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6574 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
6575 wxPyEndAllowThreads(__tstate
);
6576 if (PyErr_Occurred()) SWIG_fail
;
6580 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
6582 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
6591 SWIGINTERN PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6592 PyObject
*resultobj
= 0;
6593 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6594 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
6599 PyObject
* obj0
= 0 ;
6600 PyObject
* obj1
= 0 ;
6601 char * kwnames
[] = {
6602 (char *) "self",(char *) "node", NULL
6605 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6606 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6607 if (!SWIG_IsOK(res1
)) {
6608 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_SetRoot" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6610 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6611 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
6612 if (!SWIG_IsOK(res2
)) {
6613 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlDocument_SetRoot" "', expected argument " "2"" of type '" "wxXmlNode *""'");
6615 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
6617 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6618 (arg1
)->SetRoot(arg2
);
6619 wxPyEndAllowThreads(__tstate
);
6620 if (PyErr_Occurred()) SWIG_fail
;
6622 resultobj
= SWIG_Py_Void();
6629 SWIGINTERN PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6630 PyObject
*resultobj
= 0;
6631 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6632 wxString
*arg2
= 0 ;
6635 bool temp2
= false ;
6636 PyObject
* obj0
= 0 ;
6637 PyObject
* obj1
= 0 ;
6638 char * kwnames
[] = {
6639 (char *) "self",(char *) "version", NULL
6642 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6643 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6644 if (!SWIG_IsOK(res1
)) {
6645 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_SetVersion" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6647 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6649 arg2
= wxString_in_helper(obj1
);
6650 if (arg2
== NULL
) SWIG_fail
;
6654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6655 (arg1
)->SetVersion((wxString
const &)*arg2
);
6656 wxPyEndAllowThreads(__tstate
);
6657 if (PyErr_Occurred()) SWIG_fail
;
6659 resultobj
= SWIG_Py_Void();
6674 SWIGINTERN PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6675 PyObject
*resultobj
= 0;
6676 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
6677 wxString
*arg2
= 0 ;
6680 bool temp2
= false ;
6681 PyObject
* obj0
= 0 ;
6682 PyObject
* obj1
= 0 ;
6683 char * kwnames
[] = {
6684 (char *) "self",(char *) "encoding", NULL
6687 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6688 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxXmlDocument
, 0 | 0 );
6689 if (!SWIG_IsOK(res1
)) {
6690 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlDocument_SetFileEncoding" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6692 arg1
= reinterpret_cast< wxXmlDocument
* >(argp1
);
6694 arg2
= wxString_in_helper(obj1
);
6695 if (arg2
== NULL
) SWIG_fail
;
6699 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6700 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
6701 wxPyEndAllowThreads(__tstate
);
6702 if (PyErr_Occurred()) SWIG_fail
;
6704 resultobj
= SWIG_Py_Void();
6719 SWIGINTERN PyObject
*XmlDocument_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6721 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
6722 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlDocument
, SWIG_NewClientData(obj
));
6723 return SWIG_Py_Void();
6726 SWIGINTERN PyObject
*XmlDocument_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6727 return SWIG_Python_InitShadowInstance(args
);
6730 SWIGINTERN PyObject
*_wrap_new_XmlResourceHandler(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6731 PyObject
*resultobj
= 0;
6732 wxPyXmlResourceHandler
*result
= 0 ;
6734 if (!SWIG_Python_UnpackTuple(args
,"new_XmlResourceHandler",0,0,0)) SWIG_fail
;
6736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6737 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
6738 wxPyEndAllowThreads(__tstate
);
6739 if (PyErr_Occurred()) SWIG_fail
;
6741 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_NEW
| 0 );
6748 SWIGINTERN PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6749 PyObject
*resultobj
= 0;
6750 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6751 PyObject
*arg2
= (PyObject
*) 0 ;
6752 PyObject
*arg3
= (PyObject
*) 0 ;
6755 PyObject
* obj0
= 0 ;
6756 PyObject
* obj1
= 0 ;
6757 PyObject
* obj2
= 0 ;
6758 char * kwnames
[] = {
6759 (char *) "self",(char *) "self",(char *) "_class", NULL
6762 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
6763 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
6764 if (!SWIG_IsOK(res1
)) {
6765 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
6767 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
6771 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6772 (arg1
)->_setCallbackInfo(arg2
,arg3
);
6773 wxPyEndAllowThreads(__tstate
);
6774 if (PyErr_Occurred()) SWIG_fail
;
6776 resultobj
= SWIG_Py_Void();
6783 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6784 PyObject
*resultobj
= 0;
6785 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6786 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
6787 wxObject
*arg3
= (wxObject
*) 0 ;
6788 wxObject
*arg4
= (wxObject
*) 0 ;
6789 wxObject
*result
= 0 ;
6798 PyObject
* obj0
= 0 ;
6799 PyObject
* obj1
= 0 ;
6800 PyObject
* obj2
= 0 ;
6801 PyObject
* obj3
= 0 ;
6802 char * kwnames
[] = {
6803 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
6806 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
6807 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
6808 if (!SWIG_IsOK(res1
)) {
6809 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
6811 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
6812 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
6813 if (!SWIG_IsOK(res2
)) {
6814 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "2"" of type '" "wxXmlNode *""'");
6816 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
6817 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_wxObject
, 0 | 0 );
6818 if (!SWIG_IsOK(res3
)) {
6819 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "3"" of type '" "wxObject *""'");
6821 arg3
= reinterpret_cast< wxObject
* >(argp3
);
6822 res4
= SWIG_ConvertPtr(obj3
, &argp4
,SWIGTYPE_p_wxObject
, 0 | 0 );
6823 if (!SWIG_IsOK(res4
)) {
6824 SWIG_exception_fail(SWIG_ArgError(res4
), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "4"" of type '" "wxObject *""'");
6826 arg4
= reinterpret_cast< wxObject
* >(argp4
);
6828 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6829 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
6830 wxPyEndAllowThreads(__tstate
);
6831 if (PyErr_Occurred()) SWIG_fail
;
6834 resultobj
= wxPyMake_wxObject(result
, (bool)0);
6842 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
6843 PyObject
*resultobj
= 0;
6844 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6845 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
6850 PyObject
* obj0
= 0 ;
6851 PyObject
* obj1
= 0 ;
6852 char * kwnames
[] = {
6853 (char *) "self",(char *) "res", NULL
6856 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
6857 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
6858 if (!SWIG_IsOK(res1
)) {
6859 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_SetParentResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
6861 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
6862 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlResource
, 0 | 0 );
6863 if (!SWIG_IsOK(res2
)) {
6864 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_SetParentResource" "', expected argument " "2"" of type '" "wxXmlResource *""'");
6866 arg2
= reinterpret_cast< wxXmlResource
* >(argp2
);
6868 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6869 (arg1
)->SetParentResource(arg2
);
6870 wxPyEndAllowThreads(__tstate
);
6871 if (PyErr_Occurred()) SWIG_fail
;
6873 resultobj
= SWIG_Py_Void();
6880 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6881 PyObject
*resultobj
= 0;
6882 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6883 wxXmlResource
*result
= 0 ;
6886 PyObject
*swig_obj
[1] ;
6888 if (!args
) SWIG_fail
;
6890 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
6891 if (!SWIG_IsOK(res1
)) {
6892 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
6894 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
6896 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6897 result
= (wxXmlResource
*)(arg1
)->GetResource();
6898 wxPyEndAllowThreads(__tstate
);
6899 if (PyErr_Occurred()) SWIG_fail
;
6901 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlResource
, 0 | 0 );
6908 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6909 PyObject
*resultobj
= 0;
6910 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6911 wxXmlNode
*result
= 0 ;
6914 PyObject
*swig_obj
[1] ;
6916 if (!args
) SWIG_fail
;
6918 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
6919 if (!SWIG_IsOK(res1
)) {
6920 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
6922 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
6924 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6925 result
= (wxXmlNode
*)(arg1
)->GetNode();
6926 wxPyEndAllowThreads(__tstate
);
6927 if (PyErr_Occurred()) SWIG_fail
;
6929 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, 0 | 0 );
6936 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6937 PyObject
*resultobj
= 0;
6938 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6942 PyObject
*swig_obj
[1] ;
6944 if (!args
) SWIG_fail
;
6946 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
6947 if (!SWIG_IsOK(res1
)) {
6948 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetClass" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
6950 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
6952 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6953 result
= (arg1
)->GetClass();
6954 wxPyEndAllowThreads(__tstate
);
6955 if (PyErr_Occurred()) SWIG_fail
;
6959 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
6961 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
6970 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
6971 PyObject
*resultobj
= 0;
6972 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6973 wxObject
*result
= 0 ;
6976 PyObject
*swig_obj
[1] ;
6978 if (!args
) SWIG_fail
;
6980 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
6981 if (!SWIG_IsOK(res1
)) {
6982 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetParent" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
6984 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
6986 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6987 result
= (wxObject
*)(arg1
)->GetParent();
6988 wxPyEndAllowThreads(__tstate
);
6989 if (PyErr_Occurred()) SWIG_fail
;
6992 resultobj
= wxPyMake_wxObject(result
, (bool)0);
7000 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7001 PyObject
*resultobj
= 0;
7002 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7003 wxObject
*result
= 0 ;
7006 PyObject
*swig_obj
[1] ;
7008 if (!args
) SWIG_fail
;
7010 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7011 if (!SWIG_IsOK(res1
)) {
7012 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetInstance" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7014 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7016 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7017 result
= (wxObject
*)(arg1
)->GetInstance();
7018 wxPyEndAllowThreads(__tstate
);
7019 if (PyErr_Occurred()) SWIG_fail
;
7022 resultobj
= wxPyMake_wxObject(result
, (bool)0);
7030 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7031 PyObject
*resultobj
= 0;
7032 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7033 wxWindow
*result
= 0 ;
7036 PyObject
*swig_obj
[1] ;
7038 if (!args
) SWIG_fail
;
7040 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7041 if (!SWIG_IsOK(res1
)) {
7042 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetParentAsWindow" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7044 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7046 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7047 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
7048 wxPyEndAllowThreads(__tstate
);
7049 if (PyErr_Occurred()) SWIG_fail
;
7052 resultobj
= wxPyMake_wxObject(result
, 0);
7060 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7061 PyObject
*resultobj
= 0;
7062 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7063 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
7064 wxString
*arg3
= 0 ;
7070 bool temp3
= false ;
7071 PyObject
* obj0
= 0 ;
7072 PyObject
* obj1
= 0 ;
7073 PyObject
* obj2
= 0 ;
7074 char * kwnames
[] = {
7075 (char *) "self",(char *) "node",(char *) "classname", NULL
7078 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
7079 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7080 if (!SWIG_IsOK(res1
)) {
7081 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_IsOfClass" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7083 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7084 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
7085 if (!SWIG_IsOK(res2
)) {
7086 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_IsOfClass" "', expected argument " "2"" of type '" "wxXmlNode *""'");
7088 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
7090 arg3
= wxString_in_helper(obj2
);
7091 if (arg3
== NULL
) SWIG_fail
;
7095 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7096 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
7097 wxPyEndAllowThreads(__tstate
);
7098 if (PyErr_Occurred()) SWIG_fail
;
7101 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
7117 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7118 PyObject
*resultobj
= 0;
7119 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7120 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
7126 PyObject
* obj0
= 0 ;
7127 PyObject
* obj1
= 0 ;
7128 char * kwnames
[] = {
7129 (char *) "self",(char *) "node", NULL
7132 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7133 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7134 if (!SWIG_IsOK(res1
)) {
7135 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetNodeContent" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7137 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7138 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
7139 if (!SWIG_IsOK(res2
)) {
7140 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_GetNodeContent" "', expected argument " "2"" of type '" "wxXmlNode *""'");
7142 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
7144 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7145 result
= (arg1
)->GetNodeContent(arg2
);
7146 wxPyEndAllowThreads(__tstate
);
7147 if (PyErr_Occurred()) SWIG_fail
;
7151 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
7153 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
7162 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7163 PyObject
*resultobj
= 0;
7164 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7165 wxString
*arg2
= 0 ;
7169 bool temp2
= false ;
7170 PyObject
* obj0
= 0 ;
7171 PyObject
* obj1
= 0 ;
7172 char * kwnames
[] = {
7173 (char *) "self",(char *) "param", NULL
7176 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7177 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7178 if (!SWIG_IsOK(res1
)) {
7179 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_HasParam" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7181 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7183 arg2
= wxString_in_helper(obj1
);
7184 if (arg2
== NULL
) SWIG_fail
;
7188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7189 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
7190 wxPyEndAllowThreads(__tstate
);
7191 if (PyErr_Occurred()) SWIG_fail
;
7194 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
7210 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7211 PyObject
*resultobj
= 0;
7212 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7213 wxString
*arg2
= 0 ;
7214 wxXmlNode
*result
= 0 ;
7217 bool temp2
= false ;
7218 PyObject
* obj0
= 0 ;
7219 PyObject
* obj1
= 0 ;
7220 char * kwnames
[] = {
7221 (char *) "self",(char *) "param", NULL
7224 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7225 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7226 if (!SWIG_IsOK(res1
)) {
7227 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetParamNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7229 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7231 arg2
= wxString_in_helper(obj1
);
7232 if (arg2
== NULL
) SWIG_fail
;
7236 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7237 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
7238 wxPyEndAllowThreads(__tstate
);
7239 if (PyErr_Occurred()) SWIG_fail
;
7241 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxXmlNode
, 0 | 0 );
7256 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7257 PyObject
*resultobj
= 0;
7258 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7259 wxString
*arg2
= 0 ;
7263 bool temp2
= false ;
7264 PyObject
* obj0
= 0 ;
7265 PyObject
* obj1
= 0 ;
7266 char * kwnames
[] = {
7267 (char *) "self",(char *) "param", NULL
7270 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7271 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7272 if (!SWIG_IsOK(res1
)) {
7273 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetParamValue" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7275 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7277 arg2
= wxString_in_helper(obj1
);
7278 if (arg2
== NULL
) SWIG_fail
;
7282 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7283 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
7284 wxPyEndAllowThreads(__tstate
);
7285 if (PyErr_Occurred()) SWIG_fail
;
7289 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
7291 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
7308 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7309 PyObject
*resultobj
= 0;
7310 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7311 wxString
*arg2
= 0 ;
7315 bool temp2
= false ;
7318 PyObject
* obj0
= 0 ;
7319 PyObject
* obj1
= 0 ;
7320 PyObject
* obj2
= 0 ;
7321 char * kwnames
[] = {
7322 (char *) "self",(char *) "name",(char *) "value", NULL
7325 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
7326 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7327 if (!SWIG_IsOK(res1
)) {
7328 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_AddStyle" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7330 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7332 arg2
= wxString_in_helper(obj1
);
7333 if (arg2
== NULL
) SWIG_fail
;
7336 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
7337 if (!SWIG_IsOK(ecode3
)) {
7338 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResourceHandler_AddStyle" "', expected argument " "3"" of type '" "int""'");
7340 arg3
= static_cast< int >(val3
);
7342 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7343 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
7344 wxPyEndAllowThreads(__tstate
);
7345 if (PyErr_Occurred()) SWIG_fail
;
7347 resultobj
= SWIG_Py_Void();
7362 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7363 PyObject
*resultobj
= 0;
7364 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7367 PyObject
*swig_obj
[1] ;
7369 if (!args
) SWIG_fail
;
7371 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7372 if (!SWIG_IsOK(res1
)) {
7373 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_AddWindowStyles" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7375 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7378 (arg1
)->AddWindowStyles();
7379 wxPyEndAllowThreads(__tstate
);
7380 if (PyErr_Occurred()) SWIG_fail
;
7382 resultobj
= SWIG_Py_Void();
7389 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7390 PyObject
*resultobj
= 0;
7391 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7392 wxString
const &arg2_defvalue
= wxPyStyleString
;
7393 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
7394 int arg3
= (int) 0 ;
7398 bool temp2
= false ;
7401 PyObject
* obj0
= 0 ;
7402 PyObject
* obj1
= 0 ;
7403 PyObject
* obj2
= 0 ;
7404 char * kwnames
[] = {
7405 (char *) "self",(char *) "param",(char *) "defaults", NULL
7408 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
7409 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7410 if (!SWIG_IsOK(res1
)) {
7411 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetStyle" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7413 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7416 arg2
= wxString_in_helper(obj1
);
7417 if (arg2
== NULL
) SWIG_fail
;
7422 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
7423 if (!SWIG_IsOK(ecode3
)) {
7424 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResourceHandler_GetStyle" "', expected argument " "3"" of type '" "int""'");
7426 arg3
= static_cast< int >(val3
);
7429 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7430 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
7431 wxPyEndAllowThreads(__tstate
);
7432 if (PyErr_Occurred()) SWIG_fail
;
7434 resultobj
= SWIG_From_int(static_cast< int >(result
));
7449 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7450 PyObject
*resultobj
= 0;
7451 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7452 wxString
*arg2
= 0 ;
7453 bool arg3
= (bool) true ;
7457 bool temp2
= false ;
7460 PyObject
* obj0
= 0 ;
7461 PyObject
* obj1
= 0 ;
7462 PyObject
* obj2
= 0 ;
7463 char * kwnames
[] = {
7464 (char *) "self",(char *) "param",(char *) "translate", NULL
7467 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
7468 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7469 if (!SWIG_IsOK(res1
)) {
7470 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetText" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7472 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7474 arg2
= wxString_in_helper(obj1
);
7475 if (arg2
== NULL
) SWIG_fail
;
7479 ecode3
= SWIG_AsVal_bool(obj2
, &val3
);
7480 if (!SWIG_IsOK(ecode3
)) {
7481 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResourceHandler_GetText" "', expected argument " "3"" of type '" "bool""'");
7483 arg3
= static_cast< bool >(val3
);
7486 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7487 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
7488 wxPyEndAllowThreads(__tstate
);
7489 if (PyErr_Occurred()) SWIG_fail
;
7493 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
7495 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
7512 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7513 PyObject
*resultobj
= 0;
7514 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7518 PyObject
*swig_obj
[1] ;
7520 if (!args
) SWIG_fail
;
7522 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7523 if (!SWIG_IsOK(res1
)) {
7524 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetID" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7526 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7529 result
= (int)(arg1
)->GetID();
7530 wxPyEndAllowThreads(__tstate
);
7531 if (PyErr_Occurred()) SWIG_fail
;
7533 resultobj
= SWIG_From_int(static_cast< int >(result
));
7540 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
7541 PyObject
*resultobj
= 0;
7542 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7546 PyObject
*swig_obj
[1] ;
7548 if (!args
) SWIG_fail
;
7550 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7551 if (!SWIG_IsOK(res1
)) {
7552 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetName" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7554 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7556 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7557 result
= (arg1
)->GetName();
7558 wxPyEndAllowThreads(__tstate
);
7559 if (PyErr_Occurred()) SWIG_fail
;
7563 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
7565 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
7574 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7575 PyObject
*resultobj
= 0;
7576 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7577 wxString
*arg2
= 0 ;
7578 bool arg3
= (bool) false ;
7582 bool temp2
= false ;
7585 PyObject
* obj0
= 0 ;
7586 PyObject
* obj1
= 0 ;
7587 PyObject
* obj2
= 0 ;
7588 char * kwnames
[] = {
7589 (char *) "self",(char *) "param",(char *) "defaultv", NULL
7592 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
7593 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7594 if (!SWIG_IsOK(res1
)) {
7595 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetBool" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7597 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7599 arg2
= wxString_in_helper(obj1
);
7600 if (arg2
== NULL
) SWIG_fail
;
7604 ecode3
= SWIG_AsVal_bool(obj2
, &val3
);
7605 if (!SWIG_IsOK(ecode3
)) {
7606 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResourceHandler_GetBool" "', expected argument " "3"" of type '" "bool""'");
7608 arg3
= static_cast< bool >(val3
);
7611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7612 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
7613 wxPyEndAllowThreads(__tstate
);
7614 if (PyErr_Occurred()) SWIG_fail
;
7617 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
7633 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7634 PyObject
*resultobj
= 0;
7635 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7636 wxString
*arg2
= 0 ;
7637 long arg3
= (long) 0 ;
7641 bool temp2
= false ;
7644 PyObject
* obj0
= 0 ;
7645 PyObject
* obj1
= 0 ;
7646 PyObject
* obj2
= 0 ;
7647 char * kwnames
[] = {
7648 (char *) "self",(char *) "param",(char *) "defaultv", NULL
7651 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
7652 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7653 if (!SWIG_IsOK(res1
)) {
7654 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetLong" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7656 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7658 arg2
= wxString_in_helper(obj1
);
7659 if (arg2
== NULL
) SWIG_fail
;
7663 ecode3
= SWIG_AsVal_long(obj2
, &val3
);
7664 if (!SWIG_IsOK(ecode3
)) {
7665 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResourceHandler_GetLong" "', expected argument " "3"" of type '" "long""'");
7667 arg3
= static_cast< long >(val3
);
7670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7671 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
7672 wxPyEndAllowThreads(__tstate
);
7673 if (PyErr_Occurred()) SWIG_fail
;
7675 resultobj
= SWIG_From_long(static_cast< long >(result
));
7690 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7691 PyObject
*resultobj
= 0;
7692 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7693 wxString
*arg2
= 0 ;
7697 bool temp2
= false ;
7698 PyObject
* obj0
= 0 ;
7699 PyObject
* obj1
= 0 ;
7700 char * kwnames
[] = {
7701 (char *) "self",(char *) "param", NULL
7704 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7705 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7706 if (!SWIG_IsOK(res1
)) {
7707 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetColour" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7709 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7711 arg2
= wxString_in_helper(obj1
);
7712 if (arg2
== NULL
) SWIG_fail
;
7716 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7717 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
7718 wxPyEndAllowThreads(__tstate
);
7719 if (PyErr_Occurred()) SWIG_fail
;
7721 resultobj
= SWIG_NewPointerObj((new wxColour(static_cast< const wxColour
& >(result
))), SWIGTYPE_p_wxColour
, SWIG_POINTER_OWN
| 0 );
7736 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7737 PyObject
*resultobj
= 0;
7738 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7739 wxString
const &arg2_defvalue
= wxPySizeString
;
7740 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
7744 bool temp2
= false ;
7745 PyObject
* obj0
= 0 ;
7746 PyObject
* obj1
= 0 ;
7747 char * kwnames
[] = {
7748 (char *) "self",(char *) "param", NULL
7751 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7752 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7753 if (!SWIG_IsOK(res1
)) {
7754 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetSize" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7756 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7759 arg2
= wxString_in_helper(obj1
);
7760 if (arg2
== NULL
) SWIG_fail
;
7765 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7766 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
7767 wxPyEndAllowThreads(__tstate
);
7768 if (PyErr_Occurred()) SWIG_fail
;
7770 resultobj
= SWIG_NewPointerObj((new wxSize(static_cast< const wxSize
& >(result
))), SWIGTYPE_p_wxSize
, SWIG_POINTER_OWN
| 0 );
7785 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7786 PyObject
*resultobj
= 0;
7787 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7788 wxString
const &arg2_defvalue
= wxPyPosString
;
7789 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
7793 bool temp2
= false ;
7794 PyObject
* obj0
= 0 ;
7795 PyObject
* obj1
= 0 ;
7796 char * kwnames
[] = {
7797 (char *) "self",(char *) "param", NULL
7800 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
7801 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7802 if (!SWIG_IsOK(res1
)) {
7803 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetPosition" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7805 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7808 arg2
= wxString_in_helper(obj1
);
7809 if (arg2
== NULL
) SWIG_fail
;
7814 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7815 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
7816 wxPyEndAllowThreads(__tstate
);
7817 if (PyErr_Occurred()) SWIG_fail
;
7819 resultobj
= SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint
& >(result
))), SWIGTYPE_p_wxPoint
, SWIG_POINTER_OWN
| 0 );
7834 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7835 PyObject
*resultobj
= 0;
7836 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7837 wxString
*arg2
= 0 ;
7838 int arg3
= (int) 0 ;
7842 bool temp2
= false ;
7845 PyObject
* obj0
= 0 ;
7846 PyObject
* obj1
= 0 ;
7847 PyObject
* obj2
= 0 ;
7848 char * kwnames
[] = {
7849 (char *) "self",(char *) "param",(char *) "defaultv", NULL
7852 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
7853 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7854 if (!SWIG_IsOK(res1
)) {
7855 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetDimension" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7857 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7859 arg2
= wxString_in_helper(obj1
);
7860 if (arg2
== NULL
) SWIG_fail
;
7864 ecode3
= SWIG_AsVal_int(obj2
, &val3
);
7865 if (!SWIG_IsOK(ecode3
)) {
7866 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResourceHandler_GetDimension" "', expected argument " "3"" of type '" "int""'");
7868 arg3
= static_cast< int >(val3
);
7871 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7872 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
7873 wxPyEndAllowThreads(__tstate
);
7874 if (PyErr_Occurred()) SWIG_fail
;
7876 resultobj
= SWIG_From_int(static_cast< int >(result
));
7891 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7892 PyObject
*resultobj
= 0;
7893 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7894 wxString
const &arg2_defvalue
= wxPyBitmapString
;
7895 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
7896 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
7897 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
7898 wxSize arg4
= (wxSize
) wxDefaultSize
;
7902 bool temp2
= false ;
7907 PyObject
* obj0
= 0 ;
7908 PyObject
* obj1
= 0 ;
7909 PyObject
* obj2
= 0 ;
7910 PyObject
* obj3
= 0 ;
7911 char * kwnames
[] = {
7912 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
7915 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
7916 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
7917 if (!SWIG_IsOK(res1
)) {
7918 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7920 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
7923 arg2
= wxString_in_helper(obj1
);
7924 if (arg2
== NULL
) SWIG_fail
;
7929 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxArtClient
, 0 | 0);
7930 if (!SWIG_IsOK(res3
)) {
7931 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "3"" of type '" "wxArtClient const &""'");
7934 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "3"" of type '" "wxArtClient const &""'");
7936 arg3
= reinterpret_cast< wxArtClient
* >(argp3
);
7940 res4
= SWIG_ConvertPtr(obj3
, &argp4
, SWIGTYPE_p_wxSize
, 0 | 0);
7941 if (!SWIG_IsOK(res4
)) {
7942 SWIG_exception_fail(SWIG_ArgError(res4
), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "4"" of type '" "wxSize""'");
7945 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "4"" of type '" "wxSize""'");
7947 wxSize
* temp
= reinterpret_cast< wxSize
* >(argp4
);
7949 if (SWIG_IsNewObj(res4
)) delete temp
;
7954 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7955 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
7956 wxPyEndAllowThreads(__tstate
);
7957 if (PyErr_Occurred()) SWIG_fail
;
7959 resultobj
= SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap
& >(result
))), SWIGTYPE_p_wxBitmap
, SWIG_POINTER_OWN
| 0 );
7974 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
7975 PyObject
*resultobj
= 0;
7976 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
7977 wxString
const &arg2_defvalue
= wxPyIconString
;
7978 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
7979 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
7980 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
7981 wxSize arg4
= (wxSize
) wxDefaultSize
;
7985 bool temp2
= false ;
7990 PyObject
* obj0
= 0 ;
7991 PyObject
* obj1
= 0 ;
7992 PyObject
* obj2
= 0 ;
7993 PyObject
* obj3
= 0 ;
7994 char * kwnames
[] = {
7995 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
7998 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
7999 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
8000 if (!SWIG_IsOK(res1
)) {
8001 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8003 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
8006 arg2
= wxString_in_helper(obj1
);
8007 if (arg2
== NULL
) SWIG_fail
;
8012 res3
= SWIG_ConvertPtr(obj2
, &argp3
, SWIGTYPE_p_wxArtClient
, 0 | 0);
8013 if (!SWIG_IsOK(res3
)) {
8014 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "3"" of type '" "wxArtClient const &""'");
8017 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "3"" of type '" "wxArtClient const &""'");
8019 arg3
= reinterpret_cast< wxArtClient
* >(argp3
);
8023 res4
= SWIG_ConvertPtr(obj3
, &argp4
, SWIGTYPE_p_wxSize
, 0 | 0);
8024 if (!SWIG_IsOK(res4
)) {
8025 SWIG_exception_fail(SWIG_ArgError(res4
), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "4"" of type '" "wxSize""'");
8028 SWIG_exception_fail(SWIG_ValueError
, "invalid null reference " "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "4"" of type '" "wxSize""'");
8030 wxSize
* temp
= reinterpret_cast< wxSize
* >(argp4
);
8032 if (SWIG_IsNewObj(res4
)) delete temp
;
8037 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8038 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
8039 wxPyEndAllowThreads(__tstate
);
8040 if (PyErr_Occurred()) SWIG_fail
;
8042 resultobj
= SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon
& >(result
))), SWIGTYPE_p_wxIcon
, SWIG_POINTER_OWN
| 0 );
8057 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8058 PyObject
*resultobj
= 0;
8059 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
8060 wxString
const &arg2_defvalue
= wxPyFontString
;
8061 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
8065 bool temp2
= false ;
8066 PyObject
* obj0
= 0 ;
8067 PyObject
* obj1
= 0 ;
8068 char * kwnames
[] = {
8069 (char *) "self",(char *) "param", NULL
8072 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
8073 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
8074 if (!SWIG_IsOK(res1
)) {
8075 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetFont" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8077 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
8080 arg2
= wxString_in_helper(obj1
);
8081 if (arg2
== NULL
) SWIG_fail
;
8086 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8087 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
8088 wxPyEndAllowThreads(__tstate
);
8089 if (PyErr_Occurred()) SWIG_fail
;
8091 resultobj
= SWIG_NewPointerObj((new wxFont(static_cast< const wxFont
& >(result
))), SWIGTYPE_p_wxFont
, SWIG_POINTER_OWN
| 0 );
8106 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8107 PyObject
*resultobj
= 0;
8108 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
8109 wxWindow
*arg2
= (wxWindow
*) 0 ;
8114 PyObject
* obj0
= 0 ;
8115 PyObject
* obj1
= 0 ;
8116 char * kwnames
[] = {
8117 (char *) "self",(char *) "wnd", NULL
8120 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) SWIG_fail
;
8121 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
8122 if (!SWIG_IsOK(res1
)) {
8123 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_SetupWindow" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8125 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
8126 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxWindow
, 0 | 0 );
8127 if (!SWIG_IsOK(res2
)) {
8128 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_SetupWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
8130 arg2
= reinterpret_cast< wxWindow
* >(argp2
);
8132 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8133 (arg1
)->SetupWindow(arg2
);
8134 wxPyEndAllowThreads(__tstate
);
8135 if (PyErr_Occurred()) SWIG_fail
;
8137 resultobj
= SWIG_Py_Void();
8144 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8145 PyObject
*resultobj
= 0;
8146 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
8147 wxObject
*arg2
= (wxObject
*) 0 ;
8148 bool arg3
= (bool) false ;
8155 PyObject
* obj0
= 0 ;
8156 PyObject
* obj1
= 0 ;
8157 PyObject
* obj2
= 0 ;
8158 char * kwnames
[] = {
8159 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
8162 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
8163 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
8164 if (!SWIG_IsOK(res1
)) {
8165 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8167 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
8168 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxObject
, 0 | 0 );
8169 if (!SWIG_IsOK(res2
)) {
8170 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "2"" of type '" "wxObject *""'");
8172 arg2
= reinterpret_cast< wxObject
* >(argp2
);
8174 ecode3
= SWIG_AsVal_bool(obj2
, &val3
);
8175 if (!SWIG_IsOK(ecode3
)) {
8176 SWIG_exception_fail(SWIG_ArgError(ecode3
), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "3"" of type '" "bool""'");
8178 arg3
= static_cast< bool >(val3
);
8181 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8182 (arg1
)->CreateChildren(arg2
,arg3
);
8183 wxPyEndAllowThreads(__tstate
);
8184 if (PyErr_Occurred()) SWIG_fail
;
8186 resultobj
= SWIG_Py_Void();
8193 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8194 PyObject
*resultobj
= 0;
8195 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
8196 wxObject
*arg2
= (wxObject
*) 0 ;
8197 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
8204 PyObject
* obj0
= 0 ;
8205 PyObject
* obj1
= 0 ;
8206 PyObject
* obj2
= 0 ;
8207 char * kwnames
[] = {
8208 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
8211 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) SWIG_fail
;
8212 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
8213 if (!SWIG_IsOK(res1
)) {
8214 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8216 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
8217 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxObject
, 0 | 0 );
8218 if (!SWIG_IsOK(res2
)) {
8219 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "2"" of type '" "wxObject *""'");
8221 arg2
= reinterpret_cast< wxObject
* >(argp2
);
8223 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
8224 if (!SWIG_IsOK(res3
)) {
8225 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "3"" of type '" "wxXmlNode *""'");
8227 arg3
= reinterpret_cast< wxXmlNode
* >(argp3
);
8230 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8231 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
8232 wxPyEndAllowThreads(__tstate
);
8233 if (PyErr_Occurred()) SWIG_fail
;
8235 resultobj
= SWIG_Py_Void();
8242 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
, PyObject
*kwargs
) {
8243 PyObject
*resultobj
= 0;
8244 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
8245 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
8246 wxObject
*arg3
= (wxObject
*) 0 ;
8247 wxObject
*arg4
= (wxObject
*) NULL
;
8248 wxObject
*result
= 0 ;
8257 PyObject
* obj0
= 0 ;
8258 PyObject
* obj1
= 0 ;
8259 PyObject
* obj2
= 0 ;
8260 PyObject
* obj3
= 0 ;
8261 char * kwnames
[] = {
8262 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
8265 if (!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) SWIG_fail
;
8266 res1
= SWIG_ConvertPtr(obj0
, &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
8267 if (!SWIG_IsOK(res1
)) {
8268 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8270 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
8271 res2
= SWIG_ConvertPtr(obj1
, &argp2
,SWIGTYPE_p_wxXmlNode
, 0 | 0 );
8272 if (!SWIG_IsOK(res2
)) {
8273 SWIG_exception_fail(SWIG_ArgError(res2
), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "2"" of type '" "wxXmlNode *""'");
8275 arg2
= reinterpret_cast< wxXmlNode
* >(argp2
);
8276 res3
= SWIG_ConvertPtr(obj2
, &argp3
,SWIGTYPE_p_wxObject
, 0 | 0 );
8277 if (!SWIG_IsOK(res3
)) {
8278 SWIG_exception_fail(SWIG_ArgError(res3
), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "3"" of type '" "wxObject *""'");
8280 arg3
= reinterpret_cast< wxObject
* >(argp3
);
8282 res4
= SWIG_ConvertPtr(obj3
, &argp4
,SWIGTYPE_p_wxObject
, 0 | 0 );
8283 if (!SWIG_IsOK(res4
)) {
8284 SWIG_exception_fail(SWIG_ArgError(res4
), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "4"" of type '" "wxObject *""'");
8286 arg4
= reinterpret_cast< wxObject
* >(argp4
);
8289 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8290 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
8291 wxPyEndAllowThreads(__tstate
);
8292 if (PyErr_Occurred()) SWIG_fail
;
8295 resultobj
= wxPyMake_wxObject(result
, (bool)0);
8303 SWIGINTERN PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
8304 PyObject
*resultobj
= 0;
8305 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
8306 wxFileSystem
*result
= 0 ;
8309 PyObject
*swig_obj
[1] ;
8311 if (!args
) SWIG_fail
;
8313 res1
= SWIG_ConvertPtr(swig_obj
[0], &argp1
,SWIGTYPE_p_wxPyXmlResourceHandler
, 0 | 0 );
8314 if (!SWIG_IsOK(res1
)) {
8315 SWIG_exception_fail(SWIG_ArgError(res1
), "in method '" "XmlResourceHandler_GetCurFileSystem" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8317 arg1
= reinterpret_cast< wxPyXmlResourceHandler
* >(argp1
);
8319 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8321 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
8322 result
= (wxFileSystem
*) &_result_ref
;
8324 wxPyEndAllowThreads(__tstate
);
8325 if (PyErr_Occurred()) SWIG_fail
;
8327 resultobj
= SWIG_NewPointerObj(SWIG_as_voidptr(result
), SWIGTYPE_p_wxFileSystem
, 0 | 0 );
8334 SWIGINTERN PyObject
*XmlResourceHandler_swigregister(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
8336 if (!SWIG_Python_UnpackTuple(args
,(char*)"swigregister", 1, 1,&obj
)) return NULL
;
8337 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_NewClientData(obj
));
8338 return SWIG_Py_Void();
8341 SWIGINTERN PyObject
*XmlResourceHandler_swiginit(PyObject
*SWIGUNUSEDPARM(self
), PyObject
*args
) {
8342 return SWIG_Python_InitShadowInstance(args
);
8345 static PyMethodDef SwigMethods
[] = {
8346 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8347 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8348 { (char *)"delete_XmlResource", (PyCFunction
)_wrap_delete_XmlResource
, METH_O
, NULL
},
8349 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8350 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8351 { (char *)"XmlResource_Unload", (PyCFunction
) _wrap_XmlResource_Unload
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8352 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
)_wrap_XmlResource_InitAllHandlers
, METH_O
, NULL
},
8353 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8354 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8355 { (char *)"XmlResource_ClearHandlers", (PyCFunction
)_wrap_XmlResource_ClearHandlers
, METH_O
, NULL
},
8356 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8357 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8358 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8359 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8360 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8361 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8362 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8363 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8364 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8365 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8366 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8367 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8368 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8369 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8370 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8371 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8372 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8373 { (char *)"XmlResource_GetVersion", (PyCFunction
)_wrap_XmlResource_GetVersion
, METH_O
, NULL
},
8374 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8375 { (char *)"XmlResource_Get", (PyCFunction
)_wrap_XmlResource_Get
, METH_NOARGS
, NULL
},
8376 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8377 { (char *)"XmlResource_GetFlags", (PyCFunction
)_wrap_XmlResource_GetFlags
, METH_O
, NULL
},
8378 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8379 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
, NULL
},
8380 { (char *)"XmlResource_swiginit", XmlResource_swiginit
, METH_VARARGS
, NULL
},
8381 { (char *)"new_XmlSubclassFactory", (PyCFunction
)_wrap_new_XmlSubclassFactory
, METH_NOARGS
, NULL
},
8382 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8383 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
, NULL
},
8384 { (char *)"XmlSubclassFactory_swiginit", XmlSubclassFactory_swiginit
, METH_VARARGS
, NULL
},
8385 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8386 { (char *)"XmlProperty_GetName", (PyCFunction
)_wrap_XmlProperty_GetName
, METH_O
, NULL
},
8387 { (char *)"XmlProperty_GetValue", (PyCFunction
)_wrap_XmlProperty_GetValue
, METH_O
, NULL
},
8388 { (char *)"XmlProperty_GetNext", (PyCFunction
)_wrap_XmlProperty_GetNext
, METH_O
, NULL
},
8389 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8390 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8391 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8392 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
, NULL
},
8393 { (char *)"XmlProperty_swiginit", XmlProperty_swiginit
, METH_VARARGS
, NULL
},
8394 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8395 { (char *)"delete_XmlNode", (PyCFunction
)_wrap_delete_XmlNode
, METH_O
, NULL
},
8396 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8397 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8398 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8399 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8400 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8401 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8402 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8403 { (char *)"XmlNode_GetType", (PyCFunction
)_wrap_XmlNode_GetType
, METH_O
, NULL
},
8404 { (char *)"XmlNode_GetName", (PyCFunction
)_wrap_XmlNode_GetName
, METH_O
, NULL
},
8405 { (char *)"XmlNode_GetContent", (PyCFunction
)_wrap_XmlNode_GetContent
, METH_O
, NULL
},
8406 { (char *)"XmlNode_GetParent", (PyCFunction
)_wrap_XmlNode_GetParent
, METH_O
, NULL
},
8407 { (char *)"XmlNode_GetNext", (PyCFunction
)_wrap_XmlNode_GetNext
, METH_O
, NULL
},
8408 { (char *)"XmlNode_GetChildren", (PyCFunction
)_wrap_XmlNode_GetChildren
, METH_O
, NULL
},
8409 { (char *)"XmlNode_GetProperties", (PyCFunction
)_wrap_XmlNode_GetProperties
, METH_O
, NULL
},
8410 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8411 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8412 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8413 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8414 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8415 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8416 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8417 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8418 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8419 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
, NULL
},
8420 { (char *)"XmlNode_swiginit", XmlNode_swiginit
, METH_VARARGS
, NULL
},
8421 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8422 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8423 { (char *)"new_EmptyXmlDocument", (PyCFunction
)_wrap_new_EmptyXmlDocument
, METH_NOARGS
, NULL
},
8424 { (char *)"delete_XmlDocument", (PyCFunction
)_wrap_delete_XmlDocument
, METH_O
, NULL
},
8425 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8426 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8427 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8428 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8429 { (char *)"XmlDocument_IsOk", (PyCFunction
)_wrap_XmlDocument_IsOk
, METH_O
, NULL
},
8430 { (char *)"XmlDocument_GetRoot", (PyCFunction
)_wrap_XmlDocument_GetRoot
, METH_O
, NULL
},
8431 { (char *)"XmlDocument_GetVersion", (PyCFunction
)_wrap_XmlDocument_GetVersion
, METH_O
, NULL
},
8432 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
)_wrap_XmlDocument_GetFileEncoding
, METH_O
, NULL
},
8433 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8434 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8435 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8436 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
, NULL
},
8437 { (char *)"XmlDocument_swiginit", XmlDocument_swiginit
, METH_VARARGS
, NULL
},
8438 { (char *)"new_XmlResourceHandler", (PyCFunction
)_wrap_new_XmlResourceHandler
, METH_NOARGS
, NULL
},
8439 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8440 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8441 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8442 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
)_wrap_XmlResourceHandler_GetResource
, METH_O
, NULL
},
8443 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
)_wrap_XmlResourceHandler_GetNode
, METH_O
, NULL
},
8444 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
)_wrap_XmlResourceHandler_GetClass
, METH_O
, NULL
},
8445 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
)_wrap_XmlResourceHandler_GetParent
, METH_O
, NULL
},
8446 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
)_wrap_XmlResourceHandler_GetInstance
, METH_O
, NULL
},
8447 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
)_wrap_XmlResourceHandler_GetParentAsWindow
, METH_O
, NULL
},
8448 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8449 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8450 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8451 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8452 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8453 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8454 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
)_wrap_XmlResourceHandler_AddWindowStyles
, METH_O
, NULL
},
8455 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8456 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8457 { (char *)"XmlResourceHandler_GetID", (PyCFunction
)_wrap_XmlResourceHandler_GetID
, METH_O
, NULL
},
8458 { (char *)"XmlResourceHandler_GetName", (PyCFunction
)_wrap_XmlResourceHandler_GetName
, METH_O
, NULL
},
8459 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8460 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8461 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8462 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8463 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8464 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8465 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8466 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8467 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8468 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8469 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8470 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8471 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
8472 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
)_wrap_XmlResourceHandler_GetCurFileSystem
, METH_O
, NULL
},
8473 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
, NULL
},
8474 { (char *)"XmlResourceHandler_swiginit", XmlResourceHandler_swiginit
, METH_VARARGS
, NULL
},
8475 { NULL
, NULL
, 0, NULL
}
8479 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
8481 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
8482 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
8484 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
8485 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
8487 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
8488 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
8490 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
8491 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
8493 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
8494 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
8496 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
8497 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
8499 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
8500 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
8502 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
8503 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
8505 static void *_p_wxSizerTo_p_wxObject(void *x
) {
8506 return (void *)((wxObject
*) ((wxSizer
*) x
));
8508 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
8509 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
8511 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
8512 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
8514 static void *_p_wxEventTo_p_wxObject(void *x
) {
8515 return (void *)((wxObject
*) ((wxEvent
*) x
));
8517 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
8518 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
8520 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
8521 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
8523 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
8524 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
8526 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x
) {
8527 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxClipboardTextEvent
*) x
));
8529 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
8530 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
8532 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
8533 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
8535 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
8536 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
8538 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
8539 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
8541 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
8542 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
8544 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
8545 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
8547 static void *_p_wxControlTo_p_wxObject(void *x
) {
8548 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
8550 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
8551 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
8553 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
8554 return (void *)((wxObject
*) ((wxFSFile
*) x
));
8556 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
8557 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
8559 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
8560 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
8562 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
8563 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
8565 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
8566 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
8568 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
8569 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
8571 static void *_p_wxDateEventTo_p_wxObject(void *x
) {
8572 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxDateEvent
*) x
));
8574 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
8575 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
8577 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
8578 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
8580 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
8581 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
8583 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
8584 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
8586 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
8587 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
8589 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
8590 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
8592 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
8593 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
8595 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
8596 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
8598 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
8599 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
8601 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
8602 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
8604 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
8605 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
8607 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
8608 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
8610 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
8611 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
8613 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
8614 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
8616 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
8617 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
8619 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
8620 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
8622 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
8623 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
8625 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x
) {
8626 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPyImageHandler
*) x
));
8628 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
8629 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
8631 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
8632 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
8634 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
8635 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
8637 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
8638 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
8640 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
8641 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
8643 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) {
8644 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStdDialogButtonSizer
*) x
));
8646 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
8647 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
8649 static void *_p_wxImageTo_p_wxObject(void *x
) {
8650 return (void *)((wxObject
*) ((wxImage
*) x
));
8652 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
8653 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
8655 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
8656 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
8658 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
8659 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
8661 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
8662 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
8664 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
8665 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
8667 static void *_p_wxWindowTo_p_wxObject(void *x
) {
8668 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
8670 static void *_p_wxMenuTo_p_wxObject(void *x
) {
8671 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
8673 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
8674 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
8676 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
8677 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
8679 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
8680 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
8682 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
8683 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
8685 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
8686 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
8688 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
8689 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
8691 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
8692 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
8694 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
8695 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
8697 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
8698 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
8700 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
8701 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
8703 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
8704 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
8706 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
8707 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
8709 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
8710 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
8712 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
8713 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
8715 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
8716 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
8718 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
8719 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
8721 static void *_p_wxControlTo_p_wxWindow(void *x
) {
8722 return (void *)((wxWindow
*) ((wxControl
*) x
));
8724 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
8725 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
8727 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
8728 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
8730 static swig_type_info _swigt__p_char
= {"_p_char", "char *", 0, 0, (void*)0, 0};
8731 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};
8732 static swig_type_info _swigt__p_int
= {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0};
8733 static swig_type_info _swigt__p_unsigned_char
= {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
8734 static swig_type_info _swigt__p_unsigned_int
= {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
8735 static swig_type_info _swigt__p_unsigned_long
= {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
8736 static swig_type_info _swigt__p_wxArtClient
= {"_p_wxArtClient", "wxArtClient *", 0, 0, (void*)0, 0};
8737 static swig_type_info _swigt__p_wxBitmap
= {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
8738 static swig_type_info _swigt__p_wxColour
= {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
8739 static swig_type_info _swigt__p_wxDialog
= {"_p_wxDialog", "wxDialog *", 0, 0, (void*)0, 0};
8740 static swig_type_info _swigt__p_wxDuplexMode
= {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
8741 static swig_type_info _swigt__p_wxFileSystem
= {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0};
8742 static swig_type_info _swigt__p_wxFont
= {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
8743 static swig_type_info _swigt__p_wxFrame
= {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0};
8744 static swig_type_info _swigt__p_wxIcon
= {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
8745 static swig_type_info _swigt__p_wxInputStream
= {"_p_wxInputStream", "wxInputStream *", 0, 0, (void*)0, 0};
8746 static swig_type_info _swigt__p_wxObject
= {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
8747 static swig_type_info _swigt__p_wxLayoutConstraints
= {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
8748 static swig_type_info _swigt__p_wxGBSizerItem
= {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
8749 static swig_type_info _swigt__p_wxSizerItem
= {"_p_wxSizerItem", 0, 0, 0, 0, 0};
8750 static swig_type_info _swigt__p_wxScrollEvent
= {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
8751 static swig_type_info _swigt__p_wxIndividualLayoutConstraint
= {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
8752 static swig_type_info _swigt__p_wxStaticBoxSizer
= {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
8753 static swig_type_info _swigt__p_wxBoxSizer
= {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
8754 static swig_type_info _swigt__p_wxSizer
= {"_p_wxSizer", 0, 0, 0, 0, 0};
8755 static swig_type_info _swigt__p_wxGridBagSizer
= {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
8756 static swig_type_info _swigt__p_wxUpdateUIEvent
= {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
8757 static swig_type_info _swigt__p_wxMenu
= {"_p_wxMenu", 0, 0, 0, 0, 0};
8758 static swig_type_info _swigt__p_wxEvent
= {"_p_wxEvent", 0, 0, 0, 0, 0};
8759 static swig_type_info _swigt__p_wxFlexGridSizer
= {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
8760 static swig_type_info _swigt__p_wxGridSizer
= {"_p_wxGridSizer", 0, 0, 0, 0, 0};
8761 static swig_type_info _swigt__p_wxInitDialogEvent
= {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
8762 static swig_type_info _swigt__p_wxClipboardTextEvent
= {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
8763 static swig_type_info _swigt__p_wxPaintEvent
= {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
8764 static swig_type_info _swigt__p_wxNcPaintEvent
= {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
8765 static swig_type_info _swigt__p_wxPaletteChangedEvent
= {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
8766 static swig_type_info _swigt__p_wxDisplayChangedEvent
= {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
8767 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent
= {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
8768 static swig_type_info _swigt__p_wxSysColourChangedEvent
= {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
8769 static swig_type_info _swigt__p_wxControl
= {"_p_wxControl", 0, 0, 0, 0, 0};
8770 static swig_type_info _swigt__p_wxSetCursorEvent
= {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
8771 static swig_type_info _swigt__p_wxFSFile
= {"_p_wxFSFile", 0, 0, 0, 0, 0};
8772 static swig_type_info _swigt__p_wxPySizer
= {"_p_wxPySizer", 0, 0, 0, 0, 0};
8773 static swig_type_info _swigt__p_wxPyEvent
= {"_p_wxPyEvent", 0, 0, 0, 0, 0};
8774 static swig_type_info _swigt__p_wxNotifyEvent
= {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
8775 static swig_type_info _swigt__p_wxShowEvent
= {"_p_wxShowEvent", 0, 0, 0, 0, 0};
8776 static swig_type_info _swigt__p_wxMenuItem
= {"_p_wxMenuItem", 0, 0, 0, 0, 0};
8777 static swig_type_info _swigt__p_wxWindowCreateEvent
= {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
8778 static swig_type_info _swigt__p_wxIdleEvent
= {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
8779 static swig_type_info _swigt__p_wxDateEvent
= {"_p_wxDateEvent", 0, 0, 0, 0, 0};
8780 static swig_type_info _swigt__p_wxQueryNewPaletteEvent
= {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
8781 static swig_type_info _swigt__p_wxMaximizeEvent
= {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
8782 static swig_type_info _swigt__p_wxIconizeEvent
= {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
8783 static swig_type_info _swigt__p_wxSizeEvent
= {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
8784 static swig_type_info _swigt__p_wxActivateEvent
= {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
8785 static swig_type_info _swigt__p_wxMoveEvent
= {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
8786 static swig_type_info _swigt__p_wxPNMHandler
= {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
8787 static swig_type_info _swigt__p_wxJPEGHandler
= {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
8788 static swig_type_info _swigt__p_wxPCXHandler
= {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
8789 static swig_type_info _swigt__p_wxGIFHandler
= {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
8790 static swig_type_info _swigt__p_wxPNGHandler
= {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
8791 static swig_type_info _swigt__p_wxANIHandler
= {"_p_wxANIHandler", 0, 0, 0, 0, 0};
8792 static swig_type_info _swigt__p_wxCURHandler
= {"_p_wxCURHandler", 0, 0, 0, 0, 0};
8793 static swig_type_info _swigt__p_wxICOHandler
= {"_p_wxICOHandler", 0, 0, 0, 0, 0};
8794 static swig_type_info _swigt__p_wxBMPHandler
= {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
8795 static swig_type_info _swigt__p_wxPyImageHandler
= {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
8796 static swig_type_info _swigt__p_wxImageHandler
= {"_p_wxImageHandler", 0, 0, 0, 0, 0};
8797 static swig_type_info _swigt__p_wxXPMHandler
= {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
8798 static swig_type_info _swigt__p_wxTIFFHandler
= {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
8799 static swig_type_info _swigt__p_wxEvtHandler
= {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
8800 static swig_type_info _swigt__p_wxStdDialogButtonSizer
= {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
8801 static swig_type_info _swigt__p_wxAcceleratorTable
= {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
8802 static swig_type_info _swigt__p_wxImage
= {"_p_wxImage", 0, 0, 0, 0, 0};
8803 static swig_type_info _swigt__p_wxScrollWinEvent
= {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
8804 static swig_type_info _swigt__p_wxWindowDestroyEvent
= {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
8805 static swig_type_info _swigt__p_wxNavigationKeyEvent
= {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
8806 static swig_type_info _swigt__p_wxKeyEvent
= {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
8807 static swig_type_info _swigt__p_wxMenuBar
= {"_p_wxMenuBar", 0, 0, 0, 0, 0};
8808 static swig_type_info _swigt__p_wxContextMenuEvent
= {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
8809 static swig_type_info _swigt__p_wxMenuEvent
= {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
8810 static swig_type_info _swigt__p_wxPyApp
= {"_p_wxPyApp", 0, 0, 0, 0, 0};
8811 static swig_type_info _swigt__p_wxCloseEvent
= {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
8812 static swig_type_info _swigt__p_wxMouseEvent
= {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
8813 static swig_type_info _swigt__p_wxEraseEvent
= {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
8814 static swig_type_info _swigt__p_wxPyCommandEvent
= {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
8815 static swig_type_info _swigt__p_wxCommandEvent
= {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
8816 static swig_type_info _swigt__p_wxDropFilesEvent
= {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
8817 static swig_type_info _swigt__p_wxFocusEvent
= {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
8818 static swig_type_info _swigt__p_wxChildFocusEvent
= {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
8819 static swig_type_info _swigt__p_wxControlWithItems
= {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
8820 static swig_type_info _swigt__p_wxPyValidator
= {"_p_wxPyValidator", 0, 0, 0, 0, 0};
8821 static swig_type_info _swigt__p_wxValidator
= {"_p_wxValidator", 0, 0, 0, 0, 0};
8822 static swig_type_info _swigt__p_wxOutputStream
= {"_p_wxOutputStream", "wxOutputStream *", 0, 0, (void*)0, 0};
8823 static swig_type_info _swigt__p_wxPanel
= {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0};
8824 static swig_type_info _swigt__p_wxPaperSize
= {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
8825 static swig_type_info _swigt__p_wxPoint
= {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
8826 static swig_type_info _swigt__p_wxPyXmlResourceHandler
= {"_p_wxPyXmlResourceHandler", "wxPyXmlResourceHandler *", 0, 0, (void*)0, 0};
8827 static swig_type_info _swigt__p_wxPyXmlSubclassFactory
= {"_p_wxPyXmlSubclassFactory", "wxPyXmlSubclassFactory *", 0, 0, (void*)0, 0};
8828 static swig_type_info _swigt__p_wxSize
= {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
8829 static swig_type_info _swigt__p_wxWindow
= {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
8830 static swig_type_info _swigt__p_wxXmlDocument
= {"_p_wxXmlDocument", "wxXmlDocument *", 0, 0, (void*)0, 0};
8831 static swig_type_info _swigt__p_wxXmlNode
= {"_p_wxXmlNode", "wxXmlNode *", 0, 0, (void*)0, 0};
8832 static swig_type_info _swigt__p_wxXmlProperty
= {"_p_wxXmlProperty", "wxXmlProperty *", 0, 0, (void*)0, 0};
8833 static swig_type_info _swigt__p_wxXmlResource
= {"_p_wxXmlResource", "wxXmlResource *", 0, 0, (void*)0, 0};
8835 static swig_type_info
*swig_type_initial
[] = {
8837 &_swigt__p_form_ops_t
,
8839 &_swigt__p_unsigned_char
,
8840 &_swigt__p_unsigned_int
,
8841 &_swigt__p_unsigned_long
,
8842 &_swigt__p_wxANIHandler
,
8843 &_swigt__p_wxAcceleratorTable
,
8844 &_swigt__p_wxActivateEvent
,
8845 &_swigt__p_wxArtClient
,
8846 &_swigt__p_wxBMPHandler
,
8847 &_swigt__p_wxBitmap
,
8848 &_swigt__p_wxBoxSizer
,
8849 &_swigt__p_wxCURHandler
,
8850 &_swigt__p_wxChildFocusEvent
,
8851 &_swigt__p_wxClipboardTextEvent
,
8852 &_swigt__p_wxCloseEvent
,
8853 &_swigt__p_wxColour
,
8854 &_swigt__p_wxCommandEvent
,
8855 &_swigt__p_wxContextMenuEvent
,
8856 &_swigt__p_wxControl
,
8857 &_swigt__p_wxControlWithItems
,
8858 &_swigt__p_wxDateEvent
,
8859 &_swigt__p_wxDialog
,
8860 &_swigt__p_wxDisplayChangedEvent
,
8861 &_swigt__p_wxDropFilesEvent
,
8862 &_swigt__p_wxDuplexMode
,
8863 &_swigt__p_wxEraseEvent
,
8865 &_swigt__p_wxEvtHandler
,
8866 &_swigt__p_wxFSFile
,
8867 &_swigt__p_wxFileSystem
,
8868 &_swigt__p_wxFlexGridSizer
,
8869 &_swigt__p_wxFocusEvent
,
8872 &_swigt__p_wxGBSizerItem
,
8873 &_swigt__p_wxGIFHandler
,
8874 &_swigt__p_wxGridBagSizer
,
8875 &_swigt__p_wxGridSizer
,
8876 &_swigt__p_wxICOHandler
,
8878 &_swigt__p_wxIconizeEvent
,
8879 &_swigt__p_wxIdleEvent
,
8881 &_swigt__p_wxImageHandler
,
8882 &_swigt__p_wxIndividualLayoutConstraint
,
8883 &_swigt__p_wxInitDialogEvent
,
8884 &_swigt__p_wxInputStream
,
8885 &_swigt__p_wxJPEGHandler
,
8886 &_swigt__p_wxKeyEvent
,
8887 &_swigt__p_wxLayoutConstraints
,
8888 &_swigt__p_wxMaximizeEvent
,
8890 &_swigt__p_wxMenuBar
,
8891 &_swigt__p_wxMenuEvent
,
8892 &_swigt__p_wxMenuItem
,
8893 &_swigt__p_wxMouseCaptureChangedEvent
,
8894 &_swigt__p_wxMouseEvent
,
8895 &_swigt__p_wxMoveEvent
,
8896 &_swigt__p_wxNavigationKeyEvent
,
8897 &_swigt__p_wxNcPaintEvent
,
8898 &_swigt__p_wxNotifyEvent
,
8899 &_swigt__p_wxObject
,
8900 &_swigt__p_wxOutputStream
,
8901 &_swigt__p_wxPCXHandler
,
8902 &_swigt__p_wxPNGHandler
,
8903 &_swigt__p_wxPNMHandler
,
8904 &_swigt__p_wxPaintEvent
,
8905 &_swigt__p_wxPaletteChangedEvent
,
8907 &_swigt__p_wxPaperSize
,
8910 &_swigt__p_wxPyCommandEvent
,
8911 &_swigt__p_wxPyEvent
,
8912 &_swigt__p_wxPyImageHandler
,
8913 &_swigt__p_wxPySizer
,
8914 &_swigt__p_wxPyValidator
,
8915 &_swigt__p_wxPyXmlResourceHandler
,
8916 &_swigt__p_wxPyXmlSubclassFactory
,
8917 &_swigt__p_wxQueryNewPaletteEvent
,
8918 &_swigt__p_wxScrollEvent
,
8919 &_swigt__p_wxScrollWinEvent
,
8920 &_swigt__p_wxSetCursorEvent
,
8921 &_swigt__p_wxShowEvent
,
8923 &_swigt__p_wxSizeEvent
,
8925 &_swigt__p_wxSizerItem
,
8926 &_swigt__p_wxStaticBoxSizer
,
8927 &_swigt__p_wxStdDialogButtonSizer
,
8928 &_swigt__p_wxSysColourChangedEvent
,
8929 &_swigt__p_wxTIFFHandler
,
8930 &_swigt__p_wxUpdateUIEvent
,
8931 &_swigt__p_wxValidator
,
8932 &_swigt__p_wxWindow
,
8933 &_swigt__p_wxWindowCreateEvent
,
8934 &_swigt__p_wxWindowDestroyEvent
,
8935 &_swigt__p_wxXPMHandler
,
8936 &_swigt__p_wxXmlDocument
,
8937 &_swigt__p_wxXmlNode
,
8938 &_swigt__p_wxXmlProperty
,
8939 &_swigt__p_wxXmlResource
,
8942 static swig_cast_info _swigc__p_char
[] = { {&_swigt__p_char
, 0, 0, 0},{0, 0, 0, 0}};
8943 static swig_cast_info _swigc__p_form_ops_t
[] = { {&_swigt__p_form_ops_t
, 0, 0, 0},{0, 0, 0, 0}};
8944 static swig_cast_info _swigc__p_int
[] = { {&_swigt__p_int
, 0, 0, 0},{0, 0, 0, 0}};
8945 static swig_cast_info _swigc__p_unsigned_char
[] = { {&_swigt__p_unsigned_char
, 0, 0, 0},{0, 0, 0, 0}};
8946 static swig_cast_info _swigc__p_unsigned_int
[] = { {&_swigt__p_unsigned_int
, 0, 0, 0},{0, 0, 0, 0}};
8947 static swig_cast_info _swigc__p_unsigned_long
[] = { {&_swigt__p_unsigned_long
, 0, 0, 0},{0, 0, 0, 0}};
8948 static swig_cast_info _swigc__p_wxArtClient
[] = { {&_swigt__p_wxArtClient
, 0, 0, 0},{0, 0, 0, 0}};
8949 static swig_cast_info _swigc__p_wxBitmap
[] = { {&_swigt__p_wxBitmap
, 0, 0, 0},{0, 0, 0, 0}};
8950 static swig_cast_info _swigc__p_wxColour
[] = { {&_swigt__p_wxColour
, 0, 0, 0},{0, 0, 0, 0}};
8951 static swig_cast_info _swigc__p_wxDialog
[] = { {&_swigt__p_wxDialog
, 0, 0, 0},{0, 0, 0, 0}};
8952 static swig_cast_info _swigc__p_wxDuplexMode
[] = { {&_swigt__p_wxDuplexMode
, 0, 0, 0},{0, 0, 0, 0}};
8953 static swig_cast_info _swigc__p_wxFileSystem
[] = { {&_swigt__p_wxFileSystem
, 0, 0, 0},{0, 0, 0, 0}};
8954 static swig_cast_info _swigc__p_wxFont
[] = { {&_swigt__p_wxFont
, 0, 0, 0},{0, 0, 0, 0}};
8955 static swig_cast_info _swigc__p_wxFrame
[] = { {&_swigt__p_wxFrame
, 0, 0, 0},{0, 0, 0, 0}};
8956 static swig_cast_info _swigc__p_wxIcon
[] = { {&_swigt__p_wxIcon
, 0, 0, 0},{0, 0, 0, 0}};
8957 static swig_cast_info _swigc__p_wxInputStream
[] = { {&_swigt__p_wxInputStream
, 0, 0, 0},{0, 0, 0, 0}};
8958 static swig_cast_info _swigc__p_wxLayoutConstraints
[] = {{&_swigt__p_wxLayoutConstraints
, 0, 0, 0},{0, 0, 0, 0}};
8959 static swig_cast_info _swigc__p_wxGBSizerItem
[] = {{&_swigt__p_wxGBSizerItem
, 0, 0, 0},{0, 0, 0, 0}};
8960 static swig_cast_info _swigc__p_wxSizerItem
[] = {{&_swigt__p_wxSizerItem
, 0, 0, 0},{0, 0, 0, 0}};
8961 static swig_cast_info _swigc__p_wxScrollEvent
[] = {{&_swigt__p_wxScrollEvent
, 0, 0, 0},{0, 0, 0, 0}};
8962 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint
[] = {{&_swigt__p_wxIndividualLayoutConstraint
, 0, 0, 0},{0, 0, 0, 0}};
8963 static swig_cast_info _swigc__p_wxStaticBoxSizer
[] = {{&_swigt__p_wxStaticBoxSizer
, 0, 0, 0},{0, 0, 0, 0}};
8964 static swig_cast_info _swigc__p_wxBoxSizer
[] = {{&_swigt__p_wxBoxSizer
, 0, 0, 0},{0, 0, 0, 0}};
8965 static swig_cast_info _swigc__p_wxSizer
[] = {{&_swigt__p_wxSizer
, 0, 0, 0},{0, 0, 0, 0}};
8966 static swig_cast_info _swigc__p_wxGridBagSizer
[] = {{&_swigt__p_wxGridBagSizer
, 0, 0, 0},{0, 0, 0, 0}};
8967 static swig_cast_info _swigc__p_wxUpdateUIEvent
[] = {{&_swigt__p_wxUpdateUIEvent
, 0, 0, 0},{0, 0, 0, 0}};
8968 static swig_cast_info _swigc__p_wxMenu
[] = {{&_swigt__p_wxMenu
, 0, 0, 0},{0, 0, 0, 0}};
8969 static swig_cast_info _swigc__p_wxEvent
[] = {{&_swigt__p_wxEvent
, 0, 0, 0},{0, 0, 0, 0}};
8970 static swig_cast_info _swigc__p_wxFlexGridSizer
[] = {{&_swigt__p_wxFlexGridSizer
, 0, 0, 0},{0, 0, 0, 0}};
8971 static swig_cast_info _swigc__p_wxGridSizer
[] = {{&_swigt__p_wxGridSizer
, 0, 0, 0},{0, 0, 0, 0}};
8972 static swig_cast_info _swigc__p_wxInitDialogEvent
[] = {{&_swigt__p_wxInitDialogEvent
, 0, 0, 0},{0, 0, 0, 0}};
8973 static swig_cast_info _swigc__p_wxClipboardTextEvent
[] = {{&_swigt__p_wxClipboardTextEvent
, 0, 0, 0},{0, 0, 0, 0}};
8974 static swig_cast_info _swigc__p_wxPaintEvent
[] = {{&_swigt__p_wxPaintEvent
, 0, 0, 0},{0, 0, 0, 0}};
8975 static swig_cast_info _swigc__p_wxNcPaintEvent
[] = {{&_swigt__p_wxNcPaintEvent
, 0, 0, 0},{0, 0, 0, 0}};
8976 static swig_cast_info _swigc__p_wxPaletteChangedEvent
[] = {{&_swigt__p_wxPaletteChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
8977 static swig_cast_info _swigc__p_wxDisplayChangedEvent
[] = {{&_swigt__p_wxDisplayChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
8978 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent
[] = {{&_swigt__p_wxMouseCaptureChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
8979 static swig_cast_info _swigc__p_wxSysColourChangedEvent
[] = {{&_swigt__p_wxSysColourChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
8980 static swig_cast_info _swigc__p_wxControl
[] = {{&_swigt__p_wxControl
, 0, 0, 0},{0, 0, 0, 0}};
8981 static swig_cast_info _swigc__p_wxSetCursorEvent
[] = {{&_swigt__p_wxSetCursorEvent
, 0, 0, 0},{0, 0, 0, 0}};
8982 static swig_cast_info _swigc__p_wxFSFile
[] = {{&_swigt__p_wxFSFile
, 0, 0, 0},{0, 0, 0, 0}};
8983 static swig_cast_info _swigc__p_wxPySizer
[] = {{&_swigt__p_wxPySizer
, 0, 0, 0},{0, 0, 0, 0}};
8984 static swig_cast_info _swigc__p_wxPyEvent
[] = {{&_swigt__p_wxPyEvent
, 0, 0, 0},{0, 0, 0, 0}};
8985 static swig_cast_info _swigc__p_wxNotifyEvent
[] = {{&_swigt__p_wxNotifyEvent
, 0, 0, 0},{0, 0, 0, 0}};
8986 static swig_cast_info _swigc__p_wxShowEvent
[] = {{&_swigt__p_wxShowEvent
, 0, 0, 0},{0, 0, 0, 0}};
8987 static swig_cast_info _swigc__p_wxMenuItem
[] = {{&_swigt__p_wxMenuItem
, 0, 0, 0},{0, 0, 0, 0}};
8988 static swig_cast_info _swigc__p_wxWindowCreateEvent
[] = {{&_swigt__p_wxWindowCreateEvent
, 0, 0, 0},{0, 0, 0, 0}};
8989 static swig_cast_info _swigc__p_wxIdleEvent
[] = {{&_swigt__p_wxIdleEvent
, 0, 0, 0},{0, 0, 0, 0}};
8990 static swig_cast_info _swigc__p_wxDateEvent
[] = {{&_swigt__p_wxDateEvent
, 0, 0, 0},{0, 0, 0, 0}};
8991 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent
[] = {{&_swigt__p_wxQueryNewPaletteEvent
, 0, 0, 0},{0, 0, 0, 0}};
8992 static swig_cast_info _swigc__p_wxMaximizeEvent
[] = {{&_swigt__p_wxMaximizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
8993 static swig_cast_info _swigc__p_wxIconizeEvent
[] = {{&_swigt__p_wxIconizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
8994 static swig_cast_info _swigc__p_wxSizeEvent
[] = {{&_swigt__p_wxSizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
8995 static swig_cast_info _swigc__p_wxActivateEvent
[] = {{&_swigt__p_wxActivateEvent
, 0, 0, 0},{0, 0, 0, 0}};
8996 static swig_cast_info _swigc__p_wxMoveEvent
[] = {{&_swigt__p_wxMoveEvent
, 0, 0, 0},{0, 0, 0, 0}};
8997 static swig_cast_info _swigc__p_wxPNMHandler
[] = {{&_swigt__p_wxPNMHandler
, 0, 0, 0},{0, 0, 0, 0}};
8998 static swig_cast_info _swigc__p_wxJPEGHandler
[] = {{&_swigt__p_wxJPEGHandler
, 0, 0, 0},{0, 0, 0, 0}};
8999 static swig_cast_info _swigc__p_wxPCXHandler
[] = {{&_swigt__p_wxPCXHandler
, 0, 0, 0},{0, 0, 0, 0}};
9000 static swig_cast_info _swigc__p_wxGIFHandler
[] = {{&_swigt__p_wxGIFHandler
, 0, 0, 0},{0, 0, 0, 0}};
9001 static swig_cast_info _swigc__p_wxPNGHandler
[] = {{&_swigt__p_wxPNGHandler
, 0, 0, 0},{0, 0, 0, 0}};
9002 static swig_cast_info _swigc__p_wxANIHandler
[] = {{&_swigt__p_wxANIHandler
, 0, 0, 0},{0, 0, 0, 0}};
9003 static swig_cast_info _swigc__p_wxCURHandler
[] = {{&_swigt__p_wxCURHandler
, 0, 0, 0},{0, 0, 0, 0}};
9004 static swig_cast_info _swigc__p_wxICOHandler
[] = {{&_swigt__p_wxICOHandler
, 0, 0, 0},{0, 0, 0, 0}};
9005 static swig_cast_info _swigc__p_wxBMPHandler
[] = {{&_swigt__p_wxBMPHandler
, 0, 0, 0},{0, 0, 0, 0}};
9006 static swig_cast_info _swigc__p_wxPyImageHandler
[] = {{&_swigt__p_wxPyImageHandler
, 0, 0, 0},{0, 0, 0, 0}};
9007 static swig_cast_info _swigc__p_wxImageHandler
[] = {{&_swigt__p_wxImageHandler
, 0, 0, 0},{0, 0, 0, 0}};
9008 static swig_cast_info _swigc__p_wxXPMHandler
[] = {{&_swigt__p_wxXPMHandler
, 0, 0, 0},{0, 0, 0, 0}};
9009 static swig_cast_info _swigc__p_wxTIFFHandler
[] = {{&_swigt__p_wxTIFFHandler
, 0, 0, 0},{0, 0, 0, 0}};
9010 static swig_cast_info _swigc__p_wxEvtHandler
[] = {{&_swigt__p_wxEvtHandler
, 0, 0, 0},{0, 0, 0, 0}};
9011 static swig_cast_info _swigc__p_wxStdDialogButtonSizer
[] = {{&_swigt__p_wxStdDialogButtonSizer
, 0, 0, 0},{0, 0, 0, 0}};
9012 static swig_cast_info _swigc__p_wxAcceleratorTable
[] = {{&_swigt__p_wxAcceleratorTable
, 0, 0, 0},{0, 0, 0, 0}};
9013 static swig_cast_info _swigc__p_wxImage
[] = {{&_swigt__p_wxImage
, 0, 0, 0},{0, 0, 0, 0}};
9014 static swig_cast_info _swigc__p_wxScrollWinEvent
[] = {{&_swigt__p_wxScrollWinEvent
, 0, 0, 0},{0, 0, 0, 0}};
9015 static swig_cast_info _swigc__p_wxWindowDestroyEvent
[] = {{&_swigt__p_wxWindowDestroyEvent
, 0, 0, 0},{0, 0, 0, 0}};
9016 static swig_cast_info _swigc__p_wxNavigationKeyEvent
[] = {{&_swigt__p_wxNavigationKeyEvent
, 0, 0, 0},{0, 0, 0, 0}};
9017 static swig_cast_info _swigc__p_wxKeyEvent
[] = {{&_swigt__p_wxKeyEvent
, 0, 0, 0},{0, 0, 0, 0}};
9018 static swig_cast_info _swigc__p_wxMenuBar
[] = {{&_swigt__p_wxMenuBar
, 0, 0, 0},{0, 0, 0, 0}};
9019 static swig_cast_info _swigc__p_wxContextMenuEvent
[] = {{&_swigt__p_wxContextMenuEvent
, 0, 0, 0},{0, 0, 0, 0}};
9020 static swig_cast_info _swigc__p_wxMenuEvent
[] = {{&_swigt__p_wxMenuEvent
, 0, 0, 0},{0, 0, 0, 0}};
9021 static swig_cast_info _swigc__p_wxPyApp
[] = {{&_swigt__p_wxPyApp
, 0, 0, 0},{0, 0, 0, 0}};
9022 static swig_cast_info _swigc__p_wxCloseEvent
[] = {{&_swigt__p_wxCloseEvent
, 0, 0, 0},{0, 0, 0, 0}};
9023 static swig_cast_info _swigc__p_wxMouseEvent
[] = {{&_swigt__p_wxMouseEvent
, 0, 0, 0},{0, 0, 0, 0}};
9024 static swig_cast_info _swigc__p_wxEraseEvent
[] = {{&_swigt__p_wxEraseEvent
, 0, 0, 0},{0, 0, 0, 0}};
9025 static swig_cast_info _swigc__p_wxPyCommandEvent
[] = {{&_swigt__p_wxPyCommandEvent
, 0, 0, 0},{0, 0, 0, 0}};
9026 static swig_cast_info _swigc__p_wxCommandEvent
[] = {{&_swigt__p_wxCommandEvent
, 0, 0, 0},{0, 0, 0, 0}};
9027 static swig_cast_info _swigc__p_wxDropFilesEvent
[] = {{&_swigt__p_wxDropFilesEvent
, 0, 0, 0},{0, 0, 0, 0}};
9028 static swig_cast_info _swigc__p_wxFocusEvent
[] = {{&_swigt__p_wxFocusEvent
, 0, 0, 0},{0, 0, 0, 0}};
9029 static swig_cast_info _swigc__p_wxChildFocusEvent
[] = {{&_swigt__p_wxChildFocusEvent
, 0, 0, 0},{0, 0, 0, 0}};
9030 static swig_cast_info _swigc__p_wxControlWithItems
[] = {{&_swigt__p_wxControlWithItems
, 0, 0, 0},{0, 0, 0, 0}};
9031 static swig_cast_info _swigc__p_wxPyValidator
[] = {{&_swigt__p_wxPyValidator
, 0, 0, 0},{0, 0, 0, 0}};
9032 static swig_cast_info _swigc__p_wxValidator
[] = {{&_swigt__p_wxValidator
, 0, 0, 0},{0, 0, 0, 0}};
9033 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_wxClipboardTextEvent
, _p_wxClipboardTextEventTo_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_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_wxQueryNewPaletteEvent
, _p_wxQueryNewPaletteEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMaximizeEvent
, _p_wxMaximizeEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxIconizeEvent
, _p_wxIconizeEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxSizeEvent
, _p_wxSizeEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxActivateEvent
, _p_wxActivateEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMoveEvent
, _p_wxMoveEventTo_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_wxPyCommandEvent
, _p_wxPyCommandEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxCommandEvent
, _p_wxCommandEventTo_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}};
9034 static swig_cast_info _swigc__p_wxOutputStream
[] = { {&_swigt__p_wxOutputStream
, 0, 0, 0},{0, 0, 0, 0}};
9035 static swig_cast_info _swigc__p_wxPanel
[] = { {&_swigt__p_wxPanel
, 0, 0, 0},{0, 0, 0, 0}};
9036 static swig_cast_info _swigc__p_wxPaperSize
[] = { {&_swigt__p_wxPaperSize
, 0, 0, 0},{0, 0, 0, 0}};
9037 static swig_cast_info _swigc__p_wxPoint
[] = { {&_swigt__p_wxPoint
, 0, 0, 0},{0, 0, 0, 0}};
9038 static swig_cast_info _swigc__p_wxPyXmlResourceHandler
[] = { {&_swigt__p_wxPyXmlResourceHandler
, 0, 0, 0},{0, 0, 0, 0}};
9039 static swig_cast_info _swigc__p_wxPyXmlSubclassFactory
[] = { {&_swigt__p_wxPyXmlSubclassFactory
, 0, 0, 0},{0, 0, 0, 0}};
9040 static swig_cast_info _swigc__p_wxSize
[] = { {&_swigt__p_wxSize
, 0, 0, 0},{0, 0, 0, 0}};
9041 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}};
9042 static swig_cast_info _swigc__p_wxXmlDocument
[] = { {&_swigt__p_wxXmlDocument
, 0, 0, 0},{0, 0, 0, 0}};
9043 static swig_cast_info _swigc__p_wxXmlNode
[] = { {&_swigt__p_wxXmlNode
, 0, 0, 0},{0, 0, 0, 0}};
9044 static swig_cast_info _swigc__p_wxXmlProperty
[] = { {&_swigt__p_wxXmlProperty
, 0, 0, 0},{0, 0, 0, 0}};
9045 static swig_cast_info _swigc__p_wxXmlResource
[] = { {&_swigt__p_wxXmlResource
, 0, 0, 0},{0, 0, 0, 0}};
9047 static swig_cast_info
*swig_cast_initial
[] = {
9049 _swigc__p_form_ops_t
,
9051 _swigc__p_unsigned_char
,
9052 _swigc__p_unsigned_int
,
9053 _swigc__p_unsigned_long
,
9054 _swigc__p_wxANIHandler
,
9055 _swigc__p_wxAcceleratorTable
,
9056 _swigc__p_wxActivateEvent
,
9057 _swigc__p_wxArtClient
,
9058 _swigc__p_wxBMPHandler
,
9060 _swigc__p_wxBoxSizer
,
9061 _swigc__p_wxCURHandler
,
9062 _swigc__p_wxChildFocusEvent
,
9063 _swigc__p_wxClipboardTextEvent
,
9064 _swigc__p_wxCloseEvent
,
9066 _swigc__p_wxCommandEvent
,
9067 _swigc__p_wxContextMenuEvent
,
9068 _swigc__p_wxControl
,
9069 _swigc__p_wxControlWithItems
,
9070 _swigc__p_wxDateEvent
,
9072 _swigc__p_wxDisplayChangedEvent
,
9073 _swigc__p_wxDropFilesEvent
,
9074 _swigc__p_wxDuplexMode
,
9075 _swigc__p_wxEraseEvent
,
9077 _swigc__p_wxEvtHandler
,
9079 _swigc__p_wxFileSystem
,
9080 _swigc__p_wxFlexGridSizer
,
9081 _swigc__p_wxFocusEvent
,
9084 _swigc__p_wxGBSizerItem
,
9085 _swigc__p_wxGIFHandler
,
9086 _swigc__p_wxGridBagSizer
,
9087 _swigc__p_wxGridSizer
,
9088 _swigc__p_wxICOHandler
,
9090 _swigc__p_wxIconizeEvent
,
9091 _swigc__p_wxIdleEvent
,
9093 _swigc__p_wxImageHandler
,
9094 _swigc__p_wxIndividualLayoutConstraint
,
9095 _swigc__p_wxInitDialogEvent
,
9096 _swigc__p_wxInputStream
,
9097 _swigc__p_wxJPEGHandler
,
9098 _swigc__p_wxKeyEvent
,
9099 _swigc__p_wxLayoutConstraints
,
9100 _swigc__p_wxMaximizeEvent
,
9102 _swigc__p_wxMenuBar
,
9103 _swigc__p_wxMenuEvent
,
9104 _swigc__p_wxMenuItem
,
9105 _swigc__p_wxMouseCaptureChangedEvent
,
9106 _swigc__p_wxMouseEvent
,
9107 _swigc__p_wxMoveEvent
,
9108 _swigc__p_wxNavigationKeyEvent
,
9109 _swigc__p_wxNcPaintEvent
,
9110 _swigc__p_wxNotifyEvent
,
9112 _swigc__p_wxOutputStream
,
9113 _swigc__p_wxPCXHandler
,
9114 _swigc__p_wxPNGHandler
,
9115 _swigc__p_wxPNMHandler
,
9116 _swigc__p_wxPaintEvent
,
9117 _swigc__p_wxPaletteChangedEvent
,
9119 _swigc__p_wxPaperSize
,
9122 _swigc__p_wxPyCommandEvent
,
9123 _swigc__p_wxPyEvent
,
9124 _swigc__p_wxPyImageHandler
,
9125 _swigc__p_wxPySizer
,
9126 _swigc__p_wxPyValidator
,
9127 _swigc__p_wxPyXmlResourceHandler
,
9128 _swigc__p_wxPyXmlSubclassFactory
,
9129 _swigc__p_wxQueryNewPaletteEvent
,
9130 _swigc__p_wxScrollEvent
,
9131 _swigc__p_wxScrollWinEvent
,
9132 _swigc__p_wxSetCursorEvent
,
9133 _swigc__p_wxShowEvent
,
9135 _swigc__p_wxSizeEvent
,
9137 _swigc__p_wxSizerItem
,
9138 _swigc__p_wxStaticBoxSizer
,
9139 _swigc__p_wxStdDialogButtonSizer
,
9140 _swigc__p_wxSysColourChangedEvent
,
9141 _swigc__p_wxTIFFHandler
,
9142 _swigc__p_wxUpdateUIEvent
,
9143 _swigc__p_wxValidator
,
9145 _swigc__p_wxWindowCreateEvent
,
9146 _swigc__p_wxWindowDestroyEvent
,
9147 _swigc__p_wxXPMHandler
,
9148 _swigc__p_wxXmlDocument
,
9149 _swigc__p_wxXmlNode
,
9150 _swigc__p_wxXmlProperty
,
9151 _swigc__p_wxXmlResource
,
9155 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
9157 static swig_const_info swig_const_table
[] = {
9158 {0, 0, 0, 0.0, 0, 0}};
9163 /* -----------------------------------------------------------------------------
9164 * Type initialization:
9165 * This problem is tough by the requirement that no dynamic
9166 * memory is used. Also, since swig_type_info structures store pointers to
9167 * swig_cast_info structures and swig_cast_info structures store pointers back
9168 * to swig_type_info structures, we need some lookup code at initialization.
9169 * The idea is that swig generates all the structures that are needed.
9170 * The runtime then collects these partially filled structures.
9171 * The SWIG_InitializeModule function takes these initial arrays out of
9172 * swig_module, and does all the lookup, filling in the swig_module.types
9173 * array with the correct data and linking the correct swig_cast_info
9174 * structures together.
9176 * The generated swig_type_info structures are assigned staticly to an initial
9177 * array. We just loop though that array, and handle each type individually.
9178 * First we lookup if this type has been already loaded, and if so, use the
9179 * loaded structure instead of the generated one. Then we have to fill in the
9180 * cast linked list. The cast data is initially stored in something like a
9181 * two-dimensional array. Each row corresponds to a type (there are the same
9182 * number of rows as there are in the swig_type_initial array). Each entry in
9183 * a column is one of the swig_cast_info structures for that type.
9184 * The cast_initial array is actually an array of arrays, because each row has
9185 * a variable number of columns. So to actually build the cast linked list,
9186 * we find the array of casts associated with the type, and loop through it
9187 * adding the casts to the list. The one last trick we need to do is making
9188 * sure the type pointer in the swig_cast_info struct is correct.
9190 * First off, we lookup the cast->type name to see if it is already loaded.
9191 * There are three cases to handle:
9192 * 1) If the cast->type has already been loaded AND the type we are adding
9193 * casting info to has not been loaded (it is in this module), THEN we
9194 * replace the cast->type pointer with the type pointer that has already
9196 * 2) If BOTH types (the one we are adding casting info to, and the
9197 * cast->type) are loaded, THEN the cast info has already been loaded by
9198 * the previous module so we just ignore it.
9199 * 3) Finally, if cast->type has not already been loaded, then we add that
9200 * swig_cast_info to the linked list (because the cast->type) pointer will
9202 * ----------------------------------------------------------------------------- */
9212 #define SWIGRUNTIME_DEBUG
9216 SWIG_InitializeModule(void *clientdata
) {
9218 swig_module_info
*module_head
;
9219 static int init_run
= 0;
9221 clientdata
= clientdata
;
9223 if (init_run
) return;
9226 /* Initialize the swig_module */
9227 swig_module
.type_initial
= swig_type_initial
;
9228 swig_module
.cast_initial
= swig_cast_initial
;
9230 /* Try and load any already created modules */
9231 module_head
= SWIG_GetModule(clientdata
);
9233 swig_module
.next
= module_head
->next
;
9234 module_head
->next
= &swig_module
;
9236 /* This is the first module loaded */
9237 swig_module
.next
= &swig_module
;
9238 SWIG_SetModule(clientdata
, &swig_module
);
9241 /* Now work on filling in swig_module.types */
9242 #ifdef SWIGRUNTIME_DEBUG
9243 printf("SWIG_InitializeModule: size %d\n", swig_module
.size
);
9245 for (i
= 0; i
< swig_module
.size
; ++i
) {
9246 swig_type_info
*type
= 0;
9247 swig_type_info
*ret
;
9248 swig_cast_info
*cast
;
9250 #ifdef SWIGRUNTIME_DEBUG
9251 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
9254 /* if there is another module already loaded */
9255 if (swig_module
.next
!= &swig_module
) {
9256 type
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, swig_module
.type_initial
[i
]->name
);
9259 /* Overwrite clientdata field */
9260 #ifdef SWIGRUNTIME_DEBUG
9261 printf("SWIG_InitializeModule: found type %s\n", type
->name
);
9263 if (swig_module
.type_initial
[i
]->clientdata
) {
9264 type
->clientdata
= swig_module
.type_initial
[i
]->clientdata
;
9265 #ifdef SWIGRUNTIME_DEBUG
9266 printf("SWIG_InitializeModule: found and overwrite type %s \n", type
->name
);
9270 type
= swig_module
.type_initial
[i
];
9273 /* Insert casting types */
9274 cast
= swig_module
.cast_initial
[i
];
9275 while (cast
->type
) {
9276 /* Don't need to add information already in the list */
9278 #ifdef SWIGRUNTIME_DEBUG
9279 printf("SWIG_InitializeModule: look cast %s\n", cast
->type
->name
);
9281 if (swig_module
.next
!= &swig_module
) {
9282 ret
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, cast
->type
->name
);
9283 #ifdef SWIGRUNTIME_DEBUG
9284 if (ret
) printf("SWIG_InitializeModule: found cast %s\n", ret
->name
);
9288 if (type
== swig_module
.type_initial
[i
]) {
9289 #ifdef SWIGRUNTIME_DEBUG
9290 printf("SWIG_InitializeModule: skip old type %s\n", ret
->name
);
9295 /* Check for casting already in the list */
9296 swig_cast_info
*ocast
= SWIG_TypeCheck(ret
->name
, type
);
9297 #ifdef SWIGRUNTIME_DEBUG
9298 if (ocast
) printf("SWIG_InitializeModule: skip old cast %s\n", ret
->name
);
9300 if (!ocast
) ret
= 0;
9305 #ifdef SWIGRUNTIME_DEBUG
9306 printf("SWIG_InitializeModule: adding cast %s\n", cast
->type
->name
);
9309 type
->cast
->prev
= cast
;
9310 cast
->next
= type
->cast
;
9316 /* Set entry in modules->types array equal to the type */
9317 swig_module
.types
[i
] = type
;
9319 swig_module
.types
[i
] = 0;
9321 #ifdef SWIGRUNTIME_DEBUG
9322 printf("**** SWIG_InitializeModule: Cast List ******\n");
9323 for (i
= 0; i
< swig_module
.size
; ++i
) {
9325 swig_cast_info
*cast
= swig_module
.cast_initial
[i
];
9326 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
9327 while (cast
->type
) {
9328 printf("SWIG_InitializeModule: cast type %s\n", cast
->type
->name
);
9332 printf("---- Total casts: %d\n",j
);
9334 printf("**** SWIG_InitializeModule: Cast List ******\n");
9338 /* This function will propagate the clientdata field of type to
9339 * any new swig_type_info structures that have been added into the list
9340 * of equivalent types. It is like calling
9341 * SWIG_TypeClientData(type, clientdata) a second time.
9344 SWIG_PropagateClientData(void) {
9346 swig_cast_info
*equiv
;
9347 static int init_run
= 0;
9349 if (init_run
) return;
9352 for (i
= 0; i
< swig_module
.size
; i
++) {
9353 if (swig_module
.types
[i
]->clientdata
) {
9354 equiv
= swig_module
.types
[i
]->cast
;
9356 if (!equiv
->converter
) {
9357 if (equiv
->type
&& !equiv
->type
->clientdata
)
9358 SWIG_TypeClientData(equiv
->type
, swig_module
.types
[i
]->clientdata
);
9360 equiv
= equiv
->next
;
9380 /* Python-specific SWIG API */
9381 #define SWIG_newvarlink() SWIG_Python_newvarlink()
9382 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
9383 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
9385 /* -----------------------------------------------------------------------------
9386 * global variable support code.
9387 * ----------------------------------------------------------------------------- */
9389 typedef struct swig_globalvar
{
9390 char *name
; /* Name of global variable */
9391 PyObject
*(*get_attr
)(void); /* Return the current value */
9392 int (*set_attr
)(PyObject
*); /* Set the value */
9393 struct swig_globalvar
*next
;
9396 typedef struct swig_varlinkobject
{
9398 swig_globalvar
*vars
;
9399 } swig_varlinkobject
;
9401 SWIGINTERN PyObject
*
9402 swig_varlink_repr(swig_varlinkobject
*SWIGUNUSEDPARM(v
)) {
9403 return PyString_FromString("<Swig global variables>");
9406 SWIGINTERN PyObject
*
9407 swig_varlink_str(swig_varlinkobject
*v
) {
9408 PyObject
*str
= PyString_FromString("(");
9409 swig_globalvar
*var
;
9410 for (var
= v
->vars
; var
; var
=var
->next
) {
9411 PyString_ConcatAndDel(&str
,PyString_FromString(var
->name
));
9412 if (var
->next
) PyString_ConcatAndDel(&str
,PyString_FromString(", "));
9414 PyString_ConcatAndDel(&str
,PyString_FromString(")"));
9419 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int SWIGUNUSEDPARM(flags
)) {
9420 PyObject
*str
= swig_varlink_str(v
);
9421 fprintf(fp
,"Swig global variables ");
9422 fprintf(fp
,"%s\n", PyString_AsString(str
));
9428 swig_varlink_dealloc(swig_varlinkobject
*v
) {
9429 swig_globalvar
*var
= v
->vars
;
9431 swig_globalvar
*n
= var
->next
;
9438 SWIGINTERN PyObject
*
9439 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
9440 PyObject
*res
= NULL
;
9441 swig_globalvar
*var
= v
->vars
;
9443 if (strcmp(var
->name
,n
) == 0) {
9444 res
= (*var
->get_attr
)();
9449 if (res
== NULL
&& !PyErr_Occurred()) {
9450 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
9456 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
9458 swig_globalvar
*var
= v
->vars
;
9460 if (strcmp(var
->name
,n
) == 0) {
9461 res
= (*var
->set_attr
)(p
);
9466 if (res
== 1 && !PyErr_Occurred()) {
9467 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
9472 SWIGINTERN PyTypeObject
*
9473 swig_varlink_type(void) {
9474 static char varlink__doc__
[] = "Swig var link object";
9475 static PyTypeObject varlink_type
;
9476 static int type_init
= 0;
9478 const PyTypeObject tmp
9480 PyObject_HEAD_INIT(NULL
)
9481 0, /* Number of items in variable part (ob_size) */
9482 (char *)"swigvarlink", /* Type name (tp_name) */
9483 sizeof(swig_varlinkobject
), /* Basic size (tp_basicsize) */
9484 0, /* Itemsize (tp_itemsize) */
9485 (destructor
) swig_varlink_dealloc
, /* Deallocator (tp_dealloc) */
9486 (printfunc
) swig_varlink_print
, /* Print (tp_print) */
9487 (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */
9488 (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */
9490 (reprfunc
) swig_varlink_repr
, /* tp_repr */
9491 0, /* tp_as_number */
9492 0, /* tp_as_sequence */
9493 0, /* tp_as_mapping */
9496 (reprfunc
)swig_varlink_str
, /* tp_str */
9497 0, /* tp_getattro */
9498 0, /* tp_setattro */
9499 0, /* tp_as_buffer */
9501 varlink__doc__
, /* tp_doc */
9502 0, /* tp_traverse */
9504 0, /* tp_richcompare */
9505 0, /* tp_weaklistoffset */
9506 #if PY_VERSION_HEX >= 0x02020000
9507 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
9509 #if PY_VERSION_HEX >= 0x02030000
9513 0,0,0,0 /* tp_alloc -> tp_next */
9517 varlink_type
.ob_type
= &PyType_Type
;
9520 return &varlink_type
;
9523 /* Create a variable linking object for use later */
9524 SWIGINTERN PyObject
*
9525 SWIG_Python_newvarlink(void) {
9526 swig_varlinkobject
*result
= PyObject_NEW(swig_varlinkobject
, swig_varlink_type());
9530 return ((PyObject
*) result
);
9534 SWIG_Python_addvarlink(PyObject
*p
, char *name
, PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
)) {
9535 swig_varlinkobject
*v
= (swig_varlinkobject
*) p
;
9536 swig_globalvar
*gv
= (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
9538 size_t size
= strlen(name
)+1;
9539 gv
->name
= (char *)malloc(size
);
9541 strncpy(gv
->name
,name
,size
);
9542 gv
->get_attr
= get_attr
;
9543 gv
->set_attr
= set_attr
;
9550 SWIGINTERN PyObject
*
9552 static PyObject
*_SWIG_globals
= 0;
9553 if (!_SWIG_globals
) _SWIG_globals
= SWIG_newvarlink();
9554 return _SWIG_globals
;
9557 /* -----------------------------------------------------------------------------
9558 * constants/methods manipulation
9559 * ----------------------------------------------------------------------------- */
9561 /* Install Constants */
9563 SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
9566 for (i
= 0; constants
[i
].type
; ++i
) {
9567 switch(constants
[i
].type
) {
9568 case SWIG_PY_POINTER
:
9569 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
9571 case SWIG_PY_BINARY
:
9572 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
9579 PyDict_SetItemString(d
, constants
[i
].name
, obj
);
9585 /* -----------------------------------------------------------------------------*/
9586 /* Fix SwigMethods to carry the callback ptrs when needed */
9587 /* -----------------------------------------------------------------------------*/
9590 SWIG_Python_FixMethods(PyMethodDef
*methods
,
9591 swig_const_info
*const_table
,
9592 swig_type_info
**types
,
9593 swig_type_info
**types_initial
) {
9595 for (i
= 0; methods
[i
].ml_name
; ++i
) {
9596 char *c
= methods
[i
].ml_doc
;
9597 if (c
&& (c
= strstr(c
, "swig_ptr: "))) {
9599 swig_const_info
*ci
= 0;
9600 char *name
= c
+ 10;
9601 for (j
= 0; const_table
[j
].type
; ++j
) {
9602 if (strncmp(const_table
[j
].name
, name
,
9603 strlen(const_table
[j
].name
)) == 0) {
9604 ci
= &(const_table
[j
]);
9609 size_t shift
= (ci
->ptype
) - types
;
9610 swig_type_info
*ty
= types_initial
[shift
];
9611 size_t ldoc
= (c
- methods
[i
].ml_doc
);
9612 size_t lptr
= strlen(ty
->name
)+2*sizeof(void*)+2;
9613 char *ndoc
= (char*)malloc(ldoc
+ lptr
+ 10);
9616 void *ptr
= (ci
->type
== SWIG_PY_POINTER
) ? ci
->pvalue
: 0;
9618 strncpy(buff
, methods
[i
].ml_doc
, ldoc
);
9620 strncpy(buff
, "swig_ptr: ", 10);
9622 SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
);
9623 methods
[i
].ml_doc
= ndoc
;
9635 /* -----------------------------------------------------------------------------*
9636 * Partial Init method
9637 * -----------------------------------------------------------------------------*/
9642 SWIGEXPORT
void SWIG_init(void) {
9645 /* Fix SwigMethods to carry the callback ptrs when needed */
9646 SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_type_initial
);
9648 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
9649 d
= PyModule_GetDict(m
);
9651 SWIG_InitializeModule(0);
9652 SWIG_InstallConstants(d
,swig_const_table
);
9655 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals());
9656 SWIG_addvarlink(SWIG_globals(),(char*)"UTF8String",UTF8String_get
, UTF8String_set
);
9657 SWIG_addvarlink(SWIG_globals(),(char*)"StyleString",StyleString_get
, StyleString_set
);
9658 SWIG_addvarlink(SWIG_globals(),(char*)"SizeString",SizeString_get
, SizeString_set
);
9659 SWIG_addvarlink(SWIG_globals(),(char*)"PosString",PosString_get
, PosString_set
);
9660 SWIG_addvarlink(SWIG_globals(),(char*)"BitmapString",BitmapString_get
, BitmapString_set
);
9661 SWIG_addvarlink(SWIG_globals(),(char*)"IconString",IconString_get
, IconString_set
);
9662 SWIG_addvarlink(SWIG_globals(),(char*)"FontString",FontString_get
, FontString_set
);
9663 SWIG_Python_SetConstant(d
, "WX_XMLRES_CURRENT_VERSION_MAJOR",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_MAJOR
)));
9664 SWIG_Python_SetConstant(d
, "WX_XMLRES_CURRENT_VERSION_MINOR",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_MINOR
)));
9665 SWIG_Python_SetConstant(d
, "WX_XMLRES_CURRENT_VERSION_RELEASE",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_RELEASE
)));
9666 SWIG_Python_SetConstant(d
, "WX_XMLRES_CURRENT_VERSION_REVISION",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_REVISION
)));
9667 SWIG_Python_SetConstant(d
, "XRC_USE_LOCALE",SWIG_From_int(static_cast< int >(wxXRC_USE_LOCALE
)));
9668 SWIG_Python_SetConstant(d
, "XRC_NO_SUBCLASSING",SWIG_From_int(static_cast< int >(wxXRC_NO_SUBCLASSING
)));
9669 SWIG_Python_SetConstant(d
, "XRC_NO_RELOADING",SWIG_From_int(static_cast< int >(wxXRC_NO_RELOADING
)));
9670 SWIG_Python_SetConstant(d
, "XML_ELEMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_ELEMENT_NODE
)));
9671 SWIG_Python_SetConstant(d
, "XML_ATTRIBUTE_NODE",SWIG_From_int(static_cast< int >(wxXML_ATTRIBUTE_NODE
)));
9672 SWIG_Python_SetConstant(d
, "XML_TEXT_NODE",SWIG_From_int(static_cast< int >(wxXML_TEXT_NODE
)));
9673 SWIG_Python_SetConstant(d
, "XML_CDATA_SECTION_NODE",SWIG_From_int(static_cast< int >(wxXML_CDATA_SECTION_NODE
)));
9674 SWIG_Python_SetConstant(d
, "XML_ENTITY_REF_NODE",SWIG_From_int(static_cast< int >(wxXML_ENTITY_REF_NODE
)));
9675 SWIG_Python_SetConstant(d
, "XML_ENTITY_NODE",SWIG_From_int(static_cast< int >(wxXML_ENTITY_NODE
)));
9676 SWIG_Python_SetConstant(d
, "XML_PI_NODE",SWIG_From_int(static_cast< int >(wxXML_PI_NODE
)));
9677 SWIG_Python_SetConstant(d
, "XML_COMMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_COMMENT_NODE
)));
9678 SWIG_Python_SetConstant(d
, "XML_DOCUMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_NODE
)));
9679 SWIG_Python_SetConstant(d
, "XML_DOCUMENT_TYPE_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_TYPE_NODE
)));
9680 SWIG_Python_SetConstant(d
, "XML_DOCUMENT_FRAG_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_FRAG_NODE
)));
9681 SWIG_Python_SetConstant(d
, "XML_NOTATION_NODE",SWIG_From_int(static_cast< int >(wxXML_NOTATION_NODE
)));
9682 SWIG_Python_SetConstant(d
, "XML_HTML_DOCUMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_HTML_DOCUMENT_NODE
)));
9685 wxXmlInitResourceModule();
9686 wxXmlResource::Get()->InitAllHandlers();