]>
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(); |
76bfdc78 | 148 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) |
a541c325 RD |
149 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, |
150 | wx2PyString(szString), t)); | |
4268f798 | 151 | wxPyEndBlockThreads(); |
76bfdc78 RD |
152 | if (! found) |
153 | wxLog::DoLog(level, szString, t); | |
154 | } | |
155 | ||
156 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
157 | bool found; | |
4268f798 | 158 | wxPyBeginBlockThreads(); |
76bfdc78 | 159 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) |
a541c325 RD |
160 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", |
161 | wx2PyString(szString), t)); | |
4268f798 | 162 | wxPyEndBlockThreads(); |
76bfdc78 RD |
163 | if (! found) |
164 | wxLog::DoLogString(szString, t); | |
165 | } | |
166 | ||
167 | PYPRIVATE; | |
168 | }; | |
c368d904 RD |
169 | // C++ version of wxProcess derived class |
170 | ||
171 | class wxPyProcess : public wxProcess { | |
172 | public: | |
173 | wxPyProcess(wxEvtHandler *parent = NULL, int id = -1) | |
174 | : wxProcess(parent, id) | |
175 | {} | |
176 | ||
177 | DEC_PYCALLBACK_VOID_INTINT(OnTerminate); | |
178 | ||
179 | PYPRIVATE; | |
180 | }; | |
181 | ||
182 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
493f1553 | 183 | |
19a97bd6 | 184 | |
493f1553 RD |
185 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) |
186 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
187 | class wxJoystick : public wxObject { | |
188 | public: | |
189 | wxJoystick(int joystick = wxJOYSTICK1) { | |
4268f798 | 190 | wxPyBeginBlockThreads(); |
493f1553 | 191 | PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); |
4268f798 | 192 | wxPyEndBlockThreads(); |
493f1553 RD |
193 | } |
194 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
195 | int GetZPosition() { return -1; } | |
196 | int GetButtonState() { return -1; } | |
197 | int GetPOVPosition() { return -1; } | |
198 | int GetPOVCTSPosition() { return -1; } | |
199 | int GetRudderPosition() { return -1; } | |
200 | int GetUPosition() { return -1; } | |
201 | int GetVPosition() { return -1; } | |
202 | int GetMovementThreshold() { return -1; } | |
d56cebe7 | 203 | void SetMovementThreshold(int threshold) {} |
493f1553 RD |
204 | |
205 | bool IsOk(void) { return FALSE; } | |
206 | int GetNumberJoysticks() { return -1; } | |
207 | int GetManufacturerId() { return -1; } | |
208 | int GetProductId() { return -1; } | |
209 | wxString GetProductName() { return ""; } | |
210 | int GetXMin() { return -1; } | |
211 | int GetYMin() { return -1; } | |
212 | int GetZMin() { return -1; } | |
213 | int GetXMax() { return -1; } | |
214 | int GetYMax() { return -1; } | |
215 | int GetZMax() { return -1; } | |
216 | int GetNumberButtons() { return -1; } | |
217 | int GetNumberAxes() { return -1; } | |
218 | int GetMaxButtons() { return -1; } | |
219 | int GetMaxAxes() { return -1; } | |
220 | int GetPollingMin() { return -1; } | |
221 | int GetPollingMax() { return -1; } | |
222 | int GetRudderMin() { return -1; } | |
223 | int GetRudderMax() { return -1; } | |
224 | int GetUMin() { return -1; } | |
225 | int GetUMax() { return -1; } | |
226 | int GetVMin() { return -1; } | |
227 | int GetVMax() { return -1; } | |
228 | ||
229 | bool HasRudder() { return FALSE; } | |
230 | bool HasZ() { return FALSE; } | |
231 | bool HasU() { return FALSE; } | |
232 | bool HasV() { return FALSE; } | |
233 | bool HasPOV() { return FALSE; } | |
234 | bool HasPOV4Dir() { return FALSE; } | |
235 | bool HasPOVCTS() { return FALSE; } | |
236 | ||
237 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return FALSE; } | |
238 | bool ReleaseCapture() { return FALSE; } | |
239 | }; | |
240 | #endif | |
241 | ||
0adbc166 | 242 | #if !wxUSE_WAVE |
493f1553 RD |
243 | // A C++ stub class for wxWave for platforms that don't have it. |
244 | class wxWave : public wxObject | |
245 | { | |
246 | public: | |
247 | wxWave(const wxString& fileName, bool isResource = FALSE) { | |
4268f798 | 248 | wxPyBeginBlockThreads(); |
493f1553 | 249 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 250 | wxPyEndBlockThreads(); |
493f1553 RD |
251 | } |
252 | wxWave(int size, const wxByte* data) { | |
4268f798 | 253 | wxPyBeginBlockThreads(); |
493f1553 | 254 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 255 | wxPyEndBlockThreads(); |
493f1553 RD |
256 | } |
257 | ||
258 | ~wxWave() {} | |
259 | ||
260 | bool IsOk() const { return FALSE; } | |
261 | bool Play(bool async = TRUE, bool looped = FALSE) const { return FALSE; } | |
262 | }; | |
263 | ||
264 | #endif | |
265 | // Implementations of some alternate "constructors" | |
266 | wxWave* wxWaveData(const wxString& data) { | |
267 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
268 | } | |
b37c7e1d RD |
269 | |
270 | #if 0 | |
271 | extern wxMimeTypesManager * wxTheMimeTypesManager; | |
272 | ||
273 | #endif | |
7dbce44a RD |
274 | |
275 | #include <wx/docview.h> | |
06c0fba4 RD |
276 | #ifdef __cplusplus |
277 | extern "C" { | |
278 | #endif | |
279 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
280 | PyObject * _resultobj; | |
281 | wxString * _result; | |
137b5242 RD |
282 | wxString * _arg0 = (wxString *) &wxPyFileSelectorPromptStr; |
283 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
284 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
285 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
286 | wxString * _arg4 = (wxString *) &wxPyFileSelectorDefaultWildcardStr; | |
06c0fba4 RD |
287 | int _arg5 = (int ) 0; |
288 | wxWindow * _arg6 = (wxWindow *) NULL; | |
289 | int _arg7 = (int ) -1; | |
290 | int _arg8 = (int ) -1; | |
137b5242 RD |
291 | PyObject * _obj0 = 0; |
292 | PyObject * _obj1 = 0; | |
293 | PyObject * _obj2 = 0; | |
294 | PyObject * _obj3 = 0; | |
295 | PyObject * _obj4 = 0; | |
06c0fba4 RD |
296 | PyObject * _argo6 = 0; |
297 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
298 | ||
299 | self = self; | |
137b5242 | 300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOOOiOii:wxFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7,&_arg8)) |
06c0fba4 | 301 | return NULL; |
137b5242 RD |
302 | if (_obj0) |
303 | { | |
304 | _arg0 = wxString_in_helper(_obj0); | |
305 | if (_arg0 == NULL) | |
306 | return NULL; | |
307 | } | |
308 | if (_obj1) | |
309 | { | |
310 | _arg1 = wxString_in_helper(_obj1); | |
311 | if (_arg1 == NULL) | |
312 | return NULL; | |
313 | } | |
314 | if (_obj2) | |
315 | { | |
316 | _arg2 = wxString_in_helper(_obj2); | |
317 | if (_arg2 == NULL) | |
318 | return NULL; | |
319 | } | |
320 | if (_obj3) | |
321 | { | |
322 | _arg3 = wxString_in_helper(_obj3); | |
323 | if (_arg3 == NULL) | |
324 | return NULL; | |
325 | } | |
326 | if (_obj4) | |
327 | { | |
328 | _arg4 = wxString_in_helper(_obj4); | |
329 | if (_arg4 == NULL) | |
330 | return NULL; | |
331 | } | |
06c0fba4 RD |
332 | if (_argo6) { |
333 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
334 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
336 | return NULL; | |
337 | } | |
338 | } | |
339 | { | |
4268f798 | 340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 341 | _result = new wxString (wxFileSelector(*_arg0,*_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8)); |
06c0fba4 | 342 | |
4268f798 RD |
343 | wxPyEndAllowThreads(__tstate); |
344 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 345 | }{ |
c8bc7bb8 RD |
346 | #if wxUSE_UNICODE |
347 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
348 | #else | |
eec92d76 | 349 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 350 | #endif |
06c0fba4 | 351 | } |
137b5242 RD |
352 | { |
353 | if (_obj0) | |
354 | delete _arg0; | |
355 | } | |
356 | { | |
357 | if (_obj1) | |
358 | delete _arg1; | |
359 | } | |
360 | { | |
361 | if (_obj2) | |
362 | delete _arg2; | |
363 | } | |
364 | { | |
365 | if (_obj3) | |
366 | delete _arg3; | |
367 | } | |
368 | { | |
369 | if (_obj4) | |
370 | delete _arg4; | |
371 | } | |
06c0fba4 RD |
372 | { |
373 | delete _result; | |
374 | } | |
375 | return _resultobj; | |
376 | } | |
377 | ||
a541c325 RD |
378 | static PyObject *_wrap_wxLoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
379 | PyObject * _resultobj; | |
380 | wxString * _result; | |
137b5242 RD |
381 | wxString * _arg0; |
382 | wxString * _arg1; | |
383 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
a541c325 | 384 | wxWindow * _arg3 = (wxWindow *) NULL; |
137b5242 RD |
385 | PyObject * _obj0 = 0; |
386 | PyObject * _obj1 = 0; | |
387 | PyObject * _obj2 = 0; | |
a541c325 RD |
388 | PyObject * _argo3 = 0; |
389 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
390 | ||
391 | self = self; | |
137b5242 | 392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxLoadFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) |
a541c325 | 393 | return NULL; |
137b5242 RD |
394 | { |
395 | _arg0 = wxString_in_helper(_obj0); | |
396 | if (_arg0 == NULL) | |
397 | return NULL; | |
398 | } | |
399 | { | |
400 | _arg1 = wxString_in_helper(_obj1); | |
401 | if (_arg1 == NULL) | |
402 | return NULL; | |
403 | } | |
404 | if (_obj2) | |
405 | { | |
406 | _arg2 = wxString_in_helper(_obj2); | |
407 | if (_arg2 == NULL) | |
408 | return NULL; | |
409 | } | |
a541c325 RD |
410 | if (_argo3) { |
411 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
412 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxLoadFileSelector. Expected _wxWindow_p."); | |
414 | return NULL; | |
415 | } | |
416 | } | |
417 | { | |
418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 419 | _result = new wxString (wxLoadFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); |
a541c325 RD |
420 | |
421 | wxPyEndAllowThreads(__tstate); | |
422 | if (PyErr_Occurred()) return NULL; | |
423 | }{ | |
424 | #if wxUSE_UNICODE | |
425 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
426 | #else | |
427 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
428 | #endif | |
429 | } | |
137b5242 RD |
430 | { |
431 | if (_obj0) | |
432 | delete _arg0; | |
433 | } | |
434 | { | |
435 | if (_obj1) | |
436 | delete _arg1; | |
437 | } | |
438 | { | |
439 | if (_obj2) | |
440 | delete _arg2; | |
441 | } | |
a541c325 RD |
442 | { |
443 | delete _result; | |
444 | } | |
445 | return _resultobj; | |
446 | } | |
447 | ||
448 | static PyObject *_wrap_wxSaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
449 | PyObject * _resultobj; | |
450 | wxString * _result; | |
137b5242 RD |
451 | wxString * _arg0; |
452 | wxString * _arg1; | |
453 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
a541c325 | 454 | wxWindow * _arg3 = (wxWindow *) NULL; |
137b5242 RD |
455 | PyObject * _obj0 = 0; |
456 | PyObject * _obj1 = 0; | |
457 | PyObject * _obj2 = 0; | |
a541c325 RD |
458 | PyObject * _argo3 = 0; |
459 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
460 | ||
461 | self = self; | |
137b5242 RD |
462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxSaveFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) |
463 | return NULL; | |
464 | { | |
465 | _arg0 = wxString_in_helper(_obj0); | |
466 | if (_arg0 == NULL) | |
a541c325 | 467 | return NULL; |
137b5242 RD |
468 | } |
469 | { | |
470 | _arg1 = wxString_in_helper(_obj1); | |
471 | if (_arg1 == NULL) | |
472 | return NULL; | |
473 | } | |
474 | if (_obj2) | |
475 | { | |
476 | _arg2 = wxString_in_helper(_obj2); | |
477 | if (_arg2 == NULL) | |
478 | return NULL; | |
479 | } | |
a541c325 RD |
480 | if (_argo3) { |
481 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
482 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxSaveFileSelector. Expected _wxWindow_p."); | |
484 | return NULL; | |
485 | } | |
486 | } | |
487 | { | |
488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 489 | _result = new wxString (wxSaveFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); |
a541c325 RD |
490 | |
491 | wxPyEndAllowThreads(__tstate); | |
492 | if (PyErr_Occurred()) return NULL; | |
493 | }{ | |
494 | #if wxUSE_UNICODE | |
495 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
496 | #else | |
497 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
498 | #endif | |
499 | } | |
137b5242 RD |
500 | { |
501 | if (_obj0) | |
502 | delete _arg0; | |
503 | } | |
504 | { | |
505 | if (_obj1) | |
506 | delete _arg1; | |
507 | } | |
508 | { | |
509 | if (_obj2) | |
510 | delete _arg2; | |
511 | } | |
a541c325 RD |
512 | { |
513 | delete _result; | |
514 | } | |
515 | return _resultobj; | |
516 | } | |
517 | ||
7cdaed0b RD |
518 | static PyObject *_wrap_wxDirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
519 | PyObject * _resultobj; | |
520 | wxString * _result; | |
521 | wxString * _arg0 = (wxString *) &wxPyDirSelectorPromptStr; | |
522 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
523 | long _arg2 = (long ) wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxDD_NEW_DIR_BUTTON; | |
524 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
525 | wxWindow * _arg4 = (wxWindow *) NULL; | |
526 | PyObject * _obj0 = 0; | |
527 | PyObject * _obj1 = 0; | |
528 | wxPoint temp; | |
529 | PyObject * _obj3 = 0; | |
530 | PyObject * _argo4 = 0; | |
531 | char *_kwnames[] = { "message","defaultPath","style","pos","parent", NULL }; | |
532 | ||
533 | self = self; | |
534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOlOO:wxDirSelector",_kwnames,&_obj0,&_obj1,&_arg2,&_obj3,&_argo4)) | |
535 | return NULL; | |
536 | if (_obj0) | |
537 | { | |
538 | _arg0 = wxString_in_helper(_obj0); | |
539 | if (_arg0 == NULL) | |
540 | return NULL; | |
541 | } | |
542 | if (_obj1) | |
543 | { | |
544 | _arg1 = wxString_in_helper(_obj1); | |
545 | if (_arg1 == NULL) | |
546 | return NULL; | |
547 | } | |
548 | if (_obj3) | |
549 | { | |
550 | _arg3 = &temp; | |
551 | if (! wxPoint_helper(_obj3, &_arg3)) | |
552 | return NULL; | |
553 | } | |
554 | if (_argo4) { | |
555 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
556 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxDirSelector. Expected _wxWindow_p."); | |
558 | return NULL; | |
559 | } | |
560 | } | |
561 | { | |
562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
563 | _result = new wxString (wxDirSelector(*_arg0,*_arg1,_arg2,*_arg3,_arg4)); | |
564 | ||
565 | wxPyEndAllowThreads(__tstate); | |
566 | if (PyErr_Occurred()) return NULL; | |
567 | }{ | |
568 | #if wxUSE_UNICODE | |
569 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
570 | #else | |
571 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
572 | #endif | |
573 | } | |
574 | { | |
575 | if (_obj0) | |
576 | delete _arg0; | |
577 | } | |
578 | { | |
579 | if (_obj1) | |
580 | delete _arg1; | |
581 | } | |
582 | { | |
583 | delete _result; | |
584 | } | |
585 | return _resultobj; | |
586 | } | |
587 | ||
06c0fba4 RD |
588 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
589 | PyObject * _resultobj; | |
590 | wxString * _result; | |
591 | wxString * _arg0; | |
137b5242 RD |
592 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
593 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
06c0fba4 RD |
594 | wxWindow * _arg3 = (wxWindow *) NULL; |
595 | int _arg4 = (int ) -1; | |
596 | int _arg5 = (int ) -1; | |
597 | bool _arg6 = (bool ) TRUE; | |
598 | PyObject * _obj0 = 0; | |
599 | PyObject * _obj1 = 0; | |
600 | PyObject * _obj2 = 0; | |
601 | PyObject * _argo3 = 0; | |
602 | int tempbool6 = (int) TRUE; | |
603 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
604 | ||
605 | self = self; | |
606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
607 | return NULL; | |
608 | { | |
c8bc7bb8 RD |
609 | _arg0 = wxString_in_helper(_obj0); |
610 | if (_arg0 == NULL) | |
185d7c3e | 611 | return NULL; |
06c0fba4 RD |
612 | } |
613 | if (_obj1) | |
614 | { | |
c8bc7bb8 RD |
615 | _arg1 = wxString_in_helper(_obj1); |
616 | if (_arg1 == NULL) | |
185d7c3e | 617 | return NULL; |
06c0fba4 RD |
618 | } |
619 | if (_obj2) | |
620 | { | |
c8bc7bb8 RD |
621 | _arg2 = wxString_in_helper(_obj2); |
622 | if (_arg2 == NULL) | |
06c0fba4 | 623 | return NULL; |
06c0fba4 RD |
624 | } |
625 | if (_argo3) { | |
626 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
627 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
629 | return NULL; | |
630 | } | |
631 | } | |
632 | _arg6 = (bool ) tempbool6; | |
633 | { | |
4268f798 | 634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 635 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); |
06c0fba4 | 636 | |
4268f798 RD |
637 | wxPyEndAllowThreads(__tstate); |
638 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 639 | }{ |
c8bc7bb8 RD |
640 | #if wxUSE_UNICODE |
641 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
642 | #else | |
eec92d76 | 643 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 644 | #endif |
06c0fba4 RD |
645 | } |
646 | { | |
647 | if (_obj0) | |
648 | delete _arg0; | |
649 | } | |
650 | { | |
651 | if (_obj1) | |
652 | delete _arg1; | |
653 | } | |
654 | { | |
655 | if (_obj2) | |
656 | delete _arg2; | |
657 | } | |
658 | { | |
659 | delete _result; | |
660 | } | |
661 | return _resultobj; | |
662 | } | |
663 | ||
1b62f00d RD |
664 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
665 | PyObject * _resultobj; | |
666 | wxString * _result; | |
667 | wxString * _arg0; | |
137b5242 RD |
668 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
669 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
1b62f00d RD |
670 | wxWindow * _arg3 = (wxWindow *) NULL; |
671 | PyObject * _obj0 = 0; | |
672 | PyObject * _obj1 = 0; | |
673 | PyObject * _obj2 = 0; | |
674 | PyObject * _argo3 = 0; | |
675 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
676 | ||
677 | self = self; | |
678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
679 | return NULL; | |
680 | { | |
c8bc7bb8 RD |
681 | _arg0 = wxString_in_helper(_obj0); |
682 | if (_arg0 == NULL) | |
1b62f00d | 683 | return NULL; |
1b62f00d RD |
684 | } |
685 | if (_obj1) | |
686 | { | |
c8bc7bb8 RD |
687 | _arg1 = wxString_in_helper(_obj1); |
688 | if (_arg1 == NULL) | |
1b62f00d | 689 | return NULL; |
1b62f00d RD |
690 | } |
691 | if (_obj2) | |
692 | { | |
c8bc7bb8 RD |
693 | _arg2 = wxString_in_helper(_obj2); |
694 | if (_arg2 == NULL) | |
1b62f00d | 695 | return NULL; |
1b62f00d RD |
696 | } |
697 | if (_argo3) { | |
698 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
699 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
701 | return NULL; | |
702 | } | |
703 | } | |
704 | { | |
4268f798 | 705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 706 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); |
1b62f00d | 707 | |
4268f798 RD |
708 | wxPyEndAllowThreads(__tstate); |
709 | if (PyErr_Occurred()) return NULL; | |
1b62f00d | 710 | }{ |
c8bc7bb8 RD |
711 | #if wxUSE_UNICODE |
712 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
713 | #else | |
1b62f00d | 714 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 715 | #endif |
1b62f00d RD |
716 | } |
717 | { | |
718 | if (_obj0) | |
719 | delete _arg0; | |
720 | } | |
721 | { | |
722 | if (_obj1) | |
723 | delete _arg1; | |
724 | } | |
725 | { | |
726 | if (_obj2) | |
727 | delete _arg2; | |
728 | } | |
729 | { | |
730 | delete _result; | |
731 | } | |
732 | return _resultobj; | |
733 | } | |
734 | ||
06c0fba4 RD |
735 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
736 | PyObject * _resultobj; | |
737 | wxString * _result; | |
738 | wxString * _arg0; | |
739 | wxString * _arg1; | |
740 | int _arg2; | |
741 | wxString * _arg3; | |
742 | wxWindow * _arg4 = (wxWindow *) NULL; | |
743 | int _arg5 = (int ) -1; | |
744 | int _arg6 = (int ) -1; | |
745 | bool _arg7 = (bool ) TRUE; | |
746 | int _arg8 = (int ) 150; | |
747 | int _arg9 = (int ) 200; | |
748 | PyObject * _obj0 = 0; | |
749 | PyObject * _obj1 = 0; | |
750 | PyObject * _obj3 = 0; | |
751 | PyObject * _argo4 = 0; | |
752 | int tempbool7 = (int) TRUE; | |
eec92d76 | 753 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
754 | |
755 | self = self; | |
756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
757 | return NULL; | |
758 | { | |
c8bc7bb8 RD |
759 | _arg0 = wxString_in_helper(_obj0); |
760 | if (_arg0 == NULL) | |
185d7c3e | 761 | return NULL; |
06c0fba4 RD |
762 | } |
763 | { | |
c8bc7bb8 RD |
764 | _arg1 = wxString_in_helper(_obj1); |
765 | if (_arg1 == NULL) | |
185d7c3e | 766 | return NULL; |
06c0fba4 RD |
767 | } |
768 | if (_obj3) | |
769 | { | |
770 | _arg3 = wxString_LIST_helper(_obj3); | |
771 | if (_arg3 == NULL) { | |
772 | return NULL; | |
773 | } | |
774 | } | |
775 | if (_argo4) { | |
776 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
777 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
779 | return NULL; | |
780 | } | |
781 | } | |
782 | _arg7 = (bool ) tempbool7; | |
783 | { | |
784 | if (_obj3) { | |
785 | _arg2 = PyList_Size(_obj3); | |
786 | } | |
787 | else { | |
788 | _arg2 = 0; | |
789 | } | |
790 | } | |
791 | { | |
4268f798 | 792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 793 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); |
06c0fba4 | 794 | |
4268f798 RD |
795 | wxPyEndAllowThreads(__tstate); |
796 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 797 | }{ |
c8bc7bb8 RD |
798 | #if wxUSE_UNICODE |
799 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
800 | #else | |
eec92d76 | 801 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 802 | #endif |
06c0fba4 RD |
803 | } |
804 | { | |
805 | if (_obj0) | |
806 | delete _arg0; | |
807 | } | |
808 | { | |
809 | if (_obj1) | |
810 | delete _arg1; | |
811 | } | |
812 | { | |
813 | delete [] _arg3; | |
814 | } | |
815 | { | |
816 | delete _result; | |
817 | } | |
818 | return _resultobj; | |
819 | } | |
820 | ||
821 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
822 | PyObject * _resultobj; | |
823 | int _result; | |
824 | wxString * _arg0; | |
825 | wxString * _arg1; | |
826 | int _arg2; | |
827 | wxString * _arg3; | |
828 | wxWindow * _arg4 = (wxWindow *) NULL; | |
829 | int _arg5 = (int ) -1; | |
830 | int _arg6 = (int ) -1; | |
831 | bool _arg7 = (bool ) TRUE; | |
832 | int _arg8 = (int ) 150; | |
833 | int _arg9 = (int ) 200; | |
834 | PyObject * _obj0 = 0; | |
835 | PyObject * _obj1 = 0; | |
836 | PyObject * _obj3 = 0; | |
837 | PyObject * _argo4 = 0; | |
838 | int tempbool7 = (int) TRUE; | |
eec92d76 | 839 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
840 | |
841 | self = self; | |
842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
843 | return NULL; | |
844 | { | |
c8bc7bb8 RD |
845 | _arg0 = wxString_in_helper(_obj0); |
846 | if (_arg0 == NULL) | |
185d7c3e | 847 | return NULL; |
06c0fba4 RD |
848 | } |
849 | { | |
c8bc7bb8 RD |
850 | _arg1 = wxString_in_helper(_obj1); |
851 | if (_arg1 == NULL) | |
185d7c3e | 852 | return NULL; |
06c0fba4 RD |
853 | } |
854 | if (_obj3) | |
855 | { | |
856 | _arg3 = wxString_LIST_helper(_obj3); | |
857 | if (_arg3 == NULL) { | |
858 | return NULL; | |
859 | } | |
860 | } | |
861 | if (_argo4) { | |
862 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
863 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
865 | return NULL; | |
866 | } | |
867 | } | |
868 | _arg7 = (bool ) tempbool7; | |
869 | { | |
870 | if (_obj3) { | |
871 | _arg2 = PyList_Size(_obj3); | |
872 | } | |
873 | else { | |
874 | _arg2 = 0; | |
875 | } | |
876 | } | |
877 | { | |
4268f798 | 878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 879 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
06c0fba4 | 880 | |
4268f798 RD |
881 | wxPyEndAllowThreads(__tstate); |
882 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
883 | } _resultobj = Py_BuildValue("i",_result); |
884 | { | |
885 | if (_obj0) | |
886 | delete _arg0; | |
887 | } | |
888 | { | |
889 | if (_obj1) | |
890 | delete _arg1; | |
891 | } | |
892 | { | |
893 | delete [] _arg3; | |
894 | } | |
895 | return _resultobj; | |
896 | } | |
897 | ||
898 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
899 | PyObject * _resultobj; | |
900 | int _result; | |
901 | wxString * _arg0; | |
137b5242 | 902 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
06c0fba4 RD |
903 | int _arg2 = (int ) wxOK|wxCENTRE; |
904 | wxWindow * _arg3 = (wxWindow *) NULL; | |
905 | int _arg4 = (int ) -1; | |
906 | int _arg5 = (int ) -1; | |
907 | PyObject * _obj0 = 0; | |
908 | PyObject * _obj1 = 0; | |
909 | PyObject * _argo3 = 0; | |
910 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
911 | ||
912 | self = self; | |
913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
914 | return NULL; | |
915 | { | |
c8bc7bb8 RD |
916 | _arg0 = wxString_in_helper(_obj0); |
917 | if (_arg0 == NULL) | |
185d7c3e | 918 | return NULL; |
06c0fba4 RD |
919 | } |
920 | if (_obj1) | |
921 | { | |
c8bc7bb8 RD |
922 | _arg1 = wxString_in_helper(_obj1); |
923 | if (_arg1 == NULL) | |
185d7c3e | 924 | return NULL; |
06c0fba4 RD |
925 | } |
926 | if (_argo3) { | |
927 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
928 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
930 | return NULL; | |
931 | } | |
932 | } | |
933 | { | |
4268f798 | 934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 935 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); |
06c0fba4 | 936 | |
4268f798 RD |
937 | wxPyEndAllowThreads(__tstate); |
938 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
939 | } _resultobj = Py_BuildValue("i",_result); |
940 | { | |
941 | if (_obj0) | |
942 | delete _arg0; | |
943 | } | |
944 | { | |
945 | if (_obj1) | |
946 | delete _arg1; | |
947 | } | |
948 | return _resultobj; | |
949 | } | |
950 | ||
951 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
952 | PyObject * _resultobj; | |
953 | long _result; | |
954 | wxString * _arg0; | |
955 | wxString * _arg1; | |
956 | wxString * _arg2; | |
957 | long _arg3; | |
958 | long _arg4 = (long ) 0; | |
959 | long _arg5 = (long ) 100; | |
960 | wxWindow * _arg6 = (wxWindow *) NULL; | |
e508a2b6 | 961 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; |
06c0fba4 RD |
962 | PyObject * _obj0 = 0; |
963 | PyObject * _obj1 = 0; | |
964 | PyObject * _obj2 = 0; | |
965 | PyObject * _argo6 = 0; | |
966 | wxPoint temp; | |
967 | PyObject * _obj7 = 0; | |
968 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
969 | ||
970 | self = self; | |
971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
972 | return NULL; | |
973 | { | |
c8bc7bb8 RD |
974 | _arg0 = wxString_in_helper(_obj0); |
975 | if (_arg0 == NULL) | |
185d7c3e | 976 | return NULL; |
06c0fba4 RD |
977 | } |
978 | { | |
c8bc7bb8 RD |
979 | _arg1 = wxString_in_helper(_obj1); |
980 | if (_arg1 == NULL) | |
06c0fba4 | 981 | return NULL; |
06c0fba4 RD |
982 | } |
983 | { | |
c8bc7bb8 RD |
984 | _arg2 = wxString_in_helper(_obj2); |
985 | if (_arg2 == NULL) | |
185d7c3e | 986 | return NULL; |
06c0fba4 RD |
987 | } |
988 | if (_argo6) { | |
989 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
990 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
992 | return NULL; | |
993 | } | |
994 | } | |
995 | if (_obj7) | |
996 | { | |
997 | _arg7 = &temp; | |
998 | if (! wxPoint_helper(_obj7, &_arg7)) | |
999 | return NULL; | |
1000 | } | |
1001 | { | |
4268f798 | 1002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1003 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); |
06c0fba4 | 1004 | |
4268f798 RD |
1005 | wxPyEndAllowThreads(__tstate); |
1006 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1007 | } _resultobj = Py_BuildValue("l",_result); |
1008 | { | |
1009 | if (_obj0) | |
1010 | delete _arg0; | |
1011 | } | |
1012 | { | |
1013 | if (_obj1) | |
1014 | delete _arg1; | |
1015 | } | |
1016 | { | |
1017 | if (_obj2) | |
1018 | delete _arg2; | |
1019 | } | |
1020 | return _resultobj; | |
1021 | } | |
1022 | ||
1023 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1024 | PyObject * _resultobj; | |
1025 | bool _result; | |
1026 | char *_kwnames[] = { NULL }; | |
1027 | ||
1028 | self = self; | |
1029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
1030 | return NULL; | |
1031 | { | |
4268f798 | 1032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1033 | _result = (bool )wxColourDisplay(); |
06c0fba4 | 1034 | |
4268f798 RD |
1035 | wxPyEndAllowThreads(__tstate); |
1036 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1037 | } _resultobj = Py_BuildValue("i",_result); |
1038 | return _resultobj; | |
1039 | } | |
1040 | ||
1041 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1042 | PyObject * _resultobj; | |
1043 | int _result; | |
1044 | char *_kwnames[] = { NULL }; | |
1045 | ||
1046 | self = self; | |
1047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
1048 | return NULL; | |
1049 | { | |
4268f798 | 1050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1051 | _result = (int )wxDisplayDepth(); |
06c0fba4 | 1052 | |
4268f798 RD |
1053 | wxPyEndAllowThreads(__tstate); |
1054 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1055 | } _resultobj = Py_BuildValue("i",_result); |
1056 | return _resultobj; | |
1057 | } | |
f0261a72 | 1058 | |
1e7ecb7b RD |
1059 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { |
1060 | PyObject * _resultobj; | |
1061 | int _result; | |
1062 | char *_kwnames[] = { NULL }; | |
1063 | ||
1064 | self = self; | |
1065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
1066 | return NULL; | |
1067 | { | |
4268f798 | 1068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1069 | _result = (int )wxGetDisplayDepth(); |
1e7ecb7b | 1070 | |
4268f798 RD |
1071 | wxPyEndAllowThreads(__tstate); |
1072 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1073 | } _resultobj = Py_BuildValue("i",_result); |
1074 | return _resultobj; | |
1075 | } | |
1076 | ||
1077 | static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1078 | PyObject * _resultobj; | |
1079 | int * _arg0; | |
1080 | int temp; | |
1081 | int * _arg1; | |
1082 | int temp0; | |
1083 | char *_kwnames[] = { NULL }; | |
1084 | ||
1085 | self = self; | |
1086 | { | |
1087 | _arg0 = &temp; | |
1088 | } | |
1089 | { | |
1090 | _arg1 = &temp0; | |
1091 | } | |
1092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames)) | |
1093 | return NULL; | |
1094 | { | |
4268f798 | 1095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1096 | wxDisplaySize(_arg0,_arg1); |
1e7ecb7b | 1097 | |
4268f798 RD |
1098 | wxPyEndAllowThreads(__tstate); |
1099 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1100 | } Py_INCREF(Py_None); |
1101 | _resultobj = Py_None; | |
1102 | { | |
1103 | PyObject *o; | |
1104 | o = PyInt_FromLong((long) (*_arg0)); | |
1105 | _resultobj = t_output_helper(_resultobj, o); | |
1106 | } | |
1107 | { | |
1108 | PyObject *o; | |
1109 | o = PyInt_FromLong((long) (*_arg1)); | |
1110 | _resultobj = t_output_helper(_resultobj, o); | |
1111 | } | |
1112 | return _resultobj; | |
1113 | } | |
1114 | ||
1115 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1116 | PyObject * _resultobj; | |
1117 | wxSize * _result; | |
1118 | char *_kwnames[] = { NULL }; | |
1119 | char _ptemp[128]; | |
1120 | ||
1121 | self = self; | |
1122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
1123 | return NULL; | |
1124 | { | |
4268f798 | 1125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1126 | _result = new wxSize (wxGetDisplaySize()); |
1e7ecb7b | 1127 | |
4268f798 RD |
1128 | wxPyEndAllowThreads(__tstate); |
1129 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1130 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1131 | _resultobj = Py_BuildValue("s",_ptemp); | |
1132 | return _resultobj; | |
1133 | } | |
1134 | ||
1135 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1136 | PyObject * _resultobj; | |
1137 | int * _arg0; | |
1138 | int temp; | |
1139 | int * _arg1; | |
1140 | int temp0; | |
1141 | char *_kwnames[] = { NULL }; | |
1142 | ||
1143 | self = self; | |
1144 | { | |
1145 | _arg0 = &temp; | |
1146 | } | |
1147 | { | |
1148 | _arg1 = &temp0; | |
1149 | } | |
1150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
1151 | return NULL; | |
1152 | { | |
4268f798 | 1153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1154 | wxDisplaySizeMM(_arg0,_arg1); |
1e7ecb7b | 1155 | |
4268f798 RD |
1156 | wxPyEndAllowThreads(__tstate); |
1157 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1158 | } Py_INCREF(Py_None); |
1159 | _resultobj = Py_None; | |
1160 | { | |
1161 | PyObject *o; | |
1162 | o = PyInt_FromLong((long) (*_arg0)); | |
1163 | _resultobj = t_output_helper(_resultobj, o); | |
1164 | } | |
1165 | { | |
1166 | PyObject *o; | |
1167 | o = PyInt_FromLong((long) (*_arg1)); | |
1168 | _resultobj = t_output_helper(_resultobj, o); | |
1169 | } | |
1170 | return _resultobj; | |
1171 | } | |
1172 | ||
1173 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1174 | PyObject * _resultobj; | |
1175 | wxSize * _result; | |
1176 | char *_kwnames[] = { NULL }; | |
1177 | char _ptemp[128]; | |
1178 | ||
1179 | self = self; | |
1180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1181 | return NULL; | |
1182 | { | |
4268f798 | 1183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1184 | _result = new wxSize (wxGetDisplaySizeMM()); |
1e7ecb7b | 1185 | |
4268f798 RD |
1186 | wxPyEndAllowThreads(__tstate); |
1187 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1188 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1189 | _resultobj = Py_BuildValue("s",_ptemp); | |
1190 | return _resultobj; | |
1191 | } | |
1192 | ||
91c41b30 RD |
1193 | static PyObject *_wrap_wxClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
1194 | PyObject * _resultobj; | |
1195 | int * _arg0; | |
1196 | int temp; | |
1197 | int * _arg1; | |
1198 | int temp0; | |
1199 | int * _arg2; | |
1200 | int temp1; | |
1201 | int * _arg3; | |
1202 | int temp2; | |
1203 | char *_kwnames[] = { NULL }; | |
1204 | ||
1205 | self = self; | |
1206 | { | |
1207 | _arg0 = &temp; | |
1208 | } | |
1209 | { | |
1210 | _arg1 = &temp0; | |
1211 | } | |
1212 | { | |
1213 | _arg2 = &temp1; | |
1214 | } | |
1215 | { | |
1216 | _arg3 = &temp2; | |
1217 | } | |
1218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxClientDisplayRect",_kwnames)) | |
1219 | return NULL; | |
1220 | { | |
4268f798 | 1221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1222 | wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3); |
91c41b30 | 1223 | |
4268f798 RD |
1224 | wxPyEndAllowThreads(__tstate); |
1225 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1226 | } Py_INCREF(Py_None); |
1227 | _resultobj = Py_None; | |
1228 | { | |
1229 | PyObject *o; | |
1230 | o = PyInt_FromLong((long) (*_arg0)); | |
1231 | _resultobj = t_output_helper(_resultobj, o); | |
1232 | } | |
1233 | { | |
1234 | PyObject *o; | |
1235 | o = PyInt_FromLong((long) (*_arg1)); | |
1236 | _resultobj = t_output_helper(_resultobj, o); | |
1237 | } | |
1238 | { | |
1239 | PyObject *o; | |
1240 | o = PyInt_FromLong((long) (*_arg2)); | |
1241 | _resultobj = t_output_helper(_resultobj, o); | |
1242 | } | |
1243 | { | |
1244 | PyObject *o; | |
1245 | o = PyInt_FromLong((long) (*_arg3)); | |
1246 | _resultobj = t_output_helper(_resultobj, o); | |
1247 | } | |
1248 | return _resultobj; | |
1249 | } | |
1250 | ||
1251 | static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1252 | PyObject * _resultobj; | |
1253 | wxRect * _result; | |
1254 | char *_kwnames[] = { NULL }; | |
1255 | char _ptemp[128]; | |
1256 | ||
1257 | self = self; | |
1258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames)) | |
1259 | return NULL; | |
1260 | { | |
4268f798 | 1261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1262 | _result = new wxRect (wxGetClientDisplayRect()); |
91c41b30 | 1263 | |
4268f798 RD |
1264 | wxPyEndAllowThreads(__tstate); |
1265 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1266 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
1267 | _resultobj = Py_BuildValue("s",_ptemp); | |
1268 | return _resultobj; | |
1269 | } | |
1270 | ||
06c0fba4 RD |
1271 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1272 | PyObject * _resultobj; | |
1273 | wxCursor * _arg0; | |
1274 | PyObject * _argo0 = 0; | |
1275 | char *_kwnames[] = { "cursor", NULL }; | |
f0261a72 | 1276 | |
06c0fba4 RD |
1277 | self = self; |
1278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1279 | return NULL; | |
1280 | if (_argo0) { | |
1281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
1284 | return NULL; | |
1285 | } | |
f0261a72 | 1286 | } |
06c0fba4 | 1287 | { |
4268f798 | 1288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1289 | wxSetCursor(*_arg0); |
06c0fba4 | 1290 | |
4268f798 RD |
1291 | wxPyEndAllowThreads(__tstate); |
1292 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1293 | } Py_INCREF(Py_None); |
1294 | _resultobj = Py_None; | |
1295 | return _resultobj; | |
1296 | } | |
1297 | ||
efc5f224 | 1298 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1299 | PyObject * _resultobj; |
1300 | wxWindow * _result; | |
1301 | wxString * _arg0; | |
1d99702e | 1302 | wxWindow * _arg1 = (wxWindow *) NULL; |
bb0054cd | 1303 | PyObject * _obj0 = 0; |
1d99702e | 1304 | PyObject * _argo1 = 0; |
efc5f224 | 1305 | char *_kwnames[] = { "label","parent", NULL }; |
bb0054cd RD |
1306 | |
1307 | self = self; | |
efc5f224 | 1308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) |
bb0054cd RD |
1309 | return NULL; |
1310 | { | |
c8bc7bb8 RD |
1311 | _arg0 = wxString_in_helper(_obj0); |
1312 | if (_arg0 == NULL) | |
185d7c3e | 1313 | return NULL; |
bb0054cd | 1314 | } |
1d99702e RD |
1315 | if (_argo1) { |
1316 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1317 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
1318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); |
1319 | return NULL; | |
1320 | } | |
1321 | } | |
1322 | { | |
4268f798 | 1323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1324 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); |
bb0054cd | 1325 | |
4268f798 RD |
1326 | wxPyEndAllowThreads(__tstate); |
1327 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1328 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
1329 | { |
1330 | if (_obj0) | |
1331 | delete _arg0; | |
1332 | } | |
1333 | return _resultobj; | |
1334 | } | |
1335 | ||
efc5f224 | 1336 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1337 | PyObject * _resultobj; |
1338 | wxWindow * _result; | |
1339 | wxString * _arg0; | |
1d99702e | 1340 | wxWindow * _arg1 = (wxWindow *) NULL; |
bb0054cd | 1341 | PyObject * _obj0 = 0; |
1d99702e | 1342 | PyObject * _argo1 = 0; |
efc5f224 | 1343 | char *_kwnames[] = { "name","parent", NULL }; |
bb0054cd RD |
1344 | |
1345 | self = self; | |
efc5f224 | 1346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) |
bb0054cd RD |
1347 | return NULL; |
1348 | { | |
c8bc7bb8 RD |
1349 | _arg0 = wxString_in_helper(_obj0); |
1350 | if (_arg0 == NULL) | |
185d7c3e | 1351 | return NULL; |
bb0054cd | 1352 | } |
1d99702e RD |
1353 | if (_argo1) { |
1354 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1355 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
1356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); |
1357 | return NULL; | |
1358 | } | |
1359 | } | |
1360 | { | |
4268f798 | 1361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1362 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); |
bb0054cd | 1363 | |
4268f798 RD |
1364 | wxPyEndAllowThreads(__tstate); |
1365 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1366 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
1367 | { |
1368 | if (_obj0) | |
1369 | delete _arg0; | |
1370 | } | |
1371 | return _resultobj; | |
1372 | } | |
1373 | ||
06c0fba4 RD |
1374 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1375 | PyObject * _resultobj; | |
1376 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1377 | PyObject * _argo0 = 0; | |
1378 | char *_kwnames[] = { "cursor", NULL }; | |
1379 | ||
1380 | self = self; | |
1381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1382 | return NULL; | |
1383 | if (_argo0) { | |
1384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1387 | return NULL; | |
1388 | } | |
1389 | } | |
1390 | { | |
4268f798 | 1391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1392 | wxBeginBusyCursor(_arg0); |
06c0fba4 | 1393 | |
4268f798 RD |
1394 | wxPyEndAllowThreads(__tstate); |
1395 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1396 | } Py_INCREF(Py_None); |
1397 | _resultobj = Py_None; | |
1398 | return _resultobj; | |
1399 | } | |
1400 | ||
1401 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1402 | PyObject * _resultobj; | |
1403 | wxWindow * _result; | |
1404 | char *_kwnames[] = { NULL }; | |
06c0fba4 RD |
1405 | |
1406 | self = self; | |
1407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1408 | return NULL; | |
1409 | { | |
4268f798 | 1410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1411 | _result = (wxWindow *)wxGetActiveWindow(); |
06c0fba4 | 1412 | |
4268f798 RD |
1413 | wxPyEndAllowThreads(__tstate); |
1414 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1415 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1416 | return _resultobj; |
1417 | } | |
1418 | ||
493f1553 RD |
1419 | static PyObject *_wrap_wxGenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
1420 | PyObject * _resultobj; | |
1421 | wxWindow * _result; | |
1422 | wxPoint * _arg0; | |
1423 | wxPoint temp; | |
1424 | PyObject * _obj0 = 0; | |
1425 | char *_kwnames[] = { "pt", NULL }; | |
1426 | ||
1427 | self = self; | |
1428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericFindWindowAtPoint",_kwnames,&_obj0)) | |
1429 | return NULL; | |
1430 | { | |
1431 | _arg0 = &temp; | |
1432 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1433 | return NULL; | |
1434 | } | |
1435 | { | |
4268f798 | 1436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1437 | _result = (wxWindow *)wxGenericFindWindowAtPoint(*_arg0); |
493f1553 | 1438 | |
4268f798 RD |
1439 | wxPyEndAllowThreads(__tstate); |
1440 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1441 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1442 | return _resultobj; | |
1443 | } | |
1444 | ||
1445 | static PyObject *_wrap_wxFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1446 | PyObject * _resultobj; | |
1447 | wxWindow * _result; | |
1448 | wxPoint * _arg0; | |
1449 | wxPoint temp; | |
1450 | PyObject * _obj0 = 0; | |
1451 | char *_kwnames[] = { "pt", NULL }; | |
1452 | ||
1453 | self = self; | |
1454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindWindowAtPoint",_kwnames,&_obj0)) | |
1455 | return NULL; | |
1456 | { | |
1457 | _arg0 = &temp; | |
1458 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1459 | return NULL; | |
1460 | } | |
1461 | { | |
4268f798 | 1462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1463 | _result = (wxWindow *)wxFindWindowAtPoint(*_arg0); |
493f1553 | 1464 | |
4268f798 RD |
1465 | wxPyEndAllowThreads(__tstate); |
1466 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1467 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1468 | return _resultobj; | |
1469 | } | |
1470 | ||
1471 | static PyObject *_wrap_wxCheckForInterrupt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1472 | PyObject * _resultobj; | |
1473 | bool _result; | |
1474 | wxWindow * _arg0; | |
1475 | PyObject * _argo0 = 0; | |
1476 | char *_kwnames[] = { "wnd", NULL }; | |
1477 | ||
1478 | self = self; | |
1479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckForInterrupt",_kwnames,&_argo0)) | |
1480 | return NULL; | |
1481 | if (_argo0) { | |
1482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckForInterrupt. Expected _wxWindow_p."); | |
1485 | return NULL; | |
1486 | } | |
1487 | } | |
1488 | { | |
4268f798 | 1489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1490 | _result = (bool )wxCheckForInterrupt(_arg0); |
493f1553 | 1491 | |
4268f798 RD |
1492 | wxPyEndAllowThreads(__tstate); |
1493 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1494 | } _resultobj = Py_BuildValue("i",_result); |
1495 | return _resultobj; | |
1496 | } | |
1497 | ||
25832b3f RD |
1498 | static PyObject *_wrap_wxFlushEvents(PyObject *self, PyObject *args, PyObject *kwargs) { |
1499 | PyObject * _resultobj; | |
1500 | char *_kwnames[] = { NULL }; | |
1501 | ||
1502 | self = self; | |
1503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFlushEvents",_kwnames)) | |
1504 | return NULL; | |
1505 | { | |
4268f798 | 1506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1507 | wxFlushEvents(); |
25832b3f | 1508 | |
4268f798 RD |
1509 | wxPyEndAllowThreads(__tstate); |
1510 | if (PyErr_Occurred()) return NULL; | |
25832b3f RD |
1511 | } Py_INCREF(Py_None); |
1512 | _resultobj = Py_None; | |
1513 | return _resultobj; | |
1514 | } | |
1515 | ||
06c0fba4 RD |
1516 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { |
1517 | PyObject * _resultobj; | |
1518 | bool _result; | |
1519 | char * _arg0; | |
1520 | int _arg1; | |
1521 | char *_kwnames[] = { "name","value", NULL }; | |
1522 | ||
1523 | self = self; | |
1524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
1525 | return NULL; | |
1526 | { | |
4268f798 | 1527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1528 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); |
06c0fba4 | 1529 | |
4268f798 RD |
1530 | wxPyEndAllowThreads(__tstate); |
1531 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1532 | } _resultobj = Py_BuildValue("i",_result); |
1533 | return _resultobj; | |
1534 | } | |
1535 | ||
1536 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1537 | PyObject * _resultobj; | |
1538 | char *_kwnames[] = { NULL }; | |
1539 | ||
1540 | self = self; | |
1541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
1542 | return NULL; | |
1543 | { | |
4268f798 | 1544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1545 | wxResourceClear(); |
06c0fba4 | 1546 | |
4268f798 RD |
1547 | wxPyEndAllowThreads(__tstate); |
1548 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1549 | } Py_INCREF(Py_None); |
1550 | _resultobj = Py_None; | |
1551 | return _resultobj; | |
1552 | } | |
1553 | ||
1554 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1555 | PyObject * _resultobj; | |
1556 | wxBitmap * _result; | |
1557 | char * _arg0; | |
1558 | char *_kwnames[] = { "resource", NULL }; | |
1559 | char _ptemp[128]; | |
1560 | ||
1561 | self = self; | |
1562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
1563 | return NULL; | |
1564 | { | |
4268f798 | 1565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1566 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); |
06c0fba4 | 1567 | |
4268f798 RD |
1568 | wxPyEndAllowThreads(__tstate); |
1569 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1570 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1571 | _resultobj = Py_BuildValue("s",_ptemp); | |
1572 | return _resultobj; | |
1573 | } | |
1574 | ||
1575 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1576 | PyObject * _resultobj; | |
1577 | wxIcon * _result; | |
1578 | char * _arg0; | |
1579 | char *_kwnames[] = { "resource", NULL }; | |
1580 | char _ptemp[128]; | |
1581 | ||
1582 | self = self; | |
1583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
1584 | return NULL; | |
1585 | { | |
4268f798 | 1586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1587 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); |
06c0fba4 | 1588 | |
4268f798 RD |
1589 | wxPyEndAllowThreads(__tstate); |
1590 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1591 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); |
1592 | _resultobj = Py_BuildValue("s",_ptemp); | |
1593 | return _resultobj; | |
1594 | } | |
1595 | ||
1596 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1597 | PyObject * _resultobj; | |
1598 | wxMenuBar * _result; | |
1599 | char * _arg0; | |
1600 | char *_kwnames[] = { "resource", NULL }; | |
06c0fba4 RD |
1601 | |
1602 | self = self; | |
1603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
1604 | return NULL; | |
1605 | { | |
4268f798 | 1606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1607 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); |
06c0fba4 | 1608 | |
4268f798 RD |
1609 | wxPyEndAllowThreads(__tstate); |
1610 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1611 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1612 | return _resultobj; |
1613 | } | |
1614 | ||
1615 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1616 | PyObject * _resultobj; | |
1617 | int _result; | |
1618 | char * _arg0; | |
1619 | char *_kwnames[] = { "name", NULL }; | |
1620 | ||
1621 | self = self; | |
1622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
1623 | return NULL; | |
1624 | { | |
4268f798 | 1625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1626 | _result = (int )wxResourceGetIdentifier(_arg0); |
06c0fba4 | 1627 | |
4268f798 RD |
1628 | wxPyEndAllowThreads(__tstate); |
1629 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1630 | } _resultobj = Py_BuildValue("i",_result); |
1631 | return _resultobj; | |
1632 | } | |
1633 | ||
1634 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1635 | PyObject * _resultobj; | |
1636 | bool _result; | |
1637 | char * _arg0; | |
1638 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1639 | PyObject * _argo1 = 0; | |
1640 | char *_kwnames[] = { "resource","table", NULL }; | |
1641 | ||
1642 | self = self; | |
1643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
1644 | return NULL; | |
1645 | if (_argo1) { | |
1646 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1647 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
1649 | return NULL; | |
1650 | } | |
1651 | } | |
1652 | { | |
4268f798 | 1653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1654 | _result = (bool )wxResourceParseData(_arg0,_arg1); |
06c0fba4 | 1655 | |
4268f798 RD |
1656 | wxPyEndAllowThreads(__tstate); |
1657 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1658 | } _resultobj = Py_BuildValue("i",_result); |
1659 | return _resultobj; | |
1660 | } | |
1661 | ||
1662 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1663 | PyObject * _resultobj; | |
1664 | bool _result; | |
1665 | char * _arg0; | |
1666 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1667 | PyObject * _argo1 = 0; | |
1668 | char *_kwnames[] = { "filename","table", NULL }; | |
1669 | ||
1670 | self = self; | |
1671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
1672 | return NULL; | |
1673 | if (_argo1) { | |
1674 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1675 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
1677 | return NULL; | |
1678 | } | |
1679 | } | |
1680 | { | |
4268f798 | 1681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1682 | _result = (bool )wxResourceParseFile(_arg0,_arg1); |
06c0fba4 | 1683 | |
4268f798 RD |
1684 | wxPyEndAllowThreads(__tstate); |
1685 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1686 | } _resultobj = Py_BuildValue("i",_result); |
1687 | return _resultobj; | |
1688 | } | |
1689 | ||
1690 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1691 | PyObject * _resultobj; | |
1692 | bool _result; | |
1693 | char * _arg0; | |
1694 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1695 | PyObject * _argo1 = 0; | |
1696 | char *_kwnames[] = { "resource","table", NULL }; | |
1697 | ||
1698 | self = self; | |
1699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
1700 | return NULL; | |
1701 | if (_argo1) { | |
1702 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1703 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
1705 | return NULL; | |
1706 | } | |
1707 | } | |
1708 | { | |
4268f798 | 1709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1710 | _result = (bool )wxResourceParseString(_arg0,_arg1); |
06c0fba4 | 1711 | |
4268f798 RD |
1712 | wxPyEndAllowThreads(__tstate); |
1713 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1714 | } _resultobj = Py_BuildValue("i",_result); |
1715 | return _resultobj; | |
1716 | } | |
1717 | ||
f0261a72 RD |
1718 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { |
1719 | PyObject * _resultobj; | |
1720 | int _result; | |
1721 | char *_kwnames[] = { NULL }; | |
1722 | ||
1723 | self = self; | |
1724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1725 | return NULL; | |
1726 | { | |
4268f798 | 1727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1728 | _result = (int )wxCaret_GetBlinkTime(); |
f0261a72 | 1729 | |
4268f798 RD |
1730 | wxPyEndAllowThreads(__tstate); |
1731 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1732 | } _resultobj = Py_BuildValue("i",_result); |
1733 | return _resultobj; | |
1734 | } | |
1735 | ||
1736 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1737 | PyObject * _resultobj; | |
1738 | int _arg0; | |
1739 | char *_kwnames[] = { "milliseconds", NULL }; | |
1740 | ||
1741 | self = self; | |
1742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1743 | return NULL; | |
1744 | { | |
4268f798 | 1745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1746 | wxCaret_SetBlinkTime(_arg0); |
f0261a72 | 1747 | |
4268f798 RD |
1748 | wxPyEndAllowThreads(__tstate); |
1749 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1750 | } Py_INCREF(Py_None); |
1751 | _resultobj = Py_None; | |
1752 | return _resultobj; | |
1753 | } | |
1754 | ||
6e18ca6c RD |
1755 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { |
1756 | PyObject * _resultobj; | |
1757 | bool _result; | |
1758 | wxWindow * _arg0 = (wxWindow *) NULL; | |
1759 | PyObject * _argo0 = 0; | |
1760 | char *_kwnames[] = { "win", NULL }; | |
1761 | ||
1762 | self = self; | |
1763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0)) | |
1764 | return NULL; | |
1765 | if (_argo0) { | |
1766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1769 | return NULL; | |
1770 | } | |
1771 | } | |
1772 | { | |
4268f798 | 1773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1774 | _result = (bool )wxSafeYield(_arg0); |
6e18ca6c | 1775 | |
4268f798 RD |
1776 | wxPyEndAllowThreads(__tstate); |
1777 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1778 | } _resultobj = Py_BuildValue("i",_result); |
1779 | return _resultobj; | |
1780 | } | |
1781 | ||
b1462dfa RD |
1782 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1783 | PyObject * _resultobj; | |
1784 | wxEvtHandler * _arg0; | |
1785 | wxEvent * _arg1; | |
1786 | PyObject * _argo0 = 0; | |
1787 | PyObject * _argo1 = 0; | |
1788 | char *_kwnames[] = { "dest","event", NULL }; | |
1789 | ||
1790 | self = self; | |
1791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1792 | return NULL; | |
1793 | if (_argo0) { | |
1794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1797 | return NULL; | |
1798 | } | |
1799 | } | |
1800 | if (_argo1) { | |
1801 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1802 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1804 | return NULL; | |
1805 | } | |
1806 | } | |
1807 | { | |
4268f798 | 1808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1809 | wxPostEvent(_arg0,*_arg1); |
b1462dfa | 1810 | |
4268f798 RD |
1811 | wxPyEndAllowThreads(__tstate); |
1812 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
1813 | } Py_INCREF(Py_None); |
1814 | _resultobj = Py_None; | |
1815 | return _resultobj; | |
1816 | } | |
1817 | ||
694759cf RD |
1818 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { |
1819 | PyObject * _resultobj; | |
1820 | char *_kwnames[] = { NULL }; | |
1821 | ||
1822 | self = self; | |
1823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1824 | return NULL; | |
1825 | { | |
4268f798 | 1826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1827 | wxWakeUpIdle(); |
694759cf | 1828 | |
4268f798 RD |
1829 | wxPyEndAllowThreads(__tstate); |
1830 | if (PyErr_Occurred()) return NULL; | |
694759cf RD |
1831 | } Py_INCREF(Py_None); |
1832 | _resultobj = Py_None; | |
1833 | return _resultobj; | |
1834 | } | |
1835 | ||
6e18ca6c | 1836 | static PyObject *_wrap_wxWakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
c368d904 | 1837 | PyObject * _resultobj; |
6e18ca6c | 1838 | char *_kwnames[] = { NULL }; |
c368d904 RD |
1839 | |
1840 | self = self; | |
6e18ca6c | 1841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpMainThread",_kwnames)) |
c368d904 | 1842 | return NULL; |
6e18ca6c | 1843 | { |
4268f798 | 1844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1845 | wxWakeUpMainThread(); |
6e18ca6c | 1846 | |
4268f798 RD |
1847 | wxPyEndAllowThreads(__tstate); |
1848 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1849 | } Py_INCREF(Py_None); |
1850 | _resultobj = Py_None; | |
1851 | return _resultobj; | |
1852 | } | |
1853 | ||
1854 | static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1855 | PyObject * _resultobj; | |
1856 | char *_kwnames[] = { NULL }; | |
1857 | ||
1858 | self = self; | |
1859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames)) | |
c368d904 | 1860 | return NULL; |
c368d904 | 1861 | { |
4268f798 | 1862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1863 | wxMutexGuiEnter(); |
6e18ca6c | 1864 | |
4268f798 RD |
1865 | wxPyEndAllowThreads(__tstate); |
1866 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1867 | } Py_INCREF(Py_None); |
1868 | _resultobj = Py_None; | |
1869 | return _resultobj; | |
1870 | } | |
1871 | ||
1872 | static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1873 | PyObject * _resultobj; | |
1874 | char *_kwnames[] = { NULL }; | |
1875 | ||
1876 | self = self; | |
1877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames)) | |
1878 | return NULL; | |
1879 | { | |
4268f798 | 1880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1881 | wxMutexGuiLeave(); |
6e18ca6c | 1882 | |
4268f798 RD |
1883 | wxPyEndAllowThreads(__tstate); |
1884 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1885 | } Py_INCREF(Py_None); |
1886 | _resultobj = Py_None; | |
1887 | return _resultobj; | |
1888 | } | |
1889 | ||
1890 | static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1891 | PyObject * _resultobj; | |
1892 | bool _result; | |
1893 | char *_kwnames[] = { NULL }; | |
1894 | ||
1895 | self = self; | |
1896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames)) | |
1897 | return NULL; | |
1898 | { | |
4268f798 | 1899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1900 | _result = (bool )wxThread_IsMain(); |
c368d904 | 1901 | |
4268f798 RD |
1902 | wxPyEndAllowThreads(__tstate); |
1903 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
1904 | } _resultobj = Py_BuildValue("i",_result); |
1905 | return _resultobj; | |
1906 | } | |
1907 | ||
f6bcfd97 | 1908 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd | 1909 | PyObject * _resultobj; |
f6bcfd97 BP |
1910 | bool _result; |
1911 | wxWindow * _arg0; | |
1912 | wxTipProvider * _arg1; | |
1913 | bool _arg2 = (bool ) TRUE; | |
1914 | PyObject * _argo0 = 0; | |
1915 | PyObject * _argo1 = 0; | |
1916 | int tempbool2 = (int) TRUE; | |
1917 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1918 | ||
1919 | self = self; | |
1920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1921 | return NULL; | |
1922 | if (_argo0) { | |
1923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1926 | return NULL; | |
1927 | } | |
1928 | } | |
1929 | if (_argo1) { | |
1930 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1931 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1933 | return NULL; | |
1934 | } | |
1935 | } | |
1936 | _arg2 = (bool ) tempbool2; | |
1937 | { | |
4268f798 | 1938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1939 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); |
f6bcfd97 | 1940 | |
4268f798 RD |
1941 | wxPyEndAllowThreads(__tstate); |
1942 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1943 | } _resultobj = Py_BuildValue("i",_result); |
1944 | return _resultobj; | |
1945 | } | |
1946 | ||
1947 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1948 | PyObject * _resultobj; | |
1949 | wxTipProvider * _result; | |
bb0054cd | 1950 | wxString * _arg0; |
f6bcfd97 | 1951 | size_t _arg1; |
bb0054cd | 1952 | PyObject * _obj0 = 0; |
f6bcfd97 | 1953 | char *_kwnames[] = { "filename","currentTip", NULL }; |
bb0054cd RD |
1954 | char _ptemp[128]; |
1955 | ||
1956 | self = self; | |
f6bcfd97 | 1957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) |
bb0054cd RD |
1958 | return NULL; |
1959 | { | |
c8bc7bb8 RD |
1960 | _arg0 = wxString_in_helper(_obj0); |
1961 | if (_arg0 == NULL) | |
185d7c3e | 1962 | return NULL; |
bb0054cd RD |
1963 | } |
1964 | { | |
4268f798 | 1965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1966 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); |
bb0054cd | 1967 | |
4268f798 RD |
1968 | wxPyEndAllowThreads(__tstate); |
1969 | if (PyErr_Occurred()) return NULL; | |
1d99702e | 1970 | } if (_result) { |
f6bcfd97 | 1971 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); |
1d99702e RD |
1972 | _resultobj = Py_BuildValue("s",_ptemp); |
1973 | } else { | |
1974 | Py_INCREF(Py_None); | |
1975 | _resultobj = Py_None; | |
1976 | } | |
bb0054cd RD |
1977 | { |
1978 | if (_obj0) | |
1979 | delete _arg0; | |
1980 | } | |
1981 | return _resultobj; | |
1982 | } | |
1983 | ||
f6bcfd97 | 1984 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1985 | PyObject * _resultobj; |
f6bcfd97 BP |
1986 | unsigned long _result; |
1987 | char *_kwnames[] = { NULL }; | |
f0261a72 RD |
1988 | |
1989 | self = self; | |
f6bcfd97 | 1990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) |
f0261a72 | 1991 | return NULL; |
f0261a72 | 1992 | { |
4268f798 | 1993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1994 | _result = (unsigned long )wxSysErrorCode(); |
f0261a72 | 1995 | |
4268f798 RD |
1996 | wxPyEndAllowThreads(__tstate); |
1997 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 1998 | } _resultobj = Py_BuildValue("l",_result); |
f0261a72 RD |
1999 | return _resultobj; |
2000 | } | |
2001 | ||
f6bcfd97 | 2002 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 2003 | PyObject * _resultobj; |
c8bc7bb8 | 2004 | wxString * _result; |
f6bcfd97 BP |
2005 | unsigned long _arg0 = (unsigned long ) 0; |
2006 | char *_kwnames[] = { "nErrCode", NULL }; | |
f0261a72 RD |
2007 | |
2008 | self = self; | |
f6bcfd97 | 2009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) |
f0261a72 | 2010 | return NULL; |
f0261a72 | 2011 | { |
4268f798 | 2012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2013 | _result = new wxString (wxSysErrorMsg(_arg0)); |
f0261a72 | 2014 | |
4268f798 RD |
2015 | wxPyEndAllowThreads(__tstate); |
2016 | if (PyErr_Occurred()) return NULL; | |
c8bc7bb8 RD |
2017 | }{ |
2018 | #if wxUSE_UNICODE | |
2019 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2020 | #else | |
2021 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2022 | #endif | |
2023 | } | |
2024 | { | |
2025 | delete _result; | |
2026 | } | |
f0261a72 RD |
2027 | return _resultobj; |
2028 | } | |
2029 | ||
f6bcfd97 | 2030 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 2031 | PyObject * _resultobj; |
c8bc7bb8 RD |
2032 | wxString * _arg0; |
2033 | PyObject * _obj0 = 0; | |
f6bcfd97 | 2034 | char *_kwnames[] = { "szFormat", NULL }; |
f0261a72 RD |
2035 | |
2036 | self = self; | |
c8bc7bb8 | 2037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogFatalError",_kwnames,&_obj0)) |
f0261a72 | 2038 | return NULL; |
c8bc7bb8 RD |
2039 | { |
2040 | _arg0 = wxString_in_helper(_obj0); | |
2041 | if (_arg0 == NULL) | |
2042 | return NULL; | |
2043 | } | |
f0261a72 | 2044 | { |
4268f798 | 2045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2046 | wxLogFatalError(*_arg0); |
f0261a72 | 2047 | |
4268f798 RD |
2048 | wxPyEndAllowThreads(__tstate); |
2049 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2050 | } Py_INCREF(Py_None); |
2051 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2052 | { |
2053 | if (_obj0) | |
2054 | delete _arg0; | |
2055 | } | |
f0261a72 RD |
2056 | return _resultobj; |
2057 | } | |
2058 | ||
f6bcfd97 | 2059 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 2060 | PyObject * _resultobj; |
c8bc7bb8 RD |
2061 | wxString * _arg0; |
2062 | PyObject * _obj0 = 0; | |
f6bcfd97 | 2063 | char *_kwnames[] = { "szFormat", NULL }; |
f0261a72 RD |
2064 | |
2065 | self = self; | |
c8bc7bb8 | 2066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogError",_kwnames,&_obj0)) |
f0261a72 | 2067 | return NULL; |
c8bc7bb8 RD |
2068 | { |
2069 | _arg0 = wxString_in_helper(_obj0); | |
2070 | if (_arg0 == NULL) | |
2071 | return NULL; | |
2072 | } | |
f0261a72 | 2073 | { |
4268f798 | 2074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2075 | wxLogError(*_arg0); |
f0261a72 | 2076 | |
4268f798 RD |
2077 | wxPyEndAllowThreads(__tstate); |
2078 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
2079 | } Py_INCREF(Py_None); |
2080 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2081 | { |
2082 | if (_obj0) | |
2083 | delete _arg0; | |
2084 | } | |
f0261a72 RD |
2085 | return _resultobj; |
2086 | } | |
2087 | ||
f6bcfd97 BP |
2088 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { |
2089 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2090 | wxString * _arg0; |
2091 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2092 | char *_kwnames[] = { "szFormat", NULL }; |
2093 | ||
2094 | self = self; | |
c8bc7bb8 | 2095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWarning",_kwnames,&_obj0)) |
f6bcfd97 | 2096 | return NULL; |
c8bc7bb8 RD |
2097 | { |
2098 | _arg0 = wxString_in_helper(_obj0); | |
2099 | if (_arg0 == NULL) | |
2100 | return NULL; | |
2101 | } | |
f6bcfd97 | 2102 | { |
4268f798 | 2103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2104 | wxLogWarning(*_arg0); |
f6bcfd97 | 2105 | |
4268f798 RD |
2106 | wxPyEndAllowThreads(__tstate); |
2107 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2108 | } Py_INCREF(Py_None); |
2109 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2110 | { |
2111 | if (_obj0) | |
2112 | delete _arg0; | |
2113 | } | |
f6bcfd97 BP |
2114 | return _resultobj; |
2115 | } | |
2116 | ||
2117 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2118 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2119 | wxString * _arg0; |
2120 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2121 | char *_kwnames[] = { "szFormat", NULL }; |
2122 | ||
2123 | self = self; | |
c8bc7bb8 RD |
2124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogMessage",_kwnames,&_obj0)) |
2125 | return NULL; | |
2126 | { | |
2127 | _arg0 = wxString_in_helper(_obj0); | |
2128 | if (_arg0 == NULL) | |
f6bcfd97 | 2129 | return NULL; |
c8bc7bb8 | 2130 | } |
f6bcfd97 | 2131 | { |
4268f798 | 2132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2133 | wxLogMessage(*_arg0); |
f6bcfd97 | 2134 | |
4268f798 RD |
2135 | wxPyEndAllowThreads(__tstate); |
2136 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2137 | } Py_INCREF(Py_None); |
2138 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2139 | { |
2140 | if (_obj0) | |
2141 | delete _arg0; | |
2142 | } | |
f6bcfd97 BP |
2143 | return _resultobj; |
2144 | } | |
2145 | ||
2146 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2147 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2148 | wxString * _arg0; |
2149 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2150 | char *_kwnames[] = { "szFormat", NULL }; |
2151 | ||
2152 | self = self; | |
c8bc7bb8 RD |
2153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogInfo",_kwnames,&_obj0)) |
2154 | return NULL; | |
2155 | { | |
2156 | _arg0 = wxString_in_helper(_obj0); | |
2157 | if (_arg0 == NULL) | |
f6bcfd97 | 2158 | return NULL; |
c8bc7bb8 | 2159 | } |
f6bcfd97 | 2160 | { |
4268f798 | 2161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2162 | wxLogInfo(*_arg0); |
f6bcfd97 | 2163 | |
4268f798 RD |
2164 | wxPyEndAllowThreads(__tstate); |
2165 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2166 | } Py_INCREF(Py_None); |
2167 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2168 | { |
2169 | if (_obj0) | |
2170 | delete _arg0; | |
2171 | } | |
f6bcfd97 BP |
2172 | return _resultobj; |
2173 | } | |
2174 | ||
2175 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2176 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2177 | wxString * _arg0; |
2178 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2179 | char *_kwnames[] = { "szFormat", NULL }; |
2180 | ||
2181 | self = self; | |
c8bc7bb8 | 2182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogVerbose",_kwnames,&_obj0)) |
f6bcfd97 | 2183 | return NULL; |
c8bc7bb8 RD |
2184 | { |
2185 | _arg0 = wxString_in_helper(_obj0); | |
2186 | if (_arg0 == NULL) | |
2187 | return NULL; | |
2188 | } | |
f6bcfd97 | 2189 | { |
4268f798 | 2190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2191 | wxLogVerbose(*_arg0); |
f6bcfd97 | 2192 | |
4268f798 RD |
2193 | wxPyEndAllowThreads(__tstate); |
2194 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2195 | } Py_INCREF(Py_None); |
2196 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2197 | { |
2198 | if (_obj0) | |
2199 | delete _arg0; | |
2200 | } | |
f6bcfd97 BP |
2201 | return _resultobj; |
2202 | } | |
2203 | ||
2204 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2205 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2206 | wxString * _arg0; |
2207 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2208 | char *_kwnames[] = { "szFormat", NULL }; |
2209 | ||
2210 | self = self; | |
c8bc7bb8 RD |
2211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogStatus",_kwnames,&_obj0)) |
2212 | return NULL; | |
2213 | { | |
2214 | _arg0 = wxString_in_helper(_obj0); | |
2215 | if (_arg0 == NULL) | |
f6bcfd97 | 2216 | return NULL; |
c8bc7bb8 | 2217 | } |
f6bcfd97 | 2218 | { |
4268f798 | 2219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2220 | wxLogStatus(*_arg0); |
f6bcfd97 | 2221 | |
4268f798 RD |
2222 | wxPyEndAllowThreads(__tstate); |
2223 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2224 | } Py_INCREF(Py_None); |
2225 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2226 | { |
2227 | if (_obj0) | |
2228 | delete _arg0; | |
2229 | } | |
f6bcfd97 BP |
2230 | return _resultobj; |
2231 | } | |
2232 | ||
2233 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2234 | PyObject * _resultobj; | |
2235 | wxFrame * _arg0; | |
c8bc7bb8 | 2236 | wxString * _arg1; |
f6bcfd97 | 2237 | PyObject * _argo0 = 0; |
c8bc7bb8 | 2238 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
2239 | char *_kwnames[] = { "pFrame","szFormat", NULL }; |
2240 | ||
2241 | self = self; | |
c8bc7bb8 | 2242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogStatusFrame",_kwnames,&_argo0,&_obj1)) |
f6bcfd97 BP |
2243 | return NULL; |
2244 | if (_argo0) { | |
2245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2248 | return NULL; | |
2249 | } | |
2250 | } | |
c8bc7bb8 RD |
2251 | { |
2252 | _arg1 = wxString_in_helper(_obj1); | |
2253 | if (_arg1 == NULL) | |
2254 | return NULL; | |
2255 | } | |
f6bcfd97 | 2256 | { |
4268f798 | 2257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2258 | wxLogStatus(_arg0,*_arg1); |
f6bcfd97 | 2259 | |
4268f798 RD |
2260 | wxPyEndAllowThreads(__tstate); |
2261 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2262 | } Py_INCREF(Py_None); |
2263 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2264 | { |
2265 | if (_obj1) | |
2266 | delete _arg1; | |
2267 | } | |
f6bcfd97 BP |
2268 | return _resultobj; |
2269 | } | |
2270 | ||
2271 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2272 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2273 | wxString * _arg0; |
2274 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2275 | char *_kwnames[] = { "szFormat", NULL }; |
2276 | ||
2277 | self = self; | |
c8bc7bb8 RD |
2278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogSysError",_kwnames,&_obj0)) |
2279 | return NULL; | |
2280 | { | |
2281 | _arg0 = wxString_in_helper(_obj0); | |
2282 | if (_arg0 == NULL) | |
f6bcfd97 | 2283 | return NULL; |
c8bc7bb8 | 2284 | } |
f6bcfd97 | 2285 | { |
4268f798 | 2286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2287 | wxLogSysError(*_arg0); |
f6bcfd97 | 2288 | |
4268f798 RD |
2289 | wxPyEndAllowThreads(__tstate); |
2290 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2291 | } Py_INCREF(Py_None); |
2292 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2293 | { |
2294 | if (_obj0) | |
2295 | delete _arg0; | |
2296 | } | |
f6bcfd97 BP |
2297 | return _resultobj; |
2298 | } | |
2299 | ||
c368d904 RD |
2300 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { |
2301 | PyObject * _resultobj; | |
2302 | long _result; | |
2303 | wxString * _arg0; | |
b96c7a38 | 2304 | int _arg1 = (int ) (wxEXEC_ASYNC); |
c368d904 RD |
2305 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; |
2306 | PyObject * _obj0 = 0; | |
2307 | PyObject * _argo2 = 0; | |
b96c7a38 | 2308 | char *_kwnames[] = { "command","flags","process", NULL }; |
c368d904 RD |
2309 | |
2310 | self = self; | |
2311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2312 | return NULL; | |
2313 | { | |
c8bc7bb8 RD |
2314 | _arg0 = wxString_in_helper(_obj0); |
2315 | if (_arg0 == NULL) | |
185d7c3e | 2316 | return NULL; |
c368d904 RD |
2317 | } |
2318 | if (_argo2) { | |
2319 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2320 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2322 | return NULL; | |
2323 | } | |
2324 | } | |
2325 | { | |
4268f798 | 2326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2327 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); |
c368d904 | 2328 | |
4268f798 RD |
2329 | wxPyEndAllowThreads(__tstate); |
2330 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
2331 | } _resultobj = Py_BuildValue("l",_result); |
2332 | { | |
2333 | if (_obj0) | |
2334 | delete _arg0; | |
2335 | } | |
2336 | return _resultobj; | |
2337 | } | |
2338 | ||
493f1553 RD |
2339 | static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) { |
2340 | PyObject * _resultobj; | |
2341 | wxWave * _result; | |
2342 | wxString * _arg0; | |
2343 | PyObject * _obj0 = 0; | |
2344 | char *_kwnames[] = { "data", NULL }; | |
2345 | char _ptemp[128]; | |
2346 | ||
2347 | self = self; | |
2348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0)) | |
2349 | return NULL; | |
2350 | { | |
c8bc7bb8 RD |
2351 | _arg0 = wxString_in_helper(_obj0); |
2352 | if (_arg0 == NULL) | |
493f1553 | 2353 | return NULL; |
493f1553 RD |
2354 | } |
2355 | { | |
4268f798 | 2356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2357 | _result = (wxWave *)wxWaveData(*_arg0); |
493f1553 | 2358 | |
4268f798 RD |
2359 | wxPyEndAllowThreads(__tstate); |
2360 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
2361 | } if (_result) { |
2362 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
2363 | _resultobj = Py_BuildValue("s",_ptemp); | |
2364 | } else { | |
2365 | Py_INCREF(Py_None); | |
2366 | _resultobj = Py_None; | |
2367 | } | |
2368 | { | |
2369 | if (_obj0) | |
2370 | delete _arg0; | |
2371 | } | |
2372 | return _resultobj; | |
2373 | } | |
2374 | ||
b37c7e1d RD |
2375 | static int _wrap_wxTheMimeTypesManager_set(PyObject *val) { |
2376 | ||
2377 | PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only."); | |
2378 | return 1; | |
2379 | } | |
2380 | ||
2381 | static PyObject *_wrap_wxTheMimeTypesManager_get() { | |
2382 | PyObject * pyobj; | |
2383 | char ptemp[128]; | |
2384 | ||
2385 | SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p"); | |
2386 | pyobj = PyString_FromString(ptemp); | |
2387 | return pyobj; | |
2388 | } | |
2389 | ||
b5a5d647 RD |
2390 | static PyObject *_wrap_wxSystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
2391 | PyObject * _resultobj; | |
2392 | wxColour * _result; | |
2393 | wxSystemColour _arg0; | |
2394 | char *_kwnames[] = { "index", NULL }; | |
2395 | char _ptemp[128]; | |
2396 | ||
2397 | self = self; | |
2398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetColour",_kwnames,&_arg0)) | |
2399 | return NULL; | |
2400 | { | |
2401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2402 | _result = new wxColour (wxSystemSettings::GetColour(_arg0)); |
b5a5d647 RD |
2403 | |
2404 | wxPyEndAllowThreads(__tstate); | |
2405 | if (PyErr_Occurred()) return NULL; | |
2406 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
2407 | _resultobj = Py_BuildValue("s",_ptemp); | |
2408 | return _resultobj; | |
2409 | } | |
2410 | ||
2411 | static PyObject *_wrap_wxSystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2412 | PyObject * _resultobj; | |
2413 | wxFont * _result; | |
2414 | wxSystemFont _arg0; | |
2415 | char *_kwnames[] = { "index", NULL }; | |
2416 | char _ptemp[128]; | |
2417 | ||
2418 | self = self; | |
2419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetFont",_kwnames,&_arg0)) | |
2420 | return NULL; | |
2421 | { | |
2422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2423 | _result = new wxFont (wxSystemSettings::GetFont(_arg0)); |
b5a5d647 RD |
2424 | |
2425 | wxPyEndAllowThreads(__tstate); | |
2426 | if (PyErr_Occurred()) return NULL; | |
2427 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
2428 | _resultobj = Py_BuildValue("s",_ptemp); | |
2429 | return _resultobj; | |
2430 | } | |
2431 | ||
2432 | static PyObject *_wrap_wxSystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2433 | PyObject * _resultobj; | |
2434 | int _result; | |
2435 | wxSystemMetric _arg0; | |
2436 | char *_kwnames[] = { "index", NULL }; | |
2437 | ||
2438 | self = self; | |
2439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetMetric",_kwnames,&_arg0)) | |
2440 | return NULL; | |
2441 | { | |
2442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2443 | _result = (int )wxSystemSettings::GetMetric(_arg0); |
b5a5d647 RD |
2444 | |
2445 | wxPyEndAllowThreads(__tstate); | |
2446 | if (PyErr_Occurred()) return NULL; | |
2447 | } _resultobj = Py_BuildValue("i",_result); | |
2448 | return _resultobj; | |
2449 | } | |
2450 | ||
2451 | static PyObject *_wrap_wxSystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2452 | PyObject * _resultobj; | |
2453 | bool _result; | |
2454 | wxSystemFeature _arg0; | |
2455 | char *_kwnames[] = { "index", NULL }; | |
2456 | ||
2457 | self = self; | |
2458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_HasFeature",_kwnames,&_arg0)) | |
2459 | return NULL; | |
2460 | { | |
2461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2462 | _result = (bool )wxSystemSettings::HasFeature(_arg0); |
b5a5d647 RD |
2463 | |
2464 | wxPyEndAllowThreads(__tstate); | |
2465 | if (PyErr_Occurred()) return NULL; | |
2466 | } _resultobj = Py_BuildValue("i",_result); | |
2467 | return _resultobj; | |
2468 | } | |
2469 | ||
9416aa89 RD |
2470 | static void *SwigwxToolTipTowxObject(void *ptr) { |
2471 | wxToolTip *src; | |
2472 | wxObject *dest; | |
2473 | src = (wxToolTip *) ptr; | |
2474 | dest = (wxObject *) src; | |
2475 | return (void *) dest; | |
2476 | } | |
2477 | ||
f6bcfd97 BP |
2478 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) |
2479 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2480 | PyObject * _resultobj; | |
2481 | wxToolTip * _result; | |
2482 | wxString * _arg0; | |
2483 | PyObject * _obj0 = 0; | |
2484 | char *_kwnames[] = { "tip", NULL }; | |
2485 | char _ptemp[128]; | |
2486 | ||
2487 | self = self; | |
2488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2489 | return NULL; | |
2490 | { | |
c8bc7bb8 RD |
2491 | _arg0 = wxString_in_helper(_obj0); |
2492 | if (_arg0 == NULL) | |
f6bcfd97 | 2493 | return NULL; |
f6bcfd97 BP |
2494 | } |
2495 | { | |
4268f798 | 2496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2497 | _result = (wxToolTip *)new_wxToolTip(*_arg0); |
f6bcfd97 | 2498 | |
4268f798 RD |
2499 | wxPyEndAllowThreads(__tstate); |
2500 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2501 | } if (_result) { |
2502 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2503 | _resultobj = Py_BuildValue("s",_ptemp); | |
2504 | } else { | |
2505 | Py_INCREF(Py_None); | |
2506 | _resultobj = Py_None; | |
2507 | } | |
2508 | { | |
2509 | if (_obj0) | |
2510 | delete _arg0; | |
2511 | } | |
2512 | return _resultobj; | |
2513 | } | |
2514 | ||
2515 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2516 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2517 | PyObject * _resultobj; | |
2518 | wxToolTip * _arg0; | |
2519 | wxString * _arg1; | |
2520 | PyObject * _argo0 = 0; | |
2521 | PyObject * _obj1 = 0; | |
2522 | char *_kwnames[] = { "self","tip", NULL }; | |
2523 | ||
2524 | self = self; | |
2525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2526 | return NULL; | |
2527 | if (_argo0) { | |
2528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2531 | return NULL; | |
2532 | } | |
2533 | } | |
2534 | { | |
c8bc7bb8 RD |
2535 | _arg1 = wxString_in_helper(_obj1); |
2536 | if (_arg1 == NULL) | |
185d7c3e | 2537 | return NULL; |
f6bcfd97 BP |
2538 | } |
2539 | { | |
4268f798 | 2540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2541 | wxToolTip_SetTip(_arg0,*_arg1); |
f6bcfd97 | 2542 | |
4268f798 RD |
2543 | wxPyEndAllowThreads(__tstate); |
2544 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2545 | } Py_INCREF(Py_None); |
2546 | _resultobj = Py_None; | |
2547 | { | |
2548 | if (_obj1) | |
2549 | delete _arg1; | |
2550 | } | |
2551 | return _resultobj; | |
2552 | } | |
2553 | ||
2554 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2555 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2556 | PyObject * _resultobj; | |
2557 | wxString * _result; | |
2558 | wxToolTip * _arg0; | |
2559 | PyObject * _argo0 = 0; | |
2560 | char *_kwnames[] = { "self", NULL }; | |
2561 | ||
2562 | self = self; | |
2563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2564 | return NULL; | |
2565 | if (_argo0) { | |
2566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2569 | return NULL; | |
2570 | } | |
2571 | } | |
2572 | { | |
4268f798 | 2573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2574 | _result = new wxString (wxToolTip_GetTip(_arg0)); |
f6bcfd97 | 2575 | |
4268f798 RD |
2576 | wxPyEndAllowThreads(__tstate); |
2577 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 2578 | }{ |
c8bc7bb8 RD |
2579 | #if wxUSE_UNICODE |
2580 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2581 | #else | |
f6bcfd97 | 2582 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2583 | #endif |
f6bcfd97 BP |
2584 | } |
2585 | { | |
2586 | delete _result; | |
2587 | } | |
2588 | return _resultobj; | |
2589 | } | |
2590 | ||
2591 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2592 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2593 | PyObject * _resultobj; | |
2594 | wxWindow * _result; | |
2595 | wxToolTip * _arg0; | |
2596 | PyObject * _argo0 = 0; | |
2597 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2598 | |
2599 | self = self; | |
2600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2601 | return NULL; | |
2602 | if (_argo0) { | |
2603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2606 | return NULL; | |
2607 | } | |
2608 | } | |
2609 | { | |
4268f798 | 2610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2611 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); |
f6bcfd97 | 2612 | |
4268f798 RD |
2613 | wxPyEndAllowThreads(__tstate); |
2614 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 2615 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2616 | return _resultobj; |
2617 | } | |
2618 | ||
edf2f43e RD |
2619 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
2620 | PyObject * _resultobj; | |
2621 | bool _arg0; | |
2622 | int tempbool0; | |
2623 | char *_kwnames[] = { "flag", NULL }; | |
2624 | ||
2625 | self = self; | |
2626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) | |
2627 | return NULL; | |
2628 | _arg0 = (bool ) tempbool0; | |
2629 | { | |
4268f798 | 2630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2631 | wxToolTip::Enable(_arg0); |
edf2f43e | 2632 | |
4268f798 RD |
2633 | wxPyEndAllowThreads(__tstate); |
2634 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2635 | } Py_INCREF(Py_None); |
2636 | _resultobj = Py_None; | |
2637 | return _resultobj; | |
2638 | } | |
2639 | ||
2640 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2641 | PyObject * _resultobj; | |
2642 | long _arg0; | |
2643 | char *_kwnames[] = { "milliseconds", NULL }; | |
2644 | ||
2645 | self = self; | |
2646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) | |
2647 | return NULL; | |
2648 | { | |
4268f798 | 2649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2650 | wxToolTip::SetDelay(_arg0); |
edf2f43e | 2651 | |
4268f798 RD |
2652 | wxPyEndAllowThreads(__tstate); |
2653 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2654 | } Py_INCREF(Py_None); |
2655 | _resultobj = Py_None; | |
2656 | return _resultobj; | |
2657 | } | |
2658 | ||
f6bcfd97 BP |
2659 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) |
2660 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2661 | PyObject * _resultobj; | |
2662 | wxCaret * _result; | |
2663 | wxWindow * _arg0; | |
2664 | wxSize * _arg1; | |
2665 | PyObject * _argo0 = 0; | |
2666 | wxSize temp; | |
2667 | PyObject * _obj1 = 0; | |
2668 | char *_kwnames[] = { "window","size", NULL }; | |
2669 | char _ptemp[128]; | |
2670 | ||
2671 | self = self; | |
2672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2673 | return NULL; | |
2674 | if (_argo0) { | |
2675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2678 | return NULL; | |
2679 | } | |
2680 | } | |
2681 | { | |
2682 | _arg1 = &temp; | |
2683 | if (! wxSize_helper(_obj1, &_arg1)) | |
2684 | return NULL; | |
2685 | } | |
2686 | { | |
4268f798 | 2687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2688 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); |
f6bcfd97 | 2689 | |
4268f798 RD |
2690 | wxPyEndAllowThreads(__tstate); |
2691 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2692 | } if (_result) { |
2693 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2694 | _resultobj = Py_BuildValue("s",_ptemp); | |
2695 | } else { | |
2696 | Py_INCREF(Py_None); | |
2697 | _resultobj = Py_None; | |
2698 | } | |
2699 | return _resultobj; | |
2700 | } | |
2701 | ||
2702 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2703 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2704 | PyObject * _resultobj; | |
2705 | wxCaret * _arg0; | |
2706 | PyObject * _argo0 = 0; | |
2707 | char *_kwnames[] = { "self", NULL }; | |
2708 | ||
2709 | self = self; | |
2710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
2711 | return NULL; | |
2712 | if (_argo0) { | |
2713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
2716 | return NULL; | |
2717 | } | |
2718 | } | |
2719 | { | |
4268f798 | 2720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2721 | delete_wxCaret(_arg0); |
f6bcfd97 | 2722 | |
4268f798 RD |
2723 | wxPyEndAllowThreads(__tstate); |
2724 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2725 | } Py_INCREF(Py_None); |
2726 | _resultobj = Py_None; | |
2727 | return _resultobj; | |
2728 | } | |
2729 | ||
2730 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
2731 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2732 | PyObject * _resultobj; | |
2733 | bool _result; | |
2734 | wxCaret * _arg0; | |
2735 | PyObject * _argo0 = 0; | |
2736 | char *_kwnames[] = { "self", NULL }; | |
2737 | ||
2738 | self = self; | |
2739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
2740 | return NULL; | |
2741 | if (_argo0) { | |
2742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
2745 | return NULL; | |
2746 | } | |
2747 | } | |
2748 | { | |
4268f798 | 2749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2750 | _result = (bool )wxCaret_IsOk(_arg0); |
f6bcfd97 | 2751 | |
4268f798 RD |
2752 | wxPyEndAllowThreads(__tstate); |
2753 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2754 | } _resultobj = Py_BuildValue("i",_result); |
2755 | return _resultobj; | |
2756 | } | |
2757 | ||
2758 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
2759 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2760 | PyObject * _resultobj; | |
2761 | bool _result; | |
2762 | wxCaret * _arg0; | |
2763 | PyObject * _argo0 = 0; | |
2764 | char *_kwnames[] = { "self", NULL }; | |
2765 | ||
2766 | self = self; | |
2767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
2768 | return NULL; | |
2769 | if (_argo0) { | |
2770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
2773 | return NULL; | |
2774 | } | |
2775 | } | |
2776 | { | |
4268f798 | 2777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2778 | _result = (bool )wxCaret_IsVisible(_arg0); |
f6bcfd97 | 2779 | |
4268f798 RD |
2780 | wxPyEndAllowThreads(__tstate); |
2781 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2782 | } _resultobj = Py_BuildValue("i",_result); |
2783 | return _resultobj; | |
2784 | } | |
2785 | ||
2786 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2787 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2788 | PyObject * _resultobj; | |
2789 | wxCaret * _arg0; | |
2790 | int * _arg1; | |
2791 | int temp; | |
2792 | int * _arg2; | |
2793 | int temp0; | |
2794 | PyObject * _argo0 = 0; | |
2795 | char *_kwnames[] = { "self", NULL }; | |
2796 | ||
2797 | self = self; | |
2798 | { | |
2799 | _arg1 = &temp; | |
2800 | } | |
2801 | { | |
2802 | _arg2 = &temp0; | |
2803 | } | |
2804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
2805 | return NULL; | |
2806 | if (_argo0) { | |
2807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
2810 | return NULL; | |
2811 | } | |
2812 | } | |
2813 | { | |
4268f798 | 2814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2815 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 2816 | |
4268f798 RD |
2817 | wxPyEndAllowThreads(__tstate); |
2818 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2819 | } Py_INCREF(Py_None); |
2820 | _resultobj = Py_None; | |
2821 | { | |
2822 | PyObject *o; | |
2823 | o = PyInt_FromLong((long) (*_arg1)); | |
2824 | _resultobj = t_output_helper(_resultobj, o); | |
2825 | } | |
2826 | { | |
2827 | PyObject *o; | |
2828 | o = PyInt_FromLong((long) (*_arg2)); | |
2829 | _resultobj = t_output_helper(_resultobj, o); | |
2830 | } | |
2831 | return _resultobj; | |
2832 | } | |
2833 | ||
2834 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
f0261a72 RD |
2835 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
2836 | PyObject * _resultobj; | |
f6bcfd97 BP |
2837 | wxPoint * _result; |
2838 | wxCaret * _arg0; | |
2839 | PyObject * _argo0 = 0; | |
2840 | char *_kwnames[] = { "self", NULL }; | |
2841 | char _ptemp[128]; | |
2842 | ||
2843 | self = self; | |
2844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
2845 | return NULL; | |
2846 | if (_argo0) { | |
2847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
2850 | return NULL; | |
2851 | } | |
2852 | } | |
2853 | { | |
4268f798 | 2854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2855 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); |
f6bcfd97 | 2856 | |
4268f798 RD |
2857 | wxPyEndAllowThreads(__tstate); |
2858 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2859 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2860 | _resultobj = Py_BuildValue("s",_ptemp); | |
2861 | return _resultobj; | |
2862 | } | |
2863 | ||
2864 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2865 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2866 | PyObject * _resultobj; | |
2867 | wxCaret * _arg0; | |
2868 | int * _arg1; | |
2869 | int temp; | |
2870 | int * _arg2; | |
2871 | int temp0; | |
2872 | PyObject * _argo0 = 0; | |
2873 | char *_kwnames[] = { "self", NULL }; | |
2874 | ||
2875 | self = self; | |
2876 | { | |
2877 | _arg1 = &temp; | |
2878 | } | |
2879 | { | |
2880 | _arg2 = &temp0; | |
2881 | } | |
2882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
2883 | return NULL; | |
2884 | if (_argo0) { | |
2885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
2888 | return NULL; | |
2889 | } | |
2890 | } | |
2891 | { | |
4268f798 | 2892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2893 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 2894 | |
4268f798 RD |
2895 | wxPyEndAllowThreads(__tstate); |
2896 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2897 | } Py_INCREF(Py_None); |
2898 | _resultobj = Py_None; | |
2899 | { | |
2900 | PyObject *o; | |
2901 | o = PyInt_FromLong((long) (*_arg1)); | |
2902 | _resultobj = t_output_helper(_resultobj, o); | |
2903 | } | |
2904 | { | |
2905 | PyObject *o; | |
2906 | o = PyInt_FromLong((long) (*_arg2)); | |
2907 | _resultobj = t_output_helper(_resultobj, o); | |
2908 | } | |
2909 | return _resultobj; | |
2910 | } | |
2911 | ||
2912 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
2913 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2914 | PyObject * _resultobj; | |
2915 | wxSize * _result; | |
2916 | wxCaret * _arg0; | |
2917 | PyObject * _argo0 = 0; | |
2918 | char *_kwnames[] = { "self", NULL }; | |
2919 | char _ptemp[128]; | |
2920 | ||
2921 | self = self; | |
2922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
2923 | return NULL; | |
2924 | if (_argo0) { | |
2925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
2928 | return NULL; | |
2929 | } | |
2930 | } | |
2931 | { | |
4268f798 | 2932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2933 | _result = new wxSize (wxCaret_GetSize(_arg0)); |
f6bcfd97 | 2934 | |
4268f798 RD |
2935 | wxPyEndAllowThreads(__tstate); |
2936 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2937 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
2938 | _resultobj = Py_BuildValue("s",_ptemp); | |
2939 | return _resultobj; | |
2940 | } | |
2941 | ||
2942 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2943 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2944 | PyObject * _resultobj; | |
2945 | wxWindow * _result; | |
2946 | wxCaret * _arg0; | |
2947 | PyObject * _argo0 = 0; | |
2948 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2949 | |
2950 | self = self; | |
2951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_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_GetWindow. Expected _wxCaret_p."); | |
2957 | return NULL; | |
2958 | } | |
2959 | } | |
2960 | { | |
4268f798 | 2961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2962 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); |
f6bcfd97 | 2963 | |
4268f798 RD |
2964 | wxPyEndAllowThreads(__tstate); |
2965 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 2966 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2967 | return _resultobj; |
2968 | } | |
2969 | ||
2970 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
2971 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2972 | PyObject * _resultobj; | |
2973 | wxCaret * _arg0; | |
2974 | int _arg1; | |
2975 | int _arg2; | |
2976 | PyObject * _argo0 = 0; | |
2977 | char *_kwnames[] = { "self","x","y", NULL }; | |
2978 | ||
2979 | self = self; | |
2980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2981 | return NULL; | |
2982 | if (_argo0) { | |
2983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
2986 | return NULL; | |
2987 | } | |
2988 | } | |
2989 | { | |
4268f798 | 2990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2991 | wxCaret_MoveXY(_arg0,_arg1,_arg2); |
f6bcfd97 | 2992 | |
4268f798 RD |
2993 | wxPyEndAllowThreads(__tstate); |
2994 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2995 | } Py_INCREF(Py_None); |
2996 | _resultobj = Py_None; | |
2997 | return _resultobj; | |
2998 | } | |
2999 | ||
3000 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3001 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3002 | PyObject * _resultobj; | |
3003 | wxCaret * _arg0; | |
3004 | wxPoint * _arg1; | |
3005 | PyObject * _argo0 = 0; | |
3006 | wxPoint temp; | |
3007 | PyObject * _obj1 = 0; | |
3008 | char *_kwnames[] = { "self","pt", NULL }; | |
3009 | ||
3010 | self = self; | |
3011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
3012 | return NULL; | |
3013 | if (_argo0) { | |
3014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
3017 | return NULL; | |
3018 | } | |
3019 | } | |
3020 | { | |
3021 | _arg1 = &temp; | |
3022 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3023 | return NULL; | |
3024 | } | |
3025 | { | |
4268f798 | 3026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3027 | wxCaret_Move(_arg0,*_arg1); |
f6bcfd97 | 3028 | |
4268f798 RD |
3029 | wxPyEndAllowThreads(__tstate); |
3030 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3031 | } Py_INCREF(Py_None); |
3032 | _resultobj = Py_None; | |
3033 | return _resultobj; | |
3034 | } | |
3035 | ||
3036 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
3037 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3038 | PyObject * _resultobj; | |
3039 | wxCaret * _arg0; | |
3040 | int _arg1; | |
3041 | int _arg2; | |
3042 | PyObject * _argo0 = 0; | |
3043 | char *_kwnames[] = { "self","width","height", NULL }; | |
3044 | ||
3045 | self = self; | |
3046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3047 | return NULL; | |
3048 | if (_argo0) { | |
3049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
3052 | return NULL; | |
3053 | } | |
3054 | } | |
3055 | { | |
4268f798 | 3056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3057 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); |
f6bcfd97 | 3058 | |
4268f798 RD |
3059 | wxPyEndAllowThreads(__tstate); |
3060 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3061 | } Py_INCREF(Py_None); |
3062 | _resultobj = Py_None; | |
3063 | return _resultobj; | |
3064 | } | |
3065 | ||
3066 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3067 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3068 | PyObject * _resultobj; | |
3069 | wxCaret * _arg0; | |
3070 | wxSize * _arg1; | |
3071 | PyObject * _argo0 = 0; | |
3072 | wxSize temp; | |
3073 | PyObject * _obj1 = 0; | |
3074 | char *_kwnames[] = { "self","size", NULL }; | |
3075 | ||
3076 | self = self; | |
3077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
3078 | return NULL; | |
3079 | if (_argo0) { | |
3080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
3083 | return NULL; | |
3084 | } | |
3085 | } | |
3086 | { | |
3087 | _arg1 = &temp; | |
3088 | if (! wxSize_helper(_obj1, &_arg1)) | |
3089 | return NULL; | |
3090 | } | |
3091 | { | |
4268f798 | 3092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3093 | wxCaret_SetSize(_arg0,*_arg1); |
f6bcfd97 | 3094 | |
4268f798 RD |
3095 | wxPyEndAllowThreads(__tstate); |
3096 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3097 | } Py_INCREF(Py_None); |
3098 | _resultobj = Py_None; | |
3099 | return _resultobj; | |
3100 | } | |
3101 | ||
3102 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
3103 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3104 | PyObject * _resultobj; | |
3105 | wxCaret * _arg0; | |
3106 | int _arg1 = (int ) TRUE; | |
3107 | PyObject * _argo0 = 0; | |
3108 | char *_kwnames[] = { "self","show", NULL }; | |
3109 | ||
3110 | self = self; | |
3111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
3112 | return NULL; | |
3113 | if (_argo0) { | |
3114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
3117 | return NULL; | |
3118 | } | |
3119 | } | |
3120 | { | |
4268f798 | 3121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3122 | wxCaret_Show(_arg0,_arg1); |
f6bcfd97 | 3123 | |
4268f798 RD |
3124 | wxPyEndAllowThreads(__tstate); |
3125 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3126 | } Py_INCREF(Py_None); |
3127 | _resultobj = Py_None; | |
3128 | return _resultobj; | |
3129 | } | |
3130 | ||
3131 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
3132 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3133 | PyObject * _resultobj; | |
3134 | wxCaret * _arg0; | |
3135 | PyObject * _argo0 = 0; | |
3136 | char *_kwnames[] = { "self", NULL }; | |
3137 | ||
3138 | self = self; | |
3139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
3140 | return NULL; | |
3141 | if (_argo0) { | |
3142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
3145 | return NULL; | |
3146 | } | |
3147 | } | |
3148 | { | |
4268f798 | 3149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3150 | wxCaret_Hide(_arg0); |
f6bcfd97 | 3151 | |
4268f798 RD |
3152 | wxPyEndAllowThreads(__tstate); |
3153 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3154 | } Py_INCREF(Py_None); |
3155 | _resultobj = Py_None; | |
3156 | return _resultobj; | |
3157 | } | |
3158 | ||
f6bcfd97 BP |
3159 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) |
3160 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3161 | PyObject * _resultobj; | |
3162 | wxBusyCursor * _result; | |
3163 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3164 | PyObject * _argo0 = 0; | |
3165 | char *_kwnames[] = { "cursor", NULL }; | |
3166 | char _ptemp[128]; | |
3167 | ||
3168 | self = self; | |
3169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3170 | return NULL; | |
3171 | if (_argo0) { | |
3172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3175 | return NULL; | |
3176 | } | |
3177 | } | |
3178 | { | |
4268f798 | 3179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3180 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); |
f6bcfd97 | 3181 | |
4268f798 RD |
3182 | wxPyEndAllowThreads(__tstate); |
3183 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3184 | } if (_result) { |
3185 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3186 | _resultobj = Py_BuildValue("s",_ptemp); | |
3187 | } else { | |
3188 | Py_INCREF(Py_None); | |
3189 | _resultobj = Py_None; | |
3190 | } | |
3191 | return _resultobj; | |
3192 | } | |
3193 | ||
3194 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3195 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3196 | PyObject * _resultobj; | |
3197 | wxBusyCursor * _arg0; | |
3198 | PyObject * _argo0 = 0; | |
3199 | char *_kwnames[] = { "self", NULL }; | |
3200 | ||
3201 | self = self; | |
3202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3203 | return NULL; | |
3204 | if (_argo0) { | |
3205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3208 | return NULL; | |
3209 | } | |
3210 | } | |
3211 | { | |
4268f798 | 3212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3213 | delete_wxBusyCursor(_arg0); |
f6bcfd97 | 3214 | |
4268f798 RD |
3215 | wxPyEndAllowThreads(__tstate); |
3216 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3217 | } Py_INCREF(Py_None); |
3218 | _resultobj = Py_None; | |
3219 | return _resultobj; | |
3220 | } | |
3221 | ||
c368d904 RD |
3222 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) |
3223 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3224 | PyObject * _resultobj; | |
3225 | wxWindowDisabler * _result; | |
3226 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3227 | PyObject * _argo0 = 0; | |
3228 | char *_kwnames[] = { "winToSkip", NULL }; | |
3229 | char _ptemp[128]; | |
3230 | ||
3231 | self = self; | |
3232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3233 | return NULL; | |
3234 | if (_argo0) { | |
3235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3238 | return NULL; | |
3239 | } | |
3240 | } | |
3241 | { | |
4268f798 | 3242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3243 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); |
c368d904 | 3244 | |
4268f798 RD |
3245 | wxPyEndAllowThreads(__tstate); |
3246 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3247 | } if (_result) { |
3248 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3249 | _resultobj = Py_BuildValue("s",_ptemp); | |
3250 | } else { | |
3251 | Py_INCREF(Py_None); | |
3252 | _resultobj = Py_None; | |
3253 | } | |
3254 | return _resultobj; | |
3255 | } | |
3256 | ||
3257 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3258 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3259 | PyObject * _resultobj; | |
3260 | wxWindowDisabler * _arg0; | |
3261 | PyObject * _argo0 = 0; | |
3262 | char *_kwnames[] = { "self", NULL }; | |
3263 | ||
3264 | self = self; | |
3265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3266 | return NULL; | |
3267 | if (_argo0) { | |
3268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3271 | return NULL; | |
3272 | } | |
3273 | } | |
3274 | { | |
4268f798 | 3275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3276 | delete_wxWindowDisabler(_arg0); |
c368d904 | 3277 | |
4268f798 RD |
3278 | wxPyEndAllowThreads(__tstate); |
3279 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3280 | } Py_INCREF(Py_None); |
3281 | _resultobj = Py_None; | |
3282 | return _resultobj; | |
3283 | } | |
3284 | ||
6e18ca6c RD |
3285 | #define new_wxMutexGuiLocker() (new wxMutexGuiLocker()) |
3286 | static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3287 | PyObject * _resultobj; | |
3288 | wxMutexGuiLocker * _result; | |
3289 | char *_kwnames[] = { NULL }; | |
3290 | char _ptemp[128]; | |
3291 | ||
3292 | self = self; | |
3293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames)) | |
3294 | return NULL; | |
3295 | { | |
4268f798 | 3296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3297 | _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker(); |
6e18ca6c | 3298 | |
4268f798 RD |
3299 | wxPyEndAllowThreads(__tstate); |
3300 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3301 | } if (_result) { |
3302 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p"); | |
3303 | _resultobj = Py_BuildValue("s",_ptemp); | |
3304 | } else { | |
3305 | Py_INCREF(Py_None); | |
3306 | _resultobj = Py_None; | |
3307 | } | |
3308 | return _resultobj; | |
3309 | } | |
3310 | ||
3311 | #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj) | |
3312 | static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3313 | PyObject * _resultobj; | |
3314 | wxMutexGuiLocker * _arg0; | |
3315 | PyObject * _argo0 = 0; | |
3316 | char *_kwnames[] = { "self", NULL }; | |
3317 | ||
3318 | self = self; | |
3319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0)) | |
3320 | return NULL; | |
3321 | if (_argo0) { | |
3322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) { | |
3324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p."); | |
3325 | return NULL; | |
3326 | } | |
3327 | } | |
3328 | { | |
4268f798 | 3329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3330 | delete_wxMutexGuiLocker(_arg0); |
6e18ca6c | 3331 | |
4268f798 RD |
3332 | wxPyEndAllowThreads(__tstate); |
3333 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3334 | } Py_INCREF(Py_None); |
3335 | _resultobj = Py_None; | |
3336 | return _resultobj; | |
3337 | } | |
3338 | ||
f6bcfd97 BP |
3339 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) |
3340 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3341 | PyObject * _resultobj; | |
3342 | wxTipProvider * _arg0; | |
3343 | PyObject * _argo0 = 0; | |
3344 | char *_kwnames[] = { "self", NULL }; | |
3345 | ||
3346 | self = self; | |
3347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3348 | return NULL; | |
3349 | if (_argo0) { | |
3350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3353 | return NULL; | |
3354 | } | |
3355 | } | |
3356 | { | |
4268f798 | 3357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3358 | delete_wxTipProvider(_arg0); |
f6bcfd97 | 3359 | |
4268f798 RD |
3360 | wxPyEndAllowThreads(__tstate); |
3361 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3362 | } Py_INCREF(Py_None); |
3363 | _resultobj = Py_None; | |
3364 | return _resultobj; | |
3365 | } | |
3366 | ||
3367 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3368 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3369 | PyObject * _resultobj; | |
3370 | wxString * _result; | |
3371 | wxTipProvider * _arg0; | |
3372 | PyObject * _argo0 = 0; | |
3373 | char *_kwnames[] = { "self", NULL }; | |
3374 | ||
3375 | self = self; | |
3376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3377 | return NULL; | |
3378 | if (_argo0) { | |
3379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3382 | return NULL; | |
3383 | } | |
3384 | } | |
3385 | { | |
4268f798 | 3386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3387 | _result = new wxString (wxTipProvider_GetTip(_arg0)); |
f6bcfd97 | 3388 | |
4268f798 RD |
3389 | wxPyEndAllowThreads(__tstate); |
3390 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 3391 | }{ |
c8bc7bb8 RD |
3392 | #if wxUSE_UNICODE |
3393 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3394 | #else | |
f6bcfd97 | 3395 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3396 | #endif |
f6bcfd97 BP |
3397 | } |
3398 | { | |
3399 | delete _result; | |
3400 | } | |
3401 | return _resultobj; | |
3402 | } | |
3403 | ||
3404 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3405 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3406 | PyObject * _resultobj; | |
3407 | size_t _result; | |
3408 | wxTipProvider * _arg0; | |
3409 | PyObject * _argo0 = 0; | |
3410 | char *_kwnames[] = { "self", NULL }; | |
3411 | ||
3412 | self = self; | |
3413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3414 | return NULL; | |
3415 | if (_argo0) { | |
3416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3419 | return NULL; | |
3420 | } | |
3421 | } | |
3422 | { | |
4268f798 | 3423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3424 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); |
f6bcfd97 | 3425 | |
4268f798 RD |
3426 | wxPyEndAllowThreads(__tstate); |
3427 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3428 | } _resultobj = Py_BuildValue("i",_result); |
3429 | return _resultobj; | |
3430 | } | |
3431 | ||
3432 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { | |
3433 | wxPyTipProvider *src; | |
3434 | wxTipProvider *dest; | |
3435 | src = (wxPyTipProvider *) ptr; | |
3436 | dest = (wxTipProvider *) src; | |
3437 | return (void *) dest; | |
3438 | } | |
3439 | ||
3440 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3441 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3442 | PyObject * _resultobj; | |
3443 | wxPyTipProvider * _result; | |
3444 | size_t _arg0; | |
3445 | char *_kwnames[] = { "currentTip", NULL }; | |
3446 | char _ptemp[128]; | |
3447 | ||
3448 | self = self; | |
3449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3450 | return NULL; | |
3451 | { | |
4268f798 | 3452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3453 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); |
f6bcfd97 | 3454 | |
4268f798 RD |
3455 | wxPyEndAllowThreads(__tstate); |
3456 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3457 | } if (_result) { |
3458 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3459 | _resultobj = Py_BuildValue("s",_ptemp); | |
3460 | } else { | |
3461 | Py_INCREF(Py_None); | |
3462 | _resultobj = Py_None; | |
3463 | } | |
3464 | return _resultobj; | |
3465 | } | |
3466 | ||
9416aa89 RD |
3467 | static void *SwigwxGenericDragImageTowxObject(void *ptr) { |
3468 | wxGenericDragImage *src; | |
3469 | wxObject *dest; | |
3470 | src = (wxGenericDragImage *) ptr; | |
3471 | dest = (wxObject *) src; | |
3472 | return (void *) dest; | |
3473 | } | |
3474 | ||
10e07c70 | 3475 | #define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
f6bcfd97 BP |
3476 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
3477 | PyObject * _resultobj; | |
3478 | wxGenericDragImage * _result; | |
3479 | wxBitmap * _arg0; | |
3480 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
f6bcfd97 BP |
3481 | PyObject * _argo0 = 0; |
3482 | PyObject * _argo1 = 0; | |
10e07c70 | 3483 | char *_kwnames[] = { "image","cursor", NULL }; |
f6bcfd97 BP |
3484 | char _ptemp[128]; |
3485 | ||
3486 | self = self; | |
10e07c70 | 3487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
3488 | return NULL; |
3489 | if (_argo0) { | |
3490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
3492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); | |
3493 | return NULL; | |
3494 | } | |
3495 | } | |
3496 | if (_argo1) { | |
3497 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3498 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); | |
3500 | return NULL; | |
3501 | } | |
3502 | } | |
f6bcfd97 | 3503 | { |
4268f798 | 3504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3505 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1); |
f6bcfd97 | 3506 | |
4268f798 RD |
3507 | wxPyEndAllowThreads(__tstate); |
3508 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3509 | } if (_result) { |
3510 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3511 | _resultobj = Py_BuildValue("s",_ptemp); | |
3512 | } else { | |
3513 | Py_INCREF(Py_None); | |
3514 | _resultobj = Py_None; | |
3515 | } | |
3516 | return _resultobj; | |
3517 | } | |
3518 | ||
cdf14688 RD |
3519 | #define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
3520 | static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3521 | PyObject * _resultobj; | |
3522 | wxGenericDragImage * _result; | |
3523 | wxIcon * _arg0; | |
3524 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3525 | PyObject * _argo0 = 0; | |
3526 | PyObject * _argo1 = 0; | |
3527 | char *_kwnames[] = { "image","cursor", NULL }; | |
3528 | char _ptemp[128]; | |
3529 | ||
3530 | self = self; | |
3531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1)) | |
3532 | return NULL; | |
3533 | if (_argo0) { | |
3534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
3536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p."); | |
3537 | return NULL; | |
3538 | } | |
3539 | } | |
3540 | if (_argo1) { | |
3541 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3542 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p."); | |
3544 | return NULL; | |
3545 | } | |
3546 | } | |
3547 | { | |
4268f798 | 3548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3549 | _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1); |
cdf14688 | 3550 | |
4268f798 RD |
3551 | wxPyEndAllowThreads(__tstate); |
3552 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3553 | } if (_result) { |
3554 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3555 | _resultobj = Py_BuildValue("s",_ptemp); | |
3556 | } else { | |
3557 | Py_INCREF(Py_None); | |
3558 | _resultobj = Py_None; | |
3559 | } | |
3560 | return _resultobj; | |
3561 | } | |
3562 | ||
3563 | #define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3564 | static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3565 | PyObject * _resultobj; | |
3566 | wxGenericDragImage * _result; | |
3567 | wxString * _arg0; | |
3568 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3569 | PyObject * _obj0 = 0; | |
3570 | PyObject * _argo1 = 0; | |
3571 | char *_kwnames[] = { "str","cursor", NULL }; | |
3572 | char _ptemp[128]; | |
3573 | ||
3574 | self = self; | |
3575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1)) | |
3576 | return NULL; | |
3577 | { | |
c8bc7bb8 RD |
3578 | _arg0 = wxString_in_helper(_obj0); |
3579 | if (_arg0 == NULL) | |
cdf14688 | 3580 | return NULL; |
cdf14688 RD |
3581 | } |
3582 | if (_argo1) { | |
3583 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3584 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p."); | |
3586 | return NULL; | |
3587 | } | |
3588 | } | |
3589 | { | |
4268f798 | 3590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3591 | _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1); |
cdf14688 | 3592 | |
4268f798 RD |
3593 | wxPyEndAllowThreads(__tstate); |
3594 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3595 | } if (_result) { |
3596 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3597 | _resultobj = Py_BuildValue("s",_ptemp); | |
3598 | } else { | |
3599 | Py_INCREF(Py_None); | |
3600 | _resultobj = Py_None; | |
3601 | } | |
3602 | { | |
3603 | if (_obj0) | |
3604 | delete _arg0; | |
3605 | } | |
3606 | return _resultobj; | |
3607 | } | |
3608 | ||
3609 | #define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3610 | static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3611 | PyObject * _resultobj; | |
3612 | wxGenericDragImage * _result; | |
3613 | wxTreeCtrl * _arg0; | |
3614 | wxTreeItemId * _arg1; | |
3615 | PyObject * _argo0 = 0; | |
3616 | PyObject * _argo1 = 0; | |
3617 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
3618 | char _ptemp[128]; | |
3619 | ||
3620 | self = self; | |
3621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1)) | |
3622 | return NULL; | |
3623 | if (_argo0) { | |
3624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
3626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p."); | |
3627 | return NULL; | |
3628 | } | |
3629 | } | |
3630 | if (_argo1) { | |
3631 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3632 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
3633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p."); | |
3634 | return NULL; | |
3635 | } | |
3636 | } | |
3637 | { | |
4268f798 | 3638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3639 | _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1); |
cdf14688 | 3640 | |
4268f798 RD |
3641 | wxPyEndAllowThreads(__tstate); |
3642 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3643 | } if (_result) { |
3644 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3645 | _resultobj = Py_BuildValue("s",_ptemp); | |
3646 | } else { | |
3647 | Py_INCREF(Py_None); | |
3648 | _resultobj = Py_None; | |
3649 | } | |
3650 | return _resultobj; | |
3651 | } | |
3652 | ||
3653 | #define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3654 | static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3655 | PyObject * _resultobj; | |
3656 | wxGenericDragImage * _result; | |
3657 | wxListCtrl * _arg0; | |
3658 | long _arg1; | |
3659 | PyObject * _argo0 = 0; | |
3660 | char *_kwnames[] = { "listCtrl","id", NULL }; | |
3661 | char _ptemp[128]; | |
3662 | ||
3663 | self = self; | |
3664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1)) | |
3665 | return NULL; | |
3666 | if (_argo0) { | |
3667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragListItem. Expected _wxListCtrl_p."); | |
3670 | return NULL; | |
3671 | } | |
3672 | } | |
3673 | { | |
4268f798 | 3674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3675 | _result = (wxGenericDragImage *)new_wxDragListItem(*_arg0,_arg1); |
cdf14688 | 3676 | |
4268f798 RD |
3677 | wxPyEndAllowThreads(__tstate); |
3678 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3679 | } if (_result) { |
3680 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3681 | _resultobj = Py_BuildValue("s",_ptemp); | |
3682 | } else { | |
3683 | Py_INCREF(Py_None); | |
3684 | _resultobj = Py_None; | |
3685 | } | |
3686 | return _resultobj; | |
3687 | } | |
3688 | ||
f6bcfd97 BP |
3689 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) |
3690 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3691 | PyObject * _resultobj; | |
3692 | wxGenericDragImage * _arg0; | |
3693 | PyObject * _argo0 = 0; | |
3694 | char *_kwnames[] = { "self", NULL }; | |
3695 | ||
3696 | self = self; | |
3697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
3698 | return NULL; | |
3699 | if (_argo0) { | |
3700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
3703 | return NULL; | |
3704 | } | |
3705 | } | |
3706 | { | |
4268f798 | 3707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3708 | delete_wxGenericDragImage(_arg0); |
f6bcfd97 | 3709 | |
4268f798 RD |
3710 | wxPyEndAllowThreads(__tstate); |
3711 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3712 | } Py_INCREF(Py_None); |
3713 | _resultobj = Py_None; | |
3714 | return _resultobj; | |
3715 | } | |
3716 | ||
10e07c70 RD |
3717 | #define wxDragImage_SetBackingBitmap(_swigobj,_swigarg0) (_swigobj->SetBackingBitmap(_swigarg0)) |
3718 | static PyObject *_wrap_wxDragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3719 | PyObject * _resultobj; | |
3720 | wxGenericDragImage * _arg0; | |
3721 | wxBitmap * _arg1; | |
3722 | PyObject * _argo0 = 0; | |
3723 | PyObject * _argo1 = 0; | |
3724 | char *_kwnames[] = { "self","bitmap", NULL }; | |
3725 | ||
3726 | self = self; | |
3727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_SetBackingBitmap",_kwnames,&_argo0,&_argo1)) | |
3728 | return NULL; | |
3729 | if (_argo0) { | |
3730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_SetBackingBitmap. Expected _wxGenericDragImage_p."); | |
3733 | return NULL; | |
3734 | } | |
3735 | } | |
3736 | if (_argo1) { | |
3737 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3738 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
3739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragImage_SetBackingBitmap. Expected _wxBitmap_p."); | |
3740 | return NULL; | |
3741 | } | |
3742 | } | |
3743 | { | |
4268f798 | 3744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3745 | wxDragImage_SetBackingBitmap(_arg0,_arg1); |
10e07c70 | 3746 | |
4268f798 RD |
3747 | wxPyEndAllowThreads(__tstate); |
3748 | if (PyErr_Occurred()) return NULL; | |
10e07c70 RD |
3749 | } Py_INCREF(Py_None); |
3750 | _resultobj = Py_None; | |
3751 | return _resultobj; | |
3752 | } | |
3753 | ||
f6bcfd97 BP |
3754 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3755 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3756 | PyObject * _resultobj; | |
3757 | bool _result; | |
3758 | wxGenericDragImage * _arg0; | |
3759 | wxPoint * _arg1; | |
3760 | wxWindow * _arg2; | |
3761 | bool _arg3 = (bool ) FALSE; | |
3762 | wxRect * _arg4 = (wxRect *) NULL; | |
3763 | PyObject * _argo0 = 0; | |
3764 | wxPoint temp; | |
3765 | PyObject * _obj1 = 0; | |
3766 | PyObject * _argo2 = 0; | |
3767 | int tempbool3 = (int) FALSE; | |
3768 | wxRect temp0; | |
3769 | PyObject * _obj4 = 0; | |
3770 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
3771 | ||
3772 | self = self; | |
3773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
3774 | return NULL; | |
3775 | if (_argo0) { | |
3776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
3779 | return NULL; | |
3780 | } | |
3781 | } | |
3782 | { | |
3783 | _arg1 = &temp; | |
3784 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3785 | return NULL; | |
3786 | } | |
3787 | if (_argo2) { | |
3788 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3789 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
3791 | return NULL; | |
3792 | } | |
3793 | } | |
3794 | _arg3 = (bool ) tempbool3; | |
3795 | if (_obj4) | |
3796 | { | |
3797 | _arg4 = &temp0; | |
3798 | if (! wxRect_helper(_obj4, &_arg4)) | |
3799 | return NULL; | |
3800 | } | |
3801 | { | |
4268f798 | 3802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3803 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); |
f6bcfd97 | 3804 | |
4268f798 RD |
3805 | wxPyEndAllowThreads(__tstate); |
3806 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3807 | } _resultobj = Py_BuildValue("i",_result); |
3808 | return _resultobj; | |
3809 | } | |
3810 | ||
3811 | #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) | |
3812 | static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3813 | PyObject * _resultobj; | |
3814 | bool _result; | |
3815 | wxGenericDragImage * _arg0; | |
3816 | wxPoint * _arg1; | |
3817 | wxWindow * _arg2; | |
3818 | wxWindow * _arg3; | |
3819 | PyObject * _argo0 = 0; | |
3820 | wxPoint temp; | |
3821 | PyObject * _obj1 = 0; | |
3822 | PyObject * _argo2 = 0; | |
3823 | PyObject * _argo3 = 0; | |
3824 | char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL }; | |
3825 | ||
3826 | self = self; | |
3827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
3828 | return NULL; | |
3829 | if (_argo0) { | |
3830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p."); | |
3833 | return NULL; | |
3834 | } | |
3835 | } | |
3836 | { | |
3837 | _arg1 = &temp; | |
3838 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3839 | return NULL; | |
3840 | } | |
3841 | if (_argo2) { | |
3842 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3843 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3845 | return NULL; | |
3846 | } | |
3847 | } | |
3848 | if (_argo3) { | |
3849 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3850 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
3851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3852 | return NULL; | |
3853 | } | |
3854 | } | |
3855 | { | |
4268f798 | 3856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3857 | _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3); |
f6bcfd97 | 3858 | |
4268f798 RD |
3859 | wxPyEndAllowThreads(__tstate); |
3860 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3861 | } _resultobj = Py_BuildValue("i",_result); |
3862 | return _resultobj; | |
3863 | } | |
3864 | ||
3865 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
3866 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3867 | PyObject * _resultobj; | |
3868 | bool _result; | |
3869 | wxGenericDragImage * _arg0; | |
3870 | PyObject * _argo0 = 0; | |
3871 | char *_kwnames[] = { "self", NULL }; | |
3872 | ||
3873 | self = self; | |
3874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
3875 | return NULL; | |
3876 | if (_argo0) { | |
3877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
3880 | return NULL; | |
3881 | } | |
3882 | } | |
3883 | { | |
4268f798 | 3884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3885 | _result = (bool )wxDragImage_EndDrag(_arg0); |
f6bcfd97 | 3886 | |
4268f798 RD |
3887 | wxPyEndAllowThreads(__tstate); |
3888 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3889 | } _resultobj = Py_BuildValue("i",_result); |
3890 | return _resultobj; | |
3891 | } | |
3892 | ||
3893 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3894 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3895 | PyObject * _resultobj; | |
3896 | bool _result; | |
3897 | wxGenericDragImage * _arg0; | |
3898 | wxPoint * _arg1; | |
3899 | PyObject * _argo0 = 0; | |
3900 | wxPoint temp; | |
3901 | PyObject * _obj1 = 0; | |
3902 | char *_kwnames[] = { "self","pt", NULL }; | |
3903 | ||
3904 | self = self; | |
3905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
3906 | return NULL; | |
3907 | if (_argo0) { | |
3908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p."); | |
3911 | return NULL; | |
3912 | } | |
3913 | } | |
3914 | { | |
3915 | _arg1 = &temp; | |
3916 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3917 | return NULL; | |
3918 | } | |
3919 | { | |
4268f798 | 3920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3921 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); |
f6bcfd97 | 3922 | |
4268f798 RD |
3923 | wxPyEndAllowThreads(__tstate); |
3924 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3925 | } _resultobj = Py_BuildValue("i",_result); |
3926 | return _resultobj; | |
3927 | } | |
3928 | ||
3929 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
3930 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3931 | PyObject * _resultobj; | |
3932 | bool _result; | |
3933 | wxGenericDragImage * _arg0; | |
3934 | PyObject * _argo0 = 0; | |
3935 | char *_kwnames[] = { "self", NULL }; | |
3936 | ||
3937 | self = self; | |
3938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
3939 | return NULL; | |
3940 | if (_argo0) { | |
3941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
3944 | return NULL; | |
3945 | } | |
3946 | } | |
3947 | { | |
4268f798 | 3948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3949 | _result = (bool )wxDragImage_Show(_arg0); |
f6bcfd97 | 3950 | |
4268f798 RD |
3951 | wxPyEndAllowThreads(__tstate); |
3952 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3953 | } _resultobj = Py_BuildValue("i",_result); |
3954 | return _resultobj; | |
3955 | } | |
3956 | ||
3957 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
3958 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3959 | PyObject * _resultobj; | |
3960 | bool _result; | |
3961 | wxGenericDragImage * _arg0; | |
3962 | PyObject * _argo0 = 0; | |
3963 | char *_kwnames[] = { "self", NULL }; | |
3964 | ||
3965 | self = self; | |
3966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
3967 | return NULL; | |
3968 | if (_argo0) { | |
3969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
3972 | return NULL; | |
3973 | } | |
3974 | } | |
3975 | { | |
4268f798 | 3976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3977 | _result = (bool )wxDragImage_Hide(_arg0); |
f6bcfd97 | 3978 | |
4268f798 RD |
3979 | wxPyEndAllowThreads(__tstate); |
3980 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3981 | } _resultobj = Py_BuildValue("i",_result); |
3982 | return _resultobj; | |
3983 | } | |
3984 | ||
3985 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
3986 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3987 | PyObject * _resultobj; | |
3988 | wxRect * _result; | |
3989 | wxGenericDragImage * _arg0; | |
3990 | wxPoint * _arg1; | |
3991 | PyObject * _argo0 = 0; | |
3992 | wxPoint temp; | |
3993 | PyObject * _obj1 = 0; | |
3994 | char *_kwnames[] = { "self","pos", NULL }; | |
3995 | char _ptemp[128]; | |
3996 | ||
3997 | self = self; | |
3998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
3999 | return NULL; | |
4000 | if (_argo0) { | |
4001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p."); | |
4004 | return NULL; | |
4005 | } | |
4006 | } | |
4007 | { | |
4008 | _arg1 = &temp; | |
4009 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4010 | return NULL; | |
4011 | } | |
4012 | { | |
4268f798 | 4013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4014 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); |
f6bcfd97 | 4015 | |
4268f798 RD |
4016 | wxPyEndAllowThreads(__tstate); |
4017 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4018 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
4019 | _resultobj = Py_BuildValue("s",_ptemp); | |
4020 | return _resultobj; | |
4021 | } | |
4022 | ||
4023 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4024 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4025 | PyObject * _resultobj; | |
4026 | bool _result; | |
4027 | wxGenericDragImage * _arg0; | |
4028 | wxPoint * _arg1; | |
4029 | wxPoint * _arg2; | |
4030 | bool _arg3; | |
4031 | bool _arg4; | |
4032 | PyObject * _argo0 = 0; | |
4033 | wxPoint temp; | |
4034 | PyObject * _obj1 = 0; | |
4035 | wxPoint temp0; | |
4036 | PyObject * _obj2 = 0; | |
4037 | int tempbool3; | |
4038 | int tempbool4; | |
4039 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
4040 | ||
4041 | self = self; | |
4042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
4043 | return NULL; | |
4044 | if (_argo0) { | |
4045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
4048 | return NULL; | |
4049 | } | |
4050 | } | |
4051 | { | |
4052 | _arg1 = &temp; | |
4053 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4054 | return NULL; | |
4055 | } | |
4056 | { | |
4057 | _arg2 = &temp0; | |
4058 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4059 | return NULL; | |
4060 | } | |
4061 | _arg3 = (bool ) tempbool3; | |
4062 | _arg4 = (bool ) tempbool4; | |
4063 | { | |
4268f798 | 4064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4065 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
f6bcfd97 | 4066 | |
4268f798 RD |
4067 | wxPyEndAllowThreads(__tstate); |
4068 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4069 | } _resultobj = Py_BuildValue("i",_result); |
4070 | return _resultobj; | |
4071 | } | |
4072 | ||
9416aa89 RD |
4073 | static void *SwigwxPyTimerTowxObject(void *ptr) { |
4074 | wxPyTimer *src; | |
4075 | wxObject *dest; | |
4076 | src = (wxPyTimer *) ptr; | |
4077 | dest = (wxObject *) src; | |
4078 | return (void *) dest; | |
4079 | } | |
4080 | ||
f6bcfd97 BP |
4081 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) |
4082 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4083 | PyObject * _resultobj; | |
4084 | wxPyTimer * _result; | |
4085 | PyObject * _arg0; | |
4086 | PyObject * _obj0 = 0; | |
4087 | char *_kwnames[] = { "notify", NULL }; | |
4088 | char _ptemp[128]; | |
4089 | ||
4090 | self = self; | |
4091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
4092 | return NULL; | |
4093 | { | |
4094 | _arg0 = _obj0; | |
4095 | } | |
4096 | { | |
4268f798 | 4097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4098 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); |
f6bcfd97 | 4099 | |
4268f798 RD |
4100 | wxPyEndAllowThreads(__tstate); |
4101 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4102 | } if (_result) { |
4103 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
4104 | _resultobj = Py_BuildValue("s",_ptemp); | |
4105 | } else { | |
4106 | Py_INCREF(Py_None); | |
4107 | _resultobj = Py_None; | |
4108 | } | |
4109 | return _resultobj; | |
4110 | } | |
4111 | ||
4112 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
4113 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4114 | PyObject * _resultobj; | |
4115 | wxPyTimer * _arg0; | |
4116 | PyObject * _argo0 = 0; | |
4117 | char *_kwnames[] = { "self", NULL }; | |
4118 | ||
4119 | self = self; | |
4120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
4121 | return NULL; | |
4122 | if (_argo0) { | |
4123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
4126 | return NULL; | |
4127 | } | |
4128 | } | |
4129 | { | |
4268f798 | 4130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4131 | delete_wxPyTimer(_arg0); |
f6bcfd97 | 4132 | |
4268f798 RD |
4133 | wxPyEndAllowThreads(__tstate); |
4134 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4135 | } Py_INCREF(Py_None); |
4136 | _resultobj = Py_None; | |
4137 | return _resultobj; | |
4138 | } | |
4139 | ||
4140 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
4141 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4142 | PyObject * _resultobj; | |
4143 | int _result; | |
4144 | wxPyTimer * _arg0; | |
4145 | PyObject * _argo0 = 0; | |
4146 | char *_kwnames[] = { "self", NULL }; | |
4147 | ||
4148 | self = self; | |
4149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
4150 | return NULL; | |
4151 | if (_argo0) { | |
4152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
4155 | return NULL; | |
4156 | } | |
4157 | } | |
4158 | { | |
4268f798 | 4159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4160 | _result = (int )wxPyTimer_GetInterval(_arg0); |
f6bcfd97 | 4161 | |
4268f798 RD |
4162 | wxPyEndAllowThreads(__tstate); |
4163 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4164 | } _resultobj = Py_BuildValue("i",_result); |
4165 | return _resultobj; | |
4166 | } | |
4167 | ||
4168 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
4169 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4170 | PyObject * _resultobj; | |
4171 | bool _result; | |
4172 | wxPyTimer * _arg0; | |
4173 | PyObject * _argo0 = 0; | |
4174 | char *_kwnames[] = { "self", NULL }; | |
4175 | ||
4176 | self = self; | |
4177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
4178 | return NULL; | |
4179 | if (_argo0) { | |
4180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
4183 | return NULL; | |
4184 | } | |
4185 | } | |
4186 | { | |
4268f798 | 4187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4188 | _result = (bool )wxPyTimer_IsOneShot(_arg0); |
f6bcfd97 | 4189 | |
4268f798 RD |
4190 | wxPyEndAllowThreads(__tstate); |
4191 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4192 | } _resultobj = Py_BuildValue("i",_result); |
4193 | return _resultobj; | |
4194 | } | |
4195 | ||
4196 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
4197 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4198 | PyObject * _resultobj; | |
4199 | bool _result; | |
4200 | wxPyTimer * _arg0; | |
4201 | PyObject * _argo0 = 0; | |
4202 | char *_kwnames[] = { "self", NULL }; | |
4203 | ||
4204 | self = self; | |
4205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
4206 | return NULL; | |
4207 | if (_argo0) { | |
4208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
4211 | return NULL; | |
4212 | } | |
4213 | } | |
4214 | { | |
4268f798 | 4215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4216 | _result = (bool )wxPyTimer_IsRunning(_arg0); |
f6bcfd97 | 4217 | |
4268f798 RD |
4218 | wxPyEndAllowThreads(__tstate); |
4219 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4220 | } _resultobj = Py_BuildValue("i",_result); |
4221 | return _resultobj; | |
4222 | } | |
4223 | ||
4224 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
4225 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4226 | PyObject * _resultobj; | |
4227 | wxPyTimer * _arg0; | |
4228 | wxEvtHandler * _arg1; | |
4229 | int _arg2 = (int ) -1; | |
4230 | PyObject * _argo0 = 0; | |
4231 | PyObject * _argo1 = 0; | |
4232 | char *_kwnames[] = { "self","owner","id", NULL }; | |
4233 | ||
4234 | self = self; | |
4235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4236 | return NULL; | |
4237 | if (_argo0) { | |
4238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
4241 | return NULL; | |
4242 | } | |
4243 | } | |
4244 | if (_argo1) { | |
4245 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4246 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
4248 | return NULL; | |
4249 | } | |
4250 | } | |
4251 | { | |
4268f798 | 4252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4253 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); |
f6bcfd97 | 4254 | |
4268f798 RD |
4255 | wxPyEndAllowThreads(__tstate); |
4256 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4257 | } Py_INCREF(Py_None); |
4258 | _resultobj = Py_None; | |
4259 | return _resultobj; | |
4260 | } | |
4261 | ||
4262 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
4263 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4264 | PyObject * _resultobj; | |
4265 | wxPyTimer * _arg0; | |
4266 | int _arg1 = (int ) -1; | |
4267 | int _arg2 = (int ) FALSE; | |
4268 | PyObject * _argo0 = 0; | |
4269 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
4270 | ||
4271 | self = self; | |
4272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4273 | return NULL; | |
4274 | if (_argo0) { | |
4275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
4278 | return NULL; | |
4279 | } | |
4280 | } | |
4281 | { | |
4268f798 | 4282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4283 | wxPyTimer_Start(_arg0,_arg1,_arg2); |
f6bcfd97 | 4284 | |
4268f798 RD |
4285 | wxPyEndAllowThreads(__tstate); |
4286 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4287 | } Py_INCREF(Py_None); |
4288 | _resultobj = Py_None; | |
4289 | return _resultobj; | |
4290 | } | |
4291 | ||
4292 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
4293 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4294 | PyObject * _resultobj; | |
4295 | wxPyTimer * _arg0; | |
f0261a72 RD |
4296 | PyObject * _argo0 = 0; |
4297 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4298 | |
4299 | self = self; | |
f6bcfd97 | 4300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) |
f0261a72 RD |
4301 | return NULL; |
4302 | if (_argo0) { | |
4303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { |
4305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
f0261a72 RD |
4306 | return NULL; |
4307 | } | |
4308 | } | |
4309 | { | |
4268f798 | 4310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4311 | wxPyTimer_Stop(_arg0); |
f0261a72 | 4312 | |
4268f798 RD |
4313 | wxPyEndAllowThreads(__tstate); |
4314 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4315 | } Py_INCREF(Py_None); |
4316 | _resultobj = Py_None; | |
f0261a72 RD |
4317 | return _resultobj; |
4318 | } | |
4319 | ||
b37c7e1d RD |
4320 | #define new_wxStopWatch() (new wxStopWatch()) |
4321 | static PyObject *_wrap_new_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4322 | PyObject * _resultobj; | |
4323 | wxStopWatch * _result; | |
4324 | char *_kwnames[] = { NULL }; | |
4325 | char _ptemp[128]; | |
4326 | ||
4327 | self = self; | |
4328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxStopWatch",_kwnames)) | |
4329 | return NULL; | |
4330 | { | |
4268f798 | 4331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4332 | _result = (wxStopWatch *)new_wxStopWatch(); |
b37c7e1d | 4333 | |
4268f798 RD |
4334 | wxPyEndAllowThreads(__tstate); |
4335 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4336 | } if (_result) { |
4337 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStopWatch_p"); | |
4338 | _resultobj = Py_BuildValue("s",_ptemp); | |
4339 | } else { | |
4340 | Py_INCREF(Py_None); | |
4341 | _resultobj = Py_None; | |
4342 | } | |
4343 | return _resultobj; | |
4344 | } | |
4345 | ||
68320e40 RD |
4346 | #define delete_wxStopWatch(_swigobj) (delete _swigobj) |
4347 | static PyObject *_wrap_delete_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4348 | PyObject * _resultobj; | |
4349 | wxStopWatch * _arg0; | |
4350 | PyObject * _argo0 = 0; | |
4351 | char *_kwnames[] = { "self", NULL }; | |
4352 | ||
4353 | self = self; | |
4354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxStopWatch",_kwnames,&_argo0)) | |
4355 | return NULL; | |
4356 | if (_argo0) { | |
4357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxStopWatch. Expected _wxStopWatch_p."); | |
4360 | return NULL; | |
4361 | } | |
4362 | } | |
4363 | { | |
4364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4365 | delete_wxStopWatch(_arg0); |
68320e40 RD |
4366 | |
4367 | wxPyEndAllowThreads(__tstate); | |
4368 | if (PyErr_Occurred()) return NULL; | |
4369 | } Py_INCREF(Py_None); | |
4370 | _resultobj = Py_None; | |
4371 | return _resultobj; | |
4372 | } | |
4373 | ||
b37c7e1d RD |
4374 | #define wxStopWatch_Start(_swigobj,_swigarg0) (_swigobj->Start(_swigarg0)) |
4375 | static PyObject *_wrap_wxStopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4376 | PyObject * _resultobj; | |
4377 | wxStopWatch * _arg0; | |
4378 | long _arg1 = (long ) 0; | |
4379 | PyObject * _argo0 = 0; | |
4380 | char *_kwnames[] = { "self","t", NULL }; | |
4381 | ||
4382 | self = self; | |
4383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxStopWatch_Start",_kwnames,&_argo0,&_arg1)) | |
4384 | return NULL; | |
4385 | if (_argo0) { | |
4386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Start. Expected _wxStopWatch_p."); | |
4389 | return NULL; | |
4390 | } | |
4391 | } | |
4392 | { | |
4268f798 | 4393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4394 | wxStopWatch_Start(_arg0,_arg1); |
b37c7e1d | 4395 | |
4268f798 RD |
4396 | wxPyEndAllowThreads(__tstate); |
4397 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4398 | } Py_INCREF(Py_None); |
4399 | _resultobj = Py_None; | |
4400 | return _resultobj; | |
4401 | } | |
4402 | ||
4403 | #define wxStopWatch_Pause(_swigobj) (_swigobj->Pause()) | |
4404 | static PyObject *_wrap_wxStopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4405 | PyObject * _resultobj; | |
4406 | wxStopWatch * _arg0; | |
4407 | PyObject * _argo0 = 0; | |
4408 | char *_kwnames[] = { "self", NULL }; | |
4409 | ||
4410 | self = self; | |
4411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Pause",_kwnames,&_argo0)) | |
4412 | return NULL; | |
4413 | if (_argo0) { | |
4414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Pause. Expected _wxStopWatch_p."); | |
4417 | return NULL; | |
4418 | } | |
4419 | } | |
4420 | { | |
4268f798 | 4421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4422 | wxStopWatch_Pause(_arg0); |
b37c7e1d | 4423 | |
4268f798 RD |
4424 | wxPyEndAllowThreads(__tstate); |
4425 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4426 | } Py_INCREF(Py_None); |
4427 | _resultobj = Py_None; | |
4428 | return _resultobj; | |
4429 | } | |
4430 | ||
4431 | #define wxStopWatch_Resume(_swigobj) (_swigobj->Resume()) | |
4432 | static PyObject *_wrap_wxStopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4433 | PyObject * _resultobj; | |
4434 | wxStopWatch * _arg0; | |
4435 | PyObject * _argo0 = 0; | |
4436 | char *_kwnames[] = { "self", NULL }; | |
4437 | ||
4438 | self = self; | |
4439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Resume",_kwnames,&_argo0)) | |
4440 | return NULL; | |
4441 | if (_argo0) { | |
4442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Resume. Expected _wxStopWatch_p."); | |
4445 | return NULL; | |
4446 | } | |
4447 | } | |
4448 | { | |
4268f798 | 4449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4450 | wxStopWatch_Resume(_arg0); |
b37c7e1d | 4451 | |
4268f798 RD |
4452 | wxPyEndAllowThreads(__tstate); |
4453 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4454 | } Py_INCREF(Py_None); |
4455 | _resultobj = Py_None; | |
4456 | return _resultobj; | |
4457 | } | |
4458 | ||
4459 | #define wxStopWatch_Time(_swigobj) (_swigobj->Time()) | |
4460 | static PyObject *_wrap_wxStopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4461 | PyObject * _resultobj; | |
4462 | long _result; | |
4463 | wxStopWatch * _arg0; | |
4464 | PyObject * _argo0 = 0; | |
4465 | char *_kwnames[] = { "self", NULL }; | |
4466 | ||
4467 | self = self; | |
4468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Time",_kwnames,&_argo0)) | |
4469 | return NULL; | |
4470 | if (_argo0) { | |
4471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Time. Expected _wxStopWatch_p."); | |
4474 | return NULL; | |
4475 | } | |
4476 | } | |
4477 | { | |
4268f798 | 4478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4479 | _result = (long )wxStopWatch_Time(_arg0); |
b37c7e1d | 4480 | |
4268f798 RD |
4481 | wxPyEndAllowThreads(__tstate); |
4482 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4483 | } _resultobj = Py_BuildValue("l",_result); |
4484 | return _resultobj; | |
4485 | } | |
4486 | ||
f6bcfd97 BP |
4487 | #define new_wxLog() (new wxLog()) |
4488 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4489 | PyObject * _resultobj; |
f6bcfd97 BP |
4490 | wxLog * _result; |
4491 | char *_kwnames[] = { NULL }; | |
4492 | char _ptemp[128]; | |
f0261a72 RD |
4493 | |
4494 | self = self; | |
f6bcfd97 BP |
4495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) |
4496 | return NULL; | |
f0261a72 | 4497 | { |
4268f798 | 4498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4499 | _result = (wxLog *)new_wxLog(); |
f6bcfd97 | 4500 | |
4268f798 RD |
4501 | wxPyEndAllowThreads(__tstate); |
4502 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4503 | } if (_result) { |
4504 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4505 | _resultobj = Py_BuildValue("s",_ptemp); | |
4506 | } else { | |
4507 | Py_INCREF(Py_None); | |
4508 | _resultobj = Py_None; | |
4509 | } | |
4510 | return _resultobj; | |
f0261a72 | 4511 | } |
f6bcfd97 BP |
4512 | |
4513 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4514 | PyObject * _resultobj; | |
4515 | bool _result; | |
4516 | char *_kwnames[] = { NULL }; | |
4517 | ||
4518 | self = self; | |
4519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
4520 | return NULL; | |
f0261a72 | 4521 | { |
4268f798 | 4522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4523 | _result = (bool )wxLog::IsEnabled(); |
f6bcfd97 | 4524 | |
4268f798 RD |
4525 | wxPyEndAllowThreads(__tstate); |
4526 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4527 | } _resultobj = Py_BuildValue("i",_result); |
4528 | return _resultobj; | |
f0261a72 | 4529 | } |
f6bcfd97 BP |
4530 | |
4531 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4532 | PyObject * _resultobj; | |
4533 | bool _result; | |
4534 | bool _arg0 = (bool ) TRUE; | |
4535 | int tempbool0 = (int) TRUE; | |
4536 | char *_kwnames[] = { "doIt", NULL }; | |
4537 | ||
4538 | self = self; | |
4539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
4540 | return NULL; | |
4541 | _arg0 = (bool ) tempbool0; | |
4542 | { | |
4268f798 | 4543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4544 | _result = (bool )wxLog::EnableLogging(_arg0); |
f6bcfd97 | 4545 | |
4268f798 RD |
4546 | wxPyEndAllowThreads(__tstate); |
4547 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4548 | } _resultobj = Py_BuildValue("i",_result); |
4549 | return _resultobj; | |
4550 | } | |
4551 | ||
4552 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4553 | PyObject * _resultobj; | |
4554 | wxLogLevel * _arg0; | |
c8bc7bb8 | 4555 | wxString * _arg1; |
f6bcfd97 BP |
4556 | int _arg2 = (int ) 0; |
4557 | PyObject * _argo0 = 0; | |
c8bc7bb8 | 4558 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
4559 | char *_kwnames[] = { "level","szString","t", NULL }; |
4560 | ||
4561 | self = self; | |
c8bc7bb8 | 4562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxLog_OnLog",_kwnames,&_argo0,&_obj1,&_arg2)) |
f0261a72 RD |
4563 | return NULL; |
4564 | if (_argo0) { | |
4565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogLevel_p")) { |
4567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_OnLog. Expected _wxLogLevel_p."); | |
f0261a72 RD |
4568 | return NULL; |
4569 | } | |
4570 | } | |
c8bc7bb8 RD |
4571 | { |
4572 | _arg1 = wxString_in_helper(_obj1); | |
4573 | if (_arg1 == NULL) | |
4574 | return NULL; | |
4575 | } | |
f0261a72 | 4576 | { |
4268f798 | 4577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4578 | wxLog::OnLog(*_arg0,*_arg1,_arg2); |
f0261a72 | 4579 | |
4268f798 RD |
4580 | wxPyEndAllowThreads(__tstate); |
4581 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4582 | } Py_INCREF(Py_None); |
4583 | _resultobj = Py_None; | |
c8bc7bb8 RD |
4584 | { |
4585 | if (_obj1) | |
4586 | delete _arg1; | |
4587 | } | |
f6bcfd97 | 4588 | return _resultobj; |
f0261a72 | 4589 | } |
f6bcfd97 BP |
4590 | |
4591 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
4592 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4593 | PyObject * _resultobj; | |
4594 | wxLog * _arg0; | |
4595 | PyObject * _argo0 = 0; | |
4596 | char *_kwnames[] = { "self", NULL }; | |
4597 | ||
4598 | self = self; | |
4599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
4600 | return NULL; | |
4601 | if (_argo0) { | |
4602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
4605 | return NULL; | |
4606 | } | |
4607 | } | |
f0261a72 | 4608 | { |
4268f798 | 4609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4610 | wxLog_Flush(_arg0); |
f6bcfd97 | 4611 | |
4268f798 RD |
4612 | wxPyEndAllowThreads(__tstate); |
4613 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4614 | } Py_INCREF(Py_None); |
4615 | _resultobj = Py_None; | |
f0261a72 RD |
4616 | return _resultobj; |
4617 | } | |
4618 | ||
f6bcfd97 BP |
4619 | #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages()) |
4620 | static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4621 | PyObject * _resultobj; |
f6bcfd97 BP |
4622 | bool _result; |
4623 | wxLog * _arg0; | |
f0261a72 RD |
4624 | PyObject * _argo0 = 0; |
4625 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4626 | |
4627 | self = self; | |
f6bcfd97 | 4628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0)) |
f0261a72 RD |
4629 | return NULL; |
4630 | if (_argo0) { | |
4631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p."); | |
f0261a72 RD |
4634 | return NULL; |
4635 | } | |
4636 | } | |
4637 | { | |
4268f798 | 4638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4639 | _result = (bool )wxLog_HasPendingMessages(_arg0); |
f0261a72 | 4640 | |
4268f798 RD |
4641 | wxPyEndAllowThreads(__tstate); |
4642 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 4643 | } _resultobj = Py_BuildValue("i",_result); |
f0261a72 RD |
4644 | return _resultobj; |
4645 | } | |
4646 | ||
f6bcfd97 | 4647 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4648 | PyObject * _resultobj; |
f6bcfd97 BP |
4649 | char *_kwnames[] = { NULL }; |
4650 | ||
4651 | self = self; | |
4652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4653 | return NULL; | |
4654 | { | |
4268f798 | 4655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4656 | wxLog::FlushActive(); |
f6bcfd97 | 4657 | |
4268f798 RD |
4658 | wxPyEndAllowThreads(__tstate); |
4659 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4660 | } Py_INCREF(Py_None); |
4661 | _resultobj = Py_None; | |
4662 | return _resultobj; | |
4663 | } | |
4664 | ||
4665 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4666 | PyObject * _resultobj; | |
4667 | wxLog * _result; | |
4668 | char *_kwnames[] = { NULL }; | |
4669 | char _ptemp[128]; | |
4670 | ||
4671 | self = self; | |
4672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
4673 | return NULL; | |
4674 | { | |
4268f798 | 4675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4676 | _result = (wxLog *)wxLog::GetActiveTarget(); |
f6bcfd97 | 4677 | |
4268f798 RD |
4678 | wxPyEndAllowThreads(__tstate); |
4679 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4680 | } if (_result) { |
4681 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4682 | _resultobj = Py_BuildValue("s",_ptemp); | |
4683 | } else { | |
4684 | Py_INCREF(Py_None); | |
4685 | _resultobj = Py_None; | |
4686 | } | |
4687 | return _resultobj; | |
4688 | } | |
4689 | ||
4690 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4691 | PyObject * _resultobj; | |
4692 | wxLog * _result; | |
4693 | wxLog * _arg0; | |
f0261a72 | 4694 | PyObject * _argo0 = 0; |
f6bcfd97 | 4695 | char *_kwnames[] = { "pLogger", NULL }; |
f0261a72 RD |
4696 | char _ptemp[128]; |
4697 | ||
4698 | self = self; | |
f6bcfd97 | 4699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) |
f0261a72 RD |
4700 | return NULL; |
4701 | if (_argo0) { | |
4702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
f0261a72 RD |
4705 | return NULL; |
4706 | } | |
4707 | } | |
4708 | { | |
4268f798 | 4709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4710 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); |
f0261a72 | 4711 | |
4268f798 RD |
4712 | wxPyEndAllowThreads(__tstate); |
4713 | if (PyErr_Occurred()) return NULL; | |
f0261a72 | 4714 | } if (_result) { |
f6bcfd97 | 4715 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); |
f0261a72 RD |
4716 | _resultobj = Py_BuildValue("s",_ptemp); |
4717 | } else { | |
4718 | Py_INCREF(Py_None); | |
4719 | _resultobj = Py_None; | |
4720 | } | |
4721 | return _resultobj; | |
4722 | } | |
4723 | ||
f6bcfd97 | 4724 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4725 | PyObject * _resultobj; |
f6bcfd97 BP |
4726 | char *_kwnames[] = { NULL }; |
4727 | ||
4728 | self = self; | |
4729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
4730 | return NULL; | |
4731 | { | |
4268f798 | 4732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4733 | wxLog::Suspend(); |
f6bcfd97 | 4734 | |
4268f798 RD |
4735 | wxPyEndAllowThreads(__tstate); |
4736 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4737 | } Py_INCREF(Py_None); |
4738 | _resultobj = Py_None; | |
4739 | return _resultobj; | |
4740 | } | |
4741 | ||
4742 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4743 | PyObject * _resultobj; | |
4744 | char *_kwnames[] = { NULL }; | |
4745 | ||
4746 | self = self; | |
4747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
4748 | return NULL; | |
4749 | { | |
4268f798 | 4750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4751 | wxLog::Resume(); |
f6bcfd97 | 4752 | |
4268f798 RD |
4753 | wxPyEndAllowThreads(__tstate); |
4754 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4755 | } Py_INCREF(Py_None); |
4756 | _resultobj = Py_None; | |
4757 | return _resultobj; | |
4758 | } | |
4759 | ||
f6bcfd97 BP |
4760 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { |
4761 | PyObject * _resultobj; | |
d6eacb25 RD |
4762 | bool _arg0 = (bool ) TRUE; |
4763 | int tempbool0 = (int) TRUE; | |
4764 | char *_kwnames[] = { "bVerbose", NULL }; | |
f0261a72 RD |
4765 | |
4766 | self = self; | |
d6eacb25 | 4767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_SetVerbose",_kwnames,&tempbool0)) |
f0261a72 | 4768 | return NULL; |
d6eacb25 | 4769 | _arg0 = (bool ) tempbool0; |
f0261a72 | 4770 | { |
4268f798 | 4771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d6eacb25 | 4772 | wxLog::SetVerbose(_arg0); |
f0261a72 | 4773 | |
4268f798 RD |
4774 | wxPyEndAllowThreads(__tstate); |
4775 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4776 | } Py_INCREF(Py_None); |
4777 | _resultobj = Py_None; | |
4778 | return _resultobj; | |
4779 | } | |
4780 | ||
f6bcfd97 | 4781 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4782 | PyObject * _resultobj; |
f6bcfd97 BP |
4783 | char *_kwnames[] = { NULL }; |
4784 | ||
4785 | self = self; | |
4786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
4787 | return NULL; | |
4788 | { | |
4268f798 | 4789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4790 | wxLog::DontCreateOnDemand(); |
f6bcfd97 | 4791 | |
4268f798 RD |
4792 | wxPyEndAllowThreads(__tstate); |
4793 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4794 | } Py_INCREF(Py_None); |
4795 | _resultobj = Py_None; | |
4796 | return _resultobj; | |
4797 | } | |
4798 | ||
4799 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4800 | PyObject * _resultobj; | |
4801 | wxTraceMask * _arg0; | |
f0261a72 | 4802 | PyObject * _argo0 = 0; |
f6bcfd97 | 4803 | char *_kwnames[] = { "ulMask", NULL }; |
f0261a72 RD |
4804 | |
4805 | self = self; | |
f6bcfd97 | 4806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTraceMask",_kwnames,&_argo0)) |
f0261a72 RD |
4807 | return NULL; |
4808 | if (_argo0) { | |
4809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTraceMask_p")) { |
4811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetTraceMask. Expected _wxTraceMask_p."); | |
4812 | return NULL; | |
4813 | } | |
4814 | } | |
4815 | { | |
4268f798 | 4816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4817 | wxLog::SetTraceMask(*_arg0); |
f6bcfd97 | 4818 | |
4268f798 RD |
4819 | wxPyEndAllowThreads(__tstate); |
4820 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4821 | } Py_INCREF(Py_None); |
4822 | _resultobj = Py_None; | |
4823 | return _resultobj; | |
4824 | } | |
4825 | ||
4826 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4827 | PyObject * _resultobj; | |
4828 | wxString * _arg0; | |
4829 | PyObject * _obj0 = 0; | |
4830 | char *_kwnames[] = { "str", NULL }; | |
4831 | ||
4832 | self = self; | |
4833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
4834 | return NULL; | |
4835 | { | |
c8bc7bb8 RD |
4836 | _arg0 = wxString_in_helper(_obj0); |
4837 | if (_arg0 == NULL) | |
f6bcfd97 | 4838 | return NULL; |
f6bcfd97 BP |
4839 | } |
4840 | { | |
4268f798 | 4841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4842 | wxLog::AddTraceMask(*_arg0); |
f6bcfd97 | 4843 | |
4268f798 RD |
4844 | wxPyEndAllowThreads(__tstate); |
4845 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4846 | } Py_INCREF(Py_None); |
4847 | _resultobj = Py_None; | |
4848 | { | |
4849 | if (_obj0) | |
4850 | delete _arg0; | |
4851 | } | |
4852 | return _resultobj; | |
4853 | } | |
4854 | ||
4855 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4856 | PyObject * _resultobj; | |
4857 | wxString * _arg0; | |
4858 | PyObject * _obj0 = 0; | |
4859 | char *_kwnames[] = { "str", NULL }; | |
4860 | ||
4861 | self = self; | |
4862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
f0261a72 | 4863 | return NULL; |
f0261a72 | 4864 | { |
c8bc7bb8 RD |
4865 | _arg0 = wxString_in_helper(_obj0); |
4866 | if (_arg0 == NULL) | |
185d7c3e | 4867 | return NULL; |
f0261a72 RD |
4868 | } |
4869 | { | |
4268f798 | 4870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4871 | wxLog::RemoveTraceMask(*_arg0); |
f0261a72 | 4872 | |
4268f798 RD |
4873 | wxPyEndAllowThreads(__tstate); |
4874 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4875 | } Py_INCREF(Py_None); |
4876 | _resultobj = Py_None; | |
f6bcfd97 BP |
4877 | { |
4878 | if (_obj0) | |
4879 | delete _arg0; | |
4880 | } | |
f0261a72 RD |
4881 | return _resultobj; |
4882 | } | |
4883 | ||
76bfdc78 RD |
4884 | static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { |
4885 | PyObject * _resultobj; | |
4886 | char *_kwnames[] = { NULL }; | |
4887 | ||
4888 | self = self; | |
4889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames)) | |
4890 | return NULL; | |
4891 | { | |
4268f798 | 4892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4893 | wxLog::ClearTraceMasks(); |
76bfdc78 | 4894 | |
4268f798 RD |
4895 | wxPyEndAllowThreads(__tstate); |
4896 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
4897 | } Py_INCREF(Py_None); |
4898 | _resultobj = Py_None; | |
4899 | return _resultobj; | |
4900 | } | |
4901 | ||
4902 | static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4903 | PyObject * _resultobj; | |
137b5242 RD |
4904 | wxString * _arg0; |
4905 | PyObject * _obj0 = 0; | |
76bfdc78 RD |
4906 | char *_kwnames[] = { "ts", NULL }; |
4907 | ||
4908 | self = self; | |
137b5242 | 4909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTimestamp",_kwnames,&_obj0)) |
76bfdc78 | 4910 | return NULL; |
137b5242 RD |
4911 | { |
4912 | _arg0 = wxString_in_helper(_obj0); | |
4913 | if (_arg0 == NULL) | |
4914 | return NULL; | |
4915 | } | |
76bfdc78 | 4916 | { |
4268f798 | 4917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 4918 | wxLog::SetTimestamp(*_arg0); |
76bfdc78 | 4919 | |
4268f798 RD |
4920 | wxPyEndAllowThreads(__tstate); |
4921 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
4922 | } Py_INCREF(Py_None); |
4923 | _resultobj = Py_None; | |
137b5242 RD |
4924 | { |
4925 | if (_obj0) | |
4926 | delete _arg0; | |
4927 | } | |
76bfdc78 RD |
4928 | return _resultobj; |
4929 | } | |
4930 | ||
4931 | static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4932 | PyObject * _resultobj; | |
137b5242 | 4933 | wxString * _result; |
76bfdc78 RD |
4934 | char *_kwnames[] = { NULL }; |
4935 | ||
4936 | self = self; | |
4937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames)) | |
4938 | return NULL; | |
4939 | { | |
4268f798 | 4940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 RD |
4941 | const wxString & _result_ref = wxLog::GetTimestamp(); |
4942 | _result = (wxString *) &_result_ref; | |
76bfdc78 | 4943 | |
4268f798 RD |
4944 | wxPyEndAllowThreads(__tstate); |
4945 | if (PyErr_Occurred()) return NULL; | |
137b5242 RD |
4946 | }{ |
4947 | #if wxUSE_UNICODE | |
4948 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4949 | #else | |
4950 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4951 | #endif | |
4952 | } | |
76bfdc78 RD |
4953 | return _resultobj; |
4954 | } | |
4955 | ||
f6bcfd97 BP |
4956 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) |
4957 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
a1df7a95 | 4958 | PyObject * _resultobj; |
f6bcfd97 BP |
4959 | bool _result; |
4960 | wxLog * _arg0; | |
a1df7a95 | 4961 | PyObject * _argo0 = 0; |
f6bcfd97 | 4962 | char *_kwnames[] = { "self", NULL }; |
a1df7a95 RD |
4963 | |
4964 | self = self; | |
f6bcfd97 | 4965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) |
a1df7a95 RD |
4966 | return NULL; |
4967 | if (_argo0) { | |
4968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
a1df7a95 RD |
4971 | return NULL; |
4972 | } | |
4973 | } | |
4974 | { | |
4268f798 | 4975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4976 | _result = (bool )wxLog_GetVerbose(_arg0); |
a1df7a95 | 4977 | |
4268f798 RD |
4978 | wxPyEndAllowThreads(__tstate); |
4979 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 4980 | } _resultobj = Py_BuildValue("i",_result); |
a1df7a95 RD |
4981 | return _resultobj; |
4982 | } | |
4983 | ||
f6bcfd97 | 4984 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
a1df7a95 | 4985 | PyObject * _resultobj; |
f6bcfd97 BP |
4986 | wxTraceMask * _result; |
4987 | char *_kwnames[] = { NULL }; | |
4988 | char _ptemp[128]; | |
a1df7a95 RD |
4989 | |
4990 | self = self; | |
f6bcfd97 | 4991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) |
a1df7a95 | 4992 | return NULL; |
a1df7a95 | 4993 | { |
4268f798 | 4994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4995 | _result = new wxTraceMask (wxLog::GetTraceMask()); |
f6bcfd97 | 4996 | |
4268f798 RD |
4997 | wxPyEndAllowThreads(__tstate); |
4998 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4999 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTraceMask_p"); |
5000 | _resultobj = Py_BuildValue("s",_ptemp); | |
5001 | return _resultobj; | |
a1df7a95 | 5002 | } |
f6bcfd97 BP |
5003 | |
5004 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5005 | PyObject * _resultobj; | |
5006 | bool _result; | |
c8bc7bb8 RD |
5007 | wxString * _arg0; |
5008 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
5009 | char *_kwnames[] = { "mask", NULL }; |
5010 | ||
5011 | self = self; | |
c8bc7bb8 | 5012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_IsAllowedTraceMask",_kwnames,&_obj0)) |
f6bcfd97 | 5013 | return NULL; |
c8bc7bb8 RD |
5014 | { |
5015 | _arg0 = wxString_in_helper(_obj0); | |
5016 | if (_arg0 == NULL) | |
5017 | return NULL; | |
5018 | } | |
a1df7a95 | 5019 | { |
4268f798 | 5020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5021 | _result = (bool )wxLog::IsAllowedTraceMask(*_arg0); |
a1df7a95 | 5022 | |
4268f798 RD |
5023 | wxPyEndAllowThreads(__tstate); |
5024 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5025 | } _resultobj = Py_BuildValue("i",_result); |
c8bc7bb8 RD |
5026 | { |
5027 | if (_obj0) | |
5028 | delete _arg0; | |
5029 | } | |
a1df7a95 RD |
5030 | return _resultobj; |
5031 | } | |
5032 | ||
76bfdc78 RD |
5033 | static wxString wxLog_TimeStamp(wxLog *self) { |
5034 | wxString msg; | |
5035 | wxLog::TimeStamp(&msg); | |
5036 | return msg; | |
5037 | } | |
5038 | static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5039 | PyObject * _resultobj; | |
5040 | wxString * _result; | |
5041 | wxLog * _arg0; | |
5042 | PyObject * _argo0 = 0; | |
5043 | char *_kwnames[] = { "self", NULL }; | |
5044 | ||
5045 | self = self; | |
5046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0)) | |
5047 | return NULL; | |
5048 | if (_argo0) { | |
5049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p."); | |
5052 | return NULL; | |
5053 | } | |
5054 | } | |
5055 | { | |
4268f798 | 5056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5057 | _result = new wxString (wxLog_TimeStamp(_arg0)); |
76bfdc78 | 5058 | |
4268f798 RD |
5059 | wxPyEndAllowThreads(__tstate); |
5060 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 | 5061 | }{ |
c8bc7bb8 RD |
5062 | #if wxUSE_UNICODE |
5063 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5064 | #else | |
76bfdc78 | 5065 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5066 | #endif |
76bfdc78 RD |
5067 | } |
5068 | { | |
5069 | delete _result; | |
5070 | } | |
5071 | return _resultobj; | |
5072 | } | |
5073 | ||
f6bcfd97 BP |
5074 | static void *SwigwxLogStderrTowxLog(void *ptr) { |
5075 | wxLogStderr *src; | |
5076 | wxLog *dest; | |
5077 | src = (wxLogStderr *) ptr; | |
5078 | dest = (wxLog *) src; | |
5079 | return (void *) dest; | |
5080 | } | |
5081 | ||
5082 | #define new_wxLogStderr() (new wxLogStderr()) | |
5083 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5084 | PyObject * _resultobj; |
f6bcfd97 BP |
5085 | wxLogStderr * _result; |
5086 | char *_kwnames[] = { NULL }; | |
5087 | char _ptemp[128]; | |
f0261a72 RD |
5088 | |
5089 | self = self; | |
f6bcfd97 | 5090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) |
f0261a72 | 5091 | return NULL; |
f0261a72 | 5092 | { |
4268f798 | 5093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5094 | _result = (wxLogStderr *)new_wxLogStderr(); |
f0261a72 | 5095 | |
4268f798 RD |
5096 | wxPyEndAllowThreads(__tstate); |
5097 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5098 | } if (_result) { |
5099 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
5100 | _resultobj = Py_BuildValue("s",_ptemp); | |
5101 | } else { | |
5102 | Py_INCREF(Py_None); | |
5103 | _resultobj = Py_None; | |
5104 | } | |
f0261a72 RD |
5105 | return _resultobj; |
5106 | } | |
5107 | ||
f6bcfd97 BP |
5108 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { |
5109 | wxLogTextCtrl *src; | |
5110 | wxLog *dest; | |
5111 | src = (wxLogTextCtrl *) ptr; | |
5112 | dest = (wxLog *) src; | |
5113 | return (void *) dest; | |
5114 | } | |
5115 | ||
5116 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
5117 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5118 | PyObject * _resultobj; |
f6bcfd97 BP |
5119 | wxLogTextCtrl * _result; |
5120 | wxTextCtrl * _arg0; | |
f0261a72 | 5121 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5122 | char *_kwnames[] = { "pTextCtrl", NULL }; |
5123 | char _ptemp[128]; | |
f0261a72 RD |
5124 | |
5125 | self = self; | |
f6bcfd97 | 5126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) |
f0261a72 RD |
5127 | return NULL; |
5128 | if (_argo0) { | |
5129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
5131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
f0261a72 RD |
5132 | return NULL; |
5133 | } | |
5134 | } | |
5135 | { | |
4268f798 | 5136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5137 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); |
f0261a72 | 5138 | |
4268f798 RD |
5139 | wxPyEndAllowThreads(__tstate); |
5140 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5141 | } if (_result) { |
5142 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
5143 | _resultobj = Py_BuildValue("s",_ptemp); | |
5144 | } else { | |
5145 | Py_INCREF(Py_None); | |
5146 | _resultobj = Py_None; | |
5147 | } | |
f0261a72 RD |
5148 | return _resultobj; |
5149 | } | |
5150 | ||
f6bcfd97 BP |
5151 | static void *SwigwxLogGuiTowxLog(void *ptr) { |
5152 | wxLogGui *src; | |
5153 | wxLog *dest; | |
5154 | src = (wxLogGui *) ptr; | |
5155 | dest = (wxLog *) src; | |
5156 | return (void *) dest; | |
5157 | } | |
5158 | ||
5159 | #define new_wxLogGui() (new wxLogGui()) | |
5160 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5161 | PyObject * _resultobj; |
f6bcfd97 | 5162 | wxLogGui * _result; |
b1462dfa RD |
5163 | char *_kwnames[] = { NULL }; |
5164 | char _ptemp[128]; | |
5165 | ||
5166 | self = self; | |
f6bcfd97 | 5167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) |
b1462dfa RD |
5168 | return NULL; |
5169 | { | |
4268f798 | 5170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5171 | _result = (wxLogGui *)new_wxLogGui(); |
b1462dfa | 5172 | |
4268f798 RD |
5173 | wxPyEndAllowThreads(__tstate); |
5174 | if (PyErr_Occurred()) return NULL; | |
b1462dfa | 5175 | } if (_result) { |
f6bcfd97 | 5176 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); |
b1462dfa RD |
5177 | _resultobj = Py_BuildValue("s",_ptemp); |
5178 | } else { | |
5179 | Py_INCREF(Py_None); | |
5180 | _resultobj = Py_None; | |
5181 | } | |
5182 | return _resultobj; | |
5183 | } | |
5184 | ||
f6bcfd97 BP |
5185 | static void *SwigwxLogWindowTowxLog(void *ptr) { |
5186 | wxLogWindow *src; | |
5187 | wxLog *dest; | |
5188 | src = (wxLogWindow *) ptr; | |
5189 | dest = (wxLog *) src; | |
5190 | return (void *) dest; | |
5191 | } | |
5192 | ||
5193 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5194 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5195 | PyObject * _resultobj; |
f6bcfd97 BP |
5196 | wxLogWindow * _result; |
5197 | wxFrame * _arg0; | |
c8bc7bb8 | 5198 | wxString * _arg1; |
f6bcfd97 BP |
5199 | bool _arg2 = (bool ) TRUE; |
5200 | bool _arg3 = (bool ) TRUE; | |
b1462dfa | 5201 | PyObject * _argo0 = 0; |
c8bc7bb8 | 5202 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
5203 | int tempbool2 = (int) TRUE; |
5204 | int tempbool3 = (int) TRUE; | |
5205 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
5206 | char _ptemp[128]; | |
b1462dfa RD |
5207 | |
5208 | self = self; | |
c8bc7bb8 | 5209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:new_wxLogWindow",_kwnames,&_argo0,&_obj1,&tempbool2,&tempbool3)) |
b1462dfa RD |
5210 | return NULL; |
5211 | if (_argo0) { | |
5212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { |
5214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
b1462dfa RD |
5215 | return NULL; |
5216 | } | |
5217 | } | |
c8bc7bb8 RD |
5218 | { |
5219 | _arg1 = wxString_in_helper(_obj1); | |
5220 | if (_arg1 == NULL) | |
5221 | return NULL; | |
5222 | } | |
f6bcfd97 BP |
5223 | _arg2 = (bool ) tempbool2; |
5224 | _arg3 = (bool ) tempbool3; | |
b1462dfa | 5225 | { |
4268f798 | 5226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5227 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,*_arg1,_arg2,_arg3); |
b1462dfa | 5228 | |
4268f798 RD |
5229 | wxPyEndAllowThreads(__tstate); |
5230 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5231 | } if (_result) { |
5232 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
5233 | _resultobj = Py_BuildValue("s",_ptemp); | |
5234 | } else { | |
5235 | Py_INCREF(Py_None); | |
5236 | _resultobj = Py_None; | |
5237 | } | |
c8bc7bb8 RD |
5238 | { |
5239 | if (_obj1) | |
5240 | delete _arg1; | |
5241 | } | |
b1462dfa RD |
5242 | return _resultobj; |
5243 | } | |
5244 | ||
f6bcfd97 BP |
5245 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) |
5246 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5247 | PyObject * _resultobj; |
f6bcfd97 BP |
5248 | wxLogWindow * _arg0; |
5249 | bool _arg1 = (bool ) TRUE; | |
b1462dfa | 5250 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5251 | int tempbool1 = (int) TRUE; |
5252 | char *_kwnames[] = { "self","bShow", NULL }; | |
b1462dfa RD |
5253 | |
5254 | self = self; | |
f6bcfd97 | 5255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) |
b1462dfa RD |
5256 | return NULL; |
5257 | if (_argo0) { | |
5258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5261 | return NULL; |
5262 | } | |
5263 | } | |
f6bcfd97 | 5264 | _arg1 = (bool ) tempbool1; |
b1462dfa | 5265 | { |
4268f798 | 5266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5267 | wxLogWindow_Show(_arg0,_arg1); |
b1462dfa | 5268 | |
4268f798 RD |
5269 | wxPyEndAllowThreads(__tstate); |
5270 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
5271 | } Py_INCREF(Py_None); |
5272 | _resultobj = Py_None; | |
5273 | return _resultobj; | |
5274 | } | |
5275 | ||
f6bcfd97 BP |
5276 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) |
5277 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5278 | PyObject * _resultobj; |
f6bcfd97 BP |
5279 | wxFrame * _result; |
5280 | wxLogWindow * _arg0; | |
b1462dfa | 5281 | PyObject * _argo0 = 0; |
f6bcfd97 | 5282 | char *_kwnames[] = { "self", NULL }; |
b1462dfa RD |
5283 | |
5284 | self = self; | |
f6bcfd97 | 5285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) |
b1462dfa RD |
5286 | return NULL; |
5287 | if (_argo0) { | |
5288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5291 | return NULL; |
5292 | } | |
5293 | } | |
b1462dfa | 5294 | { |
4268f798 | 5295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5296 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); |
b1462dfa | 5297 | |
4268f798 RD |
5298 | wxPyEndAllowThreads(__tstate); |
5299 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 5300 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
5301 | return _resultobj; |
5302 | } | |
5303 | ||
f6bcfd97 BP |
5304 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) |
5305 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5306 | PyObject * _resultobj; |
f6bcfd97 BP |
5307 | wxLog * _result; |
5308 | wxLogWindow * _arg0; | |
b1462dfa | 5309 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5310 | char *_kwnames[] = { "self", NULL }; |
5311 | char _ptemp[128]; | |
b1462dfa RD |
5312 | |
5313 | self = self; | |
f6bcfd97 | 5314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) |
b1462dfa RD |
5315 | return NULL; |
5316 | if (_argo0) { | |
5317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5320 | return NULL; |
5321 | } | |
5322 | } | |
5323 | { | |
4268f798 | 5324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5325 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); |
b1462dfa | 5326 | |
4268f798 RD |
5327 | wxPyEndAllowThreads(__tstate); |
5328 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5329 | } if (_result) { |
5330 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5331 | _resultobj = Py_BuildValue("s",_ptemp); | |
5332 | } else { | |
5333 | Py_INCREF(Py_None); | |
5334 | _resultobj = Py_None; | |
5335 | } | |
b1462dfa RD |
5336 | return _resultobj; |
5337 | } | |
5338 | ||
f6bcfd97 BP |
5339 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) |
5340 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5341 | PyObject * _resultobj; |
f6bcfd97 BP |
5342 | bool _result; |
5343 | wxLogWindow * _arg0; | |
65dd82cb RD |
5344 | PyObject * _argo0 = 0; |
5345 | char *_kwnames[] = { "self", NULL }; | |
5346 | ||
5347 | self = self; | |
f6bcfd97 | 5348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) |
65dd82cb RD |
5349 | return NULL; |
5350 | if (_argo0) { | |
5351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5354 | return NULL; |
5355 | } | |
5356 | } | |
5357 | { | |
4268f798 | 5358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5359 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); |
65dd82cb | 5360 | |
4268f798 RD |
5361 | wxPyEndAllowThreads(__tstate); |
5362 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5363 | } _resultobj = Py_BuildValue("i",_result); |
65dd82cb RD |
5364 | return _resultobj; |
5365 | } | |
5366 | ||
f6bcfd97 BP |
5367 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) |
5368 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5369 | PyObject * _resultobj; |
f6bcfd97 BP |
5370 | wxLogWindow * _arg0; |
5371 | bool _arg1; | |
65dd82cb | 5372 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5373 | int tempbool1; |
5374 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
65dd82cb RD |
5375 | |
5376 | self = self; | |
f6bcfd97 | 5377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) |
65dd82cb RD |
5378 | return NULL; |
5379 | if (_argo0) { | |
5380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5383 | return NULL; |
5384 | } | |
5385 | } | |
f6bcfd97 | 5386 | _arg1 = (bool ) tempbool1; |
65dd82cb | 5387 | { |
4268f798 | 5388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5389 | wxLogWindow_PassMessages(_arg0,_arg1); |
65dd82cb | 5390 | |
4268f798 RD |
5391 | wxPyEndAllowThreads(__tstate); |
5392 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5393 | } Py_INCREF(Py_None); |
5394 | _resultobj = Py_None; | |
65dd82cb RD |
5395 | return _resultobj; |
5396 | } | |
5397 | ||
76bfdc78 RD |
5398 | static void *SwigwxLogChainTowxLog(void *ptr) { |
5399 | wxLogChain *src; | |
5400 | wxLog *dest; | |
5401 | src = (wxLogChain *) ptr; | |
5402 | dest = (wxLog *) src; | |
5403 | return (void *) dest; | |
5404 | } | |
5405 | ||
5406 | #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0)) | |
5407 | static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5408 | PyObject * _resultobj; | |
5409 | wxLogChain * _result; | |
5410 | wxLog * _arg0; | |
5411 | PyObject * _argo0 = 0; | |
5412 | char *_kwnames[] = { "logger", NULL }; | |
5413 | char _ptemp[128]; | |
5414 | ||
5415 | self = self; | |
5416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0)) | |
5417 | return NULL; | |
5418 | if (_argo0) { | |
5419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p."); | |
5422 | return NULL; | |
5423 | } | |
5424 | } | |
5425 | { | |
4268f798 | 5426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5427 | _result = (wxLogChain *)new_wxLogChain(_arg0); |
76bfdc78 | 5428 | |
4268f798 RD |
5429 | wxPyEndAllowThreads(__tstate); |
5430 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5431 | } if (_result) { |
5432 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p"); | |
5433 | _resultobj = Py_BuildValue("s",_ptemp); | |
5434 | } else { | |
5435 | Py_INCREF(Py_None); | |
5436 | _resultobj = Py_None; | |
5437 | } | |
5438 | return _resultobj; | |
5439 | } | |
5440 | ||
5441 | #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0)) | |
5442 | static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5443 | PyObject * _resultobj; | |
5444 | wxLogChain * _arg0; | |
5445 | wxLog * _arg1; | |
5446 | PyObject * _argo0 = 0; | |
5447 | PyObject * _argo1 = 0; | |
5448 | char *_kwnames[] = { "self","logger", NULL }; | |
5449 | ||
5450 | self = self; | |
5451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1)) | |
5452 | return NULL; | |
5453 | if (_argo0) { | |
5454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p."); | |
5457 | return NULL; | |
5458 | } | |
5459 | } | |
5460 | if (_argo1) { | |
5461 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5462 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) { | |
5463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p."); | |
5464 | return NULL; | |
5465 | } | |
5466 | } | |
5467 | { | |
4268f798 | 5468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5469 | wxLogChain_SetLog(_arg0,_arg1); |
76bfdc78 | 5470 | |
4268f798 RD |
5471 | wxPyEndAllowThreads(__tstate); |
5472 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5473 | } Py_INCREF(Py_None); |
5474 | _resultobj = Py_None; | |
5475 | return _resultobj; | |
5476 | } | |
5477 | ||
5478 | #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5479 | static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5480 | PyObject * _resultobj; | |
5481 | wxLogChain * _arg0; | |
5482 | bool _arg1; | |
5483 | PyObject * _argo0 = 0; | |
5484 | int tempbool1; | |
5485 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5486 | ||
5487 | self = self; | |
5488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5489 | return NULL; | |
5490 | if (_argo0) { | |
5491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p."); | |
5494 | return NULL; | |
5495 | } | |
5496 | } | |
5497 | _arg1 = (bool ) tempbool1; | |
5498 | { | |
4268f798 | 5499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5500 | wxLogChain_PassMessages(_arg0,_arg1); |
76bfdc78 | 5501 | |
4268f798 RD |
5502 | wxPyEndAllowThreads(__tstate); |
5503 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5504 | } Py_INCREF(Py_None); |
5505 | _resultobj = Py_None; | |
5506 | return _resultobj; | |
5507 | } | |
5508 | ||
5509 | #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5510 | static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5511 | PyObject * _resultobj; | |
5512 | bool _result; | |
5513 | wxLogChain * _arg0; | |
5514 | PyObject * _argo0 = 0; | |
5515 | char *_kwnames[] = { "self", NULL }; | |
5516 | ||
5517 | self = self; | |
5518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0)) | |
5519 | return NULL; | |
5520 | if (_argo0) { | |
5521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p."); | |
5524 | return NULL; | |
5525 | } | |
5526 | } | |
5527 | { | |
4268f798 | 5528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5529 | _result = (bool )wxLogChain_IsPassingMessages(_arg0); |
76bfdc78 | 5530 | |
4268f798 RD |
5531 | wxPyEndAllowThreads(__tstate); |
5532 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5533 | } _resultobj = Py_BuildValue("i",_result); |
5534 | return _resultobj; | |
5535 | } | |
5536 | ||
5537 | #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5538 | static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5539 | PyObject * _resultobj; | |
5540 | wxLog * _result; | |
5541 | wxLogChain * _arg0; | |
5542 | PyObject * _argo0 = 0; | |
5543 | char *_kwnames[] = { "self", NULL }; | |
5544 | char _ptemp[128]; | |
5545 | ||
5546 | self = self; | |
5547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0)) | |
5548 | return NULL; | |
5549 | if (_argo0) { | |
5550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p."); | |
5553 | return NULL; | |
5554 | } | |
5555 | } | |
5556 | { | |
4268f798 | 5557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5558 | _result = (wxLog *)wxLogChain_GetOldLog(_arg0); |
76bfdc78 | 5559 | |
4268f798 RD |
5560 | wxPyEndAllowThreads(__tstate); |
5561 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5562 | } if (_result) { |
5563 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5564 | _resultobj = Py_BuildValue("s",_ptemp); | |
5565 | } else { | |
5566 | Py_INCREF(Py_None); | |
5567 | _resultobj = Py_None; | |
5568 | } | |
5569 | return _resultobj; | |
5570 | } | |
5571 | ||
19e30148 RD |
5572 | #define new_wxLogNull() (new wxLogNull()) |
5573 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5574 | PyObject * _resultobj; | |
5575 | wxLogNull * _result; | |
5576 | char *_kwnames[] = { NULL }; | |
5577 | char _ptemp[128]; | |
5578 | ||
5579 | self = self; | |
5580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) | |
5581 | return NULL; | |
5582 | { | |
5583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5584 | _result = (wxLogNull *)new_wxLogNull(); | |
5585 | ||
5586 | wxPyEndAllowThreads(__tstate); | |
5587 | if (PyErr_Occurred()) return NULL; | |
5588 | } if (_result) { | |
5589 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); | |
5590 | _resultobj = Py_BuildValue("s",_ptemp); | |
5591 | } else { | |
5592 | Py_INCREF(Py_None); | |
5593 | _resultobj = Py_None; | |
5594 | } | |
5595 | return _resultobj; | |
5596 | } | |
5597 | ||
5598 | #define delete_wxLogNull(_swigobj) (delete _swigobj) | |
5599 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5600 | PyObject * _resultobj; | |
5601 | wxLogNull * _arg0; | |
5602 | PyObject * _argo0 = 0; | |
5603 | char *_kwnames[] = { "self", NULL }; | |
5604 | ||
5605 | self = self; | |
5606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) | |
5607 | return NULL; | |
5608 | if (_argo0) { | |
5609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { | |
5611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
5612 | return NULL; | |
5613 | } | |
5614 | } | |
5615 | { | |
5616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5617 | delete_wxLogNull(_arg0); | |
5618 | ||
5619 | wxPyEndAllowThreads(__tstate); | |
5620 | if (PyErr_Occurred()) return NULL; | |
5621 | } Py_INCREF(Py_None); | |
5622 | _resultobj = Py_None; | |
5623 | return _resultobj; | |
5624 | } | |
5625 | ||
76bfdc78 RD |
5626 | static void *SwigwxPyLogTowxLog(void *ptr) { |
5627 | wxPyLog *src; | |
5628 | wxLog *dest; | |
5629 | src = (wxPyLog *) ptr; | |
5630 | dest = (wxLog *) src; | |
5631 | return (void *) dest; | |
5632 | } | |
5633 | ||
5634 | #define new_wxPyLog() (new wxPyLog()) | |
5635 | static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5636 | PyObject * _resultobj; | |
5637 | wxPyLog * _result; | |
5638 | char *_kwnames[] = { NULL }; | |
5639 | char _ptemp[128]; | |
5640 | ||
5641 | self = self; | |
5642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames)) | |
5643 | return NULL; | |
5644 | { | |
4268f798 | 5645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5646 | _result = (wxPyLog *)new_wxPyLog(); |
76bfdc78 | 5647 | |
4268f798 RD |
5648 | wxPyEndAllowThreads(__tstate); |
5649 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5650 | } if (_result) { |
5651 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p"); | |
5652 | _resultobj = Py_BuildValue("s",_ptemp); | |
5653 | } else { | |
5654 | Py_INCREF(Py_None); | |
5655 | _resultobj = Py_None; | |
5656 | } | |
5657 | return _resultobj; | |
5658 | } | |
5659 | ||
0122b7e3 RD |
5660 | #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
5661 | static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
76bfdc78 RD |
5662 | PyObject * _resultobj; |
5663 | wxPyLog * _arg0; | |
5664 | PyObject * _arg1; | |
5665 | PyObject * _arg2; | |
5666 | PyObject * _argo0 = 0; | |
5667 | PyObject * _obj1 = 0; | |
5668 | PyObject * _obj2 = 0; | |
5669 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5670 | ||
5671 | self = self; | |
0122b7e3 | 5672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
76bfdc78 RD |
5673 | return NULL; |
5674 | if (_argo0) { | |
5675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
0122b7e3 | 5677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p."); |
76bfdc78 RD |
5678 | return NULL; |
5679 | } | |
5680 | } | |
5681 | { | |
5682 | _arg1 = _obj1; | |
5683 | } | |
5684 | { | |
5685 | _arg2 = _obj2; | |
5686 | } | |
5687 | { | |
4268f798 | 5688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5689 | wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2); |
76bfdc78 | 5690 | |
4268f798 RD |
5691 | wxPyEndAllowThreads(__tstate); |
5692 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5693 | } Py_INCREF(Py_None); |
5694 | _resultobj = Py_None; | |
5695 | return _resultobj; | |
5696 | } | |
5697 | ||
5698 | static void wxPyLog_Destroy(wxPyLog *self) { delete self; } | |
5699 | static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5700 | PyObject * _resultobj; | |
5701 | wxPyLog * _arg0; | |
5702 | PyObject * _argo0 = 0; | |
5703 | char *_kwnames[] = { "self", NULL }; | |
5704 | ||
5705 | self = self; | |
5706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0)) | |
5707 | return NULL; | |
5708 | if (_argo0) { | |
5709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p."); | |
5712 | return NULL; | |
5713 | } | |
5714 | } | |
5715 | { | |
4268f798 | 5716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5717 | wxPyLog_Destroy(_arg0); |
76bfdc78 | 5718 | |
4268f798 RD |
5719 | wxPyEndAllowThreads(__tstate); |
5720 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5721 | } Py_INCREF(Py_None); |
5722 | _resultobj = Py_None; | |
5723 | return _resultobj; | |
5724 | } | |
5725 | ||
c368d904 RD |
5726 | static void *SwigwxProcessEventTowxEvent(void *ptr) { |
5727 | wxProcessEvent *src; | |
5728 | wxEvent *dest; | |
5729 | src = (wxProcessEvent *) ptr; | |
5730 | dest = (wxEvent *) src; | |
5731 | return (void *) dest; | |
5732 | } | |
5733 | ||
9416aa89 RD |
5734 | static void *SwigwxProcessEventTowxObject(void *ptr) { |
5735 | wxProcessEvent *src; | |
5736 | wxObject *dest; | |
5737 | src = (wxProcessEvent *) ptr; | |
5738 | dest = (wxObject *) src; | |
5739 | return (void *) dest; | |
5740 | } | |
5741 | ||
c368d904 RD |
5742 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) |
5743 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5744 | PyObject * _resultobj; | |
5745 | wxProcessEvent * _result; | |
5746 | int _arg0 = (int ) 0; | |
5747 | int _arg1 = (int ) 0; | |
5748 | int _arg2 = (int ) 0; | |
5749 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
5750 | char _ptemp[128]; | |
5751 | ||
5752 | self = self; | |
5753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
5754 | return NULL; | |
5755 | { | |
4268f798 | 5756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5757 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); |
c368d904 | 5758 | |
4268f798 RD |
5759 | wxPyEndAllowThreads(__tstate); |
5760 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5761 | } if (_result) { |
5762 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
5763 | _resultobj = Py_BuildValue("s",_ptemp); | |
5764 | } else { | |
5765 | Py_INCREF(Py_None); | |
5766 | _resultobj = Py_None; | |
5767 | } | |
5768 | return _resultobj; | |
5769 | } | |
5770 | ||
5771 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
5772 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5773 | PyObject * _resultobj; | |
5774 | int _result; | |
5775 | wxProcessEvent * _arg0; | |
5776 | PyObject * _argo0 = 0; | |
5777 | char *_kwnames[] = { "self", NULL }; | |
5778 | ||
5779 | self = self; | |
5780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
5781 | return NULL; | |
5782 | if (_argo0) { | |
5783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
5786 | return NULL; | |
5787 | } | |
5788 | } | |
5789 | { | |
4268f798 | 5790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5791 | _result = (int )wxProcessEvent_GetPid(_arg0); |
c368d904 | 5792 | |
4268f798 RD |
5793 | wxPyEndAllowThreads(__tstate); |
5794 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5795 | } _resultobj = Py_BuildValue("i",_result); |
5796 | return _resultobj; | |
5797 | } | |
5798 | ||
5799 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
5800 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5801 | PyObject * _resultobj; | |
5802 | int _result; | |
5803 | wxProcessEvent * _arg0; | |
5804 | PyObject * _argo0 = 0; | |
5805 | char *_kwnames[] = { "self", NULL }; | |
5806 | ||
5807 | self = self; | |
5808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
5809 | return NULL; | |
5810 | if (_argo0) { | |
5811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
5814 | return NULL; | |
5815 | } | |
5816 | } | |
5817 | { | |
4268f798 | 5818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5819 | _result = (int )wxProcessEvent_GetExitCode(_arg0); |
c368d904 | 5820 | |
4268f798 RD |
5821 | wxPyEndAllowThreads(__tstate); |
5822 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5823 | } _resultobj = Py_BuildValue("i",_result); |
5824 | return _resultobj; | |
5825 | } | |
5826 | ||
5827 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
5828 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5829 | PyObject * _resultobj; | |
5830 | int _result; | |
5831 | wxProcessEvent * _arg0; | |
5832 | int _arg1; | |
5833 | PyObject * _argo0 = 0; | |
5834 | char *_kwnames[] = { "self","m_pid", NULL }; | |
5835 | ||
5836 | self = self; | |
5837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
5838 | return NULL; | |
5839 | if (_argo0) { | |
5840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
5843 | return NULL; | |
5844 | } | |
5845 | } | |
5846 | { | |
4268f798 | 5847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5848 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); |
c368d904 | 5849 | |
4268f798 RD |
5850 | wxPyEndAllowThreads(__tstate); |
5851 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5852 | } _resultobj = Py_BuildValue("i",_result); |
5853 | return _resultobj; | |
5854 | } | |
5855 | ||
5856 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
5857 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5858 | PyObject * _resultobj; | |
5859 | int _result; | |
5860 | wxProcessEvent * _arg0; | |
5861 | PyObject * _argo0 = 0; | |
5862 | char *_kwnames[] = { "self", NULL }; | |
5863 | ||
5864 | self = self; | |
5865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
5866 | return NULL; | |
5867 | if (_argo0) { | |
5868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
5871 | return NULL; | |
5872 | } | |
5873 | } | |
5874 | { | |
4268f798 | 5875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5876 | _result = (int )wxProcessEvent_m_pid_get(_arg0); |
c368d904 | 5877 | |
4268f798 RD |
5878 | wxPyEndAllowThreads(__tstate); |
5879 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5880 | } _resultobj = Py_BuildValue("i",_result); |
5881 | return _resultobj; | |
5882 | } | |
5883 | ||
5884 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
5885 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5886 | PyObject * _resultobj; | |
5887 | int _result; | |
5888 | wxProcessEvent * _arg0; | |
5889 | int _arg1; | |
5890 | PyObject * _argo0 = 0; | |
5891 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
5892 | ||
5893 | self = self; | |
5894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
5895 | return NULL; | |
5896 | if (_argo0) { | |
5897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
5900 | return NULL; | |
5901 | } | |
5902 | } | |
5903 | { | |
4268f798 | 5904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5905 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); |
c368d904 | 5906 | |
4268f798 RD |
5907 | wxPyEndAllowThreads(__tstate); |
5908 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5909 | } _resultobj = Py_BuildValue("i",_result); |
5910 | return _resultobj; | |
5911 | } | |
5912 | ||
5913 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
5914 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5915 | PyObject * _resultobj; | |
5916 | int _result; | |
5917 | wxProcessEvent * _arg0; | |
5918 | PyObject * _argo0 = 0; | |
5919 | char *_kwnames[] = { "self", NULL }; | |
5920 | ||
5921 | self = self; | |
5922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
5923 | return NULL; | |
5924 | if (_argo0) { | |
5925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
5928 | return NULL; | |
5929 | } | |
5930 | } | |
5931 | { | |
4268f798 | 5932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5933 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); |
c368d904 | 5934 | |
4268f798 RD |
5935 | wxPyEndAllowThreads(__tstate); |
5936 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5937 | } _resultobj = Py_BuildValue("i",_result); |
5938 | return _resultobj; | |
5939 | } | |
5940 | ||
5941 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
5942 | wxPyProcess *src; | |
5943 | wxEvtHandler *dest; | |
5944 | src = (wxPyProcess *) ptr; | |
5945 | dest = (wxEvtHandler *) src; | |
5946 | return (void *) dest; | |
5947 | } | |
5948 | ||
9416aa89 RD |
5949 | static void *SwigwxPyProcessTowxObject(void *ptr) { |
5950 | wxPyProcess *src; | |
5951 | wxObject *dest; | |
5952 | src = (wxPyProcess *) ptr; | |
5953 | dest = (wxObject *) src; | |
5954 | return (void *) dest; | |
5955 | } | |
5956 | ||
c368d904 RD |
5957 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) |
5958 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5959 | PyObject * _resultobj; | |
5960 | wxPyProcess * _result; | |
5961 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
5962 | int _arg1 = (int ) -1; | |
5963 | PyObject * _argo0 = 0; | |
5964 | char *_kwnames[] = { "parent","id", NULL }; | |
5965 | char _ptemp[128]; | |
5966 | ||
5967 | self = self; | |
5968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
5969 | return NULL; | |
5970 | if (_argo0) { | |
5971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
5973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
5974 | return NULL; | |
5975 | } | |
5976 | } | |
5977 | { | |
4268f798 | 5978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5979 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); |
c368d904 | 5980 | |
4268f798 RD |
5981 | wxPyEndAllowThreads(__tstate); |
5982 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5983 | } if (_result) { |
5984 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
5985 | _resultobj = Py_BuildValue("s",_ptemp); | |
5986 | } else { | |
5987 | Py_INCREF(Py_None); | |
5988 | _resultobj = Py_None; | |
5989 | } | |
5990 | return _resultobj; | |
5991 | } | |
5992 | ||
5993 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
5994 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5995 | PyObject * _resultobj; | |
5996 | wxPyProcess * _arg0; | |
5997 | PyObject * _argo0 = 0; | |
5998 | char *_kwnames[] = { "self", NULL }; | |
5999 | ||
6000 | self = self; | |
6001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
6002 | return NULL; | |
6003 | if (_argo0) { | |
6004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
6007 | return NULL; | |
6008 | } | |
6009 | } | |
6010 | { | |
4268f798 | 6011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6012 | wxPyProcess_Destroy(_arg0); |
c368d904 | 6013 | |
4268f798 RD |
6014 | wxPyEndAllowThreads(__tstate); |
6015 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6016 | } Py_INCREF(Py_None); |
6017 | _resultobj = Py_None; | |
6018 | return _resultobj; | |
6019 | } | |
6020 | ||
0122b7e3 RD |
6021 | #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6022 | static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c368d904 RD |
6023 | PyObject * _resultobj; |
6024 | wxPyProcess * _arg0; | |
6025 | PyObject * _arg1; | |
6026 | PyObject * _arg2; | |
6027 | PyObject * _argo0 = 0; | |
6028 | PyObject * _obj1 = 0; | |
6029 | PyObject * _obj2 = 0; | |
6030 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6031 | ||
6032 | self = self; | |
0122b7e3 | 6033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
c368d904 RD |
6034 | return NULL; |
6035 | if (_argo0) { | |
6036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
0122b7e3 | 6038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p."); |
c368d904 RD |
6039 | return NULL; |
6040 | } | |
6041 | } | |
6042 | { | |
6043 | _arg1 = _obj1; | |
6044 | } | |
6045 | { | |
6046 | _arg2 = _obj2; | |
6047 | } | |
6048 | { | |
4268f798 | 6049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6050 | wxProcess__setCallbackInfo(_arg0,_arg1,_arg2); |
c368d904 | 6051 | |
4268f798 RD |
6052 | wxPyEndAllowThreads(__tstate); |
6053 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6054 | } Py_INCREF(Py_None); |
6055 | _resultobj = Py_None; | |
6056 | return _resultobj; | |
6057 | } | |
6058 | ||
6059 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
6060 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6061 | PyObject * _resultobj; | |
6062 | wxPyProcess * _arg0; | |
6063 | int _arg1; | |
6064 | int _arg2; | |
6065 | PyObject * _argo0 = 0; | |
6066 | char *_kwnames[] = { "self","pid","status", NULL }; | |
6067 | ||
6068 | self = self; | |
6069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6070 | return NULL; | |
6071 | if (_argo0) { | |
6072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
6075 | return NULL; | |
6076 | } | |
6077 | } | |
6078 | { | |
4268f798 | 6079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6080 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); |
c368d904 | 6081 | |
4268f798 RD |
6082 | wxPyEndAllowThreads(__tstate); |
6083 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6084 | } Py_INCREF(Py_None); |
6085 | _resultobj = Py_None; | |
6086 | return _resultobj; | |
6087 | } | |
6088 | ||
6089 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
6090 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6091 | PyObject * _resultobj; | |
6092 | wxPyProcess * _arg0; | |
6093 | PyObject * _argo0 = 0; | |
6094 | char *_kwnames[] = { "self", NULL }; | |
6095 | ||
6096 | self = self; | |
6097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
6098 | return NULL; | |
6099 | if (_argo0) { | |
6100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
6103 | return NULL; | |
6104 | } | |
6105 | } | |
6106 | { | |
4268f798 | 6107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6108 | wxProcess_Redirect(_arg0); |
c368d904 | 6109 | |
4268f798 RD |
6110 | wxPyEndAllowThreads(__tstate); |
6111 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6112 | } Py_INCREF(Py_None); |
6113 | _resultobj = Py_None; | |
6114 | return _resultobj; | |
6115 | } | |
6116 | ||
6117 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
6118 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6119 | PyObject * _resultobj; | |
6120 | bool _result; | |
6121 | wxPyProcess * _arg0; | |
6122 | PyObject * _argo0 = 0; | |
6123 | char *_kwnames[] = { "self", NULL }; | |
6124 | ||
6125 | self = self; | |
6126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
6127 | return NULL; | |
6128 | if (_argo0) { | |
6129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
6132 | return NULL; | |
6133 | } | |
6134 | } | |
6135 | { | |
4268f798 | 6136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6137 | _result = (bool )wxProcess_IsRedirected(_arg0); |
c368d904 | 6138 | |
4268f798 RD |
6139 | wxPyEndAllowThreads(__tstate); |
6140 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6141 | } _resultobj = Py_BuildValue("i",_result); |
6142 | return _resultobj; | |
6143 | } | |
6144 | ||
6145 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
6146 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6147 | PyObject * _resultobj; | |
6148 | wxPyProcess * _arg0; | |
6149 | PyObject * _argo0 = 0; | |
6150 | char *_kwnames[] = { "self", NULL }; | |
6151 | ||
6152 | self = self; | |
6153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
6154 | return NULL; | |
6155 | if (_argo0) { | |
6156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
6159 | return NULL; | |
6160 | } | |
6161 | } | |
6162 | { | |
4268f798 | 6163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6164 | wxProcess_Detach(_arg0); |
c368d904 | 6165 | |
4268f798 RD |
6166 | wxPyEndAllowThreads(__tstate); |
6167 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6168 | } Py_INCREF(Py_None); |
6169 | _resultobj = Py_None; | |
6170 | return _resultobj; | |
6171 | } | |
6172 | ||
6173 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
6174 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6175 | PyObject * _resultobj; | |
6176 | wxInputStream * _result; | |
6177 | wxPyProcess * _arg0; | |
6178 | PyObject * _argo0 = 0; | |
6179 | char *_kwnames[] = { "self", NULL }; | |
6180 | ||
6181 | self = self; | |
6182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
6183 | return NULL; | |
6184 | if (_argo0) { | |
6185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
6188 | return NULL; | |
6189 | } | |
6190 | } | |
6191 | { | |
4268f798 | 6192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6193 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); |
c368d904 | 6194 | |
4268f798 RD |
6195 | wxPyEndAllowThreads(__tstate); |
6196 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6197 | }{ |
6198 | wxPyInputStream * _ptr = NULL; | |
6199 | ||
6200 | if (_result) { | |
6201 | _ptr = new wxPyInputStream(_result); | |
6202 | } | |
9416aa89 | 6203 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6204 | } |
6205 | return _resultobj; | |
6206 | } | |
6207 | ||
6208 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
6209 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6210 | PyObject * _resultobj; | |
6211 | wxInputStream * _result; | |
6212 | wxPyProcess * _arg0; | |
6213 | PyObject * _argo0 = 0; | |
6214 | char *_kwnames[] = { "self", NULL }; | |
6215 | ||
6216 | self = self; | |
6217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
6218 | return NULL; | |
6219 | if (_argo0) { | |
6220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
6223 | return NULL; | |
6224 | } | |
6225 | } | |
6226 | { | |
4268f798 | 6227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6228 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); |
c368d904 | 6229 | |
4268f798 RD |
6230 | wxPyEndAllowThreads(__tstate); |
6231 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6232 | }{ |
6233 | wxPyInputStream * _ptr = NULL; | |
6234 | ||
6235 | if (_result) { | |
6236 | _ptr = new wxPyInputStream(_result); | |
6237 | } | |
9416aa89 | 6238 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6239 | } |
6240 | return _resultobj; | |
6241 | } | |
6242 | ||
6243 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
6244 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6245 | PyObject * _resultobj; | |
6246 | wxOutputStream * _result; | |
6247 | wxPyProcess * _arg0; | |
6248 | PyObject * _argo0 = 0; | |
6249 | char *_kwnames[] = { "self", NULL }; | |
6250 | char _ptemp[128]; | |
6251 | ||
6252 | self = self; | |
6253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
6254 | return NULL; | |
6255 | if (_argo0) { | |
6256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
6259 | return NULL; | |
6260 | } | |
6261 | } | |
6262 | { | |
4268f798 | 6263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6264 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); |
c368d904 | 6265 | |
4268f798 RD |
6266 | wxPyEndAllowThreads(__tstate); |
6267 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6268 | } if (_result) { |
6269 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
6270 | _resultobj = Py_BuildValue("s",_ptemp); | |
6271 | } else { | |
6272 | Py_INCREF(Py_None); | |
6273 | _resultobj = Py_None; | |
6274 | } | |
6275 | return _resultobj; | |
6276 | } | |
6277 | ||
6278 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
6279 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6280 | PyObject * _resultobj; | |
6281 | wxPyProcess * _arg0; | |
6282 | PyObject * _argo0 = 0; | |
6283 | char *_kwnames[] = { "self", NULL }; | |
6284 | ||
6285 | self = self; | |
6286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
6287 | return NULL; | |
6288 | if (_argo0) { | |
6289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
6292 | return NULL; | |
6293 | } | |
6294 | } | |
6295 | { | |
4268f798 | 6296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6297 | wxProcess_CloseOutput(_arg0); |
c368d904 | 6298 | |
4268f798 RD |
6299 | wxPyEndAllowThreads(__tstate); |
6300 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6301 | } Py_INCREF(Py_None); |
6302 | _resultobj = Py_None; | |
6303 | return _resultobj; | |
6304 | } | |
6305 | ||
9416aa89 RD |
6306 | static void *SwigwxJoystickTowxObject(void *ptr) { |
6307 | wxJoystick *src; | |
6308 | wxObject *dest; | |
6309 | src = (wxJoystick *) ptr; | |
6310 | dest = (wxObject *) src; | |
6311 | return (void *) dest; | |
6312 | } | |
6313 | ||
185d7c3e RD |
6314 | #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0)) |
6315 | static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6316 | PyObject * _resultobj; | |
6317 | wxJoystick * _result; | |
6318 | int _arg0 = (int ) wxJOYSTICK1; | |
6319 | char *_kwnames[] = { "joystick", NULL }; | |
6320 | char _ptemp[128]; | |
6321 | ||
6322 | self = self; | |
6323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0)) | |
6324 | return NULL; | |
6325 | { | |
4268f798 | 6326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6327 | _result = (wxJoystick *)new_wxJoystick(_arg0); |
185d7c3e | 6328 | |
4268f798 RD |
6329 | wxPyEndAllowThreads(__tstate); |
6330 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6331 | } if (_result) { |
6332 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p"); | |
6333 | _resultobj = Py_BuildValue("s",_ptemp); | |
6334 | } else { | |
6335 | Py_INCREF(Py_None); | |
6336 | _resultobj = Py_None; | |
6337 | } | |
6338 | return _resultobj; | |
6339 | } | |
6340 | ||
ac346f50 RD |
6341 | #define delete_wxJoystick(_swigobj) (delete _swigobj) |
6342 | static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6343 | PyObject * _resultobj; | |
6344 | wxJoystick * _arg0; | |
6345 | PyObject * _argo0 = 0; | |
6346 | char *_kwnames[] = { "self", NULL }; | |
6347 | ||
6348 | self = self; | |
6349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0)) | |
6350 | return NULL; | |
6351 | if (_argo0) { | |
6352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p."); | |
6355 | return NULL; | |
6356 | } | |
6357 | } | |
6358 | { | |
4268f798 | 6359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6360 | delete_wxJoystick(_arg0); |
ac346f50 | 6361 | |
4268f798 RD |
6362 | wxPyEndAllowThreads(__tstate); |
6363 | if (PyErr_Occurred()) return NULL; | |
ac346f50 RD |
6364 | } Py_INCREF(Py_None); |
6365 | _resultobj = Py_None; | |
6366 | return _resultobj; | |
6367 | } | |
6368 | ||
185d7c3e RD |
6369 | #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition()) |
6370 | static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6371 | PyObject * _resultobj; | |
6372 | wxPoint * _result; | |
6373 | wxJoystick * _arg0; | |
6374 | PyObject * _argo0 = 0; | |
6375 | char *_kwnames[] = { "self", NULL }; | |
6376 | char _ptemp[128]; | |
6377 | ||
6378 | self = self; | |
6379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0)) | |
6380 | return NULL; | |
6381 | if (_argo0) { | |
6382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p."); | |
6385 | return NULL; | |
6386 | } | |
6387 | } | |
6388 | { | |
4268f798 | 6389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6390 | _result = new wxPoint (wxJoystick_GetPosition(_arg0)); |
185d7c3e | 6391 | |
4268f798 RD |
6392 | wxPyEndAllowThreads(__tstate); |
6393 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6394 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
6395 | _resultobj = Py_BuildValue("s",_ptemp); | |
6396 | return _resultobj; | |
6397 | } | |
6398 | ||
6399 | #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition()) | |
6400 | static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6401 | PyObject * _resultobj; | |
6402 | int _result; | |
6403 | wxJoystick * _arg0; | |
6404 | PyObject * _argo0 = 0; | |
6405 | char *_kwnames[] = { "self", NULL }; | |
6406 | ||
6407 | self = self; | |
6408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0)) | |
6409 | return NULL; | |
6410 | if (_argo0) { | |
6411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p."); | |
6414 | return NULL; | |
6415 | } | |
6416 | } | |
6417 | { | |
4268f798 | 6418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6419 | _result = (int )wxJoystick_GetZPosition(_arg0); |
185d7c3e | 6420 | |
4268f798 RD |
6421 | wxPyEndAllowThreads(__tstate); |
6422 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6423 | } _resultobj = Py_BuildValue("i",_result); |
6424 | return _resultobj; | |
6425 | } | |
6426 | ||
6427 | #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState()) | |
6428 | static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6429 | PyObject * _resultobj; | |
6430 | int _result; | |
6431 | wxJoystick * _arg0; | |
6432 | PyObject * _argo0 = 0; | |
6433 | char *_kwnames[] = { "self", NULL }; | |
6434 | ||
6435 | self = self; | |
6436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0)) | |
6437 | return NULL; | |
6438 | if (_argo0) { | |
6439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p."); | |
6442 | return NULL; | |
6443 | } | |
6444 | } | |
6445 | { | |
4268f798 | 6446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6447 | _result = (int )wxJoystick_GetButtonState(_arg0); |
185d7c3e | 6448 | |
4268f798 RD |
6449 | wxPyEndAllowThreads(__tstate); |
6450 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6451 | } _resultobj = Py_BuildValue("i",_result); |
6452 | return _resultobj; | |
6453 | } | |
6454 | ||
6455 | #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition()) | |
6456 | static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6457 | PyObject * _resultobj; | |
6458 | int _result; | |
6459 | wxJoystick * _arg0; | |
6460 | PyObject * _argo0 = 0; | |
6461 | char *_kwnames[] = { "self", NULL }; | |
6462 | ||
6463 | self = self; | |
6464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0)) | |
6465 | return NULL; | |
6466 | if (_argo0) { | |
6467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p."); | |
6470 | return NULL; | |
6471 | } | |
6472 | } | |
6473 | { | |
4268f798 | 6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6475 | _result = (int )wxJoystick_GetPOVPosition(_arg0); |
185d7c3e | 6476 | |
4268f798 RD |
6477 | wxPyEndAllowThreads(__tstate); |
6478 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6479 | } _resultobj = Py_BuildValue("i",_result); |
6480 | return _resultobj; | |
6481 | } | |
6482 | ||
6483 | #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition()) | |
6484 | static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6485 | PyObject * _resultobj; | |
6486 | int _result; | |
6487 | wxJoystick * _arg0; | |
6488 | PyObject * _argo0 = 0; | |
6489 | char *_kwnames[] = { "self", NULL }; | |
6490 | ||
6491 | self = self; | |
6492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0)) | |
6493 | return NULL; | |
6494 | if (_argo0) { | |
6495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p."); | |
6498 | return NULL; | |
6499 | } | |
6500 | } | |
6501 | { | |
4268f798 | 6502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6503 | _result = (int )wxJoystick_GetPOVCTSPosition(_arg0); |
185d7c3e | 6504 | |
4268f798 RD |
6505 | wxPyEndAllowThreads(__tstate); |
6506 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6507 | } _resultobj = Py_BuildValue("i",_result); |
6508 | return _resultobj; | |
6509 | } | |
6510 | ||
6511 | #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition()) | |
6512 | static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6513 | PyObject * _resultobj; | |
6514 | int _result; | |
6515 | wxJoystick * _arg0; | |
6516 | PyObject * _argo0 = 0; | |
6517 | char *_kwnames[] = { "self", NULL }; | |
6518 | ||
6519 | self = self; | |
6520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0)) | |
6521 | return NULL; | |
6522 | if (_argo0) { | |
6523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p."); | |
6526 | return NULL; | |
6527 | } | |
6528 | } | |
6529 | { | |
4268f798 | 6530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6531 | _result = (int )wxJoystick_GetRudderPosition(_arg0); |
185d7c3e | 6532 | |
4268f798 RD |
6533 | wxPyEndAllowThreads(__tstate); |
6534 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6535 | } _resultobj = Py_BuildValue("i",_result); |
6536 | return _resultobj; | |
6537 | } | |
6538 | ||
6539 | #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition()) | |
6540 | static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6541 | PyObject * _resultobj; | |
6542 | int _result; | |
6543 | wxJoystick * _arg0; | |
6544 | PyObject * _argo0 = 0; | |
6545 | char *_kwnames[] = { "self", NULL }; | |
6546 | ||
6547 | self = self; | |
6548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0)) | |
6549 | return NULL; | |
6550 | if (_argo0) { | |
6551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p."); | |
6554 | return NULL; | |
6555 | } | |
6556 | } | |
6557 | { | |
4268f798 | 6558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6559 | _result = (int )wxJoystick_GetUPosition(_arg0); |
185d7c3e | 6560 | |
4268f798 RD |
6561 | wxPyEndAllowThreads(__tstate); |
6562 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6563 | } _resultobj = Py_BuildValue("i",_result); |
6564 | return _resultobj; | |
6565 | } | |
6566 | ||
6567 | #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition()) | |
6568 | static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6569 | PyObject * _resultobj; | |
6570 | int _result; | |
6571 | wxJoystick * _arg0; | |
6572 | PyObject * _argo0 = 0; | |
6573 | char *_kwnames[] = { "self", NULL }; | |
6574 | ||
6575 | self = self; | |
6576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0)) | |
6577 | return NULL; | |
6578 | if (_argo0) { | |
6579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p."); | |
6582 | return NULL; | |
6583 | } | |
6584 | } | |
6585 | { | |
4268f798 | 6586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6587 | _result = (int )wxJoystick_GetVPosition(_arg0); |
185d7c3e | 6588 | |
4268f798 RD |
6589 | wxPyEndAllowThreads(__tstate); |
6590 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6591 | } _resultobj = Py_BuildValue("i",_result); |
6592 | return _resultobj; | |
6593 | } | |
6594 | ||
6595 | #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold()) | |
6596 | static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6597 | PyObject * _resultobj; | |
6598 | int _result; | |
6599 | wxJoystick * _arg0; | |
6600 | PyObject * _argo0 = 0; | |
6601 | char *_kwnames[] = { "self", NULL }; | |
6602 | ||
6603 | self = self; | |
6604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0)) | |
6605 | return NULL; | |
6606 | if (_argo0) { | |
6607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p."); | |
6610 | return NULL; | |
6611 | } | |
6612 | } | |
6613 | { | |
4268f798 | 6614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6615 | _result = (int )wxJoystick_GetMovementThreshold(_arg0); |
185d7c3e | 6616 | |
4268f798 RD |
6617 | wxPyEndAllowThreads(__tstate); |
6618 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6619 | } _resultobj = Py_BuildValue("i",_result); |
6620 | return _resultobj; | |
6621 | } | |
6622 | ||
6623 | #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0)) | |
6624 | static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6625 | PyObject * _resultobj; | |
6626 | wxJoystick * _arg0; | |
6627 | int _arg1; | |
6628 | PyObject * _argo0 = 0; | |
6629 | char *_kwnames[] = { "self","threshold", NULL }; | |
6630 | ||
6631 | self = self; | |
6632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1)) | |
6633 | return NULL; | |
6634 | if (_argo0) { | |
6635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p."); | |
6638 | return NULL; | |
6639 | } | |
6640 | } | |
6641 | { | |
4268f798 | 6642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6643 | wxJoystick_SetMovementThreshold(_arg0,_arg1); |
185d7c3e | 6644 | |
4268f798 RD |
6645 | wxPyEndAllowThreads(__tstate); |
6646 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6647 | } Py_INCREF(Py_None); |
6648 | _resultobj = Py_None; | |
6649 | return _resultobj; | |
6650 | } | |
6651 | ||
6652 | #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk()) | |
6653 | static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6654 | PyObject * _resultobj; | |
6655 | bool _result; | |
6656 | wxJoystick * _arg0; | |
6657 | PyObject * _argo0 = 0; | |
6658 | char *_kwnames[] = { "self", NULL }; | |
6659 | ||
6660 | self = self; | |
6661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0)) | |
6662 | return NULL; | |
6663 | if (_argo0) { | |
6664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p."); | |
6667 | return NULL; | |
6668 | } | |
6669 | } | |
6670 | { | |
4268f798 | 6671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6672 | _result = (bool )wxJoystick_IsOk(_arg0); |
185d7c3e | 6673 | |
4268f798 RD |
6674 | wxPyEndAllowThreads(__tstate); |
6675 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6676 | } _resultobj = Py_BuildValue("i",_result); |
6677 | return _resultobj; | |
6678 | } | |
6679 | ||
6680 | #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks()) | |
6681 | static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6682 | PyObject * _resultobj; | |
6683 | int _result; | |
6684 | wxJoystick * _arg0; | |
6685 | PyObject * _argo0 = 0; | |
6686 | char *_kwnames[] = { "self", NULL }; | |
6687 | ||
6688 | self = self; | |
6689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0)) | |
6690 | return NULL; | |
6691 | if (_argo0) { | |
6692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p."); | |
6695 | return NULL; | |
6696 | } | |
6697 | } | |
6698 | { | |
4268f798 | 6699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6700 | _result = (int )wxJoystick_GetNumberJoysticks(_arg0); |
185d7c3e | 6701 | |
4268f798 RD |
6702 | wxPyEndAllowThreads(__tstate); |
6703 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6704 | } _resultobj = Py_BuildValue("i",_result); |
6705 | return _resultobj; | |
6706 | } | |
6707 | ||
6708 | #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId()) | |
6709 | static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6710 | PyObject * _resultobj; | |
6711 | int _result; | |
6712 | wxJoystick * _arg0; | |
6713 | PyObject * _argo0 = 0; | |
6714 | char *_kwnames[] = { "self", NULL }; | |
6715 | ||
6716 | self = self; | |
6717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0)) | |
6718 | return NULL; | |
6719 | if (_argo0) { | |
6720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p."); | |
6723 | return NULL; | |
6724 | } | |
6725 | } | |
6726 | { | |
4268f798 | 6727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6728 | _result = (int )wxJoystick_GetManufacturerId(_arg0); |
185d7c3e | 6729 | |
4268f798 RD |
6730 | wxPyEndAllowThreads(__tstate); |
6731 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6732 | } _resultobj = Py_BuildValue("i",_result); |
6733 | return _resultobj; | |
6734 | } | |
6735 | ||
6736 | #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId()) | |
6737 | static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6738 | PyObject * _resultobj; | |
6739 | int _result; | |
6740 | wxJoystick * _arg0; | |
6741 | PyObject * _argo0 = 0; | |
6742 | char *_kwnames[] = { "self", NULL }; | |
6743 | ||
6744 | self = self; | |
6745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0)) | |
6746 | return NULL; | |
6747 | if (_argo0) { | |
6748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p."); | |
6751 | return NULL; | |
6752 | } | |
6753 | } | |
6754 | { | |
4268f798 | 6755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6756 | _result = (int )wxJoystick_GetProductId(_arg0); |
185d7c3e | 6757 | |
4268f798 RD |
6758 | wxPyEndAllowThreads(__tstate); |
6759 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6760 | } _resultobj = Py_BuildValue("i",_result); |
6761 | return _resultobj; | |
6762 | } | |
6763 | ||
6764 | #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName()) | |
6765 | static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6766 | PyObject * _resultobj; | |
6767 | wxString * _result; | |
6768 | wxJoystick * _arg0; | |
6769 | PyObject * _argo0 = 0; | |
6770 | char *_kwnames[] = { "self", NULL }; | |
6771 | ||
6772 | self = self; | |
6773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0)) | |
6774 | return NULL; | |
6775 | if (_argo0) { | |
6776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p."); | |
6779 | return NULL; | |
6780 | } | |
6781 | } | |
6782 | { | |
4268f798 | 6783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6784 | _result = new wxString (wxJoystick_GetProductName(_arg0)); |
185d7c3e | 6785 | |
4268f798 RD |
6786 | wxPyEndAllowThreads(__tstate); |
6787 | if (PyErr_Occurred()) return NULL; | |
185d7c3e | 6788 | }{ |
c8bc7bb8 RD |
6789 | #if wxUSE_UNICODE |
6790 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6791 | #else | |
185d7c3e | 6792 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6793 | #endif |
185d7c3e RD |
6794 | } |
6795 | { | |
6796 | delete _result; | |
6797 | } | |
6798 | return _resultobj; | |
6799 | } | |
6800 | ||
6801 | #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin()) | |
6802 | static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6803 | PyObject * _resultobj; | |
6804 | int _result; | |
6805 | wxJoystick * _arg0; | |
6806 | PyObject * _argo0 = 0; | |
6807 | char *_kwnames[] = { "self", NULL }; | |
6808 | ||
6809 | self = self; | |
6810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0)) | |
6811 | return NULL; | |
6812 | if (_argo0) { | |
6813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p."); | |
6816 | return NULL; | |
6817 | } | |
6818 | } | |
6819 | { | |
4268f798 | 6820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6821 | _result = (int )wxJoystick_GetXMin(_arg0); |
185d7c3e | 6822 | |
4268f798 RD |
6823 | wxPyEndAllowThreads(__tstate); |
6824 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6825 | } _resultobj = Py_BuildValue("i",_result); |
6826 | return _resultobj; | |
6827 | } | |
6828 | ||
6829 | #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin()) | |
6830 | static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6831 | PyObject * _resultobj; | |
6832 | int _result; | |
6833 | wxJoystick * _arg0; | |
6834 | PyObject * _argo0 = 0; | |
6835 | char *_kwnames[] = { "self", NULL }; | |
6836 | ||
6837 | self = self; | |
6838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0)) | |
6839 | return NULL; | |
6840 | if (_argo0) { | |
6841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p."); | |
6844 | return NULL; | |
6845 | } | |
6846 | } | |
6847 | { | |
4268f798 | 6848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6849 | _result = (int )wxJoystick_GetYMin(_arg0); |
185d7c3e | 6850 | |
4268f798 RD |
6851 | wxPyEndAllowThreads(__tstate); |
6852 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6853 | } _resultobj = Py_BuildValue("i",_result); |
6854 | return _resultobj; | |
6855 | } | |
6856 | ||
6857 | #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin()) | |
6858 | static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6859 | PyObject * _resultobj; | |
6860 | int _result; | |
6861 | wxJoystick * _arg0; | |
6862 | PyObject * _argo0 = 0; | |
6863 | char *_kwnames[] = { "self", NULL }; | |
6864 | ||
6865 | self = self; | |
6866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0)) | |
6867 | return NULL; | |
6868 | if (_argo0) { | |
6869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p."); | |
6872 | return NULL; | |
6873 | } | |
6874 | } | |
6875 | { | |
4268f798 | 6876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6877 | _result = (int )wxJoystick_GetZMin(_arg0); |
185d7c3e | 6878 | |
4268f798 RD |
6879 | wxPyEndAllowThreads(__tstate); |
6880 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6881 | } _resultobj = Py_BuildValue("i",_result); |
6882 | return _resultobj; | |
6883 | } | |
6884 | ||
6885 | #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax()) | |
6886 | static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6887 | PyObject * _resultobj; | |
6888 | int _result; | |
6889 | wxJoystick * _arg0; | |
6890 | PyObject * _argo0 = 0; | |
6891 | char *_kwnames[] = { "self", NULL }; | |
6892 | ||
6893 | self = self; | |
6894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0)) | |
6895 | return NULL; | |
6896 | if (_argo0) { | |
6897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p."); | |
6900 | return NULL; | |
6901 | } | |
6902 | } | |
6903 | { | |
4268f798 | 6904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6905 | _result = (int )wxJoystick_GetXMax(_arg0); |
185d7c3e | 6906 | |
4268f798 RD |
6907 | wxPyEndAllowThreads(__tstate); |
6908 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6909 | } _resultobj = Py_BuildValue("i",_result); |
6910 | return _resultobj; | |
6911 | } | |
6912 | ||
6913 | #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax()) | |
6914 | static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6915 | PyObject * _resultobj; | |
6916 | int _result; | |
6917 | wxJoystick * _arg0; | |
6918 | PyObject * _argo0 = 0; | |
6919 | char *_kwnames[] = { "self", NULL }; | |
6920 | ||
6921 | self = self; | |
6922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0)) | |
6923 | return NULL; | |
6924 | if (_argo0) { | |
6925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p."); | |
6928 | return NULL; | |
6929 | } | |
6930 | } | |
6931 | { | |
4268f798 | 6932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6933 | _result = (int )wxJoystick_GetYMax(_arg0); |
185d7c3e | 6934 | |
4268f798 RD |
6935 | wxPyEndAllowThreads(__tstate); |
6936 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6937 | } _resultobj = Py_BuildValue("i",_result); |
6938 | return _resultobj; | |
6939 | } | |
6940 | ||
6941 | #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax()) | |
6942 | static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6943 | PyObject * _resultobj; | |
6944 | int _result; | |
6945 | wxJoystick * _arg0; | |
6946 | PyObject * _argo0 = 0; | |
6947 | char *_kwnames[] = { "self", NULL }; | |
6948 | ||
6949 | self = self; | |
6950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0)) | |
6951 | return NULL; | |
6952 | if (_argo0) { | |
6953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p."); | |
6956 | return NULL; | |
6957 | } | |
6958 | } | |
6959 | { | |
4268f798 | 6960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6961 | _result = (int )wxJoystick_GetZMax(_arg0); |
185d7c3e | 6962 | |
4268f798 RD |
6963 | wxPyEndAllowThreads(__tstate); |
6964 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6965 | } _resultobj = Py_BuildValue("i",_result); |
6966 | return _resultobj; | |
6967 | } | |
6968 | ||
6969 | #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons()) | |
6970 | static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6971 | PyObject * _resultobj; | |
6972 | int _result; | |
6973 | wxJoystick * _arg0; | |
6974 | PyObject * _argo0 = 0; | |
6975 | char *_kwnames[] = { "self", NULL }; | |
6976 | ||
6977 | self = self; | |
6978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0)) | |
6979 | return NULL; | |
6980 | if (_argo0) { | |
6981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p."); | |
6984 | return NULL; | |
6985 | } | |
6986 | } | |
6987 | { | |
4268f798 | 6988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6989 | _result = (int )wxJoystick_GetNumberButtons(_arg0); |
185d7c3e | 6990 | |
4268f798 RD |
6991 | wxPyEndAllowThreads(__tstate); |
6992 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6993 | } _resultobj = Py_BuildValue("i",_result); |
6994 | return _resultobj; | |
6995 | } | |
6996 | ||
6997 | #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes()) | |
6998 | static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6999 | PyObject * _resultobj; | |
7000 | int _result; | |
7001 | wxJoystick * _arg0; | |
7002 | PyObject * _argo0 = 0; | |
7003 | char *_kwnames[] = { "self", NULL }; | |
7004 | ||
7005 | self = self; | |
7006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0)) | |
7007 | return NULL; | |
7008 | if (_argo0) { | |
7009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p."); | |
7012 | return NULL; | |
7013 | } | |
7014 | } | |
7015 | { | |
4268f798 | 7016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7017 | _result = (int )wxJoystick_GetNumberAxes(_arg0); |
185d7c3e | 7018 | |
4268f798 RD |
7019 | wxPyEndAllowThreads(__tstate); |
7020 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7021 | } _resultobj = Py_BuildValue("i",_result); |
7022 | return _resultobj; | |
7023 | } | |
7024 | ||
7025 | #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons()) | |
7026 | static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7027 | PyObject * _resultobj; | |
7028 | int _result; | |
7029 | wxJoystick * _arg0; | |
7030 | PyObject * _argo0 = 0; | |
7031 | char *_kwnames[] = { "self", NULL }; | |
7032 | ||
7033 | self = self; | |
7034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0)) | |
7035 | return NULL; | |
7036 | if (_argo0) { | |
7037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p."); | |
7040 | return NULL; | |
7041 | } | |
7042 | } | |
7043 | { | |
4268f798 | 7044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7045 | _result = (int )wxJoystick_GetMaxButtons(_arg0); |
185d7c3e | 7046 | |
4268f798 RD |
7047 | wxPyEndAllowThreads(__tstate); |
7048 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7049 | } _resultobj = Py_BuildValue("i",_result); |
7050 | return _resultobj; | |
7051 | } | |
7052 | ||
7053 | #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes()) | |
7054 | static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7055 | PyObject * _resultobj; | |
7056 | int _result; | |
7057 | wxJoystick * _arg0; | |
7058 | PyObject * _argo0 = 0; | |
7059 | char *_kwnames[] = { "self", NULL }; | |
7060 | ||
7061 | self = self; | |
7062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0)) | |
7063 | return NULL; | |
7064 | if (_argo0) { | |
7065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p."); | |
7068 | return NULL; | |
7069 | } | |
7070 | } | |
7071 | { | |
4268f798 | 7072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7073 | _result = (int )wxJoystick_GetMaxAxes(_arg0); |
185d7c3e | 7074 | |
4268f798 RD |
7075 | wxPyEndAllowThreads(__tstate); |
7076 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7077 | } _resultobj = Py_BuildValue("i",_result); |
7078 | return _resultobj; | |
7079 | } | |
7080 | ||
7081 | #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin()) | |
7082 | static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7083 | PyObject * _resultobj; | |
7084 | int _result; | |
7085 | wxJoystick * _arg0; | |
7086 | PyObject * _argo0 = 0; | |
7087 | char *_kwnames[] = { "self", NULL }; | |
7088 | ||
7089 | self = self; | |
7090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0)) | |
7091 | return NULL; | |
7092 | if (_argo0) { | |
7093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p."); | |
7096 | return NULL; | |
7097 | } | |
7098 | } | |
7099 | { | |
4268f798 | 7100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7101 | _result = (int )wxJoystick_GetPollingMin(_arg0); |
185d7c3e | 7102 | |
4268f798 RD |
7103 | wxPyEndAllowThreads(__tstate); |
7104 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7105 | } _resultobj = Py_BuildValue("i",_result); |
7106 | return _resultobj; | |
7107 | } | |
7108 | ||
7109 | #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax()) | |
7110 | static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7111 | PyObject * _resultobj; | |
7112 | int _result; | |
7113 | wxJoystick * _arg0; | |
7114 | PyObject * _argo0 = 0; | |
7115 | char *_kwnames[] = { "self", NULL }; | |
7116 | ||
7117 | self = self; | |
7118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0)) | |
7119 | return NULL; | |
7120 | if (_argo0) { | |
7121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p."); | |
7124 | return NULL; | |
7125 | } | |
7126 | } | |
7127 | { | |
4268f798 | 7128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7129 | _result = (int )wxJoystick_GetPollingMax(_arg0); |
185d7c3e | 7130 | |
4268f798 RD |
7131 | wxPyEndAllowThreads(__tstate); |
7132 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7133 | } _resultobj = Py_BuildValue("i",_result); |
7134 | return _resultobj; | |
7135 | } | |
7136 | ||
7137 | #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin()) | |
7138 | static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7139 | PyObject * _resultobj; | |
7140 | int _result; | |
7141 | wxJoystick * _arg0; | |
7142 | PyObject * _argo0 = 0; | |
7143 | char *_kwnames[] = { "self", NULL }; | |
7144 | ||
7145 | self = self; | |
7146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0)) | |
7147 | return NULL; | |
7148 | if (_argo0) { | |
7149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p."); | |
7152 | return NULL; | |
7153 | } | |
7154 | } | |
7155 | { | |
4268f798 | 7156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7157 | _result = (int )wxJoystick_GetRudderMin(_arg0); |
185d7c3e | 7158 | |
4268f798 RD |
7159 | wxPyEndAllowThreads(__tstate); |
7160 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7161 | } _resultobj = Py_BuildValue("i",_result); |
7162 | return _resultobj; | |
7163 | } | |
7164 | ||
7165 | #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax()) | |
7166 | static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7167 | PyObject * _resultobj; | |
7168 | int _result; | |
7169 | wxJoystick * _arg0; | |
7170 | PyObject * _argo0 = 0; | |
7171 | char *_kwnames[] = { "self", NULL }; | |
7172 | ||
7173 | self = self; | |
7174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0)) | |
7175 | return NULL; | |
7176 | if (_argo0) { | |
7177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p."); | |
7180 | return NULL; | |
7181 | } | |
7182 | } | |
7183 | { | |
4268f798 | 7184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7185 | _result = (int )wxJoystick_GetRudderMax(_arg0); |
185d7c3e | 7186 | |
4268f798 RD |
7187 | wxPyEndAllowThreads(__tstate); |
7188 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7189 | } _resultobj = Py_BuildValue("i",_result); |
7190 | return _resultobj; | |
7191 | } | |
7192 | ||
7193 | #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin()) | |
7194 | static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7195 | PyObject * _resultobj; | |
7196 | int _result; | |
7197 | wxJoystick * _arg0; | |
7198 | PyObject * _argo0 = 0; | |
7199 | char *_kwnames[] = { "self", NULL }; | |
7200 | ||
7201 | self = self; | |
7202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0)) | |
7203 | return NULL; | |
7204 | if (_argo0) { | |
7205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p."); | |
7208 | return NULL; | |
7209 | } | |
7210 | } | |
7211 | { | |
4268f798 | 7212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7213 | _result = (int )wxJoystick_GetUMin(_arg0); |
185d7c3e | 7214 | |
4268f798 RD |
7215 | wxPyEndAllowThreads(__tstate); |
7216 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7217 | } _resultobj = Py_BuildValue("i",_result); |
7218 | return _resultobj; | |
7219 | } | |
7220 | ||
7221 | #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax()) | |
7222 | static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7223 | PyObject * _resultobj; | |
7224 | int _result; | |
7225 | wxJoystick * _arg0; | |
7226 | PyObject * _argo0 = 0; | |
7227 | char *_kwnames[] = { "self", NULL }; | |
7228 | ||
7229 | self = self; | |
7230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0)) | |
7231 | return NULL; | |
7232 | if (_argo0) { | |
7233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p."); | |
7236 | return NULL; | |
7237 | } | |
7238 | } | |
7239 | { | |
4268f798 | 7240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7241 | _result = (int )wxJoystick_GetUMax(_arg0); |
185d7c3e | 7242 | |
4268f798 RD |
7243 | wxPyEndAllowThreads(__tstate); |
7244 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7245 | } _resultobj = Py_BuildValue("i",_result); |
7246 | return _resultobj; | |
7247 | } | |
7248 | ||
7249 | #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin()) | |
7250 | static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7251 | PyObject * _resultobj; | |
7252 | int _result; | |
7253 | wxJoystick * _arg0; | |
7254 | PyObject * _argo0 = 0; | |
7255 | char *_kwnames[] = { "self", NULL }; | |
7256 | ||
7257 | self = self; | |
7258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0)) | |
7259 | return NULL; | |
7260 | if (_argo0) { | |
7261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p."); | |
7264 | return NULL; | |
7265 | } | |
7266 | } | |
7267 | { | |
4268f798 | 7268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7269 | _result = (int )wxJoystick_GetVMin(_arg0); |
185d7c3e | 7270 | |
4268f798 RD |
7271 | wxPyEndAllowThreads(__tstate); |
7272 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7273 | } _resultobj = Py_BuildValue("i",_result); |
7274 | return _resultobj; | |
7275 | } | |
7276 | ||
7277 | #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax()) | |
7278 | static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7279 | PyObject * _resultobj; | |
7280 | int _result; | |
7281 | wxJoystick * _arg0; | |
7282 | PyObject * _argo0 = 0; | |
7283 | char *_kwnames[] = { "self", NULL }; | |
7284 | ||
7285 | self = self; | |
7286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0)) | |
7287 | return NULL; | |
7288 | if (_argo0) { | |
7289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p."); | |
7292 | return NULL; | |
7293 | } | |
7294 | } | |
7295 | { | |
4268f798 | 7296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7297 | _result = (int )wxJoystick_GetVMax(_arg0); |
185d7c3e | 7298 | |
4268f798 RD |
7299 | wxPyEndAllowThreads(__tstate); |
7300 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7301 | } _resultobj = Py_BuildValue("i",_result); |
7302 | return _resultobj; | |
7303 | } | |
7304 | ||
7305 | #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder()) | |
7306 | static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7307 | PyObject * _resultobj; | |
7308 | bool _result; | |
7309 | wxJoystick * _arg0; | |
7310 | PyObject * _argo0 = 0; | |
7311 | char *_kwnames[] = { "self", NULL }; | |
7312 | ||
7313 | self = self; | |
7314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0)) | |
7315 | return NULL; | |
7316 | if (_argo0) { | |
7317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p."); | |
7320 | return NULL; | |
7321 | } | |
7322 | } | |
7323 | { | |
4268f798 | 7324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7325 | _result = (bool )wxJoystick_HasRudder(_arg0); |
185d7c3e | 7326 | |
4268f798 RD |
7327 | wxPyEndAllowThreads(__tstate); |
7328 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7329 | } _resultobj = Py_BuildValue("i",_result); |
7330 | return _resultobj; | |
7331 | } | |
7332 | ||
7333 | #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ()) | |
7334 | static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7335 | PyObject * _resultobj; | |
7336 | bool _result; | |
7337 | wxJoystick * _arg0; | |
7338 | PyObject * _argo0 = 0; | |
7339 | char *_kwnames[] = { "self", NULL }; | |
7340 | ||
7341 | self = self; | |
7342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0)) | |
7343 | return NULL; | |
7344 | if (_argo0) { | |
7345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p."); | |
7348 | return NULL; | |
7349 | } | |
7350 | } | |
7351 | { | |
4268f798 | 7352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7353 | _result = (bool )wxJoystick_HasZ(_arg0); |
185d7c3e | 7354 | |
4268f798 RD |
7355 | wxPyEndAllowThreads(__tstate); |
7356 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7357 | } _resultobj = Py_BuildValue("i",_result); |
7358 | return _resultobj; | |
7359 | } | |
7360 | ||
7361 | #define wxJoystick_HasU(_swigobj) (_swigobj->HasU()) | |
7362 | static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7363 | PyObject * _resultobj; | |
7364 | bool _result; | |
7365 | wxJoystick * _arg0; | |
7366 | PyObject * _argo0 = 0; | |
7367 | char *_kwnames[] = { "self", NULL }; | |
7368 | ||
7369 | self = self; | |
7370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0)) | |
7371 | return NULL; | |
7372 | if (_argo0) { | |
7373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p."); | |
7376 | return NULL; | |
7377 | } | |
7378 | } | |
7379 | { | |
4268f798 | 7380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7381 | _result = (bool )wxJoystick_HasU(_arg0); |
185d7c3e | 7382 | |
4268f798 RD |
7383 | wxPyEndAllowThreads(__tstate); |
7384 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7385 | } _resultobj = Py_BuildValue("i",_result); |
7386 | return _resultobj; | |
7387 | } | |
7388 | ||
7389 | #define wxJoystick_HasV(_swigobj) (_swigobj->HasV()) | |
7390 | static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7391 | PyObject * _resultobj; | |
7392 | bool _result; | |
7393 | wxJoystick * _arg0; | |
7394 | PyObject * _argo0 = 0; | |
7395 | char *_kwnames[] = { "self", NULL }; | |
7396 | ||
7397 | self = self; | |
7398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0)) | |
7399 | return NULL; | |
7400 | if (_argo0) { | |
7401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p."); | |
7404 | return NULL; | |
7405 | } | |
7406 | } | |
7407 | { | |
4268f798 | 7408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7409 | _result = (bool )wxJoystick_HasV(_arg0); |
185d7c3e | 7410 | |
4268f798 RD |
7411 | wxPyEndAllowThreads(__tstate); |
7412 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7413 | } _resultobj = Py_BuildValue("i",_result); |
7414 | return _resultobj; | |
7415 | } | |
7416 | ||
7417 | #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV()) | |
7418 | static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7419 | PyObject * _resultobj; | |
7420 | bool _result; | |
7421 | wxJoystick * _arg0; | |
7422 | PyObject * _argo0 = 0; | |
7423 | char *_kwnames[] = { "self", NULL }; | |
7424 | ||
7425 | self = self; | |
7426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0)) | |
7427 | return NULL; | |
7428 | if (_argo0) { | |
7429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p."); | |
7432 | return NULL; | |
7433 | } | |
7434 | } | |
7435 | { | |
4268f798 | 7436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7437 | _result = (bool )wxJoystick_HasPOV(_arg0); |
185d7c3e | 7438 | |
4268f798 RD |
7439 | wxPyEndAllowThreads(__tstate); |
7440 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7441 | } _resultobj = Py_BuildValue("i",_result); |
7442 | return _resultobj; | |
7443 | } | |
7444 | ||
7445 | #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir()) | |
7446 | static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7447 | PyObject * _resultobj; | |
7448 | bool _result; | |
7449 | wxJoystick * _arg0; | |
7450 | PyObject * _argo0 = 0; | |
7451 | char *_kwnames[] = { "self", NULL }; | |
7452 | ||
7453 | self = self; | |
7454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0)) | |
7455 | return NULL; | |
7456 | if (_argo0) { | |
7457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p."); | |
7460 | return NULL; | |
7461 | } | |
7462 | } | |
7463 | { | |
4268f798 | 7464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7465 | _result = (bool )wxJoystick_HasPOV4Dir(_arg0); |
185d7c3e | 7466 | |
4268f798 RD |
7467 | wxPyEndAllowThreads(__tstate); |
7468 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7469 | } _resultobj = Py_BuildValue("i",_result); |
7470 | return _resultobj; | |
7471 | } | |
7472 | ||
7473 | #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS()) | |
7474 | static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7475 | PyObject * _resultobj; | |
7476 | bool _result; | |
7477 | wxJoystick * _arg0; | |
7478 | PyObject * _argo0 = 0; | |
7479 | char *_kwnames[] = { "self", NULL }; | |
7480 | ||
7481 | self = self; | |
7482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0)) | |
7483 | return NULL; | |
7484 | if (_argo0) { | |
7485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p."); | |
7488 | return NULL; | |
7489 | } | |
7490 | } | |
7491 | { | |
4268f798 | 7492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7493 | _result = (bool )wxJoystick_HasPOVCTS(_arg0); |
185d7c3e | 7494 | |
4268f798 RD |
7495 | wxPyEndAllowThreads(__tstate); |
7496 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7497 | } _resultobj = Py_BuildValue("i",_result); |
7498 | return _resultobj; | |
7499 | } | |
7500 | ||
7501 | #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1)) | |
7502 | static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7503 | PyObject * _resultobj; | |
7504 | bool _result; | |
7505 | wxJoystick * _arg0; | |
7506 | wxWindow * _arg1; | |
7507 | int _arg2 = (int ) 0; | |
7508 | PyObject * _argo0 = 0; | |
7509 | PyObject * _argo1 = 0; | |
7510 | char *_kwnames[] = { "self","win","pollingFreq", NULL }; | |
7511 | ||
7512 | self = self; | |
7513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7514 | return NULL; | |
7515 | if (_argo0) { | |
7516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p."); | |
7519 | return NULL; | |
7520 | } | |
7521 | } | |
7522 | if (_argo1) { | |
7523 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7524 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p."); | |
7526 | return NULL; | |
7527 | } | |
7528 | } | |
7529 | { | |
4268f798 | 7530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7531 | _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2); |
185d7c3e | 7532 | |
4268f798 RD |
7533 | wxPyEndAllowThreads(__tstate); |
7534 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7535 | } _resultobj = Py_BuildValue("i",_result); |
7536 | return _resultobj; | |
7537 | } | |
7538 | ||
7539 | #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture()) | |
7540 | static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7541 | PyObject * _resultobj; | |
7542 | bool _result; | |
7543 | wxJoystick * _arg0; | |
7544 | PyObject * _argo0 = 0; | |
7545 | char *_kwnames[] = { "self", NULL }; | |
7546 | ||
7547 | self = self; | |
7548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0)) | |
7549 | return NULL; | |
7550 | if (_argo0) { | |
7551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p."); | |
7554 | return NULL; | |
7555 | } | |
7556 | } | |
7557 | { | |
4268f798 | 7558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7559 | _result = (bool )wxJoystick_ReleaseCapture(_arg0); |
185d7c3e | 7560 | |
4268f798 RD |
7561 | wxPyEndAllowThreads(__tstate); |
7562 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7563 | } _resultobj = Py_BuildValue("i",_result); |
7564 | return _resultobj; | |
7565 | } | |
7566 | ||
493f1553 RD |
7567 | static void *SwigwxWaveTowxObject(void *ptr) { |
7568 | wxWave *src; | |
7569 | wxObject *dest; | |
7570 | src = (wxWave *) ptr; | |
7571 | dest = (wxObject *) src; | |
7572 | return (void *) dest; | |
7573 | } | |
7574 | ||
7575 | #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1)) | |
7576 | static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7577 | PyObject * _resultobj; | |
7578 | wxWave * _result; | |
7579 | wxString * _arg0; | |
7580 | bool _arg1 = (bool ) FALSE; | |
7581 | PyObject * _obj0 = 0; | |
7582 | int tempbool1 = (int) FALSE; | |
7583 | char *_kwnames[] = { "fileName","isResource", NULL }; | |
7584 | char _ptemp[128]; | |
7585 | ||
7586 | self = self; | |
7587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1)) | |
7588 | return NULL; | |
7589 | { | |
c8bc7bb8 RD |
7590 | _arg0 = wxString_in_helper(_obj0); |
7591 | if (_arg0 == NULL) | |
493f1553 | 7592 | return NULL; |
493f1553 RD |
7593 | } |
7594 | _arg1 = (bool ) tempbool1; | |
7595 | { | |
4268f798 | 7596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7597 | _result = (wxWave *)new_wxWave(*_arg0,_arg1); |
493f1553 | 7598 | |
4268f798 RD |
7599 | wxPyEndAllowThreads(__tstate); |
7600 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7601 | } if (_result) { |
7602 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
7603 | _resultobj = Py_BuildValue("s",_ptemp); | |
7604 | } else { | |
7605 | Py_INCREF(Py_None); | |
7606 | _resultobj = Py_None; | |
7607 | } | |
7608 | { | |
7609 | if (_obj0) | |
7610 | delete _arg0; | |
7611 | } | |
7612 | return _resultobj; | |
7613 | } | |
7614 | ||
7615 | #define delete_wxWave(_swigobj) (delete _swigobj) | |
7616 | static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7617 | PyObject * _resultobj; | |
7618 | wxWave * _arg0; | |
7619 | PyObject * _argo0 = 0; | |
7620 | char *_kwnames[] = { "self", NULL }; | |
7621 | ||
7622 | self = self; | |
7623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0)) | |
7624 | return NULL; | |
7625 | if (_argo0) { | |
7626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p."); | |
7629 | return NULL; | |
7630 | } | |
7631 | } | |
7632 | { | |
4268f798 | 7633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7634 | delete_wxWave(_arg0); |
493f1553 | 7635 | |
4268f798 RD |
7636 | wxPyEndAllowThreads(__tstate); |
7637 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7638 | } Py_INCREF(Py_None); |
7639 | _resultobj = Py_None; | |
7640 | return _resultobj; | |
7641 | } | |
7642 | ||
7643 | #define wxWave_IsOk(_swigobj) (_swigobj->IsOk()) | |
7644 | static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7645 | PyObject * _resultobj; | |
7646 | bool _result; | |
7647 | wxWave * _arg0; | |
7648 | PyObject * _argo0 = 0; | |
7649 | char *_kwnames[] = { "self", NULL }; | |
7650 | ||
7651 | self = self; | |
7652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0)) | |
7653 | return NULL; | |
7654 | if (_argo0) { | |
7655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p."); | |
7658 | return NULL; | |
7659 | } | |
7660 | } | |
7661 | { | |
4268f798 | 7662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7663 | _result = (bool )wxWave_IsOk(_arg0); |
493f1553 | 7664 | |
4268f798 RD |
7665 | wxPyEndAllowThreads(__tstate); |
7666 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7667 | } _resultobj = Py_BuildValue("i",_result); |
7668 | return _resultobj; | |
7669 | } | |
7670 | ||
7671 | #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1)) | |
7672 | static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7673 | PyObject * _resultobj; | |
7674 | bool _result; | |
7675 | wxWave * _arg0; | |
7676 | bool _arg1 = (bool ) TRUE; | |
7677 | bool _arg2 = (bool ) FALSE; | |
7678 | PyObject * _argo0 = 0; | |
7679 | int tempbool1 = (int) TRUE; | |
7680 | int tempbool2 = (int) FALSE; | |
7681 | char *_kwnames[] = { "self","async","looped", NULL }; | |
7682 | ||
7683 | self = self; | |
7684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
7685 | return NULL; | |
7686 | if (_argo0) { | |
7687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p."); | |
7690 | return NULL; | |
7691 | } | |
7692 | } | |
7693 | _arg1 = (bool ) tempbool1; | |
7694 | _arg2 = (bool ) tempbool2; | |
7695 | { | |
4268f798 | 7696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7697 | _result = (bool )wxWave_Play(_arg0,_arg1,_arg2); |
493f1553 | 7698 | |
4268f798 RD |
7699 | wxPyEndAllowThreads(__tstate); |
7700 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7701 | } _resultobj = Py_BuildValue("i",_result); |
7702 | return _resultobj; | |
7703 | } | |
7704 | ||
b37c7e1d RD |
7705 | #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7706 | static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7707 | PyObject * _resultobj; | |
7708 | wxFileTypeInfo * _result; | |
7709 | char * _arg0; | |
7710 | char * _arg1; | |
7711 | char * _arg2; | |
7712 | char * _arg3; | |
7713 | char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL }; | |
7714 | char _ptemp[128]; | |
7715 | ||
7716 | self = self; | |
7717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ssss:new_wxFileTypeInfo",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
7718 | return NULL; | |
7719 | { | |
4268f798 | 7720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7721 | _result = (wxFileTypeInfo *)new_wxFileTypeInfo(_arg0,_arg1,_arg2,_arg3); |
b37c7e1d | 7722 | |
4268f798 RD |
7723 | wxPyEndAllowThreads(__tstate); |
7724 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7725 | } if (_result) { |
7726 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7727 | _resultobj = Py_BuildValue("s",_ptemp); | |
7728 | } else { | |
7729 | Py_INCREF(Py_None); | |
7730 | _resultobj = Py_None; | |
7731 | } | |
7732 | return _resultobj; | |
7733 | } | |
7734 | ||
7735 | #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0)) | |
7736 | static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7737 | PyObject * _resultobj; | |
7738 | wxFileTypeInfo * _result; | |
7739 | wxArrayString * _arg0; | |
7740 | PyObject * _obj0 = 0; | |
7741 | char *_kwnames[] = { "sArray", NULL }; | |
7742 | char _ptemp[128]; | |
7743 | ||
7744 | self = self; | |
7745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0)) | |
7746 | return NULL; | |
7747 | { | |
7748 | if (! PySequence_Check(_obj0)) { | |
7749 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7750 | return NULL; | |
7751 | } | |
7752 | _arg0 = new wxArrayString; | |
7753 | int i, len=PySequence_Length(_obj0); | |
7754 | for (i=0; i<len; i++) { | |
7755 | PyObject* item = PySequence_GetItem(_obj0, i); | |
c8bc7bb8 RD |
7756 | #if wxUSE_UNICODE |
7757 | PyObject* str = PyObject_Unicode(item); | |
7758 | _arg0->Add(PyUnicode_AsUnicode(str)); | |
7759 | #else | |
b37c7e1d | 7760 | PyObject* str = PyObject_Str(item); |
293a0a86 | 7761 | _arg0->Add(PyString_AsString(str)); |
c8bc7bb8 | 7762 | #endif |
b37c7e1d RD |
7763 | Py_DECREF(item); |
7764 | Py_DECREF(str); | |
7765 | } | |
7766 | } | |
7767 | { | |
4268f798 | 7768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7769 | _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0); |
b37c7e1d | 7770 | |
4268f798 RD |
7771 | wxPyEndAllowThreads(__tstate); |
7772 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7773 | } if (_result) { |
7774 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7775 | _resultobj = Py_BuildValue("s",_ptemp); | |
7776 | } else { | |
7777 | Py_INCREF(Py_None); | |
7778 | _resultobj = Py_None; | |
7779 | } | |
7780 | { | |
7781 | if (_obj0) | |
7782 | delete _arg0; | |
7783 | } | |
7784 | return _resultobj; | |
7785 | } | |
7786 | ||
7787 | #define new_wxNullFileTypeInfo() (new wxFileTypeInfo()) | |
7788 | static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7789 | PyObject * _resultobj; | |
7790 | wxFileTypeInfo * _result; | |
7791 | char *_kwnames[] = { NULL }; | |
7792 | char _ptemp[128]; | |
7793 | ||
7794 | self = self; | |
7795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames)) | |
7796 | return NULL; | |
7797 | { | |
4268f798 | 7798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7799 | _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo(); |
b37c7e1d | 7800 | |
4268f798 RD |
7801 | wxPyEndAllowThreads(__tstate); |
7802 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7803 | } if (_result) { |
7804 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7805 | _resultobj = Py_BuildValue("s",_ptemp); | |
7806 | } else { | |
7807 | Py_INCREF(Py_None); | |
7808 | _resultobj = Py_None; | |
7809 | } | |
7810 | return _resultobj; | |
7811 | } | |
7812 | ||
7813 | #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid()) | |
7814 | static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7815 | PyObject * _resultobj; | |
7816 | bool _result; | |
7817 | wxFileTypeInfo * _arg0; | |
7818 | PyObject * _argo0 = 0; | |
7819 | char *_kwnames[] = { "self", NULL }; | |
7820 | ||
7821 | self = self; | |
7822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0)) | |
7823 | return NULL; | |
7824 | if (_argo0) { | |
7825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p."); | |
7828 | return NULL; | |
7829 | } | |
7830 | } | |
7831 | { | |
4268f798 | 7832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7833 | _result = (bool )wxFileTypeInfo_IsValid(_arg0); |
b37c7e1d | 7834 | |
4268f798 RD |
7835 | wxPyEndAllowThreads(__tstate); |
7836 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7837 | } _resultobj = Py_BuildValue("i",_result); |
7838 | return _resultobj; | |
7839 | } | |
7840 | ||
7841 | #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1)) | |
7842 | static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7843 | PyObject * _resultobj; | |
7844 | wxFileTypeInfo * _arg0; | |
7845 | wxString * _arg1; | |
7846 | int _arg2 = (int ) 0; | |
7847 | PyObject * _argo0 = 0; | |
7848 | PyObject * _obj1 = 0; | |
7849 | char *_kwnames[] = { "self","iconFile","iconIndex", NULL }; | |
7850 | ||
7851 | self = self; | |
7852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
7853 | return NULL; | |
7854 | if (_argo0) { | |
7855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p."); | |
7858 | return NULL; | |
7859 | } | |
7860 | } | |
7861 | { | |
c8bc7bb8 RD |
7862 | _arg1 = wxString_in_helper(_obj1); |
7863 | if (_arg1 == NULL) | |
b37c7e1d | 7864 | return NULL; |
b37c7e1d RD |
7865 | } |
7866 | { | |
4268f798 | 7867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7868 | wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 7869 | |
4268f798 RD |
7870 | wxPyEndAllowThreads(__tstate); |
7871 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7872 | } Py_INCREF(Py_None); |
7873 | _resultobj = Py_None; | |
7874 | { | |
7875 | if (_obj1) | |
7876 | delete _arg1; | |
7877 | } | |
7878 | return _resultobj; | |
7879 | } | |
7880 | ||
7881 | #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0)) | |
7882 | static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7883 | PyObject * _resultobj; | |
7884 | wxFileTypeInfo * _arg0; | |
7885 | wxString * _arg1; | |
7886 | PyObject * _argo0 = 0; | |
7887 | PyObject * _obj1 = 0; | |
7888 | char *_kwnames[] = { "self","shortDesc", NULL }; | |
7889 | ||
7890 | self = self; | |
7891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1)) | |
7892 | return NULL; | |
7893 | if (_argo0) { | |
7894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p."); | |
7897 | return NULL; | |
7898 | } | |
7899 | } | |
7900 | { | |
c8bc7bb8 RD |
7901 | _arg1 = wxString_in_helper(_obj1); |
7902 | if (_arg1 == NULL) | |
b37c7e1d | 7903 | return NULL; |
b37c7e1d RD |
7904 | } |
7905 | { | |
4268f798 | 7906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7907 | wxFileTypeInfo_SetShortDesc(_arg0,*_arg1); |
b37c7e1d | 7908 | |
4268f798 RD |
7909 | wxPyEndAllowThreads(__tstate); |
7910 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7911 | } Py_INCREF(Py_None); |
7912 | _resultobj = Py_None; | |
7913 | { | |
7914 | if (_obj1) | |
7915 | delete _arg1; | |
7916 | } | |
7917 | return _resultobj; | |
7918 | } | |
7919 | ||
7920 | #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
7921 | static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7922 | PyObject * _resultobj; | |
7923 | wxString * _result; | |
7924 | wxFileTypeInfo * _arg0; | |
7925 | PyObject * _argo0 = 0; | |
7926 | char *_kwnames[] = { "self", NULL }; | |
7927 | ||
7928 | self = self; | |
7929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0)) | |
7930 | return NULL; | |
7931 | if (_argo0) { | |
7932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p."); | |
7935 | return NULL; | |
7936 | } | |
7937 | } | |
7938 | { | |
4268f798 | 7939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7940 | const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0); |
b37c7e1d RD |
7941 | _result = (wxString *) &_result_ref; |
7942 | ||
4268f798 RD |
7943 | wxPyEndAllowThreads(__tstate); |
7944 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 7945 | }{ |
c8bc7bb8 RD |
7946 | #if wxUSE_UNICODE |
7947 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7948 | #else | |
b37c7e1d | 7949 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7950 | #endif |
b37c7e1d RD |
7951 | } |
7952 | return _resultobj; | |
7953 | } | |
7954 | ||
7955 | #define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand()) | |
7956 | static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7957 | PyObject * _resultobj; | |
7958 | wxString * _result; | |
7959 | wxFileTypeInfo * _arg0; | |
7960 | PyObject * _argo0 = 0; | |
7961 | char *_kwnames[] = { "self", NULL }; | |
7962 | ||
7963 | self = self; | |
7964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0)) | |
7965 | return NULL; | |
7966 | if (_argo0) { | |
7967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p."); | |
7970 | return NULL; | |
7971 | } | |
7972 | } | |
7973 | { | |
4268f798 | 7974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7975 | const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0); |
b37c7e1d RD |
7976 | _result = (wxString *) &_result_ref; |
7977 | ||
4268f798 RD |
7978 | wxPyEndAllowThreads(__tstate); |
7979 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 7980 | }{ |
c8bc7bb8 RD |
7981 | #if wxUSE_UNICODE |
7982 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7983 | #else | |
b37c7e1d | 7984 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7985 | #endif |
b37c7e1d RD |
7986 | } |
7987 | return _resultobj; | |
7988 | } | |
7989 | ||
7990 | #define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand()) | |
7991 | static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7992 | PyObject * _resultobj; | |
7993 | wxString * _result; | |
7994 | wxFileTypeInfo * _arg0; | |
7995 | PyObject * _argo0 = 0; | |
7996 | char *_kwnames[] = { "self", NULL }; | |
7997 | ||
7998 | self = self; | |
7999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0)) | |
8000 | return NULL; | |
8001 | if (_argo0) { | |
8002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p."); | |
8005 | return NULL; | |
8006 | } | |
8007 | } | |
8008 | { | |
4268f798 | 8009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8010 | const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0); |
b37c7e1d RD |
8011 | _result = (wxString *) &_result_ref; |
8012 | ||
4268f798 RD |
8013 | wxPyEndAllowThreads(__tstate); |
8014 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8015 | }{ |
c8bc7bb8 RD |
8016 | #if wxUSE_UNICODE |
8017 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8018 | #else | |
b37c7e1d | 8019 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8020 | #endif |
b37c7e1d RD |
8021 | } |
8022 | return _resultobj; | |
8023 | } | |
8024 | ||
8025 | #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc()) | |
8026 | static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8027 | PyObject * _resultobj; | |
8028 | wxString * _result; | |
8029 | wxFileTypeInfo * _arg0; | |
8030 | PyObject * _argo0 = 0; | |
8031 | char *_kwnames[] = { "self", NULL }; | |
8032 | ||
8033 | self = self; | |
8034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0)) | |
8035 | return NULL; | |
8036 | if (_argo0) { | |
8037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p."); | |
8040 | return NULL; | |
8041 | } | |
8042 | } | |
8043 | { | |
4268f798 | 8044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8045 | const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0); |
b37c7e1d RD |
8046 | _result = (wxString *) &_result_ref; |
8047 | ||
4268f798 RD |
8048 | wxPyEndAllowThreads(__tstate); |
8049 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8050 | }{ |
c8bc7bb8 RD |
8051 | #if wxUSE_UNICODE |
8052 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8053 | #else | |
b37c7e1d | 8054 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8055 | #endif |
b37c7e1d RD |
8056 | } |
8057 | return _resultobj; | |
8058 | } | |
8059 | ||
8060 | #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription()) | |
8061 | static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8062 | PyObject * _resultobj; | |
8063 | wxString * _result; | |
8064 | wxFileTypeInfo * _arg0; | |
8065 | PyObject * _argo0 = 0; | |
8066 | char *_kwnames[] = { "self", NULL }; | |
8067 | ||
8068 | self = self; | |
8069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0)) | |
8070 | return NULL; | |
8071 | if (_argo0) { | |
8072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p."); | |
8075 | return NULL; | |
8076 | } | |
8077 | } | |
8078 | { | |
4268f798 | 8079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8080 | const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0); |
b37c7e1d RD |
8081 | _result = (wxString *) &_result_ref; |
8082 | ||
4268f798 RD |
8083 | wxPyEndAllowThreads(__tstate); |
8084 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8085 | }{ |
c8bc7bb8 RD |
8086 | #if wxUSE_UNICODE |
8087 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8088 | #else | |
b37c7e1d | 8089 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8090 | #endif |
b37c7e1d RD |
8091 | } |
8092 | return _resultobj; | |
8093 | } | |
8094 | ||
8095 | static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) { | |
8096 | wxArrayString& arr = (wxArrayString&)self->GetExtensions(); | |
8097 | return wxArrayString2PyList_helper(arr); | |
8098 | } | |
8099 | static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8100 | PyObject * _resultobj; | |
8101 | PyObject * _result; | |
8102 | wxFileTypeInfo * _arg0; | |
8103 | PyObject * _argo0 = 0; | |
8104 | char *_kwnames[] = { "self", NULL }; | |
8105 | ||
8106 | self = self; | |
8107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0)) | |
8108 | return NULL; | |
8109 | if (_argo0) { | |
8110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p."); | |
8113 | return NULL; | |
8114 | } | |
8115 | } | |
8116 | { | |
4268f798 | 8117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8118 | _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0); |
b37c7e1d | 8119 | |
4268f798 RD |
8120 | wxPyEndAllowThreads(__tstate); |
8121 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8122 | }{ |
8123 | _resultobj = _result; | |
8124 | } | |
8125 | return _resultobj; | |
8126 | } | |
8127 | ||
8128 | #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount()) | |
8129 | static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8130 | PyObject * _resultobj; | |
8131 | int _result; | |
8132 | wxFileTypeInfo * _arg0; | |
8133 | PyObject * _argo0 = 0; | |
8134 | char *_kwnames[] = { "self", NULL }; | |
8135 | ||
8136 | self = self; | |
8137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0)) | |
8138 | return NULL; | |
8139 | if (_argo0) { | |
8140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p."); | |
8143 | return NULL; | |
8144 | } | |
8145 | } | |
8146 | { | |
4268f798 | 8147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8148 | _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0); |
b37c7e1d | 8149 | |
4268f798 RD |
8150 | wxPyEndAllowThreads(__tstate); |
8151 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8152 | } _resultobj = Py_BuildValue("i",_result); |
8153 | return _resultobj; | |
8154 | } | |
8155 | ||
8156 | #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile()) | |
8157 | static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8158 | PyObject * _resultobj; | |
8159 | wxString * _result; | |
8160 | wxFileTypeInfo * _arg0; | |
8161 | PyObject * _argo0 = 0; | |
8162 | char *_kwnames[] = { "self", NULL }; | |
8163 | ||
8164 | self = self; | |
8165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0)) | |
8166 | return NULL; | |
8167 | if (_argo0) { | |
8168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p."); | |
8171 | return NULL; | |
8172 | } | |
8173 | } | |
8174 | { | |
4268f798 | 8175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8176 | const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0); |
b37c7e1d RD |
8177 | _result = (wxString *) &_result_ref; |
8178 | ||
4268f798 RD |
8179 | wxPyEndAllowThreads(__tstate); |
8180 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8181 | }{ |
c8bc7bb8 RD |
8182 | #if wxUSE_UNICODE |
8183 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8184 | #else | |
b37c7e1d | 8185 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8186 | #endif |
b37c7e1d RD |
8187 | } |
8188 | return _resultobj; | |
8189 | } | |
8190 | ||
8191 | #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex()) | |
8192 | static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8193 | PyObject * _resultobj; | |
8194 | int _result; | |
8195 | wxFileTypeInfo * _arg0; | |
8196 | PyObject * _argo0 = 0; | |
8197 | char *_kwnames[] = { "self", NULL }; | |
8198 | ||
8199 | self = self; | |
8200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0)) | |
8201 | return NULL; | |
8202 | if (_argo0) { | |
8203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p."); | |
8206 | return NULL; | |
8207 | } | |
8208 | } | |
8209 | { | |
4268f798 | 8210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8211 | _result = (int )wxFileTypeInfo_GetIconIndex(_arg0); |
b37c7e1d | 8212 | |
4268f798 RD |
8213 | wxPyEndAllowThreads(__tstate); |
8214 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8215 | } _resultobj = Py_BuildValue("i",_result); |
8216 | return _resultobj; | |
8217 | } | |
8218 | ||
8219 | #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0)) | |
8220 | static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8221 | PyObject * _resultobj; | |
8222 | wxFileType * _result; | |
8223 | wxFileTypeInfo * _arg0; | |
8224 | PyObject * _argo0 = 0; | |
8225 | char *_kwnames[] = { "ftInfo", NULL }; | |
8226 | char _ptemp[128]; | |
8227 | ||
8228 | self = self; | |
8229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0)) | |
8230 | return NULL; | |
8231 | if (_argo0) { | |
8232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p."); | |
8235 | return NULL; | |
8236 | } | |
8237 | } | |
8238 | { | |
4268f798 | 8239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8240 | _result = (wxFileType *)new_wxFileType(*_arg0); |
b37c7e1d | 8241 | |
4268f798 RD |
8242 | wxPyEndAllowThreads(__tstate); |
8243 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8244 | } if (_result) { |
8245 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8246 | _resultobj = Py_BuildValue("s",_ptemp); | |
8247 | } else { | |
8248 | Py_INCREF(Py_None); | |
8249 | _resultobj = Py_None; | |
8250 | } | |
8251 | return _resultobj; | |
8252 | } | |
8253 | ||
8254 | static PyObject * wxFileType_GetMimeType(wxFileType *self) { | |
8255 | wxString str; | |
c8bc7bb8 RD |
8256 | if (self->GetMimeType(&str)) { |
8257 | #if wxUSE_UNICODE | |
8258 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8259 | #else | |
8260 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8261 | #endif | |
8262 | } | |
b37c7e1d RD |
8263 | else |
8264 | RETURN_NONE(); | |
8265 | } | |
8266 | static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8267 | PyObject * _resultobj; | |
8268 | PyObject * _result; | |
8269 | wxFileType * _arg0; | |
8270 | PyObject * _argo0 = 0; | |
8271 | char *_kwnames[] = { "self", NULL }; | |
8272 | ||
8273 | self = self; | |
8274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0)) | |
8275 | return NULL; | |
8276 | if (_argo0) { | |
8277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p."); | |
8280 | return NULL; | |
8281 | } | |
8282 | } | |
8283 | { | |
4268f798 | 8284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8285 | _result = (PyObject *)wxFileType_GetMimeType(_arg0); |
b37c7e1d | 8286 | |
4268f798 RD |
8287 | wxPyEndAllowThreads(__tstate); |
8288 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8289 | }{ |
8290 | _resultobj = _result; | |
8291 | } | |
8292 | return _resultobj; | |
8293 | } | |
8294 | ||
8295 | static PyObject * wxFileType_GetMimeTypes(wxFileType *self) { | |
8296 | wxArrayString arr; | |
8297 | if (self->GetMimeTypes(arr)) | |
8298 | return wxArrayString2PyList_helper(arr); | |
8299 | else | |
8300 | RETURN_NONE(); | |
8301 | } | |
8302 | static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8303 | PyObject * _resultobj; | |
8304 | PyObject * _result; | |
8305 | wxFileType * _arg0; | |
8306 | PyObject * _argo0 = 0; | |
8307 | char *_kwnames[] = { "self", NULL }; | |
8308 | ||
8309 | self = self; | |
8310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0)) | |
8311 | return NULL; | |
8312 | if (_argo0) { | |
8313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p."); | |
8316 | return NULL; | |
8317 | } | |
8318 | } | |
8319 | { | |
4268f798 | 8320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8321 | _result = (PyObject *)wxFileType_GetMimeTypes(_arg0); |
b37c7e1d | 8322 | |
4268f798 RD |
8323 | wxPyEndAllowThreads(__tstate); |
8324 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8325 | }{ |
8326 | _resultobj = _result; | |
8327 | } | |
8328 | return _resultobj; | |
8329 | } | |
8330 | ||
8331 | static PyObject * wxFileType_GetExtensions(wxFileType *self) { | |
8332 | wxArrayString arr; | |
8333 | if (self->GetExtensions(arr)) | |
8334 | return wxArrayString2PyList_helper(arr); | |
8335 | else | |
8336 | RETURN_NONE(); | |
8337 | } | |
8338 | static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8339 | PyObject * _resultobj; | |
8340 | PyObject * _result; | |
8341 | wxFileType * _arg0; | |
8342 | PyObject * _argo0 = 0; | |
8343 | char *_kwnames[] = { "self", NULL }; | |
8344 | ||
8345 | self = self; | |
8346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0)) | |
8347 | return NULL; | |
8348 | if (_argo0) { | |
8349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p."); | |
8352 | return NULL; | |
8353 | } | |
8354 | } | |
8355 | { | |
4268f798 | 8356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8357 | _result = (PyObject *)wxFileType_GetExtensions(_arg0); |
b37c7e1d | 8358 | |
4268f798 RD |
8359 | wxPyEndAllowThreads(__tstate); |
8360 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8361 | }{ |
8362 | _resultobj = _result; | |
8363 | } | |
8364 | return _resultobj; | |
8365 | } | |
8366 | ||
8367 | static wxIcon * wxFileType_GetIcon(wxFileType *self) { | |
8368 | wxIcon icon; | |
8369 | if (self->GetIcon(&icon)) | |
8370 | return new wxIcon(icon); | |
8371 | else | |
8372 | return NULL; | |
8373 | } | |
8374 | static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8375 | PyObject * _resultobj; | |
8376 | wxIcon * _result; | |
8377 | wxFileType * _arg0; | |
8378 | PyObject * _argo0 = 0; | |
8379 | char *_kwnames[] = { "self", NULL }; | |
8380 | char _ptemp[128]; | |
8381 | ||
8382 | self = self; | |
8383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0)) | |
8384 | return NULL; | |
8385 | if (_argo0) { | |
8386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p."); | |
8389 | return NULL; | |
8390 | } | |
8391 | } | |
8392 | { | |
4268f798 | 8393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8394 | _result = (wxIcon *)wxFileType_GetIcon(_arg0); |
b37c7e1d | 8395 | |
4268f798 RD |
8396 | wxPyEndAllowThreads(__tstate); |
8397 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8398 | } if (_result) { |
8399 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
8400 | _resultobj = Py_BuildValue("s",_ptemp); | |
8401 | } else { | |
8402 | Py_INCREF(Py_None); | |
8403 | _resultobj = Py_None; | |
8404 | } | |
8405 | return _resultobj; | |
8406 | } | |
8407 | ||
8408 | static PyObject * wxFileType_GetIconInfo(wxFileType *self) { | |
8409 | wxIcon icon; | |
8410 | wxString iconFile; | |
8411 | int iconIndex; | |
8412 | if (self->GetIcon(&icon, &iconFile, &iconIndex)) { | |
4268f798 | 8413 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
8414 | PyObject* tuple = PyTuple_New(3); |
8415 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(icon), | |
8416 | "wxIcon", TRUE)); | |
c8bc7bb8 RD |
8417 | #if wxUSE_UNICODE |
8418 | PyTuple_SetItem(tuple, 1, PyUnicode_FromUnicode(iconFile.c_str(), iconFile.Len())); | |
8419 | #else | |
8420 | PyTuple_SetItem(tuple, 1, PyString_FromStringAndSize(iconFile.c_str(), iconFile.Len())); | |
8421 | #endif | |
b37c7e1d | 8422 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); |
4268f798 | 8423 | wxPyEndBlockThreads(); |
b37c7e1d RD |
8424 | return tuple; |
8425 | } | |
8426 | else | |
8427 | RETURN_NONE(); | |
8428 | } | |
8429 | static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8430 | PyObject * _resultobj; | |
8431 | PyObject * _result; | |
8432 | wxFileType * _arg0; | |
8433 | PyObject * _argo0 = 0; | |
8434 | char *_kwnames[] = { "self", NULL }; | |
8435 | ||
8436 | self = self; | |
8437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0)) | |
8438 | return NULL; | |
8439 | if (_argo0) { | |
8440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p."); | |
8443 | return NULL; | |
8444 | } | |
8445 | } | |
8446 | { | |
4268f798 | 8447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8448 | _result = (PyObject *)wxFileType_GetIconInfo(_arg0); |
b37c7e1d | 8449 | |
4268f798 RD |
8450 | wxPyEndAllowThreads(__tstate); |
8451 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8452 | }{ |
8453 | _resultobj = _result; | |
8454 | } | |
8455 | return _resultobj; | |
8456 | } | |
8457 | ||
8458 | static PyObject * wxFileType_GetDescription(wxFileType *self) { | |
8459 | wxString str; | |
c8bc7bb8 RD |
8460 | if (self->GetDescription(&str)) { |
8461 | #if wxUSE_UNICODE | |
8462 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8463 | #else | |
8464 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8465 | #endif | |
8466 | } else | |
b37c7e1d RD |
8467 | RETURN_NONE(); |
8468 | } | |
8469 | static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8470 | PyObject * _resultobj; | |
8471 | PyObject * _result; | |
8472 | wxFileType * _arg0; | |
8473 | PyObject * _argo0 = 0; | |
8474 | char *_kwnames[] = { "self", NULL }; | |
8475 | ||
8476 | self = self; | |
8477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0)) | |
8478 | return NULL; | |
8479 | if (_argo0) { | |
8480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p."); | |
8483 | return NULL; | |
8484 | } | |
8485 | } | |
8486 | { | |
4268f798 | 8487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8488 | _result = (PyObject *)wxFileType_GetDescription(_arg0); |
b37c7e1d | 8489 | |
4268f798 RD |
8490 | wxPyEndAllowThreads(__tstate); |
8491 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8492 | }{ |
8493 | _resultobj = _result; | |
8494 | } | |
8495 | return _resultobj; | |
8496 | } | |
8497 | ||
8498 | static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8499 | wxString str; | |
c8bc7bb8 RD |
8500 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
8501 | #if wxUSE_UNICODE | |
8502 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8503 | #else | |
8504 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8505 | #endif | |
8506 | } else | |
b37c7e1d RD |
8507 | RETURN_NONE(); |
8508 | } | |
8509 | static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8510 | PyObject * _resultobj; | |
8511 | PyObject * _result; | |
8512 | wxFileType * _arg0; | |
8513 | wxString * _arg1; | |
137b5242 | 8514 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8515 | PyObject * _argo0 = 0; |
8516 | PyObject * _obj1 = 0; | |
8517 | PyObject * _obj2 = 0; | |
8518 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8519 | ||
8520 | self = self; | |
8521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8522 | return NULL; | |
8523 | if (_argo0) { | |
8524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p."); | |
8527 | return NULL; | |
8528 | } | |
8529 | } | |
8530 | { | |
c8bc7bb8 RD |
8531 | _arg1 = wxString_in_helper(_obj1); |
8532 | if (_arg1 == NULL) | |
b37c7e1d | 8533 | return NULL; |
b37c7e1d RD |
8534 | } |
8535 | if (_obj2) | |
8536 | { | |
c8bc7bb8 RD |
8537 | _arg2 = wxString_in_helper(_obj2); |
8538 | if (_arg2 == NULL) | |
b37c7e1d | 8539 | return NULL; |
b37c7e1d RD |
8540 | } |
8541 | { | |
4268f798 | 8542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8543 | _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8544 | |
4268f798 RD |
8545 | wxPyEndAllowThreads(__tstate); |
8546 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8547 | }{ |
8548 | _resultobj = _result; | |
8549 | } | |
8550 | { | |
8551 | if (_obj1) | |
8552 | delete _arg1; | |
8553 | } | |
8554 | { | |
8555 | if (_obj2) | |
8556 | delete _arg2; | |
8557 | } | |
8558 | return _resultobj; | |
8559 | } | |
8560 | ||
8561 | static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8562 | wxString str; | |
c8bc7bb8 RD |
8563 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
8564 | #if wxUSE_UNICODE | |
8565 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8566 | #else | |
8567 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8568 | #endif | |
8569 | } else | |
b37c7e1d RD |
8570 | RETURN_NONE(); |
8571 | } | |
8572 | static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8573 | PyObject * _resultobj; | |
8574 | PyObject * _result; | |
8575 | wxFileType * _arg0; | |
8576 | wxString * _arg1; | |
137b5242 | 8577 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8578 | PyObject * _argo0 = 0; |
8579 | PyObject * _obj1 = 0; | |
8580 | PyObject * _obj2 = 0; | |
8581 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8582 | ||
8583 | self = self; | |
8584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8585 | return NULL; | |
8586 | if (_argo0) { | |
8587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p."); | |
8590 | return NULL; | |
8591 | } | |
8592 | } | |
8593 | { | |
c8bc7bb8 RD |
8594 | _arg1 = wxString_in_helper(_obj1); |
8595 | if (_arg1 == NULL) | |
b37c7e1d | 8596 | return NULL; |
b37c7e1d RD |
8597 | } |
8598 | if (_obj2) | |
8599 | { | |
c8bc7bb8 RD |
8600 | _arg2 = wxString_in_helper(_obj2); |
8601 | if (_arg2 == NULL) | |
b37c7e1d | 8602 | return NULL; |
b37c7e1d RD |
8603 | } |
8604 | { | |
4268f798 | 8605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8606 | _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8607 | |
4268f798 RD |
8608 | wxPyEndAllowThreads(__tstate); |
8609 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8610 | }{ |
8611 | _resultobj = _result; | |
8612 | } | |
8613 | { | |
8614 | if (_obj1) | |
8615 | delete _arg1; | |
8616 | } | |
8617 | { | |
8618 | if (_obj2) | |
8619 | delete _arg2; | |
8620 | } | |
8621 | return _resultobj; | |
8622 | } | |
8623 | ||
8624 | static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8625 | wxArrayString verbs; | |
8626 | wxArrayString commands; | |
8627 | if (self->GetAllCommands(&verbs, &commands, | |
8628 | wxFileType::MessageParameters(filename, mimetype))) { | |
4268f798 | 8629 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
8630 | PyObject* tuple = PyTuple_New(2); |
8631 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
8632 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
4268f798 | 8633 | wxPyEndBlockThreads(); |
b37c7e1d RD |
8634 | return tuple; |
8635 | } | |
8636 | else | |
8637 | RETURN_NONE(); | |
8638 | } | |
8639 | static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8640 | PyObject * _resultobj; | |
8641 | PyObject * _result; | |
8642 | wxFileType * _arg0; | |
8643 | wxString * _arg1; | |
137b5242 | 8644 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8645 | PyObject * _argo0 = 0; |
8646 | PyObject * _obj1 = 0; | |
8647 | PyObject * _obj2 = 0; | |
8648 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8649 | ||
8650 | self = self; | |
8651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8652 | return NULL; | |
8653 | if (_argo0) { | |
8654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p."); | |
8657 | return NULL; | |
8658 | } | |
8659 | } | |
8660 | { | |
c8bc7bb8 RD |
8661 | _arg1 = wxString_in_helper(_obj1); |
8662 | if (_arg1 == NULL) | |
b37c7e1d | 8663 | return NULL; |
b37c7e1d RD |
8664 | } |
8665 | if (_obj2) | |
8666 | { | |
c8bc7bb8 RD |
8667 | _arg2 = wxString_in_helper(_obj2); |
8668 | if (_arg2 == NULL) | |
b37c7e1d | 8669 | return NULL; |
b37c7e1d RD |
8670 | } |
8671 | { | |
4268f798 | 8672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8673 | _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8674 | |
4268f798 RD |
8675 | wxPyEndAllowThreads(__tstate); |
8676 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8677 | }{ |
8678 | _resultobj = _result; | |
8679 | } | |
8680 | { | |
8681 | if (_obj1) | |
8682 | delete _arg1; | |
8683 | } | |
8684 | { | |
8685 | if (_obj2) | |
8686 | delete _arg2; | |
8687 | } | |
8688 | return _resultobj; | |
8689 | } | |
8690 | ||
8691 | #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2)) | |
8692 | static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8693 | PyObject * _resultobj; | |
8694 | bool _result; | |
8695 | wxFileType * _arg0; | |
8696 | wxString * _arg1; | |
8697 | wxString * _arg2; | |
8698 | bool _arg3 = (bool ) TRUE; | |
8699 | PyObject * _argo0 = 0; | |
8700 | PyObject * _obj1 = 0; | |
8701 | PyObject * _obj2 = 0; | |
8702 | int tempbool3 = (int) TRUE; | |
8703 | char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL }; | |
8704 | ||
8705 | self = self; | |
8706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) | |
8707 | return NULL; | |
8708 | if (_argo0) { | |
8709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p."); | |
8712 | return NULL; | |
8713 | } | |
8714 | } | |
8715 | { | |
c8bc7bb8 RD |
8716 | _arg1 = wxString_in_helper(_obj1); |
8717 | if (_arg1 == NULL) | |
b37c7e1d | 8718 | return NULL; |
b37c7e1d RD |
8719 | } |
8720 | { | |
c8bc7bb8 RD |
8721 | _arg2 = wxString_in_helper(_obj2); |
8722 | if (_arg2 == NULL) | |
b37c7e1d | 8723 | return NULL; |
b37c7e1d RD |
8724 | } |
8725 | _arg3 = (bool ) tempbool3; | |
8726 | { | |
4268f798 | 8727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8728 | _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3); |
b37c7e1d | 8729 | |
4268f798 RD |
8730 | wxPyEndAllowThreads(__tstate); |
8731 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8732 | } _resultobj = Py_BuildValue("i",_result); |
8733 | { | |
8734 | if (_obj1) | |
8735 | delete _arg1; | |
8736 | } | |
8737 | { | |
8738 | if (_obj2) | |
8739 | delete _arg2; | |
8740 | } | |
8741 | return _resultobj; | |
8742 | } | |
8743 | ||
8744 | #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1)) | |
8745 | static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8746 | PyObject * _resultobj; | |
8747 | bool _result; | |
8748 | wxFileType * _arg0; | |
137b5242 | 8749 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8750 | int _arg2 = (int ) 0; |
8751 | PyObject * _argo0 = 0; | |
8752 | PyObject * _obj1 = 0; | |
8753 | char *_kwnames[] = { "self","cmd","index", NULL }; | |
8754 | ||
8755 | self = self; | |
8756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
8757 | return NULL; | |
8758 | if (_argo0) { | |
8759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p."); | |
8762 | return NULL; | |
8763 | } | |
8764 | } | |
8765 | if (_obj1) | |
8766 | { | |
c8bc7bb8 RD |
8767 | _arg1 = wxString_in_helper(_obj1); |
8768 | if (_arg1 == NULL) | |
b37c7e1d | 8769 | return NULL; |
b37c7e1d RD |
8770 | } |
8771 | { | |
4268f798 | 8772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8773 | _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 8774 | |
4268f798 RD |
8775 | wxPyEndAllowThreads(__tstate); |
8776 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8777 | } _resultobj = Py_BuildValue("i",_result); |
8778 | { | |
8779 | if (_obj1) | |
8780 | delete _arg1; | |
8781 | } | |
8782 | return _resultobj; | |
8783 | } | |
8784 | ||
8785 | #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate()) | |
8786 | static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8787 | PyObject * _resultobj; | |
8788 | bool _result; | |
8789 | wxFileType * _arg0; | |
8790 | PyObject * _argo0 = 0; | |
8791 | char *_kwnames[] = { "self", NULL }; | |
8792 | ||
8793 | self = self; | |
8794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0)) | |
8795 | return NULL; | |
8796 | if (_argo0) { | |
8797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p."); | |
8800 | return NULL; | |
8801 | } | |
8802 | } | |
8803 | { | |
4268f798 | 8804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8805 | _result = (bool )wxFileType_Unassociate(_arg0); |
b37c7e1d | 8806 | |
4268f798 RD |
8807 | wxPyEndAllowThreads(__tstate); |
8808 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8809 | } _resultobj = Py_BuildValue("i",_result); |
8810 | return _resultobj; | |
8811 | } | |
8812 | ||
8813 | static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8814 | PyObject * _resultobj; | |
8815 | wxString * _result; | |
8816 | wxString * _arg0; | |
8817 | wxFileType::MessageParameters * _arg1; | |
8818 | PyObject * _obj0 = 0; | |
8819 | PyObject * _argo1 = 0; | |
8820 | char *_kwnames[] = { "command","params", NULL }; | |
8821 | ||
8822 | self = self; | |
8823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1)) | |
8824 | return NULL; | |
8825 | { | |
c8bc7bb8 RD |
8826 | _arg0 = wxString_in_helper(_obj0); |
8827 | if (_arg0 == NULL) | |
b37c7e1d | 8828 | return NULL; |
b37c7e1d RD |
8829 | } |
8830 | if (_argo1) { | |
8831 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8832 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) { | |
8833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p."); | |
8834 | return NULL; | |
8835 | } | |
8836 | } | |
8837 | { | |
4268f798 | 8838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8839 | _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1)); |
b37c7e1d | 8840 | |
4268f798 RD |
8841 | wxPyEndAllowThreads(__tstate); |
8842 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8843 | }{ |
c8bc7bb8 RD |
8844 | #if wxUSE_UNICODE |
8845 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8846 | #else | |
b37c7e1d | 8847 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8848 | #endif |
b37c7e1d RD |
8849 | } |
8850 | { | |
8851 | if (_obj0) | |
8852 | delete _arg0; | |
8853 | } | |
8854 | { | |
8855 | delete _result; | |
8856 | } | |
8857 | return _resultobj; | |
8858 | } | |
8859 | ||
8860 | #define delete_wxFileType(_swigobj) (delete _swigobj) | |
8861 | static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8862 | PyObject * _resultobj; | |
8863 | wxFileType * _arg0; | |
8864 | PyObject * _argo0 = 0; | |
8865 | char *_kwnames[] = { "self", NULL }; | |
8866 | ||
8867 | self = self; | |
8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0)) | |
8869 | return NULL; | |
8870 | if (_argo0) { | |
8871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p."); | |
8874 | return NULL; | |
8875 | } | |
8876 | } | |
8877 | { | |
4268f798 | 8878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8879 | delete_wxFileType(_arg0); |
b37c7e1d | 8880 | |
4268f798 RD |
8881 | wxPyEndAllowThreads(__tstate); |
8882 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8883 | } Py_INCREF(Py_None); |
8884 | _resultobj = Py_None; | |
8885 | return _resultobj; | |
8886 | } | |
8887 | ||
8888 | static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8889 | PyObject * _resultobj; | |
8890 | bool _result; | |
8891 | wxString * _arg0; | |
8892 | wxString * _arg1; | |
8893 | PyObject * _obj0 = 0; | |
8894 | PyObject * _obj1 = 0; | |
8895 | char *_kwnames[] = { "mimeType","wildcard", NULL }; | |
8896 | ||
8897 | self = self; | |
8898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1)) | |
8899 | return NULL; | |
8900 | { | |
c8bc7bb8 RD |
8901 | _arg0 = wxString_in_helper(_obj0); |
8902 | if (_arg0 == NULL) | |
b37c7e1d | 8903 | return NULL; |
b37c7e1d RD |
8904 | } |
8905 | { | |
c8bc7bb8 RD |
8906 | _arg1 = wxString_in_helper(_obj1); |
8907 | if (_arg1 == NULL) | |
b37c7e1d | 8908 | return NULL; |
b37c7e1d RD |
8909 | } |
8910 | { | |
4268f798 | 8911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8912 | _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1); |
b37c7e1d | 8913 | |
4268f798 RD |
8914 | wxPyEndAllowThreads(__tstate); |
8915 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8916 | } _resultobj = Py_BuildValue("i",_result); |
8917 | { | |
8918 | if (_obj0) | |
8919 | delete _arg0; | |
8920 | } | |
8921 | { | |
8922 | if (_obj1) | |
8923 | delete _arg1; | |
8924 | } | |
8925 | return _resultobj; | |
8926 | } | |
8927 | ||
8928 | #define new_wxMimeTypesManager() (new wxMimeTypesManager()) | |
8929 | static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8930 | PyObject * _resultobj; | |
8931 | wxMimeTypesManager * _result; | |
8932 | char *_kwnames[] = { NULL }; | |
8933 | char _ptemp[128]; | |
8934 | ||
8935 | self = self; | |
8936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames)) | |
8937 | return NULL; | |
8938 | { | |
4268f798 | 8939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8940 | _result = (wxMimeTypesManager *)new_wxMimeTypesManager(); |
b37c7e1d | 8941 | |
4268f798 RD |
8942 | wxPyEndAllowThreads(__tstate); |
8943 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8944 | } if (_result) { |
8945 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p"); | |
8946 | _resultobj = Py_BuildValue("s",_ptemp); | |
8947 | } else { | |
8948 | Py_INCREF(Py_None); | |
8949 | _resultobj = Py_None; | |
8950 | } | |
8951 | return _resultobj; | |
8952 | } | |
8953 | ||
8954 | #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1)) | |
8955 | static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8956 | PyObject * _resultobj; | |
8957 | wxMimeTypesManager * _arg0; | |
8958 | int _arg1 = (int ) (wxMAILCAP_STANDARD); | |
137b5242 | 8959 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8960 | PyObject * _argo0 = 0; |
8961 | PyObject * _obj2 = 0; | |
8962 | char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL }; | |
8963 | ||
8964 | self = self; | |
8965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8966 | return NULL; | |
8967 | if (_argo0) { | |
8968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
8970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p."); | |
8971 | return NULL; | |
8972 | } | |
8973 | } | |
8974 | if (_obj2) | |
8975 | { | |
c8bc7bb8 RD |
8976 | _arg2 = wxString_in_helper(_obj2); |
8977 | if (_arg2 == NULL) | |
b37c7e1d | 8978 | return NULL; |
b37c7e1d RD |
8979 | } |
8980 | { | |
4268f798 | 8981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8982 | wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2); |
b37c7e1d | 8983 | |
4268f798 RD |
8984 | wxPyEndAllowThreads(__tstate); |
8985 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8986 | } Py_INCREF(Py_None); |
8987 | _resultobj = Py_None; | |
8988 | { | |
8989 | if (_obj2) | |
8990 | delete _arg2; | |
8991 | } | |
8992 | return _resultobj; | |
8993 | } | |
8994 | ||
8995 | #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData()) | |
8996 | static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8997 | PyObject * _resultobj; | |
8998 | wxMimeTypesManager * _arg0; | |
8999 | PyObject * _argo0 = 0; | |
9000 | char *_kwnames[] = { "self", NULL }; | |
9001 | ||
9002 | self = self; | |
9003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0)) | |
9004 | return NULL; | |
9005 | if (_argo0) { | |
9006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p."); | |
9009 | return NULL; | |
9010 | } | |
9011 | } | |
9012 | { | |
4268f798 | 9013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9014 | wxMimeTypesManager_ClearData(_arg0); |
b37c7e1d | 9015 | |
4268f798 RD |
9016 | wxPyEndAllowThreads(__tstate); |
9017 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9018 | } Py_INCREF(Py_None); |
9019 | _resultobj = Py_None; | |
9020 | return _resultobj; | |
9021 | } | |
9022 | ||
9023 | #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0)) | |
9024 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9025 | PyObject * _resultobj; | |
9026 | wxFileType * _result; | |
9027 | wxMimeTypesManager * _arg0; | |
9028 | wxString * _arg1; | |
9029 | PyObject * _argo0 = 0; | |
9030 | PyObject * _obj1 = 0; | |
9031 | char *_kwnames[] = { "self","ext", NULL }; | |
9032 | char _ptemp[128]; | |
9033 | ||
9034 | self = self; | |
9035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1)) | |
9036 | return NULL; | |
9037 | if (_argo0) { | |
9038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p."); | |
9041 | return NULL; | |
9042 | } | |
9043 | } | |
9044 | { | |
c8bc7bb8 RD |
9045 | _arg1 = wxString_in_helper(_obj1); |
9046 | if (_arg1 == NULL) | |
b37c7e1d | 9047 | return NULL; |
b37c7e1d RD |
9048 | } |
9049 | { | |
4268f798 | 9050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9051 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1); |
b37c7e1d | 9052 | |
4268f798 RD |
9053 | wxPyEndAllowThreads(__tstate); |
9054 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9055 | } if (_result) { |
9056 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9057 | _resultobj = Py_BuildValue("s",_ptemp); | |
9058 | } else { | |
9059 | Py_INCREF(Py_None); | |
9060 | _resultobj = Py_None; | |
9061 | } | |
9062 | { | |
9063 | if (_obj1) | |
9064 | delete _arg1; | |
9065 | } | |
9066 | return _resultobj; | |
9067 | } | |
9068 | ||
9069 | #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0)) | |
9070 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9071 | PyObject * _resultobj; | |
9072 | wxFileType * _result; | |
9073 | wxMimeTypesManager * _arg0; | |
9074 | wxString * _arg1; | |
9075 | PyObject * _argo0 = 0; | |
9076 | PyObject * _obj1 = 0; | |
9077 | char *_kwnames[] = { "self","mimeType", NULL }; | |
9078 | char _ptemp[128]; | |
9079 | ||
9080 | self = self; | |
9081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1)) | |
9082 | return NULL; | |
9083 | if (_argo0) { | |
9084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p."); | |
9087 | return NULL; | |
9088 | } | |
9089 | } | |
9090 | { | |
c8bc7bb8 RD |
9091 | _arg1 = wxString_in_helper(_obj1); |
9092 | if (_arg1 == NULL) | |
b37c7e1d | 9093 | return NULL; |
b37c7e1d RD |
9094 | } |
9095 | { | |
4268f798 | 9096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9097 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_arg0,*_arg1); |
b37c7e1d | 9098 | |
4268f798 RD |
9099 | wxPyEndAllowThreads(__tstate); |
9100 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9101 | } if (_result) { |
9102 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9103 | _resultobj = Py_BuildValue("s",_ptemp); | |
9104 | } else { | |
9105 | Py_INCREF(Py_None); | |
9106 | _resultobj = Py_None; | |
9107 | } | |
9108 | { | |
9109 | if (_obj1) | |
9110 | delete _arg1; | |
9111 | } | |
9112 | return _resultobj; | |
9113 | } | |
9114 | ||
9115 | #define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1)) | |
9116 | static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9117 | PyObject * _resultobj; | |
9118 | bool _result; | |
9119 | wxMimeTypesManager * _arg0; | |
9120 | wxString * _arg1; | |
9121 | bool _arg2 = (bool ) FALSE; | |
9122 | PyObject * _argo0 = 0; | |
9123 | PyObject * _obj1 = 0; | |
9124 | int tempbool2 = (int) FALSE; | |
9125 | char *_kwnames[] = { "self","filename","fallback", NULL }; | |
9126 | ||
9127 | self = self; | |
9128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
9129 | return NULL; | |
9130 | if (_argo0) { | |
9131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p."); | |
9134 | return NULL; | |
9135 | } | |
9136 | } | |
9137 | { | |
c8bc7bb8 RD |
9138 | _arg1 = wxString_in_helper(_obj1); |
9139 | if (_arg1 == NULL) | |
b37c7e1d | 9140 | return NULL; |
b37c7e1d RD |
9141 | } |
9142 | _arg2 = (bool ) tempbool2; | |
9143 | { | |
4268f798 | 9144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9145 | _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2); |
b37c7e1d | 9146 | |
4268f798 RD |
9147 | wxPyEndAllowThreads(__tstate); |
9148 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9149 | } _resultobj = Py_BuildValue("i",_result); |
9150 | { | |
9151 | if (_obj1) | |
9152 | delete _arg1; | |
9153 | } | |
9154 | return _resultobj; | |
9155 | } | |
9156 | ||
9157 | #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0)) | |
9158 | static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9159 | PyObject * _resultobj; | |
9160 | bool _result; | |
9161 | wxMimeTypesManager * _arg0; | |
9162 | wxString * _arg1; | |
9163 | PyObject * _argo0 = 0; | |
9164 | PyObject * _obj1 = 0; | |
9165 | char *_kwnames[] = { "self","filename", NULL }; | |
9166 | ||
9167 | self = self; | |
9168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1)) | |
9169 | return NULL; | |
9170 | if (_argo0) { | |
9171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p."); | |
9174 | return NULL; | |
9175 | } | |
9176 | } | |
9177 | { | |
c8bc7bb8 RD |
9178 | _arg1 = wxString_in_helper(_obj1); |
9179 | if (_arg1 == NULL) | |
b37c7e1d | 9180 | return NULL; |
b37c7e1d RD |
9181 | } |
9182 | { | |
4268f798 | 9183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9184 | _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1); |
b37c7e1d | 9185 | |
4268f798 RD |
9186 | wxPyEndAllowThreads(__tstate); |
9187 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9188 | } _resultobj = Py_BuildValue("i",_result); |
9189 | { | |
9190 | if (_obj1) | |
9191 | delete _arg1; | |
9192 | } | |
9193 | return _resultobj; | |
9194 | } | |
9195 | ||
9196 | static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) { | |
9197 | wxArrayString arr; | |
9198 | self->EnumAllFileTypes(arr); | |
9199 | return wxArrayString2PyList_helper(arr); | |
9200 | } | |
9201 | static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9202 | PyObject * _resultobj; | |
9203 | PyObject * _result; | |
9204 | wxMimeTypesManager * _arg0; | |
9205 | PyObject * _argo0 = 0; | |
9206 | char *_kwnames[] = { "self", NULL }; | |
9207 | ||
9208 | self = self; | |
9209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0)) | |
9210 | return NULL; | |
9211 | if (_argo0) { | |
9212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p."); | |
9215 | return NULL; | |
9216 | } | |
9217 | } | |
9218 | { | |
4268f798 | 9219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9220 | _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0); |
b37c7e1d | 9221 | |
4268f798 RD |
9222 | wxPyEndAllowThreads(__tstate); |
9223 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9224 | }{ |
9225 | _resultobj = _result; | |
9226 | } | |
9227 | return _resultobj; | |
9228 | } | |
9229 | ||
9230 | #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0)) | |
9231 | static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9232 | PyObject * _resultobj; | |
9233 | wxMimeTypesManager * _arg0; | |
9234 | wxFileTypeInfo * _arg1; | |
9235 | PyObject * _argo0 = 0; | |
9236 | PyObject * _argo1 = 0; | |
9237 | char *_kwnames[] = { "self","ft", NULL }; | |
9238 | ||
9239 | self = self; | |
9240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1)) | |
9241 | return NULL; | |
9242 | if (_argo0) { | |
9243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p."); | |
9246 | return NULL; | |
9247 | } | |
9248 | } | |
9249 | if (_argo1) { | |
9250 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9251 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p."); | |
9253 | return NULL; | |
9254 | } | |
9255 | } | |
9256 | { | |
4268f798 | 9257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9258 | wxMimeTypesManager_AddFallback(_arg0,*_arg1); |
b37c7e1d | 9259 | |
4268f798 RD |
9260 | wxPyEndAllowThreads(__tstate); |
9261 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9262 | } Py_INCREF(Py_None); |
9263 | _resultobj = Py_None; | |
9264 | return _resultobj; | |
9265 | } | |
9266 | ||
9267 | #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0)) | |
9268 | static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9269 | PyObject * _resultobj; | |
9270 | wxFileType * _result; | |
9271 | wxMimeTypesManager * _arg0; | |
9272 | wxFileTypeInfo * _arg1; | |
9273 | PyObject * _argo0 = 0; | |
9274 | PyObject * _argo1 = 0; | |
9275 | char *_kwnames[] = { "self","ftInfo", NULL }; | |
9276 | char _ptemp[128]; | |
9277 | ||
9278 | self = self; | |
9279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1)) | |
9280 | return NULL; | |
9281 | if (_argo0) { | |
9282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p."); | |
9285 | return NULL; | |
9286 | } | |
9287 | } | |
9288 | if (_argo1) { | |
9289 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9290 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p."); | |
9292 | return NULL; | |
9293 | } | |
9294 | } | |
9295 | { | |
4268f798 | 9296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9297 | _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1); |
b37c7e1d | 9298 | |
4268f798 RD |
9299 | wxPyEndAllowThreads(__tstate); |
9300 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9301 | } if (_result) { |
9302 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9303 | _resultobj = Py_BuildValue("s",_ptemp); | |
9304 | } else { | |
9305 | Py_INCREF(Py_None); | |
9306 | _resultobj = Py_None; | |
9307 | } | |
9308 | return _resultobj; | |
9309 | } | |
9310 | ||
9311 | #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0)) | |
9312 | static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9313 | PyObject * _resultobj; | |
9314 | bool _result; | |
9315 | wxMimeTypesManager * _arg0; | |
9316 | wxFileType * _arg1; | |
9317 | PyObject * _argo0 = 0; | |
9318 | PyObject * _argo1 = 0; | |
9319 | char *_kwnames[] = { "self","ft", NULL }; | |
9320 | ||
9321 | self = self; | |
9322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1)) | |
9323 | return NULL; | |
9324 | if (_argo0) { | |
9325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p."); | |
9328 | return NULL; | |
9329 | } | |
9330 | } | |
9331 | if (_argo1) { | |
9332 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9333 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) { | |
9334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p."); | |
9335 | return NULL; | |
9336 | } | |
9337 | } | |
9338 | { | |
4268f798 | 9339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9340 | _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1); |
b37c7e1d | 9341 | |
4268f798 RD |
9342 | wxPyEndAllowThreads(__tstate); |
9343 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9344 | } _resultobj = Py_BuildValue("i",_result); |
9345 | return _resultobj; | |
9346 | } | |
9347 | ||
9348 | #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj) | |
9349 | static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9350 | PyObject * _resultobj; | |
9351 | wxMimeTypesManager * _arg0; | |
9352 | PyObject * _argo0 = 0; | |
9353 | char *_kwnames[] = { "self", NULL }; | |
9354 | ||
9355 | self = self; | |
9356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0)) | |
9357 | return NULL; | |
9358 | if (_argo0) { | |
9359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p."); | |
9362 | return NULL; | |
9363 | } | |
9364 | } | |
9365 | { | |
4268f798 | 9366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9367 | delete_wxMimeTypesManager(_arg0); |
b37c7e1d | 9368 | |
4268f798 RD |
9369 | wxPyEndAllowThreads(__tstate); |
9370 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9371 | } Py_INCREF(Py_None); |
9372 | _resultobj = Py_None; | |
9373 | return _resultobj; | |
9374 | } | |
9375 | ||
7dbce44a RD |
9376 | static void *SwigwxFileHistoryTowxObject(void *ptr) { |
9377 | wxFileHistory *src; | |
9378 | wxObject *dest; | |
9379 | src = (wxFileHistory *) ptr; | |
9380 | dest = (wxObject *) src; | |
9381 | return (void *) dest; | |
9382 | } | |
9383 | ||
9384 | #define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0)) | |
9385 | static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9386 | PyObject * _resultobj; | |
9387 | wxFileHistory * _result; | |
9388 | int _arg0 = (int ) 9; | |
9389 | char *_kwnames[] = { "maxFiles", NULL }; | |
9390 | char _ptemp[128]; | |
9391 | ||
9392 | self = self; | |
9393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0)) | |
9394 | return NULL; | |
9395 | { | |
4268f798 | 9396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9397 | _result = (wxFileHistory *)new_wxFileHistory(_arg0); |
7dbce44a | 9398 | |
4268f798 RD |
9399 | wxPyEndAllowThreads(__tstate); |
9400 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9401 | } if (_result) { |
9402 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p"); | |
9403 | _resultobj = Py_BuildValue("s",_ptemp); | |
9404 | } else { | |
9405 | Py_INCREF(Py_None); | |
9406 | _resultobj = Py_None; | |
9407 | } | |
9408 | return _resultobj; | |
9409 | } | |
9410 | ||
9411 | #define delete_wxFileHistory(_swigobj) (delete _swigobj) | |
9412 | static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9413 | PyObject * _resultobj; | |
9414 | wxFileHistory * _arg0; | |
9415 | PyObject * _argo0 = 0; | |
9416 | char *_kwnames[] = { "self", NULL }; | |
9417 | ||
9418 | self = self; | |
9419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0)) | |
9420 | return NULL; | |
9421 | if (_argo0) { | |
9422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileHistory. Expected _wxFileHistory_p."); | |
9425 | return NULL; | |
9426 | } | |
9427 | } | |
9428 | { | |
4268f798 | 9429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9430 | delete_wxFileHistory(_arg0); |
7dbce44a | 9431 | |
4268f798 RD |
9432 | wxPyEndAllowThreads(__tstate); |
9433 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9434 | } Py_INCREF(Py_None); |
9435 | _resultobj = Py_None; | |
9436 | return _resultobj; | |
9437 | } | |
9438 | ||
9439 | #define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0)) | |
9440 | static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9441 | PyObject * _resultobj; | |
9442 | wxFileHistory * _arg0; | |
9443 | wxString * _arg1; | |
9444 | PyObject * _argo0 = 0; | |
9445 | PyObject * _obj1 = 0; | |
9446 | char *_kwnames[] = { "self","file", NULL }; | |
9447 | ||
9448 | self = self; | |
9449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1)) | |
9450 | return NULL; | |
9451 | if (_argo0) { | |
9452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p."); | |
9455 | return NULL; | |
9456 | } | |
9457 | } | |
9458 | { | |
c8bc7bb8 RD |
9459 | _arg1 = wxString_in_helper(_obj1); |
9460 | if (_arg1 == NULL) | |
7dbce44a | 9461 | return NULL; |
7dbce44a RD |
9462 | } |
9463 | { | |
4268f798 | 9464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9465 | wxFileHistory_AddFileToHistory(_arg0,*_arg1); |
7dbce44a | 9466 | |
4268f798 RD |
9467 | wxPyEndAllowThreads(__tstate); |
9468 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9469 | } Py_INCREF(Py_None); |
9470 | _resultobj = Py_None; | |
9471 | { | |
9472 | if (_obj1) | |
9473 | delete _arg1; | |
9474 | } | |
9475 | return _resultobj; | |
9476 | } | |
9477 | ||
9478 | #define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0)) | |
9479 | static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9480 | PyObject * _resultobj; | |
9481 | wxFileHistory * _arg0; | |
9482 | int _arg1; | |
9483 | PyObject * _argo0 = 0; | |
9484 | char *_kwnames[] = { "self","i", NULL }; | |
9485 | ||
9486 | self = self; | |
9487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1)) | |
9488 | return NULL; | |
9489 | if (_argo0) { | |
9490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p."); | |
9493 | return NULL; | |
9494 | } | |
9495 | } | |
9496 | { | |
4268f798 | 9497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9498 | wxFileHistory_RemoveFileFromHistory(_arg0,_arg1); |
7dbce44a | 9499 | |
4268f798 RD |
9500 | wxPyEndAllowThreads(__tstate); |
9501 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9502 | } Py_INCREF(Py_None); |
9503 | _resultobj = Py_None; | |
9504 | return _resultobj; | |
9505 | } | |
9506 | ||
9507 | #define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles()) | |
9508 | static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9509 | PyObject * _resultobj; | |
9510 | int _result; | |
9511 | wxFileHistory * _arg0; | |
9512 | PyObject * _argo0 = 0; | |
9513 | char *_kwnames[] = { "self", NULL }; | |
9514 | ||
9515 | self = self; | |
9516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0)) | |
9517 | return NULL; | |
9518 | if (_argo0) { | |
9519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p."); | |
9522 | return NULL; | |
9523 | } | |
9524 | } | |
9525 | { | |
4268f798 | 9526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9527 | _result = (int )wxFileHistory_GetMaxFiles(_arg0); |
7dbce44a | 9528 | |
4268f798 RD |
9529 | wxPyEndAllowThreads(__tstate); |
9530 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9531 | } _resultobj = Py_BuildValue("i",_result); |
9532 | return _resultobj; | |
9533 | } | |
9534 | ||
9535 | #define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0)) | |
9536 | static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9537 | PyObject * _resultobj; | |
9538 | wxFileHistory * _arg0; | |
9539 | wxMenu * _arg1; | |
9540 | PyObject * _argo0 = 0; | |
9541 | PyObject * _argo1 = 0; | |
9542 | char *_kwnames[] = { "self","menu", NULL }; | |
9543 | ||
9544 | self = self; | |
9545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1)) | |
9546 | return NULL; | |
9547 | if (_argo0) { | |
9548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p."); | |
9551 | return NULL; | |
9552 | } | |
9553 | } | |
9554 | if (_argo1) { | |
9555 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9556 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p."); | |
9558 | return NULL; | |
9559 | } | |
9560 | } | |
9561 | { | |
4268f798 | 9562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9563 | wxFileHistory_UseMenu(_arg0,_arg1); |
7dbce44a | 9564 | |
4268f798 RD |
9565 | wxPyEndAllowThreads(__tstate); |
9566 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9567 | } Py_INCREF(Py_None); |
9568 | _resultobj = Py_None; | |
9569 | return _resultobj; | |
9570 | } | |
9571 | ||
9572 | #define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0)) | |
9573 | static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9574 | PyObject * _resultobj; | |
9575 | wxFileHistory * _arg0; | |
9576 | wxMenu * _arg1; | |
9577 | PyObject * _argo0 = 0; | |
9578 | PyObject * _argo1 = 0; | |
9579 | char *_kwnames[] = { "self","menu", NULL }; | |
9580 | ||
9581 | self = self; | |
9582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1)) | |
9583 | return NULL; | |
9584 | if (_argo0) { | |
9585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p."); | |
9588 | return NULL; | |
9589 | } | |
9590 | } | |
9591 | if (_argo1) { | |
9592 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9593 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p."); | |
9595 | return NULL; | |
9596 | } | |
9597 | } | |
9598 | { | |
4268f798 | 9599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9600 | wxFileHistory_RemoveMenu(_arg0,_arg1); |
7dbce44a | 9601 | |
4268f798 RD |
9602 | wxPyEndAllowThreads(__tstate); |
9603 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9604 | } Py_INCREF(Py_None); |
9605 | _resultobj = Py_None; | |
9606 | return _resultobj; | |
9607 | } | |
9608 | ||
9609 | #define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0)) | |
9610 | static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9611 | PyObject * _resultobj; | |
9612 | wxFileHistory * _arg0; | |
9613 | wxConfigBase * _arg1; | |
9614 | PyObject * _argo0 = 0; | |
9615 | PyObject * _argo1 = 0; | |
9616 | char *_kwnames[] = { "self","config", NULL }; | |
9617 | ||
9618 | self = self; | |
9619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1)) | |
9620 | return NULL; | |
9621 | if (_argo0) { | |
9622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p."); | |
9625 | return NULL; | |
9626 | } | |
9627 | } | |
9628 | if (_argo1) { | |
9629 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9630 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
9631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p."); | |
9632 | return NULL; | |
9633 | } | |
9634 | } | |
9635 | { | |
4268f798 | 9636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9637 | wxFileHistory_Load(_arg0,*_arg1); |
7dbce44a | 9638 | |
4268f798 RD |
9639 | wxPyEndAllowThreads(__tstate); |
9640 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9641 | } Py_INCREF(Py_None); |
9642 | _resultobj = Py_None; | |
9643 | return _resultobj; | |
9644 | } | |
9645 | ||
9646 | #define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0)) | |
9647 | static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9648 | PyObject * _resultobj; | |
9649 | wxFileHistory * _arg0; | |
9650 | wxConfigBase * _arg1; | |
9651 | PyObject * _argo0 = 0; | |
9652 | PyObject * _argo1 = 0; | |
9653 | char *_kwnames[] = { "self","config", NULL }; | |
9654 | ||
9655 | self = self; | |
9656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1)) | |
9657 | return NULL; | |
9658 | if (_argo0) { | |
9659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p."); | |
9662 | return NULL; | |
9663 | } | |
9664 | } | |
9665 | if (_argo1) { | |
9666 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9667 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
9668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p."); | |
9669 | return NULL; | |
9670 | } | |
9671 | } | |
9672 | { | |
4268f798 | 9673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9674 | wxFileHistory_Save(_arg0,*_arg1); |
7dbce44a | 9675 | |
4268f798 RD |
9676 | wxPyEndAllowThreads(__tstate); |
9677 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9678 | } Py_INCREF(Py_None); |
9679 | _resultobj = Py_None; | |
9680 | return _resultobj; | |
9681 | } | |
9682 | ||
9683 | #define wxFileHistory_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu()) | |
9684 | static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9685 | PyObject * _resultobj; | |
9686 | wxFileHistory * _arg0; | |
9687 | PyObject * _argo0 = 0; | |
9688 | char *_kwnames[] = { "self", NULL }; | |
9689 | ||
9690 | self = self; | |
9691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0)) | |
9692 | return NULL; | |
9693 | if (_argo0) { | |
9694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p."); | |
9697 | return NULL; | |
9698 | } | |
9699 | } | |
9700 | { | |
4268f798 | 9701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9702 | wxFileHistory_AddFilesToMenu(_arg0); |
7dbce44a | 9703 | |
4268f798 RD |
9704 | wxPyEndAllowThreads(__tstate); |
9705 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9706 | } Py_INCREF(Py_None); |
9707 | _resultobj = Py_None; | |
9708 | return _resultobj; | |
9709 | } | |
9710 | ||
68bc8549 RD |
9711 | #define wxFileHistory_AddFilesToThisMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0)) |
9712 | static PyObject *_wrap_wxFileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7dbce44a RD |
9713 | PyObject * _resultobj; |
9714 | wxFileHistory * _arg0; | |
9715 | wxMenu * _arg1; | |
9716 | PyObject * _argo0 = 0; | |
9717 | PyObject * _argo1 = 0; | |
9718 | char *_kwnames[] = { "self","menu", NULL }; | |
9719 | ||
9720 | self = self; | |
68bc8549 | 9721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToThisMenu",_kwnames,&_argo0,&_argo1)) |
7dbce44a RD |
9722 | return NULL; |
9723 | if (_argo0) { | |
9724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
68bc8549 | 9726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToThisMenu. Expected _wxFileHistory_p."); |
7dbce44a RD |
9727 | return NULL; |
9728 | } | |
9729 | } | |
9730 | if (_argo1) { | |
9731 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9732 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
68bc8549 | 9733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToThisMenu. Expected _wxMenu_p."); |
7dbce44a RD |
9734 | return NULL; |
9735 | } | |
9736 | } | |
9737 | { | |
4268f798 | 9738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
68bc8549 | 9739 | wxFileHistory_AddFilesToThisMenu(_arg0,_arg1); |
7dbce44a | 9740 | |
4268f798 RD |
9741 | wxPyEndAllowThreads(__tstate); |
9742 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9743 | } Py_INCREF(Py_None); |
9744 | _resultobj = Py_None; | |
9745 | return _resultobj; | |
9746 | } | |
9747 | ||
9748 | #define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0)) | |
9749 | static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9750 | PyObject * _resultobj; | |
9751 | wxString * _result; | |
9752 | wxFileHistory * _arg0; | |
9753 | int _arg1; | |
9754 | PyObject * _argo0 = 0; | |
9755 | char *_kwnames[] = { "self","i", NULL }; | |
9756 | ||
9757 | self = self; | |
9758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1)) | |
9759 | return NULL; | |
9760 | if (_argo0) { | |
9761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p."); | |
9764 | return NULL; | |
9765 | } | |
9766 | } | |
9767 | { | |
4268f798 | 9768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9769 | _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1)); |
7dbce44a | 9770 | |
4268f798 RD |
9771 | wxPyEndAllowThreads(__tstate); |
9772 | if (PyErr_Occurred()) return NULL; | |
7dbce44a | 9773 | }{ |
c8bc7bb8 RD |
9774 | #if wxUSE_UNICODE |
9775 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9776 | #else | |
7dbce44a | 9777 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9778 | #endif |
7dbce44a RD |
9779 | } |
9780 | { | |
9781 | delete _result; | |
9782 | } | |
9783 | return _resultobj; | |
9784 | } | |
9785 | ||
9786 | #define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount()) | |
9787 | static PyObject *_wrap_wxFileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9788 | PyObject * _resultobj; | |
9789 | int _result; | |
9790 | wxFileHistory * _arg0; | |
9791 | PyObject * _argo0 = 0; | |
9792 | char *_kwnames[] = { "self", NULL }; | |
9793 | ||
9794 | self = self; | |
9795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetCount",_kwnames,&_argo0)) | |
9796 | return NULL; | |
9797 | if (_argo0) { | |
9798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetCount. Expected _wxFileHistory_p."); | |
9801 | return NULL; | |
9802 | } | |
9803 | } | |
9804 | { | |
4268f798 | 9805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9806 | _result = (int )wxFileHistory_GetCount(_arg0); |
7dbce44a | 9807 | |
4268f798 RD |
9808 | wxPyEndAllowThreads(__tstate); |
9809 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9810 | } _resultobj = Py_BuildValue("i",_result); |
9811 | return _resultobj; | |
9812 | } | |
9813 | ||
9814 | #define wxFileHistory_GetNoHistoryFiles(_swigobj) (_swigobj->GetNoHistoryFiles()) | |
9815 | static PyObject *_wrap_wxFileHistory_GetNoHistoryFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9816 | PyObject * _resultobj; | |
9817 | int _result; | |
9818 | wxFileHistory * _arg0; | |
9819 | PyObject * _argo0 = 0; | |
9820 | char *_kwnames[] = { "self", NULL }; | |
9821 | ||
9822 | self = self; | |
9823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetNoHistoryFiles",_kwnames,&_argo0)) | |
9824 | return NULL; | |
9825 | if (_argo0) { | |
9826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetNoHistoryFiles. Expected _wxFileHistory_p."); | |
9829 | return NULL; | |
9830 | } | |
9831 | } | |
9832 | { | |
4268f798 | 9833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9834 | _result = (int )wxFileHistory_GetNoHistoryFiles(_arg0); |
7dbce44a | 9835 | |
4268f798 RD |
9836 | wxPyEndAllowThreads(__tstate); |
9837 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9838 | } _resultobj = Py_BuildValue("i",_result); |
9839 | return _resultobj; | |
9840 | } | |
9841 | ||
bb0054cd | 9842 | static PyMethodDef misc2cMethods[] = { |
7dbce44a RD |
9843 | { "wxFileHistory_GetNoHistoryFiles", (PyCFunction) _wrap_wxFileHistory_GetNoHistoryFiles, METH_VARARGS | METH_KEYWORDS }, |
9844 | { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
9845 | { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
68bc8549 | 9846 | { "wxFileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, |
7dbce44a RD |
9847 | { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, |
9848 | { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
9849 | { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
9850 | { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
9851 | { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
9852 | { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
9853 | { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
9854 | { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
9855 | { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
9856 | { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
9857 | { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, |
9858 | { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
9859 | { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
9860 | { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
9861 | { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
9862 | { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
9863 | { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
9864 | { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
9865 | { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
9866 | { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
9867 | { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
9868 | { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
9869 | { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
9870 | { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
9871 | { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
9872 | { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
9873 | { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
9874 | { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
9875 | { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
9876 | { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
9877 | { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
9878 | { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
9879 | { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
9880 | { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
9881 | { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
9882 | { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
9883 | { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
9884 | { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
9885 | { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
9886 | { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
9887 | { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
9888 | { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
9889 | { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
9890 | { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
9891 | { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
9892 | { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
9893 | { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
9894 | { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
9895 | { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
9896 | { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
9897 | { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
9898 | { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
9899 | { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 RD |
9900 | { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS }, |
9901 | { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
9902 | { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
9903 | { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
185d7c3e RD |
9904 | { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, |
9905 | { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
9906 | { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
9907 | { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
9908 | { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
9909 | { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
9910 | { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
9911 | { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
9912 | { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
9913 | { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
9914 | { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
9915 | { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
9916 | { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
9917 | { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
9918 | { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
9919 | { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
9920 | { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
9921 | { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
9922 | { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
9923 | { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
9924 | { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
9925 | { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
9926 | { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
9927 | { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
9928 | { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
9929 | { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
9930 | { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
9931 | { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
9932 | { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
9933 | { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
9934 | { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
9935 | { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
9936 | { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
9937 | { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
9938 | { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
9939 | { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
9940 | { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
9941 | { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
9942 | { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
9943 | { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
9944 | { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
9945 | { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 9946 | { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
185d7c3e | 9947 | { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
9948 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, |
9949 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
9950 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
9951 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
9952 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
9953 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
9954 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
9955 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 9956 | { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
9957 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, |
9958 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
9959 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
9960 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
9961 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
9962 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
9963 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
9964 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
9965 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 9966 | { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 9967 | { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 9968 | { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS }, |
19e30148 RD |
9969 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, |
9970 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
9971 | { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, |
9972 | { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
9973 | { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
9974 | { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
9975 | { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9976 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, |
9977 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
9978 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
9979 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
9980 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
9981 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
9982 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
9983 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
9984 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 9985 | { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
9986 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, |
9987 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
9988 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
9989 | { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, |
9990 | { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
9991 | { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9992 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, |
9993 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
9994 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
9995 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
9996 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
9997 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
9998 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
9999 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
10000 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
10001 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
10002 | { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10003 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, | |
10004 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
10005 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
10006 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10007 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
10008 | { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS }, |
10009 | { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
10010 | { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
10011 | { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
68320e40 | 10012 | { "delete_wxStopWatch", (PyCFunction) _wrap_delete_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
b37c7e1d | 10013 | { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10014 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, |
10015 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
10016 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
10017 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
10018 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
10019 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
10020 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
10021 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
10022 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
10023 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
10024 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
10025 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
10026 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
10027 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
10028 | { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS }, | |
10029 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
10e07c70 | 10030 | { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 10031 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
cdf14688 RD |
10032 | { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, |
10033 | { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
10034 | { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
10035 | { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10036 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
10037 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
10038 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
10039 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10040 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
10041 | { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, |
10042 | { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
10043 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, |
10044 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f RD |
10045 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, |
10046 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
10047 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, |
10048 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10049 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, |
10050 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
10051 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, |
10052 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10053 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10054 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10055 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10056 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10057 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10058 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10059 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10060 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
10061 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
edf2f43e RD |
10062 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, |
10063 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10064 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
10065 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10066 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
10067 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
10068 | { "wxSystemSettings_HasFeature", (PyCFunction) _wrap_wxSystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, |
10069 | { "wxSystemSettings_GetMetric", (PyCFunction) _wrap_wxSystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
10070 | { "wxSystemSettings_GetFont", (PyCFunction) _wrap_wxSystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10071 | { "wxSystemSettings_GetColour", (PyCFunction) _wrap_wxSystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 | 10072 | { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10073 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10074 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, |
10075 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
10076 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
10077 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10078 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, | |
10079 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
10080 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
10081 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
10082 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
10083 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
10084 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10085 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, |
10086 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
10087 | { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS }, |
10088 | { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
10089 | { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
10090 | { "wxWakeUpMainThread", (PyCFunction) _wrap_wxWakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10091 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10092 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, |
6e18ca6c | 10093 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 RD |
10094 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, |
10095 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10096 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, |
10097 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
10098 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
10099 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
10100 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
10101 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
10102 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10103 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
10104 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
25832b3f | 10105 | { "wxFlushEvents", (PyCFunction) _wrap_wxFlushEvents, METH_VARARGS | METH_KEYWORDS }, |
493f1553 RD |
10106 | { "wxCheckForInterrupt", (PyCFunction) _wrap_wxCheckForInterrupt, METH_VARARGS | METH_KEYWORDS }, |
10107 | { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
10108 | { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10109 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, |
10110 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10111 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, |
10112 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 10113 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, |
91c41b30 RD |
10114 | { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, |
10115 | { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
1e7ecb7b RD |
10116 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, |
10117 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
10118 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10119 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10120 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10121 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, |
10122 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
10123 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
10124 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
10125 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
10126 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10127 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, |
06c0fba4 | 10128 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, |
7cdaed0b | 10129 | { "wxDirSelector", (PyCFunction) _wrap_wxDirSelector, METH_VARARGS | METH_KEYWORDS }, |
a541c325 RD |
10130 | { "wxSaveFileSelector", (PyCFunction) _wrap_wxSaveFileSelector, METH_VARARGS | METH_KEYWORDS }, |
10131 | { "wxLoadFileSelector", (PyCFunction) _wrap_wxLoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 10132 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, |
bb0054cd RD |
10133 | { NULL, NULL } |
10134 | }; | |
1d99702e RD |
10135 | #ifdef __cplusplus |
10136 | } | |
10137 | #endif | |
10138 | /* | |
10139 | * This table is used by the pointer type-checker | |
10140 | */ | |
10141 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
c368d904 | 10142 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, |
1d99702e | 10143 | { "_signed_long","_long",0}, |
b1462dfa | 10144 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10145 | { "_wxPrintQuality","_int",0}, |
10146 | { "_wxPrintQuality","_signed_int",0}, | |
10147 | { "_wxPrintQuality","_unsigned_int",0}, | |
10148 | { "_wxPrintQuality","_wxWindowID",0}, | |
10149 | { "_wxPrintQuality","_uint",0}, | |
10150 | { "_wxPrintQuality","_EBool",0}, | |
10151 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10152 | { "_wxPrintQuality","_time_t",0}, |
76bfdc78 RD |
10153 | { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog}, |
10154 | { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog}, | |
f6bcfd97 | 10155 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, |
f6bcfd97 | 10156 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, |
f6bcfd97 | 10157 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, |
f6bcfd97 | 10158 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, |
1d99702e | 10159 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10160 | { "_long","_unsigned_long",0}, |
10161 | { "_long","_signed_long",0}, | |
b1462dfa | 10162 | { "_size_t","_wxCoord",0}, |
1d99702e | 10163 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10164 | { "_size_t","_time_t",0}, |
1d99702e RD |
10165 | { "_size_t","_unsigned_int",0}, |
10166 | { "_size_t","_int",0}, | |
10167 | { "_size_t","_wxWindowID",0}, | |
10168 | { "_size_t","_uint",0}, | |
b1462dfa | 10169 | { "_uint","_wxCoord",0}, |
1d99702e | 10170 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10171 | { "_uint","_time_t",0}, |
1d99702e RD |
10172 | { "_uint","_size_t",0}, |
10173 | { "_uint","_unsigned_int",0}, | |
10174 | { "_uint","_int",0}, | |
10175 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10176 | { "_wxChar","_char",0}, |
f6bcfd97 | 10177 | { "_char","_wxChar",0}, |
cdf14688 | 10178 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10179 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10180 | { "_EBool","_wxPrintQuality",0}, |
10181 | { "_EBool","_signed_int",0}, | |
10182 | { "_EBool","_int",0}, | |
10183 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10184 | { "_unsigned_long","_long",0}, |
cdf14688 | 10185 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 10186 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10187 | { "_signed_int","_wxPrintQuality",0}, |
10188 | { "_signed_int","_EBool",0}, | |
10189 | { "_signed_int","_wxWindowID",0}, | |
10190 | { "_signed_int","_int",0}, | |
7dbce44a | 10191 | { "_WXTYPE","_wxDateTime_t",0}, |
1d99702e RD |
10192 | { "_WXTYPE","_short",0}, |
10193 | { "_WXTYPE","_signed_short",0}, | |
10194 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 | 10195 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, |
7dbce44a | 10196 | { "_unsigned_short","_wxDateTime_t",0}, |
1d99702e RD |
10197 | { "_unsigned_short","_WXTYPE",0}, |
10198 | { "_unsigned_short","_short",0}, | |
7dbce44a | 10199 | { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject}, |
493f1553 | 10200 | { "_wxObject","_wxWave",SwigwxWaveTowxObject}, |
9416aa89 | 10201 | { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject}, |
9416aa89 | 10202 | { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject}, |
9416aa89 | 10203 | { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject}, |
9416aa89 | 10204 | { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject}, |
9416aa89 | 10205 | { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject}, |
9416aa89 | 10206 | { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject}, |
1d99702e RD |
10207 | { "_signed_short","_WXTYPE",0}, |
10208 | { "_signed_short","_short",0}, | |
1d99702e | 10209 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10210 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10211 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10212 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10213 | { "_unsigned_int","_size_t",0}, |
10214 | { "_unsigned_int","_uint",0}, | |
10215 | { "_unsigned_int","_wxWindowID",0}, | |
10216 | { "_unsigned_int","_int",0}, | |
7dbce44a | 10217 | { "_short","_wxDateTime_t",0}, |
1d99702e RD |
10218 | { "_short","_WXTYPE",0}, |
10219 | { "_short","_unsigned_short",0}, | |
10220 | { "_short","_signed_short",0}, | |
b1462dfa | 10221 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10222 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10223 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10224 | { "_wxWindowID","_size_t",0}, |
10225 | { "_wxWindowID","_EBool",0}, | |
10226 | { "_wxWindowID","_uint",0}, | |
10227 | { "_wxWindowID","_int",0}, | |
10228 | { "_wxWindowID","_signed_int",0}, | |
10229 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10230 | { "_int","_wxCoord",0}, |
1d99702e | 10231 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10232 | { "_int","_time_t",0}, |
1d99702e RD |
10233 | { "_int","_size_t",0}, |
10234 | { "_int","_EBool",0}, | |
10235 | { "_int","_uint",0}, | |
10236 | { "_int","_wxWindowID",0}, | |
10237 | { "_int","_unsigned_int",0}, | |
10238 | { "_int","_signed_int",0}, | |
7dbce44a RD |
10239 | { "_wxDateTime_t","_unsigned_short",0}, |
10240 | { "_wxDateTime_t","_short",0}, | |
10241 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
10242 | { "_time_t","_wxCoord",0}, |
10243 | { "_time_t","_wxPrintQuality",0}, | |
10244 | { "_time_t","_unsigned_int",0}, | |
10245 | { "_time_t","_int",0}, | |
10246 | { "_time_t","_wxWindowID",0}, | |
10247 | { "_time_t","_uint",0}, | |
10248 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
10249 | { "_wxCoord","_int",0}, |
10250 | { "_wxCoord","_signed_int",0}, | |
10251 | { "_wxCoord","_unsigned_int",0}, | |
10252 | { "_wxCoord","_wxWindowID",0}, | |
10253 | { "_wxCoord","_uint",0}, | |
10254 | { "_wxCoord","_EBool",0}, | |
10255 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10256 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10257 | { "_wxCoord","_wxPrintQuality",0}, |
c368d904 | 10258 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, |
1d99702e RD |
10259 | {0,0,0}}; |
10260 | ||
bb0054cd RD |
10261 | static PyObject *SWIG_globals; |
10262 | #ifdef __cplusplus | |
10263 | extern "C" | |
10264 | #endif | |
1d99702e | 10265 | SWIGEXPORT(void) initmisc2c() { |
bb0054cd RD |
10266 | PyObject *m, *d; |
10267 | SWIG_globals = SWIG_newvarlink(); | |
10268 | m = Py_InitModule("misc2c", misc2cMethods); | |
10269 | d = PyModule_GetDict(m); | |
06c0fba4 RD |
10270 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); |
10271 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
10272 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
10273 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
10274 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
10275 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
10276 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
10277 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
10278 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
10279 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
c6c593e8 | 10280 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); |
06c0fba4 RD |
10281 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); |
10282 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
10283 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
10284 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
10285 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
10286 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
10287 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
10288 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
10289 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
10290 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
10291 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
10292 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
10293 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
10294 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
c6c593e8 | 10295 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); |
06c0fba4 | 10296 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); |
c6c593e8 | 10297 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); |
06c0fba4 RD |
10298 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); |
10299 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
10300 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
10301 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
c6c593e8 RD |
10302 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); |
10303 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
10304 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
06c0fba4 RD |
10305 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); |
10306 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
10307 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
10308 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
b5a5d647 | 10309 | PyDict_SetItemString(d,"wxSYS_COLOUR_LISTBOX", PyInt_FromLong((long) wxSYS_COLOUR_LISTBOX)); |
c6c593e8 RD |
10310 | PyDict_SetItemString(d,"wxSYS_COLOUR_HOTLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HOTLIGHT)); |
10311 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
10312 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTINACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
10313 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_MENUHILIGHT)); | |
10314 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUBAR", PyInt_FromLong((long) wxSYS_COLOUR_MENUBAR)); | |
10315 | PyDict_SetItemString(d,"wxSYS_COLOUR_MAX", PyInt_FromLong((long) wxSYS_COLOUR_MAX)); | |
06c0fba4 RD |
10316 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); |
10317 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
10318 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
10319 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
10320 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
10321 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
10322 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
10323 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
10324 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
10325 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
10326 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
10327 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
10328 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
10329 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
10330 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
10331 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
10332 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
10333 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
10334 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
10335 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
10336 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
10337 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
10338 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
10339 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
10340 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
10341 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
10342 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
10343 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
10344 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
10345 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
10346 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
10347 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
10348 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
10349 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
10350 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
10351 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
10352 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
b5a5d647 RD |
10353 | PyDict_SetItemString(d,"wxSYS_CAN_DRAW_FRAME_DECORATIONS", PyInt_FromLong((long) wxSYS_CAN_DRAW_FRAME_DECORATIONS)); |
10354 | PyDict_SetItemString(d,"wxSYS_CAN_ICONIZE_FRAME", PyInt_FromLong((long) wxSYS_CAN_ICONIZE_FRAME)); | |
f6bcfd97 BP |
10355 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); |
10356 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
10357 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
10358 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
10359 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
10360 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
10361 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
10362 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
10363 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
10364 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
1b62f00d | 10365 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); |
b96c7a38 RD |
10366 | PyDict_SetItemString(d,"wxEXEC_ASYNC", PyInt_FromLong((long) wxEXEC_ASYNC)); |
10367 | PyDict_SetItemString(d,"wxEXEC_SYNC", PyInt_FromLong((long) wxEXEC_SYNC)); | |
10368 | PyDict_SetItemString(d,"wxEXEC_NOHIDE", PyInt_FromLong((long) wxEXEC_NOHIDE)); | |
d6eacb25 | 10369 | PyDict_SetItemString(d,"wxEXEC_MAKE_GROUP_LEADER", PyInt_FromLong((long) wxEXEC_MAKE_GROUP_LEADER)); |
b37c7e1d RD |
10370 | PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD)); |
10371 | PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE)); | |
10372 | PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE)); | |
10373 | PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME)); | |
10374 | PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL)); | |
10375 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
10376 | SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set); | |
9416aa89 | 10377 | |
9416aa89 RD |
10378 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); |
10379 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
1d99702e RD |
10380 | { |
10381 | int i; | |
10382 | for (i = 0; _swig_mapping[i].n1; i++) | |
10383 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10384 | } | |
bb0054cd | 10385 | } |