]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/modules/utils/gtk/utils.cpp
Added wxPython support of new HTML Printing classes.
[wxWidgets.git] / utils / wxPython / modules / utils / gtk / utils.cpp
1 /*
2 * FILE : gtk/utils.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Patch 6)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
47 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
48 extern PyObject *SWIG_newvarlink(void);
49 #ifdef __cplusplus
50 }
51 #endif
52 #define SWIG_init initutilsc
53
54 #define SWIG_name "utilsc"
55
56 #include "helpers.h"
57 #include <wx/config.h>
58
59 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
60 PyObject* o2;
61 PyObject* o3;
62 if (!target) {
63 target = o;
64 } else if (target == Py_None) {
65 Py_DECREF(Py_None);
66 target = o;
67 } else {
68 if (!PyList_Check(target)) {
69 o2 = target;
70 target = PyList_New(0);
71 PyList_Append(target, o2);
72 Py_XDECREF(o2);
73 }
74 PyList_Append(target,o);
75 Py_XDECREF(o);
76 }
77 return target;
78 }
79
80 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
81 PyObject* o2;
82 PyObject* o3;
83
84 if (!target) {
85 target = o;
86 } else if (target == Py_None) {
87 Py_DECREF(Py_None);
88 target = o;
89 } else {
90 if (!PyTuple_Check(target)) {
91 o2 = target;
92 target = PyTuple_New(1);
93 PyTuple_SetItem(target, 0, o2);
94 }
95 o3 = PyTuple_New(1);
96 PyTuple_SetItem(o3, 0, o);
97
98 o2 = target;
99 target = PySequence_Concat(o2, o3);
100 Py_DECREF(o2);
101 Py_DECREF(o3);
102 }
103 return target;
104 }
105
106
107 extern byte* byte_LIST_helper(PyObject* source);
108 extern int* int_LIST_helper(PyObject* source);
109 extern long* long_LIST_helper(PyObject* source);
110 extern char** string_LIST_helper(PyObject* source);
111 extern wxPoint* wxPoint_LIST_helper(PyObject* source);
112 extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
113 extern wxString* wxString_LIST_helper(PyObject* source);
114 extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
115
116
117 static char* wxStringErrorMsg = "string type is required for parameter";
118
119 #if defined(__WXMSW__)
120 static wxString wxPyEmptyStr("");
121 #endif
122
123 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
124 PyObject* ret = PyTuple_New(3);
125 if (ret) {
126 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
127 PyTuple_SET_ITEM(ret, 1, PyString_FromString(str));
128 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
129 }
130 return ret;
131 }
132 #ifdef __cplusplus
133 extern "C" {
134 #endif
135 #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
136 static PyObject *_wrap_new_wxConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
137 PyObject * _resultobj;
138 wxConfig * _result;
139 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
140 wxString * _arg1 = (wxString *) &wxPyEmptyStr;
141 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
142 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
143 long _arg4 = (long ) 0;
144 PyObject * _obj0 = 0;
145 PyObject * _obj1 = 0;
146 PyObject * _obj2 = 0;
147 PyObject * _obj3 = 0;
148 char *_kwnames[] = { "appName","vendorName","localFilename","globalFilename","style", NULL };
149 char _ptemp[128];
150
151 self = self;
152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOOl:new_wxConfig",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3,&_arg4))
153 return NULL;
154 if (_obj0)
155 {
156 if (!PyString_Check(_obj0)) {
157 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
158 return NULL;
159 }
160 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
161 }
162 if (_obj1)
163 {
164 if (!PyString_Check(_obj1)) {
165 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
166 return NULL;
167 }
168 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
169 }
170 if (_obj2)
171 {
172 if (!PyString_Check(_obj2)) {
173 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
174 return NULL;
175 }
176 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
177 }
178 if (_obj3)
179 {
180 if (!PyString_Check(_obj3)) {
181 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
182 return NULL;
183 }
184 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
185 }
186 {
187 wxPy_BEGIN_ALLOW_THREADS;
188 _result = (wxConfig *)new_wxConfig(*_arg0,*_arg1,*_arg2,*_arg3,_arg4);
189
190 wxPy_END_ALLOW_THREADS;
191 } if (_result) {
192 SWIG_MakePtr(_ptemp, (char *) _result,"_wxConfig_p");
193 _resultobj = Py_BuildValue("s",_ptemp);
194 } else {
195 Py_INCREF(Py_None);
196 _resultobj = Py_None;
197 }
198 {
199 if (_obj0)
200 delete _arg0;
201 }
202 {
203 if (_obj1)
204 delete _arg1;
205 }
206 {
207 if (_obj2)
208 delete _arg2;
209 }
210 {
211 if (_obj3)
212 delete _arg3;
213 }
214 return _resultobj;
215 }
216
217 #define delete_wxConfig(_swigobj) (delete _swigobj)
218 static PyObject *_wrap_delete_wxConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
219 PyObject * _resultobj;
220 wxConfig * _arg0;
221 PyObject * _argo0 = 0;
222 char *_kwnames[] = { "self", NULL };
223
224 self = self;
225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxConfig",_kwnames,&_argo0))
226 return NULL;
227 if (_argo0) {
228 if (_argo0 == Py_None) { _arg0 = NULL; }
229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p.");
231 return NULL;
232 }
233 }
234 {
235 wxPy_BEGIN_ALLOW_THREADS;
236 delete_wxConfig(_arg0);
237
238 wxPy_END_ALLOW_THREADS;
239 } Py_INCREF(Py_None);
240 _resultobj = Py_None;
241 return _resultobj;
242 }
243
244 #define wxConfig_DontCreateOnDemand(_swigobj) (_swigobj->DontCreateOnDemand())
245 static PyObject *_wrap_wxConfig_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
246 PyObject * _resultobj;
247 wxConfig * _arg0;
248 PyObject * _argo0 = 0;
249 char *_kwnames[] = { "self", NULL };
250
251 self = self;
252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfig_DontCreateOnDemand",_kwnames,&_argo0))
253 return NULL;
254 if (_argo0) {
255 if (_argo0 == Py_None) { _arg0 = NULL; }
256 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
257 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_DontCreateOnDemand. Expected _wxConfig_p.");
258 return NULL;
259 }
260 }
261 {
262 wxPy_BEGIN_ALLOW_THREADS;
263 wxConfig_DontCreateOnDemand(_arg0);
264
265 wxPy_END_ALLOW_THREADS;
266 } Py_INCREF(Py_None);
267 _resultobj = Py_None;
268 return _resultobj;
269 }
270
271 #define wxConfig_DeleteAll(_swigobj) (_swigobj->DeleteAll())
272 static PyObject *_wrap_wxConfig_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
273 PyObject * _resultobj;
274 bool _result;
275 wxConfig * _arg0;
276 PyObject * _argo0 = 0;
277 char *_kwnames[] = { "self", NULL };
278
279 self = self;
280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfig_DeleteAll",_kwnames,&_argo0))
281 return NULL;
282 if (_argo0) {
283 if (_argo0 == Py_None) { _arg0 = NULL; }
284 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
285 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_DeleteAll. Expected _wxConfig_p.");
286 return NULL;
287 }
288 }
289 {
290 wxPy_BEGIN_ALLOW_THREADS;
291 _result = (bool )wxConfig_DeleteAll(_arg0);
292
293 wxPy_END_ALLOW_THREADS;
294 } _resultobj = Py_BuildValue("i",_result);
295 return _resultobj;
296 }
297
298 #define wxConfig_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
299 static PyObject *_wrap_wxConfig_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
300 PyObject * _resultobj;
301 bool _result;
302 wxConfig * _arg0;
303 wxString * _arg1;
304 bool _arg2 = (bool ) TRUE;
305 PyObject * _argo0 = 0;
306 PyObject * _obj1 = 0;
307 int tempbool2 = (int) TRUE;
308 char *_kwnames[] = { "self","key","bDeleteGroupIfEmpty", NULL };
309
310 self = self;
311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxConfig_DeleteEntry",_kwnames,&_argo0,&_obj1,&tempbool2))
312 return NULL;
313 if (_argo0) {
314 if (_argo0 == Py_None) { _arg0 = NULL; }
315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_DeleteEntry. Expected _wxConfig_p.");
317 return NULL;
318 }
319 }
320 {
321 if (!PyString_Check(_obj1)) {
322 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
323 return NULL;
324 }
325 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
326 }
327 _arg2 = (bool ) tempbool2;
328 {
329 wxPy_BEGIN_ALLOW_THREADS;
330 _result = (bool )wxConfig_DeleteEntry(_arg0,*_arg1,_arg2);
331
332 wxPy_END_ALLOW_THREADS;
333 } _resultobj = Py_BuildValue("i",_result);
334 {
335 if (_obj1)
336 delete _arg1;
337 }
338 return _resultobj;
339 }
340
341 #define wxConfig_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0))
342 static PyObject *_wrap_wxConfig_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
343 PyObject * _resultobj;
344 bool _result;
345 wxConfig * _arg0;
346 wxString * _arg1;
347 PyObject * _argo0 = 0;
348 PyObject * _obj1 = 0;
349 char *_kwnames[] = { "self","key", NULL };
350
351 self = self;
352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfig_DeleteGroup",_kwnames,&_argo0,&_obj1))
353 return NULL;
354 if (_argo0) {
355 if (_argo0 == Py_None) { _arg0 = NULL; }
356 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
357 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_DeleteGroup. Expected _wxConfig_p.");
358 return NULL;
359 }
360 }
361 {
362 if (!PyString_Check(_obj1)) {
363 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
364 return NULL;
365 }
366 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
367 }
368 {
369 wxPy_BEGIN_ALLOW_THREADS;
370 _result = (bool )wxConfig_DeleteGroup(_arg0,*_arg1);
371
372 wxPy_END_ALLOW_THREADS;
373 } _resultobj = Py_BuildValue("i",_result);
374 {
375 if (_obj1)
376 delete _arg1;
377 }
378 return _resultobj;
379 }
380
381 #define wxConfig_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0))
382 static PyObject *_wrap_wxConfig_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
383 PyObject * _resultobj;
384 bool _result;
385 wxConfig * _arg0;
386 wxString * _arg1;
387 PyObject * _argo0 = 0;
388 PyObject * _obj1 = 0;
389 char *_kwnames[] = { "self","strName", NULL };
390
391 self = self;
392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfig_Exists",_kwnames,&_argo0,&_obj1))
393 return NULL;
394 if (_argo0) {
395 if (_argo0 == Py_None) { _arg0 = NULL; }
396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_Exists. Expected _wxConfig_p.");
398 return NULL;
399 }
400 }
401 {
402 if (!PyString_Check(_obj1)) {
403 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
404 return NULL;
405 }
406 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
407 }
408 {
409 wxPy_BEGIN_ALLOW_THREADS;
410 _result = (bool )wxConfig_Exists(_arg0,*_arg1);
411
412 wxPy_END_ALLOW_THREADS;
413 } _resultobj = Py_BuildValue("i",_result);
414 {
415 if (_obj1)
416 delete _arg1;
417 }
418 return _resultobj;
419 }
420
421 #define wxConfig_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0))
422 static PyObject *_wrap_wxConfig_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
423 PyObject * _resultobj;
424 bool _result;
425 wxConfig * _arg0;
426 bool _arg1 = (bool ) FALSE;
427 PyObject * _argo0 = 0;
428 int tempbool1 = (int) FALSE;
429 char *_kwnames[] = { "self","bCurrentOnly", NULL };
430
431 self = self;
432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxConfig_Flush",_kwnames,&_argo0,&tempbool1))
433 return NULL;
434 if (_argo0) {
435 if (_argo0 == Py_None) { _arg0 = NULL; }
436 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
437 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_Flush. Expected _wxConfig_p.");
438 return NULL;
439 }
440 }
441 _arg1 = (bool ) tempbool1;
442 {
443 wxPy_BEGIN_ALLOW_THREADS;
444 _result = (bool )wxConfig_Flush(_arg0,_arg1);
445
446 wxPy_END_ALLOW_THREADS;
447 } _resultobj = Py_BuildValue("i",_result);
448 return _resultobj;
449 }
450
451 #define wxConfig_GetAppName(_swigobj) (_swigobj->GetAppName())
452 static PyObject *_wrap_wxConfig_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
453 PyObject * _resultobj;
454 wxString * _result;
455 wxConfig * _arg0;
456 PyObject * _argo0 = 0;
457 char *_kwnames[] = { "self", NULL };
458
459 self = self;
460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfig_GetAppName",_kwnames,&_argo0))
461 return NULL;
462 if (_argo0) {
463 if (_argo0 == Py_None) { _arg0 = NULL; }
464 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
465 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetAppName. Expected _wxConfig_p.");
466 return NULL;
467 }
468 }
469 {
470 wxPy_BEGIN_ALLOW_THREADS;
471 _result = new wxString (wxConfig_GetAppName(_arg0));
472
473 wxPy_END_ALLOW_THREADS;
474 }{
475 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
476 }
477 {
478 delete _result;
479 }
480 return _resultobj;
481 }
482
483 static PyObject * wxConfig_GetFirstGroup(wxConfig *self) {
484 bool cont;
485 long index = 0;
486 wxString value;
487
488 cont = self->GetFirstGroup(value, index);
489 return __EnumerationHelper(cont, value, index);
490 }
491 static PyObject *_wrap_wxConfig_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
492 PyObject * _resultobj;
493 PyObject * _result;
494 wxConfig * _arg0;
495 PyObject * _argo0 = 0;
496 char *_kwnames[] = { "self", NULL };
497
498 self = self;
499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfig_GetFirstGroup",_kwnames,&_argo0))
500 return NULL;
501 if (_argo0) {
502 if (_argo0 == Py_None) { _arg0 = NULL; }
503 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetFirstGroup. Expected _wxConfig_p.");
505 return NULL;
506 }
507 }
508 {
509 wxPy_BEGIN_ALLOW_THREADS;
510 _result = (PyObject *)wxConfig_GetFirstGroup(_arg0);
511
512 wxPy_END_ALLOW_THREADS;
513 }{
514 _resultobj = _result;
515 }
516 return _resultobj;
517 }
518
519 static PyObject * wxConfig_GetFirstEntry(wxConfig *self) {
520 bool cont;
521 long index = 0;
522 wxString value;
523
524 cont = self->GetFirstEntry(value, index);
525 return __EnumerationHelper(cont, value, index);
526 }
527 static PyObject *_wrap_wxConfig_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
528 PyObject * _resultobj;
529 PyObject * _result;
530 wxConfig * _arg0;
531 PyObject * _argo0 = 0;
532 char *_kwnames[] = { "self", NULL };
533
534 self = self;
535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfig_GetFirstEntry",_kwnames,&_argo0))
536 return NULL;
537 if (_argo0) {
538 if (_argo0 == Py_None) { _arg0 = NULL; }
539 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
540 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetFirstEntry. Expected _wxConfig_p.");
541 return NULL;
542 }
543 }
544 {
545 wxPy_BEGIN_ALLOW_THREADS;
546 _result = (PyObject *)wxConfig_GetFirstEntry(_arg0);
547
548 wxPy_END_ALLOW_THREADS;
549 }{
550 _resultobj = _result;
551 }
552 return _resultobj;
553 }
554
555 static PyObject * wxConfig_GetNextGroup(wxConfig *self,long index) {
556 bool cont;
557 wxString value;
558
559 cont = self->GetNextGroup(value, index);
560 return __EnumerationHelper(cont, value, index);
561 }
562 static PyObject *_wrap_wxConfig_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
563 PyObject * _resultobj;
564 PyObject * _result;
565 wxConfig * _arg0;
566 long _arg1;
567 PyObject * _argo0 = 0;
568 char *_kwnames[] = { "self","index", NULL };
569
570 self = self;
571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxConfig_GetNextGroup",_kwnames,&_argo0,&_arg1))
572 return NULL;
573 if (_argo0) {
574 if (_argo0 == Py_None) { _arg0 = NULL; }
575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetNextGroup. Expected _wxConfig_p.");
577 return NULL;
578 }
579 }
580 {
581 wxPy_BEGIN_ALLOW_THREADS;
582 _result = (PyObject *)wxConfig_GetNextGroup(_arg0,_arg1);
583
584 wxPy_END_ALLOW_THREADS;
585 }{
586 _resultobj = _result;
587 }
588 return _resultobj;
589 }
590
591 static PyObject * wxConfig_GetNextEntry(wxConfig *self,long index) {
592 bool cont;
593 wxString value;
594
595 cont = self->GetNextEntry(value, index);
596 return __EnumerationHelper(cont, value, index);
597 }
598 static PyObject *_wrap_wxConfig_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
599 PyObject * _resultobj;
600 PyObject * _result;
601 wxConfig * _arg0;
602 long _arg1;
603 PyObject * _argo0 = 0;
604 char *_kwnames[] = { "self","index", NULL };
605
606 self = self;
607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxConfig_GetNextEntry",_kwnames,&_argo0,&_arg1))
608 return NULL;
609 if (_argo0) {
610 if (_argo0 == Py_None) { _arg0 = NULL; }
611 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
612 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetNextEntry. Expected _wxConfig_p.");
613 return NULL;
614 }
615 }
616 {
617 wxPy_BEGIN_ALLOW_THREADS;
618 _result = (PyObject *)wxConfig_GetNextEntry(_arg0,_arg1);
619
620 wxPy_END_ALLOW_THREADS;
621 }{
622 _resultobj = _result;
623 }
624 return _resultobj;
625 }
626
627 #define wxConfig_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0))
628 static PyObject *_wrap_wxConfig_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
629 PyObject * _resultobj;
630 int _result;
631 wxConfig * _arg0;
632 bool _arg1 = (bool ) FALSE;
633 PyObject * _argo0 = 0;
634 int tempbool1 = (int) FALSE;
635 char *_kwnames[] = { "self","bRecursive", NULL };
636
637 self = self;
638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxConfig_GetNumberOfEntries",_kwnames,&_argo0,&tempbool1))
639 return NULL;
640 if (_argo0) {
641 if (_argo0 == Py_None) { _arg0 = NULL; }
642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetNumberOfEntries. Expected _wxConfig_p.");
644 return NULL;
645 }
646 }
647 _arg1 = (bool ) tempbool1;
648 {
649 wxPy_BEGIN_ALLOW_THREADS;
650 _result = (int )wxConfig_GetNumberOfEntries(_arg0,_arg1);
651
652 wxPy_END_ALLOW_THREADS;
653 } _resultobj = Py_BuildValue("i",_result);
654 return _resultobj;
655 }
656
657 #define wxConfig_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0))
658 static PyObject *_wrap_wxConfig_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
659 PyObject * _resultobj;
660 int _result;
661 wxConfig * _arg0;
662 bool _arg1 = (bool ) FALSE;
663 PyObject * _argo0 = 0;
664 int tempbool1 = (int) FALSE;
665 char *_kwnames[] = { "self","bRecursive", NULL };
666
667 self = self;
668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxConfig_GetNumberOfGroups",_kwnames,&_argo0,&tempbool1))
669 return NULL;
670 if (_argo0) {
671 if (_argo0 == Py_None) { _arg0 = NULL; }
672 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
673 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetNumberOfGroups. Expected _wxConfig_p.");
674 return NULL;
675 }
676 }
677 _arg1 = (bool ) tempbool1;
678 {
679 wxPy_BEGIN_ALLOW_THREADS;
680 _result = (int )wxConfig_GetNumberOfGroups(_arg0,_arg1);
681
682 wxPy_END_ALLOW_THREADS;
683 } _resultobj = Py_BuildValue("i",_result);
684 return _resultobj;
685 }
686
687 #define wxConfig_GetPath(_swigobj) (_swigobj->GetPath())
688 static PyObject *_wrap_wxConfig_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
689 PyObject * _resultobj;
690 wxString * _result;
691 wxConfig * _arg0;
692 PyObject * _argo0 = 0;
693 char *_kwnames[] = { "self", NULL };
694
695 self = self;
696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfig_GetPath",_kwnames,&_argo0))
697 return NULL;
698 if (_argo0) {
699 if (_argo0 == Py_None) { _arg0 = NULL; }
700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetPath. Expected _wxConfig_p.");
702 return NULL;
703 }
704 }
705 {
706 wxPy_BEGIN_ALLOW_THREADS;
707 _result = new wxString (wxConfig_GetPath(_arg0));
708
709 wxPy_END_ALLOW_THREADS;
710 }{
711 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
712 }
713 {
714 delete _result;
715 }
716 return _resultobj;
717 }
718
719 #define wxConfig_GetVendorName(_swigobj) (_swigobj->GetVendorName())
720 static PyObject *_wrap_wxConfig_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
721 PyObject * _resultobj;
722 wxString * _result;
723 wxConfig * _arg0;
724 PyObject * _argo0 = 0;
725 char *_kwnames[] = { "self", NULL };
726
727 self = self;
728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfig_GetVendorName",_kwnames,&_argo0))
729 return NULL;
730 if (_argo0) {
731 if (_argo0 == Py_None) { _arg0 = NULL; }
732 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
733 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetVendorName. Expected _wxConfig_p.");
734 return NULL;
735 }
736 }
737 {
738 wxPy_BEGIN_ALLOW_THREADS;
739 _result = new wxString (wxConfig_GetVendorName(_arg0));
740
741 wxPy_END_ALLOW_THREADS;
742 }{
743 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
744 }
745 {
746 delete _result;
747 }
748 return _resultobj;
749 }
750
751 #define wxConfig_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0))
752 static PyObject *_wrap_wxConfig_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
753 PyObject * _resultobj;
754 bool _result;
755 wxConfig * _arg0;
756 wxString * _arg1;
757 PyObject * _argo0 = 0;
758 PyObject * _obj1 = 0;
759 char *_kwnames[] = { "self","strName", NULL };
760
761 self = self;
762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfig_HasEntry",_kwnames,&_argo0,&_obj1))
763 return NULL;
764 if (_argo0) {
765 if (_argo0 == Py_None) { _arg0 = NULL; }
766 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
767 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_HasEntry. Expected _wxConfig_p.");
768 return NULL;
769 }
770 }
771 {
772 if (!PyString_Check(_obj1)) {
773 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
774 return NULL;
775 }
776 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
777 }
778 {
779 wxPy_BEGIN_ALLOW_THREADS;
780 _result = (bool )wxConfig_HasEntry(_arg0,*_arg1);
781
782 wxPy_END_ALLOW_THREADS;
783 } _resultobj = Py_BuildValue("i",_result);
784 {
785 if (_obj1)
786 delete _arg1;
787 }
788 return _resultobj;
789 }
790
791 #define wxConfig_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0))
792 static PyObject *_wrap_wxConfig_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
793 PyObject * _resultobj;
794 bool _result;
795 wxConfig * _arg0;
796 wxString * _arg1;
797 PyObject * _argo0 = 0;
798 PyObject * _obj1 = 0;
799 char *_kwnames[] = { "self","strName", NULL };
800
801 self = self;
802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfig_HasGroup",_kwnames,&_argo0,&_obj1))
803 return NULL;
804 if (_argo0) {
805 if (_argo0 == Py_None) { _arg0 = NULL; }
806 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
807 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_HasGroup. Expected _wxConfig_p.");
808 return NULL;
809 }
810 }
811 {
812 if (!PyString_Check(_obj1)) {
813 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
814 return NULL;
815 }
816 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
817 }
818 {
819 wxPy_BEGIN_ALLOW_THREADS;
820 _result = (bool )wxConfig_HasGroup(_arg0,*_arg1);
821
822 wxPy_END_ALLOW_THREADS;
823 } _resultobj = Py_BuildValue("i",_result);
824 {
825 if (_obj1)
826 delete _arg1;
827 }
828 return _resultobj;
829 }
830
831 #define wxConfig_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars())
832 static PyObject *_wrap_wxConfig_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
833 PyObject * _resultobj;
834 bool _result;
835 wxConfig * _arg0;
836 PyObject * _argo0 = 0;
837 char *_kwnames[] = { "self", NULL };
838
839 self = self;
840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfig_IsExpandingEnvVars",_kwnames,&_argo0))
841 return NULL;
842 if (_argo0) {
843 if (_argo0 == Py_None) { _arg0 = NULL; }
844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_IsExpandingEnvVars. Expected _wxConfig_p.");
846 return NULL;
847 }
848 }
849 {
850 wxPy_BEGIN_ALLOW_THREADS;
851 _result = (bool )wxConfig_IsExpandingEnvVars(_arg0);
852
853 wxPy_END_ALLOW_THREADS;
854 } _resultobj = Py_BuildValue("i",_result);
855 return _resultobj;
856 }
857
858 #define wxConfig_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults())
859 static PyObject *_wrap_wxConfig_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
860 PyObject * _resultobj;
861 bool _result;
862 wxConfig * _arg0;
863 PyObject * _argo0 = 0;
864 char *_kwnames[] = { "self", NULL };
865
866 self = self;
867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfig_IsRecordingDefaults",_kwnames,&_argo0))
868 return NULL;
869 if (_argo0) {
870 if (_argo0 == Py_None) { _arg0 = NULL; }
871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_IsRecordingDefaults. Expected _wxConfig_p.");
873 return NULL;
874 }
875 }
876 {
877 wxPy_BEGIN_ALLOW_THREADS;
878 _result = (bool )wxConfig_IsRecordingDefaults(_arg0);
879
880 wxPy_END_ALLOW_THREADS;
881 } _resultobj = Py_BuildValue("i",_result);
882 return _resultobj;
883 }
884
885 #define wxConfig_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
886 static PyObject *_wrap_wxConfig_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
887 PyObject * _resultobj;
888 wxString * _result;
889 wxConfig * _arg0;
890 wxString * _arg1;
891 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
892 PyObject * _argo0 = 0;
893 PyObject * _obj1 = 0;
894 PyObject * _obj2 = 0;
895 char *_kwnames[] = { "self","key","defaultVal", NULL };
896
897 self = self;
898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxConfig_Read",_kwnames,&_argo0,&_obj1,&_obj2))
899 return NULL;
900 if (_argo0) {
901 if (_argo0 == Py_None) { _arg0 = NULL; }
902 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
903 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_Read. Expected _wxConfig_p.");
904 return NULL;
905 }
906 }
907 {
908 if (!PyString_Check(_obj1)) {
909 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
910 return NULL;
911 }
912 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
913 }
914 if (_obj2)
915 {
916 if (!PyString_Check(_obj2)) {
917 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
918 return NULL;
919 }
920 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
921 }
922 {
923 wxPy_BEGIN_ALLOW_THREADS;
924 _result = new wxString (wxConfig_Read(_arg0,*_arg1,*_arg2));
925
926 wxPy_END_ALLOW_THREADS;
927 }{
928 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
929 }
930 {
931 if (_obj1)
932 delete _arg1;
933 }
934 {
935 if (_obj2)
936 delete _arg2;
937 }
938 {
939 delete _result;
940 }
941 return _resultobj;
942 }
943
944 #define wxConfig_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
945 static PyObject *_wrap_wxConfig_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
946 PyObject * _resultobj;
947 long _result;
948 wxConfig * _arg0;
949 wxString * _arg1;
950 long _arg2 = (long ) 0;
951 PyObject * _argo0 = 0;
952 PyObject * _obj1 = 0;
953 char *_kwnames[] = { "self","key","defaultVal", NULL };
954
955 self = self;
956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|l:wxConfig_ReadInt",_kwnames,&_argo0,&_obj1,&_arg2))
957 return NULL;
958 if (_argo0) {
959 if (_argo0 == Py_None) { _arg0 = NULL; }
960 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
961 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_ReadInt. Expected _wxConfig_p.");
962 return NULL;
963 }
964 }
965 {
966 if (!PyString_Check(_obj1)) {
967 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
968 return NULL;
969 }
970 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
971 }
972 {
973 wxPy_BEGIN_ALLOW_THREADS;
974 _result = (long )wxConfig_ReadInt(_arg0,*_arg1,_arg2);
975
976 wxPy_END_ALLOW_THREADS;
977 } _resultobj = Py_BuildValue("l",_result);
978 {
979 if (_obj1)
980 delete _arg1;
981 }
982 return _resultobj;
983 }
984
985 #define wxConfig_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
986 static PyObject *_wrap_wxConfig_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
987 PyObject * _resultobj;
988 double _result;
989 wxConfig * _arg0;
990 wxString * _arg1;
991 double _arg2 = (double ) 0.0;
992 PyObject * _argo0 = 0;
993 PyObject * _obj1 = 0;
994 char *_kwnames[] = { "self","key","defaultVal", NULL };
995
996 self = self;
997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|d:wxConfig_ReadFloat",_kwnames,&_argo0,&_obj1,&_arg2))
998 return NULL;
999 if (_argo0) {
1000 if (_argo0 == Py_None) { _arg0 = NULL; }
1001 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
1002 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_ReadFloat. Expected _wxConfig_p.");
1003 return NULL;
1004 }
1005 }
1006 {
1007 if (!PyString_Check(_obj1)) {
1008 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1009 return NULL;
1010 }
1011 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1012 }
1013 {
1014 wxPy_BEGIN_ALLOW_THREADS;
1015 _result = (double )wxConfig_ReadFloat(_arg0,*_arg1,_arg2);
1016
1017 wxPy_END_ALLOW_THREADS;
1018 } _resultobj = Py_BuildValue("d",_result);
1019 {
1020 if (_obj1)
1021 delete _arg1;
1022 }
1023 return _resultobj;
1024 }
1025
1026 #define wxConfig_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0))
1027 static PyObject *_wrap_wxConfig_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
1028 PyObject * _resultobj;
1029 wxConfig * _arg0;
1030 bool _arg1 = (bool ) TRUE;
1031 PyObject * _argo0 = 0;
1032 int tempbool1 = (int) TRUE;
1033 char *_kwnames[] = { "self","bDoIt", NULL };
1034
1035 self = self;
1036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxConfig_SetExpandEnvVars",_kwnames,&_argo0,&tempbool1))
1037 return NULL;
1038 if (_argo0) {
1039 if (_argo0 == Py_None) { _arg0 = NULL; }
1040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
1041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_SetExpandEnvVars. Expected _wxConfig_p.");
1042 return NULL;
1043 }
1044 }
1045 _arg1 = (bool ) tempbool1;
1046 {
1047 wxPy_BEGIN_ALLOW_THREADS;
1048 wxConfig_SetExpandEnvVars(_arg0,_arg1);
1049
1050 wxPy_END_ALLOW_THREADS;
1051 } Py_INCREF(Py_None);
1052 _resultobj = Py_None;
1053 return _resultobj;
1054 }
1055
1056 #define wxConfig_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
1057 static PyObject *_wrap_wxConfig_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
1058 PyObject * _resultobj;
1059 wxConfig * _arg0;
1060 wxString * _arg1;
1061 PyObject * _argo0 = 0;
1062 PyObject * _obj1 = 0;
1063 char *_kwnames[] = { "self","strPath", NULL };
1064
1065 self = self;
1066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfig_SetPath",_kwnames,&_argo0,&_obj1))
1067 return NULL;
1068 if (_argo0) {
1069 if (_argo0 == Py_None) { _arg0 = NULL; }
1070 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
1071 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_SetPath. Expected _wxConfig_p.");
1072 return NULL;
1073 }
1074 }
1075 {
1076 if (!PyString_Check(_obj1)) {
1077 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1078 return NULL;
1079 }
1080 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1081 }
1082 {
1083 wxPy_BEGIN_ALLOW_THREADS;
1084 wxConfig_SetPath(_arg0,*_arg1);
1085
1086 wxPy_END_ALLOW_THREADS;
1087 } Py_INCREF(Py_None);
1088 _resultobj = Py_None;
1089 {
1090 if (_obj1)
1091 delete _arg1;
1092 }
1093 return _resultobj;
1094 }
1095
1096 #define wxConfig_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0))
1097 static PyObject *_wrap_wxConfig_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
1098 PyObject * _resultobj;
1099 wxConfig * _arg0;
1100 bool _arg1 = (bool ) TRUE;
1101 PyObject * _argo0 = 0;
1102 int tempbool1 = (int) TRUE;
1103 char *_kwnames[] = { "self","bDoIt", NULL };
1104
1105 self = self;
1106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxConfig_SetRecordDefaults",_kwnames,&_argo0,&tempbool1))
1107 return NULL;
1108 if (_argo0) {
1109 if (_argo0 == Py_None) { _arg0 = NULL; }
1110 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
1111 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_SetRecordDefaults. Expected _wxConfig_p.");
1112 return NULL;
1113 }
1114 }
1115 _arg1 = (bool ) tempbool1;
1116 {
1117 wxPy_BEGIN_ALLOW_THREADS;
1118 wxConfig_SetRecordDefaults(_arg0,_arg1);
1119
1120 wxPy_END_ALLOW_THREADS;
1121 } Py_INCREF(Py_None);
1122 _resultobj = Py_None;
1123 return _resultobj;
1124 }
1125
1126 #define wxConfig_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1127 static PyObject *_wrap_wxConfig_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
1128 PyObject * _resultobj;
1129 bool _result;
1130 wxConfig * _arg0;
1131 wxString * _arg1;
1132 wxString * _arg2;
1133 PyObject * _argo0 = 0;
1134 PyObject * _obj1 = 0;
1135 PyObject * _obj2 = 0;
1136 char *_kwnames[] = { "self","key","value", NULL };
1137
1138 self = self;
1139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxConfig_Write",_kwnames,&_argo0,&_obj1,&_obj2))
1140 return NULL;
1141 if (_argo0) {
1142 if (_argo0 == Py_None) { _arg0 = NULL; }
1143 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
1144 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_Write. Expected _wxConfig_p.");
1145 return NULL;
1146 }
1147 }
1148 {
1149 if (!PyString_Check(_obj1)) {
1150 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1151 return NULL;
1152 }
1153 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1154 }
1155 {
1156 if (!PyString_Check(_obj2)) {
1157 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1158 return NULL;
1159 }
1160 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
1161 }
1162 {
1163 wxPy_BEGIN_ALLOW_THREADS;
1164 _result = (bool )wxConfig_Write(_arg0,*_arg1,*_arg2);
1165
1166 wxPy_END_ALLOW_THREADS;
1167 } _resultobj = Py_BuildValue("i",_result);
1168 {
1169 if (_obj1)
1170 delete _arg1;
1171 }
1172 {
1173 if (_obj2)
1174 delete _arg2;
1175 }
1176 return _resultobj;
1177 }
1178
1179 #define wxConfig_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1180 static PyObject *_wrap_wxConfig_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1181 PyObject * _resultobj;
1182 bool _result;
1183 wxConfig * _arg0;
1184 wxString * _arg1;
1185 long _arg2;
1186 PyObject * _argo0 = 0;
1187 PyObject * _obj1 = 0;
1188 char *_kwnames[] = { "self","key","value", NULL };
1189
1190 self = self;
1191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxConfig_WriteInt",_kwnames,&_argo0,&_obj1,&_arg2))
1192 return NULL;
1193 if (_argo0) {
1194 if (_argo0 == Py_None) { _arg0 = NULL; }
1195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
1196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_WriteInt. Expected _wxConfig_p.");
1197 return NULL;
1198 }
1199 }
1200 {
1201 if (!PyString_Check(_obj1)) {
1202 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1203 return NULL;
1204 }
1205 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1206 }
1207 {
1208 wxPy_BEGIN_ALLOW_THREADS;
1209 _result = (bool )wxConfig_WriteInt(_arg0,*_arg1,_arg2);
1210
1211 wxPy_END_ALLOW_THREADS;
1212 } _resultobj = Py_BuildValue("i",_result);
1213 {
1214 if (_obj1)
1215 delete _arg1;
1216 }
1217 return _resultobj;
1218 }
1219
1220 #define wxConfig_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1221 static PyObject *_wrap_wxConfig_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
1222 PyObject * _resultobj;
1223 bool _result;
1224 wxConfig * _arg0;
1225 wxString * _arg1;
1226 double _arg2;
1227 PyObject * _argo0 = 0;
1228 PyObject * _obj1 = 0;
1229 char *_kwnames[] = { "self","key","value", NULL };
1230
1231 self = self;
1232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOd:wxConfig_WriteFloat",_kwnames,&_argo0,&_obj1,&_arg2))
1233 return NULL;
1234 if (_argo0) {
1235 if (_argo0 == Py_None) { _arg0 = NULL; }
1236 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
1237 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_WriteFloat. Expected _wxConfig_p.");
1238 return NULL;
1239 }
1240 }
1241 {
1242 if (!PyString_Check(_obj1)) {
1243 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1244 return NULL;
1245 }
1246 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1247 }
1248 {
1249 wxPy_BEGIN_ALLOW_THREADS;
1250 _result = (bool )wxConfig_WriteFloat(_arg0,*_arg1,_arg2);
1251
1252 wxPy_END_ALLOW_THREADS;
1253 } _resultobj = Py_BuildValue("i",_result);
1254 {
1255 if (_obj1)
1256 delete _arg1;
1257 }
1258 return _resultobj;
1259 }
1260
1261 static PyMethodDef utilscMethods[] = {
1262 { "wxConfig_WriteFloat", (PyCFunction) _wrap_wxConfig_WriteFloat, METH_VARARGS | METH_KEYWORDS },
1263 { "wxConfig_WriteInt", (PyCFunction) _wrap_wxConfig_WriteInt, METH_VARARGS | METH_KEYWORDS },
1264 { "wxConfig_Write", (PyCFunction) _wrap_wxConfig_Write, METH_VARARGS | METH_KEYWORDS },
1265 { "wxConfig_SetRecordDefaults", (PyCFunction) _wrap_wxConfig_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
1266 { "wxConfig_SetPath", (PyCFunction) _wrap_wxConfig_SetPath, METH_VARARGS | METH_KEYWORDS },
1267 { "wxConfig_SetExpandEnvVars", (PyCFunction) _wrap_wxConfig_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
1268 { "wxConfig_ReadFloat", (PyCFunction) _wrap_wxConfig_ReadFloat, METH_VARARGS | METH_KEYWORDS },
1269 { "wxConfig_ReadInt", (PyCFunction) _wrap_wxConfig_ReadInt, METH_VARARGS | METH_KEYWORDS },
1270 { "wxConfig_Read", (PyCFunction) _wrap_wxConfig_Read, METH_VARARGS | METH_KEYWORDS },
1271 { "wxConfig_IsRecordingDefaults", (PyCFunction) _wrap_wxConfig_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
1272 { "wxConfig_IsExpandingEnvVars", (PyCFunction) _wrap_wxConfig_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
1273 { "wxConfig_HasGroup", (PyCFunction) _wrap_wxConfig_HasGroup, METH_VARARGS | METH_KEYWORDS },
1274 { "wxConfig_HasEntry", (PyCFunction) _wrap_wxConfig_HasEntry, METH_VARARGS | METH_KEYWORDS },
1275 { "wxConfig_GetVendorName", (PyCFunction) _wrap_wxConfig_GetVendorName, METH_VARARGS | METH_KEYWORDS },
1276 { "wxConfig_GetPath", (PyCFunction) _wrap_wxConfig_GetPath, METH_VARARGS | METH_KEYWORDS },
1277 { "wxConfig_GetNumberOfGroups", (PyCFunction) _wrap_wxConfig_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
1278 { "wxConfig_GetNumberOfEntries", (PyCFunction) _wrap_wxConfig_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
1279 { "wxConfig_GetNextEntry", (PyCFunction) _wrap_wxConfig_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
1280 { "wxConfig_GetNextGroup", (PyCFunction) _wrap_wxConfig_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
1281 { "wxConfig_GetFirstEntry", (PyCFunction) _wrap_wxConfig_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
1282 { "wxConfig_GetFirstGroup", (PyCFunction) _wrap_wxConfig_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
1283 { "wxConfig_GetAppName", (PyCFunction) _wrap_wxConfig_GetAppName, METH_VARARGS | METH_KEYWORDS },
1284 { "wxConfig_Flush", (PyCFunction) _wrap_wxConfig_Flush, METH_VARARGS | METH_KEYWORDS },
1285 { "wxConfig_Exists", (PyCFunction) _wrap_wxConfig_Exists, METH_VARARGS | METH_KEYWORDS },
1286 { "wxConfig_DeleteGroup", (PyCFunction) _wrap_wxConfig_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
1287 { "wxConfig_DeleteEntry", (PyCFunction) _wrap_wxConfig_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
1288 { "wxConfig_DeleteAll", (PyCFunction) _wrap_wxConfig_DeleteAll, METH_VARARGS | METH_KEYWORDS },
1289 { "wxConfig_DontCreateOnDemand", (PyCFunction) _wrap_wxConfig_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
1290 { "delete_wxConfig", (PyCFunction) _wrap_delete_wxConfig, METH_VARARGS | METH_KEYWORDS },
1291 { "new_wxConfig", (PyCFunction) _wrap_new_wxConfig, METH_VARARGS | METH_KEYWORDS },
1292 { NULL, NULL }
1293 };
1294 #ifdef __cplusplus
1295 }
1296 #endif
1297 /*
1298 * This table is used by the pointer type-checker
1299 */
1300 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1301 { "_signed_long","_long",0},
1302 { "_long","_unsigned_long",0},
1303 { "_long","_signed_long",0},
1304 { "_wxConfig","_class_wxConfig",0},
1305 { "_unsigned_long","_long",0},
1306 { "_signed_int","_int",0},
1307 { "_unsigned_short","_short",0},
1308 { "_signed_short","_short",0},
1309 { "_unsigned_int","_int",0},
1310 { "_short","_unsigned_short",0},
1311 { "_short","_signed_short",0},
1312 { "_int","_unsigned_int",0},
1313 { "_int","_signed_int",0},
1314 { "_class_wxConfig","_wxConfig",0},
1315 {0,0,0}};
1316
1317 static PyObject *SWIG_globals;
1318 #ifdef __cplusplus
1319 extern "C"
1320 #endif
1321 SWIGEXPORT(void) initutilsc() {
1322 PyObject *m, *d;
1323 SWIG_globals = SWIG_newvarlink();
1324 m = Py_InitModule("utilsc", utilscMethods);
1325 d = PyModule_GetDict(m);
1326
1327
1328 wxClassInfo::CleanUpClasses();
1329 wxClassInfo::InitializeClasses();
1330
1331 {
1332 int i;
1333 for (i = 0; _swig_mapping[i].n1; i++)
1334 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
1335 }
1336 }