]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/help.cpp
changed wxUSE_MS_HTML_HELP to 1 by default
[wxWidgets.git] / wxPython / src / msw / help.cpp
1 /*
2 * FILE : src/msw/help.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init inithelpc
55
56 #define SWIG_name "helpc"
57
58 #include "export.h"
59 #include <wx/cshelp.h>
60
61
62 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
63 PyObject* o2;
64 PyObject* o3;
65
66 if (!target) {
67 target = o;
68 } else if (target == Py_None) {
69 Py_DECREF(Py_None);
70 target = o;
71 } else {
72 if (!PyTuple_Check(target)) {
73 o2 = target;
74 target = PyTuple_New(1);
75 PyTuple_SetItem(target, 0, o2);
76 }
77 o3 = PyTuple_New(1);
78 PyTuple_SetItem(o3, 0, o);
79
80 o2 = target;
81 target = PySequence_Concat(o2, o3);
82 Py_DECREF(o2);
83 Py_DECREF(o3);
84 }
85 return target;
86 }
87 #ifdef __cplusplus
88 extern "C" {
89 #endif
90 static void *SwigwxHelpEventTowxCommandEvent(void *ptr) {
91 wxHelpEvent *src;
92 wxCommandEvent *dest;
93 src = (wxHelpEvent *) ptr;
94 dest = (wxCommandEvent *) src;
95 return (void *) dest;
96 }
97
98 static void *SwigwxHelpEventTowxEvent(void *ptr) {
99 wxHelpEvent *src;
100 wxEvent *dest;
101 src = (wxHelpEvent *) ptr;
102 dest = (wxEvent *) src;
103 return (void *) dest;
104 }
105
106 static void *SwigwxHelpEventTowxObject(void *ptr) {
107 wxHelpEvent *src;
108 wxObject *dest;
109 src = (wxHelpEvent *) ptr;
110 dest = (wxObject *) src;
111 return (void *) dest;
112 }
113
114 #define new_wxHelpEvent(_swigarg0,_swigarg1,_swigarg2) (new wxHelpEvent(_swigarg0,_swigarg1,_swigarg2))
115 static PyObject *_wrap_new_wxHelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
116 PyObject * _resultobj;
117 wxHelpEvent * _result;
118 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
119 wxWindowID _arg1 = (wxWindowID ) 0;
120 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
121 wxPoint temp;
122 PyObject * _obj2 = 0;
123 char *_kwnames[] = { "type","id","pt", NULL };
124 char _ptemp[128];
125
126 self = self;
127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiO:new_wxHelpEvent",_kwnames,&_arg0,&_arg1,&_obj2))
128 return NULL;
129 if (_obj2)
130 {
131 _arg2 = &temp;
132 if (! wxPoint_helper(_obj2, &_arg2))
133 return NULL;
134 }
135 {
136 PyThreadState* __tstate = wxPyBeginAllowThreads();
137 _result = (wxHelpEvent *)new_wxHelpEvent(_arg0,_arg1,*_arg2);
138
139 wxPyEndAllowThreads(__tstate);
140 if (PyErr_Occurred()) return NULL;
141 } if (_result) {
142 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHelpEvent_p");
143 _resultobj = Py_BuildValue("s",_ptemp);
144 } else {
145 Py_INCREF(Py_None);
146 _resultobj = Py_None;
147 }
148 return _resultobj;
149 }
150
151 #define wxHelpEvent_GetPosition(_swigobj) (_swigobj->GetPosition())
152 static PyObject *_wrap_wxHelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
153 PyObject * _resultobj;
154 wxPoint * _result;
155 wxHelpEvent * _arg0;
156 PyObject * _argo0 = 0;
157 char *_kwnames[] = { "self", NULL };
158 char _ptemp[128];
159
160 self = self;
161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpEvent_GetPosition",_kwnames,&_argo0))
162 return NULL;
163 if (_argo0) {
164 if (_argo0 == Py_None) { _arg0 = NULL; }
165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_GetPosition. Expected _wxHelpEvent_p.");
167 return NULL;
168 }
169 }
170 {
171 PyThreadState* __tstate = wxPyBeginAllowThreads();
172 const wxPoint & _result_ref = wxHelpEvent_GetPosition(_arg0);
173 _result = (wxPoint *) &_result_ref;
174
175 wxPyEndAllowThreads(__tstate);
176 if (PyErr_Occurred()) return NULL;
177 } if (_result) {
178 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
179 _resultobj = Py_BuildValue("s",_ptemp);
180 } else {
181 Py_INCREF(Py_None);
182 _resultobj = Py_None;
183 }
184 return _resultobj;
185 }
186
187 #define wxHelpEvent_SetPosition(_swigobj,_swigarg0) (_swigobj->SetPosition(_swigarg0))
188 static PyObject *_wrap_wxHelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
189 PyObject * _resultobj;
190 wxHelpEvent * _arg0;
191 wxPoint * _arg1;
192 PyObject * _argo0 = 0;
193 wxPoint temp;
194 PyObject * _obj1 = 0;
195 char *_kwnames[] = { "self","pos", NULL };
196
197 self = self;
198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpEvent_SetPosition",_kwnames,&_argo0,&_obj1))
199 return NULL;
200 if (_argo0) {
201 if (_argo0 == Py_None) { _arg0 = NULL; }
202 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
203 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_SetPosition. Expected _wxHelpEvent_p.");
204 return NULL;
205 }
206 }
207 {
208 _arg1 = &temp;
209 if (! wxPoint_helper(_obj1, &_arg1))
210 return NULL;
211 }
212 {
213 PyThreadState* __tstate = wxPyBeginAllowThreads();
214 wxHelpEvent_SetPosition(_arg0,*_arg1);
215
216 wxPyEndAllowThreads(__tstate);
217 if (PyErr_Occurred()) return NULL;
218 } Py_INCREF(Py_None);
219 _resultobj = Py_None;
220 return _resultobj;
221 }
222
223 #define wxHelpEvent_GetLink(_swigobj) (_swigobj->GetLink())
224 static PyObject *_wrap_wxHelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
225 PyObject * _resultobj;
226 wxString * _result;
227 wxHelpEvent * _arg0;
228 PyObject * _argo0 = 0;
229 char *_kwnames[] = { "self", NULL };
230
231 self = self;
232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpEvent_GetLink",_kwnames,&_argo0))
233 return NULL;
234 if (_argo0) {
235 if (_argo0 == Py_None) { _arg0 = NULL; }
236 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
237 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_GetLink. Expected _wxHelpEvent_p.");
238 return NULL;
239 }
240 }
241 {
242 PyThreadState* __tstate = wxPyBeginAllowThreads();
243 const wxString & _result_ref = wxHelpEvent_GetLink(_arg0);
244 _result = (wxString *) &_result_ref;
245
246 wxPyEndAllowThreads(__tstate);
247 if (PyErr_Occurred()) return NULL;
248 }{
249 #if wxUSE_UNICODE
250 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
251 #else
252 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
253 #endif
254 }
255 return _resultobj;
256 }
257
258 #define wxHelpEvent_SetLink(_swigobj,_swigarg0) (_swigobj->SetLink(_swigarg0))
259 static PyObject *_wrap_wxHelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
260 PyObject * _resultobj;
261 wxHelpEvent * _arg0;
262 wxString * _arg1;
263 PyObject * _argo0 = 0;
264 PyObject * _obj1 = 0;
265 char *_kwnames[] = { "self","link", NULL };
266
267 self = self;
268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpEvent_SetLink",_kwnames,&_argo0,&_obj1))
269 return NULL;
270 if (_argo0) {
271 if (_argo0 == Py_None) { _arg0 = NULL; }
272 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
273 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_SetLink. Expected _wxHelpEvent_p.");
274 return NULL;
275 }
276 }
277 {
278 _arg1 = wxString_in_helper(_obj1);
279 if (_arg1 == NULL)
280 return NULL;
281 }
282 {
283 PyThreadState* __tstate = wxPyBeginAllowThreads();
284 wxHelpEvent_SetLink(_arg0,*_arg1);
285
286 wxPyEndAllowThreads(__tstate);
287 if (PyErr_Occurred()) return NULL;
288 } Py_INCREF(Py_None);
289 _resultobj = Py_None;
290 {
291 if (_obj1)
292 delete _arg1;
293 }
294 return _resultobj;
295 }
296
297 #define wxHelpEvent_GetTarget(_swigobj) (_swigobj->GetTarget())
298 static PyObject *_wrap_wxHelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
299 PyObject * _resultobj;
300 wxString * _result;
301 wxHelpEvent * _arg0;
302 PyObject * _argo0 = 0;
303 char *_kwnames[] = { "self", NULL };
304
305 self = self;
306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpEvent_GetTarget",_kwnames,&_argo0))
307 return NULL;
308 if (_argo0) {
309 if (_argo0 == Py_None) { _arg0 = NULL; }
310 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
311 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_GetTarget. Expected _wxHelpEvent_p.");
312 return NULL;
313 }
314 }
315 {
316 PyThreadState* __tstate = wxPyBeginAllowThreads();
317 const wxString & _result_ref = wxHelpEvent_GetTarget(_arg0);
318 _result = (wxString *) &_result_ref;
319
320 wxPyEndAllowThreads(__tstate);
321 if (PyErr_Occurred()) return NULL;
322 }{
323 #if wxUSE_UNICODE
324 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
325 #else
326 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
327 #endif
328 }
329 return _resultobj;
330 }
331
332 #define wxHelpEvent_SetTarget(_swigobj,_swigarg0) (_swigobj->SetTarget(_swigarg0))
333 static PyObject *_wrap_wxHelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
334 PyObject * _resultobj;
335 wxHelpEvent * _arg0;
336 wxString * _arg1;
337 PyObject * _argo0 = 0;
338 PyObject * _obj1 = 0;
339 char *_kwnames[] = { "self","target", NULL };
340
341 self = self;
342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpEvent_SetTarget",_kwnames,&_argo0,&_obj1))
343 return NULL;
344 if (_argo0) {
345 if (_argo0 == Py_None) { _arg0 = NULL; }
346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_SetTarget. Expected _wxHelpEvent_p.");
348 return NULL;
349 }
350 }
351 {
352 _arg1 = wxString_in_helper(_obj1);
353 if (_arg1 == NULL)
354 return NULL;
355 }
356 {
357 PyThreadState* __tstate = wxPyBeginAllowThreads();
358 wxHelpEvent_SetTarget(_arg0,*_arg1);
359
360 wxPyEndAllowThreads(__tstate);
361 if (PyErr_Occurred()) return NULL;
362 } Py_INCREF(Py_None);
363 _resultobj = Py_None;
364 {
365 if (_obj1)
366 delete _arg1;
367 }
368 return _resultobj;
369 }
370
371 static void *SwigwxContextMenuEventTowxCommandEvent(void *ptr) {
372 wxContextMenuEvent *src;
373 wxCommandEvent *dest;
374 src = (wxContextMenuEvent *) ptr;
375 dest = (wxCommandEvent *) src;
376 return (void *) dest;
377 }
378
379 static void *SwigwxContextMenuEventTowxEvent(void *ptr) {
380 wxContextMenuEvent *src;
381 wxEvent *dest;
382 src = (wxContextMenuEvent *) ptr;
383 dest = (wxEvent *) src;
384 return (void *) dest;
385 }
386
387 static void *SwigwxContextMenuEventTowxObject(void *ptr) {
388 wxContextMenuEvent *src;
389 wxObject *dest;
390 src = (wxContextMenuEvent *) ptr;
391 dest = (wxObject *) src;
392 return (void *) dest;
393 }
394
395 #define new_wxContextMenuEvent(_swigarg0,_swigarg1,_swigarg2) (new wxContextMenuEvent(_swigarg0,_swigarg1,_swigarg2))
396 static PyObject *_wrap_new_wxContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
397 PyObject * _resultobj;
398 wxContextMenuEvent * _result;
399 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
400 wxWindowID _arg1 = (wxWindowID ) 0;
401 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
402 wxPoint temp;
403 PyObject * _obj2 = 0;
404 char *_kwnames[] = { "type","id","pt", NULL };
405 char _ptemp[128];
406
407 self = self;
408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiO:new_wxContextMenuEvent",_kwnames,&_arg0,&_arg1,&_obj2))
409 return NULL;
410 if (_obj2)
411 {
412 _arg2 = &temp;
413 if (! wxPoint_helper(_obj2, &_arg2))
414 return NULL;
415 }
416 {
417 PyThreadState* __tstate = wxPyBeginAllowThreads();
418 _result = (wxContextMenuEvent *)new_wxContextMenuEvent(_arg0,_arg1,*_arg2);
419
420 wxPyEndAllowThreads(__tstate);
421 if (PyErr_Occurred()) return NULL;
422 } if (_result) {
423 SWIG_MakePtr(_ptemp, (char *) _result,"_wxContextMenuEvent_p");
424 _resultobj = Py_BuildValue("s",_ptemp);
425 } else {
426 Py_INCREF(Py_None);
427 _resultobj = Py_None;
428 }
429 return _resultobj;
430 }
431
432 #define wxContextMenuEvent_GetPosition(_swigobj) (_swigobj->GetPosition())
433 static PyObject *_wrap_wxContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
434 PyObject * _resultobj;
435 wxPoint * _result;
436 wxContextMenuEvent * _arg0;
437 PyObject * _argo0 = 0;
438 char *_kwnames[] = { "self", NULL };
439 char _ptemp[128];
440
441 self = self;
442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxContextMenuEvent_GetPosition",_kwnames,&_argo0))
443 return NULL;
444 if (_argo0) {
445 if (_argo0 == Py_None) { _arg0 = NULL; }
446 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextMenuEvent_p")) {
447 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxContextMenuEvent_GetPosition. Expected _wxContextMenuEvent_p.");
448 return NULL;
449 }
450 }
451 {
452 PyThreadState* __tstate = wxPyBeginAllowThreads();
453 const wxPoint & _result_ref = wxContextMenuEvent_GetPosition(_arg0);
454 _result = (wxPoint *) &_result_ref;
455
456 wxPyEndAllowThreads(__tstate);
457 if (PyErr_Occurred()) return NULL;
458 } if (_result) {
459 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
460 _resultobj = Py_BuildValue("s",_ptemp);
461 } else {
462 Py_INCREF(Py_None);
463 _resultobj = Py_None;
464 }
465 return _resultobj;
466 }
467
468 #define wxContextMenuEvent_SetPosition(_swigobj,_swigarg0) (_swigobj->SetPosition(_swigarg0))
469 static PyObject *_wrap_wxContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
470 PyObject * _resultobj;
471 wxContextMenuEvent * _arg0;
472 wxPoint * _arg1;
473 PyObject * _argo0 = 0;
474 wxPoint temp;
475 PyObject * _obj1 = 0;
476 char *_kwnames[] = { "self","pos", NULL };
477
478 self = self;
479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxContextMenuEvent_SetPosition",_kwnames,&_argo0,&_obj1))
480 return NULL;
481 if (_argo0) {
482 if (_argo0 == Py_None) { _arg0 = NULL; }
483 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextMenuEvent_p")) {
484 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxContextMenuEvent_SetPosition. Expected _wxContextMenuEvent_p.");
485 return NULL;
486 }
487 }
488 {
489 _arg1 = &temp;
490 if (! wxPoint_helper(_obj1, &_arg1))
491 return NULL;
492 }
493 {
494 PyThreadState* __tstate = wxPyBeginAllowThreads();
495 wxContextMenuEvent_SetPosition(_arg0,*_arg1);
496
497 wxPyEndAllowThreads(__tstate);
498 if (PyErr_Occurred()) return NULL;
499 } Py_INCREF(Py_None);
500 _resultobj = Py_None;
501 return _resultobj;
502 }
503
504 static void *SwigwxContextHelpTowxObject(void *ptr) {
505 wxContextHelp *src;
506 wxObject *dest;
507 src = (wxContextHelp *) ptr;
508 dest = (wxObject *) src;
509 return (void *) dest;
510 }
511
512 #define new_wxContextHelp(_swigarg0,_swigarg1) (new wxContextHelp(_swigarg0,_swigarg1))
513 static PyObject *_wrap_new_wxContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
514 PyObject * _resultobj;
515 wxContextHelp * _result;
516 wxWindow * _arg0 = (wxWindow *) NULL;
517 bool _arg1 = (bool ) TRUE;
518 PyObject * _argo0 = 0;
519 int tempbool1 = (int) TRUE;
520 char *_kwnames[] = { "window","doNow", NULL };
521 char _ptemp[128];
522
523 self = self;
524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxContextHelp",_kwnames,&_argo0,&tempbool1))
525 return NULL;
526 if (_argo0) {
527 if (_argo0 == Py_None) { _arg0 = NULL; }
528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxContextHelp. Expected _wxWindow_p.");
530 return NULL;
531 }
532 }
533 _arg1 = (bool ) tempbool1;
534 {
535 PyThreadState* __tstate = wxPyBeginAllowThreads();
536 _result = (wxContextHelp *)new_wxContextHelp(_arg0,_arg1);
537
538 wxPyEndAllowThreads(__tstate);
539 if (PyErr_Occurred()) return NULL;
540 } if (_result) {
541 SWIG_MakePtr(_ptemp, (char *) _result,"_wxContextHelp_p");
542 _resultobj = Py_BuildValue("s",_ptemp);
543 } else {
544 Py_INCREF(Py_None);
545 _resultobj = Py_None;
546 }
547 return _resultobj;
548 }
549
550 #define delete_wxContextHelp(_swigobj) (delete _swigobj)
551 static PyObject *_wrap_delete_wxContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
552 PyObject * _resultobj;
553 wxContextHelp * _arg0;
554 PyObject * _argo0 = 0;
555 char *_kwnames[] = { "self", NULL };
556
557 self = self;
558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxContextHelp",_kwnames,&_argo0))
559 return NULL;
560 if (_argo0) {
561 if (_argo0 == Py_None) { _arg0 = NULL; }
562 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextHelp_p")) {
563 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxContextHelp. Expected _wxContextHelp_p.");
564 return NULL;
565 }
566 }
567 {
568 PyThreadState* __tstate = wxPyBeginAllowThreads();
569 delete_wxContextHelp(_arg0);
570
571 wxPyEndAllowThreads(__tstate);
572 if (PyErr_Occurred()) return NULL;
573 } Py_INCREF(Py_None);
574 _resultobj = Py_None;
575 return _resultobj;
576 }
577
578 #define wxContextHelp_BeginContextHelp(_swigobj,_swigarg0) (_swigobj->BeginContextHelp(_swigarg0))
579 static PyObject *_wrap_wxContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
580 PyObject * _resultobj;
581 bool _result;
582 wxContextHelp * _arg0;
583 wxWindow * _arg1 = (wxWindow *) NULL;
584 PyObject * _argo0 = 0;
585 PyObject * _argo1 = 0;
586 char *_kwnames[] = { "self","window", NULL };
587
588 self = self;
589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxContextHelp_BeginContextHelp",_kwnames,&_argo0,&_argo1))
590 return NULL;
591 if (_argo0) {
592 if (_argo0 == Py_None) { _arg0 = NULL; }
593 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextHelp_p")) {
594 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxContextHelp_BeginContextHelp. Expected _wxContextHelp_p.");
595 return NULL;
596 }
597 }
598 if (_argo1) {
599 if (_argo1 == Py_None) { _arg1 = NULL; }
600 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
601 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxContextHelp_BeginContextHelp. Expected _wxWindow_p.");
602 return NULL;
603 }
604 }
605 {
606 PyThreadState* __tstate = wxPyBeginAllowThreads();
607 _result = (bool )wxContextHelp_BeginContextHelp(_arg0,_arg1);
608
609 wxPyEndAllowThreads(__tstate);
610 if (PyErr_Occurred()) return NULL;
611 } _resultobj = Py_BuildValue("i",_result);
612 return _resultobj;
613 }
614
615 #define wxContextHelp_EndContextHelp(_swigobj) (_swigobj->EndContextHelp())
616 static PyObject *_wrap_wxContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
617 PyObject * _resultobj;
618 bool _result;
619 wxContextHelp * _arg0;
620 PyObject * _argo0 = 0;
621 char *_kwnames[] = { "self", NULL };
622
623 self = self;
624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxContextHelp_EndContextHelp",_kwnames,&_argo0))
625 return NULL;
626 if (_argo0) {
627 if (_argo0 == Py_None) { _arg0 = NULL; }
628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextHelp_p")) {
629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxContextHelp_EndContextHelp. Expected _wxContextHelp_p.");
630 return NULL;
631 }
632 }
633 {
634 PyThreadState* __tstate = wxPyBeginAllowThreads();
635 _result = (bool )wxContextHelp_EndContextHelp(_arg0);
636
637 wxPyEndAllowThreads(__tstate);
638 if (PyErr_Occurred()) return NULL;
639 } _resultobj = Py_BuildValue("i",_result);
640 return _resultobj;
641 }
642
643 static void *SwigwxContextHelpButtonTowxBitmapButton(void *ptr) {
644 wxContextHelpButton *src;
645 wxBitmapButton *dest;
646 src = (wxContextHelpButton *) ptr;
647 dest = (wxBitmapButton *) src;
648 return (void *) dest;
649 }
650
651 static void *SwigwxContextHelpButtonTowxButton(void *ptr) {
652 wxContextHelpButton *src;
653 wxButton *dest;
654 src = (wxContextHelpButton *) ptr;
655 dest = (wxButton *) src;
656 return (void *) dest;
657 }
658
659 static void *SwigwxContextHelpButtonTowxControl(void *ptr) {
660 wxContextHelpButton *src;
661 wxControl *dest;
662 src = (wxContextHelpButton *) ptr;
663 dest = (wxControl *) src;
664 return (void *) dest;
665 }
666
667 static void *SwigwxContextHelpButtonTowxWindow(void *ptr) {
668 wxContextHelpButton *src;
669 wxWindow *dest;
670 src = (wxContextHelpButton *) ptr;
671 dest = (wxWindow *) src;
672 return (void *) dest;
673 }
674
675 static void *SwigwxContextHelpButtonTowxEvtHandler(void *ptr) {
676 wxContextHelpButton *src;
677 wxEvtHandler *dest;
678 src = (wxContextHelpButton *) ptr;
679 dest = (wxEvtHandler *) src;
680 return (void *) dest;
681 }
682
683 static void *SwigwxContextHelpButtonTowxObject(void *ptr) {
684 wxContextHelpButton *src;
685 wxObject *dest;
686 src = (wxContextHelpButton *) ptr;
687 dest = (wxObject *) src;
688 return (void *) dest;
689 }
690
691 #define new_wxContextHelpButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxContextHelpButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
692 static PyObject *_wrap_new_wxContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
693 PyObject * _resultobj;
694 wxContextHelpButton * _result;
695 wxWindow * _arg0;
696 wxWindowID _arg1 = (wxWindowID ) (wxID_CONTEXT_HELP);
697 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
698 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
699 long _arg4 = (long ) wxBU_AUTODRAW;
700 PyObject * _argo0 = 0;
701 wxPoint temp;
702 PyObject * _obj2 = 0;
703 wxSize temp0;
704 PyObject * _obj3 = 0;
705 char *_kwnames[] = { "parent","id","pos","size","style", NULL };
706 char _ptemp[128];
707
708 self = self;
709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxContextHelpButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
710 return NULL;
711 if (_argo0) {
712 if (_argo0 == Py_None) { _arg0 = NULL; }
713 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
714 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxContextHelpButton. Expected _wxWindow_p.");
715 return NULL;
716 }
717 }
718 if (_obj2)
719 {
720 _arg2 = &temp;
721 if (! wxPoint_helper(_obj2, &_arg2))
722 return NULL;
723 }
724 if (_obj3)
725 {
726 _arg3 = &temp0;
727 if (! wxSize_helper(_obj3, &_arg3))
728 return NULL;
729 }
730 {
731 PyThreadState* __tstate = wxPyBeginAllowThreads();
732 _result = (wxContextHelpButton *)new_wxContextHelpButton(_arg0,_arg1,*_arg2,*_arg3,_arg4);
733
734 wxPyEndAllowThreads(__tstate);
735 if (PyErr_Occurred()) return NULL;
736 } if (_result) {
737 SWIG_MakePtr(_ptemp, (char *) _result,"_wxContextHelpButton_p");
738 _resultobj = Py_BuildValue("s",_ptemp);
739 } else {
740 Py_INCREF(Py_None);
741 _resultobj = Py_None;
742 }
743 return _resultobj;
744 }
745
746 static PyObject *_wrap_wxHelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
747 PyObject * _resultobj;
748 wxHelpProvider * _result;
749 wxHelpProvider * _arg0;
750 PyObject * _argo0 = 0;
751 char *_kwnames[] = { "helpProvider", NULL };
752 char _ptemp[128];
753
754 self = self;
755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpProvider_Set",_kwnames,&_argo0))
756 return NULL;
757 if (_argo0) {
758 if (_argo0 == Py_None) { _arg0 = NULL; }
759 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
760 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_Set. Expected _wxHelpProvider_p.");
761 return NULL;
762 }
763 }
764 {
765 PyThreadState* __tstate = wxPyBeginAllowThreads();
766 _result = (wxHelpProvider *)wxHelpProvider::Set(_arg0);
767
768 wxPyEndAllowThreads(__tstate);
769 if (PyErr_Occurred()) return NULL;
770 } if (_result) {
771 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHelpProvider_p");
772 _resultobj = Py_BuildValue("s",_ptemp);
773 } else {
774 Py_INCREF(Py_None);
775 _resultobj = Py_None;
776 }
777 return _resultobj;
778 }
779
780 static PyObject *_wrap_wxHelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
781 PyObject * _resultobj;
782 wxHelpProvider * _result;
783 char *_kwnames[] = { NULL };
784 char _ptemp[128];
785
786 self = self;
787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxHelpProvider_Get",_kwnames))
788 return NULL;
789 {
790 PyThreadState* __tstate = wxPyBeginAllowThreads();
791 _result = (wxHelpProvider *)wxHelpProvider::Get();
792
793 wxPyEndAllowThreads(__tstate);
794 if (PyErr_Occurred()) return NULL;
795 } if (_result) {
796 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHelpProvider_p");
797 _resultobj = Py_BuildValue("s",_ptemp);
798 } else {
799 Py_INCREF(Py_None);
800 _resultobj = Py_None;
801 }
802 return _resultobj;
803 }
804
805 #define wxHelpProvider_GetHelp(_swigobj,_swigarg0) (_swigobj->GetHelp(_swigarg0))
806 static PyObject *_wrap_wxHelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
807 PyObject * _resultobj;
808 wxString * _result;
809 wxHelpProvider * _arg0;
810 wxWindow * _arg1;
811 PyObject * _argo0 = 0;
812 PyObject * _argo1 = 0;
813 char *_kwnames[] = { "self","window", NULL };
814
815 self = self;
816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpProvider_GetHelp",_kwnames,&_argo0,&_argo1))
817 return NULL;
818 if (_argo0) {
819 if (_argo0 == Py_None) { _arg0 = NULL; }
820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_GetHelp. Expected _wxHelpProvider_p.");
822 return NULL;
823 }
824 }
825 if (_argo1) {
826 if (_argo1 == Py_None) { _arg1 = NULL; }
827 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
828 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_GetHelp. Expected _wxWindow_p.");
829 return NULL;
830 }
831 }
832 {
833 PyThreadState* __tstate = wxPyBeginAllowThreads();
834 _result = new wxString (wxHelpProvider_GetHelp(_arg0,_arg1));
835
836 wxPyEndAllowThreads(__tstate);
837 if (PyErr_Occurred()) return NULL;
838 }{
839 #if wxUSE_UNICODE
840 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
841 #else
842 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
843 #endif
844 }
845 {
846 delete _result;
847 }
848 return _resultobj;
849 }
850
851 #define wxHelpProvider_ShowHelp(_swigobj,_swigarg0) (_swigobj->ShowHelp(_swigarg0))
852 static PyObject *_wrap_wxHelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
853 PyObject * _resultobj;
854 bool _result;
855 wxHelpProvider * _arg0;
856 wxWindowBase * _arg1;
857 PyObject * _argo0 = 0;
858 PyObject * _argo1 = 0;
859 char *_kwnames[] = { "self","window", NULL };
860
861 self = self;
862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpProvider_ShowHelp",_kwnames,&_argo0,&_argo1))
863 return NULL;
864 if (_argo0) {
865 if (_argo0 == Py_None) { _arg0 = NULL; }
866 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
867 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_ShowHelp. Expected _wxHelpProvider_p.");
868 return NULL;
869 }
870 }
871 if (_argo1) {
872 if (_argo1 == Py_None) { _arg1 = NULL; }
873 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindowBase_p")) {
874 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_ShowHelp. Expected _wxWindowBase_p.");
875 return NULL;
876 }
877 }
878 {
879 PyThreadState* __tstate = wxPyBeginAllowThreads();
880 _result = (bool )wxHelpProvider_ShowHelp(_arg0,_arg1);
881
882 wxPyEndAllowThreads(__tstate);
883 if (PyErr_Occurred()) return NULL;
884 } _resultobj = Py_BuildValue("i",_result);
885 return _resultobj;
886 }
887
888 #define wxHelpProvider_AddHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddHelp(_swigarg0,_swigarg1))
889 static PyObject *_wrap_wxHelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
890 PyObject * _resultobj;
891 wxHelpProvider * _arg0;
892 wxWindowBase * _arg1;
893 wxString * _arg2;
894 PyObject * _argo0 = 0;
895 PyObject * _argo1 = 0;
896 PyObject * _obj2 = 0;
897 char *_kwnames[] = { "self","window","text", NULL };
898
899 self = self;
900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxHelpProvider_AddHelp",_kwnames,&_argo0,&_argo1,&_obj2))
901 return NULL;
902 if (_argo0) {
903 if (_argo0 == Py_None) { _arg0 = NULL; }
904 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
905 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_AddHelp. Expected _wxHelpProvider_p.");
906 return NULL;
907 }
908 }
909 if (_argo1) {
910 if (_argo1 == Py_None) { _arg1 = NULL; }
911 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindowBase_p")) {
912 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_AddHelp. Expected _wxWindowBase_p.");
913 return NULL;
914 }
915 }
916 {
917 _arg2 = wxString_in_helper(_obj2);
918 if (_arg2 == NULL)
919 return NULL;
920 }
921 {
922 PyThreadState* __tstate = wxPyBeginAllowThreads();
923 wxHelpProvider_AddHelp(_arg0,_arg1,*_arg2);
924
925 wxPyEndAllowThreads(__tstate);
926 if (PyErr_Occurred()) return NULL;
927 } Py_INCREF(Py_None);
928 _resultobj = Py_None;
929 {
930 if (_obj2)
931 delete _arg2;
932 }
933 return _resultobj;
934 }
935
936 #define wxHelpProvider_AddHelpById(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddHelp(_swigarg0,_swigarg1))
937 static PyObject *_wrap_wxHelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) {
938 PyObject * _resultobj;
939 wxHelpProvider * _arg0;
940 wxWindowID _arg1;
941 wxString * _arg2;
942 PyObject * _argo0 = 0;
943 PyObject * _obj2 = 0;
944 char *_kwnames[] = { "self","id","text", NULL };
945
946 self = self;
947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxHelpProvider_AddHelpById",_kwnames,&_argo0,&_arg1,&_obj2))
948 return NULL;
949 if (_argo0) {
950 if (_argo0 == Py_None) { _arg0 = NULL; }
951 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
952 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_AddHelpById. Expected _wxHelpProvider_p.");
953 return NULL;
954 }
955 }
956 {
957 _arg2 = wxString_in_helper(_obj2);
958 if (_arg2 == NULL)
959 return NULL;
960 }
961 {
962 PyThreadState* __tstate = wxPyBeginAllowThreads();
963 wxHelpProvider_AddHelpById(_arg0,_arg1,*_arg2);
964
965 wxPyEndAllowThreads(__tstate);
966 if (PyErr_Occurred()) return NULL;
967 } Py_INCREF(Py_None);
968 _resultobj = Py_None;
969 {
970 if (_obj2)
971 delete _arg2;
972 }
973 return _resultobj;
974 }
975
976 static void wxHelpProvider_Destroy(wxHelpProvider *self) { delete self; }
977 static PyObject *_wrap_wxHelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
978 PyObject * _resultobj;
979 wxHelpProvider * _arg0;
980 PyObject * _argo0 = 0;
981 char *_kwnames[] = { "self", NULL };
982
983 self = self;
984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpProvider_Destroy",_kwnames,&_argo0))
985 return NULL;
986 if (_argo0) {
987 if (_argo0 == Py_None) { _arg0 = NULL; }
988 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
989 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_Destroy. Expected _wxHelpProvider_p.");
990 return NULL;
991 }
992 }
993 {
994 PyThreadState* __tstate = wxPyBeginAllowThreads();
995 wxHelpProvider_Destroy(_arg0);
996
997 wxPyEndAllowThreads(__tstate);
998 if (PyErr_Occurred()) return NULL;
999 } Py_INCREF(Py_None);
1000 _resultobj = Py_None;
1001 return _resultobj;
1002 }
1003
1004 static void *SwigwxSimpleHelpProviderTowxHelpProvider(void *ptr) {
1005 wxSimpleHelpProvider *src;
1006 wxHelpProvider *dest;
1007 src = (wxSimpleHelpProvider *) ptr;
1008 dest = (wxHelpProvider *) src;
1009 return (void *) dest;
1010 }
1011
1012 #define new_wxSimpleHelpProvider() (new wxSimpleHelpProvider())
1013 static PyObject *_wrap_new_wxSimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
1014 PyObject * _resultobj;
1015 wxSimpleHelpProvider * _result;
1016 char *_kwnames[] = { NULL };
1017 char _ptemp[128];
1018
1019 self = self;
1020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxSimpleHelpProvider",_kwnames))
1021 return NULL;
1022 {
1023 PyThreadState* __tstate = wxPyBeginAllowThreads();
1024 _result = (wxSimpleHelpProvider *)new_wxSimpleHelpProvider();
1025
1026 wxPyEndAllowThreads(__tstate);
1027 if (PyErr_Occurred()) return NULL;
1028 } if (_result) {
1029 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSimpleHelpProvider_p");
1030 _resultobj = Py_BuildValue("s",_ptemp);
1031 } else {
1032 Py_INCREF(Py_None);
1033 _resultobj = Py_None;
1034 }
1035 return _resultobj;
1036 }
1037
1038 static PyMethodDef helpcMethods[] = {
1039 { "new_wxSimpleHelpProvider", (PyCFunction) _wrap_new_wxSimpleHelpProvider, METH_VARARGS | METH_KEYWORDS },
1040 { "wxHelpProvider_Destroy", (PyCFunction) _wrap_wxHelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
1041 { "wxHelpProvider_AddHelpById", (PyCFunction) _wrap_wxHelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS },
1042 { "wxHelpProvider_AddHelp", (PyCFunction) _wrap_wxHelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS },
1043 { "wxHelpProvider_ShowHelp", (PyCFunction) _wrap_wxHelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS },
1044 { "wxHelpProvider_GetHelp", (PyCFunction) _wrap_wxHelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS },
1045 { "wxHelpProvider_Get", (PyCFunction) _wrap_wxHelpProvider_Get, METH_VARARGS | METH_KEYWORDS },
1046 { "wxHelpProvider_Set", (PyCFunction) _wrap_wxHelpProvider_Set, METH_VARARGS | METH_KEYWORDS },
1047 { "new_wxContextHelpButton", (PyCFunction) _wrap_new_wxContextHelpButton, METH_VARARGS | METH_KEYWORDS },
1048 { "wxContextHelp_EndContextHelp", (PyCFunction) _wrap_wxContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS },
1049 { "wxContextHelp_BeginContextHelp", (PyCFunction) _wrap_wxContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS },
1050 { "delete_wxContextHelp", (PyCFunction) _wrap_delete_wxContextHelp, METH_VARARGS | METH_KEYWORDS },
1051 { "new_wxContextHelp", (PyCFunction) _wrap_new_wxContextHelp, METH_VARARGS | METH_KEYWORDS },
1052 { "wxContextMenuEvent_SetPosition", (PyCFunction) _wrap_wxContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
1053 { "wxContextMenuEvent_GetPosition", (PyCFunction) _wrap_wxContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
1054 { "new_wxContextMenuEvent", (PyCFunction) _wrap_new_wxContextMenuEvent, METH_VARARGS | METH_KEYWORDS },
1055 { "wxHelpEvent_SetTarget", (PyCFunction) _wrap_wxHelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS },
1056 { "wxHelpEvent_GetTarget", (PyCFunction) _wrap_wxHelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS },
1057 { "wxHelpEvent_SetLink", (PyCFunction) _wrap_wxHelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS },
1058 { "wxHelpEvent_GetLink", (PyCFunction) _wrap_wxHelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS },
1059 { "wxHelpEvent_SetPosition", (PyCFunction) _wrap_wxHelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
1060 { "wxHelpEvent_GetPosition", (PyCFunction) _wrap_wxHelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
1061 { "new_wxHelpEvent", (PyCFunction) _wrap_new_wxHelpEvent, METH_VARARGS | METH_KEYWORDS },
1062 { NULL, NULL }
1063 };
1064 #ifdef __cplusplus
1065 }
1066 #endif
1067 /*
1068 * This table is used by the pointer type-checker
1069 */
1070 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1071 { "_wxEvent","_wxContextMenuEvent",SwigwxContextMenuEventTowxEvent},
1072 { "_wxEvent","_wxHelpEvent",SwigwxHelpEventTowxEvent},
1073 { "_signed_long","_long",0},
1074 { "_wxPrintQuality","_wxCoord",0},
1075 { "_wxPrintQuality","_int",0},
1076 { "_wxPrintQuality","_signed_int",0},
1077 { "_wxPrintQuality","_unsigned_int",0},
1078 { "_wxPrintQuality","_wxWindowID",0},
1079 { "_wxPrintQuality","_uint",0},
1080 { "_wxPrintQuality","_EBool",0},
1081 { "_wxPrintQuality","_size_t",0},
1082 { "_wxPrintQuality","_time_t",0},
1083 { "_byte","_unsigned_char",0},
1084 { "_long","_unsigned_long",0},
1085 { "_long","_signed_long",0},
1086 { "_wxBitmapButton","_wxContextHelpButton",SwigwxContextHelpButtonTowxBitmapButton},
1087 { "_size_t","_wxCoord",0},
1088 { "_size_t","_wxPrintQuality",0},
1089 { "_size_t","_time_t",0},
1090 { "_size_t","_unsigned_int",0},
1091 { "_size_t","_int",0},
1092 { "_size_t","_wxWindowID",0},
1093 { "_size_t","_uint",0},
1094 { "_uint","_wxCoord",0},
1095 { "_uint","_wxPrintQuality",0},
1096 { "_uint","_time_t",0},
1097 { "_uint","_size_t",0},
1098 { "_uint","_unsigned_int",0},
1099 { "_uint","_int",0},
1100 { "_uint","_wxWindowID",0},
1101 { "_wxChar","_char",0},
1102 { "_wxCommandEvent","_wxContextMenuEvent",SwigwxContextMenuEventTowxCommandEvent},
1103 { "_wxCommandEvent","_wxHelpEvent",SwigwxHelpEventTowxCommandEvent},
1104 { "_char","_wxChar",0},
1105 { "_wxHelpProvider","_wxSimpleHelpProvider",SwigwxSimpleHelpProviderTowxHelpProvider},
1106 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
1107 { "_EBool","_wxCoord",0},
1108 { "_EBool","_wxPrintQuality",0},
1109 { "_EBool","_signed_int",0},
1110 { "_EBool","_int",0},
1111 { "_EBool","_wxWindowID",0},
1112 { "_unsigned_long","_long",0},
1113 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
1114 { "_signed_int","_wxCoord",0},
1115 { "_signed_int","_wxPrintQuality",0},
1116 { "_signed_int","_EBool",0},
1117 { "_signed_int","_wxWindowID",0},
1118 { "_signed_int","_int",0},
1119 { "_WXTYPE","_short",0},
1120 { "_WXTYPE","_signed_short",0},
1121 { "_WXTYPE","_unsigned_short",0},
1122 { "_unsigned_short","_WXTYPE",0},
1123 { "_unsigned_short","_short",0},
1124 { "_wxObject","_wxContextHelpButton",SwigwxContextHelpButtonTowxObject},
1125 { "_wxObject","_wxContextHelp",SwigwxContextHelpTowxObject},
1126 { "_wxObject","_wxContextMenuEvent",SwigwxContextMenuEventTowxObject},
1127 { "_wxObject","_wxHelpEvent",SwigwxHelpEventTowxObject},
1128 { "_signed_short","_WXTYPE",0},
1129 { "_signed_short","_short",0},
1130 { "_unsigned_char","_byte",0},
1131 { "_wxControl","_wxContextHelpButton",SwigwxContextHelpButtonTowxControl},
1132 { "_unsigned_int","_wxCoord",0},
1133 { "_unsigned_int","_wxPrintQuality",0},
1134 { "_unsigned_int","_time_t",0},
1135 { "_unsigned_int","_size_t",0},
1136 { "_unsigned_int","_uint",0},
1137 { "_unsigned_int","_wxWindowID",0},
1138 { "_unsigned_int","_int",0},
1139 { "_short","_WXTYPE",0},
1140 { "_short","_unsigned_short",0},
1141 { "_short","_signed_short",0},
1142 { "_wxWindowID","_wxCoord",0},
1143 { "_wxWindowID","_wxPrintQuality",0},
1144 { "_wxWindowID","_time_t",0},
1145 { "_wxWindowID","_size_t",0},
1146 { "_wxWindowID","_EBool",0},
1147 { "_wxWindowID","_uint",0},
1148 { "_wxWindowID","_int",0},
1149 { "_wxWindowID","_signed_int",0},
1150 { "_wxWindowID","_unsigned_int",0},
1151 { "_int","_wxCoord",0},
1152 { "_int","_wxPrintQuality",0},
1153 { "_int","_time_t",0},
1154 { "_int","_size_t",0},
1155 { "_int","_EBool",0},
1156 { "_int","_uint",0},
1157 { "_int","_wxWindowID",0},
1158 { "_int","_unsigned_int",0},
1159 { "_int","_signed_int",0},
1160 { "_time_t","_wxCoord",0},
1161 { "_time_t","_wxPrintQuality",0},
1162 { "_time_t","_unsigned_int",0},
1163 { "_time_t","_int",0},
1164 { "_time_t","_wxWindowID",0},
1165 { "_time_t","_uint",0},
1166 { "_time_t","_size_t",0},
1167 { "_wxButton","_wxContextHelpButton",SwigwxContextHelpButtonTowxButton},
1168 { "_wxCoord","_int",0},
1169 { "_wxCoord","_signed_int",0},
1170 { "_wxCoord","_unsigned_int",0},
1171 { "_wxCoord","_wxWindowID",0},
1172 { "_wxCoord","_uint",0},
1173 { "_wxCoord","_EBool",0},
1174 { "_wxCoord","_size_t",0},
1175 { "_wxCoord","_time_t",0},
1176 { "_wxCoord","_wxPrintQuality",0},
1177 { "_wxEvtHandler","_wxContextHelpButton",SwigwxContextHelpButtonTowxEvtHandler},
1178 { "_wxWindow","_wxContextHelpButton",SwigwxContextHelpButtonTowxWindow},
1179 {0,0,0}};
1180
1181 static PyObject *SWIG_globals;
1182 #ifdef __cplusplus
1183 extern "C"
1184 #endif
1185 SWIGEXPORT(void) inithelpc() {
1186 PyObject *m, *d;
1187 SWIG_globals = SWIG_newvarlink();
1188 m = Py_InitModule("helpc", helpcMethods);
1189 d = PyModule_GetDict(m);
1190 PyDict_SetItemString(d,"wxFRAME_EX_CONTEXTHELP", PyInt_FromLong((long) wxFRAME_EX_CONTEXTHELP));
1191 PyDict_SetItemString(d,"wxDIALOG_EX_CONTEXTHELP", PyInt_FromLong((long) wxDIALOG_EX_CONTEXTHELP));
1192 PyDict_SetItemString(d,"wxID_CONTEXT_HELP", PyInt_FromLong((long) wxID_CONTEXT_HELP));
1193 PyDict_SetItemString(d,"wxEVT_HELP", PyInt_FromLong((long) wxEVT_HELP));
1194 PyDict_SetItemString(d,"wxEVT_DETAILED_HELP", PyInt_FromLong((long) wxEVT_DETAILED_HELP));
1195 {
1196 int i;
1197 for (i = 0; _swig_mapping[i].n1; i++)
1198 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
1199 }
1200 }