]>
Commit | Line | Data |
---|---|---|
bb0054cd | 1 | /* |
c368d904 | 2 | * FILE : src/msw/misc2.cpp |
bb0054cd RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
bb0054cd RD |
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) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
bb0054cd RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
bb0054cd | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
bb0054cd RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
bb0054cd RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
bb0054cd RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
bb0054cd RD |
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 *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
bb0054cd RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
bb0054cd RD |
54 | #define SWIG_init initmisc2c |
55 | ||
56 | #define SWIG_name "misc2c" | |
57 | ||
58 | #include "helpers.h" | |
5ae76026 | 59 | #include "pyistream.h" |
bb0054cd RD |
60 | #include <wx/resource.h> |
61 | #include <wx/tooltip.h> | |
f0261a72 | 62 | #include <wx/caret.h> |
f6bcfd97 | 63 | #include <wx/tipdlg.h> |
c368d904 | 64 | #include <wx/process.h> |
493f1553 RD |
65 | |
66 | #if wxUSE_JOYSTICK || defined(__WXMSW__) | |
185d7c3e | 67 | #include <wx/joystick.h> |
e0672e2f | 68 | #endif |
bb0054cd | 69 | |
493f1553 RD |
70 | #if wxUSE_WAVE || defined(__WXMSW__) |
71 | #include <wx/wave.h> | |
72 | #endif | |
73 | ||
b37c7e1d RD |
74 | #include <wx/mimetype.h> |
75 | ||
bb0054cd RD |
76 | |
77 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
78 | PyObject* o2; | |
79 | PyObject* o3; | |
80 | ||
6e18ca6c | 81 | if (!target) { |
bb0054cd | 82 | target = o; |
6e18ca6c | 83 | } else if (target == Py_None) { |
bb0054cd RD |
84 | Py_DECREF(Py_None); |
85 | target = o; | |
6e18ca6c | 86 | } else { |
bb0054cd RD |
87 | if (!PyTuple_Check(target)) { |
88 | o2 = target; | |
89 | target = PyTuple_New(1); | |
90 | PyTuple_SetItem(target, 0, o2); | |
91 | } | |
6e18ca6c RD |
92 | o3 = PyTuple_New(1); |
93 | PyTuple_SetItem(o3, 0, o); | |
bb0054cd RD |
94 | |
95 | o2 = target; | |
6e18ca6c RD |
96 | target = PySequence_Concat(o2, o3); |
97 | Py_DECREF(o2); | |
bb0054cd RD |
98 | Py_DECREF(o3); |
99 | } | |
100 | return target; | |
101 | } | |
102 | ||
137b5242 RD |
103 | // Put some wx default wxChar* values into wxStrings. |
104 | DECLARE_DEF_STRING(FileSelectorPromptStr); | |
105 | DECLARE_DEF_STRING(FileSelectorDefaultWildcardStr); | |
7cdaed0b | 106 | DECLARE_DEF_STRING(DirSelectorPromptStr); |
137b5242 RD |
107 | static const wxString wxPyEmptyString(wxT("")); |
108 | ||
06c0fba4 RD |
109 | int wxCaret_GetBlinkTime() { |
110 | return wxCaret::GetBlinkTime(); | |
111 | } | |
112 | ||
113 | void wxCaret_SetBlinkTime(int milliseconds) { | |
114 | wxCaret::SetBlinkTime(milliseconds); | |
115 | } | |
b1462dfa | 116 | |
6e18ca6c | 117 | bool wxThread_IsMain() { |
00ca6262 | 118 | #ifdef WXP_WITH_THREAD |
6e18ca6c | 119 | return wxThread::IsMain(); |
00ca6262 RD |
120 | #else |
121 | return TRUE; | |
122 | #endif | |
6e18ca6c RD |
123 | } |
124 | ||
f6bcfd97 BP |
125 | class wxPyTipProvider : public wxTipProvider { |
126 | public: | |
127 | wxPyTipProvider(size_t currentTip) | |
128 | : wxTipProvider(currentTip) {} | |
129 | ||
130 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
131 | ||
132 | PYPRIVATE; | |
133 | }; | |
134 | ||
135 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
136 | ||
137 | ||
138 | #include <wx/generic/dragimgg.h> | |
76bfdc78 | 139 | |
19e30148 | 140 | // A wxLog class that can be derived from in wxPython |
76bfdc78 RD |
141 | class wxPyLog : public wxLog { |
142 | public: | |
143 | wxPyLog() : wxLog() {} | |
144 | ||
145 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
146 | bool found; | |
4268f798 | 147 | wxPyBeginBlockThreads(); |
a66212dc RD |
148 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { |
149 | PyObject* s = wx2PyString(szString); | |
150 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
151 | Py_DECREF(s); | |
152 | } | |
4268f798 | 153 | wxPyEndBlockThreads(); |
76bfdc78 RD |
154 | if (! found) |
155 | wxLog::DoLog(level, szString, t); | |
156 | } | |
157 | ||
158 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
159 | bool found; | |
4268f798 | 160 | wxPyBeginBlockThreads(); |
a66212dc RD |
161 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { |
162 | PyObject* s = wx2PyString(szString); | |
163 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
164 | Py_DECREF(s); | |
165 | } | |
4268f798 | 166 | wxPyEndBlockThreads(); |
76bfdc78 RD |
167 | if (! found) |
168 | wxLog::DoLogString(szString, t); | |
169 | } | |
170 | ||
171 | PYPRIVATE; | |
172 | }; | |
c368d904 RD |
173 | // C++ version of wxProcess derived class |
174 | ||
175 | class wxPyProcess : public wxProcess { | |
176 | public: | |
177 | wxPyProcess(wxEvtHandler *parent = NULL, int id = -1) | |
178 | : wxProcess(parent, id) | |
179 | {} | |
180 | ||
181 | DEC_PYCALLBACK_VOID_INTINT(OnTerminate); | |
182 | ||
183 | PYPRIVATE; | |
184 | }; | |
185 | ||
186 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
493f1553 | 187 | |
19a97bd6 | 188 | |
493f1553 RD |
189 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) |
190 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
191 | class wxJoystick : public wxObject { | |
192 | public: | |
193 | wxJoystick(int joystick = wxJOYSTICK1) { | |
4268f798 | 194 | wxPyBeginBlockThreads(); |
493f1553 | 195 | PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); |
4268f798 | 196 | wxPyEndBlockThreads(); |
493f1553 RD |
197 | } |
198 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
199 | int GetZPosition() { return -1; } | |
200 | int GetButtonState() { return -1; } | |
201 | int GetPOVPosition() { return -1; } | |
202 | int GetPOVCTSPosition() { return -1; } | |
203 | int GetRudderPosition() { return -1; } | |
204 | int GetUPosition() { return -1; } | |
205 | int GetVPosition() { return -1; } | |
206 | int GetMovementThreshold() { return -1; } | |
d56cebe7 | 207 | void SetMovementThreshold(int threshold) {} |
493f1553 RD |
208 | |
209 | bool IsOk(void) { return FALSE; } | |
210 | int GetNumberJoysticks() { return -1; } | |
211 | int GetManufacturerId() { return -1; } | |
212 | int GetProductId() { return -1; } | |
213 | wxString GetProductName() { return ""; } | |
214 | int GetXMin() { return -1; } | |
215 | int GetYMin() { return -1; } | |
216 | int GetZMin() { return -1; } | |
217 | int GetXMax() { return -1; } | |
218 | int GetYMax() { return -1; } | |
219 | int GetZMax() { return -1; } | |
220 | int GetNumberButtons() { return -1; } | |
221 | int GetNumberAxes() { return -1; } | |
222 | int GetMaxButtons() { return -1; } | |
223 | int GetMaxAxes() { return -1; } | |
224 | int GetPollingMin() { return -1; } | |
225 | int GetPollingMax() { return -1; } | |
226 | int GetRudderMin() { return -1; } | |
227 | int GetRudderMax() { return -1; } | |
228 | int GetUMin() { return -1; } | |
229 | int GetUMax() { return -1; } | |
230 | int GetVMin() { return -1; } | |
231 | int GetVMax() { return -1; } | |
232 | ||
233 | bool HasRudder() { return FALSE; } | |
234 | bool HasZ() { return FALSE; } | |
235 | bool HasU() { return FALSE; } | |
236 | bool HasV() { return FALSE; } | |
237 | bool HasPOV() { return FALSE; } | |
238 | bool HasPOV4Dir() { return FALSE; } | |
239 | bool HasPOVCTS() { return FALSE; } | |
240 | ||
241 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return FALSE; } | |
242 | bool ReleaseCapture() { return FALSE; } | |
243 | }; | |
244 | #endif | |
245 | ||
0adbc166 | 246 | #if !wxUSE_WAVE |
493f1553 RD |
247 | // A C++ stub class for wxWave for platforms that don't have it. |
248 | class wxWave : public wxObject | |
249 | { | |
250 | public: | |
251 | wxWave(const wxString& fileName, bool isResource = FALSE) { | |
4268f798 | 252 | wxPyBeginBlockThreads(); |
493f1553 | 253 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 254 | wxPyEndBlockThreads(); |
493f1553 RD |
255 | } |
256 | wxWave(int size, const wxByte* data) { | |
4268f798 | 257 | wxPyBeginBlockThreads(); |
493f1553 | 258 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 259 | wxPyEndBlockThreads(); |
493f1553 RD |
260 | } |
261 | ||
262 | ~wxWave() {} | |
263 | ||
264 | bool IsOk() const { return FALSE; } | |
265 | bool Play(bool async = TRUE, bool looped = FALSE) const { return FALSE; } | |
266 | }; | |
267 | ||
268 | #endif | |
269 | // Implementations of some alternate "constructors" | |
270 | wxWave* wxWaveData(const wxString& data) { | |
271 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
272 | } | |
b37c7e1d RD |
273 | |
274 | #if 0 | |
275 | extern wxMimeTypesManager * wxTheMimeTypesManager; | |
276 | ||
277 | #endif | |
7dbce44a | 278 | |
72797a7d RD |
279 | #include <wx/artprov.h> |
280 | ||
281 | DECLARE_DEF_STRING(ART_OTHER); | |
282 | ||
283 | // Python aware wxArtProvider | |
284 | class wxPyArtProvider : public wxArtProvider { | |
285 | public: | |
286 | ||
287 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
288 | const wxArtClient& client, | |
289 | const wxSize& size) { | |
290 | wxBitmap rval = wxNullBitmap; | |
291 | wxPyBeginBlockThreads(); | |
292 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
293 | PyObject* so = wxPyConstructObject((void*)&size, "wxSize", 0); | |
294 | PyObject* ro; | |
295 | wxBitmap* ptr; | |
a66212dc | 296 | PyObject* s1, *s2; |
72797a7d RD |
297 | s1 = wx2PyString(id); |
298 | s2 = wx2PyString(client); | |
a66212dc | 299 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); |
72797a7d | 300 | Py_DECREF(so); |
a66212dc RD |
301 | Py_DECREF(s1); |
302 | Py_DECREF(s2); | |
72797a7d RD |
303 | if (ro) { |
304 | if (!SWIG_GetPtrObj(ro, (void**)&ptr, "_wxBitmap_p")) | |
305 | rval = *ptr; | |
306 | Py_DECREF(ro); | |
307 | } | |
308 | } | |
309 | wxPyEndBlockThreads(); | |
310 | return rval; | |
311 | } | |
312 | ||
313 | PYPRIVATE; | |
314 | }; | |
315 | ||
7dbce44a | 316 | #include <wx/docview.h> |
06c0fba4 RD |
317 | #ifdef __cplusplus |
318 | extern "C" { | |
319 | #endif | |
320 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
321 | PyObject * _resultobj; | |
322 | wxString * _result; | |
137b5242 RD |
323 | wxString * _arg0 = (wxString *) &wxPyFileSelectorPromptStr; |
324 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
325 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
326 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
327 | wxString * _arg4 = (wxString *) &wxPyFileSelectorDefaultWildcardStr; | |
06c0fba4 RD |
328 | int _arg5 = (int ) 0; |
329 | wxWindow * _arg6 = (wxWindow *) NULL; | |
330 | int _arg7 = (int ) -1; | |
331 | int _arg8 = (int ) -1; | |
137b5242 RD |
332 | PyObject * _obj0 = 0; |
333 | PyObject * _obj1 = 0; | |
334 | PyObject * _obj2 = 0; | |
335 | PyObject * _obj3 = 0; | |
336 | PyObject * _obj4 = 0; | |
06c0fba4 RD |
337 | PyObject * _argo6 = 0; |
338 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
339 | ||
340 | self = self; | |
137b5242 | 341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOOOiOii:wxFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7,&_arg8)) |
06c0fba4 | 342 | return NULL; |
137b5242 RD |
343 | if (_obj0) |
344 | { | |
345 | _arg0 = wxString_in_helper(_obj0); | |
346 | if (_arg0 == NULL) | |
347 | return NULL; | |
348 | } | |
349 | if (_obj1) | |
350 | { | |
351 | _arg1 = wxString_in_helper(_obj1); | |
352 | if (_arg1 == NULL) | |
353 | return NULL; | |
354 | } | |
355 | if (_obj2) | |
356 | { | |
357 | _arg2 = wxString_in_helper(_obj2); | |
358 | if (_arg2 == NULL) | |
359 | return NULL; | |
360 | } | |
361 | if (_obj3) | |
362 | { | |
363 | _arg3 = wxString_in_helper(_obj3); | |
364 | if (_arg3 == NULL) | |
365 | return NULL; | |
366 | } | |
367 | if (_obj4) | |
368 | { | |
369 | _arg4 = wxString_in_helper(_obj4); | |
370 | if (_arg4 == NULL) | |
371 | return NULL; | |
372 | } | |
06c0fba4 RD |
373 | if (_argo6) { |
374 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
375 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
377 | return NULL; | |
378 | } | |
379 | } | |
380 | { | |
4268f798 | 381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 382 | _result = new wxString (wxFileSelector(*_arg0,*_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8)); |
06c0fba4 | 383 | |
4268f798 RD |
384 | wxPyEndAllowThreads(__tstate); |
385 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 386 | }{ |
c8bc7bb8 RD |
387 | #if wxUSE_UNICODE |
388 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
389 | #else | |
eec92d76 | 390 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 391 | #endif |
06c0fba4 | 392 | } |
137b5242 RD |
393 | { |
394 | if (_obj0) | |
395 | delete _arg0; | |
396 | } | |
397 | { | |
398 | if (_obj1) | |
399 | delete _arg1; | |
400 | } | |
401 | { | |
402 | if (_obj2) | |
403 | delete _arg2; | |
404 | } | |
405 | { | |
406 | if (_obj3) | |
407 | delete _arg3; | |
408 | } | |
409 | { | |
410 | if (_obj4) | |
411 | delete _arg4; | |
412 | } | |
06c0fba4 RD |
413 | { |
414 | delete _result; | |
415 | } | |
416 | return _resultobj; | |
417 | } | |
418 | ||
a541c325 RD |
419 | static PyObject *_wrap_wxLoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
420 | PyObject * _resultobj; | |
421 | wxString * _result; | |
137b5242 RD |
422 | wxString * _arg0; |
423 | wxString * _arg1; | |
424 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
a541c325 | 425 | wxWindow * _arg3 = (wxWindow *) NULL; |
137b5242 RD |
426 | PyObject * _obj0 = 0; |
427 | PyObject * _obj1 = 0; | |
428 | PyObject * _obj2 = 0; | |
a541c325 RD |
429 | PyObject * _argo3 = 0; |
430 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
431 | ||
432 | self = self; | |
137b5242 | 433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxLoadFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) |
a541c325 | 434 | return NULL; |
137b5242 RD |
435 | { |
436 | _arg0 = wxString_in_helper(_obj0); | |
437 | if (_arg0 == NULL) | |
438 | return NULL; | |
439 | } | |
440 | { | |
441 | _arg1 = wxString_in_helper(_obj1); | |
442 | if (_arg1 == NULL) | |
443 | return NULL; | |
444 | } | |
445 | if (_obj2) | |
446 | { | |
447 | _arg2 = wxString_in_helper(_obj2); | |
448 | if (_arg2 == NULL) | |
449 | return NULL; | |
450 | } | |
a541c325 RD |
451 | if (_argo3) { |
452 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
453 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxLoadFileSelector. Expected _wxWindow_p."); | |
455 | return NULL; | |
456 | } | |
457 | } | |
458 | { | |
459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 460 | _result = new wxString (wxLoadFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); |
a541c325 RD |
461 | |
462 | wxPyEndAllowThreads(__tstate); | |
463 | if (PyErr_Occurred()) return NULL; | |
464 | }{ | |
465 | #if wxUSE_UNICODE | |
466 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
467 | #else | |
468 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
469 | #endif | |
470 | } | |
137b5242 RD |
471 | { |
472 | if (_obj0) | |
473 | delete _arg0; | |
474 | } | |
475 | { | |
476 | if (_obj1) | |
477 | delete _arg1; | |
478 | } | |
479 | { | |
480 | if (_obj2) | |
481 | delete _arg2; | |
482 | } | |
a541c325 RD |
483 | { |
484 | delete _result; | |
485 | } | |
486 | return _resultobj; | |
487 | } | |
488 | ||
489 | static PyObject *_wrap_wxSaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
490 | PyObject * _resultobj; | |
491 | wxString * _result; | |
137b5242 RD |
492 | wxString * _arg0; |
493 | wxString * _arg1; | |
494 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
a541c325 | 495 | wxWindow * _arg3 = (wxWindow *) NULL; |
137b5242 RD |
496 | PyObject * _obj0 = 0; |
497 | PyObject * _obj1 = 0; | |
498 | PyObject * _obj2 = 0; | |
a541c325 RD |
499 | PyObject * _argo3 = 0; |
500 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
501 | ||
502 | self = self; | |
137b5242 RD |
503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxSaveFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) |
504 | return NULL; | |
505 | { | |
506 | _arg0 = wxString_in_helper(_obj0); | |
507 | if (_arg0 == NULL) | |
a541c325 | 508 | return NULL; |
137b5242 RD |
509 | } |
510 | { | |
511 | _arg1 = wxString_in_helper(_obj1); | |
512 | if (_arg1 == NULL) | |
513 | return NULL; | |
514 | } | |
515 | if (_obj2) | |
516 | { | |
517 | _arg2 = wxString_in_helper(_obj2); | |
518 | if (_arg2 == NULL) | |
519 | return NULL; | |
520 | } | |
a541c325 RD |
521 | if (_argo3) { |
522 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
523 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxSaveFileSelector. Expected _wxWindow_p."); | |
525 | return NULL; | |
526 | } | |
527 | } | |
528 | { | |
529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 530 | _result = new wxString (wxSaveFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); |
a541c325 RD |
531 | |
532 | wxPyEndAllowThreads(__tstate); | |
533 | if (PyErr_Occurred()) return NULL; | |
534 | }{ | |
535 | #if wxUSE_UNICODE | |
536 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
537 | #else | |
538 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
539 | #endif | |
540 | } | |
137b5242 RD |
541 | { |
542 | if (_obj0) | |
543 | delete _arg0; | |
544 | } | |
545 | { | |
546 | if (_obj1) | |
547 | delete _arg1; | |
548 | } | |
549 | { | |
550 | if (_obj2) | |
551 | delete _arg2; | |
552 | } | |
a541c325 RD |
553 | { |
554 | delete _result; | |
555 | } | |
556 | return _resultobj; | |
557 | } | |
558 | ||
7cdaed0b RD |
559 | static PyObject *_wrap_wxDirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
560 | PyObject * _resultobj; | |
561 | wxString * _result; | |
562 | wxString * _arg0 = (wxString *) &wxPyDirSelectorPromptStr; | |
563 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
daa3eac9 | 564 | long _arg2 = (long ) wxDD_DEFAULT_STYLE; |
7cdaed0b RD |
565 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
566 | wxWindow * _arg4 = (wxWindow *) NULL; | |
567 | PyObject * _obj0 = 0; | |
568 | PyObject * _obj1 = 0; | |
569 | wxPoint temp; | |
570 | PyObject * _obj3 = 0; | |
571 | PyObject * _argo4 = 0; | |
572 | char *_kwnames[] = { "message","defaultPath","style","pos","parent", NULL }; | |
573 | ||
574 | self = self; | |
575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOlOO:wxDirSelector",_kwnames,&_obj0,&_obj1,&_arg2,&_obj3,&_argo4)) | |
576 | return NULL; | |
577 | if (_obj0) | |
578 | { | |
579 | _arg0 = wxString_in_helper(_obj0); | |
580 | if (_arg0 == NULL) | |
581 | return NULL; | |
582 | } | |
583 | if (_obj1) | |
584 | { | |
585 | _arg1 = wxString_in_helper(_obj1); | |
586 | if (_arg1 == NULL) | |
587 | return NULL; | |
588 | } | |
589 | if (_obj3) | |
590 | { | |
591 | _arg3 = &temp; | |
592 | if (! wxPoint_helper(_obj3, &_arg3)) | |
593 | return NULL; | |
594 | } | |
595 | if (_argo4) { | |
596 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
597 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxDirSelector. Expected _wxWindow_p."); | |
599 | return NULL; | |
600 | } | |
601 | } | |
602 | { | |
603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
604 | _result = new wxString (wxDirSelector(*_arg0,*_arg1,_arg2,*_arg3,_arg4)); | |
605 | ||
606 | wxPyEndAllowThreads(__tstate); | |
607 | if (PyErr_Occurred()) return NULL; | |
608 | }{ | |
609 | #if wxUSE_UNICODE | |
610 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
611 | #else | |
612 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
613 | #endif | |
614 | } | |
615 | { | |
616 | if (_obj0) | |
617 | delete _arg0; | |
618 | } | |
619 | { | |
620 | if (_obj1) | |
621 | delete _arg1; | |
622 | } | |
623 | { | |
624 | delete _result; | |
625 | } | |
626 | return _resultobj; | |
627 | } | |
628 | ||
06c0fba4 RD |
629 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
630 | PyObject * _resultobj; | |
631 | wxString * _result; | |
632 | wxString * _arg0; | |
137b5242 RD |
633 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
634 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
06c0fba4 RD |
635 | wxWindow * _arg3 = (wxWindow *) NULL; |
636 | int _arg4 = (int ) -1; | |
637 | int _arg5 = (int ) -1; | |
638 | bool _arg6 = (bool ) TRUE; | |
639 | PyObject * _obj0 = 0; | |
640 | PyObject * _obj1 = 0; | |
641 | PyObject * _obj2 = 0; | |
642 | PyObject * _argo3 = 0; | |
643 | int tempbool6 = (int) TRUE; | |
644 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
645 | ||
646 | self = self; | |
647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
648 | return NULL; | |
649 | { | |
c8bc7bb8 RD |
650 | _arg0 = wxString_in_helper(_obj0); |
651 | if (_arg0 == NULL) | |
185d7c3e | 652 | return NULL; |
06c0fba4 RD |
653 | } |
654 | if (_obj1) | |
655 | { | |
c8bc7bb8 RD |
656 | _arg1 = wxString_in_helper(_obj1); |
657 | if (_arg1 == NULL) | |
185d7c3e | 658 | return NULL; |
06c0fba4 RD |
659 | } |
660 | if (_obj2) | |
661 | { | |
c8bc7bb8 RD |
662 | _arg2 = wxString_in_helper(_obj2); |
663 | if (_arg2 == NULL) | |
06c0fba4 | 664 | return NULL; |
06c0fba4 RD |
665 | } |
666 | if (_argo3) { | |
667 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
668 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
670 | return NULL; | |
671 | } | |
672 | } | |
673 | _arg6 = (bool ) tempbool6; | |
674 | { | |
4268f798 | 675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 676 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); |
06c0fba4 | 677 | |
4268f798 RD |
678 | wxPyEndAllowThreads(__tstate); |
679 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 680 | }{ |
c8bc7bb8 RD |
681 | #if wxUSE_UNICODE |
682 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
683 | #else | |
eec92d76 | 684 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 685 | #endif |
06c0fba4 RD |
686 | } |
687 | { | |
688 | if (_obj0) | |
689 | delete _arg0; | |
690 | } | |
691 | { | |
692 | if (_obj1) | |
693 | delete _arg1; | |
694 | } | |
695 | { | |
696 | if (_obj2) | |
697 | delete _arg2; | |
698 | } | |
699 | { | |
700 | delete _result; | |
701 | } | |
702 | return _resultobj; | |
703 | } | |
704 | ||
1b62f00d RD |
705 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
706 | PyObject * _resultobj; | |
707 | wxString * _result; | |
708 | wxString * _arg0; | |
137b5242 RD |
709 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
710 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
1b62f00d RD |
711 | wxWindow * _arg3 = (wxWindow *) NULL; |
712 | PyObject * _obj0 = 0; | |
713 | PyObject * _obj1 = 0; | |
714 | PyObject * _obj2 = 0; | |
715 | PyObject * _argo3 = 0; | |
716 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
717 | ||
718 | self = self; | |
719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
720 | return NULL; | |
721 | { | |
c8bc7bb8 RD |
722 | _arg0 = wxString_in_helper(_obj0); |
723 | if (_arg0 == NULL) | |
1b62f00d | 724 | return NULL; |
1b62f00d RD |
725 | } |
726 | if (_obj1) | |
727 | { | |
c8bc7bb8 RD |
728 | _arg1 = wxString_in_helper(_obj1); |
729 | if (_arg1 == NULL) | |
1b62f00d | 730 | return NULL; |
1b62f00d RD |
731 | } |
732 | if (_obj2) | |
733 | { | |
c8bc7bb8 RD |
734 | _arg2 = wxString_in_helper(_obj2); |
735 | if (_arg2 == NULL) | |
1b62f00d | 736 | return NULL; |
1b62f00d RD |
737 | } |
738 | if (_argo3) { | |
739 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
740 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
742 | return NULL; | |
743 | } | |
744 | } | |
745 | { | |
4268f798 | 746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 747 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); |
1b62f00d | 748 | |
4268f798 RD |
749 | wxPyEndAllowThreads(__tstate); |
750 | if (PyErr_Occurred()) return NULL; | |
1b62f00d | 751 | }{ |
c8bc7bb8 RD |
752 | #if wxUSE_UNICODE |
753 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
754 | #else | |
1b62f00d | 755 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 756 | #endif |
1b62f00d RD |
757 | } |
758 | { | |
759 | if (_obj0) | |
760 | delete _arg0; | |
761 | } | |
762 | { | |
763 | if (_obj1) | |
764 | delete _arg1; | |
765 | } | |
766 | { | |
767 | if (_obj2) | |
768 | delete _arg2; | |
769 | } | |
770 | { | |
771 | delete _result; | |
772 | } | |
773 | return _resultobj; | |
774 | } | |
775 | ||
06c0fba4 RD |
776 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
777 | PyObject * _resultobj; | |
778 | wxString * _result; | |
779 | wxString * _arg0; | |
780 | wxString * _arg1; | |
781 | int _arg2; | |
782 | wxString * _arg3; | |
783 | wxWindow * _arg4 = (wxWindow *) NULL; | |
784 | int _arg5 = (int ) -1; | |
785 | int _arg6 = (int ) -1; | |
786 | bool _arg7 = (bool ) TRUE; | |
787 | int _arg8 = (int ) 150; | |
788 | int _arg9 = (int ) 200; | |
789 | PyObject * _obj0 = 0; | |
790 | PyObject * _obj1 = 0; | |
791 | PyObject * _obj3 = 0; | |
792 | PyObject * _argo4 = 0; | |
793 | int tempbool7 = (int) TRUE; | |
eec92d76 | 794 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
795 | |
796 | self = self; | |
797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
798 | return NULL; | |
799 | { | |
c8bc7bb8 RD |
800 | _arg0 = wxString_in_helper(_obj0); |
801 | if (_arg0 == NULL) | |
185d7c3e | 802 | return NULL; |
06c0fba4 RD |
803 | } |
804 | { | |
c8bc7bb8 RD |
805 | _arg1 = wxString_in_helper(_obj1); |
806 | if (_arg1 == NULL) | |
185d7c3e | 807 | return NULL; |
06c0fba4 RD |
808 | } |
809 | if (_obj3) | |
810 | { | |
811 | _arg3 = wxString_LIST_helper(_obj3); | |
812 | if (_arg3 == NULL) { | |
813 | return NULL; | |
814 | } | |
815 | } | |
816 | if (_argo4) { | |
817 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
818 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
820 | return NULL; | |
821 | } | |
822 | } | |
823 | _arg7 = (bool ) tempbool7; | |
824 | { | |
825 | if (_obj3) { | |
826 | _arg2 = PyList_Size(_obj3); | |
827 | } | |
828 | else { | |
829 | _arg2 = 0; | |
830 | } | |
831 | } | |
832 | { | |
4268f798 | 833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 834 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); |
06c0fba4 | 835 | |
4268f798 RD |
836 | wxPyEndAllowThreads(__tstate); |
837 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 838 | }{ |
c8bc7bb8 RD |
839 | #if wxUSE_UNICODE |
840 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
841 | #else | |
eec92d76 | 842 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 843 | #endif |
06c0fba4 RD |
844 | } |
845 | { | |
846 | if (_obj0) | |
847 | delete _arg0; | |
848 | } | |
849 | { | |
850 | if (_obj1) | |
851 | delete _arg1; | |
852 | } | |
853 | { | |
854 | delete [] _arg3; | |
855 | } | |
856 | { | |
857 | delete _result; | |
858 | } | |
859 | return _resultobj; | |
860 | } | |
861 | ||
862 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
863 | PyObject * _resultobj; | |
864 | int _result; | |
865 | wxString * _arg0; | |
866 | wxString * _arg1; | |
867 | int _arg2; | |
868 | wxString * _arg3; | |
869 | wxWindow * _arg4 = (wxWindow *) NULL; | |
870 | int _arg5 = (int ) -1; | |
871 | int _arg6 = (int ) -1; | |
872 | bool _arg7 = (bool ) TRUE; | |
873 | int _arg8 = (int ) 150; | |
874 | int _arg9 = (int ) 200; | |
875 | PyObject * _obj0 = 0; | |
876 | PyObject * _obj1 = 0; | |
877 | PyObject * _obj3 = 0; | |
878 | PyObject * _argo4 = 0; | |
879 | int tempbool7 = (int) TRUE; | |
eec92d76 | 880 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
881 | |
882 | self = self; | |
883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
884 | return NULL; | |
885 | { | |
c8bc7bb8 RD |
886 | _arg0 = wxString_in_helper(_obj0); |
887 | if (_arg0 == NULL) | |
185d7c3e | 888 | return NULL; |
06c0fba4 RD |
889 | } |
890 | { | |
c8bc7bb8 RD |
891 | _arg1 = wxString_in_helper(_obj1); |
892 | if (_arg1 == NULL) | |
185d7c3e | 893 | return NULL; |
06c0fba4 RD |
894 | } |
895 | if (_obj3) | |
896 | { | |
897 | _arg3 = wxString_LIST_helper(_obj3); | |
898 | if (_arg3 == NULL) { | |
899 | return NULL; | |
900 | } | |
901 | } | |
902 | if (_argo4) { | |
903 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
904 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
906 | return NULL; | |
907 | } | |
908 | } | |
909 | _arg7 = (bool ) tempbool7; | |
910 | { | |
911 | if (_obj3) { | |
912 | _arg2 = PyList_Size(_obj3); | |
913 | } | |
914 | else { | |
915 | _arg2 = 0; | |
916 | } | |
917 | } | |
918 | { | |
4268f798 | 919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 920 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
06c0fba4 | 921 | |
4268f798 RD |
922 | wxPyEndAllowThreads(__tstate); |
923 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
924 | } _resultobj = Py_BuildValue("i",_result); |
925 | { | |
926 | if (_obj0) | |
927 | delete _arg0; | |
928 | } | |
929 | { | |
930 | if (_obj1) | |
931 | delete _arg1; | |
932 | } | |
933 | { | |
934 | delete [] _arg3; | |
935 | } | |
936 | return _resultobj; | |
937 | } | |
938 | ||
939 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
940 | PyObject * _resultobj; | |
941 | int _result; | |
942 | wxString * _arg0; | |
137b5242 | 943 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
06c0fba4 RD |
944 | int _arg2 = (int ) wxOK|wxCENTRE; |
945 | wxWindow * _arg3 = (wxWindow *) NULL; | |
946 | int _arg4 = (int ) -1; | |
947 | int _arg5 = (int ) -1; | |
948 | PyObject * _obj0 = 0; | |
949 | PyObject * _obj1 = 0; | |
950 | PyObject * _argo3 = 0; | |
951 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
952 | ||
953 | self = self; | |
954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
955 | return NULL; | |
956 | { | |
c8bc7bb8 RD |
957 | _arg0 = wxString_in_helper(_obj0); |
958 | if (_arg0 == NULL) | |
185d7c3e | 959 | return NULL; |
06c0fba4 RD |
960 | } |
961 | if (_obj1) | |
962 | { | |
c8bc7bb8 RD |
963 | _arg1 = wxString_in_helper(_obj1); |
964 | if (_arg1 == NULL) | |
185d7c3e | 965 | return NULL; |
06c0fba4 RD |
966 | } |
967 | if (_argo3) { | |
968 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
969 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
971 | return NULL; | |
972 | } | |
973 | } | |
974 | { | |
4268f798 | 975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 976 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); |
06c0fba4 | 977 | |
4268f798 RD |
978 | wxPyEndAllowThreads(__tstate); |
979 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
980 | } _resultobj = Py_BuildValue("i",_result); |
981 | { | |
982 | if (_obj0) | |
983 | delete _arg0; | |
984 | } | |
985 | { | |
986 | if (_obj1) | |
987 | delete _arg1; | |
988 | } | |
989 | return _resultobj; | |
990 | } | |
991 | ||
992 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
993 | PyObject * _resultobj; | |
994 | long _result; | |
995 | wxString * _arg0; | |
996 | wxString * _arg1; | |
997 | wxString * _arg2; | |
998 | long _arg3; | |
999 | long _arg4 = (long ) 0; | |
1000 | long _arg5 = (long ) 100; | |
1001 | wxWindow * _arg6 = (wxWindow *) NULL; | |
e508a2b6 | 1002 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; |
06c0fba4 RD |
1003 | PyObject * _obj0 = 0; |
1004 | PyObject * _obj1 = 0; | |
1005 | PyObject * _obj2 = 0; | |
1006 | PyObject * _argo6 = 0; | |
1007 | wxPoint temp; | |
1008 | PyObject * _obj7 = 0; | |
1009 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
1010 | ||
1011 | self = self; | |
1012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
1013 | return NULL; | |
1014 | { | |
c8bc7bb8 RD |
1015 | _arg0 = wxString_in_helper(_obj0); |
1016 | if (_arg0 == NULL) | |
185d7c3e | 1017 | return NULL; |
06c0fba4 RD |
1018 | } |
1019 | { | |
c8bc7bb8 RD |
1020 | _arg1 = wxString_in_helper(_obj1); |
1021 | if (_arg1 == NULL) | |
06c0fba4 | 1022 | return NULL; |
06c0fba4 RD |
1023 | } |
1024 | { | |
c8bc7bb8 RD |
1025 | _arg2 = wxString_in_helper(_obj2); |
1026 | if (_arg2 == NULL) | |
185d7c3e | 1027 | return NULL; |
06c0fba4 RD |
1028 | } |
1029 | if (_argo6) { | |
1030 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1031 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
1032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
1033 | return NULL; | |
1034 | } | |
1035 | } | |
1036 | if (_obj7) | |
1037 | { | |
1038 | _arg7 = &temp; | |
1039 | if (! wxPoint_helper(_obj7, &_arg7)) | |
1040 | return NULL; | |
1041 | } | |
1042 | { | |
4268f798 | 1043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1044 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); |
06c0fba4 | 1045 | |
4268f798 RD |
1046 | wxPyEndAllowThreads(__tstate); |
1047 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1048 | } _resultobj = Py_BuildValue("l",_result); |
1049 | { | |
1050 | if (_obj0) | |
1051 | delete _arg0; | |
1052 | } | |
1053 | { | |
1054 | if (_obj1) | |
1055 | delete _arg1; | |
1056 | } | |
1057 | { | |
1058 | if (_obj2) | |
1059 | delete _arg2; | |
1060 | } | |
1061 | return _resultobj; | |
1062 | } | |
1063 | ||
1064 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1065 | PyObject * _resultobj; | |
1066 | bool _result; | |
1067 | char *_kwnames[] = { NULL }; | |
1068 | ||
1069 | self = self; | |
1070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
1071 | return NULL; | |
1072 | { | |
4268f798 | 1073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1074 | _result = (bool )wxColourDisplay(); |
06c0fba4 | 1075 | |
4268f798 RD |
1076 | wxPyEndAllowThreads(__tstate); |
1077 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1078 | } _resultobj = Py_BuildValue("i",_result); |
1079 | return _resultobj; | |
1080 | } | |
1081 | ||
1082 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1083 | PyObject * _resultobj; | |
1084 | int _result; | |
1085 | char *_kwnames[] = { NULL }; | |
1086 | ||
1087 | self = self; | |
1088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
1089 | return NULL; | |
1090 | { | |
4268f798 | 1091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1092 | _result = (int )wxDisplayDepth(); |
06c0fba4 | 1093 | |
4268f798 RD |
1094 | wxPyEndAllowThreads(__tstate); |
1095 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1096 | } _resultobj = Py_BuildValue("i",_result); |
1097 | return _resultobj; | |
1098 | } | |
f0261a72 | 1099 | |
1e7ecb7b RD |
1100 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { |
1101 | PyObject * _resultobj; | |
1102 | int _result; | |
1103 | char *_kwnames[] = { NULL }; | |
1104 | ||
1105 | self = self; | |
1106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
1107 | return NULL; | |
1108 | { | |
4268f798 | 1109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1110 | _result = (int )wxGetDisplayDepth(); |
1e7ecb7b | 1111 | |
4268f798 RD |
1112 | wxPyEndAllowThreads(__tstate); |
1113 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1114 | } _resultobj = Py_BuildValue("i",_result); |
1115 | return _resultobj; | |
1116 | } | |
1117 | ||
1118 | static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1119 | PyObject * _resultobj; | |
1120 | int * _arg0; | |
1121 | int temp; | |
1122 | int * _arg1; | |
1123 | int temp0; | |
1124 | char *_kwnames[] = { NULL }; | |
1125 | ||
1126 | self = self; | |
1127 | { | |
1128 | _arg0 = &temp; | |
1129 | } | |
1130 | { | |
1131 | _arg1 = &temp0; | |
1132 | } | |
1133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames)) | |
1134 | return NULL; | |
1135 | { | |
4268f798 | 1136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1137 | wxDisplaySize(_arg0,_arg1); |
1e7ecb7b | 1138 | |
4268f798 RD |
1139 | wxPyEndAllowThreads(__tstate); |
1140 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1141 | } Py_INCREF(Py_None); |
1142 | _resultobj = Py_None; | |
1143 | { | |
1144 | PyObject *o; | |
1145 | o = PyInt_FromLong((long) (*_arg0)); | |
1146 | _resultobj = t_output_helper(_resultobj, o); | |
1147 | } | |
1148 | { | |
1149 | PyObject *o; | |
1150 | o = PyInt_FromLong((long) (*_arg1)); | |
1151 | _resultobj = t_output_helper(_resultobj, o); | |
1152 | } | |
1153 | return _resultobj; | |
1154 | } | |
1155 | ||
1156 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1157 | PyObject * _resultobj; | |
1158 | wxSize * _result; | |
1159 | char *_kwnames[] = { NULL }; | |
1160 | char _ptemp[128]; | |
1161 | ||
1162 | self = self; | |
1163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
1164 | return NULL; | |
1165 | { | |
4268f798 | 1166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1167 | _result = new wxSize (wxGetDisplaySize()); |
1e7ecb7b | 1168 | |
4268f798 RD |
1169 | wxPyEndAllowThreads(__tstate); |
1170 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1171 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1172 | _resultobj = Py_BuildValue("s",_ptemp); | |
1173 | return _resultobj; | |
1174 | } | |
1175 | ||
1176 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1177 | PyObject * _resultobj; | |
1178 | int * _arg0; | |
1179 | int temp; | |
1180 | int * _arg1; | |
1181 | int temp0; | |
1182 | char *_kwnames[] = { NULL }; | |
1183 | ||
1184 | self = self; | |
1185 | { | |
1186 | _arg0 = &temp; | |
1187 | } | |
1188 | { | |
1189 | _arg1 = &temp0; | |
1190 | } | |
1191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
1192 | return NULL; | |
1193 | { | |
4268f798 | 1194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1195 | wxDisplaySizeMM(_arg0,_arg1); |
1e7ecb7b | 1196 | |
4268f798 RD |
1197 | wxPyEndAllowThreads(__tstate); |
1198 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1199 | } Py_INCREF(Py_None); |
1200 | _resultobj = Py_None; | |
1201 | { | |
1202 | PyObject *o; | |
1203 | o = PyInt_FromLong((long) (*_arg0)); | |
1204 | _resultobj = t_output_helper(_resultobj, o); | |
1205 | } | |
1206 | { | |
1207 | PyObject *o; | |
1208 | o = PyInt_FromLong((long) (*_arg1)); | |
1209 | _resultobj = t_output_helper(_resultobj, o); | |
1210 | } | |
1211 | return _resultobj; | |
1212 | } | |
1213 | ||
1214 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1215 | PyObject * _resultobj; | |
1216 | wxSize * _result; | |
1217 | char *_kwnames[] = { NULL }; | |
1218 | char _ptemp[128]; | |
1219 | ||
1220 | self = self; | |
1221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1222 | return NULL; | |
1223 | { | |
4268f798 | 1224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1225 | _result = new wxSize (wxGetDisplaySizeMM()); |
1e7ecb7b | 1226 | |
4268f798 RD |
1227 | wxPyEndAllowThreads(__tstate); |
1228 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1229 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1230 | _resultobj = Py_BuildValue("s",_ptemp); | |
1231 | return _resultobj; | |
1232 | } | |
1233 | ||
91c41b30 RD |
1234 | static PyObject *_wrap_wxClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
1235 | PyObject * _resultobj; | |
1236 | int * _arg0; | |
1237 | int temp; | |
1238 | int * _arg1; | |
1239 | int temp0; | |
1240 | int * _arg2; | |
1241 | int temp1; | |
1242 | int * _arg3; | |
1243 | int temp2; | |
1244 | char *_kwnames[] = { NULL }; | |
1245 | ||
1246 | self = self; | |
1247 | { | |
1248 | _arg0 = &temp; | |
1249 | } | |
1250 | { | |
1251 | _arg1 = &temp0; | |
1252 | } | |
1253 | { | |
1254 | _arg2 = &temp1; | |
1255 | } | |
1256 | { | |
1257 | _arg3 = &temp2; | |
1258 | } | |
1259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxClientDisplayRect",_kwnames)) | |
1260 | return NULL; | |
1261 | { | |
4268f798 | 1262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1263 | wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3); |
91c41b30 | 1264 | |
4268f798 RD |
1265 | wxPyEndAllowThreads(__tstate); |
1266 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1267 | } Py_INCREF(Py_None); |
1268 | _resultobj = Py_None; | |
1269 | { | |
1270 | PyObject *o; | |
1271 | o = PyInt_FromLong((long) (*_arg0)); | |
1272 | _resultobj = t_output_helper(_resultobj, o); | |
1273 | } | |
1274 | { | |
1275 | PyObject *o; | |
1276 | o = PyInt_FromLong((long) (*_arg1)); | |
1277 | _resultobj = t_output_helper(_resultobj, o); | |
1278 | } | |
1279 | { | |
1280 | PyObject *o; | |
1281 | o = PyInt_FromLong((long) (*_arg2)); | |
1282 | _resultobj = t_output_helper(_resultobj, o); | |
1283 | } | |
1284 | { | |
1285 | PyObject *o; | |
1286 | o = PyInt_FromLong((long) (*_arg3)); | |
1287 | _resultobj = t_output_helper(_resultobj, o); | |
1288 | } | |
1289 | return _resultobj; | |
1290 | } | |
1291 | ||
1292 | static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1293 | PyObject * _resultobj; | |
1294 | wxRect * _result; | |
1295 | char *_kwnames[] = { NULL }; | |
1296 | char _ptemp[128]; | |
1297 | ||
1298 | self = self; | |
1299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames)) | |
1300 | return NULL; | |
1301 | { | |
4268f798 | 1302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1303 | _result = new wxRect (wxGetClientDisplayRect()); |
91c41b30 | 1304 | |
4268f798 RD |
1305 | wxPyEndAllowThreads(__tstate); |
1306 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1307 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
1308 | _resultobj = Py_BuildValue("s",_ptemp); | |
1309 | return _resultobj; | |
1310 | } | |
1311 | ||
06c0fba4 RD |
1312 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1313 | PyObject * _resultobj; | |
1314 | wxCursor * _arg0; | |
1315 | PyObject * _argo0 = 0; | |
1316 | char *_kwnames[] = { "cursor", NULL }; | |
f0261a72 | 1317 | |
06c0fba4 RD |
1318 | self = self; |
1319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1320 | return NULL; | |
1321 | if (_argo0) { | |
1322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
1325 | return NULL; | |
1326 | } | |
f0261a72 | 1327 | } |
06c0fba4 | 1328 | { |
4268f798 | 1329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1330 | wxSetCursor(*_arg0); |
06c0fba4 | 1331 | |
4268f798 RD |
1332 | wxPyEndAllowThreads(__tstate); |
1333 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1334 | } Py_INCREF(Py_None); |
1335 | _resultobj = Py_None; | |
1336 | return _resultobj; | |
1337 | } | |
1338 | ||
06c0fba4 RD |
1339 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1340 | PyObject * _resultobj; | |
1341 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1342 | PyObject * _argo0 = 0; | |
1343 | char *_kwnames[] = { "cursor", NULL }; | |
1344 | ||
1345 | self = self; | |
1346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1347 | return NULL; | |
1348 | if (_argo0) { | |
1349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1352 | return NULL; | |
1353 | } | |
1354 | } | |
1355 | { | |
4268f798 | 1356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1357 | wxBeginBusyCursor(_arg0); |
06c0fba4 | 1358 | |
4268f798 RD |
1359 | wxPyEndAllowThreads(__tstate); |
1360 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1361 | } Py_INCREF(Py_None); |
1362 | _resultobj = Py_None; | |
1363 | return _resultobj; | |
1364 | } | |
1365 | ||
1366 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1367 | PyObject * _resultobj; | |
1368 | wxWindow * _result; | |
1369 | char *_kwnames[] = { NULL }; | |
06c0fba4 RD |
1370 | |
1371 | self = self; | |
1372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1373 | return NULL; | |
1374 | { | |
4268f798 | 1375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1376 | _result = (wxWindow *)wxGetActiveWindow(); |
06c0fba4 | 1377 | |
4268f798 RD |
1378 | wxPyEndAllowThreads(__tstate); |
1379 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1380 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1381 | return _resultobj; |
1382 | } | |
1383 | ||
493f1553 RD |
1384 | static PyObject *_wrap_wxGenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
1385 | PyObject * _resultobj; | |
1386 | wxWindow * _result; | |
1387 | wxPoint * _arg0; | |
1388 | wxPoint temp; | |
1389 | PyObject * _obj0 = 0; | |
1390 | char *_kwnames[] = { "pt", NULL }; | |
1391 | ||
1392 | self = self; | |
1393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericFindWindowAtPoint",_kwnames,&_obj0)) | |
1394 | return NULL; | |
1395 | { | |
1396 | _arg0 = &temp; | |
1397 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1398 | return NULL; | |
1399 | } | |
1400 | { | |
4268f798 | 1401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1402 | _result = (wxWindow *)wxGenericFindWindowAtPoint(*_arg0); |
493f1553 | 1403 | |
4268f798 RD |
1404 | wxPyEndAllowThreads(__tstate); |
1405 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1406 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1407 | return _resultobj; | |
1408 | } | |
1409 | ||
1410 | static PyObject *_wrap_wxFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1411 | PyObject * _resultobj; | |
1412 | wxWindow * _result; | |
1413 | wxPoint * _arg0; | |
1414 | wxPoint temp; | |
1415 | PyObject * _obj0 = 0; | |
1416 | char *_kwnames[] = { "pt", NULL }; | |
1417 | ||
1418 | self = self; | |
1419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindWindowAtPoint",_kwnames,&_obj0)) | |
1420 | return NULL; | |
1421 | { | |
1422 | _arg0 = &temp; | |
1423 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1424 | return NULL; | |
1425 | } | |
1426 | { | |
4268f798 | 1427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1428 | _result = (wxWindow *)wxFindWindowAtPoint(*_arg0); |
493f1553 | 1429 | |
4268f798 RD |
1430 | wxPyEndAllowThreads(__tstate); |
1431 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1432 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1433 | return _resultobj; | |
1434 | } | |
1435 | ||
1436 | static PyObject *_wrap_wxCheckForInterrupt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1437 | PyObject * _resultobj; | |
1438 | bool _result; | |
1439 | wxWindow * _arg0; | |
1440 | PyObject * _argo0 = 0; | |
1441 | char *_kwnames[] = { "wnd", NULL }; | |
1442 | ||
1443 | self = self; | |
1444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckForInterrupt",_kwnames,&_argo0)) | |
1445 | return NULL; | |
1446 | if (_argo0) { | |
1447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckForInterrupt. Expected _wxWindow_p."); | |
1450 | return NULL; | |
1451 | } | |
1452 | } | |
1453 | { | |
4268f798 | 1454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1455 | _result = (bool )wxCheckForInterrupt(_arg0); |
493f1553 | 1456 | |
4268f798 RD |
1457 | wxPyEndAllowThreads(__tstate); |
1458 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1459 | } _resultobj = Py_BuildValue("i",_result); |
1460 | return _resultobj; | |
1461 | } | |
1462 | ||
25832b3f RD |
1463 | static PyObject *_wrap_wxFlushEvents(PyObject *self, PyObject *args, PyObject *kwargs) { |
1464 | PyObject * _resultobj; | |
1465 | char *_kwnames[] = { NULL }; | |
1466 | ||
1467 | self = self; | |
1468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFlushEvents",_kwnames)) | |
1469 | return NULL; | |
1470 | { | |
4268f798 | 1471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1472 | wxFlushEvents(); |
25832b3f | 1473 | |
4268f798 RD |
1474 | wxPyEndAllowThreads(__tstate); |
1475 | if (PyErr_Occurred()) return NULL; | |
25832b3f RD |
1476 | } Py_INCREF(Py_None); |
1477 | _resultobj = Py_None; | |
1478 | return _resultobj; | |
1479 | } | |
1480 | ||
2a74d141 RD |
1481 | static PyObject *_wrap_wxGetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1482 | PyObject * _resultobj; | |
1483 | wxWindow * _result; | |
1484 | wxWindow * _arg0; | |
1485 | PyObject * _argo0 = 0; | |
1486 | char *_kwnames[] = { "win", NULL }; | |
1487 | ||
1488 | self = self; | |
1489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGetTopLevelParent",_kwnames,&_argo0)) | |
1490 | return NULL; | |
1491 | if (_argo0) { | |
1492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGetTopLevelParent. Expected _wxWindow_p."); | |
1495 | return NULL; | |
1496 | } | |
1497 | } | |
1498 | { | |
1499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1500 | _result = (wxWindow *)wxGetTopLevelParent(_arg0); | |
1501 | ||
1502 | wxPyEndAllowThreads(__tstate); | |
1503 | if (PyErr_Occurred()) return NULL; | |
1504 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1505 | return _resultobj; | |
1506 | } | |
1507 | ||
06c0fba4 RD |
1508 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { |
1509 | PyObject * _resultobj; | |
1510 | bool _result; | |
1511 | char * _arg0; | |
1512 | int _arg1; | |
1513 | char *_kwnames[] = { "name","value", NULL }; | |
1514 | ||
1515 | self = self; | |
1516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
1517 | return NULL; | |
1518 | { | |
4268f798 | 1519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1520 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); |
06c0fba4 | 1521 | |
4268f798 RD |
1522 | wxPyEndAllowThreads(__tstate); |
1523 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1524 | } _resultobj = Py_BuildValue("i",_result); |
1525 | return _resultobj; | |
1526 | } | |
1527 | ||
1528 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1529 | PyObject * _resultobj; | |
1530 | char *_kwnames[] = { NULL }; | |
1531 | ||
1532 | self = self; | |
1533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
1534 | return NULL; | |
1535 | { | |
4268f798 | 1536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1537 | wxResourceClear(); |
06c0fba4 | 1538 | |
4268f798 RD |
1539 | wxPyEndAllowThreads(__tstate); |
1540 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1541 | } Py_INCREF(Py_None); |
1542 | _resultobj = Py_None; | |
1543 | return _resultobj; | |
1544 | } | |
1545 | ||
1546 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1547 | PyObject * _resultobj; | |
1548 | wxBitmap * _result; | |
1549 | char * _arg0; | |
1550 | char *_kwnames[] = { "resource", NULL }; | |
1551 | char _ptemp[128]; | |
1552 | ||
1553 | self = self; | |
1554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
1555 | return NULL; | |
1556 | { | |
4268f798 | 1557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1558 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); |
06c0fba4 | 1559 | |
4268f798 RD |
1560 | wxPyEndAllowThreads(__tstate); |
1561 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1562 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1563 | _resultobj = Py_BuildValue("s",_ptemp); | |
1564 | return _resultobj; | |
1565 | } | |
1566 | ||
1567 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1568 | PyObject * _resultobj; | |
1569 | wxIcon * _result; | |
1570 | char * _arg0; | |
1571 | char *_kwnames[] = { "resource", NULL }; | |
1572 | char _ptemp[128]; | |
1573 | ||
1574 | self = self; | |
1575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
1576 | return NULL; | |
1577 | { | |
4268f798 | 1578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1579 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); |
06c0fba4 | 1580 | |
4268f798 RD |
1581 | wxPyEndAllowThreads(__tstate); |
1582 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1583 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); |
1584 | _resultobj = Py_BuildValue("s",_ptemp); | |
1585 | return _resultobj; | |
1586 | } | |
1587 | ||
1588 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1589 | PyObject * _resultobj; | |
1590 | wxMenuBar * _result; | |
1591 | char * _arg0; | |
1592 | char *_kwnames[] = { "resource", NULL }; | |
06c0fba4 RD |
1593 | |
1594 | self = self; | |
1595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
1596 | return NULL; | |
1597 | { | |
4268f798 | 1598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1599 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); |
06c0fba4 | 1600 | |
4268f798 RD |
1601 | wxPyEndAllowThreads(__tstate); |
1602 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1603 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1604 | return _resultobj; |
1605 | } | |
1606 | ||
1607 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1608 | PyObject * _resultobj; | |
1609 | int _result; | |
1610 | char * _arg0; | |
1611 | char *_kwnames[] = { "name", NULL }; | |
1612 | ||
1613 | self = self; | |
1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
1615 | return NULL; | |
1616 | { | |
4268f798 | 1617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1618 | _result = (int )wxResourceGetIdentifier(_arg0); |
06c0fba4 | 1619 | |
4268f798 RD |
1620 | wxPyEndAllowThreads(__tstate); |
1621 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1622 | } _resultobj = Py_BuildValue("i",_result); |
1623 | return _resultobj; | |
1624 | } | |
1625 | ||
1626 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1627 | PyObject * _resultobj; | |
1628 | bool _result; | |
1629 | char * _arg0; | |
1630 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1631 | PyObject * _argo1 = 0; | |
1632 | char *_kwnames[] = { "resource","table", NULL }; | |
1633 | ||
1634 | self = self; | |
1635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
1636 | return NULL; | |
1637 | if (_argo1) { | |
1638 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1639 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
1641 | return NULL; | |
1642 | } | |
1643 | } | |
1644 | { | |
4268f798 | 1645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1646 | _result = (bool )wxResourceParseData(_arg0,_arg1); |
06c0fba4 | 1647 | |
4268f798 RD |
1648 | wxPyEndAllowThreads(__tstate); |
1649 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1650 | } _resultobj = Py_BuildValue("i",_result); |
1651 | return _resultobj; | |
1652 | } | |
1653 | ||
1654 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1655 | PyObject * _resultobj; | |
1656 | bool _result; | |
1657 | char * _arg0; | |
1658 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1659 | PyObject * _argo1 = 0; | |
1660 | char *_kwnames[] = { "filename","table", NULL }; | |
1661 | ||
1662 | self = self; | |
1663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
1664 | return NULL; | |
1665 | if (_argo1) { | |
1666 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1667 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
1669 | return NULL; | |
1670 | } | |
1671 | } | |
1672 | { | |
4268f798 | 1673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1674 | _result = (bool )wxResourceParseFile(_arg0,_arg1); |
06c0fba4 | 1675 | |
4268f798 RD |
1676 | wxPyEndAllowThreads(__tstate); |
1677 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1678 | } _resultobj = Py_BuildValue("i",_result); |
1679 | return _resultobj; | |
1680 | } | |
1681 | ||
1682 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1683 | PyObject * _resultobj; | |
1684 | bool _result; | |
1685 | char * _arg0; | |
1686 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1687 | PyObject * _argo1 = 0; | |
1688 | char *_kwnames[] = { "resource","table", NULL }; | |
1689 | ||
1690 | self = self; | |
1691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
1692 | return NULL; | |
1693 | if (_argo1) { | |
1694 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1695 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
1697 | return NULL; | |
1698 | } | |
1699 | } | |
1700 | { | |
4268f798 | 1701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1702 | _result = (bool )wxResourceParseString(_arg0,_arg1); |
06c0fba4 | 1703 | |
4268f798 RD |
1704 | wxPyEndAllowThreads(__tstate); |
1705 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1706 | } _resultobj = Py_BuildValue("i",_result); |
1707 | return _resultobj; | |
1708 | } | |
1709 | ||
f0261a72 RD |
1710 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { |
1711 | PyObject * _resultobj; | |
1712 | int _result; | |
1713 | char *_kwnames[] = { NULL }; | |
1714 | ||
1715 | self = self; | |
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1717 | return NULL; | |
1718 | { | |
4268f798 | 1719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1720 | _result = (int )wxCaret_GetBlinkTime(); |
f0261a72 | 1721 | |
4268f798 RD |
1722 | wxPyEndAllowThreads(__tstate); |
1723 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1724 | } _resultobj = Py_BuildValue("i",_result); |
1725 | return _resultobj; | |
1726 | } | |
1727 | ||
1728 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1729 | PyObject * _resultobj; | |
1730 | int _arg0; | |
1731 | char *_kwnames[] = { "milliseconds", NULL }; | |
1732 | ||
1733 | self = self; | |
1734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1735 | return NULL; | |
1736 | { | |
4268f798 | 1737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1738 | wxCaret_SetBlinkTime(_arg0); |
f0261a72 | 1739 | |
4268f798 RD |
1740 | wxPyEndAllowThreads(__tstate); |
1741 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1742 | } Py_INCREF(Py_None); |
1743 | _resultobj = Py_None; | |
1744 | return _resultobj; | |
1745 | } | |
1746 | ||
6e18ca6c RD |
1747 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { |
1748 | PyObject * _resultobj; | |
1749 | bool _result; | |
1750 | wxWindow * _arg0 = (wxWindow *) NULL; | |
1751 | PyObject * _argo0 = 0; | |
1752 | char *_kwnames[] = { "win", NULL }; | |
1753 | ||
1754 | self = self; | |
1755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0)) | |
1756 | return NULL; | |
1757 | if (_argo0) { | |
1758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1761 | return NULL; | |
1762 | } | |
1763 | } | |
1764 | { | |
4268f798 | 1765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1766 | _result = (bool )wxSafeYield(_arg0); |
6e18ca6c | 1767 | |
4268f798 RD |
1768 | wxPyEndAllowThreads(__tstate); |
1769 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1770 | } _resultobj = Py_BuildValue("i",_result); |
1771 | return _resultobj; | |
1772 | } | |
1773 | ||
b1462dfa RD |
1774 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1775 | PyObject * _resultobj; | |
1776 | wxEvtHandler * _arg0; | |
1777 | wxEvent * _arg1; | |
1778 | PyObject * _argo0 = 0; | |
1779 | PyObject * _argo1 = 0; | |
1780 | char *_kwnames[] = { "dest","event", NULL }; | |
1781 | ||
1782 | self = self; | |
1783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1784 | return NULL; | |
1785 | if (_argo0) { | |
1786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1789 | return NULL; | |
1790 | } | |
1791 | } | |
1792 | if (_argo1) { | |
1793 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1794 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1796 | return NULL; | |
1797 | } | |
1798 | } | |
1799 | { | |
4268f798 | 1800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1801 | wxPostEvent(_arg0,*_arg1); |
b1462dfa | 1802 | |
4268f798 RD |
1803 | wxPyEndAllowThreads(__tstate); |
1804 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
1805 | } Py_INCREF(Py_None); |
1806 | _resultobj = Py_None; | |
1807 | return _resultobj; | |
1808 | } | |
1809 | ||
694759cf RD |
1810 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { |
1811 | PyObject * _resultobj; | |
1812 | char *_kwnames[] = { NULL }; | |
1813 | ||
1814 | self = self; | |
1815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1816 | return NULL; | |
1817 | { | |
4268f798 | 1818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1819 | wxWakeUpIdle(); |
694759cf | 1820 | |
4268f798 RD |
1821 | wxPyEndAllowThreads(__tstate); |
1822 | if (PyErr_Occurred()) return NULL; | |
694759cf RD |
1823 | } Py_INCREF(Py_None); |
1824 | _resultobj = Py_None; | |
1825 | return _resultobj; | |
1826 | } | |
1827 | ||
6e18ca6c | 1828 | static PyObject *_wrap_wxWakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
c368d904 | 1829 | PyObject * _resultobj; |
6e18ca6c | 1830 | char *_kwnames[] = { NULL }; |
c368d904 RD |
1831 | |
1832 | self = self; | |
6e18ca6c | 1833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpMainThread",_kwnames)) |
c368d904 | 1834 | return NULL; |
6e18ca6c | 1835 | { |
4268f798 | 1836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1837 | wxWakeUpMainThread(); |
6e18ca6c | 1838 | |
4268f798 RD |
1839 | wxPyEndAllowThreads(__tstate); |
1840 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1841 | } Py_INCREF(Py_None); |
1842 | _resultobj = Py_None; | |
1843 | return _resultobj; | |
1844 | } | |
1845 | ||
1846 | static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1847 | PyObject * _resultobj; | |
1848 | char *_kwnames[] = { NULL }; | |
1849 | ||
1850 | self = self; | |
1851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames)) | |
c368d904 | 1852 | return NULL; |
c368d904 | 1853 | { |
4268f798 | 1854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1855 | wxMutexGuiEnter(); |
6e18ca6c | 1856 | |
4268f798 RD |
1857 | wxPyEndAllowThreads(__tstate); |
1858 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1859 | } Py_INCREF(Py_None); |
1860 | _resultobj = Py_None; | |
1861 | return _resultobj; | |
1862 | } | |
1863 | ||
1864 | static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1865 | PyObject * _resultobj; | |
1866 | char *_kwnames[] = { NULL }; | |
1867 | ||
1868 | self = self; | |
1869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames)) | |
1870 | return NULL; | |
1871 | { | |
4268f798 | 1872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1873 | wxMutexGuiLeave(); |
6e18ca6c | 1874 | |
4268f798 RD |
1875 | wxPyEndAllowThreads(__tstate); |
1876 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1877 | } Py_INCREF(Py_None); |
1878 | _resultobj = Py_None; | |
1879 | return _resultobj; | |
1880 | } | |
1881 | ||
1882 | static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1883 | PyObject * _resultobj; | |
1884 | bool _result; | |
1885 | char *_kwnames[] = { NULL }; | |
1886 | ||
1887 | self = self; | |
1888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames)) | |
1889 | return NULL; | |
1890 | { | |
4268f798 | 1891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1892 | _result = (bool )wxThread_IsMain(); |
c368d904 | 1893 | |
4268f798 RD |
1894 | wxPyEndAllowThreads(__tstate); |
1895 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
1896 | } _resultobj = Py_BuildValue("i",_result); |
1897 | return _resultobj; | |
1898 | } | |
1899 | ||
f6bcfd97 | 1900 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd | 1901 | PyObject * _resultobj; |
f6bcfd97 BP |
1902 | bool _result; |
1903 | wxWindow * _arg0; | |
1904 | wxTipProvider * _arg1; | |
1905 | bool _arg2 = (bool ) TRUE; | |
1906 | PyObject * _argo0 = 0; | |
1907 | PyObject * _argo1 = 0; | |
1908 | int tempbool2 = (int) TRUE; | |
1909 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1910 | ||
1911 | self = self; | |
1912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1913 | return NULL; | |
1914 | if (_argo0) { | |
1915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1918 | return NULL; | |
1919 | } | |
1920 | } | |
1921 | if (_argo1) { | |
1922 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1923 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1925 | return NULL; | |
1926 | } | |
1927 | } | |
1928 | _arg2 = (bool ) tempbool2; | |
1929 | { | |
4268f798 | 1930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1931 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); |
f6bcfd97 | 1932 | |
4268f798 RD |
1933 | wxPyEndAllowThreads(__tstate); |
1934 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1935 | } _resultobj = Py_BuildValue("i",_result); |
1936 | return _resultobj; | |
1937 | } | |
1938 | ||
1939 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1940 | PyObject * _resultobj; | |
1941 | wxTipProvider * _result; | |
bb0054cd | 1942 | wxString * _arg0; |
f6bcfd97 | 1943 | size_t _arg1; |
bb0054cd | 1944 | PyObject * _obj0 = 0; |
f6bcfd97 | 1945 | char *_kwnames[] = { "filename","currentTip", NULL }; |
bb0054cd RD |
1946 | char _ptemp[128]; |
1947 | ||
1948 | self = self; | |
f6bcfd97 | 1949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) |
bb0054cd RD |
1950 | return NULL; |
1951 | { | |
c8bc7bb8 RD |
1952 | _arg0 = wxString_in_helper(_obj0); |
1953 | if (_arg0 == NULL) | |
185d7c3e | 1954 | return NULL; |
bb0054cd RD |
1955 | } |
1956 | { | |
4268f798 | 1957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1958 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); |
bb0054cd | 1959 | |
4268f798 RD |
1960 | wxPyEndAllowThreads(__tstate); |
1961 | if (PyErr_Occurred()) return NULL; | |
1d99702e | 1962 | } if (_result) { |
f6bcfd97 | 1963 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); |
1d99702e RD |
1964 | _resultobj = Py_BuildValue("s",_ptemp); |
1965 | } else { | |
1966 | Py_INCREF(Py_None); | |
1967 | _resultobj = Py_None; | |
1968 | } | |
bb0054cd RD |
1969 | { |
1970 | if (_obj0) | |
1971 | delete _arg0; | |
1972 | } | |
1973 | return _resultobj; | |
1974 | } | |
1975 | ||
f6bcfd97 | 1976 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1977 | PyObject * _resultobj; |
f6bcfd97 BP |
1978 | unsigned long _result; |
1979 | char *_kwnames[] = { NULL }; | |
f0261a72 RD |
1980 | |
1981 | self = self; | |
f6bcfd97 | 1982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) |
f0261a72 | 1983 | return NULL; |
f0261a72 | 1984 | { |
4268f798 | 1985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1986 | _result = (unsigned long )wxSysErrorCode(); |
f0261a72 | 1987 | |
4268f798 RD |
1988 | wxPyEndAllowThreads(__tstate); |
1989 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 1990 | } _resultobj = Py_BuildValue("l",_result); |
f0261a72 RD |
1991 | return _resultobj; |
1992 | } | |
1993 | ||
f6bcfd97 | 1994 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1995 | PyObject * _resultobj; |
c8bc7bb8 | 1996 | wxString * _result; |
f6bcfd97 BP |
1997 | unsigned long _arg0 = (unsigned long ) 0; |
1998 | char *_kwnames[] = { "nErrCode", NULL }; | |
f0261a72 RD |
1999 | |
2000 | self = self; | |
f6bcfd97 | 2001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) |
f0261a72 | 2002 | return NULL; |
f0261a72 | 2003 | { |
4268f798 | 2004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2005 | _result = new wxString (wxSysErrorMsg(_arg0)); |
f0261a72 | 2006 | |
4268f798 RD |
2007 | wxPyEndAllowThreads(__tstate); |
2008 | if (PyErr_Occurred()) return NULL; | |
c8bc7bb8 RD |
2009 | }{ |
2010 | #if wxUSE_UNICODE | |
2011 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2012 | #else | |
2013 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2014 | #endif | |
2015 | } | |
2016 | { | |
2017 | delete _result; | |
2018 | } | |
f0261a72 RD |
2019 | return _resultobj; |
2020 | } | |
2021 | ||
f6bcfd97 | 2022 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 2023 | PyObject * _resultobj; |
c8bc7bb8 RD |
2024 | wxString * _arg0; |
2025 | PyObject * _obj0 = 0; | |
f6bcfd97 | 2026 | char *_kwnames[] = { "szFormat", NULL }; |
f0261a72 RD |
2027 | |
2028 | self = self; | |
c8bc7bb8 | 2029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogFatalError",_kwnames,&_obj0)) |
f0261a72 | 2030 | return NULL; |
c8bc7bb8 RD |
2031 | { |
2032 | _arg0 = wxString_in_helper(_obj0); | |
2033 | if (_arg0 == NULL) | |
2034 | return NULL; | |
2035 | } | |
f0261a72 | 2036 | { |
4268f798 | 2037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2038 | wxLogFatalError(*_arg0); |
f0261a72 | 2039 | |
4268f798 RD |
2040 | wxPyEndAllowThreads(__tstate); |
2041 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2042 | } Py_INCREF(Py_None); |
2043 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2044 | { |
2045 | if (_obj0) | |
2046 | delete _arg0; | |
2047 | } | |
f0261a72 RD |
2048 | return _resultobj; |
2049 | } | |
2050 | ||
f6bcfd97 | 2051 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 2052 | PyObject * _resultobj; |
c8bc7bb8 RD |
2053 | wxString * _arg0; |
2054 | PyObject * _obj0 = 0; | |
f6bcfd97 | 2055 | char *_kwnames[] = { "szFormat", NULL }; |
f0261a72 RD |
2056 | |
2057 | self = self; | |
c8bc7bb8 | 2058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogError",_kwnames,&_obj0)) |
f0261a72 | 2059 | return NULL; |
c8bc7bb8 RD |
2060 | { |
2061 | _arg0 = wxString_in_helper(_obj0); | |
2062 | if (_arg0 == NULL) | |
2063 | return NULL; | |
2064 | } | |
f0261a72 | 2065 | { |
4268f798 | 2066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2067 | wxLogError(*_arg0); |
f0261a72 | 2068 | |
4268f798 RD |
2069 | wxPyEndAllowThreads(__tstate); |
2070 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
2071 | } Py_INCREF(Py_None); |
2072 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2073 | { |
2074 | if (_obj0) | |
2075 | delete _arg0; | |
2076 | } | |
f0261a72 RD |
2077 | return _resultobj; |
2078 | } | |
2079 | ||
f6bcfd97 BP |
2080 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { |
2081 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2082 | wxString * _arg0; |
2083 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2084 | char *_kwnames[] = { "szFormat", NULL }; |
2085 | ||
2086 | self = self; | |
c8bc7bb8 | 2087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWarning",_kwnames,&_obj0)) |
f6bcfd97 | 2088 | return NULL; |
c8bc7bb8 RD |
2089 | { |
2090 | _arg0 = wxString_in_helper(_obj0); | |
2091 | if (_arg0 == NULL) | |
2092 | return NULL; | |
2093 | } | |
f6bcfd97 | 2094 | { |
4268f798 | 2095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2096 | wxLogWarning(*_arg0); |
f6bcfd97 | 2097 | |
4268f798 RD |
2098 | wxPyEndAllowThreads(__tstate); |
2099 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2100 | } Py_INCREF(Py_None); |
2101 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2102 | { |
2103 | if (_obj0) | |
2104 | delete _arg0; | |
2105 | } | |
f6bcfd97 BP |
2106 | return _resultobj; |
2107 | } | |
2108 | ||
2109 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2110 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2111 | wxString * _arg0; |
2112 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2113 | char *_kwnames[] = { "szFormat", NULL }; |
2114 | ||
2115 | self = self; | |
c8bc7bb8 RD |
2116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogMessage",_kwnames,&_obj0)) |
2117 | return NULL; | |
2118 | { | |
2119 | _arg0 = wxString_in_helper(_obj0); | |
2120 | if (_arg0 == NULL) | |
f6bcfd97 | 2121 | return NULL; |
c8bc7bb8 | 2122 | } |
f6bcfd97 | 2123 | { |
4268f798 | 2124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2125 | wxLogMessage(*_arg0); |
f6bcfd97 | 2126 | |
4268f798 RD |
2127 | wxPyEndAllowThreads(__tstate); |
2128 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2129 | } Py_INCREF(Py_None); |
2130 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2131 | { |
2132 | if (_obj0) | |
2133 | delete _arg0; | |
2134 | } | |
f6bcfd97 BP |
2135 | return _resultobj; |
2136 | } | |
2137 | ||
2138 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2139 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2140 | wxString * _arg0; |
2141 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2142 | char *_kwnames[] = { "szFormat", NULL }; |
2143 | ||
2144 | self = self; | |
c8bc7bb8 RD |
2145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogInfo",_kwnames,&_obj0)) |
2146 | return NULL; | |
2147 | { | |
2148 | _arg0 = wxString_in_helper(_obj0); | |
2149 | if (_arg0 == NULL) | |
f6bcfd97 | 2150 | return NULL; |
c8bc7bb8 | 2151 | } |
f6bcfd97 | 2152 | { |
4268f798 | 2153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2154 | wxLogInfo(*_arg0); |
f6bcfd97 | 2155 | |
4268f798 RD |
2156 | wxPyEndAllowThreads(__tstate); |
2157 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2158 | } Py_INCREF(Py_None); |
2159 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2160 | { |
2161 | if (_obj0) | |
2162 | delete _arg0; | |
2163 | } | |
f6bcfd97 BP |
2164 | return _resultobj; |
2165 | } | |
2166 | ||
2167 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2168 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2169 | wxString * _arg0; |
2170 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2171 | char *_kwnames[] = { "szFormat", NULL }; |
2172 | ||
2173 | self = self; | |
c8bc7bb8 | 2174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogVerbose",_kwnames,&_obj0)) |
f6bcfd97 | 2175 | return NULL; |
c8bc7bb8 RD |
2176 | { |
2177 | _arg0 = wxString_in_helper(_obj0); | |
2178 | if (_arg0 == NULL) | |
2179 | return NULL; | |
2180 | } | |
f6bcfd97 | 2181 | { |
4268f798 | 2182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2183 | wxLogVerbose(*_arg0); |
f6bcfd97 | 2184 | |
4268f798 RD |
2185 | wxPyEndAllowThreads(__tstate); |
2186 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2187 | } Py_INCREF(Py_None); |
2188 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2189 | { |
2190 | if (_obj0) | |
2191 | delete _arg0; | |
2192 | } | |
f6bcfd97 BP |
2193 | return _resultobj; |
2194 | } | |
2195 | ||
2196 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2197 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2198 | wxString * _arg0; |
2199 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2200 | char *_kwnames[] = { "szFormat", NULL }; |
2201 | ||
2202 | self = self; | |
c8bc7bb8 RD |
2203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogStatus",_kwnames,&_obj0)) |
2204 | return NULL; | |
2205 | { | |
2206 | _arg0 = wxString_in_helper(_obj0); | |
2207 | if (_arg0 == NULL) | |
f6bcfd97 | 2208 | return NULL; |
c8bc7bb8 | 2209 | } |
f6bcfd97 | 2210 | { |
4268f798 | 2211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2212 | wxLogStatus(*_arg0); |
f6bcfd97 | 2213 | |
4268f798 RD |
2214 | wxPyEndAllowThreads(__tstate); |
2215 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2216 | } Py_INCREF(Py_None); |
2217 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2218 | { |
2219 | if (_obj0) | |
2220 | delete _arg0; | |
2221 | } | |
f6bcfd97 BP |
2222 | return _resultobj; |
2223 | } | |
2224 | ||
2225 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2226 | PyObject * _resultobj; | |
2227 | wxFrame * _arg0; | |
c8bc7bb8 | 2228 | wxString * _arg1; |
f6bcfd97 | 2229 | PyObject * _argo0 = 0; |
c8bc7bb8 | 2230 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
2231 | char *_kwnames[] = { "pFrame","szFormat", NULL }; |
2232 | ||
2233 | self = self; | |
c8bc7bb8 | 2234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogStatusFrame",_kwnames,&_argo0,&_obj1)) |
f6bcfd97 BP |
2235 | return NULL; |
2236 | if (_argo0) { | |
2237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2240 | return NULL; | |
2241 | } | |
2242 | } | |
c8bc7bb8 RD |
2243 | { |
2244 | _arg1 = wxString_in_helper(_obj1); | |
2245 | if (_arg1 == NULL) | |
2246 | return NULL; | |
2247 | } | |
f6bcfd97 | 2248 | { |
4268f798 | 2249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2250 | wxLogStatus(_arg0,*_arg1); |
f6bcfd97 | 2251 | |
4268f798 RD |
2252 | wxPyEndAllowThreads(__tstate); |
2253 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2254 | } Py_INCREF(Py_None); |
2255 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2256 | { |
2257 | if (_obj1) | |
2258 | delete _arg1; | |
2259 | } | |
f6bcfd97 BP |
2260 | return _resultobj; |
2261 | } | |
2262 | ||
2263 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2264 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2265 | wxString * _arg0; |
2266 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2267 | char *_kwnames[] = { "szFormat", NULL }; |
2268 | ||
2269 | self = self; | |
c8bc7bb8 RD |
2270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogSysError",_kwnames,&_obj0)) |
2271 | return NULL; | |
2272 | { | |
2273 | _arg0 = wxString_in_helper(_obj0); | |
2274 | if (_arg0 == NULL) | |
f6bcfd97 | 2275 | return NULL; |
c8bc7bb8 | 2276 | } |
f6bcfd97 | 2277 | { |
4268f798 | 2278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2279 | wxLogSysError(*_arg0); |
f6bcfd97 | 2280 | |
4268f798 RD |
2281 | wxPyEndAllowThreads(__tstate); |
2282 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2283 | } Py_INCREF(Py_None); |
2284 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2285 | { |
2286 | if (_obj0) | |
2287 | delete _arg0; | |
2288 | } | |
f6bcfd97 BP |
2289 | return _resultobj; |
2290 | } | |
2291 | ||
0b85cc38 RD |
2292 | static PyObject *_wrap_wxSafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
2293 | PyObject * _resultobj; | |
2294 | wxString * _arg0; | |
2295 | wxString * _arg1; | |
2296 | PyObject * _obj0 = 0; | |
2297 | PyObject * _obj1 = 0; | |
2298 | char *_kwnames[] = { "title","text", NULL }; | |
2299 | ||
2300 | self = self; | |
2301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSafeShowMessage",_kwnames,&_obj0,&_obj1)) | |
2302 | return NULL; | |
2303 | { | |
2304 | _arg0 = wxString_in_helper(_obj0); | |
2305 | if (_arg0 == NULL) | |
2306 | return NULL; | |
2307 | } | |
2308 | { | |
2309 | _arg1 = wxString_in_helper(_obj1); | |
2310 | if (_arg1 == NULL) | |
2311 | return NULL; | |
2312 | } | |
2313 | { | |
2314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2315 | wxSafeShowMessage(*_arg0,*_arg1); | |
2316 | ||
2317 | wxPyEndAllowThreads(__tstate); | |
2318 | if (PyErr_Occurred()) return NULL; | |
2319 | } Py_INCREF(Py_None); | |
2320 | _resultobj = Py_None; | |
2321 | { | |
2322 | if (_obj0) | |
2323 | delete _arg0; | |
2324 | } | |
2325 | { | |
2326 | if (_obj1) | |
2327 | delete _arg1; | |
2328 | } | |
2329 | return _resultobj; | |
2330 | } | |
2331 | ||
c368d904 RD |
2332 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { |
2333 | PyObject * _resultobj; | |
2334 | long _result; | |
2335 | wxString * _arg0; | |
b96c7a38 | 2336 | int _arg1 = (int ) (wxEXEC_ASYNC); |
c368d904 RD |
2337 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; |
2338 | PyObject * _obj0 = 0; | |
2339 | PyObject * _argo2 = 0; | |
b96c7a38 | 2340 | char *_kwnames[] = { "command","flags","process", NULL }; |
c368d904 RD |
2341 | |
2342 | self = self; | |
2343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2344 | return NULL; | |
2345 | { | |
c8bc7bb8 RD |
2346 | _arg0 = wxString_in_helper(_obj0); |
2347 | if (_arg0 == NULL) | |
185d7c3e | 2348 | return NULL; |
c368d904 RD |
2349 | } |
2350 | if (_argo2) { | |
2351 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2352 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2354 | return NULL; | |
2355 | } | |
2356 | } | |
2357 | { | |
4268f798 | 2358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2359 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); |
c368d904 | 2360 | |
4268f798 RD |
2361 | wxPyEndAllowThreads(__tstate); |
2362 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
2363 | } _resultobj = Py_BuildValue("l",_result); |
2364 | { | |
2365 | if (_obj0) | |
2366 | delete _arg0; | |
2367 | } | |
2368 | return _resultobj; | |
2369 | } | |
2370 | ||
493f1553 RD |
2371 | static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) { |
2372 | PyObject * _resultobj; | |
2373 | wxWave * _result; | |
2374 | wxString * _arg0; | |
2375 | PyObject * _obj0 = 0; | |
2376 | char *_kwnames[] = { "data", NULL }; | |
2377 | char _ptemp[128]; | |
2378 | ||
2379 | self = self; | |
2380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0)) | |
2381 | return NULL; | |
2382 | { | |
c8bc7bb8 RD |
2383 | _arg0 = wxString_in_helper(_obj0); |
2384 | if (_arg0 == NULL) | |
493f1553 | 2385 | return NULL; |
493f1553 RD |
2386 | } |
2387 | { | |
4268f798 | 2388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2389 | _result = (wxWave *)wxWaveData(*_arg0); |
493f1553 | 2390 | |
4268f798 RD |
2391 | wxPyEndAllowThreads(__tstate); |
2392 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
2393 | } if (_result) { |
2394 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
2395 | _resultobj = Py_BuildValue("s",_ptemp); | |
2396 | } else { | |
2397 | Py_INCREF(Py_None); | |
2398 | _resultobj = Py_None; | |
2399 | } | |
2400 | { | |
2401 | if (_obj0) | |
2402 | delete _arg0; | |
2403 | } | |
2404 | return _resultobj; | |
2405 | } | |
2406 | ||
b37c7e1d RD |
2407 | static int _wrap_wxTheMimeTypesManager_set(PyObject *val) { |
2408 | ||
2409 | PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only."); | |
2410 | return 1; | |
2411 | } | |
2412 | ||
2413 | static PyObject *_wrap_wxTheMimeTypesManager_get() { | |
2414 | PyObject * pyobj; | |
2415 | char ptemp[128]; | |
2416 | ||
2417 | SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p"); | |
2418 | pyobj = PyString_FromString(ptemp); | |
2419 | return pyobj; | |
2420 | } | |
2421 | ||
b5a5d647 RD |
2422 | static PyObject *_wrap_wxSystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
2423 | PyObject * _resultobj; | |
2424 | wxColour * _result; | |
2425 | wxSystemColour _arg0; | |
2426 | char *_kwnames[] = { "index", NULL }; | |
2427 | char _ptemp[128]; | |
2428 | ||
2429 | self = self; | |
2430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetColour",_kwnames,&_arg0)) | |
2431 | return NULL; | |
2432 | { | |
2433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2434 | _result = new wxColour (wxSystemSettings::GetColour(_arg0)); |
b5a5d647 RD |
2435 | |
2436 | wxPyEndAllowThreads(__tstate); | |
2437 | if (PyErr_Occurred()) return NULL; | |
2438 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
2439 | _resultobj = Py_BuildValue("s",_ptemp); | |
2440 | return _resultobj; | |
2441 | } | |
2442 | ||
2443 | static PyObject *_wrap_wxSystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2444 | PyObject * _resultobj; | |
2445 | wxFont * _result; | |
2446 | wxSystemFont _arg0; | |
2447 | char *_kwnames[] = { "index", NULL }; | |
2448 | char _ptemp[128]; | |
2449 | ||
2450 | self = self; | |
2451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetFont",_kwnames,&_arg0)) | |
2452 | return NULL; | |
2453 | { | |
2454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2455 | _result = new wxFont (wxSystemSettings::GetFont(_arg0)); |
b5a5d647 RD |
2456 | |
2457 | wxPyEndAllowThreads(__tstate); | |
2458 | if (PyErr_Occurred()) return NULL; | |
2459 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
2460 | _resultobj = Py_BuildValue("s",_ptemp); | |
2461 | return _resultobj; | |
2462 | } | |
2463 | ||
2464 | static PyObject *_wrap_wxSystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2465 | PyObject * _resultobj; | |
2466 | int _result; | |
2467 | wxSystemMetric _arg0; | |
2468 | char *_kwnames[] = { "index", NULL }; | |
2469 | ||
2470 | self = self; | |
2471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetMetric",_kwnames,&_arg0)) | |
2472 | return NULL; | |
2473 | { | |
2474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2475 | _result = (int )wxSystemSettings::GetMetric(_arg0); |
b5a5d647 RD |
2476 | |
2477 | wxPyEndAllowThreads(__tstate); | |
2478 | if (PyErr_Occurred()) return NULL; | |
2479 | } _resultobj = Py_BuildValue("i",_result); | |
2480 | return _resultobj; | |
2481 | } | |
2482 | ||
2483 | static PyObject *_wrap_wxSystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2484 | PyObject * _resultobj; | |
2485 | bool _result; | |
2486 | wxSystemFeature _arg0; | |
2487 | char *_kwnames[] = { "index", NULL }; | |
2488 | ||
2489 | self = self; | |
2490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_HasFeature",_kwnames,&_arg0)) | |
2491 | return NULL; | |
2492 | { | |
2493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2494 | _result = (bool )wxSystemSettings::HasFeature(_arg0); |
b5a5d647 RD |
2495 | |
2496 | wxPyEndAllowThreads(__tstate); | |
2497 | if (PyErr_Occurred()) return NULL; | |
2498 | } _resultobj = Py_BuildValue("i",_result); | |
2499 | return _resultobj; | |
2500 | } | |
2501 | ||
e67409dc | 2502 | static PyObject *_wrap_wxSystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { |
0b85cc38 | 2503 | PyObject * _resultobj; |
e67409dc | 2504 | wxSystemScreenType _result; |
0b85cc38 RD |
2505 | char *_kwnames[] = { NULL }; |
2506 | ||
2507 | self = self; | |
e67409dc | 2508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSystemSettings_GetScreenType",_kwnames)) |
0b85cc38 RD |
2509 | return NULL; |
2510 | { | |
2511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e67409dc | 2512 | _result = (wxSystemScreenType )wxSystemSettings::GetScreenType(); |
0b85cc38 RD |
2513 | |
2514 | wxPyEndAllowThreads(__tstate); | |
2515 | if (PyErr_Occurred()) return NULL; | |
2516 | } _resultobj = Py_BuildValue("i",_result); | |
2517 | return _resultobj; | |
2518 | } | |
2519 | ||
e67409dc | 2520 | static PyObject *_wrap_wxSystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { |
0b85cc38 | 2521 | PyObject * _resultobj; |
e67409dc | 2522 | wxSystemScreenType _arg0; |
0b85cc38 RD |
2523 | char *_kwnames[] = { "screen", NULL }; |
2524 | ||
2525 | self = self; | |
e67409dc | 2526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_SetScreenType",_kwnames,&_arg0)) |
0b85cc38 RD |
2527 | return NULL; |
2528 | { | |
2529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e67409dc | 2530 | wxSystemSettings::SetScreenType(_arg0); |
0b85cc38 RD |
2531 | |
2532 | wxPyEndAllowThreads(__tstate); | |
2533 | if (PyErr_Occurred()) return NULL; | |
2534 | } Py_INCREF(Py_None); | |
2535 | _resultobj = Py_None; | |
2536 | return _resultobj; | |
2537 | } | |
2538 | ||
9416aa89 RD |
2539 | static void *SwigwxToolTipTowxObject(void *ptr) { |
2540 | wxToolTip *src; | |
2541 | wxObject *dest; | |
2542 | src = (wxToolTip *) ptr; | |
2543 | dest = (wxObject *) src; | |
2544 | return (void *) dest; | |
2545 | } | |
2546 | ||
f6bcfd97 BP |
2547 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) |
2548 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2549 | PyObject * _resultobj; | |
2550 | wxToolTip * _result; | |
2551 | wxString * _arg0; | |
2552 | PyObject * _obj0 = 0; | |
2553 | char *_kwnames[] = { "tip", NULL }; | |
2554 | char _ptemp[128]; | |
2555 | ||
2556 | self = self; | |
2557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2558 | return NULL; | |
2559 | { | |
c8bc7bb8 RD |
2560 | _arg0 = wxString_in_helper(_obj0); |
2561 | if (_arg0 == NULL) | |
f6bcfd97 | 2562 | return NULL; |
f6bcfd97 BP |
2563 | } |
2564 | { | |
4268f798 | 2565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2566 | _result = (wxToolTip *)new_wxToolTip(*_arg0); |
f6bcfd97 | 2567 | |
4268f798 RD |
2568 | wxPyEndAllowThreads(__tstate); |
2569 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2570 | } if (_result) { |
2571 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2572 | _resultobj = Py_BuildValue("s",_ptemp); | |
2573 | } else { | |
2574 | Py_INCREF(Py_None); | |
2575 | _resultobj = Py_None; | |
2576 | } | |
2577 | { | |
2578 | if (_obj0) | |
2579 | delete _arg0; | |
2580 | } | |
2581 | return _resultobj; | |
2582 | } | |
2583 | ||
2584 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2585 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2586 | PyObject * _resultobj; | |
2587 | wxToolTip * _arg0; | |
2588 | wxString * _arg1; | |
2589 | PyObject * _argo0 = 0; | |
2590 | PyObject * _obj1 = 0; | |
2591 | char *_kwnames[] = { "self","tip", NULL }; | |
2592 | ||
2593 | self = self; | |
2594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2595 | return NULL; | |
2596 | if (_argo0) { | |
2597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2600 | return NULL; | |
2601 | } | |
2602 | } | |
2603 | { | |
c8bc7bb8 RD |
2604 | _arg1 = wxString_in_helper(_obj1); |
2605 | if (_arg1 == NULL) | |
185d7c3e | 2606 | return NULL; |
f6bcfd97 BP |
2607 | } |
2608 | { | |
4268f798 | 2609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2610 | wxToolTip_SetTip(_arg0,*_arg1); |
f6bcfd97 | 2611 | |
4268f798 RD |
2612 | wxPyEndAllowThreads(__tstate); |
2613 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2614 | } Py_INCREF(Py_None); |
2615 | _resultobj = Py_None; | |
2616 | { | |
2617 | if (_obj1) | |
2618 | delete _arg1; | |
2619 | } | |
2620 | return _resultobj; | |
2621 | } | |
2622 | ||
2623 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2624 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2625 | PyObject * _resultobj; | |
2626 | wxString * _result; | |
2627 | wxToolTip * _arg0; | |
2628 | PyObject * _argo0 = 0; | |
2629 | char *_kwnames[] = { "self", NULL }; | |
2630 | ||
2631 | self = self; | |
2632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2633 | return NULL; | |
2634 | if (_argo0) { | |
2635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2638 | return NULL; | |
2639 | } | |
2640 | } | |
2641 | { | |
4268f798 | 2642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2643 | _result = new wxString (wxToolTip_GetTip(_arg0)); |
f6bcfd97 | 2644 | |
4268f798 RD |
2645 | wxPyEndAllowThreads(__tstate); |
2646 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 2647 | }{ |
c8bc7bb8 RD |
2648 | #if wxUSE_UNICODE |
2649 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2650 | #else | |
f6bcfd97 | 2651 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2652 | #endif |
f6bcfd97 BP |
2653 | } |
2654 | { | |
2655 | delete _result; | |
2656 | } | |
2657 | return _resultobj; | |
2658 | } | |
2659 | ||
2660 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2661 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2662 | PyObject * _resultobj; | |
2663 | wxWindow * _result; | |
2664 | wxToolTip * _arg0; | |
2665 | PyObject * _argo0 = 0; | |
2666 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2667 | |
2668 | self = self; | |
2669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2670 | return NULL; | |
2671 | if (_argo0) { | |
2672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2675 | return NULL; | |
2676 | } | |
2677 | } | |
2678 | { | |
4268f798 | 2679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2680 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); |
f6bcfd97 | 2681 | |
4268f798 RD |
2682 | wxPyEndAllowThreads(__tstate); |
2683 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 2684 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2685 | return _resultobj; |
2686 | } | |
2687 | ||
edf2f43e RD |
2688 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
2689 | PyObject * _resultobj; | |
2690 | bool _arg0; | |
2691 | int tempbool0; | |
2692 | char *_kwnames[] = { "flag", NULL }; | |
2693 | ||
2694 | self = self; | |
2695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) | |
2696 | return NULL; | |
2697 | _arg0 = (bool ) tempbool0; | |
2698 | { | |
4268f798 | 2699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2700 | wxToolTip::Enable(_arg0); |
edf2f43e | 2701 | |
4268f798 RD |
2702 | wxPyEndAllowThreads(__tstate); |
2703 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2704 | } Py_INCREF(Py_None); |
2705 | _resultobj = Py_None; | |
2706 | return _resultobj; | |
2707 | } | |
2708 | ||
2709 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2710 | PyObject * _resultobj; | |
2711 | long _arg0; | |
2712 | char *_kwnames[] = { "milliseconds", NULL }; | |
2713 | ||
2714 | self = self; | |
2715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) | |
2716 | return NULL; | |
2717 | { | |
4268f798 | 2718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2719 | wxToolTip::SetDelay(_arg0); |
edf2f43e | 2720 | |
4268f798 RD |
2721 | wxPyEndAllowThreads(__tstate); |
2722 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2723 | } Py_INCREF(Py_None); |
2724 | _resultobj = Py_None; | |
2725 | return _resultobj; | |
2726 | } | |
2727 | ||
f6bcfd97 BP |
2728 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) |
2729 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2730 | PyObject * _resultobj; | |
2731 | wxCaret * _result; | |
2732 | wxWindow * _arg0; | |
2733 | wxSize * _arg1; | |
2734 | PyObject * _argo0 = 0; | |
2735 | wxSize temp; | |
2736 | PyObject * _obj1 = 0; | |
2737 | char *_kwnames[] = { "window","size", NULL }; | |
2738 | char _ptemp[128]; | |
2739 | ||
2740 | self = self; | |
2741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2742 | return NULL; | |
2743 | if (_argo0) { | |
2744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2747 | return NULL; | |
2748 | } | |
2749 | } | |
2750 | { | |
2751 | _arg1 = &temp; | |
2752 | if (! wxSize_helper(_obj1, &_arg1)) | |
2753 | return NULL; | |
2754 | } | |
2755 | { | |
4268f798 | 2756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2757 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); |
f6bcfd97 | 2758 | |
4268f798 RD |
2759 | wxPyEndAllowThreads(__tstate); |
2760 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2761 | } if (_result) { |
2762 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2763 | _resultobj = Py_BuildValue("s",_ptemp); | |
2764 | } else { | |
2765 | Py_INCREF(Py_None); | |
2766 | _resultobj = Py_None; | |
2767 | } | |
2768 | return _resultobj; | |
2769 | } | |
2770 | ||
2771 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2772 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2773 | PyObject * _resultobj; | |
2774 | wxCaret * _arg0; | |
2775 | PyObject * _argo0 = 0; | |
2776 | char *_kwnames[] = { "self", NULL }; | |
2777 | ||
2778 | self = self; | |
2779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
2780 | return NULL; | |
2781 | if (_argo0) { | |
2782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
2785 | return NULL; | |
2786 | } | |
2787 | } | |
2788 | { | |
4268f798 | 2789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2790 | delete_wxCaret(_arg0); |
f6bcfd97 | 2791 | |
4268f798 RD |
2792 | wxPyEndAllowThreads(__tstate); |
2793 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2794 | } Py_INCREF(Py_None); |
2795 | _resultobj = Py_None; | |
2796 | return _resultobj; | |
2797 | } | |
2798 | ||
2799 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
2800 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2801 | PyObject * _resultobj; | |
2802 | bool _result; | |
2803 | wxCaret * _arg0; | |
2804 | PyObject * _argo0 = 0; | |
2805 | char *_kwnames[] = { "self", NULL }; | |
2806 | ||
2807 | self = self; | |
2808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
2809 | return NULL; | |
2810 | if (_argo0) { | |
2811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
2814 | return NULL; | |
2815 | } | |
2816 | } | |
2817 | { | |
4268f798 | 2818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2819 | _result = (bool )wxCaret_IsOk(_arg0); |
f6bcfd97 | 2820 | |
4268f798 RD |
2821 | wxPyEndAllowThreads(__tstate); |
2822 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2823 | } _resultobj = Py_BuildValue("i",_result); |
2824 | return _resultobj; | |
2825 | } | |
2826 | ||
2827 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
2828 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2829 | PyObject * _resultobj; | |
2830 | bool _result; | |
2831 | wxCaret * _arg0; | |
2832 | PyObject * _argo0 = 0; | |
2833 | char *_kwnames[] = { "self", NULL }; | |
2834 | ||
2835 | self = self; | |
2836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
2837 | return NULL; | |
2838 | if (_argo0) { | |
2839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
2842 | return NULL; | |
2843 | } | |
2844 | } | |
2845 | { | |
4268f798 | 2846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2847 | _result = (bool )wxCaret_IsVisible(_arg0); |
f6bcfd97 | 2848 | |
4268f798 RD |
2849 | wxPyEndAllowThreads(__tstate); |
2850 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2851 | } _resultobj = Py_BuildValue("i",_result); |
2852 | return _resultobj; | |
2853 | } | |
2854 | ||
2855 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2856 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2857 | PyObject * _resultobj; | |
2858 | wxCaret * _arg0; | |
2859 | int * _arg1; | |
2860 | int temp; | |
2861 | int * _arg2; | |
2862 | int temp0; | |
2863 | PyObject * _argo0 = 0; | |
2864 | char *_kwnames[] = { "self", NULL }; | |
2865 | ||
2866 | self = self; | |
2867 | { | |
2868 | _arg1 = &temp; | |
2869 | } | |
2870 | { | |
2871 | _arg2 = &temp0; | |
2872 | } | |
2873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
2874 | return NULL; | |
2875 | if (_argo0) { | |
2876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
2879 | return NULL; | |
2880 | } | |
2881 | } | |
2882 | { | |
4268f798 | 2883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2884 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 2885 | |
4268f798 RD |
2886 | wxPyEndAllowThreads(__tstate); |
2887 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2888 | } Py_INCREF(Py_None); |
2889 | _resultobj = Py_None; | |
2890 | { | |
2891 | PyObject *o; | |
2892 | o = PyInt_FromLong((long) (*_arg1)); | |
2893 | _resultobj = t_output_helper(_resultobj, o); | |
2894 | } | |
2895 | { | |
2896 | PyObject *o; | |
2897 | o = PyInt_FromLong((long) (*_arg2)); | |
2898 | _resultobj = t_output_helper(_resultobj, o); | |
2899 | } | |
2900 | return _resultobj; | |
2901 | } | |
2902 | ||
2903 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
f0261a72 RD |
2904 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
2905 | PyObject * _resultobj; | |
f6bcfd97 BP |
2906 | wxPoint * _result; |
2907 | wxCaret * _arg0; | |
2908 | PyObject * _argo0 = 0; | |
2909 | char *_kwnames[] = { "self", NULL }; | |
2910 | char _ptemp[128]; | |
2911 | ||
2912 | self = self; | |
2913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
2914 | return NULL; | |
2915 | if (_argo0) { | |
2916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
2919 | return NULL; | |
2920 | } | |
2921 | } | |
2922 | { | |
4268f798 | 2923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2924 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); |
f6bcfd97 | 2925 | |
4268f798 RD |
2926 | wxPyEndAllowThreads(__tstate); |
2927 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2928 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2929 | _resultobj = Py_BuildValue("s",_ptemp); | |
2930 | return _resultobj; | |
2931 | } | |
2932 | ||
2933 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2934 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2935 | PyObject * _resultobj; | |
2936 | wxCaret * _arg0; | |
2937 | int * _arg1; | |
2938 | int temp; | |
2939 | int * _arg2; | |
2940 | int temp0; | |
2941 | PyObject * _argo0 = 0; | |
2942 | char *_kwnames[] = { "self", NULL }; | |
2943 | ||
2944 | self = self; | |
2945 | { | |
2946 | _arg1 = &temp; | |
2947 | } | |
2948 | { | |
2949 | _arg2 = &temp0; | |
2950 | } | |
2951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
2952 | return NULL; | |
2953 | if (_argo0) { | |
2954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
2957 | return NULL; | |
2958 | } | |
2959 | } | |
2960 | { | |
4268f798 | 2961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2962 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 2963 | |
4268f798 RD |
2964 | wxPyEndAllowThreads(__tstate); |
2965 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2966 | } Py_INCREF(Py_None); |
2967 | _resultobj = Py_None; | |
2968 | { | |
2969 | PyObject *o; | |
2970 | o = PyInt_FromLong((long) (*_arg1)); | |
2971 | _resultobj = t_output_helper(_resultobj, o); | |
2972 | } | |
2973 | { | |
2974 | PyObject *o; | |
2975 | o = PyInt_FromLong((long) (*_arg2)); | |
2976 | _resultobj = t_output_helper(_resultobj, o); | |
2977 | } | |
2978 | return _resultobj; | |
2979 | } | |
2980 | ||
2981 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
2982 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2983 | PyObject * _resultobj; | |
2984 | wxSize * _result; | |
2985 | wxCaret * _arg0; | |
2986 | PyObject * _argo0 = 0; | |
2987 | char *_kwnames[] = { "self", NULL }; | |
2988 | char _ptemp[128]; | |
2989 | ||
2990 | self = self; | |
2991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
2992 | return NULL; | |
2993 | if (_argo0) { | |
2994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
2997 | return NULL; | |
2998 | } | |
2999 | } | |
3000 | { | |
4268f798 | 3001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3002 | _result = new wxSize (wxCaret_GetSize(_arg0)); |
f6bcfd97 | 3003 | |
4268f798 RD |
3004 | wxPyEndAllowThreads(__tstate); |
3005 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3006 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
3007 | _resultobj = Py_BuildValue("s",_ptemp); | |
3008 | return _resultobj; | |
3009 | } | |
3010 | ||
3011 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
3012 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3013 | PyObject * _resultobj; | |
3014 | wxWindow * _result; | |
3015 | wxCaret * _arg0; | |
3016 | PyObject * _argo0 = 0; | |
3017 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
3018 | |
3019 | self = self; | |
3020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
3021 | return NULL; | |
3022 | if (_argo0) { | |
3023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
3026 | return NULL; | |
3027 | } | |
3028 | } | |
3029 | { | |
4268f798 | 3030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3031 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); |
f6bcfd97 | 3032 | |
4268f798 RD |
3033 | wxPyEndAllowThreads(__tstate); |
3034 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 3035 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
3036 | return _resultobj; |
3037 | } | |
3038 | ||
3039 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
3040 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3041 | PyObject * _resultobj; | |
3042 | wxCaret * _arg0; | |
3043 | int _arg1; | |
3044 | int _arg2; | |
3045 | PyObject * _argo0 = 0; | |
3046 | char *_kwnames[] = { "self","x","y", NULL }; | |
3047 | ||
3048 | self = self; | |
3049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3050 | return NULL; | |
3051 | if (_argo0) { | |
3052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
3055 | return NULL; | |
3056 | } | |
3057 | } | |
3058 | { | |
4268f798 | 3059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3060 | wxCaret_MoveXY(_arg0,_arg1,_arg2); |
f6bcfd97 | 3061 | |
4268f798 RD |
3062 | wxPyEndAllowThreads(__tstate); |
3063 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3064 | } Py_INCREF(Py_None); |
3065 | _resultobj = Py_None; | |
3066 | return _resultobj; | |
3067 | } | |
3068 | ||
3069 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3070 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3071 | PyObject * _resultobj; | |
3072 | wxCaret * _arg0; | |
3073 | wxPoint * _arg1; | |
3074 | PyObject * _argo0 = 0; | |
3075 | wxPoint temp; | |
3076 | PyObject * _obj1 = 0; | |
3077 | char *_kwnames[] = { "self","pt", NULL }; | |
3078 | ||
3079 | self = self; | |
3080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
3081 | return NULL; | |
3082 | if (_argo0) { | |
3083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
3086 | return NULL; | |
3087 | } | |
3088 | } | |
3089 | { | |
3090 | _arg1 = &temp; | |
3091 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3092 | return NULL; | |
3093 | } | |
3094 | { | |
4268f798 | 3095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3096 | wxCaret_Move(_arg0,*_arg1); |
f6bcfd97 | 3097 | |
4268f798 RD |
3098 | wxPyEndAllowThreads(__tstate); |
3099 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3100 | } Py_INCREF(Py_None); |
3101 | _resultobj = Py_None; | |
3102 | return _resultobj; | |
3103 | } | |
3104 | ||
3105 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
3106 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3107 | PyObject * _resultobj; | |
3108 | wxCaret * _arg0; | |
3109 | int _arg1; | |
3110 | int _arg2; | |
3111 | PyObject * _argo0 = 0; | |
3112 | char *_kwnames[] = { "self","width","height", NULL }; | |
3113 | ||
3114 | self = self; | |
3115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3116 | return NULL; | |
3117 | if (_argo0) { | |
3118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
3121 | return NULL; | |
3122 | } | |
3123 | } | |
3124 | { | |
4268f798 | 3125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3126 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); |
f6bcfd97 | 3127 | |
4268f798 RD |
3128 | wxPyEndAllowThreads(__tstate); |
3129 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3130 | } Py_INCREF(Py_None); |
3131 | _resultobj = Py_None; | |
3132 | return _resultobj; | |
3133 | } | |
3134 | ||
3135 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3136 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3137 | PyObject * _resultobj; | |
3138 | wxCaret * _arg0; | |
3139 | wxSize * _arg1; | |
3140 | PyObject * _argo0 = 0; | |
3141 | wxSize temp; | |
3142 | PyObject * _obj1 = 0; | |
3143 | char *_kwnames[] = { "self","size", NULL }; | |
3144 | ||
3145 | self = self; | |
3146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
3147 | return NULL; | |
3148 | if (_argo0) { | |
3149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
3152 | return NULL; | |
3153 | } | |
3154 | } | |
3155 | { | |
3156 | _arg1 = &temp; | |
3157 | if (! wxSize_helper(_obj1, &_arg1)) | |
3158 | return NULL; | |
3159 | } | |
3160 | { | |
4268f798 | 3161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3162 | wxCaret_SetSize(_arg0,*_arg1); |
f6bcfd97 | 3163 | |
4268f798 RD |
3164 | wxPyEndAllowThreads(__tstate); |
3165 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3166 | } Py_INCREF(Py_None); |
3167 | _resultobj = Py_None; | |
3168 | return _resultobj; | |
3169 | } | |
3170 | ||
3171 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
3172 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3173 | PyObject * _resultobj; | |
3174 | wxCaret * _arg0; | |
3175 | int _arg1 = (int ) TRUE; | |
3176 | PyObject * _argo0 = 0; | |
3177 | char *_kwnames[] = { "self","show", NULL }; | |
3178 | ||
3179 | self = self; | |
3180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
3181 | return NULL; | |
3182 | if (_argo0) { | |
3183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
3186 | return NULL; | |
3187 | } | |
3188 | } | |
3189 | { | |
4268f798 | 3190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3191 | wxCaret_Show(_arg0,_arg1); |
f6bcfd97 | 3192 | |
4268f798 RD |
3193 | wxPyEndAllowThreads(__tstate); |
3194 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3195 | } Py_INCREF(Py_None); |
3196 | _resultobj = Py_None; | |
3197 | return _resultobj; | |
3198 | } | |
3199 | ||
3200 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
3201 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3202 | PyObject * _resultobj; | |
3203 | wxCaret * _arg0; | |
3204 | PyObject * _argo0 = 0; | |
3205 | char *_kwnames[] = { "self", NULL }; | |
3206 | ||
3207 | self = self; | |
3208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
3209 | return NULL; | |
3210 | if (_argo0) { | |
3211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
3214 | return NULL; | |
3215 | } | |
3216 | } | |
3217 | { | |
4268f798 | 3218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3219 | wxCaret_Hide(_arg0); |
f6bcfd97 | 3220 | |
4268f798 RD |
3221 | wxPyEndAllowThreads(__tstate); |
3222 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3223 | } Py_INCREF(Py_None); |
3224 | _resultobj = Py_None; | |
3225 | return _resultobj; | |
3226 | } | |
3227 | ||
f6bcfd97 BP |
3228 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) |
3229 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3230 | PyObject * _resultobj; | |
3231 | wxBusyCursor * _result; | |
3232 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3233 | PyObject * _argo0 = 0; | |
3234 | char *_kwnames[] = { "cursor", NULL }; | |
3235 | char _ptemp[128]; | |
3236 | ||
3237 | self = self; | |
3238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3239 | return NULL; | |
3240 | if (_argo0) { | |
3241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3244 | return NULL; | |
3245 | } | |
3246 | } | |
3247 | { | |
4268f798 | 3248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3249 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); |
f6bcfd97 | 3250 | |
4268f798 RD |
3251 | wxPyEndAllowThreads(__tstate); |
3252 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3253 | } if (_result) { |
3254 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3255 | _resultobj = Py_BuildValue("s",_ptemp); | |
3256 | } else { | |
3257 | Py_INCREF(Py_None); | |
3258 | _resultobj = Py_None; | |
3259 | } | |
3260 | return _resultobj; | |
3261 | } | |
3262 | ||
3263 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3264 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3265 | PyObject * _resultobj; | |
3266 | wxBusyCursor * _arg0; | |
3267 | PyObject * _argo0 = 0; | |
3268 | char *_kwnames[] = { "self", NULL }; | |
3269 | ||
3270 | self = self; | |
3271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3272 | return NULL; | |
3273 | if (_argo0) { | |
3274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3277 | return NULL; | |
3278 | } | |
3279 | } | |
3280 | { | |
4268f798 | 3281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3282 | delete_wxBusyCursor(_arg0); |
f6bcfd97 | 3283 | |
4268f798 RD |
3284 | wxPyEndAllowThreads(__tstate); |
3285 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3286 | } Py_INCREF(Py_None); |
3287 | _resultobj = Py_None; | |
3288 | return _resultobj; | |
3289 | } | |
3290 | ||
c368d904 RD |
3291 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) |
3292 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3293 | PyObject * _resultobj; | |
3294 | wxWindowDisabler * _result; | |
3295 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3296 | PyObject * _argo0 = 0; | |
3297 | char *_kwnames[] = { "winToSkip", NULL }; | |
3298 | char _ptemp[128]; | |
3299 | ||
3300 | self = self; | |
3301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3302 | return NULL; | |
3303 | if (_argo0) { | |
3304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3307 | return NULL; | |
3308 | } | |
3309 | } | |
3310 | { | |
4268f798 | 3311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3312 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); |
c368d904 | 3313 | |
4268f798 RD |
3314 | wxPyEndAllowThreads(__tstate); |
3315 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3316 | } if (_result) { |
3317 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3318 | _resultobj = Py_BuildValue("s",_ptemp); | |
3319 | } else { | |
3320 | Py_INCREF(Py_None); | |
3321 | _resultobj = Py_None; | |
3322 | } | |
3323 | return _resultobj; | |
3324 | } | |
3325 | ||
3326 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3327 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3328 | PyObject * _resultobj; | |
3329 | wxWindowDisabler * _arg0; | |
3330 | PyObject * _argo0 = 0; | |
3331 | char *_kwnames[] = { "self", NULL }; | |
3332 | ||
3333 | self = self; | |
3334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3335 | return NULL; | |
3336 | if (_argo0) { | |
3337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3340 | return NULL; | |
3341 | } | |
3342 | } | |
3343 | { | |
4268f798 | 3344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3345 | delete_wxWindowDisabler(_arg0); |
c368d904 | 3346 | |
4268f798 RD |
3347 | wxPyEndAllowThreads(__tstate); |
3348 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3349 | } Py_INCREF(Py_None); |
3350 | _resultobj = Py_None; | |
3351 | return _resultobj; | |
3352 | } | |
3353 | ||
6e18ca6c RD |
3354 | #define new_wxMutexGuiLocker() (new wxMutexGuiLocker()) |
3355 | static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3356 | PyObject * _resultobj; | |
3357 | wxMutexGuiLocker * _result; | |
3358 | char *_kwnames[] = { NULL }; | |
3359 | char _ptemp[128]; | |
3360 | ||
3361 | self = self; | |
3362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames)) | |
3363 | return NULL; | |
3364 | { | |
4268f798 | 3365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3366 | _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker(); |
6e18ca6c | 3367 | |
4268f798 RD |
3368 | wxPyEndAllowThreads(__tstate); |
3369 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3370 | } if (_result) { |
3371 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p"); | |
3372 | _resultobj = Py_BuildValue("s",_ptemp); | |
3373 | } else { | |
3374 | Py_INCREF(Py_None); | |
3375 | _resultobj = Py_None; | |
3376 | } | |
3377 | return _resultobj; | |
3378 | } | |
3379 | ||
3380 | #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj) | |
3381 | static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3382 | PyObject * _resultobj; | |
3383 | wxMutexGuiLocker * _arg0; | |
3384 | PyObject * _argo0 = 0; | |
3385 | char *_kwnames[] = { "self", NULL }; | |
3386 | ||
3387 | self = self; | |
3388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0)) | |
3389 | return NULL; | |
3390 | if (_argo0) { | |
3391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) { | |
3393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p."); | |
3394 | return NULL; | |
3395 | } | |
3396 | } | |
3397 | { | |
4268f798 | 3398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3399 | delete_wxMutexGuiLocker(_arg0); |
6e18ca6c | 3400 | |
4268f798 RD |
3401 | wxPyEndAllowThreads(__tstate); |
3402 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3403 | } Py_INCREF(Py_None); |
3404 | _resultobj = Py_None; | |
3405 | return _resultobj; | |
3406 | } | |
3407 | ||
f6bcfd97 BP |
3408 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) |
3409 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3410 | PyObject * _resultobj; | |
3411 | wxTipProvider * _arg0; | |
3412 | PyObject * _argo0 = 0; | |
3413 | char *_kwnames[] = { "self", NULL }; | |
3414 | ||
3415 | self = self; | |
3416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3417 | return NULL; | |
3418 | if (_argo0) { | |
3419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3422 | return NULL; | |
3423 | } | |
3424 | } | |
3425 | { | |
4268f798 | 3426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3427 | delete_wxTipProvider(_arg0); |
f6bcfd97 | 3428 | |
4268f798 RD |
3429 | wxPyEndAllowThreads(__tstate); |
3430 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3431 | } Py_INCREF(Py_None); |
3432 | _resultobj = Py_None; | |
3433 | return _resultobj; | |
3434 | } | |
3435 | ||
3436 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3437 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3438 | PyObject * _resultobj; | |
3439 | wxString * _result; | |
3440 | wxTipProvider * _arg0; | |
3441 | PyObject * _argo0 = 0; | |
3442 | char *_kwnames[] = { "self", NULL }; | |
3443 | ||
3444 | self = self; | |
3445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3446 | return NULL; | |
3447 | if (_argo0) { | |
3448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3451 | return NULL; | |
3452 | } | |
3453 | } | |
3454 | { | |
4268f798 | 3455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3456 | _result = new wxString (wxTipProvider_GetTip(_arg0)); |
f6bcfd97 | 3457 | |
4268f798 RD |
3458 | wxPyEndAllowThreads(__tstate); |
3459 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 3460 | }{ |
c8bc7bb8 RD |
3461 | #if wxUSE_UNICODE |
3462 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3463 | #else | |
f6bcfd97 | 3464 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3465 | #endif |
f6bcfd97 BP |
3466 | } |
3467 | { | |
3468 | delete _result; | |
3469 | } | |
3470 | return _resultobj; | |
3471 | } | |
3472 | ||
3473 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3474 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3475 | PyObject * _resultobj; | |
3476 | size_t _result; | |
3477 | wxTipProvider * _arg0; | |
3478 | PyObject * _argo0 = 0; | |
3479 | char *_kwnames[] = { "self", NULL }; | |
3480 | ||
3481 | self = self; | |
3482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3483 | return NULL; | |
3484 | if (_argo0) { | |
3485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3488 | return NULL; | |
3489 | } | |
3490 | } | |
3491 | { | |
4268f798 | 3492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3493 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); |
f6bcfd97 | 3494 | |
4268f798 RD |
3495 | wxPyEndAllowThreads(__tstate); |
3496 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3497 | } _resultobj = Py_BuildValue("i",_result); |
3498 | return _resultobj; | |
3499 | } | |
3500 | ||
3501 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { | |
3502 | wxPyTipProvider *src; | |
3503 | wxTipProvider *dest; | |
3504 | src = (wxPyTipProvider *) ptr; | |
3505 | dest = (wxTipProvider *) src; | |
3506 | return (void *) dest; | |
3507 | } | |
3508 | ||
3509 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3510 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3511 | PyObject * _resultobj; | |
3512 | wxPyTipProvider * _result; | |
3513 | size_t _arg0; | |
3514 | char *_kwnames[] = { "currentTip", NULL }; | |
3515 | char _ptemp[128]; | |
3516 | ||
3517 | self = self; | |
3518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3519 | return NULL; | |
3520 | { | |
4268f798 | 3521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3522 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); |
f6bcfd97 | 3523 | |
4268f798 RD |
3524 | wxPyEndAllowThreads(__tstate); |
3525 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3526 | } if (_result) { |
3527 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3528 | _resultobj = Py_BuildValue("s",_ptemp); | |
3529 | } else { | |
3530 | Py_INCREF(Py_None); | |
3531 | _resultobj = Py_None; | |
3532 | } | |
3533 | return _resultobj; | |
3534 | } | |
3535 | ||
9416aa89 RD |
3536 | static void *SwigwxGenericDragImageTowxObject(void *ptr) { |
3537 | wxGenericDragImage *src; | |
3538 | wxObject *dest; | |
3539 | src = (wxGenericDragImage *) ptr; | |
3540 | dest = (wxObject *) src; | |
3541 | return (void *) dest; | |
3542 | } | |
3543 | ||
10e07c70 | 3544 | #define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
f6bcfd97 BP |
3545 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
3546 | PyObject * _resultobj; | |
3547 | wxGenericDragImage * _result; | |
3548 | wxBitmap * _arg0; | |
3549 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
f6bcfd97 BP |
3550 | PyObject * _argo0 = 0; |
3551 | PyObject * _argo1 = 0; | |
10e07c70 | 3552 | char *_kwnames[] = { "image","cursor", NULL }; |
f6bcfd97 BP |
3553 | char _ptemp[128]; |
3554 | ||
3555 | self = self; | |
10e07c70 | 3556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
3557 | return NULL; |
3558 | if (_argo0) { | |
3559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
3561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); | |
3562 | return NULL; | |
3563 | } | |
3564 | } | |
3565 | if (_argo1) { | |
3566 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3567 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); | |
3569 | return NULL; | |
3570 | } | |
3571 | } | |
f6bcfd97 | 3572 | { |
4268f798 | 3573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3574 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1); |
f6bcfd97 | 3575 | |
4268f798 RD |
3576 | wxPyEndAllowThreads(__tstate); |
3577 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3578 | } if (_result) { |
3579 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3580 | _resultobj = Py_BuildValue("s",_ptemp); | |
3581 | } else { | |
3582 | Py_INCREF(Py_None); | |
3583 | _resultobj = Py_None; | |
3584 | } | |
3585 | return _resultobj; | |
3586 | } | |
3587 | ||
cdf14688 RD |
3588 | #define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
3589 | static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3590 | PyObject * _resultobj; | |
3591 | wxGenericDragImage * _result; | |
3592 | wxIcon * _arg0; | |
3593 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3594 | PyObject * _argo0 = 0; | |
3595 | PyObject * _argo1 = 0; | |
3596 | char *_kwnames[] = { "image","cursor", NULL }; | |
3597 | char _ptemp[128]; | |
3598 | ||
3599 | self = self; | |
3600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1)) | |
3601 | return NULL; | |
3602 | if (_argo0) { | |
3603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
3605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p."); | |
3606 | return NULL; | |
3607 | } | |
3608 | } | |
3609 | if (_argo1) { | |
3610 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3611 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p."); | |
3613 | return NULL; | |
3614 | } | |
3615 | } | |
3616 | { | |
4268f798 | 3617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3618 | _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1); |
cdf14688 | 3619 | |
4268f798 RD |
3620 | wxPyEndAllowThreads(__tstate); |
3621 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3622 | } if (_result) { |
3623 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3624 | _resultobj = Py_BuildValue("s",_ptemp); | |
3625 | } else { | |
3626 | Py_INCREF(Py_None); | |
3627 | _resultobj = Py_None; | |
3628 | } | |
3629 | return _resultobj; | |
3630 | } | |
3631 | ||
3632 | #define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3633 | static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3634 | PyObject * _resultobj; | |
3635 | wxGenericDragImage * _result; | |
3636 | wxString * _arg0; | |
3637 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3638 | PyObject * _obj0 = 0; | |
3639 | PyObject * _argo1 = 0; | |
3640 | char *_kwnames[] = { "str","cursor", NULL }; | |
3641 | char _ptemp[128]; | |
3642 | ||
3643 | self = self; | |
3644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1)) | |
3645 | return NULL; | |
3646 | { | |
c8bc7bb8 RD |
3647 | _arg0 = wxString_in_helper(_obj0); |
3648 | if (_arg0 == NULL) | |
cdf14688 | 3649 | return NULL; |
cdf14688 RD |
3650 | } |
3651 | if (_argo1) { | |
3652 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3653 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p."); | |
3655 | return NULL; | |
3656 | } | |
3657 | } | |
3658 | { | |
4268f798 | 3659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3660 | _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1); |
cdf14688 | 3661 | |
4268f798 RD |
3662 | wxPyEndAllowThreads(__tstate); |
3663 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3664 | } if (_result) { |
3665 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3666 | _resultobj = Py_BuildValue("s",_ptemp); | |
3667 | } else { | |
3668 | Py_INCREF(Py_None); | |
3669 | _resultobj = Py_None; | |
3670 | } | |
3671 | { | |
3672 | if (_obj0) | |
3673 | delete _arg0; | |
3674 | } | |
3675 | return _resultobj; | |
3676 | } | |
3677 | ||
3678 | #define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3679 | static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3680 | PyObject * _resultobj; | |
3681 | wxGenericDragImage * _result; | |
3682 | wxTreeCtrl * _arg0; | |
3683 | wxTreeItemId * _arg1; | |
3684 | PyObject * _argo0 = 0; | |
3685 | PyObject * _argo1 = 0; | |
3686 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
3687 | char _ptemp[128]; | |
3688 | ||
3689 | self = self; | |
3690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1)) | |
3691 | return NULL; | |
3692 | if (_argo0) { | |
3693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
3695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p."); | |
3696 | return NULL; | |
3697 | } | |
3698 | } | |
3699 | if (_argo1) { | |
3700 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3701 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
3702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p."); | |
3703 | return NULL; | |
3704 | } | |
3705 | } | |
3706 | { | |
4268f798 | 3707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3708 | _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1); |
cdf14688 | 3709 | |
4268f798 RD |
3710 | wxPyEndAllowThreads(__tstate); |
3711 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3712 | } if (_result) { |
3713 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3714 | _resultobj = Py_BuildValue("s",_ptemp); | |
3715 | } else { | |
3716 | Py_INCREF(Py_None); | |
3717 | _resultobj = Py_None; | |
3718 | } | |
3719 | return _resultobj; | |
3720 | } | |
3721 | ||
3722 | #define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3723 | static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3724 | PyObject * _resultobj; | |
3725 | wxGenericDragImage * _result; | |
3726 | wxListCtrl * _arg0; | |
3727 | long _arg1; | |
3728 | PyObject * _argo0 = 0; | |
3729 | char *_kwnames[] = { "listCtrl","id", NULL }; | |
3730 | char _ptemp[128]; | |
3731 | ||
3732 | self = self; | |
3733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1)) | |
3734 | return NULL; | |
3735 | if (_argo0) { | |
3736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragListItem. Expected _wxListCtrl_p."); | |
3739 | return NULL; | |
3740 | } | |
3741 | } | |
3742 | { | |
4268f798 | 3743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3744 | _result = (wxGenericDragImage *)new_wxDragListItem(*_arg0,_arg1); |
cdf14688 | 3745 | |
4268f798 RD |
3746 | wxPyEndAllowThreads(__tstate); |
3747 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3748 | } if (_result) { |
3749 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3750 | _resultobj = Py_BuildValue("s",_ptemp); | |
3751 | } else { | |
3752 | Py_INCREF(Py_None); | |
3753 | _resultobj = Py_None; | |
3754 | } | |
3755 | return _resultobj; | |
3756 | } | |
3757 | ||
f6bcfd97 BP |
3758 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) |
3759 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3760 | PyObject * _resultobj; | |
3761 | wxGenericDragImage * _arg0; | |
3762 | PyObject * _argo0 = 0; | |
3763 | char *_kwnames[] = { "self", NULL }; | |
3764 | ||
3765 | self = self; | |
3766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
3767 | return NULL; | |
3768 | if (_argo0) { | |
3769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
3772 | return NULL; | |
3773 | } | |
3774 | } | |
3775 | { | |
4268f798 | 3776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3777 | delete_wxGenericDragImage(_arg0); |
f6bcfd97 | 3778 | |
4268f798 RD |
3779 | wxPyEndAllowThreads(__tstate); |
3780 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3781 | } Py_INCREF(Py_None); |
3782 | _resultobj = Py_None; | |
3783 | return _resultobj; | |
3784 | } | |
3785 | ||
10e07c70 RD |
3786 | #define wxDragImage_SetBackingBitmap(_swigobj,_swigarg0) (_swigobj->SetBackingBitmap(_swigarg0)) |
3787 | static PyObject *_wrap_wxDragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3788 | PyObject * _resultobj; | |
3789 | wxGenericDragImage * _arg0; | |
3790 | wxBitmap * _arg1; | |
3791 | PyObject * _argo0 = 0; | |
3792 | PyObject * _argo1 = 0; | |
3793 | char *_kwnames[] = { "self","bitmap", NULL }; | |
3794 | ||
3795 | self = self; | |
3796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_SetBackingBitmap",_kwnames,&_argo0,&_argo1)) | |
3797 | return NULL; | |
3798 | if (_argo0) { | |
3799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_SetBackingBitmap. Expected _wxGenericDragImage_p."); | |
3802 | return NULL; | |
3803 | } | |
3804 | } | |
3805 | if (_argo1) { | |
3806 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3807 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
3808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragImage_SetBackingBitmap. Expected _wxBitmap_p."); | |
3809 | return NULL; | |
3810 | } | |
3811 | } | |
3812 | { | |
4268f798 | 3813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3814 | wxDragImage_SetBackingBitmap(_arg0,_arg1); |
10e07c70 | 3815 | |
4268f798 RD |
3816 | wxPyEndAllowThreads(__tstate); |
3817 | if (PyErr_Occurred()) return NULL; | |
10e07c70 RD |
3818 | } Py_INCREF(Py_None); |
3819 | _resultobj = Py_None; | |
3820 | return _resultobj; | |
3821 | } | |
3822 | ||
f6bcfd97 BP |
3823 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3824 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3825 | PyObject * _resultobj; | |
3826 | bool _result; | |
3827 | wxGenericDragImage * _arg0; | |
3828 | wxPoint * _arg1; | |
3829 | wxWindow * _arg2; | |
3830 | bool _arg3 = (bool ) FALSE; | |
3831 | wxRect * _arg4 = (wxRect *) NULL; | |
3832 | PyObject * _argo0 = 0; | |
3833 | wxPoint temp; | |
3834 | PyObject * _obj1 = 0; | |
3835 | PyObject * _argo2 = 0; | |
3836 | int tempbool3 = (int) FALSE; | |
3837 | wxRect temp0; | |
3838 | PyObject * _obj4 = 0; | |
3839 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
3840 | ||
3841 | self = self; | |
3842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
3843 | return NULL; | |
3844 | if (_argo0) { | |
3845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
3848 | return NULL; | |
3849 | } | |
3850 | } | |
3851 | { | |
3852 | _arg1 = &temp; | |
3853 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3854 | return NULL; | |
3855 | } | |
3856 | if (_argo2) { | |
3857 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3858 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
3860 | return NULL; | |
3861 | } | |
3862 | } | |
3863 | _arg3 = (bool ) tempbool3; | |
3864 | if (_obj4) | |
3865 | { | |
3866 | _arg4 = &temp0; | |
3867 | if (! wxRect_helper(_obj4, &_arg4)) | |
3868 | return NULL; | |
3869 | } | |
3870 | { | |
4268f798 | 3871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3872 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); |
f6bcfd97 | 3873 | |
4268f798 RD |
3874 | wxPyEndAllowThreads(__tstate); |
3875 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3876 | } _resultobj = Py_BuildValue("i",_result); |
3877 | return _resultobj; | |
3878 | } | |
3879 | ||
3880 | #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) | |
3881 | static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3882 | PyObject * _resultobj; | |
3883 | bool _result; | |
3884 | wxGenericDragImage * _arg0; | |
3885 | wxPoint * _arg1; | |
3886 | wxWindow * _arg2; | |
3887 | wxWindow * _arg3; | |
3888 | PyObject * _argo0 = 0; | |
3889 | wxPoint temp; | |
3890 | PyObject * _obj1 = 0; | |
3891 | PyObject * _argo2 = 0; | |
3892 | PyObject * _argo3 = 0; | |
3893 | char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL }; | |
3894 | ||
3895 | self = self; | |
3896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
3897 | return NULL; | |
3898 | if (_argo0) { | |
3899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p."); | |
3902 | return NULL; | |
3903 | } | |
3904 | } | |
3905 | { | |
3906 | _arg1 = &temp; | |
3907 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3908 | return NULL; | |
3909 | } | |
3910 | if (_argo2) { | |
3911 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3912 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3914 | return NULL; | |
3915 | } | |
3916 | } | |
3917 | if (_argo3) { | |
3918 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3919 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
3920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3921 | return NULL; | |
3922 | } | |
3923 | } | |
3924 | { | |
4268f798 | 3925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3926 | _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3); |
f6bcfd97 | 3927 | |
4268f798 RD |
3928 | wxPyEndAllowThreads(__tstate); |
3929 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3930 | } _resultobj = Py_BuildValue("i",_result); |
3931 | return _resultobj; | |
3932 | } | |
3933 | ||
3934 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
3935 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3936 | PyObject * _resultobj; | |
3937 | bool _result; | |
3938 | wxGenericDragImage * _arg0; | |
3939 | PyObject * _argo0 = 0; | |
3940 | char *_kwnames[] = { "self", NULL }; | |
3941 | ||
3942 | self = self; | |
3943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
3944 | return NULL; | |
3945 | if (_argo0) { | |
3946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
3949 | return NULL; | |
3950 | } | |
3951 | } | |
3952 | { | |
4268f798 | 3953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3954 | _result = (bool )wxDragImage_EndDrag(_arg0); |
f6bcfd97 | 3955 | |
4268f798 RD |
3956 | wxPyEndAllowThreads(__tstate); |
3957 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3958 | } _resultobj = Py_BuildValue("i",_result); |
3959 | return _resultobj; | |
3960 | } | |
3961 | ||
3962 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3963 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3964 | PyObject * _resultobj; | |
3965 | bool _result; | |
3966 | wxGenericDragImage * _arg0; | |
3967 | wxPoint * _arg1; | |
3968 | PyObject * _argo0 = 0; | |
3969 | wxPoint temp; | |
3970 | PyObject * _obj1 = 0; | |
3971 | char *_kwnames[] = { "self","pt", NULL }; | |
3972 | ||
3973 | self = self; | |
3974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
3975 | return NULL; | |
3976 | if (_argo0) { | |
3977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p."); | |
3980 | return NULL; | |
3981 | } | |
3982 | } | |
3983 | { | |
3984 | _arg1 = &temp; | |
3985 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3986 | return NULL; | |
3987 | } | |
3988 | { | |
4268f798 | 3989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3990 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); |
f6bcfd97 | 3991 | |
4268f798 RD |
3992 | wxPyEndAllowThreads(__tstate); |
3993 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3994 | } _resultobj = Py_BuildValue("i",_result); |
3995 | return _resultobj; | |
3996 | } | |
3997 | ||
3998 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
3999 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4000 | PyObject * _resultobj; | |
4001 | bool _result; | |
4002 | wxGenericDragImage * _arg0; | |
4003 | PyObject * _argo0 = 0; | |
4004 | char *_kwnames[] = { "self", NULL }; | |
4005 | ||
4006 | self = self; | |
4007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
4008 | return NULL; | |
4009 | if (_argo0) { | |
4010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
4013 | return NULL; | |
4014 | } | |
4015 | } | |
4016 | { | |
4268f798 | 4017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4018 | _result = (bool )wxDragImage_Show(_arg0); |
f6bcfd97 | 4019 | |
4268f798 RD |
4020 | wxPyEndAllowThreads(__tstate); |
4021 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4022 | } _resultobj = Py_BuildValue("i",_result); |
4023 | return _resultobj; | |
4024 | } | |
4025 | ||
4026 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
4027 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4028 | PyObject * _resultobj; | |
4029 | bool _result; | |
4030 | wxGenericDragImage * _arg0; | |
4031 | PyObject * _argo0 = 0; | |
4032 | char *_kwnames[] = { "self", NULL }; | |
4033 | ||
4034 | self = self; | |
4035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
4036 | return NULL; | |
4037 | if (_argo0) { | |
4038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
4041 | return NULL; | |
4042 | } | |
4043 | } | |
4044 | { | |
4268f798 | 4045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4046 | _result = (bool )wxDragImage_Hide(_arg0); |
f6bcfd97 | 4047 | |
4268f798 RD |
4048 | wxPyEndAllowThreads(__tstate); |
4049 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4050 | } _resultobj = Py_BuildValue("i",_result); |
4051 | return _resultobj; | |
4052 | } | |
4053 | ||
4054 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
4055 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4056 | PyObject * _resultobj; | |
4057 | wxRect * _result; | |
4058 | wxGenericDragImage * _arg0; | |
4059 | wxPoint * _arg1; | |
4060 | PyObject * _argo0 = 0; | |
4061 | wxPoint temp; | |
4062 | PyObject * _obj1 = 0; | |
4063 | char *_kwnames[] = { "self","pos", NULL }; | |
4064 | char _ptemp[128]; | |
4065 | ||
4066 | self = self; | |
4067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
4068 | return NULL; | |
4069 | if (_argo0) { | |
4070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p."); | |
4073 | return NULL; | |
4074 | } | |
4075 | } | |
4076 | { | |
4077 | _arg1 = &temp; | |
4078 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4079 | return NULL; | |
4080 | } | |
4081 | { | |
4268f798 | 4082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4083 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); |
f6bcfd97 | 4084 | |
4268f798 RD |
4085 | wxPyEndAllowThreads(__tstate); |
4086 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4087 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
4088 | _resultobj = Py_BuildValue("s",_ptemp); | |
4089 | return _resultobj; | |
4090 | } | |
4091 | ||
4092 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4093 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4094 | PyObject * _resultobj; | |
4095 | bool _result; | |
4096 | wxGenericDragImage * _arg0; | |
4097 | wxPoint * _arg1; | |
4098 | wxPoint * _arg2; | |
4099 | bool _arg3; | |
4100 | bool _arg4; | |
4101 | PyObject * _argo0 = 0; | |
4102 | wxPoint temp; | |
4103 | PyObject * _obj1 = 0; | |
4104 | wxPoint temp0; | |
4105 | PyObject * _obj2 = 0; | |
4106 | int tempbool3; | |
4107 | int tempbool4; | |
4108 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
4109 | ||
4110 | self = self; | |
4111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
4112 | return NULL; | |
4113 | if (_argo0) { | |
4114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
4117 | return NULL; | |
4118 | } | |
4119 | } | |
4120 | { | |
4121 | _arg1 = &temp; | |
4122 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4123 | return NULL; | |
4124 | } | |
4125 | { | |
4126 | _arg2 = &temp0; | |
4127 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4128 | return NULL; | |
4129 | } | |
4130 | _arg3 = (bool ) tempbool3; | |
4131 | _arg4 = (bool ) tempbool4; | |
4132 | { | |
4268f798 | 4133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4134 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
f6bcfd97 | 4135 | |
4268f798 RD |
4136 | wxPyEndAllowThreads(__tstate); |
4137 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4138 | } _resultobj = Py_BuildValue("i",_result); |
4139 | return _resultobj; | |
4140 | } | |
4141 | ||
9416aa89 RD |
4142 | static void *SwigwxPyTimerTowxObject(void *ptr) { |
4143 | wxPyTimer *src; | |
4144 | wxObject *dest; | |
4145 | src = (wxPyTimer *) ptr; | |
4146 | dest = (wxObject *) src; | |
4147 | return (void *) dest; | |
4148 | } | |
4149 | ||
f6bcfd97 BP |
4150 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) |
4151 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4152 | PyObject * _resultobj; | |
4153 | wxPyTimer * _result; | |
4154 | PyObject * _arg0; | |
4155 | PyObject * _obj0 = 0; | |
4156 | char *_kwnames[] = { "notify", NULL }; | |
4157 | char _ptemp[128]; | |
4158 | ||
4159 | self = self; | |
4160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
4161 | return NULL; | |
4162 | { | |
4163 | _arg0 = _obj0; | |
4164 | } | |
4165 | { | |
4268f798 | 4166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4167 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); |
f6bcfd97 | 4168 | |
4268f798 RD |
4169 | wxPyEndAllowThreads(__tstate); |
4170 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4171 | } if (_result) { |
4172 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
4173 | _resultobj = Py_BuildValue("s",_ptemp); | |
4174 | } else { | |
4175 | Py_INCREF(Py_None); | |
4176 | _resultobj = Py_None; | |
4177 | } | |
4178 | return _resultobj; | |
4179 | } | |
4180 | ||
4181 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
4182 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4183 | PyObject * _resultobj; | |
4184 | wxPyTimer * _arg0; | |
4185 | PyObject * _argo0 = 0; | |
4186 | char *_kwnames[] = { "self", NULL }; | |
4187 | ||
4188 | self = self; | |
4189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
4190 | return NULL; | |
4191 | if (_argo0) { | |
4192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
4195 | return NULL; | |
4196 | } | |
4197 | } | |
4198 | { | |
4268f798 | 4199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4200 | delete_wxPyTimer(_arg0); |
f6bcfd97 | 4201 | |
4268f798 RD |
4202 | wxPyEndAllowThreads(__tstate); |
4203 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4204 | } Py_INCREF(Py_None); |
4205 | _resultobj = Py_None; | |
4206 | return _resultobj; | |
4207 | } | |
4208 | ||
4209 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
4210 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4211 | PyObject * _resultobj; | |
4212 | int _result; | |
4213 | wxPyTimer * _arg0; | |
4214 | PyObject * _argo0 = 0; | |
4215 | char *_kwnames[] = { "self", NULL }; | |
4216 | ||
4217 | self = self; | |
4218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
4219 | return NULL; | |
4220 | if (_argo0) { | |
4221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
4224 | return NULL; | |
4225 | } | |
4226 | } | |
4227 | { | |
4268f798 | 4228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4229 | _result = (int )wxPyTimer_GetInterval(_arg0); |
f6bcfd97 | 4230 | |
4268f798 RD |
4231 | wxPyEndAllowThreads(__tstate); |
4232 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4233 | } _resultobj = Py_BuildValue("i",_result); |
4234 | return _resultobj; | |
4235 | } | |
4236 | ||
4237 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
4238 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4239 | PyObject * _resultobj; | |
4240 | bool _result; | |
4241 | wxPyTimer * _arg0; | |
4242 | PyObject * _argo0 = 0; | |
4243 | char *_kwnames[] = { "self", NULL }; | |
4244 | ||
4245 | self = self; | |
4246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
4247 | return NULL; | |
4248 | if (_argo0) { | |
4249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
4252 | return NULL; | |
4253 | } | |
4254 | } | |
4255 | { | |
4268f798 | 4256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4257 | _result = (bool )wxPyTimer_IsOneShot(_arg0); |
f6bcfd97 | 4258 | |
4268f798 RD |
4259 | wxPyEndAllowThreads(__tstate); |
4260 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4261 | } _resultobj = Py_BuildValue("i",_result); |
4262 | return _resultobj; | |
4263 | } | |
4264 | ||
4265 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
4266 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4267 | PyObject * _resultobj; | |
4268 | bool _result; | |
4269 | wxPyTimer * _arg0; | |
4270 | PyObject * _argo0 = 0; | |
4271 | char *_kwnames[] = { "self", NULL }; | |
4272 | ||
4273 | self = self; | |
4274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
4275 | return NULL; | |
4276 | if (_argo0) { | |
4277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
4280 | return NULL; | |
4281 | } | |
4282 | } | |
4283 | { | |
4268f798 | 4284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4285 | _result = (bool )wxPyTimer_IsRunning(_arg0); |
f6bcfd97 | 4286 | |
4268f798 RD |
4287 | wxPyEndAllowThreads(__tstate); |
4288 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4289 | } _resultobj = Py_BuildValue("i",_result); |
4290 | return _resultobj; | |
4291 | } | |
4292 | ||
4293 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
4294 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4295 | PyObject * _resultobj; | |
4296 | wxPyTimer * _arg0; | |
4297 | wxEvtHandler * _arg1; | |
4298 | int _arg2 = (int ) -1; | |
4299 | PyObject * _argo0 = 0; | |
4300 | PyObject * _argo1 = 0; | |
4301 | char *_kwnames[] = { "self","owner","id", NULL }; | |
4302 | ||
4303 | self = self; | |
4304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4305 | return NULL; | |
4306 | if (_argo0) { | |
4307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
4310 | return NULL; | |
4311 | } | |
4312 | } | |
4313 | if (_argo1) { | |
4314 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4315 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
4317 | return NULL; | |
4318 | } | |
4319 | } | |
4320 | { | |
4268f798 | 4321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4322 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); |
f6bcfd97 | 4323 | |
4268f798 RD |
4324 | wxPyEndAllowThreads(__tstate); |
4325 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4326 | } Py_INCREF(Py_None); |
4327 | _resultobj = Py_None; | |
4328 | return _resultobj; | |
4329 | } | |
4330 | ||
4331 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
4332 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4333 | PyObject * _resultobj; | |
4334 | wxPyTimer * _arg0; | |
4335 | int _arg1 = (int ) -1; | |
4336 | int _arg2 = (int ) FALSE; | |
4337 | PyObject * _argo0 = 0; | |
4338 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
4339 | ||
4340 | self = self; | |
4341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4342 | return NULL; | |
4343 | if (_argo0) { | |
4344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
4347 | return NULL; | |
4348 | } | |
4349 | } | |
4350 | { | |
4268f798 | 4351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4352 | wxPyTimer_Start(_arg0,_arg1,_arg2); |
f6bcfd97 | 4353 | |
4268f798 RD |
4354 | wxPyEndAllowThreads(__tstate); |
4355 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4356 | } Py_INCREF(Py_None); |
4357 | _resultobj = Py_None; | |
4358 | return _resultobj; | |
4359 | } | |
4360 | ||
4361 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
4362 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4363 | PyObject * _resultobj; | |
4364 | wxPyTimer * _arg0; | |
f0261a72 RD |
4365 | PyObject * _argo0 = 0; |
4366 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4367 | |
4368 | self = self; | |
f6bcfd97 | 4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) |
f0261a72 RD |
4370 | return NULL; |
4371 | if (_argo0) { | |
4372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { |
4374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
f0261a72 RD |
4375 | return NULL; |
4376 | } | |
4377 | } | |
4378 | { | |
4268f798 | 4379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4380 | wxPyTimer_Stop(_arg0); |
f0261a72 | 4381 | |
4268f798 RD |
4382 | wxPyEndAllowThreads(__tstate); |
4383 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4384 | } Py_INCREF(Py_None); |
4385 | _resultobj = Py_None; | |
f0261a72 RD |
4386 | return _resultobj; |
4387 | } | |
4388 | ||
b37c7e1d RD |
4389 | #define new_wxStopWatch() (new wxStopWatch()) |
4390 | static PyObject *_wrap_new_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4391 | PyObject * _resultobj; | |
4392 | wxStopWatch * _result; | |
4393 | char *_kwnames[] = { NULL }; | |
4394 | char _ptemp[128]; | |
4395 | ||
4396 | self = self; | |
4397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxStopWatch",_kwnames)) | |
4398 | return NULL; | |
4399 | { | |
4268f798 | 4400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4401 | _result = (wxStopWatch *)new_wxStopWatch(); |
b37c7e1d | 4402 | |
4268f798 RD |
4403 | wxPyEndAllowThreads(__tstate); |
4404 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4405 | } if (_result) { |
4406 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStopWatch_p"); | |
4407 | _resultobj = Py_BuildValue("s",_ptemp); | |
4408 | } else { | |
4409 | Py_INCREF(Py_None); | |
4410 | _resultobj = Py_None; | |
4411 | } | |
4412 | return _resultobj; | |
4413 | } | |
4414 | ||
68320e40 RD |
4415 | #define delete_wxStopWatch(_swigobj) (delete _swigobj) |
4416 | static PyObject *_wrap_delete_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4417 | PyObject * _resultobj; | |
4418 | wxStopWatch * _arg0; | |
4419 | PyObject * _argo0 = 0; | |
4420 | char *_kwnames[] = { "self", NULL }; | |
4421 | ||
4422 | self = self; | |
4423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxStopWatch",_kwnames,&_argo0)) | |
4424 | return NULL; | |
4425 | if (_argo0) { | |
4426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxStopWatch. Expected _wxStopWatch_p."); | |
4429 | return NULL; | |
4430 | } | |
4431 | } | |
4432 | { | |
4433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4434 | delete_wxStopWatch(_arg0); |
68320e40 RD |
4435 | |
4436 | wxPyEndAllowThreads(__tstate); | |
4437 | if (PyErr_Occurred()) return NULL; | |
4438 | } Py_INCREF(Py_None); | |
4439 | _resultobj = Py_None; | |
4440 | return _resultobj; | |
4441 | } | |
4442 | ||
b37c7e1d RD |
4443 | #define wxStopWatch_Start(_swigobj,_swigarg0) (_swigobj->Start(_swigarg0)) |
4444 | static PyObject *_wrap_wxStopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4445 | PyObject * _resultobj; | |
4446 | wxStopWatch * _arg0; | |
4447 | long _arg1 = (long ) 0; | |
4448 | PyObject * _argo0 = 0; | |
4449 | char *_kwnames[] = { "self","t", NULL }; | |
4450 | ||
4451 | self = self; | |
4452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxStopWatch_Start",_kwnames,&_argo0,&_arg1)) | |
4453 | return NULL; | |
4454 | if (_argo0) { | |
4455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Start. Expected _wxStopWatch_p."); | |
4458 | return NULL; | |
4459 | } | |
4460 | } | |
4461 | { | |
4268f798 | 4462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4463 | wxStopWatch_Start(_arg0,_arg1); |
b37c7e1d | 4464 | |
4268f798 RD |
4465 | wxPyEndAllowThreads(__tstate); |
4466 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4467 | } Py_INCREF(Py_None); |
4468 | _resultobj = Py_None; | |
4469 | return _resultobj; | |
4470 | } | |
4471 | ||
4472 | #define wxStopWatch_Pause(_swigobj) (_swigobj->Pause()) | |
4473 | static PyObject *_wrap_wxStopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4474 | PyObject * _resultobj; | |
4475 | wxStopWatch * _arg0; | |
4476 | PyObject * _argo0 = 0; | |
4477 | char *_kwnames[] = { "self", NULL }; | |
4478 | ||
4479 | self = self; | |
4480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Pause",_kwnames,&_argo0)) | |
4481 | return NULL; | |
4482 | if (_argo0) { | |
4483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Pause. Expected _wxStopWatch_p."); | |
4486 | return NULL; | |
4487 | } | |
4488 | } | |
4489 | { | |
4268f798 | 4490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4491 | wxStopWatch_Pause(_arg0); |
b37c7e1d | 4492 | |
4268f798 RD |
4493 | wxPyEndAllowThreads(__tstate); |
4494 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4495 | } Py_INCREF(Py_None); |
4496 | _resultobj = Py_None; | |
4497 | return _resultobj; | |
4498 | } | |
4499 | ||
4500 | #define wxStopWatch_Resume(_swigobj) (_swigobj->Resume()) | |
4501 | static PyObject *_wrap_wxStopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4502 | PyObject * _resultobj; | |
4503 | wxStopWatch * _arg0; | |
4504 | PyObject * _argo0 = 0; | |
4505 | char *_kwnames[] = { "self", NULL }; | |
4506 | ||
4507 | self = self; | |
4508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Resume",_kwnames,&_argo0)) | |
4509 | return NULL; | |
4510 | if (_argo0) { | |
4511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Resume. Expected _wxStopWatch_p."); | |
4514 | return NULL; | |
4515 | } | |
4516 | } | |
4517 | { | |
4268f798 | 4518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4519 | wxStopWatch_Resume(_arg0); |
b37c7e1d | 4520 | |
4268f798 RD |
4521 | wxPyEndAllowThreads(__tstate); |
4522 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4523 | } Py_INCREF(Py_None); |
4524 | _resultobj = Py_None; | |
4525 | return _resultobj; | |
4526 | } | |
4527 | ||
4528 | #define wxStopWatch_Time(_swigobj) (_swigobj->Time()) | |
4529 | static PyObject *_wrap_wxStopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4530 | PyObject * _resultobj; | |
4531 | long _result; | |
4532 | wxStopWatch * _arg0; | |
4533 | PyObject * _argo0 = 0; | |
4534 | char *_kwnames[] = { "self", NULL }; | |
4535 | ||
4536 | self = self; | |
4537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Time",_kwnames,&_argo0)) | |
4538 | return NULL; | |
4539 | if (_argo0) { | |
4540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Time. Expected _wxStopWatch_p."); | |
4543 | return NULL; | |
4544 | } | |
4545 | } | |
4546 | { | |
4268f798 | 4547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4548 | _result = (long )wxStopWatch_Time(_arg0); |
b37c7e1d | 4549 | |
4268f798 RD |
4550 | wxPyEndAllowThreads(__tstate); |
4551 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4552 | } _resultobj = Py_BuildValue("l",_result); |
4553 | return _resultobj; | |
4554 | } | |
4555 | ||
f6bcfd97 BP |
4556 | #define new_wxLog() (new wxLog()) |
4557 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4558 | PyObject * _resultobj; |
f6bcfd97 BP |
4559 | wxLog * _result; |
4560 | char *_kwnames[] = { NULL }; | |
4561 | char _ptemp[128]; | |
f0261a72 RD |
4562 | |
4563 | self = self; | |
f6bcfd97 BP |
4564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) |
4565 | return NULL; | |
f0261a72 | 4566 | { |
4268f798 | 4567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4568 | _result = (wxLog *)new_wxLog(); |
f6bcfd97 | 4569 | |
4268f798 RD |
4570 | wxPyEndAllowThreads(__tstate); |
4571 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4572 | } if (_result) { |
4573 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4574 | _resultobj = Py_BuildValue("s",_ptemp); | |
4575 | } else { | |
4576 | Py_INCREF(Py_None); | |
4577 | _resultobj = Py_None; | |
4578 | } | |
4579 | return _resultobj; | |
f0261a72 | 4580 | } |
f6bcfd97 BP |
4581 | |
4582 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4583 | PyObject * _resultobj; | |
4584 | bool _result; | |
4585 | char *_kwnames[] = { NULL }; | |
4586 | ||
4587 | self = self; | |
4588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
4589 | return NULL; | |
f0261a72 | 4590 | { |
4268f798 | 4591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4592 | _result = (bool )wxLog::IsEnabled(); |
f6bcfd97 | 4593 | |
4268f798 RD |
4594 | wxPyEndAllowThreads(__tstate); |
4595 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4596 | } _resultobj = Py_BuildValue("i",_result); |
4597 | return _resultobj; | |
f0261a72 | 4598 | } |
f6bcfd97 BP |
4599 | |
4600 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4601 | PyObject * _resultobj; | |
4602 | bool _result; | |
4603 | bool _arg0 = (bool ) TRUE; | |
4604 | int tempbool0 = (int) TRUE; | |
4605 | char *_kwnames[] = { "doIt", NULL }; | |
4606 | ||
4607 | self = self; | |
4608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
4609 | return NULL; | |
4610 | _arg0 = (bool ) tempbool0; | |
4611 | { | |
4268f798 | 4612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4613 | _result = (bool )wxLog::EnableLogging(_arg0); |
f6bcfd97 | 4614 | |
4268f798 RD |
4615 | wxPyEndAllowThreads(__tstate); |
4616 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4617 | } _resultobj = Py_BuildValue("i",_result); |
4618 | return _resultobj; | |
4619 | } | |
4620 | ||
4621 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4622 | PyObject * _resultobj; | |
8baa46e9 | 4623 | unsigned long _arg0; |
c8bc7bb8 | 4624 | wxString * _arg1; |
f6bcfd97 | 4625 | int _arg2 = (int ) 0; |
c8bc7bb8 | 4626 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
4627 | char *_kwnames[] = { "level","szString","t", NULL }; |
4628 | ||
4629 | self = self; | |
8baa46e9 | 4630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"lO|i:wxLog_OnLog",_kwnames,&_arg0,&_obj1,&_arg2)) |
f0261a72 | 4631 | return NULL; |
c8bc7bb8 RD |
4632 | { |
4633 | _arg1 = wxString_in_helper(_obj1); | |
4634 | if (_arg1 == NULL) | |
4635 | return NULL; | |
4636 | } | |
f0261a72 | 4637 | { |
4268f798 | 4638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8baa46e9 | 4639 | wxLog::OnLog(_arg0,*_arg1,_arg2); |
f0261a72 | 4640 | |
4268f798 RD |
4641 | wxPyEndAllowThreads(__tstate); |
4642 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4643 | } Py_INCREF(Py_None); |
4644 | _resultobj = Py_None; | |
c8bc7bb8 RD |
4645 | { |
4646 | if (_obj1) | |
4647 | delete _arg1; | |
4648 | } | |
f6bcfd97 | 4649 | return _resultobj; |
f0261a72 | 4650 | } |
f6bcfd97 BP |
4651 | |
4652 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
4653 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4654 | PyObject * _resultobj; | |
4655 | wxLog * _arg0; | |
4656 | PyObject * _argo0 = 0; | |
4657 | char *_kwnames[] = { "self", NULL }; | |
4658 | ||
4659 | self = self; | |
4660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
4661 | return NULL; | |
4662 | if (_argo0) { | |
4663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
4666 | return NULL; | |
4667 | } | |
4668 | } | |
f0261a72 | 4669 | { |
4268f798 | 4670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4671 | wxLog_Flush(_arg0); |
f6bcfd97 | 4672 | |
4268f798 RD |
4673 | wxPyEndAllowThreads(__tstate); |
4674 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4675 | } Py_INCREF(Py_None); |
4676 | _resultobj = Py_None; | |
f0261a72 RD |
4677 | return _resultobj; |
4678 | } | |
4679 | ||
f6bcfd97 BP |
4680 | #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages()) |
4681 | static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4682 | PyObject * _resultobj; |
f6bcfd97 BP |
4683 | bool _result; |
4684 | wxLog * _arg0; | |
f0261a72 RD |
4685 | PyObject * _argo0 = 0; |
4686 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4687 | |
4688 | self = self; | |
f6bcfd97 | 4689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0)) |
f0261a72 RD |
4690 | return NULL; |
4691 | if (_argo0) { | |
4692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p."); | |
f0261a72 RD |
4695 | return NULL; |
4696 | } | |
4697 | } | |
4698 | { | |
4268f798 | 4699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4700 | _result = (bool )wxLog_HasPendingMessages(_arg0); |
f0261a72 | 4701 | |
4268f798 RD |
4702 | wxPyEndAllowThreads(__tstate); |
4703 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 4704 | } _resultobj = Py_BuildValue("i",_result); |
f0261a72 RD |
4705 | return _resultobj; |
4706 | } | |
4707 | ||
f6bcfd97 | 4708 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4709 | PyObject * _resultobj; |
f6bcfd97 BP |
4710 | char *_kwnames[] = { NULL }; |
4711 | ||
4712 | self = self; | |
4713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4714 | return NULL; | |
4715 | { | |
4268f798 | 4716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4717 | wxLog::FlushActive(); |
f6bcfd97 | 4718 | |
4268f798 RD |
4719 | wxPyEndAllowThreads(__tstate); |
4720 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4721 | } Py_INCREF(Py_None); |
4722 | _resultobj = Py_None; | |
4723 | return _resultobj; | |
4724 | } | |
4725 | ||
4726 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4727 | PyObject * _resultobj; | |
4728 | wxLog * _result; | |
4729 | char *_kwnames[] = { NULL }; | |
4730 | char _ptemp[128]; | |
4731 | ||
4732 | self = self; | |
4733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
4734 | return NULL; | |
4735 | { | |
4268f798 | 4736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4737 | _result = (wxLog *)wxLog::GetActiveTarget(); |
f6bcfd97 | 4738 | |
4268f798 RD |
4739 | wxPyEndAllowThreads(__tstate); |
4740 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4741 | } if (_result) { |
4742 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4743 | _resultobj = Py_BuildValue("s",_ptemp); | |
4744 | } else { | |
4745 | Py_INCREF(Py_None); | |
4746 | _resultobj = Py_None; | |
4747 | } | |
4748 | return _resultobj; | |
4749 | } | |
4750 | ||
4751 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4752 | PyObject * _resultobj; | |
4753 | wxLog * _result; | |
4754 | wxLog * _arg0; | |
f0261a72 | 4755 | PyObject * _argo0 = 0; |
f6bcfd97 | 4756 | char *_kwnames[] = { "pLogger", NULL }; |
f0261a72 RD |
4757 | char _ptemp[128]; |
4758 | ||
4759 | self = self; | |
f6bcfd97 | 4760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) |
f0261a72 RD |
4761 | return NULL; |
4762 | if (_argo0) { | |
4763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
f0261a72 RD |
4766 | return NULL; |
4767 | } | |
4768 | } | |
4769 | { | |
4268f798 | 4770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4771 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); |
f0261a72 | 4772 | |
4268f798 RD |
4773 | wxPyEndAllowThreads(__tstate); |
4774 | if (PyErr_Occurred()) return NULL; | |
f0261a72 | 4775 | } if (_result) { |
f6bcfd97 | 4776 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); |
f0261a72 RD |
4777 | _resultobj = Py_BuildValue("s",_ptemp); |
4778 | } else { | |
4779 | Py_INCREF(Py_None); | |
4780 | _resultobj = Py_None; | |
4781 | } | |
4782 | return _resultobj; | |
4783 | } | |
4784 | ||
f6bcfd97 | 4785 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4786 | PyObject * _resultobj; |
f6bcfd97 BP |
4787 | char *_kwnames[] = { NULL }; |
4788 | ||
4789 | self = self; | |
4790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
4791 | return NULL; | |
4792 | { | |
4268f798 | 4793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4794 | wxLog::Suspend(); |
f6bcfd97 | 4795 | |
4268f798 RD |
4796 | wxPyEndAllowThreads(__tstate); |
4797 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4798 | } Py_INCREF(Py_None); |
4799 | _resultobj = Py_None; | |
4800 | return _resultobj; | |
4801 | } | |
4802 | ||
4803 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4804 | PyObject * _resultobj; | |
4805 | char *_kwnames[] = { NULL }; | |
4806 | ||
4807 | self = self; | |
4808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
4809 | return NULL; | |
4810 | { | |
4268f798 | 4811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4812 | wxLog::Resume(); |
f6bcfd97 | 4813 | |
4268f798 RD |
4814 | wxPyEndAllowThreads(__tstate); |
4815 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4816 | } Py_INCREF(Py_None); |
4817 | _resultobj = Py_None; | |
4818 | return _resultobj; | |
4819 | } | |
4820 | ||
f6bcfd97 BP |
4821 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { |
4822 | PyObject * _resultobj; | |
d6eacb25 RD |
4823 | bool _arg0 = (bool ) TRUE; |
4824 | int tempbool0 = (int) TRUE; | |
4825 | char *_kwnames[] = { "bVerbose", NULL }; | |
f0261a72 RD |
4826 | |
4827 | self = self; | |
d6eacb25 | 4828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_SetVerbose",_kwnames,&tempbool0)) |
f0261a72 | 4829 | return NULL; |
d6eacb25 | 4830 | _arg0 = (bool ) tempbool0; |
f0261a72 | 4831 | { |
4268f798 | 4832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d6eacb25 | 4833 | wxLog::SetVerbose(_arg0); |
f0261a72 | 4834 | |
4268f798 RD |
4835 | wxPyEndAllowThreads(__tstate); |
4836 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4837 | } Py_INCREF(Py_None); |
4838 | _resultobj = Py_None; | |
4839 | return _resultobj; | |
4840 | } | |
4841 | ||
f6bcfd97 | 4842 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4843 | PyObject * _resultobj; |
f6bcfd97 BP |
4844 | char *_kwnames[] = { NULL }; |
4845 | ||
4846 | self = self; | |
4847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
4848 | return NULL; | |
4849 | { | |
4268f798 | 4850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4851 | wxLog::DontCreateOnDemand(); |
f6bcfd97 | 4852 | |
4268f798 RD |
4853 | wxPyEndAllowThreads(__tstate); |
4854 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4855 | } Py_INCREF(Py_None); |
4856 | _resultobj = Py_None; | |
4857 | return _resultobj; | |
4858 | } | |
4859 | ||
4860 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4861 | PyObject * _resultobj; | |
8baa46e9 | 4862 | long _arg0; |
f6bcfd97 | 4863 | char *_kwnames[] = { "ulMask", NULL }; |
f0261a72 RD |
4864 | |
4865 | self = self; | |
8baa46e9 | 4866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxLog_SetTraceMask",_kwnames,&_arg0)) |
f6bcfd97 | 4867 | return NULL; |
f6bcfd97 | 4868 | { |
4268f798 | 4869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8baa46e9 | 4870 | wxLog::SetTraceMask(_arg0); |
f6bcfd97 | 4871 | |
4268f798 RD |
4872 | wxPyEndAllowThreads(__tstate); |
4873 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4874 | } Py_INCREF(Py_None); |
4875 | _resultobj = Py_None; | |
4876 | return _resultobj; | |
4877 | } | |
4878 | ||
4879 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4880 | PyObject * _resultobj; | |
4881 | wxString * _arg0; | |
4882 | PyObject * _obj0 = 0; | |
4883 | char *_kwnames[] = { "str", NULL }; | |
4884 | ||
4885 | self = self; | |
4886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
4887 | return NULL; | |
4888 | { | |
c8bc7bb8 RD |
4889 | _arg0 = wxString_in_helper(_obj0); |
4890 | if (_arg0 == NULL) | |
f6bcfd97 | 4891 | return NULL; |
f6bcfd97 BP |
4892 | } |
4893 | { | |
4268f798 | 4894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4895 | wxLog::AddTraceMask(*_arg0); |
f6bcfd97 | 4896 | |
4268f798 RD |
4897 | wxPyEndAllowThreads(__tstate); |
4898 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4899 | } Py_INCREF(Py_None); |
4900 | _resultobj = Py_None; | |
4901 | { | |
4902 | if (_obj0) | |
4903 | delete _arg0; | |
4904 | } | |
4905 | return _resultobj; | |
4906 | } | |
4907 | ||
4908 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4909 | PyObject * _resultobj; | |
4910 | wxString * _arg0; | |
4911 | PyObject * _obj0 = 0; | |
4912 | char *_kwnames[] = { "str", NULL }; | |
4913 | ||
4914 | self = self; | |
4915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
f0261a72 | 4916 | return NULL; |
f0261a72 | 4917 | { |
c8bc7bb8 RD |
4918 | _arg0 = wxString_in_helper(_obj0); |
4919 | if (_arg0 == NULL) | |
185d7c3e | 4920 | return NULL; |
f0261a72 RD |
4921 | } |
4922 | { | |
4268f798 | 4923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4924 | wxLog::RemoveTraceMask(*_arg0); |
f0261a72 | 4925 | |
4268f798 RD |
4926 | wxPyEndAllowThreads(__tstate); |
4927 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4928 | } Py_INCREF(Py_None); |
4929 | _resultobj = Py_None; | |
f6bcfd97 BP |
4930 | { |
4931 | if (_obj0) | |
4932 | delete _arg0; | |
4933 | } | |
f0261a72 RD |
4934 | return _resultobj; |
4935 | } | |
4936 | ||
76bfdc78 RD |
4937 | static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { |
4938 | PyObject * _resultobj; | |
4939 | char *_kwnames[] = { NULL }; | |
4940 | ||
4941 | self = self; | |
4942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames)) | |
4943 | return NULL; | |
4944 | { | |
4268f798 | 4945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4946 | wxLog::ClearTraceMasks(); |
76bfdc78 | 4947 | |
4268f798 RD |
4948 | wxPyEndAllowThreads(__tstate); |
4949 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
4950 | } Py_INCREF(Py_None); |
4951 | _resultobj = Py_None; | |
4952 | return _resultobj; | |
4953 | } | |
4954 | ||
4955 | static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4956 | PyObject * _resultobj; | |
137b5242 RD |
4957 | wxString * _arg0; |
4958 | PyObject * _obj0 = 0; | |
76bfdc78 RD |
4959 | char *_kwnames[] = { "ts", NULL }; |
4960 | ||
4961 | self = self; | |
137b5242 | 4962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTimestamp",_kwnames,&_obj0)) |
76bfdc78 | 4963 | return NULL; |
137b5242 RD |
4964 | { |
4965 | _arg0 = wxString_in_helper(_obj0); | |
4966 | if (_arg0 == NULL) | |
4967 | return NULL; | |
4968 | } | |
76bfdc78 | 4969 | { |
4268f798 | 4970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 4971 | wxLog::SetTimestamp(*_arg0); |
76bfdc78 | 4972 | |
4268f798 RD |
4973 | wxPyEndAllowThreads(__tstate); |
4974 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
4975 | } Py_INCREF(Py_None); |
4976 | _resultobj = Py_None; | |
137b5242 RD |
4977 | { |
4978 | if (_obj0) | |
4979 | delete _arg0; | |
4980 | } | |
76bfdc78 RD |
4981 | return _resultobj; |
4982 | } | |
4983 | ||
4984 | static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4985 | PyObject * _resultobj; | |
137b5242 | 4986 | wxString * _result; |
76bfdc78 RD |
4987 | char *_kwnames[] = { NULL }; |
4988 | ||
4989 | self = self; | |
4990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames)) | |
4991 | return NULL; | |
4992 | { | |
4268f798 | 4993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 RD |
4994 | const wxString & _result_ref = wxLog::GetTimestamp(); |
4995 | _result = (wxString *) &_result_ref; | |
76bfdc78 | 4996 | |
4268f798 RD |
4997 | wxPyEndAllowThreads(__tstate); |
4998 | if (PyErr_Occurred()) return NULL; | |
137b5242 RD |
4999 | }{ |
5000 | #if wxUSE_UNICODE | |
5001 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5002 | #else | |
5003 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5004 | #endif | |
5005 | } | |
76bfdc78 RD |
5006 | return _resultobj; |
5007 | } | |
5008 | ||
f6bcfd97 BP |
5009 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) |
5010 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
a1df7a95 | 5011 | PyObject * _resultobj; |
f6bcfd97 BP |
5012 | bool _result; |
5013 | wxLog * _arg0; | |
a1df7a95 | 5014 | PyObject * _argo0 = 0; |
f6bcfd97 | 5015 | char *_kwnames[] = { "self", NULL }; |
a1df7a95 RD |
5016 | |
5017 | self = self; | |
f6bcfd97 | 5018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) |
a1df7a95 RD |
5019 | return NULL; |
5020 | if (_argo0) { | |
5021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
5023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
a1df7a95 RD |
5024 | return NULL; |
5025 | } | |
5026 | } | |
5027 | { | |
4268f798 | 5028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5029 | _result = (bool )wxLog_GetVerbose(_arg0); |
a1df7a95 | 5030 | |
4268f798 RD |
5031 | wxPyEndAllowThreads(__tstate); |
5032 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5033 | } _resultobj = Py_BuildValue("i",_result); |
a1df7a95 RD |
5034 | return _resultobj; |
5035 | } | |
5036 | ||
f6bcfd97 | 5037 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
a1df7a95 | 5038 | PyObject * _resultobj; |
f6bcfd97 BP |
5039 | wxTraceMask * _result; |
5040 | char *_kwnames[] = { NULL }; | |
5041 | char _ptemp[128]; | |
a1df7a95 RD |
5042 | |
5043 | self = self; | |
f6bcfd97 | 5044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) |
a1df7a95 | 5045 | return NULL; |
a1df7a95 | 5046 | { |
4268f798 | 5047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5048 | _result = new wxTraceMask (wxLog::GetTraceMask()); |
f6bcfd97 | 5049 | |
4268f798 RD |
5050 | wxPyEndAllowThreads(__tstate); |
5051 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5052 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTraceMask_p"); |
5053 | _resultobj = Py_BuildValue("s",_ptemp); | |
5054 | return _resultobj; | |
a1df7a95 | 5055 | } |
f6bcfd97 BP |
5056 | |
5057 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5058 | PyObject * _resultobj; | |
5059 | bool _result; | |
c8bc7bb8 RD |
5060 | wxString * _arg0; |
5061 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
5062 | char *_kwnames[] = { "mask", NULL }; |
5063 | ||
5064 | self = self; | |
c8bc7bb8 | 5065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_IsAllowedTraceMask",_kwnames,&_obj0)) |
f6bcfd97 | 5066 | return NULL; |
c8bc7bb8 RD |
5067 | { |
5068 | _arg0 = wxString_in_helper(_obj0); | |
5069 | if (_arg0 == NULL) | |
5070 | return NULL; | |
5071 | } | |
a1df7a95 | 5072 | { |
4268f798 | 5073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5074 | _result = (bool )wxLog::IsAllowedTraceMask(*_arg0); |
a1df7a95 | 5075 | |
4268f798 RD |
5076 | wxPyEndAllowThreads(__tstate); |
5077 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5078 | } _resultobj = Py_BuildValue("i",_result); |
c8bc7bb8 RD |
5079 | { |
5080 | if (_obj0) | |
5081 | delete _arg0; | |
5082 | } | |
a1df7a95 RD |
5083 | return _resultobj; |
5084 | } | |
5085 | ||
76bfdc78 RD |
5086 | static wxString wxLog_TimeStamp(wxLog *self) { |
5087 | wxString msg; | |
5088 | wxLog::TimeStamp(&msg); | |
5089 | return msg; | |
5090 | } | |
5091 | static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5092 | PyObject * _resultobj; | |
5093 | wxString * _result; | |
5094 | wxLog * _arg0; | |
5095 | PyObject * _argo0 = 0; | |
5096 | char *_kwnames[] = { "self", NULL }; | |
5097 | ||
5098 | self = self; | |
5099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0)) | |
5100 | return NULL; | |
5101 | if (_argo0) { | |
5102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p."); | |
5105 | return NULL; | |
5106 | } | |
5107 | } | |
5108 | { | |
4268f798 | 5109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5110 | _result = new wxString (wxLog_TimeStamp(_arg0)); |
76bfdc78 | 5111 | |
4268f798 RD |
5112 | wxPyEndAllowThreads(__tstate); |
5113 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 | 5114 | }{ |
c8bc7bb8 RD |
5115 | #if wxUSE_UNICODE |
5116 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5117 | #else | |
76bfdc78 | 5118 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5119 | #endif |
76bfdc78 RD |
5120 | } |
5121 | { | |
5122 | delete _result; | |
5123 | } | |
5124 | return _resultobj; | |
5125 | } | |
5126 | ||
f6bcfd97 BP |
5127 | static void *SwigwxLogStderrTowxLog(void *ptr) { |
5128 | wxLogStderr *src; | |
5129 | wxLog *dest; | |
5130 | src = (wxLogStderr *) ptr; | |
5131 | dest = (wxLog *) src; | |
5132 | return (void *) dest; | |
5133 | } | |
5134 | ||
5135 | #define new_wxLogStderr() (new wxLogStderr()) | |
5136 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5137 | PyObject * _resultobj; |
f6bcfd97 BP |
5138 | wxLogStderr * _result; |
5139 | char *_kwnames[] = { NULL }; | |
5140 | char _ptemp[128]; | |
f0261a72 RD |
5141 | |
5142 | self = self; | |
f6bcfd97 | 5143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) |
f0261a72 | 5144 | return NULL; |
f0261a72 | 5145 | { |
4268f798 | 5146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5147 | _result = (wxLogStderr *)new_wxLogStderr(); |
f0261a72 | 5148 | |
4268f798 RD |
5149 | wxPyEndAllowThreads(__tstate); |
5150 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5151 | } if (_result) { |
5152 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
5153 | _resultobj = Py_BuildValue("s",_ptemp); | |
5154 | } else { | |
5155 | Py_INCREF(Py_None); | |
5156 | _resultobj = Py_None; | |
5157 | } | |
f0261a72 RD |
5158 | return _resultobj; |
5159 | } | |
5160 | ||
f6bcfd97 BP |
5161 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { |
5162 | wxLogTextCtrl *src; | |
5163 | wxLog *dest; | |
5164 | src = (wxLogTextCtrl *) ptr; | |
5165 | dest = (wxLog *) src; | |
5166 | return (void *) dest; | |
5167 | } | |
5168 | ||
5169 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
5170 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5171 | PyObject * _resultobj; |
f6bcfd97 BP |
5172 | wxLogTextCtrl * _result; |
5173 | wxTextCtrl * _arg0; | |
f0261a72 | 5174 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5175 | char *_kwnames[] = { "pTextCtrl", NULL }; |
5176 | char _ptemp[128]; | |
f0261a72 RD |
5177 | |
5178 | self = self; | |
f6bcfd97 | 5179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) |
f0261a72 RD |
5180 | return NULL; |
5181 | if (_argo0) { | |
5182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
5184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
f0261a72 RD |
5185 | return NULL; |
5186 | } | |
5187 | } | |
5188 | { | |
4268f798 | 5189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5190 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); |
f0261a72 | 5191 | |
4268f798 RD |
5192 | wxPyEndAllowThreads(__tstate); |
5193 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5194 | } if (_result) { |
5195 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
5196 | _resultobj = Py_BuildValue("s",_ptemp); | |
5197 | } else { | |
5198 | Py_INCREF(Py_None); | |
5199 | _resultobj = Py_None; | |
5200 | } | |
f0261a72 RD |
5201 | return _resultobj; |
5202 | } | |
5203 | ||
f6bcfd97 BP |
5204 | static void *SwigwxLogGuiTowxLog(void *ptr) { |
5205 | wxLogGui *src; | |
5206 | wxLog *dest; | |
5207 | src = (wxLogGui *) ptr; | |
5208 | dest = (wxLog *) src; | |
5209 | return (void *) dest; | |
5210 | } | |
5211 | ||
5212 | #define new_wxLogGui() (new wxLogGui()) | |
5213 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5214 | PyObject * _resultobj; |
f6bcfd97 | 5215 | wxLogGui * _result; |
b1462dfa RD |
5216 | char *_kwnames[] = { NULL }; |
5217 | char _ptemp[128]; | |
5218 | ||
5219 | self = self; | |
f6bcfd97 | 5220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) |
b1462dfa RD |
5221 | return NULL; |
5222 | { | |
4268f798 | 5223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5224 | _result = (wxLogGui *)new_wxLogGui(); |
b1462dfa | 5225 | |
4268f798 RD |
5226 | wxPyEndAllowThreads(__tstate); |
5227 | if (PyErr_Occurred()) return NULL; | |
b1462dfa | 5228 | } if (_result) { |
f6bcfd97 | 5229 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); |
b1462dfa RD |
5230 | _resultobj = Py_BuildValue("s",_ptemp); |
5231 | } else { | |
5232 | Py_INCREF(Py_None); | |
5233 | _resultobj = Py_None; | |
5234 | } | |
5235 | return _resultobj; | |
5236 | } | |
5237 | ||
f6bcfd97 BP |
5238 | static void *SwigwxLogWindowTowxLog(void *ptr) { |
5239 | wxLogWindow *src; | |
5240 | wxLog *dest; | |
5241 | src = (wxLogWindow *) ptr; | |
5242 | dest = (wxLog *) src; | |
5243 | return (void *) dest; | |
5244 | } | |
5245 | ||
5246 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5247 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5248 | PyObject * _resultobj; |
f6bcfd97 BP |
5249 | wxLogWindow * _result; |
5250 | wxFrame * _arg0; | |
c8bc7bb8 | 5251 | wxString * _arg1; |
f6bcfd97 BP |
5252 | bool _arg2 = (bool ) TRUE; |
5253 | bool _arg3 = (bool ) TRUE; | |
b1462dfa | 5254 | PyObject * _argo0 = 0; |
c8bc7bb8 | 5255 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
5256 | int tempbool2 = (int) TRUE; |
5257 | int tempbool3 = (int) TRUE; | |
5258 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
5259 | char _ptemp[128]; | |
b1462dfa RD |
5260 | |
5261 | self = self; | |
c8bc7bb8 | 5262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:new_wxLogWindow",_kwnames,&_argo0,&_obj1,&tempbool2,&tempbool3)) |
b1462dfa RD |
5263 | return NULL; |
5264 | if (_argo0) { | |
5265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { |
5267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
b1462dfa RD |
5268 | return NULL; |
5269 | } | |
5270 | } | |
c8bc7bb8 RD |
5271 | { |
5272 | _arg1 = wxString_in_helper(_obj1); | |
5273 | if (_arg1 == NULL) | |
5274 | return NULL; | |
5275 | } | |
f6bcfd97 BP |
5276 | _arg2 = (bool ) tempbool2; |
5277 | _arg3 = (bool ) tempbool3; | |
b1462dfa | 5278 | { |
4268f798 | 5279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5280 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,*_arg1,_arg2,_arg3); |
b1462dfa | 5281 | |
4268f798 RD |
5282 | wxPyEndAllowThreads(__tstate); |
5283 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5284 | } if (_result) { |
5285 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
5286 | _resultobj = Py_BuildValue("s",_ptemp); | |
5287 | } else { | |
5288 | Py_INCREF(Py_None); | |
5289 | _resultobj = Py_None; | |
5290 | } | |
c8bc7bb8 RD |
5291 | { |
5292 | if (_obj1) | |
5293 | delete _arg1; | |
5294 | } | |
b1462dfa RD |
5295 | return _resultobj; |
5296 | } | |
5297 | ||
f6bcfd97 BP |
5298 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) |
5299 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5300 | PyObject * _resultobj; |
f6bcfd97 BP |
5301 | wxLogWindow * _arg0; |
5302 | bool _arg1 = (bool ) TRUE; | |
b1462dfa | 5303 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5304 | int tempbool1 = (int) TRUE; |
5305 | char *_kwnames[] = { "self","bShow", NULL }; | |
b1462dfa RD |
5306 | |
5307 | self = self; | |
f6bcfd97 | 5308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) |
b1462dfa RD |
5309 | return NULL; |
5310 | if (_argo0) { | |
5311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5314 | return NULL; |
5315 | } | |
5316 | } | |
f6bcfd97 | 5317 | _arg1 = (bool ) tempbool1; |
b1462dfa | 5318 | { |
4268f798 | 5319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5320 | wxLogWindow_Show(_arg0,_arg1); |
b1462dfa | 5321 | |
4268f798 RD |
5322 | wxPyEndAllowThreads(__tstate); |
5323 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
5324 | } Py_INCREF(Py_None); |
5325 | _resultobj = Py_None; | |
5326 | return _resultobj; | |
5327 | } | |
5328 | ||
f6bcfd97 BP |
5329 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) |
5330 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5331 | PyObject * _resultobj; |
f6bcfd97 BP |
5332 | wxFrame * _result; |
5333 | wxLogWindow * _arg0; | |
b1462dfa | 5334 | PyObject * _argo0 = 0; |
f6bcfd97 | 5335 | char *_kwnames[] = { "self", NULL }; |
b1462dfa RD |
5336 | |
5337 | self = self; | |
f6bcfd97 | 5338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) |
b1462dfa RD |
5339 | return NULL; |
5340 | if (_argo0) { | |
5341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5344 | return NULL; |
5345 | } | |
5346 | } | |
b1462dfa | 5347 | { |
4268f798 | 5348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5349 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); |
b1462dfa | 5350 | |
4268f798 RD |
5351 | wxPyEndAllowThreads(__tstate); |
5352 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 5353 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
5354 | return _resultobj; |
5355 | } | |
5356 | ||
f6bcfd97 BP |
5357 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) |
5358 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5359 | PyObject * _resultobj; |
f6bcfd97 BP |
5360 | wxLog * _result; |
5361 | wxLogWindow * _arg0; | |
b1462dfa | 5362 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5363 | char *_kwnames[] = { "self", NULL }; |
5364 | char _ptemp[128]; | |
b1462dfa RD |
5365 | |
5366 | self = self; | |
f6bcfd97 | 5367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) |
b1462dfa RD |
5368 | return NULL; |
5369 | if (_argo0) { | |
5370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5373 | return NULL; |
5374 | } | |
5375 | } | |
5376 | { | |
4268f798 | 5377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5378 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); |
b1462dfa | 5379 | |
4268f798 RD |
5380 | wxPyEndAllowThreads(__tstate); |
5381 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5382 | } if (_result) { |
5383 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5384 | _resultobj = Py_BuildValue("s",_ptemp); | |
5385 | } else { | |
5386 | Py_INCREF(Py_None); | |
5387 | _resultobj = Py_None; | |
5388 | } | |
b1462dfa RD |
5389 | return _resultobj; |
5390 | } | |
5391 | ||
f6bcfd97 BP |
5392 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) |
5393 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5394 | PyObject * _resultobj; |
f6bcfd97 BP |
5395 | bool _result; |
5396 | wxLogWindow * _arg0; | |
65dd82cb RD |
5397 | PyObject * _argo0 = 0; |
5398 | char *_kwnames[] = { "self", NULL }; | |
5399 | ||
5400 | self = self; | |
f6bcfd97 | 5401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) |
65dd82cb RD |
5402 | return NULL; |
5403 | if (_argo0) { | |
5404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5407 | return NULL; |
5408 | } | |
5409 | } | |
5410 | { | |
4268f798 | 5411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5412 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); |
65dd82cb | 5413 | |
4268f798 RD |
5414 | wxPyEndAllowThreads(__tstate); |
5415 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5416 | } _resultobj = Py_BuildValue("i",_result); |
65dd82cb RD |
5417 | return _resultobj; |
5418 | } | |
5419 | ||
f6bcfd97 BP |
5420 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) |
5421 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5422 | PyObject * _resultobj; |
f6bcfd97 BP |
5423 | wxLogWindow * _arg0; |
5424 | bool _arg1; | |
65dd82cb | 5425 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5426 | int tempbool1; |
5427 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
65dd82cb RD |
5428 | |
5429 | self = self; | |
f6bcfd97 | 5430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) |
65dd82cb RD |
5431 | return NULL; |
5432 | if (_argo0) { | |
5433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5436 | return NULL; |
5437 | } | |
5438 | } | |
f6bcfd97 | 5439 | _arg1 = (bool ) tempbool1; |
65dd82cb | 5440 | { |
4268f798 | 5441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5442 | wxLogWindow_PassMessages(_arg0,_arg1); |
65dd82cb | 5443 | |
4268f798 RD |
5444 | wxPyEndAllowThreads(__tstate); |
5445 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5446 | } Py_INCREF(Py_None); |
5447 | _resultobj = Py_None; | |
65dd82cb RD |
5448 | return _resultobj; |
5449 | } | |
5450 | ||
76bfdc78 RD |
5451 | static void *SwigwxLogChainTowxLog(void *ptr) { |
5452 | wxLogChain *src; | |
5453 | wxLog *dest; | |
5454 | src = (wxLogChain *) ptr; | |
5455 | dest = (wxLog *) src; | |
5456 | return (void *) dest; | |
5457 | } | |
5458 | ||
5459 | #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0)) | |
5460 | static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5461 | PyObject * _resultobj; | |
5462 | wxLogChain * _result; | |
5463 | wxLog * _arg0; | |
5464 | PyObject * _argo0 = 0; | |
5465 | char *_kwnames[] = { "logger", NULL }; | |
5466 | char _ptemp[128]; | |
5467 | ||
5468 | self = self; | |
5469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0)) | |
5470 | return NULL; | |
5471 | if (_argo0) { | |
5472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p."); | |
5475 | return NULL; | |
5476 | } | |
5477 | } | |
5478 | { | |
4268f798 | 5479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5480 | _result = (wxLogChain *)new_wxLogChain(_arg0); |
76bfdc78 | 5481 | |
4268f798 RD |
5482 | wxPyEndAllowThreads(__tstate); |
5483 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5484 | } if (_result) { |
5485 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p"); | |
5486 | _resultobj = Py_BuildValue("s",_ptemp); | |
5487 | } else { | |
5488 | Py_INCREF(Py_None); | |
5489 | _resultobj = Py_None; | |
5490 | } | |
5491 | return _resultobj; | |
5492 | } | |
5493 | ||
5494 | #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0)) | |
5495 | static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5496 | PyObject * _resultobj; | |
5497 | wxLogChain * _arg0; | |
5498 | wxLog * _arg1; | |
5499 | PyObject * _argo0 = 0; | |
5500 | PyObject * _argo1 = 0; | |
5501 | char *_kwnames[] = { "self","logger", NULL }; | |
5502 | ||
5503 | self = self; | |
5504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1)) | |
5505 | return NULL; | |
5506 | if (_argo0) { | |
5507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p."); | |
5510 | return NULL; | |
5511 | } | |
5512 | } | |
5513 | if (_argo1) { | |
5514 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5515 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) { | |
5516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p."); | |
5517 | return NULL; | |
5518 | } | |
5519 | } | |
5520 | { | |
4268f798 | 5521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5522 | wxLogChain_SetLog(_arg0,_arg1); |
76bfdc78 | 5523 | |
4268f798 RD |
5524 | wxPyEndAllowThreads(__tstate); |
5525 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5526 | } Py_INCREF(Py_None); |
5527 | _resultobj = Py_None; | |
5528 | return _resultobj; | |
5529 | } | |
5530 | ||
5531 | #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5532 | static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5533 | PyObject * _resultobj; | |
5534 | wxLogChain * _arg0; | |
5535 | bool _arg1; | |
5536 | PyObject * _argo0 = 0; | |
5537 | int tempbool1; | |
5538 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5539 | ||
5540 | self = self; | |
5541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5542 | return NULL; | |
5543 | if (_argo0) { | |
5544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p."); | |
5547 | return NULL; | |
5548 | } | |
5549 | } | |
5550 | _arg1 = (bool ) tempbool1; | |
5551 | { | |
4268f798 | 5552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5553 | wxLogChain_PassMessages(_arg0,_arg1); |
76bfdc78 | 5554 | |
4268f798 RD |
5555 | wxPyEndAllowThreads(__tstate); |
5556 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5557 | } Py_INCREF(Py_None); |
5558 | _resultobj = Py_None; | |
5559 | return _resultobj; | |
5560 | } | |
5561 | ||
5562 | #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5563 | static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5564 | PyObject * _resultobj; | |
5565 | bool _result; | |
5566 | wxLogChain * _arg0; | |
5567 | PyObject * _argo0 = 0; | |
5568 | char *_kwnames[] = { "self", NULL }; | |
5569 | ||
5570 | self = self; | |
5571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0)) | |
5572 | return NULL; | |
5573 | if (_argo0) { | |
5574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p."); | |
5577 | return NULL; | |
5578 | } | |
5579 | } | |
5580 | { | |
4268f798 | 5581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5582 | _result = (bool )wxLogChain_IsPassingMessages(_arg0); |
76bfdc78 | 5583 | |
4268f798 RD |
5584 | wxPyEndAllowThreads(__tstate); |
5585 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5586 | } _resultobj = Py_BuildValue("i",_result); |
5587 | return _resultobj; | |
5588 | } | |
5589 | ||
5590 | #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5591 | static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5592 | PyObject * _resultobj; | |
5593 | wxLog * _result; | |
5594 | wxLogChain * _arg0; | |
5595 | PyObject * _argo0 = 0; | |
5596 | char *_kwnames[] = { "self", NULL }; | |
5597 | char _ptemp[128]; | |
5598 | ||
5599 | self = self; | |
5600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0)) | |
5601 | return NULL; | |
5602 | if (_argo0) { | |
5603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p."); | |
5606 | return NULL; | |
5607 | } | |
5608 | } | |
5609 | { | |
4268f798 | 5610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5611 | _result = (wxLog *)wxLogChain_GetOldLog(_arg0); |
76bfdc78 | 5612 | |
4268f798 RD |
5613 | wxPyEndAllowThreads(__tstate); |
5614 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5615 | } if (_result) { |
5616 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5617 | _resultobj = Py_BuildValue("s",_ptemp); | |
5618 | } else { | |
5619 | Py_INCREF(Py_None); | |
5620 | _resultobj = Py_None; | |
5621 | } | |
5622 | return _resultobj; | |
5623 | } | |
5624 | ||
19e30148 RD |
5625 | #define new_wxLogNull() (new wxLogNull()) |
5626 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5627 | PyObject * _resultobj; | |
5628 | wxLogNull * _result; | |
5629 | char *_kwnames[] = { NULL }; | |
5630 | char _ptemp[128]; | |
5631 | ||
5632 | self = self; | |
5633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) | |
5634 | return NULL; | |
5635 | { | |
5636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5637 | _result = (wxLogNull *)new_wxLogNull(); | |
5638 | ||
5639 | wxPyEndAllowThreads(__tstate); | |
5640 | if (PyErr_Occurred()) return NULL; | |
5641 | } if (_result) { | |
5642 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); | |
5643 | _resultobj = Py_BuildValue("s",_ptemp); | |
5644 | } else { | |
5645 | Py_INCREF(Py_None); | |
5646 | _resultobj = Py_None; | |
5647 | } | |
5648 | return _resultobj; | |
5649 | } | |
5650 | ||
5651 | #define delete_wxLogNull(_swigobj) (delete _swigobj) | |
5652 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5653 | PyObject * _resultobj; | |
5654 | wxLogNull * _arg0; | |
5655 | PyObject * _argo0 = 0; | |
5656 | char *_kwnames[] = { "self", NULL }; | |
5657 | ||
5658 | self = self; | |
5659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) | |
5660 | return NULL; | |
5661 | if (_argo0) { | |
5662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { | |
5664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
5665 | return NULL; | |
5666 | } | |
5667 | } | |
5668 | { | |
5669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5670 | delete_wxLogNull(_arg0); | |
5671 | ||
5672 | wxPyEndAllowThreads(__tstate); | |
5673 | if (PyErr_Occurred()) return NULL; | |
5674 | } Py_INCREF(Py_None); | |
5675 | _resultobj = Py_None; | |
5676 | return _resultobj; | |
5677 | } | |
5678 | ||
76bfdc78 RD |
5679 | static void *SwigwxPyLogTowxLog(void *ptr) { |
5680 | wxPyLog *src; | |
5681 | wxLog *dest; | |
5682 | src = (wxPyLog *) ptr; | |
5683 | dest = (wxLog *) src; | |
5684 | return (void *) dest; | |
5685 | } | |
5686 | ||
5687 | #define new_wxPyLog() (new wxPyLog()) | |
5688 | static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5689 | PyObject * _resultobj; | |
5690 | wxPyLog * _result; | |
5691 | char *_kwnames[] = { NULL }; | |
5692 | char _ptemp[128]; | |
5693 | ||
5694 | self = self; | |
5695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames)) | |
5696 | return NULL; | |
5697 | { | |
4268f798 | 5698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5699 | _result = (wxPyLog *)new_wxPyLog(); |
76bfdc78 | 5700 | |
4268f798 RD |
5701 | wxPyEndAllowThreads(__tstate); |
5702 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5703 | } if (_result) { |
5704 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p"); | |
5705 | _resultobj = Py_BuildValue("s",_ptemp); | |
5706 | } else { | |
5707 | Py_INCREF(Py_None); | |
5708 | _resultobj = Py_None; | |
5709 | } | |
5710 | return _resultobj; | |
5711 | } | |
5712 | ||
0122b7e3 RD |
5713 | #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
5714 | static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
76bfdc78 RD |
5715 | PyObject * _resultobj; |
5716 | wxPyLog * _arg0; | |
5717 | PyObject * _arg1; | |
5718 | PyObject * _arg2; | |
5719 | PyObject * _argo0 = 0; | |
5720 | PyObject * _obj1 = 0; | |
5721 | PyObject * _obj2 = 0; | |
5722 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5723 | ||
5724 | self = self; | |
0122b7e3 | 5725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
76bfdc78 RD |
5726 | return NULL; |
5727 | if (_argo0) { | |
5728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
0122b7e3 | 5730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p."); |
76bfdc78 RD |
5731 | return NULL; |
5732 | } | |
5733 | } | |
5734 | { | |
5735 | _arg1 = _obj1; | |
5736 | } | |
5737 | { | |
5738 | _arg2 = _obj2; | |
5739 | } | |
5740 | { | |
4268f798 | 5741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5742 | wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2); |
76bfdc78 | 5743 | |
4268f798 RD |
5744 | wxPyEndAllowThreads(__tstate); |
5745 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5746 | } Py_INCREF(Py_None); |
5747 | _resultobj = Py_None; | |
5748 | return _resultobj; | |
5749 | } | |
5750 | ||
5751 | static void wxPyLog_Destroy(wxPyLog *self) { delete self; } | |
5752 | static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5753 | PyObject * _resultobj; | |
5754 | wxPyLog * _arg0; | |
5755 | PyObject * _argo0 = 0; | |
5756 | char *_kwnames[] = { "self", NULL }; | |
5757 | ||
5758 | self = self; | |
5759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0)) | |
5760 | return NULL; | |
5761 | if (_argo0) { | |
5762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p."); | |
5765 | return NULL; | |
5766 | } | |
5767 | } | |
5768 | { | |
4268f798 | 5769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5770 | wxPyLog_Destroy(_arg0); |
76bfdc78 | 5771 | |
4268f798 RD |
5772 | wxPyEndAllowThreads(__tstate); |
5773 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5774 | } Py_INCREF(Py_None); |
5775 | _resultobj = Py_None; | |
5776 | return _resultobj; | |
5777 | } | |
5778 | ||
c368d904 RD |
5779 | static void *SwigwxProcessEventTowxEvent(void *ptr) { |
5780 | wxProcessEvent *src; | |
5781 | wxEvent *dest; | |
5782 | src = (wxProcessEvent *) ptr; | |
5783 | dest = (wxEvent *) src; | |
5784 | return (void *) dest; | |
5785 | } | |
5786 | ||
9416aa89 RD |
5787 | static void *SwigwxProcessEventTowxObject(void *ptr) { |
5788 | wxProcessEvent *src; | |
5789 | wxObject *dest; | |
5790 | src = (wxProcessEvent *) ptr; | |
5791 | dest = (wxObject *) src; | |
5792 | return (void *) dest; | |
5793 | } | |
5794 | ||
c368d904 RD |
5795 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) |
5796 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5797 | PyObject * _resultobj; | |
5798 | wxProcessEvent * _result; | |
5799 | int _arg0 = (int ) 0; | |
5800 | int _arg1 = (int ) 0; | |
5801 | int _arg2 = (int ) 0; | |
5802 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
5803 | char _ptemp[128]; | |
5804 | ||
5805 | self = self; | |
5806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
5807 | return NULL; | |
5808 | { | |
4268f798 | 5809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5810 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); |
c368d904 | 5811 | |
4268f798 RD |
5812 | wxPyEndAllowThreads(__tstate); |
5813 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5814 | } if (_result) { |
5815 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
5816 | _resultobj = Py_BuildValue("s",_ptemp); | |
5817 | } else { | |
5818 | Py_INCREF(Py_None); | |
5819 | _resultobj = Py_None; | |
5820 | } | |
5821 | return _resultobj; | |
5822 | } | |
5823 | ||
5824 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
5825 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5826 | PyObject * _resultobj; | |
5827 | int _result; | |
5828 | wxProcessEvent * _arg0; | |
5829 | PyObject * _argo0 = 0; | |
5830 | char *_kwnames[] = { "self", NULL }; | |
5831 | ||
5832 | self = self; | |
5833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
5834 | return NULL; | |
5835 | if (_argo0) { | |
5836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
5839 | return NULL; | |
5840 | } | |
5841 | } | |
5842 | { | |
4268f798 | 5843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5844 | _result = (int )wxProcessEvent_GetPid(_arg0); |
c368d904 | 5845 | |
4268f798 RD |
5846 | wxPyEndAllowThreads(__tstate); |
5847 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5848 | } _resultobj = Py_BuildValue("i",_result); |
5849 | return _resultobj; | |
5850 | } | |
5851 | ||
5852 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
5853 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5854 | PyObject * _resultobj; | |
5855 | int _result; | |
5856 | wxProcessEvent * _arg0; | |
5857 | PyObject * _argo0 = 0; | |
5858 | char *_kwnames[] = { "self", NULL }; | |
5859 | ||
5860 | self = self; | |
5861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
5862 | return NULL; | |
5863 | if (_argo0) { | |
5864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
5867 | return NULL; | |
5868 | } | |
5869 | } | |
5870 | { | |
4268f798 | 5871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5872 | _result = (int )wxProcessEvent_GetExitCode(_arg0); |
c368d904 | 5873 | |
4268f798 RD |
5874 | wxPyEndAllowThreads(__tstate); |
5875 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5876 | } _resultobj = Py_BuildValue("i",_result); |
5877 | return _resultobj; | |
5878 | } | |
5879 | ||
5880 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
5881 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5882 | PyObject * _resultobj; | |
5883 | int _result; | |
5884 | wxProcessEvent * _arg0; | |
5885 | int _arg1; | |
5886 | PyObject * _argo0 = 0; | |
5887 | char *_kwnames[] = { "self","m_pid", NULL }; | |
5888 | ||
5889 | self = self; | |
5890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
5891 | return NULL; | |
5892 | if (_argo0) { | |
5893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
5896 | return NULL; | |
5897 | } | |
5898 | } | |
5899 | { | |
4268f798 | 5900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5901 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); |
c368d904 | 5902 | |
4268f798 RD |
5903 | wxPyEndAllowThreads(__tstate); |
5904 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5905 | } _resultobj = Py_BuildValue("i",_result); |
5906 | return _resultobj; | |
5907 | } | |
5908 | ||
5909 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
5910 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5911 | PyObject * _resultobj; | |
5912 | int _result; | |
5913 | wxProcessEvent * _arg0; | |
5914 | PyObject * _argo0 = 0; | |
5915 | char *_kwnames[] = { "self", NULL }; | |
5916 | ||
5917 | self = self; | |
5918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
5919 | return NULL; | |
5920 | if (_argo0) { | |
5921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
5924 | return NULL; | |
5925 | } | |
5926 | } | |
5927 | { | |
4268f798 | 5928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5929 | _result = (int )wxProcessEvent_m_pid_get(_arg0); |
c368d904 | 5930 | |
4268f798 RD |
5931 | wxPyEndAllowThreads(__tstate); |
5932 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5933 | } _resultobj = Py_BuildValue("i",_result); |
5934 | return _resultobj; | |
5935 | } | |
5936 | ||
5937 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
5938 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5939 | PyObject * _resultobj; | |
5940 | int _result; | |
5941 | wxProcessEvent * _arg0; | |
5942 | int _arg1; | |
5943 | PyObject * _argo0 = 0; | |
5944 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
5945 | ||
5946 | self = self; | |
5947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
5948 | return NULL; | |
5949 | if (_argo0) { | |
5950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
5953 | return NULL; | |
5954 | } | |
5955 | } | |
5956 | { | |
4268f798 | 5957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5958 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); |
c368d904 | 5959 | |
4268f798 RD |
5960 | wxPyEndAllowThreads(__tstate); |
5961 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5962 | } _resultobj = Py_BuildValue("i",_result); |
5963 | return _resultobj; | |
5964 | } | |
5965 | ||
5966 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
5967 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5968 | PyObject * _resultobj; | |
5969 | int _result; | |
5970 | wxProcessEvent * _arg0; | |
5971 | PyObject * _argo0 = 0; | |
5972 | char *_kwnames[] = { "self", NULL }; | |
5973 | ||
5974 | self = self; | |
5975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
5976 | return NULL; | |
5977 | if (_argo0) { | |
5978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
5981 | return NULL; | |
5982 | } | |
5983 | } | |
5984 | { | |
4268f798 | 5985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5986 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); |
c368d904 | 5987 | |
4268f798 RD |
5988 | wxPyEndAllowThreads(__tstate); |
5989 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5990 | } _resultobj = Py_BuildValue("i",_result); |
5991 | return _resultobj; | |
5992 | } | |
5993 | ||
5994 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
5995 | wxPyProcess *src; | |
5996 | wxEvtHandler *dest; | |
5997 | src = (wxPyProcess *) ptr; | |
5998 | dest = (wxEvtHandler *) src; | |
5999 | return (void *) dest; | |
6000 | } | |
6001 | ||
9416aa89 RD |
6002 | static void *SwigwxPyProcessTowxObject(void *ptr) { |
6003 | wxPyProcess *src; | |
6004 | wxObject *dest; | |
6005 | src = (wxPyProcess *) ptr; | |
6006 | dest = (wxObject *) src; | |
6007 | return (void *) dest; | |
6008 | } | |
6009 | ||
c368d904 RD |
6010 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) |
6011 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6012 | PyObject * _resultobj; | |
6013 | wxPyProcess * _result; | |
6014 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
6015 | int _arg1 = (int ) -1; | |
6016 | PyObject * _argo0 = 0; | |
6017 | char *_kwnames[] = { "parent","id", NULL }; | |
6018 | char _ptemp[128]; | |
6019 | ||
6020 | self = self; | |
6021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
6022 | return NULL; | |
6023 | if (_argo0) { | |
6024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
6026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
6027 | return NULL; | |
6028 | } | |
6029 | } | |
6030 | { | |
4268f798 | 6031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6032 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); |
c368d904 | 6033 | |
4268f798 RD |
6034 | wxPyEndAllowThreads(__tstate); |
6035 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6036 | } if (_result) { |
6037 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
6038 | _resultobj = Py_BuildValue("s",_ptemp); | |
6039 | } else { | |
6040 | Py_INCREF(Py_None); | |
6041 | _resultobj = Py_None; | |
6042 | } | |
6043 | return _resultobj; | |
6044 | } | |
6045 | ||
6046 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
6047 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6048 | PyObject * _resultobj; | |
6049 | wxPyProcess * _arg0; | |
6050 | PyObject * _argo0 = 0; | |
6051 | char *_kwnames[] = { "self", NULL }; | |
6052 | ||
6053 | self = self; | |
6054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
6055 | return NULL; | |
6056 | if (_argo0) { | |
6057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
6060 | return NULL; | |
6061 | } | |
6062 | } | |
6063 | { | |
4268f798 | 6064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6065 | wxPyProcess_Destroy(_arg0); |
c368d904 | 6066 | |
4268f798 RD |
6067 | wxPyEndAllowThreads(__tstate); |
6068 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6069 | } Py_INCREF(Py_None); |
6070 | _resultobj = Py_None; | |
6071 | return _resultobj; | |
6072 | } | |
6073 | ||
0122b7e3 RD |
6074 | #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6075 | static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c368d904 RD |
6076 | PyObject * _resultobj; |
6077 | wxPyProcess * _arg0; | |
6078 | PyObject * _arg1; | |
6079 | PyObject * _arg2; | |
6080 | PyObject * _argo0 = 0; | |
6081 | PyObject * _obj1 = 0; | |
6082 | PyObject * _obj2 = 0; | |
6083 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6084 | ||
6085 | self = self; | |
0122b7e3 | 6086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
c368d904 RD |
6087 | return NULL; |
6088 | if (_argo0) { | |
6089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
0122b7e3 | 6091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p."); |
c368d904 RD |
6092 | return NULL; |
6093 | } | |
6094 | } | |
6095 | { | |
6096 | _arg1 = _obj1; | |
6097 | } | |
6098 | { | |
6099 | _arg2 = _obj2; | |
6100 | } | |
6101 | { | |
4268f798 | 6102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6103 | wxProcess__setCallbackInfo(_arg0,_arg1,_arg2); |
c368d904 | 6104 | |
4268f798 RD |
6105 | wxPyEndAllowThreads(__tstate); |
6106 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6107 | } Py_INCREF(Py_None); |
6108 | _resultobj = Py_None; | |
6109 | return _resultobj; | |
6110 | } | |
6111 | ||
6112 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
6113 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6114 | PyObject * _resultobj; | |
6115 | wxPyProcess * _arg0; | |
6116 | int _arg1; | |
6117 | int _arg2; | |
6118 | PyObject * _argo0 = 0; | |
6119 | char *_kwnames[] = { "self","pid","status", NULL }; | |
6120 | ||
6121 | self = self; | |
6122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6123 | return NULL; | |
6124 | if (_argo0) { | |
6125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
6128 | return NULL; | |
6129 | } | |
6130 | } | |
6131 | { | |
4268f798 | 6132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6133 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); |
c368d904 | 6134 | |
4268f798 RD |
6135 | wxPyEndAllowThreads(__tstate); |
6136 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6137 | } Py_INCREF(Py_None); |
6138 | _resultobj = Py_None; | |
6139 | return _resultobj; | |
6140 | } | |
6141 | ||
6142 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
6143 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6144 | PyObject * _resultobj; | |
6145 | wxPyProcess * _arg0; | |
6146 | PyObject * _argo0 = 0; | |
6147 | char *_kwnames[] = { "self", NULL }; | |
6148 | ||
6149 | self = self; | |
6150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
6151 | return NULL; | |
6152 | if (_argo0) { | |
6153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
6156 | return NULL; | |
6157 | } | |
6158 | } | |
6159 | { | |
4268f798 | 6160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6161 | wxProcess_Redirect(_arg0); |
c368d904 | 6162 | |
4268f798 RD |
6163 | wxPyEndAllowThreads(__tstate); |
6164 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6165 | } Py_INCREF(Py_None); |
6166 | _resultobj = Py_None; | |
6167 | return _resultobj; | |
6168 | } | |
6169 | ||
6170 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
6171 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6172 | PyObject * _resultobj; | |
6173 | bool _result; | |
6174 | wxPyProcess * _arg0; | |
6175 | PyObject * _argo0 = 0; | |
6176 | char *_kwnames[] = { "self", NULL }; | |
6177 | ||
6178 | self = self; | |
6179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
6180 | return NULL; | |
6181 | if (_argo0) { | |
6182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
6185 | return NULL; | |
6186 | } | |
6187 | } | |
6188 | { | |
4268f798 | 6189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6190 | _result = (bool )wxProcess_IsRedirected(_arg0); |
c368d904 | 6191 | |
4268f798 RD |
6192 | wxPyEndAllowThreads(__tstate); |
6193 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6194 | } _resultobj = Py_BuildValue("i",_result); |
6195 | return _resultobj; | |
6196 | } | |
6197 | ||
6198 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
6199 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6200 | PyObject * _resultobj; | |
6201 | wxPyProcess * _arg0; | |
6202 | PyObject * _argo0 = 0; | |
6203 | char *_kwnames[] = { "self", NULL }; | |
6204 | ||
6205 | self = self; | |
6206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
6207 | return NULL; | |
6208 | if (_argo0) { | |
6209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
6212 | return NULL; | |
6213 | } | |
6214 | } | |
6215 | { | |
4268f798 | 6216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6217 | wxProcess_Detach(_arg0); |
c368d904 | 6218 | |
4268f798 RD |
6219 | wxPyEndAllowThreads(__tstate); |
6220 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6221 | } Py_INCREF(Py_None); |
6222 | _resultobj = Py_None; | |
6223 | return _resultobj; | |
6224 | } | |
6225 | ||
6226 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
6227 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6228 | PyObject * _resultobj; | |
6229 | wxInputStream * _result; | |
6230 | wxPyProcess * _arg0; | |
6231 | PyObject * _argo0 = 0; | |
6232 | char *_kwnames[] = { "self", NULL }; | |
6233 | ||
6234 | self = self; | |
6235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
6236 | return NULL; | |
6237 | if (_argo0) { | |
6238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
6241 | return NULL; | |
6242 | } | |
6243 | } | |
6244 | { | |
4268f798 | 6245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6246 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); |
c368d904 | 6247 | |
4268f798 RD |
6248 | wxPyEndAllowThreads(__tstate); |
6249 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6250 | }{ |
6251 | wxPyInputStream * _ptr = NULL; | |
6252 | ||
6253 | if (_result) { | |
6254 | _ptr = new wxPyInputStream(_result); | |
6255 | } | |
9416aa89 | 6256 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6257 | } |
6258 | return _resultobj; | |
6259 | } | |
6260 | ||
6261 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
6262 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6263 | PyObject * _resultobj; | |
6264 | wxInputStream * _result; | |
6265 | wxPyProcess * _arg0; | |
6266 | PyObject * _argo0 = 0; | |
6267 | char *_kwnames[] = { "self", NULL }; | |
6268 | ||
6269 | self = self; | |
6270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
6271 | return NULL; | |
6272 | if (_argo0) { | |
6273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
6276 | return NULL; | |
6277 | } | |
6278 | } | |
6279 | { | |
4268f798 | 6280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6281 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); |
c368d904 | 6282 | |
4268f798 RD |
6283 | wxPyEndAllowThreads(__tstate); |
6284 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6285 | }{ |
6286 | wxPyInputStream * _ptr = NULL; | |
6287 | ||
6288 | if (_result) { | |
6289 | _ptr = new wxPyInputStream(_result); | |
6290 | } | |
9416aa89 | 6291 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6292 | } |
6293 | return _resultobj; | |
6294 | } | |
6295 | ||
6296 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
6297 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6298 | PyObject * _resultobj; | |
6299 | wxOutputStream * _result; | |
6300 | wxPyProcess * _arg0; | |
6301 | PyObject * _argo0 = 0; | |
6302 | char *_kwnames[] = { "self", NULL }; | |
6303 | char _ptemp[128]; | |
6304 | ||
6305 | self = self; | |
6306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
6307 | return NULL; | |
6308 | if (_argo0) { | |
6309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
6312 | return NULL; | |
6313 | } | |
6314 | } | |
6315 | { | |
4268f798 | 6316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6317 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); |
c368d904 | 6318 | |
4268f798 RD |
6319 | wxPyEndAllowThreads(__tstate); |
6320 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6321 | } if (_result) { |
6322 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
6323 | _resultobj = Py_BuildValue("s",_ptemp); | |
6324 | } else { | |
6325 | Py_INCREF(Py_None); | |
6326 | _resultobj = Py_None; | |
6327 | } | |
6328 | return _resultobj; | |
6329 | } | |
6330 | ||
6331 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
6332 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6333 | PyObject * _resultobj; | |
6334 | wxPyProcess * _arg0; | |
6335 | PyObject * _argo0 = 0; | |
6336 | char *_kwnames[] = { "self", NULL }; | |
6337 | ||
6338 | self = self; | |
6339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
6340 | return NULL; | |
6341 | if (_argo0) { | |
6342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
6345 | return NULL; | |
6346 | } | |
6347 | } | |
6348 | { | |
4268f798 | 6349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6350 | wxProcess_CloseOutput(_arg0); |
c368d904 | 6351 | |
4268f798 RD |
6352 | wxPyEndAllowThreads(__tstate); |
6353 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6354 | } Py_INCREF(Py_None); |
6355 | _resultobj = Py_None; | |
6356 | return _resultobj; | |
6357 | } | |
6358 | ||
9416aa89 RD |
6359 | static void *SwigwxJoystickTowxObject(void *ptr) { |
6360 | wxJoystick *src; | |
6361 | wxObject *dest; | |
6362 | src = (wxJoystick *) ptr; | |
6363 | dest = (wxObject *) src; | |
6364 | return (void *) dest; | |
6365 | } | |
6366 | ||
185d7c3e RD |
6367 | #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0)) |
6368 | static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6369 | PyObject * _resultobj; | |
6370 | wxJoystick * _result; | |
6371 | int _arg0 = (int ) wxJOYSTICK1; | |
6372 | char *_kwnames[] = { "joystick", NULL }; | |
6373 | char _ptemp[128]; | |
6374 | ||
6375 | self = self; | |
6376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0)) | |
6377 | return NULL; | |
6378 | { | |
4268f798 | 6379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6380 | _result = (wxJoystick *)new_wxJoystick(_arg0); |
185d7c3e | 6381 | |
4268f798 RD |
6382 | wxPyEndAllowThreads(__tstate); |
6383 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6384 | } if (_result) { |
6385 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p"); | |
6386 | _resultobj = Py_BuildValue("s",_ptemp); | |
6387 | } else { | |
6388 | Py_INCREF(Py_None); | |
6389 | _resultobj = Py_None; | |
6390 | } | |
6391 | return _resultobj; | |
6392 | } | |
6393 | ||
ac346f50 RD |
6394 | #define delete_wxJoystick(_swigobj) (delete _swigobj) |
6395 | static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6396 | PyObject * _resultobj; | |
6397 | wxJoystick * _arg0; | |
6398 | PyObject * _argo0 = 0; | |
6399 | char *_kwnames[] = { "self", NULL }; | |
6400 | ||
6401 | self = self; | |
6402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0)) | |
6403 | return NULL; | |
6404 | if (_argo0) { | |
6405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p."); | |
6408 | return NULL; | |
6409 | } | |
6410 | } | |
6411 | { | |
4268f798 | 6412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6413 | delete_wxJoystick(_arg0); |
ac346f50 | 6414 | |
4268f798 RD |
6415 | wxPyEndAllowThreads(__tstate); |
6416 | if (PyErr_Occurred()) return NULL; | |
ac346f50 RD |
6417 | } Py_INCREF(Py_None); |
6418 | _resultobj = Py_None; | |
6419 | return _resultobj; | |
6420 | } | |
6421 | ||
185d7c3e RD |
6422 | #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition()) |
6423 | static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6424 | PyObject * _resultobj; | |
6425 | wxPoint * _result; | |
6426 | wxJoystick * _arg0; | |
6427 | PyObject * _argo0 = 0; | |
6428 | char *_kwnames[] = { "self", NULL }; | |
6429 | char _ptemp[128]; | |
6430 | ||
6431 | self = self; | |
6432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0)) | |
6433 | return NULL; | |
6434 | if (_argo0) { | |
6435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p."); | |
6438 | return NULL; | |
6439 | } | |
6440 | } | |
6441 | { | |
4268f798 | 6442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6443 | _result = new wxPoint (wxJoystick_GetPosition(_arg0)); |
185d7c3e | 6444 | |
4268f798 RD |
6445 | wxPyEndAllowThreads(__tstate); |
6446 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6447 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
6448 | _resultobj = Py_BuildValue("s",_ptemp); | |
6449 | return _resultobj; | |
6450 | } | |
6451 | ||
6452 | #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition()) | |
6453 | static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6454 | PyObject * _resultobj; | |
6455 | int _result; | |
6456 | wxJoystick * _arg0; | |
6457 | PyObject * _argo0 = 0; | |
6458 | char *_kwnames[] = { "self", NULL }; | |
6459 | ||
6460 | self = self; | |
6461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0)) | |
6462 | return NULL; | |
6463 | if (_argo0) { | |
6464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p."); | |
6467 | return NULL; | |
6468 | } | |
6469 | } | |
6470 | { | |
4268f798 | 6471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6472 | _result = (int )wxJoystick_GetZPosition(_arg0); |
185d7c3e | 6473 | |
4268f798 RD |
6474 | wxPyEndAllowThreads(__tstate); |
6475 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6476 | } _resultobj = Py_BuildValue("i",_result); |
6477 | return _resultobj; | |
6478 | } | |
6479 | ||
6480 | #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState()) | |
6481 | static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6482 | PyObject * _resultobj; | |
6483 | int _result; | |
6484 | wxJoystick * _arg0; | |
6485 | PyObject * _argo0 = 0; | |
6486 | char *_kwnames[] = { "self", NULL }; | |
6487 | ||
6488 | self = self; | |
6489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0)) | |
6490 | return NULL; | |
6491 | if (_argo0) { | |
6492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p."); | |
6495 | return NULL; | |
6496 | } | |
6497 | } | |
6498 | { | |
4268f798 | 6499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6500 | _result = (int )wxJoystick_GetButtonState(_arg0); |
185d7c3e | 6501 | |
4268f798 RD |
6502 | wxPyEndAllowThreads(__tstate); |
6503 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6504 | } _resultobj = Py_BuildValue("i",_result); |
6505 | return _resultobj; | |
6506 | } | |
6507 | ||
6508 | #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition()) | |
6509 | static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6510 | PyObject * _resultobj; | |
6511 | int _result; | |
6512 | wxJoystick * _arg0; | |
6513 | PyObject * _argo0 = 0; | |
6514 | char *_kwnames[] = { "self", NULL }; | |
6515 | ||
6516 | self = self; | |
6517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0)) | |
6518 | return NULL; | |
6519 | if (_argo0) { | |
6520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p."); | |
6523 | return NULL; | |
6524 | } | |
6525 | } | |
6526 | { | |
4268f798 | 6527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6528 | _result = (int )wxJoystick_GetPOVPosition(_arg0); |
185d7c3e | 6529 | |
4268f798 RD |
6530 | wxPyEndAllowThreads(__tstate); |
6531 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6532 | } _resultobj = Py_BuildValue("i",_result); |
6533 | return _resultobj; | |
6534 | } | |
6535 | ||
6536 | #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition()) | |
6537 | static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6538 | PyObject * _resultobj; | |
6539 | int _result; | |
6540 | wxJoystick * _arg0; | |
6541 | PyObject * _argo0 = 0; | |
6542 | char *_kwnames[] = { "self", NULL }; | |
6543 | ||
6544 | self = self; | |
6545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0)) | |
6546 | return NULL; | |
6547 | if (_argo0) { | |
6548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p."); | |
6551 | return NULL; | |
6552 | } | |
6553 | } | |
6554 | { | |
4268f798 | 6555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6556 | _result = (int )wxJoystick_GetPOVCTSPosition(_arg0); |
185d7c3e | 6557 | |
4268f798 RD |
6558 | wxPyEndAllowThreads(__tstate); |
6559 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6560 | } _resultobj = Py_BuildValue("i",_result); |
6561 | return _resultobj; | |
6562 | } | |
6563 | ||
6564 | #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition()) | |
6565 | static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6566 | PyObject * _resultobj; | |
6567 | int _result; | |
6568 | wxJoystick * _arg0; | |
6569 | PyObject * _argo0 = 0; | |
6570 | char *_kwnames[] = { "self", NULL }; | |
6571 | ||
6572 | self = self; | |
6573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0)) | |
6574 | return NULL; | |
6575 | if (_argo0) { | |
6576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p."); | |
6579 | return NULL; | |
6580 | } | |
6581 | } | |
6582 | { | |
4268f798 | 6583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6584 | _result = (int )wxJoystick_GetRudderPosition(_arg0); |
185d7c3e | 6585 | |
4268f798 RD |
6586 | wxPyEndAllowThreads(__tstate); |
6587 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6588 | } _resultobj = Py_BuildValue("i",_result); |
6589 | return _resultobj; | |
6590 | } | |
6591 | ||
6592 | #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition()) | |
6593 | static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6594 | PyObject * _resultobj; | |
6595 | int _result; | |
6596 | wxJoystick * _arg0; | |
6597 | PyObject * _argo0 = 0; | |
6598 | char *_kwnames[] = { "self", NULL }; | |
6599 | ||
6600 | self = self; | |
6601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0)) | |
6602 | return NULL; | |
6603 | if (_argo0) { | |
6604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p."); | |
6607 | return NULL; | |
6608 | } | |
6609 | } | |
6610 | { | |
4268f798 | 6611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6612 | _result = (int )wxJoystick_GetUPosition(_arg0); |
185d7c3e | 6613 | |
4268f798 RD |
6614 | wxPyEndAllowThreads(__tstate); |
6615 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6616 | } _resultobj = Py_BuildValue("i",_result); |
6617 | return _resultobj; | |
6618 | } | |
6619 | ||
6620 | #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition()) | |
6621 | static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6622 | PyObject * _resultobj; | |
6623 | int _result; | |
6624 | wxJoystick * _arg0; | |
6625 | PyObject * _argo0 = 0; | |
6626 | char *_kwnames[] = { "self", NULL }; | |
6627 | ||
6628 | self = self; | |
6629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0)) | |
6630 | return NULL; | |
6631 | if (_argo0) { | |
6632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p."); | |
6635 | return NULL; | |
6636 | } | |
6637 | } | |
6638 | { | |
4268f798 | 6639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6640 | _result = (int )wxJoystick_GetVPosition(_arg0); |
185d7c3e | 6641 | |
4268f798 RD |
6642 | wxPyEndAllowThreads(__tstate); |
6643 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6644 | } _resultobj = Py_BuildValue("i",_result); |
6645 | return _resultobj; | |
6646 | } | |
6647 | ||
6648 | #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold()) | |
6649 | static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6650 | PyObject * _resultobj; | |
6651 | int _result; | |
6652 | wxJoystick * _arg0; | |
6653 | PyObject * _argo0 = 0; | |
6654 | char *_kwnames[] = { "self", NULL }; | |
6655 | ||
6656 | self = self; | |
6657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0)) | |
6658 | return NULL; | |
6659 | if (_argo0) { | |
6660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p."); | |
6663 | return NULL; | |
6664 | } | |
6665 | } | |
6666 | { | |
4268f798 | 6667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6668 | _result = (int )wxJoystick_GetMovementThreshold(_arg0); |
185d7c3e | 6669 | |
4268f798 RD |
6670 | wxPyEndAllowThreads(__tstate); |
6671 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6672 | } _resultobj = Py_BuildValue("i",_result); |
6673 | return _resultobj; | |
6674 | } | |
6675 | ||
6676 | #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0)) | |
6677 | static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6678 | PyObject * _resultobj; | |
6679 | wxJoystick * _arg0; | |
6680 | int _arg1; | |
6681 | PyObject * _argo0 = 0; | |
6682 | char *_kwnames[] = { "self","threshold", NULL }; | |
6683 | ||
6684 | self = self; | |
6685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1)) | |
6686 | return NULL; | |
6687 | if (_argo0) { | |
6688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p."); | |
6691 | return NULL; | |
6692 | } | |
6693 | } | |
6694 | { | |
4268f798 | 6695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6696 | wxJoystick_SetMovementThreshold(_arg0,_arg1); |
185d7c3e | 6697 | |
4268f798 RD |
6698 | wxPyEndAllowThreads(__tstate); |
6699 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6700 | } Py_INCREF(Py_None); |
6701 | _resultobj = Py_None; | |
6702 | return _resultobj; | |
6703 | } | |
6704 | ||
6705 | #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk()) | |
6706 | static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6707 | PyObject * _resultobj; | |
6708 | bool _result; | |
6709 | wxJoystick * _arg0; | |
6710 | PyObject * _argo0 = 0; | |
6711 | char *_kwnames[] = { "self", NULL }; | |
6712 | ||
6713 | self = self; | |
6714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0)) | |
6715 | return NULL; | |
6716 | if (_argo0) { | |
6717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p."); | |
6720 | return NULL; | |
6721 | } | |
6722 | } | |
6723 | { | |
4268f798 | 6724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6725 | _result = (bool )wxJoystick_IsOk(_arg0); |
185d7c3e | 6726 | |
4268f798 RD |
6727 | wxPyEndAllowThreads(__tstate); |
6728 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6729 | } _resultobj = Py_BuildValue("i",_result); |
6730 | return _resultobj; | |
6731 | } | |
6732 | ||
6733 | #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks()) | |
6734 | static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6735 | PyObject * _resultobj; | |
6736 | int _result; | |
6737 | wxJoystick * _arg0; | |
6738 | PyObject * _argo0 = 0; | |
6739 | char *_kwnames[] = { "self", NULL }; | |
6740 | ||
6741 | self = self; | |
6742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0)) | |
6743 | return NULL; | |
6744 | if (_argo0) { | |
6745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p."); | |
6748 | return NULL; | |
6749 | } | |
6750 | } | |
6751 | { | |
4268f798 | 6752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6753 | _result = (int )wxJoystick_GetNumberJoysticks(_arg0); |
185d7c3e | 6754 | |
4268f798 RD |
6755 | wxPyEndAllowThreads(__tstate); |
6756 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6757 | } _resultobj = Py_BuildValue("i",_result); |
6758 | return _resultobj; | |
6759 | } | |
6760 | ||
6761 | #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId()) | |
6762 | static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6763 | PyObject * _resultobj; | |
6764 | int _result; | |
6765 | wxJoystick * _arg0; | |
6766 | PyObject * _argo0 = 0; | |
6767 | char *_kwnames[] = { "self", NULL }; | |
6768 | ||
6769 | self = self; | |
6770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0)) | |
6771 | return NULL; | |
6772 | if (_argo0) { | |
6773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p."); | |
6776 | return NULL; | |
6777 | } | |
6778 | } | |
6779 | { | |
4268f798 | 6780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6781 | _result = (int )wxJoystick_GetManufacturerId(_arg0); |
185d7c3e | 6782 | |
4268f798 RD |
6783 | wxPyEndAllowThreads(__tstate); |
6784 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6785 | } _resultobj = Py_BuildValue("i",_result); |
6786 | return _resultobj; | |
6787 | } | |
6788 | ||
6789 | #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId()) | |
6790 | static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6791 | PyObject * _resultobj; | |
6792 | int _result; | |
6793 | wxJoystick * _arg0; | |
6794 | PyObject * _argo0 = 0; | |
6795 | char *_kwnames[] = { "self", NULL }; | |
6796 | ||
6797 | self = self; | |
6798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0)) | |
6799 | return NULL; | |
6800 | if (_argo0) { | |
6801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p."); | |
6804 | return NULL; | |
6805 | } | |
6806 | } | |
6807 | { | |
4268f798 | 6808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6809 | _result = (int )wxJoystick_GetProductId(_arg0); |
185d7c3e | 6810 | |
4268f798 RD |
6811 | wxPyEndAllowThreads(__tstate); |
6812 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6813 | } _resultobj = Py_BuildValue("i",_result); |
6814 | return _resultobj; | |
6815 | } | |
6816 | ||
6817 | #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName()) | |
6818 | static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6819 | PyObject * _resultobj; | |
6820 | wxString * _result; | |
6821 | wxJoystick * _arg0; | |
6822 | PyObject * _argo0 = 0; | |
6823 | char *_kwnames[] = { "self", NULL }; | |
6824 | ||
6825 | self = self; | |
6826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0)) | |
6827 | return NULL; | |
6828 | if (_argo0) { | |
6829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p."); | |
6832 | return NULL; | |
6833 | } | |
6834 | } | |
6835 | { | |
4268f798 | 6836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6837 | _result = new wxString (wxJoystick_GetProductName(_arg0)); |
185d7c3e | 6838 | |
4268f798 RD |
6839 | wxPyEndAllowThreads(__tstate); |
6840 | if (PyErr_Occurred()) return NULL; | |
185d7c3e | 6841 | }{ |
c8bc7bb8 RD |
6842 | #if wxUSE_UNICODE |
6843 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6844 | #else | |
185d7c3e | 6845 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6846 | #endif |
185d7c3e RD |
6847 | } |
6848 | { | |
6849 | delete _result; | |
6850 | } | |
6851 | return _resultobj; | |
6852 | } | |
6853 | ||
6854 | #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin()) | |
6855 | static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6856 | PyObject * _resultobj; | |
6857 | int _result; | |
6858 | wxJoystick * _arg0; | |
6859 | PyObject * _argo0 = 0; | |
6860 | char *_kwnames[] = { "self", NULL }; | |
6861 | ||
6862 | self = self; | |
6863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0)) | |
6864 | return NULL; | |
6865 | if (_argo0) { | |
6866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p."); | |
6869 | return NULL; | |
6870 | } | |
6871 | } | |
6872 | { | |
4268f798 | 6873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6874 | _result = (int )wxJoystick_GetXMin(_arg0); |
185d7c3e | 6875 | |
4268f798 RD |
6876 | wxPyEndAllowThreads(__tstate); |
6877 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6878 | } _resultobj = Py_BuildValue("i",_result); |
6879 | return _resultobj; | |
6880 | } | |
6881 | ||
6882 | #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin()) | |
6883 | static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6884 | PyObject * _resultobj; | |
6885 | int _result; | |
6886 | wxJoystick * _arg0; | |
6887 | PyObject * _argo0 = 0; | |
6888 | char *_kwnames[] = { "self", NULL }; | |
6889 | ||
6890 | self = self; | |
6891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0)) | |
6892 | return NULL; | |
6893 | if (_argo0) { | |
6894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p."); | |
6897 | return NULL; | |
6898 | } | |
6899 | } | |
6900 | { | |
4268f798 | 6901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6902 | _result = (int )wxJoystick_GetYMin(_arg0); |
185d7c3e | 6903 | |
4268f798 RD |
6904 | wxPyEndAllowThreads(__tstate); |
6905 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6906 | } _resultobj = Py_BuildValue("i",_result); |
6907 | return _resultobj; | |
6908 | } | |
6909 | ||
6910 | #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin()) | |
6911 | static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6912 | PyObject * _resultobj; | |
6913 | int _result; | |
6914 | wxJoystick * _arg0; | |
6915 | PyObject * _argo0 = 0; | |
6916 | char *_kwnames[] = { "self", NULL }; | |
6917 | ||
6918 | self = self; | |
6919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0)) | |
6920 | return NULL; | |
6921 | if (_argo0) { | |
6922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p."); | |
6925 | return NULL; | |
6926 | } | |
6927 | } | |
6928 | { | |
4268f798 | 6929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6930 | _result = (int )wxJoystick_GetZMin(_arg0); |
185d7c3e | 6931 | |
4268f798 RD |
6932 | wxPyEndAllowThreads(__tstate); |
6933 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6934 | } _resultobj = Py_BuildValue("i",_result); |
6935 | return _resultobj; | |
6936 | } | |
6937 | ||
6938 | #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax()) | |
6939 | static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6940 | PyObject * _resultobj; | |
6941 | int _result; | |
6942 | wxJoystick * _arg0; | |
6943 | PyObject * _argo0 = 0; | |
6944 | char *_kwnames[] = { "self", NULL }; | |
6945 | ||
6946 | self = self; | |
6947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0)) | |
6948 | return NULL; | |
6949 | if (_argo0) { | |
6950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p."); | |
6953 | return NULL; | |
6954 | } | |
6955 | } | |
6956 | { | |
4268f798 | 6957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6958 | _result = (int )wxJoystick_GetXMax(_arg0); |
185d7c3e | 6959 | |
4268f798 RD |
6960 | wxPyEndAllowThreads(__tstate); |
6961 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6962 | } _resultobj = Py_BuildValue("i",_result); |
6963 | return _resultobj; | |
6964 | } | |
6965 | ||
6966 | #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax()) | |
6967 | static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6968 | PyObject * _resultobj; | |
6969 | int _result; | |
6970 | wxJoystick * _arg0; | |
6971 | PyObject * _argo0 = 0; | |
6972 | char *_kwnames[] = { "self", NULL }; | |
6973 | ||
6974 | self = self; | |
6975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0)) | |
6976 | return NULL; | |
6977 | if (_argo0) { | |
6978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p."); | |
6981 | return NULL; | |
6982 | } | |
6983 | } | |
6984 | { | |
4268f798 | 6985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6986 | _result = (int )wxJoystick_GetYMax(_arg0); |
185d7c3e | 6987 | |
4268f798 RD |
6988 | wxPyEndAllowThreads(__tstate); |
6989 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6990 | } _resultobj = Py_BuildValue("i",_result); |
6991 | return _resultobj; | |
6992 | } | |
6993 | ||
6994 | #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax()) | |
6995 | static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6996 | PyObject * _resultobj; | |
6997 | int _result; | |
6998 | wxJoystick * _arg0; | |
6999 | PyObject * _argo0 = 0; | |
7000 | char *_kwnames[] = { "self", NULL }; | |
7001 | ||
7002 | self = self; | |
7003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0)) | |
7004 | return NULL; | |
7005 | if (_argo0) { | |
7006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p."); | |
7009 | return NULL; | |
7010 | } | |
7011 | } | |
7012 | { | |
4268f798 | 7013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7014 | _result = (int )wxJoystick_GetZMax(_arg0); |
185d7c3e | 7015 | |
4268f798 RD |
7016 | wxPyEndAllowThreads(__tstate); |
7017 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7018 | } _resultobj = Py_BuildValue("i",_result); |
7019 | return _resultobj; | |
7020 | } | |
7021 | ||
7022 | #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons()) | |
7023 | static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7024 | PyObject * _resultobj; | |
7025 | int _result; | |
7026 | wxJoystick * _arg0; | |
7027 | PyObject * _argo0 = 0; | |
7028 | char *_kwnames[] = { "self", NULL }; | |
7029 | ||
7030 | self = self; | |
7031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0)) | |
7032 | return NULL; | |
7033 | if (_argo0) { | |
7034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p."); | |
7037 | return NULL; | |
7038 | } | |
7039 | } | |
7040 | { | |
4268f798 | 7041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7042 | _result = (int )wxJoystick_GetNumberButtons(_arg0); |
185d7c3e | 7043 | |
4268f798 RD |
7044 | wxPyEndAllowThreads(__tstate); |
7045 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7046 | } _resultobj = Py_BuildValue("i",_result); |
7047 | return _resultobj; | |
7048 | } | |
7049 | ||
7050 | #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes()) | |
7051 | static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7052 | PyObject * _resultobj; | |
7053 | int _result; | |
7054 | wxJoystick * _arg0; | |
7055 | PyObject * _argo0 = 0; | |
7056 | char *_kwnames[] = { "self", NULL }; | |
7057 | ||
7058 | self = self; | |
7059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0)) | |
7060 | return NULL; | |
7061 | if (_argo0) { | |
7062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p."); | |
7065 | return NULL; | |
7066 | } | |
7067 | } | |
7068 | { | |
4268f798 | 7069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7070 | _result = (int )wxJoystick_GetNumberAxes(_arg0); |
185d7c3e | 7071 | |
4268f798 RD |
7072 | wxPyEndAllowThreads(__tstate); |
7073 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7074 | } _resultobj = Py_BuildValue("i",_result); |
7075 | return _resultobj; | |
7076 | } | |
7077 | ||
7078 | #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons()) | |
7079 | static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7080 | PyObject * _resultobj; | |
7081 | int _result; | |
7082 | wxJoystick * _arg0; | |
7083 | PyObject * _argo0 = 0; | |
7084 | char *_kwnames[] = { "self", NULL }; | |
7085 | ||
7086 | self = self; | |
7087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0)) | |
7088 | return NULL; | |
7089 | if (_argo0) { | |
7090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p."); | |
7093 | return NULL; | |
7094 | } | |
7095 | } | |
7096 | { | |
4268f798 | 7097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7098 | _result = (int )wxJoystick_GetMaxButtons(_arg0); |
185d7c3e | 7099 | |
4268f798 RD |
7100 | wxPyEndAllowThreads(__tstate); |
7101 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7102 | } _resultobj = Py_BuildValue("i",_result); |
7103 | return _resultobj; | |
7104 | } | |
7105 | ||
7106 | #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes()) | |
7107 | static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7108 | PyObject * _resultobj; | |
7109 | int _result; | |
7110 | wxJoystick * _arg0; | |
7111 | PyObject * _argo0 = 0; | |
7112 | char *_kwnames[] = { "self", NULL }; | |
7113 | ||
7114 | self = self; | |
7115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0)) | |
7116 | return NULL; | |
7117 | if (_argo0) { | |
7118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p."); | |
7121 | return NULL; | |
7122 | } | |
7123 | } | |
7124 | { | |
4268f798 | 7125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7126 | _result = (int )wxJoystick_GetMaxAxes(_arg0); |
185d7c3e | 7127 | |
4268f798 RD |
7128 | wxPyEndAllowThreads(__tstate); |
7129 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7130 | } _resultobj = Py_BuildValue("i",_result); |
7131 | return _resultobj; | |
7132 | } | |
7133 | ||
7134 | #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin()) | |
7135 | static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7136 | PyObject * _resultobj; | |
7137 | int _result; | |
7138 | wxJoystick * _arg0; | |
7139 | PyObject * _argo0 = 0; | |
7140 | char *_kwnames[] = { "self", NULL }; | |
7141 | ||
7142 | self = self; | |
7143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0)) | |
7144 | return NULL; | |
7145 | if (_argo0) { | |
7146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p."); | |
7149 | return NULL; | |
7150 | } | |
7151 | } | |
7152 | { | |
4268f798 | 7153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7154 | _result = (int )wxJoystick_GetPollingMin(_arg0); |
185d7c3e | 7155 | |
4268f798 RD |
7156 | wxPyEndAllowThreads(__tstate); |
7157 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7158 | } _resultobj = Py_BuildValue("i",_result); |
7159 | return _resultobj; | |
7160 | } | |
7161 | ||
7162 | #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax()) | |
7163 | static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7164 | PyObject * _resultobj; | |
7165 | int _result; | |
7166 | wxJoystick * _arg0; | |
7167 | PyObject * _argo0 = 0; | |
7168 | char *_kwnames[] = { "self", NULL }; | |
7169 | ||
7170 | self = self; | |
7171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0)) | |
7172 | return NULL; | |
7173 | if (_argo0) { | |
7174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p."); | |
7177 | return NULL; | |
7178 | } | |
7179 | } | |
7180 | { | |
4268f798 | 7181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7182 | _result = (int )wxJoystick_GetPollingMax(_arg0); |
185d7c3e | 7183 | |
4268f798 RD |
7184 | wxPyEndAllowThreads(__tstate); |
7185 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7186 | } _resultobj = Py_BuildValue("i",_result); |
7187 | return _resultobj; | |
7188 | } | |
7189 | ||
7190 | #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin()) | |
7191 | static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7192 | PyObject * _resultobj; | |
7193 | int _result; | |
7194 | wxJoystick * _arg0; | |
7195 | PyObject * _argo0 = 0; | |
7196 | char *_kwnames[] = { "self", NULL }; | |
7197 | ||
7198 | self = self; | |
7199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0)) | |
7200 | return NULL; | |
7201 | if (_argo0) { | |
7202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p."); | |
7205 | return NULL; | |
7206 | } | |
7207 | } | |
7208 | { | |
4268f798 | 7209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7210 | _result = (int )wxJoystick_GetRudderMin(_arg0); |
185d7c3e | 7211 | |
4268f798 RD |
7212 | wxPyEndAllowThreads(__tstate); |
7213 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7214 | } _resultobj = Py_BuildValue("i",_result); |
7215 | return _resultobj; | |
7216 | } | |
7217 | ||
7218 | #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax()) | |
7219 | static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7220 | PyObject * _resultobj; | |
7221 | int _result; | |
7222 | wxJoystick * _arg0; | |
7223 | PyObject * _argo0 = 0; | |
7224 | char *_kwnames[] = { "self", NULL }; | |
7225 | ||
7226 | self = self; | |
7227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0)) | |
7228 | return NULL; | |
7229 | if (_argo0) { | |
7230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p."); | |
7233 | return NULL; | |
7234 | } | |
7235 | } | |
7236 | { | |
4268f798 | 7237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7238 | _result = (int )wxJoystick_GetRudderMax(_arg0); |
185d7c3e | 7239 | |
4268f798 RD |
7240 | wxPyEndAllowThreads(__tstate); |
7241 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7242 | } _resultobj = Py_BuildValue("i",_result); |
7243 | return _resultobj; | |
7244 | } | |
7245 | ||
7246 | #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin()) | |
7247 | static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7248 | PyObject * _resultobj; | |
7249 | int _result; | |
7250 | wxJoystick * _arg0; | |
7251 | PyObject * _argo0 = 0; | |
7252 | char *_kwnames[] = { "self", NULL }; | |
7253 | ||
7254 | self = self; | |
7255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0)) | |
7256 | return NULL; | |
7257 | if (_argo0) { | |
7258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p."); | |
7261 | return NULL; | |
7262 | } | |
7263 | } | |
7264 | { | |
4268f798 | 7265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7266 | _result = (int )wxJoystick_GetUMin(_arg0); |
185d7c3e | 7267 | |
4268f798 RD |
7268 | wxPyEndAllowThreads(__tstate); |
7269 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7270 | } _resultobj = Py_BuildValue("i",_result); |
7271 | return _resultobj; | |
7272 | } | |
7273 | ||
7274 | #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax()) | |
7275 | static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7276 | PyObject * _resultobj; | |
7277 | int _result; | |
7278 | wxJoystick * _arg0; | |
7279 | PyObject * _argo0 = 0; | |
7280 | char *_kwnames[] = { "self", NULL }; | |
7281 | ||
7282 | self = self; | |
7283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0)) | |
7284 | return NULL; | |
7285 | if (_argo0) { | |
7286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p."); | |
7289 | return NULL; | |
7290 | } | |
7291 | } | |
7292 | { | |
4268f798 | 7293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7294 | _result = (int )wxJoystick_GetUMax(_arg0); |
185d7c3e | 7295 | |
4268f798 RD |
7296 | wxPyEndAllowThreads(__tstate); |
7297 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7298 | } _resultobj = Py_BuildValue("i",_result); |
7299 | return _resultobj; | |
7300 | } | |
7301 | ||
7302 | #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin()) | |
7303 | static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7304 | PyObject * _resultobj; | |
7305 | int _result; | |
7306 | wxJoystick * _arg0; | |
7307 | PyObject * _argo0 = 0; | |
7308 | char *_kwnames[] = { "self", NULL }; | |
7309 | ||
7310 | self = self; | |
7311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0)) | |
7312 | return NULL; | |
7313 | if (_argo0) { | |
7314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p."); | |
7317 | return NULL; | |
7318 | } | |
7319 | } | |
7320 | { | |
4268f798 | 7321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7322 | _result = (int )wxJoystick_GetVMin(_arg0); |
185d7c3e | 7323 | |
4268f798 RD |
7324 | wxPyEndAllowThreads(__tstate); |
7325 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7326 | } _resultobj = Py_BuildValue("i",_result); |
7327 | return _resultobj; | |
7328 | } | |
7329 | ||
7330 | #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax()) | |
7331 | static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7332 | PyObject * _resultobj; | |
7333 | int _result; | |
7334 | wxJoystick * _arg0; | |
7335 | PyObject * _argo0 = 0; | |
7336 | char *_kwnames[] = { "self", NULL }; | |
7337 | ||
7338 | self = self; | |
7339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0)) | |
7340 | return NULL; | |
7341 | if (_argo0) { | |
7342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p."); | |
7345 | return NULL; | |
7346 | } | |
7347 | } | |
7348 | { | |
4268f798 | 7349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7350 | _result = (int )wxJoystick_GetVMax(_arg0); |
185d7c3e | 7351 | |
4268f798 RD |
7352 | wxPyEndAllowThreads(__tstate); |
7353 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7354 | } _resultobj = Py_BuildValue("i",_result); |
7355 | return _resultobj; | |
7356 | } | |
7357 | ||
7358 | #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder()) | |
7359 | static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7360 | PyObject * _resultobj; | |
7361 | bool _result; | |
7362 | wxJoystick * _arg0; | |
7363 | PyObject * _argo0 = 0; | |
7364 | char *_kwnames[] = { "self", NULL }; | |
7365 | ||
7366 | self = self; | |
7367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0)) | |
7368 | return NULL; | |
7369 | if (_argo0) { | |
7370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p."); | |
7373 | return NULL; | |
7374 | } | |
7375 | } | |
7376 | { | |
4268f798 | 7377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7378 | _result = (bool )wxJoystick_HasRudder(_arg0); |
185d7c3e | 7379 | |
4268f798 RD |
7380 | wxPyEndAllowThreads(__tstate); |
7381 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7382 | } _resultobj = Py_BuildValue("i",_result); |
7383 | return _resultobj; | |
7384 | } | |
7385 | ||
7386 | #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ()) | |
7387 | static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7388 | PyObject * _resultobj; | |
7389 | bool _result; | |
7390 | wxJoystick * _arg0; | |
7391 | PyObject * _argo0 = 0; | |
7392 | char *_kwnames[] = { "self", NULL }; | |
7393 | ||
7394 | self = self; | |
7395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0)) | |
7396 | return NULL; | |
7397 | if (_argo0) { | |
7398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p."); | |
7401 | return NULL; | |
7402 | } | |
7403 | } | |
7404 | { | |
4268f798 | 7405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7406 | _result = (bool )wxJoystick_HasZ(_arg0); |
185d7c3e | 7407 | |
4268f798 RD |
7408 | wxPyEndAllowThreads(__tstate); |
7409 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7410 | } _resultobj = Py_BuildValue("i",_result); |
7411 | return _resultobj; | |
7412 | } | |
7413 | ||
7414 | #define wxJoystick_HasU(_swigobj) (_swigobj->HasU()) | |
7415 | static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7416 | PyObject * _resultobj; | |
7417 | bool _result; | |
7418 | wxJoystick * _arg0; | |
7419 | PyObject * _argo0 = 0; | |
7420 | char *_kwnames[] = { "self", NULL }; | |
7421 | ||
7422 | self = self; | |
7423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0)) | |
7424 | return NULL; | |
7425 | if (_argo0) { | |
7426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p."); | |
7429 | return NULL; | |
7430 | } | |
7431 | } | |
7432 | { | |
4268f798 | 7433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7434 | _result = (bool )wxJoystick_HasU(_arg0); |
185d7c3e | 7435 | |
4268f798 RD |
7436 | wxPyEndAllowThreads(__tstate); |
7437 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7438 | } _resultobj = Py_BuildValue("i",_result); |
7439 | return _resultobj; | |
7440 | } | |
7441 | ||
7442 | #define wxJoystick_HasV(_swigobj) (_swigobj->HasV()) | |
7443 | static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7444 | PyObject * _resultobj; | |
7445 | bool _result; | |
7446 | wxJoystick * _arg0; | |
7447 | PyObject * _argo0 = 0; | |
7448 | char *_kwnames[] = { "self", NULL }; | |
7449 | ||
7450 | self = self; | |
7451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0)) | |
7452 | return NULL; | |
7453 | if (_argo0) { | |
7454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p."); | |
7457 | return NULL; | |
7458 | } | |
7459 | } | |
7460 | { | |
4268f798 | 7461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7462 | _result = (bool )wxJoystick_HasV(_arg0); |
185d7c3e | 7463 | |
4268f798 RD |
7464 | wxPyEndAllowThreads(__tstate); |
7465 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7466 | } _resultobj = Py_BuildValue("i",_result); |
7467 | return _resultobj; | |
7468 | } | |
7469 | ||
7470 | #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV()) | |
7471 | static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7472 | PyObject * _resultobj; | |
7473 | bool _result; | |
7474 | wxJoystick * _arg0; | |
7475 | PyObject * _argo0 = 0; | |
7476 | char *_kwnames[] = { "self", NULL }; | |
7477 | ||
7478 | self = self; | |
7479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0)) | |
7480 | return NULL; | |
7481 | if (_argo0) { | |
7482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p."); | |
7485 | return NULL; | |
7486 | } | |
7487 | } | |
7488 | { | |
4268f798 | 7489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7490 | _result = (bool )wxJoystick_HasPOV(_arg0); |
185d7c3e | 7491 | |
4268f798 RD |
7492 | wxPyEndAllowThreads(__tstate); |
7493 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7494 | } _resultobj = Py_BuildValue("i",_result); |
7495 | return _resultobj; | |
7496 | } | |
7497 | ||
7498 | #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir()) | |
7499 | static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7500 | PyObject * _resultobj; | |
7501 | bool _result; | |
7502 | wxJoystick * _arg0; | |
7503 | PyObject * _argo0 = 0; | |
7504 | char *_kwnames[] = { "self", NULL }; | |
7505 | ||
7506 | self = self; | |
7507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0)) | |
7508 | return NULL; | |
7509 | if (_argo0) { | |
7510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p."); | |
7513 | return NULL; | |
7514 | } | |
7515 | } | |
7516 | { | |
4268f798 | 7517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7518 | _result = (bool )wxJoystick_HasPOV4Dir(_arg0); |
185d7c3e | 7519 | |
4268f798 RD |
7520 | wxPyEndAllowThreads(__tstate); |
7521 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7522 | } _resultobj = Py_BuildValue("i",_result); |
7523 | return _resultobj; | |
7524 | } | |
7525 | ||
7526 | #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS()) | |
7527 | static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7528 | PyObject * _resultobj; | |
7529 | bool _result; | |
7530 | wxJoystick * _arg0; | |
7531 | PyObject * _argo0 = 0; | |
7532 | char *_kwnames[] = { "self", NULL }; | |
7533 | ||
7534 | self = self; | |
7535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0)) | |
7536 | return NULL; | |
7537 | if (_argo0) { | |
7538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p."); | |
7541 | return NULL; | |
7542 | } | |
7543 | } | |
7544 | { | |
4268f798 | 7545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7546 | _result = (bool )wxJoystick_HasPOVCTS(_arg0); |
185d7c3e | 7547 | |
4268f798 RD |
7548 | wxPyEndAllowThreads(__tstate); |
7549 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7550 | } _resultobj = Py_BuildValue("i",_result); |
7551 | return _resultobj; | |
7552 | } | |
7553 | ||
7554 | #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1)) | |
7555 | static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7556 | PyObject * _resultobj; | |
7557 | bool _result; | |
7558 | wxJoystick * _arg0; | |
7559 | wxWindow * _arg1; | |
7560 | int _arg2 = (int ) 0; | |
7561 | PyObject * _argo0 = 0; | |
7562 | PyObject * _argo1 = 0; | |
7563 | char *_kwnames[] = { "self","win","pollingFreq", NULL }; | |
7564 | ||
7565 | self = self; | |
7566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7567 | return NULL; | |
7568 | if (_argo0) { | |
7569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p."); | |
7572 | return NULL; | |
7573 | } | |
7574 | } | |
7575 | if (_argo1) { | |
7576 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7577 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p."); | |
7579 | return NULL; | |
7580 | } | |
7581 | } | |
7582 | { | |
4268f798 | 7583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7584 | _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2); |
185d7c3e | 7585 | |
4268f798 RD |
7586 | wxPyEndAllowThreads(__tstate); |
7587 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7588 | } _resultobj = Py_BuildValue("i",_result); |
7589 | return _resultobj; | |
7590 | } | |
7591 | ||
7592 | #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture()) | |
7593 | static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7594 | PyObject * _resultobj; | |
7595 | bool _result; | |
7596 | wxJoystick * _arg0; | |
7597 | PyObject * _argo0 = 0; | |
7598 | char *_kwnames[] = { "self", NULL }; | |
7599 | ||
7600 | self = self; | |
7601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0)) | |
7602 | return NULL; | |
7603 | if (_argo0) { | |
7604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p."); | |
7607 | return NULL; | |
7608 | } | |
7609 | } | |
7610 | { | |
4268f798 | 7611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7612 | _result = (bool )wxJoystick_ReleaseCapture(_arg0); |
185d7c3e | 7613 | |
4268f798 RD |
7614 | wxPyEndAllowThreads(__tstate); |
7615 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7616 | } _resultobj = Py_BuildValue("i",_result); |
7617 | return _resultobj; | |
7618 | } | |
7619 | ||
493f1553 RD |
7620 | static void *SwigwxWaveTowxObject(void *ptr) { |
7621 | wxWave *src; | |
7622 | wxObject *dest; | |
7623 | src = (wxWave *) ptr; | |
7624 | dest = (wxObject *) src; | |
7625 | return (void *) dest; | |
7626 | } | |
7627 | ||
7628 | #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1)) | |
7629 | static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7630 | PyObject * _resultobj; | |
7631 | wxWave * _result; | |
7632 | wxString * _arg0; | |
7633 | bool _arg1 = (bool ) FALSE; | |
7634 | PyObject * _obj0 = 0; | |
7635 | int tempbool1 = (int) FALSE; | |
7636 | char *_kwnames[] = { "fileName","isResource", NULL }; | |
7637 | char _ptemp[128]; | |
7638 | ||
7639 | self = self; | |
7640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1)) | |
7641 | return NULL; | |
7642 | { | |
c8bc7bb8 RD |
7643 | _arg0 = wxString_in_helper(_obj0); |
7644 | if (_arg0 == NULL) | |
493f1553 | 7645 | return NULL; |
493f1553 RD |
7646 | } |
7647 | _arg1 = (bool ) tempbool1; | |
7648 | { | |
4268f798 | 7649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7650 | _result = (wxWave *)new_wxWave(*_arg0,_arg1); |
493f1553 | 7651 | |
4268f798 RD |
7652 | wxPyEndAllowThreads(__tstate); |
7653 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7654 | } if (_result) { |
7655 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
7656 | _resultobj = Py_BuildValue("s",_ptemp); | |
7657 | } else { | |
7658 | Py_INCREF(Py_None); | |
7659 | _resultobj = Py_None; | |
7660 | } | |
7661 | { | |
7662 | if (_obj0) | |
7663 | delete _arg0; | |
7664 | } | |
7665 | return _resultobj; | |
7666 | } | |
7667 | ||
7668 | #define delete_wxWave(_swigobj) (delete _swigobj) | |
7669 | static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7670 | PyObject * _resultobj; | |
7671 | wxWave * _arg0; | |
7672 | PyObject * _argo0 = 0; | |
7673 | char *_kwnames[] = { "self", NULL }; | |
7674 | ||
7675 | self = self; | |
7676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0)) | |
7677 | return NULL; | |
7678 | if (_argo0) { | |
7679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p."); | |
7682 | return NULL; | |
7683 | } | |
7684 | } | |
7685 | { | |
4268f798 | 7686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7687 | delete_wxWave(_arg0); |
493f1553 | 7688 | |
4268f798 RD |
7689 | wxPyEndAllowThreads(__tstate); |
7690 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7691 | } Py_INCREF(Py_None); |
7692 | _resultobj = Py_None; | |
7693 | return _resultobj; | |
7694 | } | |
7695 | ||
7696 | #define wxWave_IsOk(_swigobj) (_swigobj->IsOk()) | |
7697 | static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7698 | PyObject * _resultobj; | |
7699 | bool _result; | |
7700 | wxWave * _arg0; | |
7701 | PyObject * _argo0 = 0; | |
7702 | char *_kwnames[] = { "self", NULL }; | |
7703 | ||
7704 | self = self; | |
7705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0)) | |
7706 | return NULL; | |
7707 | if (_argo0) { | |
7708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p."); | |
7711 | return NULL; | |
7712 | } | |
7713 | } | |
7714 | { | |
4268f798 | 7715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7716 | _result = (bool )wxWave_IsOk(_arg0); |
493f1553 | 7717 | |
4268f798 RD |
7718 | wxPyEndAllowThreads(__tstate); |
7719 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7720 | } _resultobj = Py_BuildValue("i",_result); |
7721 | return _resultobj; | |
7722 | } | |
7723 | ||
7724 | #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1)) | |
7725 | static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7726 | PyObject * _resultobj; | |
7727 | bool _result; | |
7728 | wxWave * _arg0; | |
7729 | bool _arg1 = (bool ) TRUE; | |
7730 | bool _arg2 = (bool ) FALSE; | |
7731 | PyObject * _argo0 = 0; | |
7732 | int tempbool1 = (int) TRUE; | |
7733 | int tempbool2 = (int) FALSE; | |
7734 | char *_kwnames[] = { "self","async","looped", NULL }; | |
7735 | ||
7736 | self = self; | |
7737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
7738 | return NULL; | |
7739 | if (_argo0) { | |
7740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p."); | |
7743 | return NULL; | |
7744 | } | |
7745 | } | |
7746 | _arg1 = (bool ) tempbool1; | |
7747 | _arg2 = (bool ) tempbool2; | |
7748 | { | |
4268f798 | 7749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7750 | _result = (bool )wxWave_Play(_arg0,_arg1,_arg2); |
493f1553 | 7751 | |
4268f798 RD |
7752 | wxPyEndAllowThreads(__tstate); |
7753 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7754 | } _resultobj = Py_BuildValue("i",_result); |
7755 | return _resultobj; | |
7756 | } | |
7757 | ||
b37c7e1d RD |
7758 | #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7759 | static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7760 | PyObject * _resultobj; | |
7761 | wxFileTypeInfo * _result; | |
7762 | char * _arg0; | |
7763 | char * _arg1; | |
7764 | char * _arg2; | |
7765 | char * _arg3; | |
7766 | char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL }; | |
7767 | char _ptemp[128]; | |
7768 | ||
7769 | self = self; | |
7770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ssss:new_wxFileTypeInfo",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
7771 | return NULL; | |
7772 | { | |
4268f798 | 7773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7774 | _result = (wxFileTypeInfo *)new_wxFileTypeInfo(_arg0,_arg1,_arg2,_arg3); |
b37c7e1d | 7775 | |
4268f798 RD |
7776 | wxPyEndAllowThreads(__tstate); |
7777 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7778 | } if (_result) { |
7779 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7780 | _resultobj = Py_BuildValue("s",_ptemp); | |
7781 | } else { | |
7782 | Py_INCREF(Py_None); | |
7783 | _resultobj = Py_None; | |
7784 | } | |
7785 | return _resultobj; | |
7786 | } | |
7787 | ||
7788 | #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0)) | |
7789 | static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7790 | PyObject * _resultobj; | |
7791 | wxFileTypeInfo * _result; | |
7792 | wxArrayString * _arg0; | |
7793 | PyObject * _obj0 = 0; | |
7794 | char *_kwnames[] = { "sArray", NULL }; | |
7795 | char _ptemp[128]; | |
7796 | ||
7797 | self = self; | |
7798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0)) | |
7799 | return NULL; | |
7800 | { | |
7801 | if (! PySequence_Check(_obj0)) { | |
7802 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7803 | return NULL; | |
7804 | } | |
7805 | _arg0 = new wxArrayString; | |
7806 | int i, len=PySequence_Length(_obj0); | |
7807 | for (i=0; i<len; i++) { | |
7808 | PyObject* item = PySequence_GetItem(_obj0, i); | |
c8bc7bb8 RD |
7809 | #if wxUSE_UNICODE |
7810 | PyObject* str = PyObject_Unicode(item); | |
7811 | _arg0->Add(PyUnicode_AsUnicode(str)); | |
7812 | #else | |
b37c7e1d | 7813 | PyObject* str = PyObject_Str(item); |
293a0a86 | 7814 | _arg0->Add(PyString_AsString(str)); |
c8bc7bb8 | 7815 | #endif |
b37c7e1d RD |
7816 | Py_DECREF(item); |
7817 | Py_DECREF(str); | |
7818 | } | |
7819 | } | |
7820 | { | |
4268f798 | 7821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7822 | _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0); |
b37c7e1d | 7823 | |
4268f798 RD |
7824 | wxPyEndAllowThreads(__tstate); |
7825 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7826 | } if (_result) { |
7827 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7828 | _resultobj = Py_BuildValue("s",_ptemp); | |
7829 | } else { | |
7830 | Py_INCREF(Py_None); | |
7831 | _resultobj = Py_None; | |
7832 | } | |
7833 | { | |
7834 | if (_obj0) | |
7835 | delete _arg0; | |
7836 | } | |
7837 | return _resultobj; | |
7838 | } | |
7839 | ||
7840 | #define new_wxNullFileTypeInfo() (new wxFileTypeInfo()) | |
7841 | static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7842 | PyObject * _resultobj; | |
7843 | wxFileTypeInfo * _result; | |
7844 | char *_kwnames[] = { NULL }; | |
7845 | char _ptemp[128]; | |
7846 | ||
7847 | self = self; | |
7848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames)) | |
7849 | return NULL; | |
7850 | { | |
4268f798 | 7851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7852 | _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo(); |
b37c7e1d | 7853 | |
4268f798 RD |
7854 | wxPyEndAllowThreads(__tstate); |
7855 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7856 | } if (_result) { |
7857 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7858 | _resultobj = Py_BuildValue("s",_ptemp); | |
7859 | } else { | |
7860 | Py_INCREF(Py_None); | |
7861 | _resultobj = Py_None; | |
7862 | } | |
7863 | return _resultobj; | |
7864 | } | |
7865 | ||
7866 | #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid()) | |
7867 | static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7868 | PyObject * _resultobj; | |
7869 | bool _result; | |
7870 | wxFileTypeInfo * _arg0; | |
7871 | PyObject * _argo0 = 0; | |
7872 | char *_kwnames[] = { "self", NULL }; | |
7873 | ||
7874 | self = self; | |
7875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0)) | |
7876 | return NULL; | |
7877 | if (_argo0) { | |
7878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p."); | |
7881 | return NULL; | |
7882 | } | |
7883 | } | |
7884 | { | |
4268f798 | 7885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7886 | _result = (bool )wxFileTypeInfo_IsValid(_arg0); |
b37c7e1d | 7887 | |
4268f798 RD |
7888 | wxPyEndAllowThreads(__tstate); |
7889 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7890 | } _resultobj = Py_BuildValue("i",_result); |
7891 | return _resultobj; | |
7892 | } | |
7893 | ||
7894 | #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1)) | |
7895 | static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7896 | PyObject * _resultobj; | |
7897 | wxFileTypeInfo * _arg0; | |
7898 | wxString * _arg1; | |
7899 | int _arg2 = (int ) 0; | |
7900 | PyObject * _argo0 = 0; | |
7901 | PyObject * _obj1 = 0; | |
7902 | char *_kwnames[] = { "self","iconFile","iconIndex", NULL }; | |
7903 | ||
7904 | self = self; | |
7905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
7906 | return NULL; | |
7907 | if (_argo0) { | |
7908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p."); | |
7911 | return NULL; | |
7912 | } | |
7913 | } | |
7914 | { | |
c8bc7bb8 RD |
7915 | _arg1 = wxString_in_helper(_obj1); |
7916 | if (_arg1 == NULL) | |
b37c7e1d | 7917 | return NULL; |
b37c7e1d RD |
7918 | } |
7919 | { | |
4268f798 | 7920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7921 | wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 7922 | |
4268f798 RD |
7923 | wxPyEndAllowThreads(__tstate); |
7924 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7925 | } Py_INCREF(Py_None); |
7926 | _resultobj = Py_None; | |
7927 | { | |
7928 | if (_obj1) | |
7929 | delete _arg1; | |
7930 | } | |
7931 | return _resultobj; | |
7932 | } | |
7933 | ||
7934 | #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0)) | |
7935 | static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7936 | PyObject * _resultobj; | |
7937 | wxFileTypeInfo * _arg0; | |
7938 | wxString * _arg1; | |
7939 | PyObject * _argo0 = 0; | |
7940 | PyObject * _obj1 = 0; | |
7941 | char *_kwnames[] = { "self","shortDesc", NULL }; | |
7942 | ||
7943 | self = self; | |
7944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1)) | |
7945 | return NULL; | |
7946 | if (_argo0) { | |
7947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p."); | |
7950 | return NULL; | |
7951 | } | |
7952 | } | |
7953 | { | |
c8bc7bb8 RD |
7954 | _arg1 = wxString_in_helper(_obj1); |
7955 | if (_arg1 == NULL) | |
b37c7e1d | 7956 | return NULL; |
b37c7e1d RD |
7957 | } |
7958 | { | |
4268f798 | 7959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7960 | wxFileTypeInfo_SetShortDesc(_arg0,*_arg1); |
b37c7e1d | 7961 | |
4268f798 RD |
7962 | wxPyEndAllowThreads(__tstate); |
7963 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7964 | } Py_INCREF(Py_None); |
7965 | _resultobj = Py_None; | |
7966 | { | |
7967 | if (_obj1) | |
7968 | delete _arg1; | |
7969 | } | |
7970 | return _resultobj; | |
7971 | } | |
7972 | ||
7973 | #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
7974 | static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7975 | PyObject * _resultobj; | |
7976 | wxString * _result; | |
7977 | wxFileTypeInfo * _arg0; | |
7978 | PyObject * _argo0 = 0; | |
7979 | char *_kwnames[] = { "self", NULL }; | |
7980 | ||
7981 | self = self; | |
7982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0)) | |
7983 | return NULL; | |
7984 | if (_argo0) { | |
7985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p."); | |
7988 | return NULL; | |
7989 | } | |
7990 | } | |
7991 | { | |
4268f798 | 7992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7993 | const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0); |
b37c7e1d RD |
7994 | _result = (wxString *) &_result_ref; |
7995 | ||
4268f798 RD |
7996 | wxPyEndAllowThreads(__tstate); |
7997 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 7998 | }{ |
c8bc7bb8 RD |
7999 | #if wxUSE_UNICODE |
8000 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8001 | #else | |
b37c7e1d | 8002 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8003 | #endif |
b37c7e1d RD |
8004 | } |
8005 | return _resultobj; | |
8006 | } | |
8007 | ||
8008 | #define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand()) | |
8009 | static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8010 | PyObject * _resultobj; | |
8011 | wxString * _result; | |
8012 | wxFileTypeInfo * _arg0; | |
8013 | PyObject * _argo0 = 0; | |
8014 | char *_kwnames[] = { "self", NULL }; | |
8015 | ||
8016 | self = self; | |
8017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0)) | |
8018 | return NULL; | |
8019 | if (_argo0) { | |
8020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p."); | |
8023 | return NULL; | |
8024 | } | |
8025 | } | |
8026 | { | |
4268f798 | 8027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8028 | const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0); |
b37c7e1d RD |
8029 | _result = (wxString *) &_result_ref; |
8030 | ||
4268f798 RD |
8031 | wxPyEndAllowThreads(__tstate); |
8032 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8033 | }{ |
c8bc7bb8 RD |
8034 | #if wxUSE_UNICODE |
8035 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8036 | #else | |
b37c7e1d | 8037 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8038 | #endif |
b37c7e1d RD |
8039 | } |
8040 | return _resultobj; | |
8041 | } | |
8042 | ||
8043 | #define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand()) | |
8044 | static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8045 | PyObject * _resultobj; | |
8046 | wxString * _result; | |
8047 | wxFileTypeInfo * _arg0; | |
8048 | PyObject * _argo0 = 0; | |
8049 | char *_kwnames[] = { "self", NULL }; | |
8050 | ||
8051 | self = self; | |
8052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0)) | |
8053 | return NULL; | |
8054 | if (_argo0) { | |
8055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p."); | |
8058 | return NULL; | |
8059 | } | |
8060 | } | |
8061 | { | |
4268f798 | 8062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8063 | const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0); |
b37c7e1d RD |
8064 | _result = (wxString *) &_result_ref; |
8065 | ||
4268f798 RD |
8066 | wxPyEndAllowThreads(__tstate); |
8067 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8068 | }{ |
c8bc7bb8 RD |
8069 | #if wxUSE_UNICODE |
8070 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8071 | #else | |
b37c7e1d | 8072 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8073 | #endif |
b37c7e1d RD |
8074 | } |
8075 | return _resultobj; | |
8076 | } | |
8077 | ||
8078 | #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc()) | |
8079 | static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8080 | PyObject * _resultobj; | |
8081 | wxString * _result; | |
8082 | wxFileTypeInfo * _arg0; | |
8083 | PyObject * _argo0 = 0; | |
8084 | char *_kwnames[] = { "self", NULL }; | |
8085 | ||
8086 | self = self; | |
8087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0)) | |
8088 | return NULL; | |
8089 | if (_argo0) { | |
8090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p."); | |
8093 | return NULL; | |
8094 | } | |
8095 | } | |
8096 | { | |
4268f798 | 8097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8098 | const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0); |
b37c7e1d RD |
8099 | _result = (wxString *) &_result_ref; |
8100 | ||
4268f798 RD |
8101 | wxPyEndAllowThreads(__tstate); |
8102 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8103 | }{ |
c8bc7bb8 RD |
8104 | #if wxUSE_UNICODE |
8105 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8106 | #else | |
b37c7e1d | 8107 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8108 | #endif |
b37c7e1d RD |
8109 | } |
8110 | return _resultobj; | |
8111 | } | |
8112 | ||
8113 | #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription()) | |
8114 | static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8115 | PyObject * _resultobj; | |
8116 | wxString * _result; | |
8117 | wxFileTypeInfo * _arg0; | |
8118 | PyObject * _argo0 = 0; | |
8119 | char *_kwnames[] = { "self", NULL }; | |
8120 | ||
8121 | self = self; | |
8122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0)) | |
8123 | return NULL; | |
8124 | if (_argo0) { | |
8125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p."); | |
8128 | return NULL; | |
8129 | } | |
8130 | } | |
8131 | { | |
4268f798 | 8132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8133 | const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0); |
b37c7e1d RD |
8134 | _result = (wxString *) &_result_ref; |
8135 | ||
4268f798 RD |
8136 | wxPyEndAllowThreads(__tstate); |
8137 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8138 | }{ |
c8bc7bb8 RD |
8139 | #if wxUSE_UNICODE |
8140 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8141 | #else | |
b37c7e1d | 8142 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8143 | #endif |
b37c7e1d RD |
8144 | } |
8145 | return _resultobj; | |
8146 | } | |
8147 | ||
8148 | static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) { | |
8149 | wxArrayString& arr = (wxArrayString&)self->GetExtensions(); | |
8150 | return wxArrayString2PyList_helper(arr); | |
8151 | } | |
8152 | static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8153 | PyObject * _resultobj; | |
8154 | PyObject * _result; | |
8155 | wxFileTypeInfo * _arg0; | |
8156 | PyObject * _argo0 = 0; | |
8157 | char *_kwnames[] = { "self", NULL }; | |
8158 | ||
8159 | self = self; | |
8160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0)) | |
8161 | return NULL; | |
8162 | if (_argo0) { | |
8163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p."); | |
8166 | return NULL; | |
8167 | } | |
8168 | } | |
8169 | { | |
4268f798 | 8170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8171 | _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0); |
b37c7e1d | 8172 | |
4268f798 RD |
8173 | wxPyEndAllowThreads(__tstate); |
8174 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8175 | }{ |
8176 | _resultobj = _result; | |
8177 | } | |
8178 | return _resultobj; | |
8179 | } | |
8180 | ||
8181 | #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount()) | |
8182 | static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8183 | PyObject * _resultobj; | |
8184 | int _result; | |
8185 | wxFileTypeInfo * _arg0; | |
8186 | PyObject * _argo0 = 0; | |
8187 | char *_kwnames[] = { "self", NULL }; | |
8188 | ||
8189 | self = self; | |
8190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0)) | |
8191 | return NULL; | |
8192 | if (_argo0) { | |
8193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p."); | |
8196 | return NULL; | |
8197 | } | |
8198 | } | |
8199 | { | |
4268f798 | 8200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8201 | _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0); |
b37c7e1d | 8202 | |
4268f798 RD |
8203 | wxPyEndAllowThreads(__tstate); |
8204 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8205 | } _resultobj = Py_BuildValue("i",_result); |
8206 | return _resultobj; | |
8207 | } | |
8208 | ||
8209 | #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile()) | |
8210 | static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8211 | PyObject * _resultobj; | |
8212 | wxString * _result; | |
8213 | wxFileTypeInfo * _arg0; | |
8214 | PyObject * _argo0 = 0; | |
8215 | char *_kwnames[] = { "self", NULL }; | |
8216 | ||
8217 | self = self; | |
8218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0)) | |
8219 | return NULL; | |
8220 | if (_argo0) { | |
8221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p."); | |
8224 | return NULL; | |
8225 | } | |
8226 | } | |
8227 | { | |
4268f798 | 8228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8229 | const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0); |
b37c7e1d RD |
8230 | _result = (wxString *) &_result_ref; |
8231 | ||
4268f798 RD |
8232 | wxPyEndAllowThreads(__tstate); |
8233 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8234 | }{ |
c8bc7bb8 RD |
8235 | #if wxUSE_UNICODE |
8236 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8237 | #else | |
b37c7e1d | 8238 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8239 | #endif |
b37c7e1d RD |
8240 | } |
8241 | return _resultobj; | |
8242 | } | |
8243 | ||
8244 | #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex()) | |
8245 | static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8246 | PyObject * _resultobj; | |
8247 | int _result; | |
8248 | wxFileTypeInfo * _arg0; | |
8249 | PyObject * _argo0 = 0; | |
8250 | char *_kwnames[] = { "self", NULL }; | |
8251 | ||
8252 | self = self; | |
8253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0)) | |
8254 | return NULL; | |
8255 | if (_argo0) { | |
8256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p."); | |
8259 | return NULL; | |
8260 | } | |
8261 | } | |
8262 | { | |
4268f798 | 8263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8264 | _result = (int )wxFileTypeInfo_GetIconIndex(_arg0); |
b37c7e1d | 8265 | |
4268f798 RD |
8266 | wxPyEndAllowThreads(__tstate); |
8267 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8268 | } _resultobj = Py_BuildValue("i",_result); |
8269 | return _resultobj; | |
8270 | } | |
8271 | ||
8272 | #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0)) | |
8273 | static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8274 | PyObject * _resultobj; | |
8275 | wxFileType * _result; | |
8276 | wxFileTypeInfo * _arg0; | |
8277 | PyObject * _argo0 = 0; | |
8278 | char *_kwnames[] = { "ftInfo", NULL }; | |
8279 | char _ptemp[128]; | |
8280 | ||
8281 | self = self; | |
8282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0)) | |
8283 | return NULL; | |
8284 | if (_argo0) { | |
8285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p."); | |
8288 | return NULL; | |
8289 | } | |
8290 | } | |
8291 | { | |
4268f798 | 8292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8293 | _result = (wxFileType *)new_wxFileType(*_arg0); |
b37c7e1d | 8294 | |
4268f798 RD |
8295 | wxPyEndAllowThreads(__tstate); |
8296 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8297 | } if (_result) { |
8298 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8299 | _resultobj = Py_BuildValue("s",_ptemp); | |
8300 | } else { | |
8301 | Py_INCREF(Py_None); | |
8302 | _resultobj = Py_None; | |
8303 | } | |
8304 | return _resultobj; | |
8305 | } | |
8306 | ||
8307 | static PyObject * wxFileType_GetMimeType(wxFileType *self) { | |
8308 | wxString str; | |
c8bc7bb8 RD |
8309 | if (self->GetMimeType(&str)) { |
8310 | #if wxUSE_UNICODE | |
8311 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8312 | #else | |
8313 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8314 | #endif | |
8315 | } | |
b37c7e1d RD |
8316 | else |
8317 | RETURN_NONE(); | |
8318 | } | |
8319 | static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8320 | PyObject * _resultobj; | |
8321 | PyObject * _result; | |
8322 | wxFileType * _arg0; | |
8323 | PyObject * _argo0 = 0; | |
8324 | char *_kwnames[] = { "self", NULL }; | |
8325 | ||
8326 | self = self; | |
8327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0)) | |
8328 | return NULL; | |
8329 | if (_argo0) { | |
8330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p."); | |
8333 | return NULL; | |
8334 | } | |
8335 | } | |
8336 | { | |
4268f798 | 8337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8338 | _result = (PyObject *)wxFileType_GetMimeType(_arg0); |
b37c7e1d | 8339 | |
4268f798 RD |
8340 | wxPyEndAllowThreads(__tstate); |
8341 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8342 | }{ |
8343 | _resultobj = _result; | |
8344 | } | |
8345 | return _resultobj; | |
8346 | } | |
8347 | ||
8348 | static PyObject * wxFileType_GetMimeTypes(wxFileType *self) { | |
8349 | wxArrayString arr; | |
8350 | if (self->GetMimeTypes(arr)) | |
8351 | return wxArrayString2PyList_helper(arr); | |
8352 | else | |
8353 | RETURN_NONE(); | |
8354 | } | |
8355 | static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8356 | PyObject * _resultobj; | |
8357 | PyObject * _result; | |
8358 | wxFileType * _arg0; | |
8359 | PyObject * _argo0 = 0; | |
8360 | char *_kwnames[] = { "self", NULL }; | |
8361 | ||
8362 | self = self; | |
8363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0)) | |
8364 | return NULL; | |
8365 | if (_argo0) { | |
8366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p."); | |
8369 | return NULL; | |
8370 | } | |
8371 | } | |
8372 | { | |
4268f798 | 8373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8374 | _result = (PyObject *)wxFileType_GetMimeTypes(_arg0); |
b37c7e1d | 8375 | |
4268f798 RD |
8376 | wxPyEndAllowThreads(__tstate); |
8377 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8378 | }{ |
8379 | _resultobj = _result; | |
8380 | } | |
8381 | return _resultobj; | |
8382 | } | |
8383 | ||
8384 | static PyObject * wxFileType_GetExtensions(wxFileType *self) { | |
8385 | wxArrayString arr; | |
8386 | if (self->GetExtensions(arr)) | |
8387 | return wxArrayString2PyList_helper(arr); | |
8388 | else | |
8389 | RETURN_NONE(); | |
8390 | } | |
8391 | static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8392 | PyObject * _resultobj; | |
8393 | PyObject * _result; | |
8394 | wxFileType * _arg0; | |
8395 | PyObject * _argo0 = 0; | |
8396 | char *_kwnames[] = { "self", NULL }; | |
8397 | ||
8398 | self = self; | |
8399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0)) | |
8400 | return NULL; | |
8401 | if (_argo0) { | |
8402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p."); | |
8405 | return NULL; | |
8406 | } | |
8407 | } | |
8408 | { | |
4268f798 | 8409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8410 | _result = (PyObject *)wxFileType_GetExtensions(_arg0); |
b37c7e1d | 8411 | |
4268f798 RD |
8412 | wxPyEndAllowThreads(__tstate); |
8413 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8414 | }{ |
8415 | _resultobj = _result; | |
8416 | } | |
8417 | return _resultobj; | |
8418 | } | |
8419 | ||
8420 | static wxIcon * wxFileType_GetIcon(wxFileType *self) { | |
8421 | wxIcon icon; | |
8422 | if (self->GetIcon(&icon)) | |
8423 | return new wxIcon(icon); | |
8424 | else | |
8425 | return NULL; | |
8426 | } | |
8427 | static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8428 | PyObject * _resultobj; | |
8429 | wxIcon * _result; | |
8430 | wxFileType * _arg0; | |
8431 | PyObject * _argo0 = 0; | |
8432 | char *_kwnames[] = { "self", NULL }; | |
8433 | char _ptemp[128]; | |
8434 | ||
8435 | self = self; | |
8436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0)) | |
8437 | return NULL; | |
8438 | if (_argo0) { | |
8439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p."); | |
8442 | return NULL; | |
8443 | } | |
8444 | } | |
8445 | { | |
4268f798 | 8446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8447 | _result = (wxIcon *)wxFileType_GetIcon(_arg0); |
b37c7e1d | 8448 | |
4268f798 RD |
8449 | wxPyEndAllowThreads(__tstate); |
8450 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8451 | } if (_result) { |
8452 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
8453 | _resultobj = Py_BuildValue("s",_ptemp); | |
8454 | } else { | |
8455 | Py_INCREF(Py_None); | |
8456 | _resultobj = Py_None; | |
8457 | } | |
8458 | return _resultobj; | |
8459 | } | |
8460 | ||
8461 | static PyObject * wxFileType_GetIconInfo(wxFileType *self) { | |
8462 | wxIcon icon; | |
8463 | wxString iconFile; | |
8464 | int iconIndex; | |
8465 | if (self->GetIcon(&icon, &iconFile, &iconIndex)) { | |
4268f798 | 8466 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
8467 | PyObject* tuple = PyTuple_New(3); |
8468 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(icon), | |
8469 | "wxIcon", TRUE)); | |
c8bc7bb8 RD |
8470 | #if wxUSE_UNICODE |
8471 | PyTuple_SetItem(tuple, 1, PyUnicode_FromUnicode(iconFile.c_str(), iconFile.Len())); | |
8472 | #else | |
8473 | PyTuple_SetItem(tuple, 1, PyString_FromStringAndSize(iconFile.c_str(), iconFile.Len())); | |
8474 | #endif | |
b37c7e1d | 8475 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); |
4268f798 | 8476 | wxPyEndBlockThreads(); |
b37c7e1d RD |
8477 | return tuple; |
8478 | } | |
8479 | else | |
8480 | RETURN_NONE(); | |
8481 | } | |
8482 | static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8483 | PyObject * _resultobj; | |
8484 | PyObject * _result; | |
8485 | wxFileType * _arg0; | |
8486 | PyObject * _argo0 = 0; | |
8487 | char *_kwnames[] = { "self", NULL }; | |
8488 | ||
8489 | self = self; | |
8490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0)) | |
8491 | return NULL; | |
8492 | if (_argo0) { | |
8493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p."); | |
8496 | return NULL; | |
8497 | } | |
8498 | } | |
8499 | { | |
4268f798 | 8500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8501 | _result = (PyObject *)wxFileType_GetIconInfo(_arg0); |
b37c7e1d | 8502 | |
4268f798 RD |
8503 | wxPyEndAllowThreads(__tstate); |
8504 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8505 | }{ |
8506 | _resultobj = _result; | |
8507 | } | |
8508 | return _resultobj; | |
8509 | } | |
8510 | ||
8511 | static PyObject * wxFileType_GetDescription(wxFileType *self) { | |
8512 | wxString str; | |
c8bc7bb8 RD |
8513 | if (self->GetDescription(&str)) { |
8514 | #if wxUSE_UNICODE | |
8515 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8516 | #else | |
8517 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8518 | #endif | |
8519 | } else | |
b37c7e1d RD |
8520 | RETURN_NONE(); |
8521 | } | |
8522 | static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8523 | PyObject * _resultobj; | |
8524 | PyObject * _result; | |
8525 | wxFileType * _arg0; | |
8526 | PyObject * _argo0 = 0; | |
8527 | char *_kwnames[] = { "self", NULL }; | |
8528 | ||
8529 | self = self; | |
8530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0)) | |
8531 | return NULL; | |
8532 | if (_argo0) { | |
8533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p."); | |
8536 | return NULL; | |
8537 | } | |
8538 | } | |
8539 | { | |
4268f798 | 8540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8541 | _result = (PyObject *)wxFileType_GetDescription(_arg0); |
b37c7e1d | 8542 | |
4268f798 RD |
8543 | wxPyEndAllowThreads(__tstate); |
8544 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8545 | }{ |
8546 | _resultobj = _result; | |
8547 | } | |
8548 | return _resultobj; | |
8549 | } | |
8550 | ||
8551 | static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8552 | wxString str; | |
c8bc7bb8 RD |
8553 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
8554 | #if wxUSE_UNICODE | |
8555 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8556 | #else | |
8557 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8558 | #endif | |
8559 | } else | |
b37c7e1d RD |
8560 | RETURN_NONE(); |
8561 | } | |
8562 | static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8563 | PyObject * _resultobj; | |
8564 | PyObject * _result; | |
8565 | wxFileType * _arg0; | |
8566 | wxString * _arg1; | |
137b5242 | 8567 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8568 | PyObject * _argo0 = 0; |
8569 | PyObject * _obj1 = 0; | |
8570 | PyObject * _obj2 = 0; | |
8571 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8572 | ||
8573 | self = self; | |
8574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8575 | return NULL; | |
8576 | if (_argo0) { | |
8577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p."); | |
8580 | return NULL; | |
8581 | } | |
8582 | } | |
8583 | { | |
c8bc7bb8 RD |
8584 | _arg1 = wxString_in_helper(_obj1); |
8585 | if (_arg1 == NULL) | |
b37c7e1d | 8586 | return NULL; |
b37c7e1d RD |
8587 | } |
8588 | if (_obj2) | |
8589 | { | |
c8bc7bb8 RD |
8590 | _arg2 = wxString_in_helper(_obj2); |
8591 | if (_arg2 == NULL) | |
b37c7e1d | 8592 | return NULL; |
b37c7e1d RD |
8593 | } |
8594 | { | |
4268f798 | 8595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8596 | _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8597 | |
4268f798 RD |
8598 | wxPyEndAllowThreads(__tstate); |
8599 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8600 | }{ |
8601 | _resultobj = _result; | |
8602 | } | |
8603 | { | |
8604 | if (_obj1) | |
8605 | delete _arg1; | |
8606 | } | |
8607 | { | |
8608 | if (_obj2) | |
8609 | delete _arg2; | |
8610 | } | |
8611 | return _resultobj; | |
8612 | } | |
8613 | ||
8614 | static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8615 | wxString str; | |
c8bc7bb8 RD |
8616 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
8617 | #if wxUSE_UNICODE | |
8618 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8619 | #else | |
8620 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8621 | #endif | |
8622 | } else | |
b37c7e1d RD |
8623 | RETURN_NONE(); |
8624 | } | |
8625 | static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8626 | PyObject * _resultobj; | |
8627 | PyObject * _result; | |
8628 | wxFileType * _arg0; | |
8629 | wxString * _arg1; | |
137b5242 | 8630 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8631 | PyObject * _argo0 = 0; |
8632 | PyObject * _obj1 = 0; | |
8633 | PyObject * _obj2 = 0; | |
8634 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8635 | ||
8636 | self = self; | |
8637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8638 | return NULL; | |
8639 | if (_argo0) { | |
8640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p."); | |
8643 | return NULL; | |
8644 | } | |
8645 | } | |
8646 | { | |
c8bc7bb8 RD |
8647 | _arg1 = wxString_in_helper(_obj1); |
8648 | if (_arg1 == NULL) | |
b37c7e1d | 8649 | return NULL; |
b37c7e1d RD |
8650 | } |
8651 | if (_obj2) | |
8652 | { | |
c8bc7bb8 RD |
8653 | _arg2 = wxString_in_helper(_obj2); |
8654 | if (_arg2 == NULL) | |
b37c7e1d | 8655 | return NULL; |
b37c7e1d RD |
8656 | } |
8657 | { | |
4268f798 | 8658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8659 | _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8660 | |
4268f798 RD |
8661 | wxPyEndAllowThreads(__tstate); |
8662 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8663 | }{ |
8664 | _resultobj = _result; | |
8665 | } | |
8666 | { | |
8667 | if (_obj1) | |
8668 | delete _arg1; | |
8669 | } | |
8670 | { | |
8671 | if (_obj2) | |
8672 | delete _arg2; | |
8673 | } | |
8674 | return _resultobj; | |
8675 | } | |
8676 | ||
8677 | static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8678 | wxArrayString verbs; | |
8679 | wxArrayString commands; | |
8680 | if (self->GetAllCommands(&verbs, &commands, | |
8681 | wxFileType::MessageParameters(filename, mimetype))) { | |
4268f798 | 8682 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
8683 | PyObject* tuple = PyTuple_New(2); |
8684 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
8685 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
4268f798 | 8686 | wxPyEndBlockThreads(); |
b37c7e1d RD |
8687 | return tuple; |
8688 | } | |
8689 | else | |
8690 | RETURN_NONE(); | |
8691 | } | |
8692 | static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8693 | PyObject * _resultobj; | |
8694 | PyObject * _result; | |
8695 | wxFileType * _arg0; | |
8696 | wxString * _arg1; | |
137b5242 | 8697 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8698 | PyObject * _argo0 = 0; |
8699 | PyObject * _obj1 = 0; | |
8700 | PyObject * _obj2 = 0; | |
8701 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8702 | ||
8703 | self = self; | |
8704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8705 | return NULL; | |
8706 | if (_argo0) { | |
8707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p."); | |
8710 | return NULL; | |
8711 | } | |
8712 | } | |
8713 | { | |
c8bc7bb8 RD |
8714 | _arg1 = wxString_in_helper(_obj1); |
8715 | if (_arg1 == NULL) | |
b37c7e1d | 8716 | return NULL; |
b37c7e1d RD |
8717 | } |
8718 | if (_obj2) | |
8719 | { | |
c8bc7bb8 RD |
8720 | _arg2 = wxString_in_helper(_obj2); |
8721 | if (_arg2 == NULL) | |
b37c7e1d | 8722 | return NULL; |
b37c7e1d RD |
8723 | } |
8724 | { | |
4268f798 | 8725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8726 | _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8727 | |
4268f798 RD |
8728 | wxPyEndAllowThreads(__tstate); |
8729 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8730 | }{ |
8731 | _resultobj = _result; | |
8732 | } | |
8733 | { | |
8734 | if (_obj1) | |
8735 | delete _arg1; | |
8736 | } | |
8737 | { | |
8738 | if (_obj2) | |
8739 | delete _arg2; | |
8740 | } | |
8741 | return _resultobj; | |
8742 | } | |
8743 | ||
8744 | #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2)) | |
8745 | static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8746 | PyObject * _resultobj; | |
8747 | bool _result; | |
8748 | wxFileType * _arg0; | |
8749 | wxString * _arg1; | |
8750 | wxString * _arg2; | |
8751 | bool _arg3 = (bool ) TRUE; | |
8752 | PyObject * _argo0 = 0; | |
8753 | PyObject * _obj1 = 0; | |
8754 | PyObject * _obj2 = 0; | |
8755 | int tempbool3 = (int) TRUE; | |
8756 | char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL }; | |
8757 | ||
8758 | self = self; | |
8759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) | |
8760 | return NULL; | |
8761 | if (_argo0) { | |
8762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p."); | |
8765 | return NULL; | |
8766 | } | |
8767 | } | |
8768 | { | |
c8bc7bb8 RD |
8769 | _arg1 = wxString_in_helper(_obj1); |
8770 | if (_arg1 == NULL) | |
b37c7e1d | 8771 | return NULL; |
b37c7e1d RD |
8772 | } |
8773 | { | |
c8bc7bb8 RD |
8774 | _arg2 = wxString_in_helper(_obj2); |
8775 | if (_arg2 == NULL) | |
b37c7e1d | 8776 | return NULL; |
b37c7e1d RD |
8777 | } |
8778 | _arg3 = (bool ) tempbool3; | |
8779 | { | |
4268f798 | 8780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8781 | _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3); |
b37c7e1d | 8782 | |
4268f798 RD |
8783 | wxPyEndAllowThreads(__tstate); |
8784 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8785 | } _resultobj = Py_BuildValue("i",_result); |
8786 | { | |
8787 | if (_obj1) | |
8788 | delete _arg1; | |
8789 | } | |
8790 | { | |
8791 | if (_obj2) | |
8792 | delete _arg2; | |
8793 | } | |
8794 | return _resultobj; | |
8795 | } | |
8796 | ||
8797 | #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1)) | |
8798 | static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8799 | PyObject * _resultobj; | |
8800 | bool _result; | |
8801 | wxFileType * _arg0; | |
137b5242 | 8802 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8803 | int _arg2 = (int ) 0; |
8804 | PyObject * _argo0 = 0; | |
8805 | PyObject * _obj1 = 0; | |
8806 | char *_kwnames[] = { "self","cmd","index", NULL }; | |
8807 | ||
8808 | self = self; | |
8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
8810 | return NULL; | |
8811 | if (_argo0) { | |
8812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p."); | |
8815 | return NULL; | |
8816 | } | |
8817 | } | |
8818 | if (_obj1) | |
8819 | { | |
c8bc7bb8 RD |
8820 | _arg1 = wxString_in_helper(_obj1); |
8821 | if (_arg1 == NULL) | |
b37c7e1d | 8822 | return NULL; |
b37c7e1d RD |
8823 | } |
8824 | { | |
4268f798 | 8825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8826 | _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 8827 | |
4268f798 RD |
8828 | wxPyEndAllowThreads(__tstate); |
8829 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8830 | } _resultobj = Py_BuildValue("i",_result); |
8831 | { | |
8832 | if (_obj1) | |
8833 | delete _arg1; | |
8834 | } | |
8835 | return _resultobj; | |
8836 | } | |
8837 | ||
8838 | #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate()) | |
8839 | static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8840 | PyObject * _resultobj; | |
8841 | bool _result; | |
8842 | wxFileType * _arg0; | |
8843 | PyObject * _argo0 = 0; | |
8844 | char *_kwnames[] = { "self", NULL }; | |
8845 | ||
8846 | self = self; | |
8847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0)) | |
8848 | return NULL; | |
8849 | if (_argo0) { | |
8850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p."); | |
8853 | return NULL; | |
8854 | } | |
8855 | } | |
8856 | { | |
4268f798 | 8857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8858 | _result = (bool )wxFileType_Unassociate(_arg0); |
b37c7e1d | 8859 | |
4268f798 RD |
8860 | wxPyEndAllowThreads(__tstate); |
8861 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8862 | } _resultobj = Py_BuildValue("i",_result); |
8863 | return _resultobj; | |
8864 | } | |
8865 | ||
8866 | static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8867 | PyObject * _resultobj; | |
8868 | wxString * _result; | |
8869 | wxString * _arg0; | |
8870 | wxFileType::MessageParameters * _arg1; | |
8871 | PyObject * _obj0 = 0; | |
8872 | PyObject * _argo1 = 0; | |
8873 | char *_kwnames[] = { "command","params", NULL }; | |
8874 | ||
8875 | self = self; | |
8876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1)) | |
8877 | return NULL; | |
8878 | { | |
c8bc7bb8 RD |
8879 | _arg0 = wxString_in_helper(_obj0); |
8880 | if (_arg0 == NULL) | |
b37c7e1d | 8881 | return NULL; |
b37c7e1d RD |
8882 | } |
8883 | if (_argo1) { | |
8884 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8885 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) { | |
8886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p."); | |
8887 | return NULL; | |
8888 | } | |
8889 | } | |
8890 | { | |
4268f798 | 8891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8892 | _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1)); |
b37c7e1d | 8893 | |
4268f798 RD |
8894 | wxPyEndAllowThreads(__tstate); |
8895 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8896 | }{ |
c8bc7bb8 RD |
8897 | #if wxUSE_UNICODE |
8898 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8899 | #else | |
b37c7e1d | 8900 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8901 | #endif |
b37c7e1d RD |
8902 | } |
8903 | { | |
8904 | if (_obj0) | |
8905 | delete _arg0; | |
8906 | } | |
8907 | { | |
8908 | delete _result; | |
8909 | } | |
8910 | return _resultobj; | |
8911 | } | |
8912 | ||
8913 | #define delete_wxFileType(_swigobj) (delete _swigobj) | |
8914 | static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8915 | PyObject * _resultobj; | |
8916 | wxFileType * _arg0; | |
8917 | PyObject * _argo0 = 0; | |
8918 | char *_kwnames[] = { "self", NULL }; | |
8919 | ||
8920 | self = self; | |
8921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0)) | |
8922 | return NULL; | |
8923 | if (_argo0) { | |
8924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p."); | |
8927 | return NULL; | |
8928 | } | |
8929 | } | |
8930 | { | |
4268f798 | 8931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8932 | delete_wxFileType(_arg0); |
b37c7e1d | 8933 | |
4268f798 RD |
8934 | wxPyEndAllowThreads(__tstate); |
8935 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8936 | } Py_INCREF(Py_None); |
8937 | _resultobj = Py_None; | |
8938 | return _resultobj; | |
8939 | } | |
8940 | ||
8941 | static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8942 | PyObject * _resultobj; | |
8943 | bool _result; | |
8944 | wxString * _arg0; | |
8945 | wxString * _arg1; | |
8946 | PyObject * _obj0 = 0; | |
8947 | PyObject * _obj1 = 0; | |
8948 | char *_kwnames[] = { "mimeType","wildcard", NULL }; | |
8949 | ||
8950 | self = self; | |
8951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1)) | |
8952 | return NULL; | |
8953 | { | |
c8bc7bb8 RD |
8954 | _arg0 = wxString_in_helper(_obj0); |
8955 | if (_arg0 == NULL) | |
b37c7e1d | 8956 | return NULL; |
b37c7e1d RD |
8957 | } |
8958 | { | |
c8bc7bb8 RD |
8959 | _arg1 = wxString_in_helper(_obj1); |
8960 | if (_arg1 == NULL) | |
b37c7e1d | 8961 | return NULL; |
b37c7e1d RD |
8962 | } |
8963 | { | |
4268f798 | 8964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8965 | _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1); |
b37c7e1d | 8966 | |
4268f798 RD |
8967 | wxPyEndAllowThreads(__tstate); |
8968 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8969 | } _resultobj = Py_BuildValue("i",_result); |
8970 | { | |
8971 | if (_obj0) | |
8972 | delete _arg0; | |
8973 | } | |
8974 | { | |
8975 | if (_obj1) | |
8976 | delete _arg1; | |
8977 | } | |
8978 | return _resultobj; | |
8979 | } | |
8980 | ||
8981 | #define new_wxMimeTypesManager() (new wxMimeTypesManager()) | |
8982 | static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8983 | PyObject * _resultobj; | |
8984 | wxMimeTypesManager * _result; | |
8985 | char *_kwnames[] = { NULL }; | |
8986 | char _ptemp[128]; | |
8987 | ||
8988 | self = self; | |
8989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames)) | |
8990 | return NULL; | |
8991 | { | |
4268f798 | 8992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8993 | _result = (wxMimeTypesManager *)new_wxMimeTypesManager(); |
b37c7e1d | 8994 | |
4268f798 RD |
8995 | wxPyEndAllowThreads(__tstate); |
8996 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8997 | } if (_result) { |
8998 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p"); | |
8999 | _resultobj = Py_BuildValue("s",_ptemp); | |
9000 | } else { | |
9001 | Py_INCREF(Py_None); | |
9002 | _resultobj = Py_None; | |
9003 | } | |
9004 | return _resultobj; | |
9005 | } | |
9006 | ||
9007 | #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1)) | |
9008 | static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9009 | PyObject * _resultobj; | |
9010 | wxMimeTypesManager * _arg0; | |
9011 | int _arg1 = (int ) (wxMAILCAP_STANDARD); | |
137b5242 | 9012 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9013 | PyObject * _argo0 = 0; |
9014 | PyObject * _obj2 = 0; | |
9015 | char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL }; | |
9016 | ||
9017 | self = self; | |
9018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9019 | return NULL; | |
9020 | if (_argo0) { | |
9021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p."); | |
9024 | return NULL; | |
9025 | } | |
9026 | } | |
9027 | if (_obj2) | |
9028 | { | |
c8bc7bb8 RD |
9029 | _arg2 = wxString_in_helper(_obj2); |
9030 | if (_arg2 == NULL) | |
b37c7e1d | 9031 | return NULL; |
b37c7e1d RD |
9032 | } |
9033 | { | |
4268f798 | 9034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9035 | wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2); |
b37c7e1d | 9036 | |
4268f798 RD |
9037 | wxPyEndAllowThreads(__tstate); |
9038 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9039 | } Py_INCREF(Py_None); |
9040 | _resultobj = Py_None; | |
9041 | { | |
9042 | if (_obj2) | |
9043 | delete _arg2; | |
9044 | } | |
9045 | return _resultobj; | |
9046 | } | |
9047 | ||
9048 | #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData()) | |
9049 | static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9050 | PyObject * _resultobj; | |
9051 | wxMimeTypesManager * _arg0; | |
9052 | PyObject * _argo0 = 0; | |
9053 | char *_kwnames[] = { "self", NULL }; | |
9054 | ||
9055 | self = self; | |
9056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0)) | |
9057 | return NULL; | |
9058 | if (_argo0) { | |
9059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p."); | |
9062 | return NULL; | |
9063 | } | |
9064 | } | |
9065 | { | |
4268f798 | 9066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9067 | wxMimeTypesManager_ClearData(_arg0); |
b37c7e1d | 9068 | |
4268f798 RD |
9069 | wxPyEndAllowThreads(__tstate); |
9070 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9071 | } Py_INCREF(Py_None); |
9072 | _resultobj = Py_None; | |
9073 | return _resultobj; | |
9074 | } | |
9075 | ||
9076 | #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0)) | |
9077 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9078 | PyObject * _resultobj; | |
9079 | wxFileType * _result; | |
9080 | wxMimeTypesManager * _arg0; | |
9081 | wxString * _arg1; | |
9082 | PyObject * _argo0 = 0; | |
9083 | PyObject * _obj1 = 0; | |
9084 | char *_kwnames[] = { "self","ext", NULL }; | |
9085 | char _ptemp[128]; | |
9086 | ||
9087 | self = self; | |
9088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1)) | |
9089 | return NULL; | |
9090 | if (_argo0) { | |
9091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p."); | |
9094 | return NULL; | |
9095 | } | |
9096 | } | |
9097 | { | |
c8bc7bb8 RD |
9098 | _arg1 = wxString_in_helper(_obj1); |
9099 | if (_arg1 == NULL) | |
b37c7e1d | 9100 | return NULL; |
b37c7e1d RD |
9101 | } |
9102 | { | |
4268f798 | 9103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9104 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1); |
b37c7e1d | 9105 | |
4268f798 RD |
9106 | wxPyEndAllowThreads(__tstate); |
9107 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9108 | } if (_result) { |
9109 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9110 | _resultobj = Py_BuildValue("s",_ptemp); | |
9111 | } else { | |
9112 | Py_INCREF(Py_None); | |
9113 | _resultobj = Py_None; | |
9114 | } | |
9115 | { | |
9116 | if (_obj1) | |
9117 | delete _arg1; | |
9118 | } | |
9119 | return _resultobj; | |
9120 | } | |
9121 | ||
9122 | #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0)) | |
9123 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9124 | PyObject * _resultobj; | |
9125 | wxFileType * _result; | |
9126 | wxMimeTypesManager * _arg0; | |
9127 | wxString * _arg1; | |
9128 | PyObject * _argo0 = 0; | |
9129 | PyObject * _obj1 = 0; | |
9130 | char *_kwnames[] = { "self","mimeType", NULL }; | |
9131 | char _ptemp[128]; | |
9132 | ||
9133 | self = self; | |
9134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1)) | |
9135 | return NULL; | |
9136 | if (_argo0) { | |
9137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p."); | |
9140 | return NULL; | |
9141 | } | |
9142 | } | |
9143 | { | |
c8bc7bb8 RD |
9144 | _arg1 = wxString_in_helper(_obj1); |
9145 | if (_arg1 == NULL) | |
b37c7e1d | 9146 | return NULL; |
b37c7e1d RD |
9147 | } |
9148 | { | |
4268f798 | 9149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9150 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_arg0,*_arg1); |
b37c7e1d | 9151 | |
4268f798 RD |
9152 | wxPyEndAllowThreads(__tstate); |
9153 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9154 | } if (_result) { |
9155 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9156 | _resultobj = Py_BuildValue("s",_ptemp); | |
9157 | } else { | |
9158 | Py_INCREF(Py_None); | |
9159 | _resultobj = Py_None; | |
9160 | } | |
9161 | { | |
9162 | if (_obj1) | |
9163 | delete _arg1; | |
9164 | } | |
9165 | return _resultobj; | |
9166 | } | |
9167 | ||
9168 | #define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1)) | |
9169 | static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9170 | PyObject * _resultobj; | |
9171 | bool _result; | |
9172 | wxMimeTypesManager * _arg0; | |
9173 | wxString * _arg1; | |
9174 | bool _arg2 = (bool ) FALSE; | |
9175 | PyObject * _argo0 = 0; | |
9176 | PyObject * _obj1 = 0; | |
9177 | int tempbool2 = (int) FALSE; | |
9178 | char *_kwnames[] = { "self","filename","fallback", NULL }; | |
9179 | ||
9180 | self = self; | |
9181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
9182 | return NULL; | |
9183 | if (_argo0) { | |
9184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p."); | |
9187 | return NULL; | |
9188 | } | |
9189 | } | |
9190 | { | |
c8bc7bb8 RD |
9191 | _arg1 = wxString_in_helper(_obj1); |
9192 | if (_arg1 == NULL) | |
b37c7e1d | 9193 | return NULL; |
b37c7e1d RD |
9194 | } |
9195 | _arg2 = (bool ) tempbool2; | |
9196 | { | |
4268f798 | 9197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9198 | _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2); |
b37c7e1d | 9199 | |
4268f798 RD |
9200 | wxPyEndAllowThreads(__tstate); |
9201 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9202 | } _resultobj = Py_BuildValue("i",_result); |
9203 | { | |
9204 | if (_obj1) | |
9205 | delete _arg1; | |
9206 | } | |
9207 | return _resultobj; | |
9208 | } | |
9209 | ||
9210 | #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0)) | |
9211 | static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9212 | PyObject * _resultobj; | |
9213 | bool _result; | |
9214 | wxMimeTypesManager * _arg0; | |
9215 | wxString * _arg1; | |
9216 | PyObject * _argo0 = 0; | |
9217 | PyObject * _obj1 = 0; | |
9218 | char *_kwnames[] = { "self","filename", NULL }; | |
9219 | ||
9220 | self = self; | |
9221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1)) | |
9222 | return NULL; | |
9223 | if (_argo0) { | |
9224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p."); | |
9227 | return NULL; | |
9228 | } | |
9229 | } | |
9230 | { | |
c8bc7bb8 RD |
9231 | _arg1 = wxString_in_helper(_obj1); |
9232 | if (_arg1 == NULL) | |
b37c7e1d | 9233 | return NULL; |
b37c7e1d RD |
9234 | } |
9235 | { | |
4268f798 | 9236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9237 | _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1); |
b37c7e1d | 9238 | |
4268f798 RD |
9239 | wxPyEndAllowThreads(__tstate); |
9240 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9241 | } _resultobj = Py_BuildValue("i",_result); |
9242 | { | |
9243 | if (_obj1) | |
9244 | delete _arg1; | |
9245 | } | |
9246 | return _resultobj; | |
9247 | } | |
9248 | ||
9249 | static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) { | |
9250 | wxArrayString arr; | |
9251 | self->EnumAllFileTypes(arr); | |
9252 | return wxArrayString2PyList_helper(arr); | |
9253 | } | |
9254 | static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9255 | PyObject * _resultobj; | |
9256 | PyObject * _result; | |
9257 | wxMimeTypesManager * _arg0; | |
9258 | PyObject * _argo0 = 0; | |
9259 | char *_kwnames[] = { "self", NULL }; | |
9260 | ||
9261 | self = self; | |
9262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0)) | |
9263 | return NULL; | |
9264 | if (_argo0) { | |
9265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p."); | |
9268 | return NULL; | |
9269 | } | |
9270 | } | |
9271 | { | |
4268f798 | 9272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9273 | _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0); |
b37c7e1d | 9274 | |
4268f798 RD |
9275 | wxPyEndAllowThreads(__tstate); |
9276 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9277 | }{ |
9278 | _resultobj = _result; | |
9279 | } | |
9280 | return _resultobj; | |
9281 | } | |
9282 | ||
9283 | #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0)) | |
9284 | static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9285 | PyObject * _resultobj; | |
9286 | wxMimeTypesManager * _arg0; | |
9287 | wxFileTypeInfo * _arg1; | |
9288 | PyObject * _argo0 = 0; | |
9289 | PyObject * _argo1 = 0; | |
9290 | char *_kwnames[] = { "self","ft", NULL }; | |
9291 | ||
9292 | self = self; | |
9293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1)) | |
9294 | return NULL; | |
9295 | if (_argo0) { | |
9296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p."); | |
9299 | return NULL; | |
9300 | } | |
9301 | } | |
9302 | if (_argo1) { | |
9303 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9304 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p."); | |
9306 | return NULL; | |
9307 | } | |
9308 | } | |
9309 | { | |
4268f798 | 9310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9311 | wxMimeTypesManager_AddFallback(_arg0,*_arg1); |
b37c7e1d | 9312 | |
4268f798 RD |
9313 | wxPyEndAllowThreads(__tstate); |
9314 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9315 | } Py_INCREF(Py_None); |
9316 | _resultobj = Py_None; | |
9317 | return _resultobj; | |
9318 | } | |
9319 | ||
9320 | #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0)) | |
9321 | static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9322 | PyObject * _resultobj; | |
9323 | wxFileType * _result; | |
9324 | wxMimeTypesManager * _arg0; | |
9325 | wxFileTypeInfo * _arg1; | |
9326 | PyObject * _argo0 = 0; | |
9327 | PyObject * _argo1 = 0; | |
9328 | char *_kwnames[] = { "self","ftInfo", NULL }; | |
9329 | char _ptemp[128]; | |
9330 | ||
9331 | self = self; | |
9332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1)) | |
9333 | return NULL; | |
9334 | if (_argo0) { | |
9335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p."); | |
9338 | return NULL; | |
9339 | } | |
9340 | } | |
9341 | if (_argo1) { | |
9342 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9343 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p."); | |
9345 | return NULL; | |
9346 | } | |
9347 | } | |
9348 | { | |
4268f798 | 9349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9350 | _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1); |
b37c7e1d | 9351 | |
4268f798 RD |
9352 | wxPyEndAllowThreads(__tstate); |
9353 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9354 | } if (_result) { |
9355 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9356 | _resultobj = Py_BuildValue("s",_ptemp); | |
9357 | } else { | |
9358 | Py_INCREF(Py_None); | |
9359 | _resultobj = Py_None; | |
9360 | } | |
9361 | return _resultobj; | |
9362 | } | |
9363 | ||
9364 | #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0)) | |
9365 | static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9366 | PyObject * _resultobj; | |
9367 | bool _result; | |
9368 | wxMimeTypesManager * _arg0; | |
9369 | wxFileType * _arg1; | |
9370 | PyObject * _argo0 = 0; | |
9371 | PyObject * _argo1 = 0; | |
9372 | char *_kwnames[] = { "self","ft", NULL }; | |
9373 | ||
9374 | self = self; | |
9375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1)) | |
9376 | return NULL; | |
9377 | if (_argo0) { | |
9378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p."); | |
9381 | return NULL; | |
9382 | } | |
9383 | } | |
9384 | if (_argo1) { | |
9385 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9386 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) { | |
9387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p."); | |
9388 | return NULL; | |
9389 | } | |
9390 | } | |
9391 | { | |
4268f798 | 9392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9393 | _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1); |
b37c7e1d | 9394 | |
4268f798 RD |
9395 | wxPyEndAllowThreads(__tstate); |
9396 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9397 | } _resultobj = Py_BuildValue("i",_result); |
9398 | return _resultobj; | |
9399 | } | |
9400 | ||
9401 | #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj) | |
9402 | static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9403 | PyObject * _resultobj; | |
9404 | wxMimeTypesManager * _arg0; | |
9405 | PyObject * _argo0 = 0; | |
9406 | char *_kwnames[] = { "self", NULL }; | |
9407 | ||
9408 | self = self; | |
9409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0)) | |
9410 | return NULL; | |
9411 | if (_argo0) { | |
9412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p."); | |
9415 | return NULL; | |
9416 | } | |
9417 | } | |
9418 | { | |
4268f798 | 9419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9420 | delete_wxMimeTypesManager(_arg0); |
b37c7e1d | 9421 | |
4268f798 RD |
9422 | wxPyEndAllowThreads(__tstate); |
9423 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9424 | } Py_INCREF(Py_None); |
9425 | _resultobj = Py_None; | |
9426 | return _resultobj; | |
9427 | } | |
9428 | ||
72797a7d RD |
9429 | static void *SwigwxPyArtProviderTowxObject(void *ptr) { |
9430 | wxPyArtProvider *src; | |
9431 | wxObject *dest; | |
9432 | src = (wxPyArtProvider *) ptr; | |
9433 | dest = (wxObject *) src; | |
9434 | return (void *) dest; | |
9435 | } | |
9436 | ||
9437 | #define new_wxArtProvider() (new wxPyArtProvider()) | |
9438 | static PyObject *_wrap_new_wxArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9439 | PyObject * _resultobj; | |
9440 | wxPyArtProvider * _result; | |
9441 | char *_kwnames[] = { NULL }; | |
9442 | char _ptemp[128]; | |
9443 | ||
9444 | self = self; | |
9445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxArtProvider",_kwnames)) | |
9446 | return NULL; | |
9447 | { | |
9448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9449 | _result = (wxPyArtProvider *)new_wxArtProvider(); | |
9450 | ||
9451 | wxPyEndAllowThreads(__tstate); | |
9452 | if (PyErr_Occurred()) return NULL; | |
9453 | } if (_result) { | |
9454 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyArtProvider_p"); | |
9455 | _resultobj = Py_BuildValue("s",_ptemp); | |
9456 | } else { | |
9457 | Py_INCREF(Py_None); | |
9458 | _resultobj = Py_None; | |
9459 | } | |
9460 | return _resultobj; | |
9461 | } | |
9462 | ||
9463 | #define wxArtProvider__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
9464 | static PyObject *_wrap_wxArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9465 | PyObject * _resultobj; | |
9466 | wxPyArtProvider * _arg0; | |
9467 | PyObject * _arg1; | |
9468 | PyObject * _arg2; | |
9469 | PyObject * _argo0 = 0; | |
9470 | PyObject * _obj1 = 0; | |
9471 | PyObject * _obj2 = 0; | |
9472 | char *_kwnames[] = { "self","self","_class", NULL }; | |
9473 | ||
9474 | self = self; | |
9475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxArtProvider__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9476 | return NULL; | |
9477 | if (_argo0) { | |
9478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider__setCallbackInfo. Expected _wxPyArtProvider_p."); | |
9481 | return NULL; | |
9482 | } | |
9483 | } | |
9484 | { | |
9485 | _arg1 = _obj1; | |
9486 | } | |
9487 | { | |
9488 | _arg2 = _obj2; | |
9489 | } | |
9490 | { | |
9491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9492 | wxArtProvider__setCallbackInfo(_arg0,_arg1,_arg2); | |
9493 | ||
9494 | wxPyEndAllowThreads(__tstate); | |
9495 | if (PyErr_Occurred()) return NULL; | |
9496 | } Py_INCREF(Py_None); | |
9497 | _resultobj = Py_None; | |
9498 | return _resultobj; | |
9499 | } | |
9500 | ||
9501 | static PyObject *_wrap_wxArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9502 | PyObject * _resultobj; | |
9503 | wxPyArtProvider * _arg0; | |
9504 | PyObject * _argo0 = 0; | |
9505 | char *_kwnames[] = { "provider", NULL }; | |
9506 | ||
9507 | self = self; | |
9508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_PushProvider",_kwnames,&_argo0)) | |
9509 | return NULL; | |
9510 | if (_argo0) { | |
9511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_PushProvider. Expected _wxPyArtProvider_p."); | |
9514 | return NULL; | |
9515 | } | |
9516 | } | |
9517 | { | |
9518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9519 | wxPyArtProvider::PushProvider(_arg0); | |
9520 | ||
9521 | wxPyEndAllowThreads(__tstate); | |
9522 | if (PyErr_Occurred()) return NULL; | |
9523 | } Py_INCREF(Py_None); | |
9524 | _resultobj = Py_None; | |
9525 | return _resultobj; | |
9526 | } | |
9527 | ||
9528 | static PyObject *_wrap_wxArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9529 | PyObject * _resultobj; | |
9530 | bool _result; | |
9531 | char *_kwnames[] = { NULL }; | |
9532 | ||
9533 | self = self; | |
9534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxArtProvider_PopProvider",_kwnames)) | |
9535 | return NULL; | |
9536 | { | |
9537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9538 | _result = (bool )wxPyArtProvider::PopProvider(); | |
9539 | ||
9540 | wxPyEndAllowThreads(__tstate); | |
9541 | if (PyErr_Occurred()) return NULL; | |
9542 | } _resultobj = Py_BuildValue("i",_result); | |
9543 | return _resultobj; | |
9544 | } | |
9545 | ||
9546 | static PyObject *_wrap_wxArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9547 | PyObject * _resultobj; | |
9548 | bool _result; | |
9549 | wxPyArtProvider * _arg0; | |
9550 | PyObject * _argo0 = 0; | |
9551 | char *_kwnames[] = { "provider", NULL }; | |
9552 | ||
9553 | self = self; | |
9554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_RemoveProvider",_kwnames,&_argo0)) | |
9555 | return NULL; | |
9556 | if (_argo0) { | |
9557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_RemoveProvider. Expected _wxPyArtProvider_p."); | |
9560 | return NULL; | |
9561 | } | |
9562 | } | |
9563 | { | |
9564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9565 | _result = (bool )wxPyArtProvider::RemoveProvider(_arg0); | |
9566 | ||
9567 | wxPyEndAllowThreads(__tstate); | |
9568 | if (PyErr_Occurred()) return NULL; | |
9569 | } _resultobj = Py_BuildValue("i",_result); | |
9570 | return _resultobj; | |
9571 | } | |
9572 | ||
9573 | static PyObject *_wrap_wxArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9574 | PyObject * _resultobj; | |
9575 | wxBitmap * _result; | |
9576 | wxString * _arg0; | |
9577 | wxString * _arg1 = (wxString *) &wxPyART_OTHER; | |
9578 | wxSize * _arg2 = (wxSize *) &wxDefaultSize; | |
9579 | PyObject * _obj0 = 0; | |
9580 | PyObject * _obj1 = 0; | |
9581 | wxSize temp; | |
9582 | PyObject * _obj2 = 0; | |
9583 | char *_kwnames[] = { "id","client","size", NULL }; | |
9584 | char _ptemp[128]; | |
9585 | ||
9586 | self = self; | |
9587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetBitmap",_kwnames,&_obj0,&_obj1,&_obj2)) | |
9588 | return NULL; | |
9589 | { | |
9590 | _arg0 = wxString_in_helper(_obj0); | |
9591 | if (_arg0 == NULL) | |
9592 | return NULL; | |
9593 | } | |
9594 | if (_obj1) | |
9595 | { | |
9596 | _arg1 = wxString_in_helper(_obj1); | |
9597 | if (_arg1 == NULL) | |
9598 | return NULL; | |
9599 | } | |
9600 | if (_obj2) | |
9601 | { | |
9602 | _arg2 = &temp; | |
9603 | if (! wxSize_helper(_obj2, &_arg2)) | |
9604 | return NULL; | |
9605 | } | |
9606 | { | |
9607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9608 | _result = new wxBitmap (wxPyArtProvider::GetBitmap(*_arg0,*_arg1,*_arg2)); | |
9609 | ||
9610 | wxPyEndAllowThreads(__tstate); | |
9611 | if (PyErr_Occurred()) return NULL; | |
9612 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
9613 | _resultobj = Py_BuildValue("s",_ptemp); | |
9614 | { | |
9615 | if (_obj0) | |
9616 | delete _arg0; | |
9617 | } | |
9618 | { | |
9619 | if (_obj1) | |
9620 | delete _arg1; | |
9621 | } | |
9622 | return _resultobj; | |
9623 | } | |
9624 | ||
9625 | static PyObject *_wrap_wxArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9626 | PyObject * _resultobj; | |
9627 | wxIcon * _result; | |
9628 | wxString * _arg0; | |
9629 | wxString * _arg1 = (wxString *) &wxPyART_OTHER; | |
9630 | wxSize * _arg2 = (wxSize *) &wxDefaultSize; | |
9631 | PyObject * _obj0 = 0; | |
9632 | PyObject * _obj1 = 0; | |
9633 | wxSize temp; | |
9634 | PyObject * _obj2 = 0; | |
9635 | char *_kwnames[] = { "id","client","size", NULL }; | |
9636 | char _ptemp[128]; | |
9637 | ||
9638 | self = self; | |
9639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetIcon",_kwnames,&_obj0,&_obj1,&_obj2)) | |
9640 | return NULL; | |
9641 | { | |
9642 | _arg0 = wxString_in_helper(_obj0); | |
9643 | if (_arg0 == NULL) | |
9644 | return NULL; | |
9645 | } | |
9646 | if (_obj1) | |
9647 | { | |
9648 | _arg1 = wxString_in_helper(_obj1); | |
9649 | if (_arg1 == NULL) | |
9650 | return NULL; | |
9651 | } | |
9652 | if (_obj2) | |
9653 | { | |
9654 | _arg2 = &temp; | |
9655 | if (! wxSize_helper(_obj2, &_arg2)) | |
9656 | return NULL; | |
9657 | } | |
9658 | { | |
9659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9660 | _result = new wxIcon (wxPyArtProvider::GetIcon(*_arg0,*_arg1,*_arg2)); | |
9661 | ||
9662 | wxPyEndAllowThreads(__tstate); | |
9663 | if (PyErr_Occurred()) return NULL; | |
9664 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); | |
9665 | _resultobj = Py_BuildValue("s",_ptemp); | |
9666 | { | |
9667 | if (_obj0) | |
9668 | delete _arg0; | |
9669 | } | |
9670 | { | |
9671 | if (_obj1) | |
9672 | delete _arg1; | |
9673 | } | |
9674 | return _resultobj; | |
9675 | } | |
9676 | ||
9677 | static PyObject *_wrap_wxArtProvider_CleanUpProviders(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9678 | PyObject * _resultobj; | |
9679 | char *_kwnames[] = { NULL }; | |
9680 | ||
9681 | self = self; | |
9682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxArtProvider_CleanUpProviders",_kwnames)) | |
9683 | return NULL; | |
9684 | { | |
9685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9686 | wxPyArtProvider::CleanUpProviders(); | |
9687 | ||
9688 | wxPyEndAllowThreads(__tstate); | |
9689 | if (PyErr_Occurred()) return NULL; | |
9690 | } Py_INCREF(Py_None); | |
9691 | _resultobj = Py_None; | |
9692 | return _resultobj; | |
9693 | } | |
9694 | ||
7dbce44a RD |
9695 | static void *SwigwxFileHistoryTowxObject(void *ptr) { |
9696 | wxFileHistory *src; | |
9697 | wxObject *dest; | |
9698 | src = (wxFileHistory *) ptr; | |
9699 | dest = (wxObject *) src; | |
9700 | return (void *) dest; | |
9701 | } | |
9702 | ||
9703 | #define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0)) | |
9704 | static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9705 | PyObject * _resultobj; | |
9706 | wxFileHistory * _result; | |
9707 | int _arg0 = (int ) 9; | |
9708 | char *_kwnames[] = { "maxFiles", NULL }; | |
9709 | char _ptemp[128]; | |
9710 | ||
9711 | self = self; | |
9712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0)) | |
9713 | return NULL; | |
9714 | { | |
4268f798 | 9715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9716 | _result = (wxFileHistory *)new_wxFileHistory(_arg0); |
7dbce44a | 9717 | |
4268f798 RD |
9718 | wxPyEndAllowThreads(__tstate); |
9719 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9720 | } if (_result) { |
9721 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p"); | |
9722 | _resultobj = Py_BuildValue("s",_ptemp); | |
9723 | } else { | |
9724 | Py_INCREF(Py_None); | |
9725 | _resultobj = Py_None; | |
9726 | } | |
9727 | return _resultobj; | |
9728 | } | |
9729 | ||
9730 | #define delete_wxFileHistory(_swigobj) (delete _swigobj) | |
9731 | static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9732 | PyObject * _resultobj; | |
9733 | wxFileHistory * _arg0; | |
9734 | PyObject * _argo0 = 0; | |
9735 | char *_kwnames[] = { "self", NULL }; | |
9736 | ||
9737 | self = self; | |
9738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0)) | |
9739 | return NULL; | |
9740 | if (_argo0) { | |
9741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileHistory. Expected _wxFileHistory_p."); | |
9744 | return NULL; | |
9745 | } | |
9746 | } | |
9747 | { | |
4268f798 | 9748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9749 | delete_wxFileHistory(_arg0); |
7dbce44a | 9750 | |
4268f798 RD |
9751 | wxPyEndAllowThreads(__tstate); |
9752 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9753 | } Py_INCREF(Py_None); |
9754 | _resultobj = Py_None; | |
9755 | return _resultobj; | |
9756 | } | |
9757 | ||
9758 | #define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0)) | |
9759 | static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9760 | PyObject * _resultobj; | |
9761 | wxFileHistory * _arg0; | |
9762 | wxString * _arg1; | |
9763 | PyObject * _argo0 = 0; | |
9764 | PyObject * _obj1 = 0; | |
9765 | char *_kwnames[] = { "self","file", NULL }; | |
9766 | ||
9767 | self = self; | |
9768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1)) | |
9769 | return NULL; | |
9770 | if (_argo0) { | |
9771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p."); | |
9774 | return NULL; | |
9775 | } | |
9776 | } | |
9777 | { | |
c8bc7bb8 RD |
9778 | _arg1 = wxString_in_helper(_obj1); |
9779 | if (_arg1 == NULL) | |
7dbce44a | 9780 | return NULL; |
7dbce44a RD |
9781 | } |
9782 | { | |
4268f798 | 9783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9784 | wxFileHistory_AddFileToHistory(_arg0,*_arg1); |
7dbce44a | 9785 | |
4268f798 RD |
9786 | wxPyEndAllowThreads(__tstate); |
9787 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9788 | } Py_INCREF(Py_None); |
9789 | _resultobj = Py_None; | |
9790 | { | |
9791 | if (_obj1) | |
9792 | delete _arg1; | |
9793 | } | |
9794 | return _resultobj; | |
9795 | } | |
9796 | ||
9797 | #define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0)) | |
9798 | static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9799 | PyObject * _resultobj; | |
9800 | wxFileHistory * _arg0; | |
9801 | int _arg1; | |
9802 | PyObject * _argo0 = 0; | |
9803 | char *_kwnames[] = { "self","i", NULL }; | |
9804 | ||
9805 | self = self; | |
9806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1)) | |
9807 | return NULL; | |
9808 | if (_argo0) { | |
9809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p."); | |
9812 | return NULL; | |
9813 | } | |
9814 | } | |
9815 | { | |
4268f798 | 9816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9817 | wxFileHistory_RemoveFileFromHistory(_arg0,_arg1); |
7dbce44a | 9818 | |
4268f798 RD |
9819 | wxPyEndAllowThreads(__tstate); |
9820 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9821 | } Py_INCREF(Py_None); |
9822 | _resultobj = Py_None; | |
9823 | return _resultobj; | |
9824 | } | |
9825 | ||
9826 | #define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles()) | |
9827 | static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9828 | PyObject * _resultobj; | |
9829 | int _result; | |
9830 | wxFileHistory * _arg0; | |
9831 | PyObject * _argo0 = 0; | |
9832 | char *_kwnames[] = { "self", NULL }; | |
9833 | ||
9834 | self = self; | |
9835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0)) | |
9836 | return NULL; | |
9837 | if (_argo0) { | |
9838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p."); | |
9841 | return NULL; | |
9842 | } | |
9843 | } | |
9844 | { | |
4268f798 | 9845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9846 | _result = (int )wxFileHistory_GetMaxFiles(_arg0); |
7dbce44a | 9847 | |
4268f798 RD |
9848 | wxPyEndAllowThreads(__tstate); |
9849 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9850 | } _resultobj = Py_BuildValue("i",_result); |
9851 | return _resultobj; | |
9852 | } | |
9853 | ||
9854 | #define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0)) | |
9855 | static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9856 | PyObject * _resultobj; | |
9857 | wxFileHistory * _arg0; | |
9858 | wxMenu * _arg1; | |
9859 | PyObject * _argo0 = 0; | |
9860 | PyObject * _argo1 = 0; | |
9861 | char *_kwnames[] = { "self","menu", NULL }; | |
9862 | ||
9863 | self = self; | |
9864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1)) | |
9865 | return NULL; | |
9866 | if (_argo0) { | |
9867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p."); | |
9870 | return NULL; | |
9871 | } | |
9872 | } | |
9873 | if (_argo1) { | |
9874 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9875 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p."); | |
9877 | return NULL; | |
9878 | } | |
9879 | } | |
9880 | { | |
4268f798 | 9881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9882 | wxFileHistory_UseMenu(_arg0,_arg1); |
7dbce44a | 9883 | |
4268f798 RD |
9884 | wxPyEndAllowThreads(__tstate); |
9885 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9886 | } Py_INCREF(Py_None); |
9887 | _resultobj = Py_None; | |
9888 | return _resultobj; | |
9889 | } | |
9890 | ||
9891 | #define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0)) | |
9892 | static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9893 | PyObject * _resultobj; | |
9894 | wxFileHistory * _arg0; | |
9895 | wxMenu * _arg1; | |
9896 | PyObject * _argo0 = 0; | |
9897 | PyObject * _argo1 = 0; | |
9898 | char *_kwnames[] = { "self","menu", NULL }; | |
9899 | ||
9900 | self = self; | |
9901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1)) | |
9902 | return NULL; | |
9903 | if (_argo0) { | |
9904 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9905 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p."); | |
9907 | return NULL; | |
9908 | } | |
9909 | } | |
9910 | if (_argo1) { | |
9911 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9912 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p."); | |
9914 | return NULL; | |
9915 | } | |
9916 | } | |
9917 | { | |
4268f798 | 9918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9919 | wxFileHistory_RemoveMenu(_arg0,_arg1); |
7dbce44a | 9920 | |
4268f798 RD |
9921 | wxPyEndAllowThreads(__tstate); |
9922 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9923 | } Py_INCREF(Py_None); |
9924 | _resultobj = Py_None; | |
9925 | return _resultobj; | |
9926 | } | |
9927 | ||
9928 | #define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0)) | |
9929 | static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9930 | PyObject * _resultobj; | |
9931 | wxFileHistory * _arg0; | |
9932 | wxConfigBase * _arg1; | |
9933 | PyObject * _argo0 = 0; | |
9934 | PyObject * _argo1 = 0; | |
9935 | char *_kwnames[] = { "self","config", NULL }; | |
9936 | ||
9937 | self = self; | |
9938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1)) | |
9939 | return NULL; | |
9940 | if (_argo0) { | |
9941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p."); | |
9944 | return NULL; | |
9945 | } | |
9946 | } | |
9947 | if (_argo1) { | |
9948 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9949 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
9950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p."); | |
9951 | return NULL; | |
9952 | } | |
9953 | } | |
9954 | { | |
4268f798 | 9955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9956 | wxFileHistory_Load(_arg0,*_arg1); |
7dbce44a | 9957 | |
4268f798 RD |
9958 | wxPyEndAllowThreads(__tstate); |
9959 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9960 | } Py_INCREF(Py_None); |
9961 | _resultobj = Py_None; | |
9962 | return _resultobj; | |
9963 | } | |
9964 | ||
9965 | #define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0)) | |
9966 | static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9967 | PyObject * _resultobj; | |
9968 | wxFileHistory * _arg0; | |
9969 | wxConfigBase * _arg1; | |
9970 | PyObject * _argo0 = 0; | |
9971 | PyObject * _argo1 = 0; | |
9972 | char *_kwnames[] = { "self","config", NULL }; | |
9973 | ||
9974 | self = self; | |
9975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1)) | |
9976 | return NULL; | |
9977 | if (_argo0) { | |
9978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p."); | |
9981 | return NULL; | |
9982 | } | |
9983 | } | |
9984 | if (_argo1) { | |
9985 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9986 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
9987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p."); | |
9988 | return NULL; | |
9989 | } | |
9990 | } | |
9991 | { | |
4268f798 | 9992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9993 | wxFileHistory_Save(_arg0,*_arg1); |
7dbce44a | 9994 | |
4268f798 RD |
9995 | wxPyEndAllowThreads(__tstate); |
9996 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9997 | } Py_INCREF(Py_None); |
9998 | _resultobj = Py_None; | |
9999 | return _resultobj; | |
10000 | } | |
10001 | ||
10002 | #define wxFileHistory_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu()) | |
10003 | static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10004 | PyObject * _resultobj; | |
10005 | wxFileHistory * _arg0; | |
10006 | PyObject * _argo0 = 0; | |
10007 | char *_kwnames[] = { "self", NULL }; | |
10008 | ||
10009 | self = self; | |
10010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0)) | |
10011 | return NULL; | |
10012 | if (_argo0) { | |
10013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p."); | |
10016 | return NULL; | |
10017 | } | |
10018 | } | |
10019 | { | |
4268f798 | 10020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10021 | wxFileHistory_AddFilesToMenu(_arg0); |
7dbce44a | 10022 | |
4268f798 RD |
10023 | wxPyEndAllowThreads(__tstate); |
10024 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10025 | } Py_INCREF(Py_None); |
10026 | _resultobj = Py_None; | |
10027 | return _resultobj; | |
10028 | } | |
10029 | ||
68bc8549 RD |
10030 | #define wxFileHistory_AddFilesToThisMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0)) |
10031 | static PyObject *_wrap_wxFileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7dbce44a RD |
10032 | PyObject * _resultobj; |
10033 | wxFileHistory * _arg0; | |
10034 | wxMenu * _arg1; | |
10035 | PyObject * _argo0 = 0; | |
10036 | PyObject * _argo1 = 0; | |
10037 | char *_kwnames[] = { "self","menu", NULL }; | |
10038 | ||
10039 | self = self; | |
68bc8549 | 10040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToThisMenu",_kwnames,&_argo0,&_argo1)) |
7dbce44a RD |
10041 | return NULL; |
10042 | if (_argo0) { | |
10043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
68bc8549 | 10045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToThisMenu. Expected _wxFileHistory_p."); |
7dbce44a RD |
10046 | return NULL; |
10047 | } | |
10048 | } | |
10049 | if (_argo1) { | |
10050 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10051 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
68bc8549 | 10052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToThisMenu. Expected _wxMenu_p."); |
7dbce44a RD |
10053 | return NULL; |
10054 | } | |
10055 | } | |
10056 | { | |
4268f798 | 10057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
68bc8549 | 10058 | wxFileHistory_AddFilesToThisMenu(_arg0,_arg1); |
7dbce44a | 10059 | |
4268f798 RD |
10060 | wxPyEndAllowThreads(__tstate); |
10061 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10062 | } Py_INCREF(Py_None); |
10063 | _resultobj = Py_None; | |
10064 | return _resultobj; | |
10065 | } | |
10066 | ||
10067 | #define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0)) | |
10068 | static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10069 | PyObject * _resultobj; | |
10070 | wxString * _result; | |
10071 | wxFileHistory * _arg0; | |
10072 | int _arg1; | |
10073 | PyObject * _argo0 = 0; | |
10074 | char *_kwnames[] = { "self","i", NULL }; | |
10075 | ||
10076 | self = self; | |
10077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1)) | |
10078 | return NULL; | |
10079 | if (_argo0) { | |
10080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p."); | |
10083 | return NULL; | |
10084 | } | |
10085 | } | |
10086 | { | |
4268f798 | 10087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10088 | _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1)); |
7dbce44a | 10089 | |
4268f798 RD |
10090 | wxPyEndAllowThreads(__tstate); |
10091 | if (PyErr_Occurred()) return NULL; | |
7dbce44a | 10092 | }{ |
c8bc7bb8 RD |
10093 | #if wxUSE_UNICODE |
10094 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10095 | #else | |
7dbce44a | 10096 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10097 | #endif |
7dbce44a RD |
10098 | } |
10099 | { | |
10100 | delete _result; | |
10101 | } | |
10102 | return _resultobj; | |
10103 | } | |
10104 | ||
10105 | #define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount()) | |
10106 | static PyObject *_wrap_wxFileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10107 | PyObject * _resultobj; | |
10108 | int _result; | |
10109 | wxFileHistory * _arg0; | |
10110 | PyObject * _argo0 = 0; | |
10111 | char *_kwnames[] = { "self", NULL }; | |
10112 | ||
10113 | self = self; | |
10114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetCount",_kwnames,&_argo0)) | |
10115 | return NULL; | |
10116 | if (_argo0) { | |
10117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetCount. Expected _wxFileHistory_p."); | |
10120 | return NULL; | |
10121 | } | |
10122 | } | |
10123 | { | |
4268f798 | 10124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10125 | _result = (int )wxFileHistory_GetCount(_arg0); |
7dbce44a | 10126 | |
4268f798 RD |
10127 | wxPyEndAllowThreads(__tstate); |
10128 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10129 | } _resultobj = Py_BuildValue("i",_result); |
10130 | return _resultobj; | |
10131 | } | |
10132 | ||
10133 | #define wxFileHistory_GetNoHistoryFiles(_swigobj) (_swigobj->GetNoHistoryFiles()) | |
10134 | static PyObject *_wrap_wxFileHistory_GetNoHistoryFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10135 | PyObject * _resultobj; | |
10136 | int _result; | |
10137 | wxFileHistory * _arg0; | |
10138 | PyObject * _argo0 = 0; | |
10139 | char *_kwnames[] = { "self", NULL }; | |
10140 | ||
10141 | self = self; | |
10142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetNoHistoryFiles",_kwnames,&_argo0)) | |
10143 | return NULL; | |
10144 | if (_argo0) { | |
10145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetNoHistoryFiles. Expected _wxFileHistory_p."); | |
10148 | return NULL; | |
10149 | } | |
10150 | } | |
10151 | { | |
4268f798 | 10152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10153 | _result = (int )wxFileHistory_GetNoHistoryFiles(_arg0); |
7dbce44a | 10154 | |
4268f798 RD |
10155 | wxPyEndAllowThreads(__tstate); |
10156 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10157 | } _resultobj = Py_BuildValue("i",_result); |
10158 | return _resultobj; | |
10159 | } | |
10160 | ||
bb0054cd | 10161 | static PyMethodDef misc2cMethods[] = { |
7dbce44a RD |
10162 | { "wxFileHistory_GetNoHistoryFiles", (PyCFunction) _wrap_wxFileHistory_GetNoHistoryFiles, METH_VARARGS | METH_KEYWORDS }, |
10163 | { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
10164 | { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
68bc8549 | 10165 | { "wxFileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, |
7dbce44a RD |
10166 | { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, |
10167 | { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
10168 | { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
10169 | { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
10170 | { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
10171 | { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
10172 | { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
10173 | { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
10174 | { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
10175 | { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
72797a7d RD |
10176 | { "wxArtProvider_CleanUpProviders", (PyCFunction) _wrap_wxArtProvider_CleanUpProviders, METH_VARARGS | METH_KEYWORDS }, |
10177 | { "wxArtProvider_GetIcon", (PyCFunction) _wrap_wxArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10178 | { "wxArtProvider_GetBitmap", (PyCFunction) _wrap_wxArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10179 | { "wxArtProvider_RemoveProvider", (PyCFunction) _wrap_wxArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
10180 | { "wxArtProvider_PopProvider", (PyCFunction) _wrap_wxArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
10181 | { "wxArtProvider_PushProvider", (PyCFunction) _wrap_wxArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
10182 | { "wxArtProvider__setCallbackInfo", (PyCFunction) _wrap_wxArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
10183 | { "new_wxArtProvider", (PyCFunction) _wrap_new_wxArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
10184 | { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, |
10185 | { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
10186 | { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
10187 | { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
10188 | { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
10189 | { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
10190 | { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
10191 | { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
10192 | { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
10193 | { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
10194 | { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
10195 | { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
10196 | { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
10197 | { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
10198 | { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
10199 | { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
10200 | { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
10201 | { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
10202 | { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
10203 | { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
10204 | { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
10205 | { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
10206 | { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
10207 | { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10208 | { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
10209 | { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
10210 | { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
10211 | { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
10212 | { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
10213 | { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
10214 | { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
10215 | { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
10216 | { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
10217 | { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
10218 | { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
10219 | { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
10220 | { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
10221 | { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
10222 | { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10223 | { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
10224 | { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
10225 | { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
10226 | { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 RD |
10227 | { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS }, |
10228 | { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10229 | { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
10230 | { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
185d7c3e RD |
10231 | { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, |
10232 | { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
10233 | { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
10234 | { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
10235 | { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
10236 | { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
10237 | { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
10238 | { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
10239 | { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
10240 | { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
10241 | { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
10242 | { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
10243 | { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
10244 | { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
10245 | { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
10246 | { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
10247 | { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
10248 | { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
10249 | { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
10250 | { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
10251 | { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
10252 | { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
10253 | { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
10254 | { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
10255 | { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
10256 | { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
10257 | { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
10258 | { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
10259 | { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
10260 | { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
10261 | { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
10262 | { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10263 | { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
10264 | { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
10265 | { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
10266 | { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
10267 | { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
10268 | { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
10269 | { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
10270 | { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
10271 | { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
10272 | { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 10273 | { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
185d7c3e | 10274 | { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
10275 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, |
10276 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
10277 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
10278 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
10279 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
10280 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
10281 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
10282 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10283 | { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
10284 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, |
10285 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
10286 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
10287 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
10288 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
10289 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
10290 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
10291 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
10292 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 10293 | { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 10294 | { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 10295 | { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS }, |
19e30148 RD |
10296 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, |
10297 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
10298 | { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, |
10299 | { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10300 | { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
10301 | { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
10302 | { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10303 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, |
10304 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10305 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
10306 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
10307 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10308 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
10309 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
10310 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10311 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 10312 | { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10313 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, |
10314 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10315 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
10316 | { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, |
10317 | { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
10318 | { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10319 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, |
10320 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10321 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10322 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
10323 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10324 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
10325 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
10326 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
10327 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
10328 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
10329 | { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10330 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, | |
10331 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
10332 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
10333 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10334 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
10335 | { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS }, |
10336 | { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
10337 | { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
10338 | { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
68320e40 | 10339 | { "delete_wxStopWatch", (PyCFunction) _wrap_delete_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
b37c7e1d | 10340 | { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10341 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, |
10342 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
10343 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
10344 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
10345 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
10346 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
10347 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
10348 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
10349 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
10350 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
10351 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
10352 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
10353 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
10354 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
10355 | { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS }, | |
10356 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
10e07c70 | 10357 | { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 10358 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
cdf14688 RD |
10359 | { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, |
10360 | { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
10361 | { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
10362 | { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10363 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
10364 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
10365 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
10366 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10367 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
10368 | { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, |
10369 | { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
10370 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, |
10371 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f RD |
10372 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, |
10373 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
10374 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, |
10375 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10376 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, |
10377 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
10378 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, |
10379 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10380 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10381 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10382 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10383 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10384 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10385 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10386 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10387 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
10388 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
edf2f43e RD |
10389 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, |
10390 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10391 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
10392 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10393 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
10394 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
e67409dc RD |
10395 | { "wxSystemSettings_SetScreenType", (PyCFunction) _wrap_wxSystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, |
10396 | { "wxSystemSettings_GetScreenType", (PyCFunction) _wrap_wxSystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
10397 | { "wxSystemSettings_HasFeature", (PyCFunction) _wrap_wxSystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, |
10398 | { "wxSystemSettings_GetMetric", (PyCFunction) _wrap_wxSystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
10399 | { "wxSystemSettings_GetFont", (PyCFunction) _wrap_wxSystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10400 | { "wxSystemSettings_GetColour", (PyCFunction) _wrap_wxSystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 | 10401 | { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10402 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, |
0b85cc38 | 10403 | { "wxSafeShowMessage", (PyCFunction) _wrap_wxSafeShowMessage, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10404 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, |
10405 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
10406 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
10407 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10408 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, | |
10409 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
10410 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
10411 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
10412 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
10413 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
10414 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10415 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, |
10416 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
10417 | { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS }, |
10418 | { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
10419 | { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
10420 | { "wxWakeUpMainThread", (PyCFunction) _wrap_wxWakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10421 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10422 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, |
6e18ca6c | 10423 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 RD |
10424 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, |
10425 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10426 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, |
10427 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
10428 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
10429 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
10430 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
10431 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
10432 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10433 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
10434 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
2a74d141 | 10435 | { "wxGetTopLevelParent", (PyCFunction) _wrap_wxGetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, |
25832b3f | 10436 | { "wxFlushEvents", (PyCFunction) _wrap_wxFlushEvents, METH_VARARGS | METH_KEYWORDS }, |
493f1553 RD |
10437 | { "wxCheckForInterrupt", (PyCFunction) _wrap_wxCheckForInterrupt, METH_VARARGS | METH_KEYWORDS }, |
10438 | { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
10439 | { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10440 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, |
10441 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 10442 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, |
91c41b30 RD |
10443 | { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, |
10444 | { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
1e7ecb7b RD |
10445 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, |
10446 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
10447 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10448 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10449 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10450 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, |
10451 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
10452 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
10453 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
10454 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
10455 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10456 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, |
06c0fba4 | 10457 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, |
7cdaed0b | 10458 | { "wxDirSelector", (PyCFunction) _wrap_wxDirSelector, METH_VARARGS | METH_KEYWORDS }, |
a541c325 RD |
10459 | { "wxSaveFileSelector", (PyCFunction) _wrap_wxSaveFileSelector, METH_VARARGS | METH_KEYWORDS }, |
10460 | { "wxLoadFileSelector", (PyCFunction) _wrap_wxLoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 10461 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, |
bb0054cd RD |
10462 | { NULL, NULL } |
10463 | }; | |
1d99702e RD |
10464 | #ifdef __cplusplus |
10465 | } | |
10466 | #endif | |
10467 | /* | |
10468 | * This table is used by the pointer type-checker | |
10469 | */ | |
10470 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
c368d904 | 10471 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, |
1d99702e | 10472 | { "_signed_long","_long",0}, |
b1462dfa | 10473 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10474 | { "_wxPrintQuality","_int",0}, |
10475 | { "_wxPrintQuality","_signed_int",0}, | |
10476 | { "_wxPrintQuality","_unsigned_int",0}, | |
10477 | { "_wxPrintQuality","_wxWindowID",0}, | |
10478 | { "_wxPrintQuality","_uint",0}, | |
10479 | { "_wxPrintQuality","_EBool",0}, | |
10480 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10481 | { "_wxPrintQuality","_time_t",0}, |
76bfdc78 RD |
10482 | { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog}, |
10483 | { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog}, | |
f6bcfd97 | 10484 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, |
f6bcfd97 | 10485 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, |
f6bcfd97 | 10486 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, |
f6bcfd97 | 10487 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, |
1d99702e | 10488 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10489 | { "_long","_unsigned_long",0}, |
10490 | { "_long","_signed_long",0}, | |
b1462dfa | 10491 | { "_size_t","_wxCoord",0}, |
1d99702e | 10492 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10493 | { "_size_t","_time_t",0}, |
1d99702e RD |
10494 | { "_size_t","_unsigned_int",0}, |
10495 | { "_size_t","_int",0}, | |
10496 | { "_size_t","_wxWindowID",0}, | |
10497 | { "_size_t","_uint",0}, | |
b1462dfa | 10498 | { "_uint","_wxCoord",0}, |
1d99702e | 10499 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10500 | { "_uint","_time_t",0}, |
1d99702e RD |
10501 | { "_uint","_size_t",0}, |
10502 | { "_uint","_unsigned_int",0}, | |
10503 | { "_uint","_int",0}, | |
10504 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10505 | { "_wxChar","_char",0}, |
f6bcfd97 | 10506 | { "_char","_wxChar",0}, |
cdf14688 | 10507 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10508 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10509 | { "_EBool","_wxPrintQuality",0}, |
10510 | { "_EBool","_signed_int",0}, | |
10511 | { "_EBool","_int",0}, | |
10512 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10513 | { "_unsigned_long","_long",0}, |
cdf14688 | 10514 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 10515 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10516 | { "_signed_int","_wxPrintQuality",0}, |
10517 | { "_signed_int","_EBool",0}, | |
10518 | { "_signed_int","_wxWindowID",0}, | |
10519 | { "_signed_int","_int",0}, | |
7dbce44a | 10520 | { "_WXTYPE","_wxDateTime_t",0}, |
1d99702e RD |
10521 | { "_WXTYPE","_short",0}, |
10522 | { "_WXTYPE","_signed_short",0}, | |
10523 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 | 10524 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, |
7dbce44a | 10525 | { "_unsigned_short","_wxDateTime_t",0}, |
1d99702e RD |
10526 | { "_unsigned_short","_WXTYPE",0}, |
10527 | { "_unsigned_short","_short",0}, | |
7dbce44a | 10528 | { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject}, |
72797a7d | 10529 | { "_wxObject","_wxPyArtProvider",SwigwxPyArtProviderTowxObject}, |
493f1553 | 10530 | { "_wxObject","_wxWave",SwigwxWaveTowxObject}, |
9416aa89 | 10531 | { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject}, |
9416aa89 | 10532 | { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject}, |
9416aa89 | 10533 | { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject}, |
9416aa89 | 10534 | { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject}, |
9416aa89 | 10535 | { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject}, |
9416aa89 | 10536 | { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject}, |
1d99702e RD |
10537 | { "_signed_short","_WXTYPE",0}, |
10538 | { "_signed_short","_short",0}, | |
1d99702e | 10539 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10540 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10541 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10542 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10543 | { "_unsigned_int","_size_t",0}, |
10544 | { "_unsigned_int","_uint",0}, | |
10545 | { "_unsigned_int","_wxWindowID",0}, | |
10546 | { "_unsigned_int","_int",0}, | |
7dbce44a | 10547 | { "_short","_wxDateTime_t",0}, |
1d99702e RD |
10548 | { "_short","_WXTYPE",0}, |
10549 | { "_short","_unsigned_short",0}, | |
10550 | { "_short","_signed_short",0}, | |
b1462dfa | 10551 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10552 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10553 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10554 | { "_wxWindowID","_size_t",0}, |
10555 | { "_wxWindowID","_EBool",0}, | |
10556 | { "_wxWindowID","_uint",0}, | |
10557 | { "_wxWindowID","_int",0}, | |
10558 | { "_wxWindowID","_signed_int",0}, | |
10559 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10560 | { "_int","_wxCoord",0}, |
1d99702e | 10561 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10562 | { "_int","_time_t",0}, |
1d99702e RD |
10563 | { "_int","_size_t",0}, |
10564 | { "_int","_EBool",0}, | |
10565 | { "_int","_uint",0}, | |
10566 | { "_int","_wxWindowID",0}, | |
10567 | { "_int","_unsigned_int",0}, | |
10568 | { "_int","_signed_int",0}, | |
7dbce44a RD |
10569 | { "_wxDateTime_t","_unsigned_short",0}, |
10570 | { "_wxDateTime_t","_short",0}, | |
10571 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
10572 | { "_time_t","_wxCoord",0}, |
10573 | { "_time_t","_wxPrintQuality",0}, | |
10574 | { "_time_t","_unsigned_int",0}, | |
10575 | { "_time_t","_int",0}, | |
10576 | { "_time_t","_wxWindowID",0}, | |
10577 | { "_time_t","_uint",0}, | |
10578 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
10579 | { "_wxCoord","_int",0}, |
10580 | { "_wxCoord","_signed_int",0}, | |
10581 | { "_wxCoord","_unsigned_int",0}, | |
10582 | { "_wxCoord","_wxWindowID",0}, | |
10583 | { "_wxCoord","_uint",0}, | |
10584 | { "_wxCoord","_EBool",0}, | |
10585 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10586 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10587 | { "_wxCoord","_wxPrintQuality",0}, |
c368d904 | 10588 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, |
1d99702e RD |
10589 | {0,0,0}}; |
10590 | ||
bb0054cd RD |
10591 | static PyObject *SWIG_globals; |
10592 | #ifdef __cplusplus | |
10593 | extern "C" | |
10594 | #endif | |
1d99702e | 10595 | SWIGEXPORT(void) initmisc2c() { |
bb0054cd RD |
10596 | PyObject *m, *d; |
10597 | SWIG_globals = SWIG_newvarlink(); | |
10598 | m = Py_InitModule("misc2c", misc2cMethods); | |
10599 | d = PyModule_GetDict(m); | |
06c0fba4 RD |
10600 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); |
10601 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
10602 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
10603 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
10604 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
10605 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
10606 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
10607 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
10608 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
10609 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
c6c593e8 | 10610 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); |
06c0fba4 RD |
10611 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); |
10612 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
10613 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
10614 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
10615 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
10616 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
10617 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
10618 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
10619 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
10620 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
10621 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
10622 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
10623 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
10624 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
c6c593e8 | 10625 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); |
06c0fba4 | 10626 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); |
c6c593e8 | 10627 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); |
06c0fba4 RD |
10628 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); |
10629 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
10630 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
10631 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
c6c593e8 RD |
10632 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); |
10633 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
10634 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
06c0fba4 RD |
10635 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); |
10636 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
10637 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
10638 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
b5a5d647 | 10639 | PyDict_SetItemString(d,"wxSYS_COLOUR_LISTBOX", PyInt_FromLong((long) wxSYS_COLOUR_LISTBOX)); |
c6c593e8 RD |
10640 | PyDict_SetItemString(d,"wxSYS_COLOUR_HOTLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HOTLIGHT)); |
10641 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
10642 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTINACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
10643 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_MENUHILIGHT)); | |
10644 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUBAR", PyInt_FromLong((long) wxSYS_COLOUR_MENUBAR)); | |
10645 | PyDict_SetItemString(d,"wxSYS_COLOUR_MAX", PyInt_FromLong((long) wxSYS_COLOUR_MAX)); | |
06c0fba4 RD |
10646 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); |
10647 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
10648 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
10649 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
10650 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
10651 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
10652 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
10653 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
10654 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
10655 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
10656 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
10657 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
10658 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
10659 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
10660 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
10661 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
10662 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
10663 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
10664 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
10665 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
10666 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
10667 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
10668 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
10669 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
10670 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
10671 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
10672 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
10673 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
10674 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
10675 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
10676 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
10677 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
10678 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
10679 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
10680 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
10681 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
10682 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
b5a5d647 RD |
10683 | PyDict_SetItemString(d,"wxSYS_CAN_DRAW_FRAME_DECORATIONS", PyInt_FromLong((long) wxSYS_CAN_DRAW_FRAME_DECORATIONS)); |
10684 | PyDict_SetItemString(d,"wxSYS_CAN_ICONIZE_FRAME", PyInt_FromLong((long) wxSYS_CAN_ICONIZE_FRAME)); | |
daa3eac9 | 10685 | PyDict_SetItemString(d,"wxSYS_SCREEN_NONE", PyInt_FromLong((long) wxSYS_SCREEN_NONE)); |
daa3eac9 | 10686 | PyDict_SetItemString(d,"wxSYS_SCREEN_TINY", PyInt_FromLong((long) wxSYS_SCREEN_TINY)); |
e67409dc RD |
10687 | PyDict_SetItemString(d,"wxSYS_SCREEN_PDA", PyInt_FromLong((long) wxSYS_SCREEN_PDA)); |
10688 | PyDict_SetItemString(d,"wxSYS_SCREEN_SMALL", PyInt_FromLong((long) wxSYS_SCREEN_SMALL)); | |
10689 | PyDict_SetItemString(d,"wxSYS_SCREEN_DESKTOP", PyInt_FromLong((long) wxSYS_SCREEN_DESKTOP)); | |
f6bcfd97 BP |
10690 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); |
10691 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
10692 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
10693 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
10694 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
10695 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
10696 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
10697 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
10698 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
10699 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
8baa46e9 RD |
10700 | PyDict_SetItemString(d,"wxTRACE_MemAlloc", PyString_FromString("memalloc")); |
10701 | PyDict_SetItemString(d,"wxTRACE_Messages", PyString_FromString("messages")); | |
10702 | PyDict_SetItemString(d,"wxTRACE_ResAlloc", PyString_FromString("resalloc")); | |
10703 | PyDict_SetItemString(d,"wxTRACE_RefCount", PyString_FromString("refcount")); | |
10704 | PyDict_SetItemString(d,"wxTRACE_OleCalls", PyString_FromString("ole")); | |
10705 | PyDict_SetItemString(d,"wxTraceMemAlloc", PyInt_FromLong((long) wxTraceMemAlloc)); | |
10706 | PyDict_SetItemString(d,"wxTraceMessages", PyInt_FromLong((long) wxTraceMessages)); | |
10707 | PyDict_SetItemString(d,"wxTraceResAlloc", PyInt_FromLong((long) wxTraceResAlloc)); | |
10708 | PyDict_SetItemString(d,"wxTraceRefCount", PyInt_FromLong((long) wxTraceRefCount)); | |
10709 | PyDict_SetItemString(d,"wxTraceOleCalls", PyInt_FromLong((long) wxTraceOleCalls)); | |
1b62f00d | 10710 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); |
b96c7a38 RD |
10711 | PyDict_SetItemString(d,"wxEXEC_ASYNC", PyInt_FromLong((long) wxEXEC_ASYNC)); |
10712 | PyDict_SetItemString(d,"wxEXEC_SYNC", PyInt_FromLong((long) wxEXEC_SYNC)); | |
10713 | PyDict_SetItemString(d,"wxEXEC_NOHIDE", PyInt_FromLong((long) wxEXEC_NOHIDE)); | |
d6eacb25 | 10714 | PyDict_SetItemString(d,"wxEXEC_MAKE_GROUP_LEADER", PyInt_FromLong((long) wxEXEC_MAKE_GROUP_LEADER)); |
b37c7e1d RD |
10715 | PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD)); |
10716 | PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE)); | |
10717 | PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE)); | |
10718 | PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME)); | |
10719 | PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL)); | |
10720 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
10721 | SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set); | |
72797a7d RD |
10722 | PyDict_SetItemString(d,"wxART_TOOLBAR", PyString_FromString("toolbar_C")); |
10723 | PyDict_SetItemString(d,"wxART_MENU", PyString_FromString("menu_C")); | |
10724 | PyDict_SetItemString(d,"wxART_FRAME_ICON", PyString_FromString("frame_icon_C")); | |
10725 | PyDict_SetItemString(d,"wxART_CMN_DIALOG", PyString_FromString("cmn_dialog_C")); | |
10726 | PyDict_SetItemString(d,"wxART_HELP_BROWSER", PyString_FromString("help_browser_C")); | |
10727 | PyDict_SetItemString(d,"wxART_MESSAGE_BOX", PyString_FromString("message_box_C")); | |
10728 | PyDict_SetItemString(d,"wxART_OTHER", PyString_FromString("other_C")); | |
10729 | PyDict_SetItemString(d,"wxART_ADD_BOOKMARK", PyString_FromString("add_bookmark")); | |
10730 | PyDict_SetItemString(d,"wxART_DEL_BOOKMARK", PyString_FromString("del_bookmark")); | |
10731 | PyDict_SetItemString(d,"wxART_HELP_SIDE_PANEL", PyString_FromString("help_side_panel")); | |
10732 | PyDict_SetItemString(d,"wxART_HELP_SETTINGS", PyString_FromString("help_settings")); | |
10733 | PyDict_SetItemString(d,"wxART_HELP_BOOK", PyString_FromString("help_book")); | |
10734 | PyDict_SetItemString(d,"wxART_HELP_FOLDER", PyString_FromString("help_folder")); | |
10735 | PyDict_SetItemString(d,"wxART_HELP_PAGE", PyString_FromString("help_page")); | |
10736 | PyDict_SetItemString(d,"wxART_GO_BACK", PyString_FromString("go_back")); | |
10737 | PyDict_SetItemString(d,"wxART_GO_FORWARD", PyString_FromString("go_forward")); | |
10738 | PyDict_SetItemString(d,"wxART_GO_UP", PyString_FromString("go_up")); | |
10739 | PyDict_SetItemString(d,"wxART_GO_DOWN", PyString_FromString("go_down")); | |
10740 | PyDict_SetItemString(d,"wxART_GO_TO_PARENT", PyString_FromString("go_to_parent")); | |
10741 | PyDict_SetItemString(d,"wxART_GO_HOME", PyString_FromString("go_home")); | |
10742 | PyDict_SetItemString(d,"wxART_FILE_OPEN", PyString_FromString("file_open")); | |
10743 | PyDict_SetItemString(d,"wxART_PRINT", PyString_FromString("print")); | |
10744 | PyDict_SetItemString(d,"wxART_HELP", PyString_FromString("help")); | |
10745 | PyDict_SetItemString(d,"wxART_TIP", PyString_FromString("tip")); | |
10746 | PyDict_SetItemString(d,"wxART_REPORT_VIEW", PyString_FromString("report_view")); | |
10747 | PyDict_SetItemString(d,"wxART_LIST_VIEW", PyString_FromString("list_view")); | |
10748 | PyDict_SetItemString(d,"wxART_NEW_DIR", PyString_FromString("new_dir")); | |
10749 | PyDict_SetItemString(d,"wxART_FOLDER", PyString_FromString("folder")); | |
10750 | PyDict_SetItemString(d,"wxART_GO_DIR_UP", PyString_FromString("go_dir_up")); | |
10751 | PyDict_SetItemString(d,"wxART_EXECUTABLE_FILE", PyString_FromString("executable_file")); | |
10752 | PyDict_SetItemString(d,"wxART_NORMAL_FILE", PyString_FromString("normal_file")); | |
10753 | PyDict_SetItemString(d,"wxART_TICK_MARK", PyString_FromString("tick")); | |
10754 | PyDict_SetItemString(d,"wxART_CROSS_MARK", PyString_FromString("cross")); | |
10755 | PyDict_SetItemString(d,"wxART_ERROR", PyString_FromString("error")); | |
10756 | PyDict_SetItemString(d,"wxART_QUESTION", PyString_FromString("question")); | |
10757 | PyDict_SetItemString(d,"wxART_WARNING", PyString_FromString("warning")); | |
10758 | PyDict_SetItemString(d,"wxART_INFORMATION", PyString_FromString("information")); | |
9416aa89 | 10759 | |
9416aa89 RD |
10760 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); |
10761 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
72797a7d | 10762 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); |
8baa46e9 | 10763 | |
1d99702e RD |
10764 | { |
10765 | int i; | |
10766 | for (i = 0; _swig_mapping[i].n1; i++) | |
10767 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10768 | } | |
bb0054cd | 10769 | } |