]>
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 | 274 | |
72797a7d RD |
275 | #include <wx/artprov.h> |
276 | ||
277 | DECLARE_DEF_STRING(ART_OTHER); | |
278 | ||
279 | // Python aware wxArtProvider | |
280 | class wxPyArtProvider : public wxArtProvider { | |
281 | public: | |
282 | ||
283 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
284 | const wxArtClient& client, | |
285 | const wxSize& size) { | |
286 | wxBitmap rval = wxNullBitmap; | |
287 | wxPyBeginBlockThreads(); | |
288 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
289 | PyObject* so = wxPyConstructObject((void*)&size, "wxSize", 0); | |
290 | PyObject* ro; | |
291 | wxBitmap* ptr; | |
292 | #if 0 | |
293 | ro = wxPyCBH_callCallbackObj( | |
294 | m_myInst, Py_BuildValue("(OOO)", | |
295 | wx2PyString(id), | |
296 | wx2PyString(client), | |
297 | so)); | |
298 | #else // testing... | |
299 | PyObject *args, *s1, *s2; | |
300 | s1 = wx2PyString(id); | |
301 | s2 = wx2PyString(client); | |
302 | args = Py_BuildValue("(OOO)", s1, s2, so); | |
303 | ro = wxPyCBH_callCallbackObj(m_myInst, args); | |
304 | #endif | |
305 | Py_DECREF(so); | |
306 | if (ro) { | |
307 | if (!SWIG_GetPtrObj(ro, (void**)&ptr, "_wxBitmap_p")) | |
308 | rval = *ptr; | |
309 | Py_DECREF(ro); | |
310 | } | |
311 | } | |
312 | wxPyEndBlockThreads(); | |
313 | return rval; | |
314 | } | |
315 | ||
316 | PYPRIVATE; | |
317 | }; | |
318 | ||
7dbce44a | 319 | #include <wx/docview.h> |
06c0fba4 RD |
320 | #ifdef __cplusplus |
321 | extern "C" { | |
322 | #endif | |
323 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
324 | PyObject * _resultobj; | |
325 | wxString * _result; | |
137b5242 RD |
326 | wxString * _arg0 = (wxString *) &wxPyFileSelectorPromptStr; |
327 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
328 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
329 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
330 | wxString * _arg4 = (wxString *) &wxPyFileSelectorDefaultWildcardStr; | |
06c0fba4 RD |
331 | int _arg5 = (int ) 0; |
332 | wxWindow * _arg6 = (wxWindow *) NULL; | |
333 | int _arg7 = (int ) -1; | |
334 | int _arg8 = (int ) -1; | |
137b5242 RD |
335 | PyObject * _obj0 = 0; |
336 | PyObject * _obj1 = 0; | |
337 | PyObject * _obj2 = 0; | |
338 | PyObject * _obj3 = 0; | |
339 | PyObject * _obj4 = 0; | |
06c0fba4 RD |
340 | PyObject * _argo6 = 0; |
341 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
342 | ||
343 | self = self; | |
137b5242 | 344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOOOiOii:wxFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7,&_arg8)) |
06c0fba4 | 345 | return NULL; |
137b5242 RD |
346 | if (_obj0) |
347 | { | |
348 | _arg0 = wxString_in_helper(_obj0); | |
349 | if (_arg0 == NULL) | |
350 | return NULL; | |
351 | } | |
352 | if (_obj1) | |
353 | { | |
354 | _arg1 = wxString_in_helper(_obj1); | |
355 | if (_arg1 == NULL) | |
356 | return NULL; | |
357 | } | |
358 | if (_obj2) | |
359 | { | |
360 | _arg2 = wxString_in_helper(_obj2); | |
361 | if (_arg2 == NULL) | |
362 | return NULL; | |
363 | } | |
364 | if (_obj3) | |
365 | { | |
366 | _arg3 = wxString_in_helper(_obj3); | |
367 | if (_arg3 == NULL) | |
368 | return NULL; | |
369 | } | |
370 | if (_obj4) | |
371 | { | |
372 | _arg4 = wxString_in_helper(_obj4); | |
373 | if (_arg4 == NULL) | |
374 | return NULL; | |
375 | } | |
06c0fba4 RD |
376 | if (_argo6) { |
377 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
378 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
380 | return NULL; | |
381 | } | |
382 | } | |
383 | { | |
4268f798 | 384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 385 | _result = new wxString (wxFileSelector(*_arg0,*_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8)); |
06c0fba4 | 386 | |
4268f798 RD |
387 | wxPyEndAllowThreads(__tstate); |
388 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 389 | }{ |
c8bc7bb8 RD |
390 | #if wxUSE_UNICODE |
391 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
392 | #else | |
eec92d76 | 393 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 394 | #endif |
06c0fba4 | 395 | } |
137b5242 RD |
396 | { |
397 | if (_obj0) | |
398 | delete _arg0; | |
399 | } | |
400 | { | |
401 | if (_obj1) | |
402 | delete _arg1; | |
403 | } | |
404 | { | |
405 | if (_obj2) | |
406 | delete _arg2; | |
407 | } | |
408 | { | |
409 | if (_obj3) | |
410 | delete _arg3; | |
411 | } | |
412 | { | |
413 | if (_obj4) | |
414 | delete _arg4; | |
415 | } | |
06c0fba4 RD |
416 | { |
417 | delete _result; | |
418 | } | |
419 | return _resultobj; | |
420 | } | |
421 | ||
a541c325 RD |
422 | static PyObject *_wrap_wxLoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
423 | PyObject * _resultobj; | |
424 | wxString * _result; | |
137b5242 RD |
425 | wxString * _arg0; |
426 | wxString * _arg1; | |
427 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
a541c325 | 428 | wxWindow * _arg3 = (wxWindow *) NULL; |
137b5242 RD |
429 | PyObject * _obj0 = 0; |
430 | PyObject * _obj1 = 0; | |
431 | PyObject * _obj2 = 0; | |
a541c325 RD |
432 | PyObject * _argo3 = 0; |
433 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
434 | ||
435 | self = self; | |
137b5242 | 436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxLoadFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) |
a541c325 | 437 | return NULL; |
137b5242 RD |
438 | { |
439 | _arg0 = wxString_in_helper(_obj0); | |
440 | if (_arg0 == NULL) | |
441 | return NULL; | |
442 | } | |
443 | { | |
444 | _arg1 = wxString_in_helper(_obj1); | |
445 | if (_arg1 == NULL) | |
446 | return NULL; | |
447 | } | |
448 | if (_obj2) | |
449 | { | |
450 | _arg2 = wxString_in_helper(_obj2); | |
451 | if (_arg2 == NULL) | |
452 | return NULL; | |
453 | } | |
a541c325 RD |
454 | if (_argo3) { |
455 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
456 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxLoadFileSelector. Expected _wxWindow_p."); | |
458 | return NULL; | |
459 | } | |
460 | } | |
461 | { | |
462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 463 | _result = new wxString (wxLoadFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); |
a541c325 RD |
464 | |
465 | wxPyEndAllowThreads(__tstate); | |
466 | if (PyErr_Occurred()) return NULL; | |
467 | }{ | |
468 | #if wxUSE_UNICODE | |
469 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
470 | #else | |
471 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
472 | #endif | |
473 | } | |
137b5242 RD |
474 | { |
475 | if (_obj0) | |
476 | delete _arg0; | |
477 | } | |
478 | { | |
479 | if (_obj1) | |
480 | delete _arg1; | |
481 | } | |
482 | { | |
483 | if (_obj2) | |
484 | delete _arg2; | |
485 | } | |
a541c325 RD |
486 | { |
487 | delete _result; | |
488 | } | |
489 | return _resultobj; | |
490 | } | |
491 | ||
492 | static PyObject *_wrap_wxSaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
493 | PyObject * _resultobj; | |
494 | wxString * _result; | |
137b5242 RD |
495 | wxString * _arg0; |
496 | wxString * _arg1; | |
497 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
a541c325 | 498 | wxWindow * _arg3 = (wxWindow *) NULL; |
137b5242 RD |
499 | PyObject * _obj0 = 0; |
500 | PyObject * _obj1 = 0; | |
501 | PyObject * _obj2 = 0; | |
a541c325 RD |
502 | PyObject * _argo3 = 0; |
503 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
504 | ||
505 | self = self; | |
137b5242 RD |
506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxSaveFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) |
507 | return NULL; | |
508 | { | |
509 | _arg0 = wxString_in_helper(_obj0); | |
510 | if (_arg0 == NULL) | |
a541c325 | 511 | return NULL; |
137b5242 RD |
512 | } |
513 | { | |
514 | _arg1 = wxString_in_helper(_obj1); | |
515 | if (_arg1 == NULL) | |
516 | return NULL; | |
517 | } | |
518 | if (_obj2) | |
519 | { | |
520 | _arg2 = wxString_in_helper(_obj2); | |
521 | if (_arg2 == NULL) | |
522 | return NULL; | |
523 | } | |
a541c325 RD |
524 | if (_argo3) { |
525 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
526 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxSaveFileSelector. Expected _wxWindow_p."); | |
528 | return NULL; | |
529 | } | |
530 | } | |
531 | { | |
532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 533 | _result = new wxString (wxSaveFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); |
a541c325 RD |
534 | |
535 | wxPyEndAllowThreads(__tstate); | |
536 | if (PyErr_Occurred()) return NULL; | |
537 | }{ | |
538 | #if wxUSE_UNICODE | |
539 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
540 | #else | |
541 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
542 | #endif | |
543 | } | |
137b5242 RD |
544 | { |
545 | if (_obj0) | |
546 | delete _arg0; | |
547 | } | |
548 | { | |
549 | if (_obj1) | |
550 | delete _arg1; | |
551 | } | |
552 | { | |
553 | if (_obj2) | |
554 | delete _arg2; | |
555 | } | |
a541c325 RD |
556 | { |
557 | delete _result; | |
558 | } | |
559 | return _resultobj; | |
560 | } | |
561 | ||
7cdaed0b RD |
562 | static PyObject *_wrap_wxDirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
563 | PyObject * _resultobj; | |
564 | wxString * _result; | |
565 | wxString * _arg0 = (wxString *) &wxPyDirSelectorPromptStr; | |
566 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
daa3eac9 | 567 | long _arg2 = (long ) wxDD_DEFAULT_STYLE; |
7cdaed0b RD |
568 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
569 | wxWindow * _arg4 = (wxWindow *) NULL; | |
570 | PyObject * _obj0 = 0; | |
571 | PyObject * _obj1 = 0; | |
572 | wxPoint temp; | |
573 | PyObject * _obj3 = 0; | |
574 | PyObject * _argo4 = 0; | |
575 | char *_kwnames[] = { "message","defaultPath","style","pos","parent", NULL }; | |
576 | ||
577 | self = self; | |
578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOlOO:wxDirSelector",_kwnames,&_obj0,&_obj1,&_arg2,&_obj3,&_argo4)) | |
579 | return NULL; | |
580 | if (_obj0) | |
581 | { | |
582 | _arg0 = wxString_in_helper(_obj0); | |
583 | if (_arg0 == NULL) | |
584 | return NULL; | |
585 | } | |
586 | if (_obj1) | |
587 | { | |
588 | _arg1 = wxString_in_helper(_obj1); | |
589 | if (_arg1 == NULL) | |
590 | return NULL; | |
591 | } | |
592 | if (_obj3) | |
593 | { | |
594 | _arg3 = &temp; | |
595 | if (! wxPoint_helper(_obj3, &_arg3)) | |
596 | return NULL; | |
597 | } | |
598 | if (_argo4) { | |
599 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
600 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxDirSelector. Expected _wxWindow_p."); | |
602 | return NULL; | |
603 | } | |
604 | } | |
605 | { | |
606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
607 | _result = new wxString (wxDirSelector(*_arg0,*_arg1,_arg2,*_arg3,_arg4)); | |
608 | ||
609 | wxPyEndAllowThreads(__tstate); | |
610 | if (PyErr_Occurred()) return NULL; | |
611 | }{ | |
612 | #if wxUSE_UNICODE | |
613 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
614 | #else | |
615 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
616 | #endif | |
617 | } | |
618 | { | |
619 | if (_obj0) | |
620 | delete _arg0; | |
621 | } | |
622 | { | |
623 | if (_obj1) | |
624 | delete _arg1; | |
625 | } | |
626 | { | |
627 | delete _result; | |
628 | } | |
629 | return _resultobj; | |
630 | } | |
631 | ||
06c0fba4 RD |
632 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
633 | PyObject * _resultobj; | |
634 | wxString * _result; | |
635 | wxString * _arg0; | |
137b5242 RD |
636 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
637 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
06c0fba4 RD |
638 | wxWindow * _arg3 = (wxWindow *) NULL; |
639 | int _arg4 = (int ) -1; | |
640 | int _arg5 = (int ) -1; | |
641 | bool _arg6 = (bool ) TRUE; | |
642 | PyObject * _obj0 = 0; | |
643 | PyObject * _obj1 = 0; | |
644 | PyObject * _obj2 = 0; | |
645 | PyObject * _argo3 = 0; | |
646 | int tempbool6 = (int) TRUE; | |
647 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
648 | ||
649 | self = self; | |
650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
651 | return NULL; | |
652 | { | |
c8bc7bb8 RD |
653 | _arg0 = wxString_in_helper(_obj0); |
654 | if (_arg0 == NULL) | |
185d7c3e | 655 | return NULL; |
06c0fba4 RD |
656 | } |
657 | if (_obj1) | |
658 | { | |
c8bc7bb8 RD |
659 | _arg1 = wxString_in_helper(_obj1); |
660 | if (_arg1 == NULL) | |
185d7c3e | 661 | return NULL; |
06c0fba4 RD |
662 | } |
663 | if (_obj2) | |
664 | { | |
c8bc7bb8 RD |
665 | _arg2 = wxString_in_helper(_obj2); |
666 | if (_arg2 == NULL) | |
06c0fba4 | 667 | return NULL; |
06c0fba4 RD |
668 | } |
669 | if (_argo3) { | |
670 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
671 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
673 | return NULL; | |
674 | } | |
675 | } | |
676 | _arg6 = (bool ) tempbool6; | |
677 | { | |
4268f798 | 678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 679 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); |
06c0fba4 | 680 | |
4268f798 RD |
681 | wxPyEndAllowThreads(__tstate); |
682 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 683 | }{ |
c8bc7bb8 RD |
684 | #if wxUSE_UNICODE |
685 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
686 | #else | |
eec92d76 | 687 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 688 | #endif |
06c0fba4 RD |
689 | } |
690 | { | |
691 | if (_obj0) | |
692 | delete _arg0; | |
693 | } | |
694 | { | |
695 | if (_obj1) | |
696 | delete _arg1; | |
697 | } | |
698 | { | |
699 | if (_obj2) | |
700 | delete _arg2; | |
701 | } | |
702 | { | |
703 | delete _result; | |
704 | } | |
705 | return _resultobj; | |
706 | } | |
707 | ||
1b62f00d RD |
708 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
709 | PyObject * _resultobj; | |
710 | wxString * _result; | |
711 | wxString * _arg0; | |
137b5242 RD |
712 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
713 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
1b62f00d RD |
714 | wxWindow * _arg3 = (wxWindow *) NULL; |
715 | PyObject * _obj0 = 0; | |
716 | PyObject * _obj1 = 0; | |
717 | PyObject * _obj2 = 0; | |
718 | PyObject * _argo3 = 0; | |
719 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
720 | ||
721 | self = self; | |
722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
723 | return NULL; | |
724 | { | |
c8bc7bb8 RD |
725 | _arg0 = wxString_in_helper(_obj0); |
726 | if (_arg0 == NULL) | |
1b62f00d | 727 | return NULL; |
1b62f00d RD |
728 | } |
729 | if (_obj1) | |
730 | { | |
c8bc7bb8 RD |
731 | _arg1 = wxString_in_helper(_obj1); |
732 | if (_arg1 == NULL) | |
1b62f00d | 733 | return NULL; |
1b62f00d RD |
734 | } |
735 | if (_obj2) | |
736 | { | |
c8bc7bb8 RD |
737 | _arg2 = wxString_in_helper(_obj2); |
738 | if (_arg2 == NULL) | |
1b62f00d | 739 | return NULL; |
1b62f00d RD |
740 | } |
741 | if (_argo3) { | |
742 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
743 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
745 | return NULL; | |
746 | } | |
747 | } | |
748 | { | |
4268f798 | 749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 750 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); |
1b62f00d | 751 | |
4268f798 RD |
752 | wxPyEndAllowThreads(__tstate); |
753 | if (PyErr_Occurred()) return NULL; | |
1b62f00d | 754 | }{ |
c8bc7bb8 RD |
755 | #if wxUSE_UNICODE |
756 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
757 | #else | |
1b62f00d | 758 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 759 | #endif |
1b62f00d RD |
760 | } |
761 | { | |
762 | if (_obj0) | |
763 | delete _arg0; | |
764 | } | |
765 | { | |
766 | if (_obj1) | |
767 | delete _arg1; | |
768 | } | |
769 | { | |
770 | if (_obj2) | |
771 | delete _arg2; | |
772 | } | |
773 | { | |
774 | delete _result; | |
775 | } | |
776 | return _resultobj; | |
777 | } | |
778 | ||
06c0fba4 RD |
779 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
780 | PyObject * _resultobj; | |
781 | wxString * _result; | |
782 | wxString * _arg0; | |
783 | wxString * _arg1; | |
784 | int _arg2; | |
785 | wxString * _arg3; | |
786 | wxWindow * _arg4 = (wxWindow *) NULL; | |
787 | int _arg5 = (int ) -1; | |
788 | int _arg6 = (int ) -1; | |
789 | bool _arg7 = (bool ) TRUE; | |
790 | int _arg8 = (int ) 150; | |
791 | int _arg9 = (int ) 200; | |
792 | PyObject * _obj0 = 0; | |
793 | PyObject * _obj1 = 0; | |
794 | PyObject * _obj3 = 0; | |
795 | PyObject * _argo4 = 0; | |
796 | int tempbool7 = (int) TRUE; | |
eec92d76 | 797 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
798 | |
799 | self = self; | |
800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
801 | return NULL; | |
802 | { | |
c8bc7bb8 RD |
803 | _arg0 = wxString_in_helper(_obj0); |
804 | if (_arg0 == NULL) | |
185d7c3e | 805 | return NULL; |
06c0fba4 RD |
806 | } |
807 | { | |
c8bc7bb8 RD |
808 | _arg1 = wxString_in_helper(_obj1); |
809 | if (_arg1 == NULL) | |
185d7c3e | 810 | return NULL; |
06c0fba4 RD |
811 | } |
812 | if (_obj3) | |
813 | { | |
814 | _arg3 = wxString_LIST_helper(_obj3); | |
815 | if (_arg3 == NULL) { | |
816 | return NULL; | |
817 | } | |
818 | } | |
819 | if (_argo4) { | |
820 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
821 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
823 | return NULL; | |
824 | } | |
825 | } | |
826 | _arg7 = (bool ) tempbool7; | |
827 | { | |
828 | if (_obj3) { | |
829 | _arg2 = PyList_Size(_obj3); | |
830 | } | |
831 | else { | |
832 | _arg2 = 0; | |
833 | } | |
834 | } | |
835 | { | |
4268f798 | 836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 837 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); |
06c0fba4 | 838 | |
4268f798 RD |
839 | wxPyEndAllowThreads(__tstate); |
840 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 841 | }{ |
c8bc7bb8 RD |
842 | #if wxUSE_UNICODE |
843 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
844 | #else | |
eec92d76 | 845 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 846 | #endif |
06c0fba4 RD |
847 | } |
848 | { | |
849 | if (_obj0) | |
850 | delete _arg0; | |
851 | } | |
852 | { | |
853 | if (_obj1) | |
854 | delete _arg1; | |
855 | } | |
856 | { | |
857 | delete [] _arg3; | |
858 | } | |
859 | { | |
860 | delete _result; | |
861 | } | |
862 | return _resultobj; | |
863 | } | |
864 | ||
865 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
866 | PyObject * _resultobj; | |
867 | int _result; | |
868 | wxString * _arg0; | |
869 | wxString * _arg1; | |
870 | int _arg2; | |
871 | wxString * _arg3; | |
872 | wxWindow * _arg4 = (wxWindow *) NULL; | |
873 | int _arg5 = (int ) -1; | |
874 | int _arg6 = (int ) -1; | |
875 | bool _arg7 = (bool ) TRUE; | |
876 | int _arg8 = (int ) 150; | |
877 | int _arg9 = (int ) 200; | |
878 | PyObject * _obj0 = 0; | |
879 | PyObject * _obj1 = 0; | |
880 | PyObject * _obj3 = 0; | |
881 | PyObject * _argo4 = 0; | |
882 | int tempbool7 = (int) TRUE; | |
eec92d76 | 883 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
884 | |
885 | self = self; | |
886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
887 | return NULL; | |
888 | { | |
c8bc7bb8 RD |
889 | _arg0 = wxString_in_helper(_obj0); |
890 | if (_arg0 == NULL) | |
185d7c3e | 891 | return NULL; |
06c0fba4 RD |
892 | } |
893 | { | |
c8bc7bb8 RD |
894 | _arg1 = wxString_in_helper(_obj1); |
895 | if (_arg1 == NULL) | |
185d7c3e | 896 | return NULL; |
06c0fba4 RD |
897 | } |
898 | if (_obj3) | |
899 | { | |
900 | _arg3 = wxString_LIST_helper(_obj3); | |
901 | if (_arg3 == NULL) { | |
902 | return NULL; | |
903 | } | |
904 | } | |
905 | if (_argo4) { | |
906 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
907 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
909 | return NULL; | |
910 | } | |
911 | } | |
912 | _arg7 = (bool ) tempbool7; | |
913 | { | |
914 | if (_obj3) { | |
915 | _arg2 = PyList_Size(_obj3); | |
916 | } | |
917 | else { | |
918 | _arg2 = 0; | |
919 | } | |
920 | } | |
921 | { | |
4268f798 | 922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 923 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
06c0fba4 | 924 | |
4268f798 RD |
925 | wxPyEndAllowThreads(__tstate); |
926 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
927 | } _resultobj = Py_BuildValue("i",_result); |
928 | { | |
929 | if (_obj0) | |
930 | delete _arg0; | |
931 | } | |
932 | { | |
933 | if (_obj1) | |
934 | delete _arg1; | |
935 | } | |
936 | { | |
937 | delete [] _arg3; | |
938 | } | |
939 | return _resultobj; | |
940 | } | |
941 | ||
942 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
943 | PyObject * _resultobj; | |
944 | int _result; | |
945 | wxString * _arg0; | |
137b5242 | 946 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
06c0fba4 RD |
947 | int _arg2 = (int ) wxOK|wxCENTRE; |
948 | wxWindow * _arg3 = (wxWindow *) NULL; | |
949 | int _arg4 = (int ) -1; | |
950 | int _arg5 = (int ) -1; | |
951 | PyObject * _obj0 = 0; | |
952 | PyObject * _obj1 = 0; | |
953 | PyObject * _argo3 = 0; | |
954 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
955 | ||
956 | self = self; | |
957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
958 | return NULL; | |
959 | { | |
c8bc7bb8 RD |
960 | _arg0 = wxString_in_helper(_obj0); |
961 | if (_arg0 == NULL) | |
185d7c3e | 962 | return NULL; |
06c0fba4 RD |
963 | } |
964 | if (_obj1) | |
965 | { | |
c8bc7bb8 RD |
966 | _arg1 = wxString_in_helper(_obj1); |
967 | if (_arg1 == NULL) | |
185d7c3e | 968 | return NULL; |
06c0fba4 RD |
969 | } |
970 | if (_argo3) { | |
971 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
972 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
974 | return NULL; | |
975 | } | |
976 | } | |
977 | { | |
4268f798 | 978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 979 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); |
06c0fba4 | 980 | |
4268f798 RD |
981 | wxPyEndAllowThreads(__tstate); |
982 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
983 | } _resultobj = Py_BuildValue("i",_result); |
984 | { | |
985 | if (_obj0) | |
986 | delete _arg0; | |
987 | } | |
988 | { | |
989 | if (_obj1) | |
990 | delete _arg1; | |
991 | } | |
992 | return _resultobj; | |
993 | } | |
994 | ||
995 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
996 | PyObject * _resultobj; | |
997 | long _result; | |
998 | wxString * _arg0; | |
999 | wxString * _arg1; | |
1000 | wxString * _arg2; | |
1001 | long _arg3; | |
1002 | long _arg4 = (long ) 0; | |
1003 | long _arg5 = (long ) 100; | |
1004 | wxWindow * _arg6 = (wxWindow *) NULL; | |
e508a2b6 | 1005 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; |
06c0fba4 RD |
1006 | PyObject * _obj0 = 0; |
1007 | PyObject * _obj1 = 0; | |
1008 | PyObject * _obj2 = 0; | |
1009 | PyObject * _argo6 = 0; | |
1010 | wxPoint temp; | |
1011 | PyObject * _obj7 = 0; | |
1012 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
1013 | ||
1014 | self = self; | |
1015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
1016 | return NULL; | |
1017 | { | |
c8bc7bb8 RD |
1018 | _arg0 = wxString_in_helper(_obj0); |
1019 | if (_arg0 == NULL) | |
185d7c3e | 1020 | return NULL; |
06c0fba4 RD |
1021 | } |
1022 | { | |
c8bc7bb8 RD |
1023 | _arg1 = wxString_in_helper(_obj1); |
1024 | if (_arg1 == NULL) | |
06c0fba4 | 1025 | return NULL; |
06c0fba4 RD |
1026 | } |
1027 | { | |
c8bc7bb8 RD |
1028 | _arg2 = wxString_in_helper(_obj2); |
1029 | if (_arg2 == NULL) | |
185d7c3e | 1030 | return NULL; |
06c0fba4 RD |
1031 | } |
1032 | if (_argo6) { | |
1033 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1034 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
1035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
1036 | return NULL; | |
1037 | } | |
1038 | } | |
1039 | if (_obj7) | |
1040 | { | |
1041 | _arg7 = &temp; | |
1042 | if (! wxPoint_helper(_obj7, &_arg7)) | |
1043 | return NULL; | |
1044 | } | |
1045 | { | |
4268f798 | 1046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1047 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); |
06c0fba4 | 1048 | |
4268f798 RD |
1049 | wxPyEndAllowThreads(__tstate); |
1050 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1051 | } _resultobj = Py_BuildValue("l",_result); |
1052 | { | |
1053 | if (_obj0) | |
1054 | delete _arg0; | |
1055 | } | |
1056 | { | |
1057 | if (_obj1) | |
1058 | delete _arg1; | |
1059 | } | |
1060 | { | |
1061 | if (_obj2) | |
1062 | delete _arg2; | |
1063 | } | |
1064 | return _resultobj; | |
1065 | } | |
1066 | ||
1067 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1068 | PyObject * _resultobj; | |
1069 | bool _result; | |
1070 | char *_kwnames[] = { NULL }; | |
1071 | ||
1072 | self = self; | |
1073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
1074 | return NULL; | |
1075 | { | |
4268f798 | 1076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1077 | _result = (bool )wxColourDisplay(); |
06c0fba4 | 1078 | |
4268f798 RD |
1079 | wxPyEndAllowThreads(__tstate); |
1080 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1081 | } _resultobj = Py_BuildValue("i",_result); |
1082 | return _resultobj; | |
1083 | } | |
1084 | ||
1085 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1086 | PyObject * _resultobj; | |
1087 | int _result; | |
1088 | char *_kwnames[] = { NULL }; | |
1089 | ||
1090 | self = self; | |
1091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
1092 | return NULL; | |
1093 | { | |
4268f798 | 1094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1095 | _result = (int )wxDisplayDepth(); |
06c0fba4 | 1096 | |
4268f798 RD |
1097 | wxPyEndAllowThreads(__tstate); |
1098 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1099 | } _resultobj = Py_BuildValue("i",_result); |
1100 | return _resultobj; | |
1101 | } | |
f0261a72 | 1102 | |
1e7ecb7b RD |
1103 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { |
1104 | PyObject * _resultobj; | |
1105 | int _result; | |
1106 | char *_kwnames[] = { NULL }; | |
1107 | ||
1108 | self = self; | |
1109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
1110 | return NULL; | |
1111 | { | |
4268f798 | 1112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1113 | _result = (int )wxGetDisplayDepth(); |
1e7ecb7b | 1114 | |
4268f798 RD |
1115 | wxPyEndAllowThreads(__tstate); |
1116 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1117 | } _resultobj = Py_BuildValue("i",_result); |
1118 | return _resultobj; | |
1119 | } | |
1120 | ||
1121 | static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1122 | PyObject * _resultobj; | |
1123 | int * _arg0; | |
1124 | int temp; | |
1125 | int * _arg1; | |
1126 | int temp0; | |
1127 | char *_kwnames[] = { NULL }; | |
1128 | ||
1129 | self = self; | |
1130 | { | |
1131 | _arg0 = &temp; | |
1132 | } | |
1133 | { | |
1134 | _arg1 = &temp0; | |
1135 | } | |
1136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames)) | |
1137 | return NULL; | |
1138 | { | |
4268f798 | 1139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1140 | wxDisplaySize(_arg0,_arg1); |
1e7ecb7b | 1141 | |
4268f798 RD |
1142 | wxPyEndAllowThreads(__tstate); |
1143 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1144 | } Py_INCREF(Py_None); |
1145 | _resultobj = Py_None; | |
1146 | { | |
1147 | PyObject *o; | |
1148 | o = PyInt_FromLong((long) (*_arg0)); | |
1149 | _resultobj = t_output_helper(_resultobj, o); | |
1150 | } | |
1151 | { | |
1152 | PyObject *o; | |
1153 | o = PyInt_FromLong((long) (*_arg1)); | |
1154 | _resultobj = t_output_helper(_resultobj, o); | |
1155 | } | |
1156 | return _resultobj; | |
1157 | } | |
1158 | ||
1159 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1160 | PyObject * _resultobj; | |
1161 | wxSize * _result; | |
1162 | char *_kwnames[] = { NULL }; | |
1163 | char _ptemp[128]; | |
1164 | ||
1165 | self = self; | |
1166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
1167 | return NULL; | |
1168 | { | |
4268f798 | 1169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1170 | _result = new wxSize (wxGetDisplaySize()); |
1e7ecb7b | 1171 | |
4268f798 RD |
1172 | wxPyEndAllowThreads(__tstate); |
1173 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1174 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1175 | _resultobj = Py_BuildValue("s",_ptemp); | |
1176 | return _resultobj; | |
1177 | } | |
1178 | ||
1179 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1180 | PyObject * _resultobj; | |
1181 | int * _arg0; | |
1182 | int temp; | |
1183 | int * _arg1; | |
1184 | int temp0; | |
1185 | char *_kwnames[] = { NULL }; | |
1186 | ||
1187 | self = self; | |
1188 | { | |
1189 | _arg0 = &temp; | |
1190 | } | |
1191 | { | |
1192 | _arg1 = &temp0; | |
1193 | } | |
1194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
1195 | return NULL; | |
1196 | { | |
4268f798 | 1197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1198 | wxDisplaySizeMM(_arg0,_arg1); |
1e7ecb7b | 1199 | |
4268f798 RD |
1200 | wxPyEndAllowThreads(__tstate); |
1201 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1202 | } Py_INCREF(Py_None); |
1203 | _resultobj = Py_None; | |
1204 | { | |
1205 | PyObject *o; | |
1206 | o = PyInt_FromLong((long) (*_arg0)); | |
1207 | _resultobj = t_output_helper(_resultobj, o); | |
1208 | } | |
1209 | { | |
1210 | PyObject *o; | |
1211 | o = PyInt_FromLong((long) (*_arg1)); | |
1212 | _resultobj = t_output_helper(_resultobj, o); | |
1213 | } | |
1214 | return _resultobj; | |
1215 | } | |
1216 | ||
1217 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1218 | PyObject * _resultobj; | |
1219 | wxSize * _result; | |
1220 | char *_kwnames[] = { NULL }; | |
1221 | char _ptemp[128]; | |
1222 | ||
1223 | self = self; | |
1224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1225 | return NULL; | |
1226 | { | |
4268f798 | 1227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1228 | _result = new wxSize (wxGetDisplaySizeMM()); |
1e7ecb7b | 1229 | |
4268f798 RD |
1230 | wxPyEndAllowThreads(__tstate); |
1231 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1232 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1233 | _resultobj = Py_BuildValue("s",_ptemp); | |
1234 | return _resultobj; | |
1235 | } | |
1236 | ||
91c41b30 RD |
1237 | static PyObject *_wrap_wxClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
1238 | PyObject * _resultobj; | |
1239 | int * _arg0; | |
1240 | int temp; | |
1241 | int * _arg1; | |
1242 | int temp0; | |
1243 | int * _arg2; | |
1244 | int temp1; | |
1245 | int * _arg3; | |
1246 | int temp2; | |
1247 | char *_kwnames[] = { NULL }; | |
1248 | ||
1249 | self = self; | |
1250 | { | |
1251 | _arg0 = &temp; | |
1252 | } | |
1253 | { | |
1254 | _arg1 = &temp0; | |
1255 | } | |
1256 | { | |
1257 | _arg2 = &temp1; | |
1258 | } | |
1259 | { | |
1260 | _arg3 = &temp2; | |
1261 | } | |
1262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxClientDisplayRect",_kwnames)) | |
1263 | return NULL; | |
1264 | { | |
4268f798 | 1265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1266 | wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3); |
91c41b30 | 1267 | |
4268f798 RD |
1268 | wxPyEndAllowThreads(__tstate); |
1269 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1270 | } Py_INCREF(Py_None); |
1271 | _resultobj = Py_None; | |
1272 | { | |
1273 | PyObject *o; | |
1274 | o = PyInt_FromLong((long) (*_arg0)); | |
1275 | _resultobj = t_output_helper(_resultobj, o); | |
1276 | } | |
1277 | { | |
1278 | PyObject *o; | |
1279 | o = PyInt_FromLong((long) (*_arg1)); | |
1280 | _resultobj = t_output_helper(_resultobj, o); | |
1281 | } | |
1282 | { | |
1283 | PyObject *o; | |
1284 | o = PyInt_FromLong((long) (*_arg2)); | |
1285 | _resultobj = t_output_helper(_resultobj, o); | |
1286 | } | |
1287 | { | |
1288 | PyObject *o; | |
1289 | o = PyInt_FromLong((long) (*_arg3)); | |
1290 | _resultobj = t_output_helper(_resultobj, o); | |
1291 | } | |
1292 | return _resultobj; | |
1293 | } | |
1294 | ||
1295 | static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1296 | PyObject * _resultobj; | |
1297 | wxRect * _result; | |
1298 | char *_kwnames[] = { NULL }; | |
1299 | char _ptemp[128]; | |
1300 | ||
1301 | self = self; | |
1302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames)) | |
1303 | return NULL; | |
1304 | { | |
4268f798 | 1305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1306 | _result = new wxRect (wxGetClientDisplayRect()); |
91c41b30 | 1307 | |
4268f798 RD |
1308 | wxPyEndAllowThreads(__tstate); |
1309 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1310 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
1311 | _resultobj = Py_BuildValue("s",_ptemp); | |
1312 | return _resultobj; | |
1313 | } | |
1314 | ||
06c0fba4 RD |
1315 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1316 | PyObject * _resultobj; | |
1317 | wxCursor * _arg0; | |
1318 | PyObject * _argo0 = 0; | |
1319 | char *_kwnames[] = { "cursor", NULL }; | |
f0261a72 | 1320 | |
06c0fba4 RD |
1321 | self = self; |
1322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1323 | return NULL; | |
1324 | if (_argo0) { | |
1325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
1328 | return NULL; | |
1329 | } | |
f0261a72 | 1330 | } |
06c0fba4 | 1331 | { |
4268f798 | 1332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1333 | wxSetCursor(*_arg0); |
06c0fba4 | 1334 | |
4268f798 RD |
1335 | wxPyEndAllowThreads(__tstate); |
1336 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1337 | } Py_INCREF(Py_None); |
1338 | _resultobj = Py_None; | |
1339 | return _resultobj; | |
1340 | } | |
1341 | ||
06c0fba4 RD |
1342 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1343 | PyObject * _resultobj; | |
1344 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1345 | PyObject * _argo0 = 0; | |
1346 | char *_kwnames[] = { "cursor", NULL }; | |
1347 | ||
1348 | self = self; | |
1349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1350 | return NULL; | |
1351 | if (_argo0) { | |
1352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1355 | return NULL; | |
1356 | } | |
1357 | } | |
1358 | { | |
4268f798 | 1359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1360 | wxBeginBusyCursor(_arg0); |
06c0fba4 | 1361 | |
4268f798 RD |
1362 | wxPyEndAllowThreads(__tstate); |
1363 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1364 | } Py_INCREF(Py_None); |
1365 | _resultobj = Py_None; | |
1366 | return _resultobj; | |
1367 | } | |
1368 | ||
1369 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1370 | PyObject * _resultobj; | |
1371 | wxWindow * _result; | |
1372 | char *_kwnames[] = { NULL }; | |
06c0fba4 RD |
1373 | |
1374 | self = self; | |
1375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1376 | return NULL; | |
1377 | { | |
4268f798 | 1378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1379 | _result = (wxWindow *)wxGetActiveWindow(); |
06c0fba4 | 1380 | |
4268f798 RD |
1381 | wxPyEndAllowThreads(__tstate); |
1382 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1383 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1384 | return _resultobj; |
1385 | } | |
1386 | ||
493f1553 RD |
1387 | static PyObject *_wrap_wxGenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
1388 | PyObject * _resultobj; | |
1389 | wxWindow * _result; | |
1390 | wxPoint * _arg0; | |
1391 | wxPoint temp; | |
1392 | PyObject * _obj0 = 0; | |
1393 | char *_kwnames[] = { "pt", NULL }; | |
1394 | ||
1395 | self = self; | |
1396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericFindWindowAtPoint",_kwnames,&_obj0)) | |
1397 | return NULL; | |
1398 | { | |
1399 | _arg0 = &temp; | |
1400 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1401 | return NULL; | |
1402 | } | |
1403 | { | |
4268f798 | 1404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1405 | _result = (wxWindow *)wxGenericFindWindowAtPoint(*_arg0); |
493f1553 | 1406 | |
4268f798 RD |
1407 | wxPyEndAllowThreads(__tstate); |
1408 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1409 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1410 | return _resultobj; | |
1411 | } | |
1412 | ||
1413 | static PyObject *_wrap_wxFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1414 | PyObject * _resultobj; | |
1415 | wxWindow * _result; | |
1416 | wxPoint * _arg0; | |
1417 | wxPoint temp; | |
1418 | PyObject * _obj0 = 0; | |
1419 | char *_kwnames[] = { "pt", NULL }; | |
1420 | ||
1421 | self = self; | |
1422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindWindowAtPoint",_kwnames,&_obj0)) | |
1423 | return NULL; | |
1424 | { | |
1425 | _arg0 = &temp; | |
1426 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1427 | return NULL; | |
1428 | } | |
1429 | { | |
4268f798 | 1430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1431 | _result = (wxWindow *)wxFindWindowAtPoint(*_arg0); |
493f1553 | 1432 | |
4268f798 RD |
1433 | wxPyEndAllowThreads(__tstate); |
1434 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1435 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1436 | return _resultobj; | |
1437 | } | |
1438 | ||
1439 | static PyObject *_wrap_wxCheckForInterrupt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1440 | PyObject * _resultobj; | |
1441 | bool _result; | |
1442 | wxWindow * _arg0; | |
1443 | PyObject * _argo0 = 0; | |
1444 | char *_kwnames[] = { "wnd", NULL }; | |
1445 | ||
1446 | self = self; | |
1447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckForInterrupt",_kwnames,&_argo0)) | |
1448 | return NULL; | |
1449 | if (_argo0) { | |
1450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckForInterrupt. Expected _wxWindow_p."); | |
1453 | return NULL; | |
1454 | } | |
1455 | } | |
1456 | { | |
4268f798 | 1457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1458 | _result = (bool )wxCheckForInterrupt(_arg0); |
493f1553 | 1459 | |
4268f798 RD |
1460 | wxPyEndAllowThreads(__tstate); |
1461 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1462 | } _resultobj = Py_BuildValue("i",_result); |
1463 | return _resultobj; | |
1464 | } | |
1465 | ||
25832b3f RD |
1466 | static PyObject *_wrap_wxFlushEvents(PyObject *self, PyObject *args, PyObject *kwargs) { |
1467 | PyObject * _resultobj; | |
1468 | char *_kwnames[] = { NULL }; | |
1469 | ||
1470 | self = self; | |
1471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFlushEvents",_kwnames)) | |
1472 | return NULL; | |
1473 | { | |
4268f798 | 1474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1475 | wxFlushEvents(); |
25832b3f | 1476 | |
4268f798 RD |
1477 | wxPyEndAllowThreads(__tstate); |
1478 | if (PyErr_Occurred()) return NULL; | |
25832b3f RD |
1479 | } Py_INCREF(Py_None); |
1480 | _resultobj = Py_None; | |
1481 | return _resultobj; | |
1482 | } | |
1483 | ||
2a74d141 RD |
1484 | static PyObject *_wrap_wxGetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1485 | PyObject * _resultobj; | |
1486 | wxWindow * _result; | |
1487 | wxWindow * _arg0; | |
1488 | PyObject * _argo0 = 0; | |
1489 | char *_kwnames[] = { "win", NULL }; | |
1490 | ||
1491 | self = self; | |
1492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGetTopLevelParent",_kwnames,&_argo0)) | |
1493 | return NULL; | |
1494 | if (_argo0) { | |
1495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGetTopLevelParent. Expected _wxWindow_p."); | |
1498 | return NULL; | |
1499 | } | |
1500 | } | |
1501 | { | |
1502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1503 | _result = (wxWindow *)wxGetTopLevelParent(_arg0); | |
1504 | ||
1505 | wxPyEndAllowThreads(__tstate); | |
1506 | if (PyErr_Occurred()) return NULL; | |
1507 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1508 | return _resultobj; | |
1509 | } | |
1510 | ||
06c0fba4 RD |
1511 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { |
1512 | PyObject * _resultobj; | |
1513 | bool _result; | |
1514 | char * _arg0; | |
1515 | int _arg1; | |
1516 | char *_kwnames[] = { "name","value", NULL }; | |
1517 | ||
1518 | self = self; | |
1519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
1520 | return NULL; | |
1521 | { | |
4268f798 | 1522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1523 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); |
06c0fba4 | 1524 | |
4268f798 RD |
1525 | wxPyEndAllowThreads(__tstate); |
1526 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1527 | } _resultobj = Py_BuildValue("i",_result); |
1528 | return _resultobj; | |
1529 | } | |
1530 | ||
1531 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1532 | PyObject * _resultobj; | |
1533 | char *_kwnames[] = { NULL }; | |
1534 | ||
1535 | self = self; | |
1536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
1537 | return NULL; | |
1538 | { | |
4268f798 | 1539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1540 | wxResourceClear(); |
06c0fba4 | 1541 | |
4268f798 RD |
1542 | wxPyEndAllowThreads(__tstate); |
1543 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1544 | } Py_INCREF(Py_None); |
1545 | _resultobj = Py_None; | |
1546 | return _resultobj; | |
1547 | } | |
1548 | ||
1549 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1550 | PyObject * _resultobj; | |
1551 | wxBitmap * _result; | |
1552 | char * _arg0; | |
1553 | char *_kwnames[] = { "resource", NULL }; | |
1554 | char _ptemp[128]; | |
1555 | ||
1556 | self = self; | |
1557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
1558 | return NULL; | |
1559 | { | |
4268f798 | 1560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1561 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); |
06c0fba4 | 1562 | |
4268f798 RD |
1563 | wxPyEndAllowThreads(__tstate); |
1564 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1565 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1566 | _resultobj = Py_BuildValue("s",_ptemp); | |
1567 | return _resultobj; | |
1568 | } | |
1569 | ||
1570 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1571 | PyObject * _resultobj; | |
1572 | wxIcon * _result; | |
1573 | char * _arg0; | |
1574 | char *_kwnames[] = { "resource", NULL }; | |
1575 | char _ptemp[128]; | |
1576 | ||
1577 | self = self; | |
1578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
1579 | return NULL; | |
1580 | { | |
4268f798 | 1581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1582 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); |
06c0fba4 | 1583 | |
4268f798 RD |
1584 | wxPyEndAllowThreads(__tstate); |
1585 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1586 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); |
1587 | _resultobj = Py_BuildValue("s",_ptemp); | |
1588 | return _resultobj; | |
1589 | } | |
1590 | ||
1591 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1592 | PyObject * _resultobj; | |
1593 | wxMenuBar * _result; | |
1594 | char * _arg0; | |
1595 | char *_kwnames[] = { "resource", NULL }; | |
06c0fba4 RD |
1596 | |
1597 | self = self; | |
1598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
1599 | return NULL; | |
1600 | { | |
4268f798 | 1601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1602 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); |
06c0fba4 | 1603 | |
4268f798 RD |
1604 | wxPyEndAllowThreads(__tstate); |
1605 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1606 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1607 | return _resultobj; |
1608 | } | |
1609 | ||
1610 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1611 | PyObject * _resultobj; | |
1612 | int _result; | |
1613 | char * _arg0; | |
1614 | char *_kwnames[] = { "name", NULL }; | |
1615 | ||
1616 | self = self; | |
1617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
1618 | return NULL; | |
1619 | { | |
4268f798 | 1620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1621 | _result = (int )wxResourceGetIdentifier(_arg0); |
06c0fba4 | 1622 | |
4268f798 RD |
1623 | wxPyEndAllowThreads(__tstate); |
1624 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1625 | } _resultobj = Py_BuildValue("i",_result); |
1626 | return _resultobj; | |
1627 | } | |
1628 | ||
1629 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1630 | PyObject * _resultobj; | |
1631 | bool _result; | |
1632 | char * _arg0; | |
1633 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1634 | PyObject * _argo1 = 0; | |
1635 | char *_kwnames[] = { "resource","table", NULL }; | |
1636 | ||
1637 | self = self; | |
1638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
1639 | return NULL; | |
1640 | if (_argo1) { | |
1641 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1642 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
1644 | return NULL; | |
1645 | } | |
1646 | } | |
1647 | { | |
4268f798 | 1648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1649 | _result = (bool )wxResourceParseData(_arg0,_arg1); |
06c0fba4 | 1650 | |
4268f798 RD |
1651 | wxPyEndAllowThreads(__tstate); |
1652 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1653 | } _resultobj = Py_BuildValue("i",_result); |
1654 | return _resultobj; | |
1655 | } | |
1656 | ||
1657 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1658 | PyObject * _resultobj; | |
1659 | bool _result; | |
1660 | char * _arg0; | |
1661 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1662 | PyObject * _argo1 = 0; | |
1663 | char *_kwnames[] = { "filename","table", NULL }; | |
1664 | ||
1665 | self = self; | |
1666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
1667 | return NULL; | |
1668 | if (_argo1) { | |
1669 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1670 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
1672 | return NULL; | |
1673 | } | |
1674 | } | |
1675 | { | |
4268f798 | 1676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1677 | _result = (bool )wxResourceParseFile(_arg0,_arg1); |
06c0fba4 | 1678 | |
4268f798 RD |
1679 | wxPyEndAllowThreads(__tstate); |
1680 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1681 | } _resultobj = Py_BuildValue("i",_result); |
1682 | return _resultobj; | |
1683 | } | |
1684 | ||
1685 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1686 | PyObject * _resultobj; | |
1687 | bool _result; | |
1688 | char * _arg0; | |
1689 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1690 | PyObject * _argo1 = 0; | |
1691 | char *_kwnames[] = { "resource","table", NULL }; | |
1692 | ||
1693 | self = self; | |
1694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
1695 | return NULL; | |
1696 | if (_argo1) { | |
1697 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1698 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
1700 | return NULL; | |
1701 | } | |
1702 | } | |
1703 | { | |
4268f798 | 1704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1705 | _result = (bool )wxResourceParseString(_arg0,_arg1); |
06c0fba4 | 1706 | |
4268f798 RD |
1707 | wxPyEndAllowThreads(__tstate); |
1708 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1709 | } _resultobj = Py_BuildValue("i",_result); |
1710 | return _resultobj; | |
1711 | } | |
1712 | ||
f0261a72 RD |
1713 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { |
1714 | PyObject * _resultobj; | |
1715 | int _result; | |
1716 | char *_kwnames[] = { NULL }; | |
1717 | ||
1718 | self = self; | |
1719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1720 | return NULL; | |
1721 | { | |
4268f798 | 1722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1723 | _result = (int )wxCaret_GetBlinkTime(); |
f0261a72 | 1724 | |
4268f798 RD |
1725 | wxPyEndAllowThreads(__tstate); |
1726 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1727 | } _resultobj = Py_BuildValue("i",_result); |
1728 | return _resultobj; | |
1729 | } | |
1730 | ||
1731 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1732 | PyObject * _resultobj; | |
1733 | int _arg0; | |
1734 | char *_kwnames[] = { "milliseconds", NULL }; | |
1735 | ||
1736 | self = self; | |
1737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1738 | return NULL; | |
1739 | { | |
4268f798 | 1740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1741 | wxCaret_SetBlinkTime(_arg0); |
f0261a72 | 1742 | |
4268f798 RD |
1743 | wxPyEndAllowThreads(__tstate); |
1744 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1745 | } Py_INCREF(Py_None); |
1746 | _resultobj = Py_None; | |
1747 | return _resultobj; | |
1748 | } | |
1749 | ||
6e18ca6c RD |
1750 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { |
1751 | PyObject * _resultobj; | |
1752 | bool _result; | |
1753 | wxWindow * _arg0 = (wxWindow *) NULL; | |
1754 | PyObject * _argo0 = 0; | |
1755 | char *_kwnames[] = { "win", NULL }; | |
1756 | ||
1757 | self = self; | |
1758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0)) | |
1759 | return NULL; | |
1760 | if (_argo0) { | |
1761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1764 | return NULL; | |
1765 | } | |
1766 | } | |
1767 | { | |
4268f798 | 1768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1769 | _result = (bool )wxSafeYield(_arg0); |
6e18ca6c | 1770 | |
4268f798 RD |
1771 | wxPyEndAllowThreads(__tstate); |
1772 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1773 | } _resultobj = Py_BuildValue("i",_result); |
1774 | return _resultobj; | |
1775 | } | |
1776 | ||
b1462dfa RD |
1777 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1778 | PyObject * _resultobj; | |
1779 | wxEvtHandler * _arg0; | |
1780 | wxEvent * _arg1; | |
1781 | PyObject * _argo0 = 0; | |
1782 | PyObject * _argo1 = 0; | |
1783 | char *_kwnames[] = { "dest","event", NULL }; | |
1784 | ||
1785 | self = self; | |
1786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1787 | return NULL; | |
1788 | if (_argo0) { | |
1789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1792 | return NULL; | |
1793 | } | |
1794 | } | |
1795 | if (_argo1) { | |
1796 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1797 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1799 | return NULL; | |
1800 | } | |
1801 | } | |
1802 | { | |
4268f798 | 1803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1804 | wxPostEvent(_arg0,*_arg1); |
b1462dfa | 1805 | |
4268f798 RD |
1806 | wxPyEndAllowThreads(__tstate); |
1807 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
1808 | } Py_INCREF(Py_None); |
1809 | _resultobj = Py_None; | |
1810 | return _resultobj; | |
1811 | } | |
1812 | ||
694759cf RD |
1813 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { |
1814 | PyObject * _resultobj; | |
1815 | char *_kwnames[] = { NULL }; | |
1816 | ||
1817 | self = self; | |
1818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1819 | return NULL; | |
1820 | { | |
4268f798 | 1821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1822 | wxWakeUpIdle(); |
694759cf | 1823 | |
4268f798 RD |
1824 | wxPyEndAllowThreads(__tstate); |
1825 | if (PyErr_Occurred()) return NULL; | |
694759cf RD |
1826 | } Py_INCREF(Py_None); |
1827 | _resultobj = Py_None; | |
1828 | return _resultobj; | |
1829 | } | |
1830 | ||
6e18ca6c | 1831 | static PyObject *_wrap_wxWakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
c368d904 | 1832 | PyObject * _resultobj; |
6e18ca6c | 1833 | char *_kwnames[] = { NULL }; |
c368d904 RD |
1834 | |
1835 | self = self; | |
6e18ca6c | 1836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpMainThread",_kwnames)) |
c368d904 | 1837 | return NULL; |
6e18ca6c | 1838 | { |
4268f798 | 1839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1840 | wxWakeUpMainThread(); |
6e18ca6c | 1841 | |
4268f798 RD |
1842 | wxPyEndAllowThreads(__tstate); |
1843 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1844 | } Py_INCREF(Py_None); |
1845 | _resultobj = Py_None; | |
1846 | return _resultobj; | |
1847 | } | |
1848 | ||
1849 | static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1850 | PyObject * _resultobj; | |
1851 | char *_kwnames[] = { NULL }; | |
1852 | ||
1853 | self = self; | |
1854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames)) | |
c368d904 | 1855 | return NULL; |
c368d904 | 1856 | { |
4268f798 | 1857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1858 | wxMutexGuiEnter(); |
6e18ca6c | 1859 | |
4268f798 RD |
1860 | wxPyEndAllowThreads(__tstate); |
1861 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1862 | } Py_INCREF(Py_None); |
1863 | _resultobj = Py_None; | |
1864 | return _resultobj; | |
1865 | } | |
1866 | ||
1867 | static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1868 | PyObject * _resultobj; | |
1869 | char *_kwnames[] = { NULL }; | |
1870 | ||
1871 | self = self; | |
1872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames)) | |
1873 | return NULL; | |
1874 | { | |
4268f798 | 1875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1876 | wxMutexGuiLeave(); |
6e18ca6c | 1877 | |
4268f798 RD |
1878 | wxPyEndAllowThreads(__tstate); |
1879 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1880 | } Py_INCREF(Py_None); |
1881 | _resultobj = Py_None; | |
1882 | return _resultobj; | |
1883 | } | |
1884 | ||
1885 | static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1886 | PyObject * _resultobj; | |
1887 | bool _result; | |
1888 | char *_kwnames[] = { NULL }; | |
1889 | ||
1890 | self = self; | |
1891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames)) | |
1892 | return NULL; | |
1893 | { | |
4268f798 | 1894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1895 | _result = (bool )wxThread_IsMain(); |
c368d904 | 1896 | |
4268f798 RD |
1897 | wxPyEndAllowThreads(__tstate); |
1898 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
1899 | } _resultobj = Py_BuildValue("i",_result); |
1900 | return _resultobj; | |
1901 | } | |
1902 | ||
f6bcfd97 | 1903 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd | 1904 | PyObject * _resultobj; |
f6bcfd97 BP |
1905 | bool _result; |
1906 | wxWindow * _arg0; | |
1907 | wxTipProvider * _arg1; | |
1908 | bool _arg2 = (bool ) TRUE; | |
1909 | PyObject * _argo0 = 0; | |
1910 | PyObject * _argo1 = 0; | |
1911 | int tempbool2 = (int) TRUE; | |
1912 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1913 | ||
1914 | self = self; | |
1915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1916 | return NULL; | |
1917 | if (_argo0) { | |
1918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1921 | return NULL; | |
1922 | } | |
1923 | } | |
1924 | if (_argo1) { | |
1925 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1926 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1928 | return NULL; | |
1929 | } | |
1930 | } | |
1931 | _arg2 = (bool ) tempbool2; | |
1932 | { | |
4268f798 | 1933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1934 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); |
f6bcfd97 | 1935 | |
4268f798 RD |
1936 | wxPyEndAllowThreads(__tstate); |
1937 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1938 | } _resultobj = Py_BuildValue("i",_result); |
1939 | return _resultobj; | |
1940 | } | |
1941 | ||
1942 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1943 | PyObject * _resultobj; | |
1944 | wxTipProvider * _result; | |
bb0054cd | 1945 | wxString * _arg0; |
f6bcfd97 | 1946 | size_t _arg1; |
bb0054cd | 1947 | PyObject * _obj0 = 0; |
f6bcfd97 | 1948 | char *_kwnames[] = { "filename","currentTip", NULL }; |
bb0054cd RD |
1949 | char _ptemp[128]; |
1950 | ||
1951 | self = self; | |
f6bcfd97 | 1952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) |
bb0054cd RD |
1953 | return NULL; |
1954 | { | |
c8bc7bb8 RD |
1955 | _arg0 = wxString_in_helper(_obj0); |
1956 | if (_arg0 == NULL) | |
185d7c3e | 1957 | return NULL; |
bb0054cd RD |
1958 | } |
1959 | { | |
4268f798 | 1960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1961 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); |
bb0054cd | 1962 | |
4268f798 RD |
1963 | wxPyEndAllowThreads(__tstate); |
1964 | if (PyErr_Occurred()) return NULL; | |
1d99702e | 1965 | } if (_result) { |
f6bcfd97 | 1966 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); |
1d99702e RD |
1967 | _resultobj = Py_BuildValue("s",_ptemp); |
1968 | } else { | |
1969 | Py_INCREF(Py_None); | |
1970 | _resultobj = Py_None; | |
1971 | } | |
bb0054cd RD |
1972 | { |
1973 | if (_obj0) | |
1974 | delete _arg0; | |
1975 | } | |
1976 | return _resultobj; | |
1977 | } | |
1978 | ||
f6bcfd97 | 1979 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1980 | PyObject * _resultobj; |
f6bcfd97 BP |
1981 | unsigned long _result; |
1982 | char *_kwnames[] = { NULL }; | |
f0261a72 RD |
1983 | |
1984 | self = self; | |
f6bcfd97 | 1985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) |
f0261a72 | 1986 | return NULL; |
f0261a72 | 1987 | { |
4268f798 | 1988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1989 | _result = (unsigned long )wxSysErrorCode(); |
f0261a72 | 1990 | |
4268f798 RD |
1991 | wxPyEndAllowThreads(__tstate); |
1992 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 1993 | } _resultobj = Py_BuildValue("l",_result); |
f0261a72 RD |
1994 | return _resultobj; |
1995 | } | |
1996 | ||
f6bcfd97 | 1997 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1998 | PyObject * _resultobj; |
c8bc7bb8 | 1999 | wxString * _result; |
f6bcfd97 BP |
2000 | unsigned long _arg0 = (unsigned long ) 0; |
2001 | char *_kwnames[] = { "nErrCode", NULL }; | |
f0261a72 RD |
2002 | |
2003 | self = self; | |
f6bcfd97 | 2004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) |
f0261a72 | 2005 | return NULL; |
f0261a72 | 2006 | { |
4268f798 | 2007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2008 | _result = new wxString (wxSysErrorMsg(_arg0)); |
f0261a72 | 2009 | |
4268f798 RD |
2010 | wxPyEndAllowThreads(__tstate); |
2011 | if (PyErr_Occurred()) return NULL; | |
c8bc7bb8 RD |
2012 | }{ |
2013 | #if wxUSE_UNICODE | |
2014 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2015 | #else | |
2016 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2017 | #endif | |
2018 | } | |
2019 | { | |
2020 | delete _result; | |
2021 | } | |
f0261a72 RD |
2022 | return _resultobj; |
2023 | } | |
2024 | ||
f6bcfd97 | 2025 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 2026 | PyObject * _resultobj; |
c8bc7bb8 RD |
2027 | wxString * _arg0; |
2028 | PyObject * _obj0 = 0; | |
f6bcfd97 | 2029 | char *_kwnames[] = { "szFormat", NULL }; |
f0261a72 RD |
2030 | |
2031 | self = self; | |
c8bc7bb8 | 2032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogFatalError",_kwnames,&_obj0)) |
f0261a72 | 2033 | return NULL; |
c8bc7bb8 RD |
2034 | { |
2035 | _arg0 = wxString_in_helper(_obj0); | |
2036 | if (_arg0 == NULL) | |
2037 | return NULL; | |
2038 | } | |
f0261a72 | 2039 | { |
4268f798 | 2040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2041 | wxLogFatalError(*_arg0); |
f0261a72 | 2042 | |
4268f798 RD |
2043 | wxPyEndAllowThreads(__tstate); |
2044 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2045 | } Py_INCREF(Py_None); |
2046 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2047 | { |
2048 | if (_obj0) | |
2049 | delete _arg0; | |
2050 | } | |
f0261a72 RD |
2051 | return _resultobj; |
2052 | } | |
2053 | ||
f6bcfd97 | 2054 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 2055 | PyObject * _resultobj; |
c8bc7bb8 RD |
2056 | wxString * _arg0; |
2057 | PyObject * _obj0 = 0; | |
f6bcfd97 | 2058 | char *_kwnames[] = { "szFormat", NULL }; |
f0261a72 RD |
2059 | |
2060 | self = self; | |
c8bc7bb8 | 2061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogError",_kwnames,&_obj0)) |
f0261a72 | 2062 | return NULL; |
c8bc7bb8 RD |
2063 | { |
2064 | _arg0 = wxString_in_helper(_obj0); | |
2065 | if (_arg0 == NULL) | |
2066 | return NULL; | |
2067 | } | |
f0261a72 | 2068 | { |
4268f798 | 2069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2070 | wxLogError(*_arg0); |
f0261a72 | 2071 | |
4268f798 RD |
2072 | wxPyEndAllowThreads(__tstate); |
2073 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
2074 | } Py_INCREF(Py_None); |
2075 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2076 | { |
2077 | if (_obj0) | |
2078 | delete _arg0; | |
2079 | } | |
f0261a72 RD |
2080 | return _resultobj; |
2081 | } | |
2082 | ||
f6bcfd97 BP |
2083 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { |
2084 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2085 | wxString * _arg0; |
2086 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2087 | char *_kwnames[] = { "szFormat", NULL }; |
2088 | ||
2089 | self = self; | |
c8bc7bb8 | 2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWarning",_kwnames,&_obj0)) |
f6bcfd97 | 2091 | return NULL; |
c8bc7bb8 RD |
2092 | { |
2093 | _arg0 = wxString_in_helper(_obj0); | |
2094 | if (_arg0 == NULL) | |
2095 | return NULL; | |
2096 | } | |
f6bcfd97 | 2097 | { |
4268f798 | 2098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2099 | wxLogWarning(*_arg0); |
f6bcfd97 | 2100 | |
4268f798 RD |
2101 | wxPyEndAllowThreads(__tstate); |
2102 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2103 | } Py_INCREF(Py_None); |
2104 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2105 | { |
2106 | if (_obj0) | |
2107 | delete _arg0; | |
2108 | } | |
f6bcfd97 BP |
2109 | return _resultobj; |
2110 | } | |
2111 | ||
2112 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2113 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2114 | wxString * _arg0; |
2115 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2116 | char *_kwnames[] = { "szFormat", NULL }; |
2117 | ||
2118 | self = self; | |
c8bc7bb8 RD |
2119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogMessage",_kwnames,&_obj0)) |
2120 | return NULL; | |
2121 | { | |
2122 | _arg0 = wxString_in_helper(_obj0); | |
2123 | if (_arg0 == NULL) | |
f6bcfd97 | 2124 | return NULL; |
c8bc7bb8 | 2125 | } |
f6bcfd97 | 2126 | { |
4268f798 | 2127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2128 | wxLogMessage(*_arg0); |
f6bcfd97 | 2129 | |
4268f798 RD |
2130 | wxPyEndAllowThreads(__tstate); |
2131 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2132 | } Py_INCREF(Py_None); |
2133 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2134 | { |
2135 | if (_obj0) | |
2136 | delete _arg0; | |
2137 | } | |
f6bcfd97 BP |
2138 | return _resultobj; |
2139 | } | |
2140 | ||
2141 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2142 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2143 | wxString * _arg0; |
2144 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2145 | char *_kwnames[] = { "szFormat", NULL }; |
2146 | ||
2147 | self = self; | |
c8bc7bb8 RD |
2148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogInfo",_kwnames,&_obj0)) |
2149 | return NULL; | |
2150 | { | |
2151 | _arg0 = wxString_in_helper(_obj0); | |
2152 | if (_arg0 == NULL) | |
f6bcfd97 | 2153 | return NULL; |
c8bc7bb8 | 2154 | } |
f6bcfd97 | 2155 | { |
4268f798 | 2156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2157 | wxLogInfo(*_arg0); |
f6bcfd97 | 2158 | |
4268f798 RD |
2159 | wxPyEndAllowThreads(__tstate); |
2160 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2161 | } Py_INCREF(Py_None); |
2162 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2163 | { |
2164 | if (_obj0) | |
2165 | delete _arg0; | |
2166 | } | |
f6bcfd97 BP |
2167 | return _resultobj; |
2168 | } | |
2169 | ||
2170 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2171 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2172 | wxString * _arg0; |
2173 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2174 | char *_kwnames[] = { "szFormat", NULL }; |
2175 | ||
2176 | self = self; | |
c8bc7bb8 | 2177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogVerbose",_kwnames,&_obj0)) |
f6bcfd97 | 2178 | return NULL; |
c8bc7bb8 RD |
2179 | { |
2180 | _arg0 = wxString_in_helper(_obj0); | |
2181 | if (_arg0 == NULL) | |
2182 | return NULL; | |
2183 | } | |
f6bcfd97 | 2184 | { |
4268f798 | 2185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2186 | wxLogVerbose(*_arg0); |
f6bcfd97 | 2187 | |
4268f798 RD |
2188 | wxPyEndAllowThreads(__tstate); |
2189 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2190 | } Py_INCREF(Py_None); |
2191 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2192 | { |
2193 | if (_obj0) | |
2194 | delete _arg0; | |
2195 | } | |
f6bcfd97 BP |
2196 | return _resultobj; |
2197 | } | |
2198 | ||
2199 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2200 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2201 | wxString * _arg0; |
2202 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2203 | char *_kwnames[] = { "szFormat", NULL }; |
2204 | ||
2205 | self = self; | |
c8bc7bb8 RD |
2206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogStatus",_kwnames,&_obj0)) |
2207 | return NULL; | |
2208 | { | |
2209 | _arg0 = wxString_in_helper(_obj0); | |
2210 | if (_arg0 == NULL) | |
f6bcfd97 | 2211 | return NULL; |
c8bc7bb8 | 2212 | } |
f6bcfd97 | 2213 | { |
4268f798 | 2214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2215 | wxLogStatus(*_arg0); |
f6bcfd97 | 2216 | |
4268f798 RD |
2217 | wxPyEndAllowThreads(__tstate); |
2218 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2219 | } Py_INCREF(Py_None); |
2220 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2221 | { |
2222 | if (_obj0) | |
2223 | delete _arg0; | |
2224 | } | |
f6bcfd97 BP |
2225 | return _resultobj; |
2226 | } | |
2227 | ||
2228 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2229 | PyObject * _resultobj; | |
2230 | wxFrame * _arg0; | |
c8bc7bb8 | 2231 | wxString * _arg1; |
f6bcfd97 | 2232 | PyObject * _argo0 = 0; |
c8bc7bb8 | 2233 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
2234 | char *_kwnames[] = { "pFrame","szFormat", NULL }; |
2235 | ||
2236 | self = self; | |
c8bc7bb8 | 2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogStatusFrame",_kwnames,&_argo0,&_obj1)) |
f6bcfd97 BP |
2238 | return NULL; |
2239 | if (_argo0) { | |
2240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2243 | return NULL; | |
2244 | } | |
2245 | } | |
c8bc7bb8 RD |
2246 | { |
2247 | _arg1 = wxString_in_helper(_obj1); | |
2248 | if (_arg1 == NULL) | |
2249 | return NULL; | |
2250 | } | |
f6bcfd97 | 2251 | { |
4268f798 | 2252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2253 | wxLogStatus(_arg0,*_arg1); |
f6bcfd97 | 2254 | |
4268f798 RD |
2255 | wxPyEndAllowThreads(__tstate); |
2256 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2257 | } Py_INCREF(Py_None); |
2258 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2259 | { |
2260 | if (_obj1) | |
2261 | delete _arg1; | |
2262 | } | |
f6bcfd97 BP |
2263 | return _resultobj; |
2264 | } | |
2265 | ||
2266 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2267 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2268 | wxString * _arg0; |
2269 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2270 | char *_kwnames[] = { "szFormat", NULL }; |
2271 | ||
2272 | self = self; | |
c8bc7bb8 RD |
2273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogSysError",_kwnames,&_obj0)) |
2274 | return NULL; | |
2275 | { | |
2276 | _arg0 = wxString_in_helper(_obj0); | |
2277 | if (_arg0 == NULL) | |
f6bcfd97 | 2278 | return NULL; |
c8bc7bb8 | 2279 | } |
f6bcfd97 | 2280 | { |
4268f798 | 2281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2282 | wxLogSysError(*_arg0); |
f6bcfd97 | 2283 | |
4268f798 RD |
2284 | wxPyEndAllowThreads(__tstate); |
2285 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2286 | } Py_INCREF(Py_None); |
2287 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2288 | { |
2289 | if (_obj0) | |
2290 | delete _arg0; | |
2291 | } | |
f6bcfd97 BP |
2292 | return _resultobj; |
2293 | } | |
2294 | ||
0b85cc38 RD |
2295 | static PyObject *_wrap_wxSafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
2296 | PyObject * _resultobj; | |
2297 | wxString * _arg0; | |
2298 | wxString * _arg1; | |
2299 | PyObject * _obj0 = 0; | |
2300 | PyObject * _obj1 = 0; | |
2301 | char *_kwnames[] = { "title","text", NULL }; | |
2302 | ||
2303 | self = self; | |
2304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSafeShowMessage",_kwnames,&_obj0,&_obj1)) | |
2305 | return NULL; | |
2306 | { | |
2307 | _arg0 = wxString_in_helper(_obj0); | |
2308 | if (_arg0 == NULL) | |
2309 | return NULL; | |
2310 | } | |
2311 | { | |
2312 | _arg1 = wxString_in_helper(_obj1); | |
2313 | if (_arg1 == NULL) | |
2314 | return NULL; | |
2315 | } | |
2316 | { | |
2317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2318 | wxSafeShowMessage(*_arg0,*_arg1); | |
2319 | ||
2320 | wxPyEndAllowThreads(__tstate); | |
2321 | if (PyErr_Occurred()) return NULL; | |
2322 | } Py_INCREF(Py_None); | |
2323 | _resultobj = Py_None; | |
2324 | { | |
2325 | if (_obj0) | |
2326 | delete _arg0; | |
2327 | } | |
2328 | { | |
2329 | if (_obj1) | |
2330 | delete _arg1; | |
2331 | } | |
2332 | return _resultobj; | |
2333 | } | |
2334 | ||
c368d904 RD |
2335 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { |
2336 | PyObject * _resultobj; | |
2337 | long _result; | |
2338 | wxString * _arg0; | |
b96c7a38 | 2339 | int _arg1 = (int ) (wxEXEC_ASYNC); |
c368d904 RD |
2340 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; |
2341 | PyObject * _obj0 = 0; | |
2342 | PyObject * _argo2 = 0; | |
b96c7a38 | 2343 | char *_kwnames[] = { "command","flags","process", NULL }; |
c368d904 RD |
2344 | |
2345 | self = self; | |
2346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2347 | return NULL; | |
2348 | { | |
c8bc7bb8 RD |
2349 | _arg0 = wxString_in_helper(_obj0); |
2350 | if (_arg0 == NULL) | |
185d7c3e | 2351 | return NULL; |
c368d904 RD |
2352 | } |
2353 | if (_argo2) { | |
2354 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2355 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2357 | return NULL; | |
2358 | } | |
2359 | } | |
2360 | { | |
4268f798 | 2361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2362 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); |
c368d904 | 2363 | |
4268f798 RD |
2364 | wxPyEndAllowThreads(__tstate); |
2365 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
2366 | } _resultobj = Py_BuildValue("l",_result); |
2367 | { | |
2368 | if (_obj0) | |
2369 | delete _arg0; | |
2370 | } | |
2371 | return _resultobj; | |
2372 | } | |
2373 | ||
493f1553 RD |
2374 | static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) { |
2375 | PyObject * _resultobj; | |
2376 | wxWave * _result; | |
2377 | wxString * _arg0; | |
2378 | PyObject * _obj0 = 0; | |
2379 | char *_kwnames[] = { "data", NULL }; | |
2380 | char _ptemp[128]; | |
2381 | ||
2382 | self = self; | |
2383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0)) | |
2384 | return NULL; | |
2385 | { | |
c8bc7bb8 RD |
2386 | _arg0 = wxString_in_helper(_obj0); |
2387 | if (_arg0 == NULL) | |
493f1553 | 2388 | return NULL; |
493f1553 RD |
2389 | } |
2390 | { | |
4268f798 | 2391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2392 | _result = (wxWave *)wxWaveData(*_arg0); |
493f1553 | 2393 | |
4268f798 RD |
2394 | wxPyEndAllowThreads(__tstate); |
2395 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
2396 | } if (_result) { |
2397 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
2398 | _resultobj = Py_BuildValue("s",_ptemp); | |
2399 | } else { | |
2400 | Py_INCREF(Py_None); | |
2401 | _resultobj = Py_None; | |
2402 | } | |
2403 | { | |
2404 | if (_obj0) | |
2405 | delete _arg0; | |
2406 | } | |
2407 | return _resultobj; | |
2408 | } | |
2409 | ||
b37c7e1d RD |
2410 | static int _wrap_wxTheMimeTypesManager_set(PyObject *val) { |
2411 | ||
2412 | PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only."); | |
2413 | return 1; | |
2414 | } | |
2415 | ||
2416 | static PyObject *_wrap_wxTheMimeTypesManager_get() { | |
2417 | PyObject * pyobj; | |
2418 | char ptemp[128]; | |
2419 | ||
2420 | SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p"); | |
2421 | pyobj = PyString_FromString(ptemp); | |
2422 | return pyobj; | |
2423 | } | |
2424 | ||
b5a5d647 RD |
2425 | static PyObject *_wrap_wxSystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
2426 | PyObject * _resultobj; | |
2427 | wxColour * _result; | |
2428 | wxSystemColour _arg0; | |
2429 | char *_kwnames[] = { "index", NULL }; | |
2430 | char _ptemp[128]; | |
2431 | ||
2432 | self = self; | |
2433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetColour",_kwnames,&_arg0)) | |
2434 | return NULL; | |
2435 | { | |
2436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2437 | _result = new wxColour (wxSystemSettings::GetColour(_arg0)); |
b5a5d647 RD |
2438 | |
2439 | wxPyEndAllowThreads(__tstate); | |
2440 | if (PyErr_Occurred()) return NULL; | |
2441 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
2442 | _resultobj = Py_BuildValue("s",_ptemp); | |
2443 | return _resultobj; | |
2444 | } | |
2445 | ||
2446 | static PyObject *_wrap_wxSystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2447 | PyObject * _resultobj; | |
2448 | wxFont * _result; | |
2449 | wxSystemFont _arg0; | |
2450 | char *_kwnames[] = { "index", NULL }; | |
2451 | char _ptemp[128]; | |
2452 | ||
2453 | self = self; | |
2454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetFont",_kwnames,&_arg0)) | |
2455 | return NULL; | |
2456 | { | |
2457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2458 | _result = new wxFont (wxSystemSettings::GetFont(_arg0)); |
b5a5d647 RD |
2459 | |
2460 | wxPyEndAllowThreads(__tstate); | |
2461 | if (PyErr_Occurred()) return NULL; | |
2462 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
2463 | _resultobj = Py_BuildValue("s",_ptemp); | |
2464 | return _resultobj; | |
2465 | } | |
2466 | ||
2467 | static PyObject *_wrap_wxSystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2468 | PyObject * _resultobj; | |
2469 | int _result; | |
2470 | wxSystemMetric _arg0; | |
2471 | char *_kwnames[] = { "index", NULL }; | |
2472 | ||
2473 | self = self; | |
2474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetMetric",_kwnames,&_arg0)) | |
2475 | return NULL; | |
2476 | { | |
2477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2478 | _result = (int )wxSystemSettings::GetMetric(_arg0); |
b5a5d647 RD |
2479 | |
2480 | wxPyEndAllowThreads(__tstate); | |
2481 | if (PyErr_Occurred()) return NULL; | |
2482 | } _resultobj = Py_BuildValue("i",_result); | |
2483 | return _resultobj; | |
2484 | } | |
2485 | ||
2486 | static PyObject *_wrap_wxSystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2487 | PyObject * _resultobj; | |
2488 | bool _result; | |
2489 | wxSystemFeature _arg0; | |
2490 | char *_kwnames[] = { "index", NULL }; | |
2491 | ||
2492 | self = self; | |
2493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_HasFeature",_kwnames,&_arg0)) | |
2494 | return NULL; | |
2495 | { | |
2496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2497 | _result = (bool )wxSystemSettings::HasFeature(_arg0); |
b5a5d647 RD |
2498 | |
2499 | wxPyEndAllowThreads(__tstate); | |
2500 | if (PyErr_Occurred()) return NULL; | |
2501 | } _resultobj = Py_BuildValue("i",_result); | |
2502 | return _resultobj; | |
2503 | } | |
2504 | ||
e67409dc | 2505 | static PyObject *_wrap_wxSystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { |
0b85cc38 | 2506 | PyObject * _resultobj; |
e67409dc | 2507 | wxSystemScreenType _result; |
0b85cc38 RD |
2508 | char *_kwnames[] = { NULL }; |
2509 | ||
2510 | self = self; | |
e67409dc | 2511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSystemSettings_GetScreenType",_kwnames)) |
0b85cc38 RD |
2512 | return NULL; |
2513 | { | |
2514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e67409dc | 2515 | _result = (wxSystemScreenType )wxSystemSettings::GetScreenType(); |
0b85cc38 RD |
2516 | |
2517 | wxPyEndAllowThreads(__tstate); | |
2518 | if (PyErr_Occurred()) return NULL; | |
2519 | } _resultobj = Py_BuildValue("i",_result); | |
2520 | return _resultobj; | |
2521 | } | |
2522 | ||
e67409dc | 2523 | static PyObject *_wrap_wxSystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { |
0b85cc38 | 2524 | PyObject * _resultobj; |
e67409dc | 2525 | wxSystemScreenType _arg0; |
0b85cc38 RD |
2526 | char *_kwnames[] = { "screen", NULL }; |
2527 | ||
2528 | self = self; | |
e67409dc | 2529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_SetScreenType",_kwnames,&_arg0)) |
0b85cc38 RD |
2530 | return NULL; |
2531 | { | |
2532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e67409dc | 2533 | wxSystemSettings::SetScreenType(_arg0); |
0b85cc38 RD |
2534 | |
2535 | wxPyEndAllowThreads(__tstate); | |
2536 | if (PyErr_Occurred()) return NULL; | |
2537 | } Py_INCREF(Py_None); | |
2538 | _resultobj = Py_None; | |
2539 | return _resultobj; | |
2540 | } | |
2541 | ||
9416aa89 RD |
2542 | static void *SwigwxToolTipTowxObject(void *ptr) { |
2543 | wxToolTip *src; | |
2544 | wxObject *dest; | |
2545 | src = (wxToolTip *) ptr; | |
2546 | dest = (wxObject *) src; | |
2547 | return (void *) dest; | |
2548 | } | |
2549 | ||
f6bcfd97 BP |
2550 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) |
2551 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2552 | PyObject * _resultobj; | |
2553 | wxToolTip * _result; | |
2554 | wxString * _arg0; | |
2555 | PyObject * _obj0 = 0; | |
2556 | char *_kwnames[] = { "tip", NULL }; | |
2557 | char _ptemp[128]; | |
2558 | ||
2559 | self = self; | |
2560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2561 | return NULL; | |
2562 | { | |
c8bc7bb8 RD |
2563 | _arg0 = wxString_in_helper(_obj0); |
2564 | if (_arg0 == NULL) | |
f6bcfd97 | 2565 | return NULL; |
f6bcfd97 BP |
2566 | } |
2567 | { | |
4268f798 | 2568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2569 | _result = (wxToolTip *)new_wxToolTip(*_arg0); |
f6bcfd97 | 2570 | |
4268f798 RD |
2571 | wxPyEndAllowThreads(__tstate); |
2572 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2573 | } if (_result) { |
2574 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2575 | _resultobj = Py_BuildValue("s",_ptemp); | |
2576 | } else { | |
2577 | Py_INCREF(Py_None); | |
2578 | _resultobj = Py_None; | |
2579 | } | |
2580 | { | |
2581 | if (_obj0) | |
2582 | delete _arg0; | |
2583 | } | |
2584 | return _resultobj; | |
2585 | } | |
2586 | ||
2587 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2588 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2589 | PyObject * _resultobj; | |
2590 | wxToolTip * _arg0; | |
2591 | wxString * _arg1; | |
2592 | PyObject * _argo0 = 0; | |
2593 | PyObject * _obj1 = 0; | |
2594 | char *_kwnames[] = { "self","tip", NULL }; | |
2595 | ||
2596 | self = self; | |
2597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2598 | return NULL; | |
2599 | if (_argo0) { | |
2600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2603 | return NULL; | |
2604 | } | |
2605 | } | |
2606 | { | |
c8bc7bb8 RD |
2607 | _arg1 = wxString_in_helper(_obj1); |
2608 | if (_arg1 == NULL) | |
185d7c3e | 2609 | return NULL; |
f6bcfd97 BP |
2610 | } |
2611 | { | |
4268f798 | 2612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2613 | wxToolTip_SetTip(_arg0,*_arg1); |
f6bcfd97 | 2614 | |
4268f798 RD |
2615 | wxPyEndAllowThreads(__tstate); |
2616 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2617 | } Py_INCREF(Py_None); |
2618 | _resultobj = Py_None; | |
2619 | { | |
2620 | if (_obj1) | |
2621 | delete _arg1; | |
2622 | } | |
2623 | return _resultobj; | |
2624 | } | |
2625 | ||
2626 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2627 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2628 | PyObject * _resultobj; | |
2629 | wxString * _result; | |
2630 | wxToolTip * _arg0; | |
2631 | PyObject * _argo0 = 0; | |
2632 | char *_kwnames[] = { "self", NULL }; | |
2633 | ||
2634 | self = self; | |
2635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2636 | return NULL; | |
2637 | if (_argo0) { | |
2638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2641 | return NULL; | |
2642 | } | |
2643 | } | |
2644 | { | |
4268f798 | 2645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2646 | _result = new wxString (wxToolTip_GetTip(_arg0)); |
f6bcfd97 | 2647 | |
4268f798 RD |
2648 | wxPyEndAllowThreads(__tstate); |
2649 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 2650 | }{ |
c8bc7bb8 RD |
2651 | #if wxUSE_UNICODE |
2652 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2653 | #else | |
f6bcfd97 | 2654 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2655 | #endif |
f6bcfd97 BP |
2656 | } |
2657 | { | |
2658 | delete _result; | |
2659 | } | |
2660 | return _resultobj; | |
2661 | } | |
2662 | ||
2663 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2664 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2665 | PyObject * _resultobj; | |
2666 | wxWindow * _result; | |
2667 | wxToolTip * _arg0; | |
2668 | PyObject * _argo0 = 0; | |
2669 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2670 | |
2671 | self = self; | |
2672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2673 | return NULL; | |
2674 | if (_argo0) { | |
2675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2678 | return NULL; | |
2679 | } | |
2680 | } | |
2681 | { | |
4268f798 | 2682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2683 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); |
f6bcfd97 | 2684 | |
4268f798 RD |
2685 | wxPyEndAllowThreads(__tstate); |
2686 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 2687 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2688 | return _resultobj; |
2689 | } | |
2690 | ||
edf2f43e RD |
2691 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
2692 | PyObject * _resultobj; | |
2693 | bool _arg0; | |
2694 | int tempbool0; | |
2695 | char *_kwnames[] = { "flag", NULL }; | |
2696 | ||
2697 | self = self; | |
2698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) | |
2699 | return NULL; | |
2700 | _arg0 = (bool ) tempbool0; | |
2701 | { | |
4268f798 | 2702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2703 | wxToolTip::Enable(_arg0); |
edf2f43e | 2704 | |
4268f798 RD |
2705 | wxPyEndAllowThreads(__tstate); |
2706 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2707 | } Py_INCREF(Py_None); |
2708 | _resultobj = Py_None; | |
2709 | return _resultobj; | |
2710 | } | |
2711 | ||
2712 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2713 | PyObject * _resultobj; | |
2714 | long _arg0; | |
2715 | char *_kwnames[] = { "milliseconds", NULL }; | |
2716 | ||
2717 | self = self; | |
2718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) | |
2719 | return NULL; | |
2720 | { | |
4268f798 | 2721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2722 | wxToolTip::SetDelay(_arg0); |
edf2f43e | 2723 | |
4268f798 RD |
2724 | wxPyEndAllowThreads(__tstate); |
2725 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2726 | } Py_INCREF(Py_None); |
2727 | _resultobj = Py_None; | |
2728 | return _resultobj; | |
2729 | } | |
2730 | ||
f6bcfd97 BP |
2731 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) |
2732 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2733 | PyObject * _resultobj; | |
2734 | wxCaret * _result; | |
2735 | wxWindow * _arg0; | |
2736 | wxSize * _arg1; | |
2737 | PyObject * _argo0 = 0; | |
2738 | wxSize temp; | |
2739 | PyObject * _obj1 = 0; | |
2740 | char *_kwnames[] = { "window","size", NULL }; | |
2741 | char _ptemp[128]; | |
2742 | ||
2743 | self = self; | |
2744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2745 | return NULL; | |
2746 | if (_argo0) { | |
2747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2750 | return NULL; | |
2751 | } | |
2752 | } | |
2753 | { | |
2754 | _arg1 = &temp; | |
2755 | if (! wxSize_helper(_obj1, &_arg1)) | |
2756 | return NULL; | |
2757 | } | |
2758 | { | |
4268f798 | 2759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2760 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); |
f6bcfd97 | 2761 | |
4268f798 RD |
2762 | wxPyEndAllowThreads(__tstate); |
2763 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2764 | } if (_result) { |
2765 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2766 | _resultobj = Py_BuildValue("s",_ptemp); | |
2767 | } else { | |
2768 | Py_INCREF(Py_None); | |
2769 | _resultobj = Py_None; | |
2770 | } | |
2771 | return _resultobj; | |
2772 | } | |
2773 | ||
2774 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2775 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2776 | PyObject * _resultobj; | |
2777 | wxCaret * _arg0; | |
2778 | PyObject * _argo0 = 0; | |
2779 | char *_kwnames[] = { "self", NULL }; | |
2780 | ||
2781 | self = self; | |
2782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
2783 | return NULL; | |
2784 | if (_argo0) { | |
2785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
2788 | return NULL; | |
2789 | } | |
2790 | } | |
2791 | { | |
4268f798 | 2792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2793 | delete_wxCaret(_arg0); |
f6bcfd97 | 2794 | |
4268f798 RD |
2795 | wxPyEndAllowThreads(__tstate); |
2796 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2797 | } Py_INCREF(Py_None); |
2798 | _resultobj = Py_None; | |
2799 | return _resultobj; | |
2800 | } | |
2801 | ||
2802 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
2803 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2804 | PyObject * _resultobj; | |
2805 | bool _result; | |
2806 | wxCaret * _arg0; | |
2807 | PyObject * _argo0 = 0; | |
2808 | char *_kwnames[] = { "self", NULL }; | |
2809 | ||
2810 | self = self; | |
2811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
2812 | return NULL; | |
2813 | if (_argo0) { | |
2814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
2817 | return NULL; | |
2818 | } | |
2819 | } | |
2820 | { | |
4268f798 | 2821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2822 | _result = (bool )wxCaret_IsOk(_arg0); |
f6bcfd97 | 2823 | |
4268f798 RD |
2824 | wxPyEndAllowThreads(__tstate); |
2825 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2826 | } _resultobj = Py_BuildValue("i",_result); |
2827 | return _resultobj; | |
2828 | } | |
2829 | ||
2830 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
2831 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2832 | PyObject * _resultobj; | |
2833 | bool _result; | |
2834 | wxCaret * _arg0; | |
2835 | PyObject * _argo0 = 0; | |
2836 | char *_kwnames[] = { "self", NULL }; | |
2837 | ||
2838 | self = self; | |
2839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
2840 | return NULL; | |
2841 | if (_argo0) { | |
2842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
2845 | return NULL; | |
2846 | } | |
2847 | } | |
2848 | { | |
4268f798 | 2849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2850 | _result = (bool )wxCaret_IsVisible(_arg0); |
f6bcfd97 | 2851 | |
4268f798 RD |
2852 | wxPyEndAllowThreads(__tstate); |
2853 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2854 | } _resultobj = Py_BuildValue("i",_result); |
2855 | return _resultobj; | |
2856 | } | |
2857 | ||
2858 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2859 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2860 | PyObject * _resultobj; | |
2861 | wxCaret * _arg0; | |
2862 | int * _arg1; | |
2863 | int temp; | |
2864 | int * _arg2; | |
2865 | int temp0; | |
2866 | PyObject * _argo0 = 0; | |
2867 | char *_kwnames[] = { "self", NULL }; | |
2868 | ||
2869 | self = self; | |
2870 | { | |
2871 | _arg1 = &temp; | |
2872 | } | |
2873 | { | |
2874 | _arg2 = &temp0; | |
2875 | } | |
2876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
2877 | return NULL; | |
2878 | if (_argo0) { | |
2879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
2882 | return NULL; | |
2883 | } | |
2884 | } | |
2885 | { | |
4268f798 | 2886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2887 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 2888 | |
4268f798 RD |
2889 | wxPyEndAllowThreads(__tstate); |
2890 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2891 | } Py_INCREF(Py_None); |
2892 | _resultobj = Py_None; | |
2893 | { | |
2894 | PyObject *o; | |
2895 | o = PyInt_FromLong((long) (*_arg1)); | |
2896 | _resultobj = t_output_helper(_resultobj, o); | |
2897 | } | |
2898 | { | |
2899 | PyObject *o; | |
2900 | o = PyInt_FromLong((long) (*_arg2)); | |
2901 | _resultobj = t_output_helper(_resultobj, o); | |
2902 | } | |
2903 | return _resultobj; | |
2904 | } | |
2905 | ||
2906 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
f0261a72 RD |
2907 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
2908 | PyObject * _resultobj; | |
f6bcfd97 BP |
2909 | wxPoint * _result; |
2910 | wxCaret * _arg0; | |
2911 | PyObject * _argo0 = 0; | |
2912 | char *_kwnames[] = { "self", NULL }; | |
2913 | char _ptemp[128]; | |
2914 | ||
2915 | self = self; | |
2916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
2917 | return NULL; | |
2918 | if (_argo0) { | |
2919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
2922 | return NULL; | |
2923 | } | |
2924 | } | |
2925 | { | |
4268f798 | 2926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2927 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); |
f6bcfd97 | 2928 | |
4268f798 RD |
2929 | wxPyEndAllowThreads(__tstate); |
2930 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2931 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2932 | _resultobj = Py_BuildValue("s",_ptemp); | |
2933 | return _resultobj; | |
2934 | } | |
2935 | ||
2936 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2937 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2938 | PyObject * _resultobj; | |
2939 | wxCaret * _arg0; | |
2940 | int * _arg1; | |
2941 | int temp; | |
2942 | int * _arg2; | |
2943 | int temp0; | |
2944 | PyObject * _argo0 = 0; | |
2945 | char *_kwnames[] = { "self", NULL }; | |
2946 | ||
2947 | self = self; | |
2948 | { | |
2949 | _arg1 = &temp; | |
2950 | } | |
2951 | { | |
2952 | _arg2 = &temp0; | |
2953 | } | |
2954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
2955 | return NULL; | |
2956 | if (_argo0) { | |
2957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
2960 | return NULL; | |
2961 | } | |
2962 | } | |
2963 | { | |
4268f798 | 2964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2965 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 2966 | |
4268f798 RD |
2967 | wxPyEndAllowThreads(__tstate); |
2968 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2969 | } Py_INCREF(Py_None); |
2970 | _resultobj = Py_None; | |
2971 | { | |
2972 | PyObject *o; | |
2973 | o = PyInt_FromLong((long) (*_arg1)); | |
2974 | _resultobj = t_output_helper(_resultobj, o); | |
2975 | } | |
2976 | { | |
2977 | PyObject *o; | |
2978 | o = PyInt_FromLong((long) (*_arg2)); | |
2979 | _resultobj = t_output_helper(_resultobj, o); | |
2980 | } | |
2981 | return _resultobj; | |
2982 | } | |
2983 | ||
2984 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
2985 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2986 | PyObject * _resultobj; | |
2987 | wxSize * _result; | |
2988 | wxCaret * _arg0; | |
2989 | PyObject * _argo0 = 0; | |
2990 | char *_kwnames[] = { "self", NULL }; | |
2991 | char _ptemp[128]; | |
2992 | ||
2993 | self = self; | |
2994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
2995 | return NULL; | |
2996 | if (_argo0) { | |
2997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
3000 | return NULL; | |
3001 | } | |
3002 | } | |
3003 | { | |
4268f798 | 3004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3005 | _result = new wxSize (wxCaret_GetSize(_arg0)); |
f6bcfd97 | 3006 | |
4268f798 RD |
3007 | wxPyEndAllowThreads(__tstate); |
3008 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3009 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
3010 | _resultobj = Py_BuildValue("s",_ptemp); | |
3011 | return _resultobj; | |
3012 | } | |
3013 | ||
3014 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
3015 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3016 | PyObject * _resultobj; | |
3017 | wxWindow * _result; | |
3018 | wxCaret * _arg0; | |
3019 | PyObject * _argo0 = 0; | |
3020 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
3021 | |
3022 | self = self; | |
3023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
3024 | return NULL; | |
3025 | if (_argo0) { | |
3026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
3029 | return NULL; | |
3030 | } | |
3031 | } | |
3032 | { | |
4268f798 | 3033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3034 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); |
f6bcfd97 | 3035 | |
4268f798 RD |
3036 | wxPyEndAllowThreads(__tstate); |
3037 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 3038 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
3039 | return _resultobj; |
3040 | } | |
3041 | ||
3042 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
3043 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3044 | PyObject * _resultobj; | |
3045 | wxCaret * _arg0; | |
3046 | int _arg1; | |
3047 | int _arg2; | |
3048 | PyObject * _argo0 = 0; | |
3049 | char *_kwnames[] = { "self","x","y", NULL }; | |
3050 | ||
3051 | self = self; | |
3052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3053 | return NULL; | |
3054 | if (_argo0) { | |
3055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
3058 | return NULL; | |
3059 | } | |
3060 | } | |
3061 | { | |
4268f798 | 3062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3063 | wxCaret_MoveXY(_arg0,_arg1,_arg2); |
f6bcfd97 | 3064 | |
4268f798 RD |
3065 | wxPyEndAllowThreads(__tstate); |
3066 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3067 | } Py_INCREF(Py_None); |
3068 | _resultobj = Py_None; | |
3069 | return _resultobj; | |
3070 | } | |
3071 | ||
3072 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3073 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3074 | PyObject * _resultobj; | |
3075 | wxCaret * _arg0; | |
3076 | wxPoint * _arg1; | |
3077 | PyObject * _argo0 = 0; | |
3078 | wxPoint temp; | |
3079 | PyObject * _obj1 = 0; | |
3080 | char *_kwnames[] = { "self","pt", NULL }; | |
3081 | ||
3082 | self = self; | |
3083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
3084 | return NULL; | |
3085 | if (_argo0) { | |
3086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
3089 | return NULL; | |
3090 | } | |
3091 | } | |
3092 | { | |
3093 | _arg1 = &temp; | |
3094 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3095 | return NULL; | |
3096 | } | |
3097 | { | |
4268f798 | 3098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3099 | wxCaret_Move(_arg0,*_arg1); |
f6bcfd97 | 3100 | |
4268f798 RD |
3101 | wxPyEndAllowThreads(__tstate); |
3102 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3103 | } Py_INCREF(Py_None); |
3104 | _resultobj = Py_None; | |
3105 | return _resultobj; | |
3106 | } | |
3107 | ||
3108 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
3109 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3110 | PyObject * _resultobj; | |
3111 | wxCaret * _arg0; | |
3112 | int _arg1; | |
3113 | int _arg2; | |
3114 | PyObject * _argo0 = 0; | |
3115 | char *_kwnames[] = { "self","width","height", NULL }; | |
3116 | ||
3117 | self = self; | |
3118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3119 | return NULL; | |
3120 | if (_argo0) { | |
3121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
3124 | return NULL; | |
3125 | } | |
3126 | } | |
3127 | { | |
4268f798 | 3128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3129 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); |
f6bcfd97 | 3130 | |
4268f798 RD |
3131 | wxPyEndAllowThreads(__tstate); |
3132 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3133 | } Py_INCREF(Py_None); |
3134 | _resultobj = Py_None; | |
3135 | return _resultobj; | |
3136 | } | |
3137 | ||
3138 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3139 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3140 | PyObject * _resultobj; | |
3141 | wxCaret * _arg0; | |
3142 | wxSize * _arg1; | |
3143 | PyObject * _argo0 = 0; | |
3144 | wxSize temp; | |
3145 | PyObject * _obj1 = 0; | |
3146 | char *_kwnames[] = { "self","size", NULL }; | |
3147 | ||
3148 | self = self; | |
3149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
3150 | return NULL; | |
3151 | if (_argo0) { | |
3152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
3155 | return NULL; | |
3156 | } | |
3157 | } | |
3158 | { | |
3159 | _arg1 = &temp; | |
3160 | if (! wxSize_helper(_obj1, &_arg1)) | |
3161 | return NULL; | |
3162 | } | |
3163 | { | |
4268f798 | 3164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3165 | wxCaret_SetSize(_arg0,*_arg1); |
f6bcfd97 | 3166 | |
4268f798 RD |
3167 | wxPyEndAllowThreads(__tstate); |
3168 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3169 | } Py_INCREF(Py_None); |
3170 | _resultobj = Py_None; | |
3171 | return _resultobj; | |
3172 | } | |
3173 | ||
3174 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
3175 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3176 | PyObject * _resultobj; | |
3177 | wxCaret * _arg0; | |
3178 | int _arg1 = (int ) TRUE; | |
3179 | PyObject * _argo0 = 0; | |
3180 | char *_kwnames[] = { "self","show", NULL }; | |
3181 | ||
3182 | self = self; | |
3183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
3184 | return NULL; | |
3185 | if (_argo0) { | |
3186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
3189 | return NULL; | |
3190 | } | |
3191 | } | |
3192 | { | |
4268f798 | 3193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3194 | wxCaret_Show(_arg0,_arg1); |
f6bcfd97 | 3195 | |
4268f798 RD |
3196 | wxPyEndAllowThreads(__tstate); |
3197 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3198 | } Py_INCREF(Py_None); |
3199 | _resultobj = Py_None; | |
3200 | return _resultobj; | |
3201 | } | |
3202 | ||
3203 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
3204 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3205 | PyObject * _resultobj; | |
3206 | wxCaret * _arg0; | |
3207 | PyObject * _argo0 = 0; | |
3208 | char *_kwnames[] = { "self", NULL }; | |
3209 | ||
3210 | self = self; | |
3211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
3212 | return NULL; | |
3213 | if (_argo0) { | |
3214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
3217 | return NULL; | |
3218 | } | |
3219 | } | |
3220 | { | |
4268f798 | 3221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3222 | wxCaret_Hide(_arg0); |
f6bcfd97 | 3223 | |
4268f798 RD |
3224 | wxPyEndAllowThreads(__tstate); |
3225 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3226 | } Py_INCREF(Py_None); |
3227 | _resultobj = Py_None; | |
3228 | return _resultobj; | |
3229 | } | |
3230 | ||
f6bcfd97 BP |
3231 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) |
3232 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3233 | PyObject * _resultobj; | |
3234 | wxBusyCursor * _result; | |
3235 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3236 | PyObject * _argo0 = 0; | |
3237 | char *_kwnames[] = { "cursor", NULL }; | |
3238 | char _ptemp[128]; | |
3239 | ||
3240 | self = self; | |
3241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3242 | return NULL; | |
3243 | if (_argo0) { | |
3244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3247 | return NULL; | |
3248 | } | |
3249 | } | |
3250 | { | |
4268f798 | 3251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3252 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); |
f6bcfd97 | 3253 | |
4268f798 RD |
3254 | wxPyEndAllowThreads(__tstate); |
3255 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3256 | } if (_result) { |
3257 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3258 | _resultobj = Py_BuildValue("s",_ptemp); | |
3259 | } else { | |
3260 | Py_INCREF(Py_None); | |
3261 | _resultobj = Py_None; | |
3262 | } | |
3263 | return _resultobj; | |
3264 | } | |
3265 | ||
3266 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3267 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3268 | PyObject * _resultobj; | |
3269 | wxBusyCursor * _arg0; | |
3270 | PyObject * _argo0 = 0; | |
3271 | char *_kwnames[] = { "self", NULL }; | |
3272 | ||
3273 | self = self; | |
3274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3275 | return NULL; | |
3276 | if (_argo0) { | |
3277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3280 | return NULL; | |
3281 | } | |
3282 | } | |
3283 | { | |
4268f798 | 3284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3285 | delete_wxBusyCursor(_arg0); |
f6bcfd97 | 3286 | |
4268f798 RD |
3287 | wxPyEndAllowThreads(__tstate); |
3288 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3289 | } Py_INCREF(Py_None); |
3290 | _resultobj = Py_None; | |
3291 | return _resultobj; | |
3292 | } | |
3293 | ||
c368d904 RD |
3294 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) |
3295 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3296 | PyObject * _resultobj; | |
3297 | wxWindowDisabler * _result; | |
3298 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3299 | PyObject * _argo0 = 0; | |
3300 | char *_kwnames[] = { "winToSkip", NULL }; | |
3301 | char _ptemp[128]; | |
3302 | ||
3303 | self = self; | |
3304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3305 | return NULL; | |
3306 | if (_argo0) { | |
3307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3310 | return NULL; | |
3311 | } | |
3312 | } | |
3313 | { | |
4268f798 | 3314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3315 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); |
c368d904 | 3316 | |
4268f798 RD |
3317 | wxPyEndAllowThreads(__tstate); |
3318 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3319 | } if (_result) { |
3320 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3321 | _resultobj = Py_BuildValue("s",_ptemp); | |
3322 | } else { | |
3323 | Py_INCREF(Py_None); | |
3324 | _resultobj = Py_None; | |
3325 | } | |
3326 | return _resultobj; | |
3327 | } | |
3328 | ||
3329 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3330 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3331 | PyObject * _resultobj; | |
3332 | wxWindowDisabler * _arg0; | |
3333 | PyObject * _argo0 = 0; | |
3334 | char *_kwnames[] = { "self", NULL }; | |
3335 | ||
3336 | self = self; | |
3337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3338 | return NULL; | |
3339 | if (_argo0) { | |
3340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3343 | return NULL; | |
3344 | } | |
3345 | } | |
3346 | { | |
4268f798 | 3347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3348 | delete_wxWindowDisabler(_arg0); |
c368d904 | 3349 | |
4268f798 RD |
3350 | wxPyEndAllowThreads(__tstate); |
3351 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3352 | } Py_INCREF(Py_None); |
3353 | _resultobj = Py_None; | |
3354 | return _resultobj; | |
3355 | } | |
3356 | ||
6e18ca6c RD |
3357 | #define new_wxMutexGuiLocker() (new wxMutexGuiLocker()) |
3358 | static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3359 | PyObject * _resultobj; | |
3360 | wxMutexGuiLocker * _result; | |
3361 | char *_kwnames[] = { NULL }; | |
3362 | char _ptemp[128]; | |
3363 | ||
3364 | self = self; | |
3365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames)) | |
3366 | return NULL; | |
3367 | { | |
4268f798 | 3368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3369 | _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker(); |
6e18ca6c | 3370 | |
4268f798 RD |
3371 | wxPyEndAllowThreads(__tstate); |
3372 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3373 | } if (_result) { |
3374 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p"); | |
3375 | _resultobj = Py_BuildValue("s",_ptemp); | |
3376 | } else { | |
3377 | Py_INCREF(Py_None); | |
3378 | _resultobj = Py_None; | |
3379 | } | |
3380 | return _resultobj; | |
3381 | } | |
3382 | ||
3383 | #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj) | |
3384 | static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3385 | PyObject * _resultobj; | |
3386 | wxMutexGuiLocker * _arg0; | |
3387 | PyObject * _argo0 = 0; | |
3388 | char *_kwnames[] = { "self", NULL }; | |
3389 | ||
3390 | self = self; | |
3391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0)) | |
3392 | return NULL; | |
3393 | if (_argo0) { | |
3394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) { | |
3396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p."); | |
3397 | return NULL; | |
3398 | } | |
3399 | } | |
3400 | { | |
4268f798 | 3401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3402 | delete_wxMutexGuiLocker(_arg0); |
6e18ca6c | 3403 | |
4268f798 RD |
3404 | wxPyEndAllowThreads(__tstate); |
3405 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3406 | } Py_INCREF(Py_None); |
3407 | _resultobj = Py_None; | |
3408 | return _resultobj; | |
3409 | } | |
3410 | ||
f6bcfd97 BP |
3411 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) |
3412 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3413 | PyObject * _resultobj; | |
3414 | wxTipProvider * _arg0; | |
3415 | PyObject * _argo0 = 0; | |
3416 | char *_kwnames[] = { "self", NULL }; | |
3417 | ||
3418 | self = self; | |
3419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3420 | return NULL; | |
3421 | if (_argo0) { | |
3422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3425 | return NULL; | |
3426 | } | |
3427 | } | |
3428 | { | |
4268f798 | 3429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3430 | delete_wxTipProvider(_arg0); |
f6bcfd97 | 3431 | |
4268f798 RD |
3432 | wxPyEndAllowThreads(__tstate); |
3433 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3434 | } Py_INCREF(Py_None); |
3435 | _resultobj = Py_None; | |
3436 | return _resultobj; | |
3437 | } | |
3438 | ||
3439 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3440 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3441 | PyObject * _resultobj; | |
3442 | wxString * _result; | |
3443 | wxTipProvider * _arg0; | |
3444 | PyObject * _argo0 = 0; | |
3445 | char *_kwnames[] = { "self", NULL }; | |
3446 | ||
3447 | self = self; | |
3448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3449 | return NULL; | |
3450 | if (_argo0) { | |
3451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3454 | return NULL; | |
3455 | } | |
3456 | } | |
3457 | { | |
4268f798 | 3458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3459 | _result = new wxString (wxTipProvider_GetTip(_arg0)); |
f6bcfd97 | 3460 | |
4268f798 RD |
3461 | wxPyEndAllowThreads(__tstate); |
3462 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 3463 | }{ |
c8bc7bb8 RD |
3464 | #if wxUSE_UNICODE |
3465 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3466 | #else | |
f6bcfd97 | 3467 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3468 | #endif |
f6bcfd97 BP |
3469 | } |
3470 | { | |
3471 | delete _result; | |
3472 | } | |
3473 | return _resultobj; | |
3474 | } | |
3475 | ||
3476 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3477 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3478 | PyObject * _resultobj; | |
3479 | size_t _result; | |
3480 | wxTipProvider * _arg0; | |
3481 | PyObject * _argo0 = 0; | |
3482 | char *_kwnames[] = { "self", NULL }; | |
3483 | ||
3484 | self = self; | |
3485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3486 | return NULL; | |
3487 | if (_argo0) { | |
3488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3491 | return NULL; | |
3492 | } | |
3493 | } | |
3494 | { | |
4268f798 | 3495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3496 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); |
f6bcfd97 | 3497 | |
4268f798 RD |
3498 | wxPyEndAllowThreads(__tstate); |
3499 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3500 | } _resultobj = Py_BuildValue("i",_result); |
3501 | return _resultobj; | |
3502 | } | |
3503 | ||
3504 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { | |
3505 | wxPyTipProvider *src; | |
3506 | wxTipProvider *dest; | |
3507 | src = (wxPyTipProvider *) ptr; | |
3508 | dest = (wxTipProvider *) src; | |
3509 | return (void *) dest; | |
3510 | } | |
3511 | ||
3512 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3513 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3514 | PyObject * _resultobj; | |
3515 | wxPyTipProvider * _result; | |
3516 | size_t _arg0; | |
3517 | char *_kwnames[] = { "currentTip", NULL }; | |
3518 | char _ptemp[128]; | |
3519 | ||
3520 | self = self; | |
3521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3522 | return NULL; | |
3523 | { | |
4268f798 | 3524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3525 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); |
f6bcfd97 | 3526 | |
4268f798 RD |
3527 | wxPyEndAllowThreads(__tstate); |
3528 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3529 | } if (_result) { |
3530 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3531 | _resultobj = Py_BuildValue("s",_ptemp); | |
3532 | } else { | |
3533 | Py_INCREF(Py_None); | |
3534 | _resultobj = Py_None; | |
3535 | } | |
3536 | return _resultobj; | |
3537 | } | |
3538 | ||
9416aa89 RD |
3539 | static void *SwigwxGenericDragImageTowxObject(void *ptr) { |
3540 | wxGenericDragImage *src; | |
3541 | wxObject *dest; | |
3542 | src = (wxGenericDragImage *) ptr; | |
3543 | dest = (wxObject *) src; | |
3544 | return (void *) dest; | |
3545 | } | |
3546 | ||
10e07c70 | 3547 | #define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
f6bcfd97 BP |
3548 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
3549 | PyObject * _resultobj; | |
3550 | wxGenericDragImage * _result; | |
3551 | wxBitmap * _arg0; | |
3552 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
f6bcfd97 BP |
3553 | PyObject * _argo0 = 0; |
3554 | PyObject * _argo1 = 0; | |
10e07c70 | 3555 | char *_kwnames[] = { "image","cursor", NULL }; |
f6bcfd97 BP |
3556 | char _ptemp[128]; |
3557 | ||
3558 | self = self; | |
10e07c70 | 3559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
3560 | return NULL; |
3561 | if (_argo0) { | |
3562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
3564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); | |
3565 | return NULL; | |
3566 | } | |
3567 | } | |
3568 | if (_argo1) { | |
3569 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3570 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); | |
3572 | return NULL; | |
3573 | } | |
3574 | } | |
f6bcfd97 | 3575 | { |
4268f798 | 3576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3577 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1); |
f6bcfd97 | 3578 | |
4268f798 RD |
3579 | wxPyEndAllowThreads(__tstate); |
3580 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3581 | } if (_result) { |
3582 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3583 | _resultobj = Py_BuildValue("s",_ptemp); | |
3584 | } else { | |
3585 | Py_INCREF(Py_None); | |
3586 | _resultobj = Py_None; | |
3587 | } | |
3588 | return _resultobj; | |
3589 | } | |
3590 | ||
cdf14688 RD |
3591 | #define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
3592 | static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3593 | PyObject * _resultobj; | |
3594 | wxGenericDragImage * _result; | |
3595 | wxIcon * _arg0; | |
3596 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3597 | PyObject * _argo0 = 0; | |
3598 | PyObject * _argo1 = 0; | |
3599 | char *_kwnames[] = { "image","cursor", NULL }; | |
3600 | char _ptemp[128]; | |
3601 | ||
3602 | self = self; | |
3603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1)) | |
3604 | return NULL; | |
3605 | if (_argo0) { | |
3606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
3608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p."); | |
3609 | return NULL; | |
3610 | } | |
3611 | } | |
3612 | if (_argo1) { | |
3613 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3614 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p."); | |
3616 | return NULL; | |
3617 | } | |
3618 | } | |
3619 | { | |
4268f798 | 3620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3621 | _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1); |
cdf14688 | 3622 | |
4268f798 RD |
3623 | wxPyEndAllowThreads(__tstate); |
3624 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3625 | } if (_result) { |
3626 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3627 | _resultobj = Py_BuildValue("s",_ptemp); | |
3628 | } else { | |
3629 | Py_INCREF(Py_None); | |
3630 | _resultobj = Py_None; | |
3631 | } | |
3632 | return _resultobj; | |
3633 | } | |
3634 | ||
3635 | #define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3636 | static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3637 | PyObject * _resultobj; | |
3638 | wxGenericDragImage * _result; | |
3639 | wxString * _arg0; | |
3640 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3641 | PyObject * _obj0 = 0; | |
3642 | PyObject * _argo1 = 0; | |
3643 | char *_kwnames[] = { "str","cursor", NULL }; | |
3644 | char _ptemp[128]; | |
3645 | ||
3646 | self = self; | |
3647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1)) | |
3648 | return NULL; | |
3649 | { | |
c8bc7bb8 RD |
3650 | _arg0 = wxString_in_helper(_obj0); |
3651 | if (_arg0 == NULL) | |
cdf14688 | 3652 | return NULL; |
cdf14688 RD |
3653 | } |
3654 | if (_argo1) { | |
3655 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3656 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p."); | |
3658 | return NULL; | |
3659 | } | |
3660 | } | |
3661 | { | |
4268f798 | 3662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3663 | _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1); |
cdf14688 | 3664 | |
4268f798 RD |
3665 | wxPyEndAllowThreads(__tstate); |
3666 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3667 | } if (_result) { |
3668 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3669 | _resultobj = Py_BuildValue("s",_ptemp); | |
3670 | } else { | |
3671 | Py_INCREF(Py_None); | |
3672 | _resultobj = Py_None; | |
3673 | } | |
3674 | { | |
3675 | if (_obj0) | |
3676 | delete _arg0; | |
3677 | } | |
3678 | return _resultobj; | |
3679 | } | |
3680 | ||
3681 | #define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3682 | static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3683 | PyObject * _resultobj; | |
3684 | wxGenericDragImage * _result; | |
3685 | wxTreeCtrl * _arg0; | |
3686 | wxTreeItemId * _arg1; | |
3687 | PyObject * _argo0 = 0; | |
3688 | PyObject * _argo1 = 0; | |
3689 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
3690 | char _ptemp[128]; | |
3691 | ||
3692 | self = self; | |
3693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1)) | |
3694 | return NULL; | |
3695 | if (_argo0) { | |
3696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
3698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p."); | |
3699 | return NULL; | |
3700 | } | |
3701 | } | |
3702 | if (_argo1) { | |
3703 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3704 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
3705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p."); | |
3706 | return NULL; | |
3707 | } | |
3708 | } | |
3709 | { | |
4268f798 | 3710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3711 | _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1); |
cdf14688 | 3712 | |
4268f798 RD |
3713 | wxPyEndAllowThreads(__tstate); |
3714 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3715 | } if (_result) { |
3716 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3717 | _resultobj = Py_BuildValue("s",_ptemp); | |
3718 | } else { | |
3719 | Py_INCREF(Py_None); | |
3720 | _resultobj = Py_None; | |
3721 | } | |
3722 | return _resultobj; | |
3723 | } | |
3724 | ||
3725 | #define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3726 | static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3727 | PyObject * _resultobj; | |
3728 | wxGenericDragImage * _result; | |
3729 | wxListCtrl * _arg0; | |
3730 | long _arg1; | |
3731 | PyObject * _argo0 = 0; | |
3732 | char *_kwnames[] = { "listCtrl","id", NULL }; | |
3733 | char _ptemp[128]; | |
3734 | ||
3735 | self = self; | |
3736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1)) | |
3737 | return NULL; | |
3738 | if (_argo0) { | |
3739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragListItem. Expected _wxListCtrl_p."); | |
3742 | return NULL; | |
3743 | } | |
3744 | } | |
3745 | { | |
4268f798 | 3746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3747 | _result = (wxGenericDragImage *)new_wxDragListItem(*_arg0,_arg1); |
cdf14688 | 3748 | |
4268f798 RD |
3749 | wxPyEndAllowThreads(__tstate); |
3750 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3751 | } if (_result) { |
3752 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3753 | _resultobj = Py_BuildValue("s",_ptemp); | |
3754 | } else { | |
3755 | Py_INCREF(Py_None); | |
3756 | _resultobj = Py_None; | |
3757 | } | |
3758 | return _resultobj; | |
3759 | } | |
3760 | ||
f6bcfd97 BP |
3761 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) |
3762 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3763 | PyObject * _resultobj; | |
3764 | wxGenericDragImage * _arg0; | |
3765 | PyObject * _argo0 = 0; | |
3766 | char *_kwnames[] = { "self", NULL }; | |
3767 | ||
3768 | self = self; | |
3769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
3770 | return NULL; | |
3771 | if (_argo0) { | |
3772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
3775 | return NULL; | |
3776 | } | |
3777 | } | |
3778 | { | |
4268f798 | 3779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3780 | delete_wxGenericDragImage(_arg0); |
f6bcfd97 | 3781 | |
4268f798 RD |
3782 | wxPyEndAllowThreads(__tstate); |
3783 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3784 | } Py_INCREF(Py_None); |
3785 | _resultobj = Py_None; | |
3786 | return _resultobj; | |
3787 | } | |
3788 | ||
10e07c70 RD |
3789 | #define wxDragImage_SetBackingBitmap(_swigobj,_swigarg0) (_swigobj->SetBackingBitmap(_swigarg0)) |
3790 | static PyObject *_wrap_wxDragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3791 | PyObject * _resultobj; | |
3792 | wxGenericDragImage * _arg0; | |
3793 | wxBitmap * _arg1; | |
3794 | PyObject * _argo0 = 0; | |
3795 | PyObject * _argo1 = 0; | |
3796 | char *_kwnames[] = { "self","bitmap", NULL }; | |
3797 | ||
3798 | self = self; | |
3799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_SetBackingBitmap",_kwnames,&_argo0,&_argo1)) | |
3800 | return NULL; | |
3801 | if (_argo0) { | |
3802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_SetBackingBitmap. Expected _wxGenericDragImage_p."); | |
3805 | return NULL; | |
3806 | } | |
3807 | } | |
3808 | if (_argo1) { | |
3809 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3810 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
3811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragImage_SetBackingBitmap. Expected _wxBitmap_p."); | |
3812 | return NULL; | |
3813 | } | |
3814 | } | |
3815 | { | |
4268f798 | 3816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3817 | wxDragImage_SetBackingBitmap(_arg0,_arg1); |
10e07c70 | 3818 | |
4268f798 RD |
3819 | wxPyEndAllowThreads(__tstate); |
3820 | if (PyErr_Occurred()) return NULL; | |
10e07c70 RD |
3821 | } Py_INCREF(Py_None); |
3822 | _resultobj = Py_None; | |
3823 | return _resultobj; | |
3824 | } | |
3825 | ||
f6bcfd97 BP |
3826 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3827 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3828 | PyObject * _resultobj; | |
3829 | bool _result; | |
3830 | wxGenericDragImage * _arg0; | |
3831 | wxPoint * _arg1; | |
3832 | wxWindow * _arg2; | |
3833 | bool _arg3 = (bool ) FALSE; | |
3834 | wxRect * _arg4 = (wxRect *) NULL; | |
3835 | PyObject * _argo0 = 0; | |
3836 | wxPoint temp; | |
3837 | PyObject * _obj1 = 0; | |
3838 | PyObject * _argo2 = 0; | |
3839 | int tempbool3 = (int) FALSE; | |
3840 | wxRect temp0; | |
3841 | PyObject * _obj4 = 0; | |
3842 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
3843 | ||
3844 | self = self; | |
3845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
3846 | return NULL; | |
3847 | if (_argo0) { | |
3848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
3851 | return NULL; | |
3852 | } | |
3853 | } | |
3854 | { | |
3855 | _arg1 = &temp; | |
3856 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3857 | return NULL; | |
3858 | } | |
3859 | if (_argo2) { | |
3860 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3861 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
3863 | return NULL; | |
3864 | } | |
3865 | } | |
3866 | _arg3 = (bool ) tempbool3; | |
3867 | if (_obj4) | |
3868 | { | |
3869 | _arg4 = &temp0; | |
3870 | if (! wxRect_helper(_obj4, &_arg4)) | |
3871 | return NULL; | |
3872 | } | |
3873 | { | |
4268f798 | 3874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3875 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); |
f6bcfd97 | 3876 | |
4268f798 RD |
3877 | wxPyEndAllowThreads(__tstate); |
3878 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3879 | } _resultobj = Py_BuildValue("i",_result); |
3880 | return _resultobj; | |
3881 | } | |
3882 | ||
3883 | #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) | |
3884 | static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3885 | PyObject * _resultobj; | |
3886 | bool _result; | |
3887 | wxGenericDragImage * _arg0; | |
3888 | wxPoint * _arg1; | |
3889 | wxWindow * _arg2; | |
3890 | wxWindow * _arg3; | |
3891 | PyObject * _argo0 = 0; | |
3892 | wxPoint temp; | |
3893 | PyObject * _obj1 = 0; | |
3894 | PyObject * _argo2 = 0; | |
3895 | PyObject * _argo3 = 0; | |
3896 | char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL }; | |
3897 | ||
3898 | self = self; | |
3899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
3900 | return NULL; | |
3901 | if (_argo0) { | |
3902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p."); | |
3905 | return NULL; | |
3906 | } | |
3907 | } | |
3908 | { | |
3909 | _arg1 = &temp; | |
3910 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3911 | return NULL; | |
3912 | } | |
3913 | if (_argo2) { | |
3914 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3915 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3917 | return NULL; | |
3918 | } | |
3919 | } | |
3920 | if (_argo3) { | |
3921 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3922 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
3923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3924 | return NULL; | |
3925 | } | |
3926 | } | |
3927 | { | |
4268f798 | 3928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3929 | _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3); |
f6bcfd97 | 3930 | |
4268f798 RD |
3931 | wxPyEndAllowThreads(__tstate); |
3932 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3933 | } _resultobj = Py_BuildValue("i",_result); |
3934 | return _resultobj; | |
3935 | } | |
3936 | ||
3937 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
3938 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3939 | PyObject * _resultobj; | |
3940 | bool _result; | |
3941 | wxGenericDragImage * _arg0; | |
3942 | PyObject * _argo0 = 0; | |
3943 | char *_kwnames[] = { "self", NULL }; | |
3944 | ||
3945 | self = self; | |
3946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
3947 | return NULL; | |
3948 | if (_argo0) { | |
3949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
3952 | return NULL; | |
3953 | } | |
3954 | } | |
3955 | { | |
4268f798 | 3956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3957 | _result = (bool )wxDragImage_EndDrag(_arg0); |
f6bcfd97 | 3958 | |
4268f798 RD |
3959 | wxPyEndAllowThreads(__tstate); |
3960 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3961 | } _resultobj = Py_BuildValue("i",_result); |
3962 | return _resultobj; | |
3963 | } | |
3964 | ||
3965 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3966 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3967 | PyObject * _resultobj; | |
3968 | bool _result; | |
3969 | wxGenericDragImage * _arg0; | |
3970 | wxPoint * _arg1; | |
3971 | PyObject * _argo0 = 0; | |
3972 | wxPoint temp; | |
3973 | PyObject * _obj1 = 0; | |
3974 | char *_kwnames[] = { "self","pt", NULL }; | |
3975 | ||
3976 | self = self; | |
3977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
3978 | return NULL; | |
3979 | if (_argo0) { | |
3980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p."); | |
3983 | return NULL; | |
3984 | } | |
3985 | } | |
3986 | { | |
3987 | _arg1 = &temp; | |
3988 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3989 | return NULL; | |
3990 | } | |
3991 | { | |
4268f798 | 3992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3993 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); |
f6bcfd97 | 3994 | |
4268f798 RD |
3995 | wxPyEndAllowThreads(__tstate); |
3996 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3997 | } _resultobj = Py_BuildValue("i",_result); |
3998 | return _resultobj; | |
3999 | } | |
4000 | ||
4001 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
4002 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4003 | PyObject * _resultobj; | |
4004 | bool _result; | |
4005 | wxGenericDragImage * _arg0; | |
4006 | PyObject * _argo0 = 0; | |
4007 | char *_kwnames[] = { "self", NULL }; | |
4008 | ||
4009 | self = self; | |
4010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
4011 | return NULL; | |
4012 | if (_argo0) { | |
4013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
4016 | return NULL; | |
4017 | } | |
4018 | } | |
4019 | { | |
4268f798 | 4020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4021 | _result = (bool )wxDragImage_Show(_arg0); |
f6bcfd97 | 4022 | |
4268f798 RD |
4023 | wxPyEndAllowThreads(__tstate); |
4024 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4025 | } _resultobj = Py_BuildValue("i",_result); |
4026 | return _resultobj; | |
4027 | } | |
4028 | ||
4029 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
4030 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4031 | PyObject * _resultobj; | |
4032 | bool _result; | |
4033 | wxGenericDragImage * _arg0; | |
4034 | PyObject * _argo0 = 0; | |
4035 | char *_kwnames[] = { "self", NULL }; | |
4036 | ||
4037 | self = self; | |
4038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
4039 | return NULL; | |
4040 | if (_argo0) { | |
4041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
4044 | return NULL; | |
4045 | } | |
4046 | } | |
4047 | { | |
4268f798 | 4048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4049 | _result = (bool )wxDragImage_Hide(_arg0); |
f6bcfd97 | 4050 | |
4268f798 RD |
4051 | wxPyEndAllowThreads(__tstate); |
4052 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4053 | } _resultobj = Py_BuildValue("i",_result); |
4054 | return _resultobj; | |
4055 | } | |
4056 | ||
4057 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
4058 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4059 | PyObject * _resultobj; | |
4060 | wxRect * _result; | |
4061 | wxGenericDragImage * _arg0; | |
4062 | wxPoint * _arg1; | |
4063 | PyObject * _argo0 = 0; | |
4064 | wxPoint temp; | |
4065 | PyObject * _obj1 = 0; | |
4066 | char *_kwnames[] = { "self","pos", NULL }; | |
4067 | char _ptemp[128]; | |
4068 | ||
4069 | self = self; | |
4070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
4071 | return NULL; | |
4072 | if (_argo0) { | |
4073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p."); | |
4076 | return NULL; | |
4077 | } | |
4078 | } | |
4079 | { | |
4080 | _arg1 = &temp; | |
4081 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4082 | return NULL; | |
4083 | } | |
4084 | { | |
4268f798 | 4085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4086 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); |
f6bcfd97 | 4087 | |
4268f798 RD |
4088 | wxPyEndAllowThreads(__tstate); |
4089 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4090 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
4091 | _resultobj = Py_BuildValue("s",_ptemp); | |
4092 | return _resultobj; | |
4093 | } | |
4094 | ||
4095 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4096 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4097 | PyObject * _resultobj; | |
4098 | bool _result; | |
4099 | wxGenericDragImage * _arg0; | |
4100 | wxPoint * _arg1; | |
4101 | wxPoint * _arg2; | |
4102 | bool _arg3; | |
4103 | bool _arg4; | |
4104 | PyObject * _argo0 = 0; | |
4105 | wxPoint temp; | |
4106 | PyObject * _obj1 = 0; | |
4107 | wxPoint temp0; | |
4108 | PyObject * _obj2 = 0; | |
4109 | int tempbool3; | |
4110 | int tempbool4; | |
4111 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
4112 | ||
4113 | self = self; | |
4114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
4115 | return NULL; | |
4116 | if (_argo0) { | |
4117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
4120 | return NULL; | |
4121 | } | |
4122 | } | |
4123 | { | |
4124 | _arg1 = &temp; | |
4125 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4126 | return NULL; | |
4127 | } | |
4128 | { | |
4129 | _arg2 = &temp0; | |
4130 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4131 | return NULL; | |
4132 | } | |
4133 | _arg3 = (bool ) tempbool3; | |
4134 | _arg4 = (bool ) tempbool4; | |
4135 | { | |
4268f798 | 4136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4137 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
f6bcfd97 | 4138 | |
4268f798 RD |
4139 | wxPyEndAllowThreads(__tstate); |
4140 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4141 | } _resultobj = Py_BuildValue("i",_result); |
4142 | return _resultobj; | |
4143 | } | |
4144 | ||
9416aa89 RD |
4145 | static void *SwigwxPyTimerTowxObject(void *ptr) { |
4146 | wxPyTimer *src; | |
4147 | wxObject *dest; | |
4148 | src = (wxPyTimer *) ptr; | |
4149 | dest = (wxObject *) src; | |
4150 | return (void *) dest; | |
4151 | } | |
4152 | ||
f6bcfd97 BP |
4153 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) |
4154 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4155 | PyObject * _resultobj; | |
4156 | wxPyTimer * _result; | |
4157 | PyObject * _arg0; | |
4158 | PyObject * _obj0 = 0; | |
4159 | char *_kwnames[] = { "notify", NULL }; | |
4160 | char _ptemp[128]; | |
4161 | ||
4162 | self = self; | |
4163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
4164 | return NULL; | |
4165 | { | |
4166 | _arg0 = _obj0; | |
4167 | } | |
4168 | { | |
4268f798 | 4169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4170 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); |
f6bcfd97 | 4171 | |
4268f798 RD |
4172 | wxPyEndAllowThreads(__tstate); |
4173 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4174 | } if (_result) { |
4175 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
4176 | _resultobj = Py_BuildValue("s",_ptemp); | |
4177 | } else { | |
4178 | Py_INCREF(Py_None); | |
4179 | _resultobj = Py_None; | |
4180 | } | |
4181 | return _resultobj; | |
4182 | } | |
4183 | ||
4184 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
4185 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4186 | PyObject * _resultobj; | |
4187 | wxPyTimer * _arg0; | |
4188 | PyObject * _argo0 = 0; | |
4189 | char *_kwnames[] = { "self", NULL }; | |
4190 | ||
4191 | self = self; | |
4192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
4193 | return NULL; | |
4194 | if (_argo0) { | |
4195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
4198 | return NULL; | |
4199 | } | |
4200 | } | |
4201 | { | |
4268f798 | 4202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4203 | delete_wxPyTimer(_arg0); |
f6bcfd97 | 4204 | |
4268f798 RD |
4205 | wxPyEndAllowThreads(__tstate); |
4206 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4207 | } Py_INCREF(Py_None); |
4208 | _resultobj = Py_None; | |
4209 | return _resultobj; | |
4210 | } | |
4211 | ||
4212 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
4213 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4214 | PyObject * _resultobj; | |
4215 | int _result; | |
4216 | wxPyTimer * _arg0; | |
4217 | PyObject * _argo0 = 0; | |
4218 | char *_kwnames[] = { "self", NULL }; | |
4219 | ||
4220 | self = self; | |
4221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
4222 | return NULL; | |
4223 | if (_argo0) { | |
4224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
4227 | return NULL; | |
4228 | } | |
4229 | } | |
4230 | { | |
4268f798 | 4231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4232 | _result = (int )wxPyTimer_GetInterval(_arg0); |
f6bcfd97 | 4233 | |
4268f798 RD |
4234 | wxPyEndAllowThreads(__tstate); |
4235 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4236 | } _resultobj = Py_BuildValue("i",_result); |
4237 | return _resultobj; | |
4238 | } | |
4239 | ||
4240 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
4241 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4242 | PyObject * _resultobj; | |
4243 | bool _result; | |
4244 | wxPyTimer * _arg0; | |
4245 | PyObject * _argo0 = 0; | |
4246 | char *_kwnames[] = { "self", NULL }; | |
4247 | ||
4248 | self = self; | |
4249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
4250 | return NULL; | |
4251 | if (_argo0) { | |
4252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
4255 | return NULL; | |
4256 | } | |
4257 | } | |
4258 | { | |
4268f798 | 4259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4260 | _result = (bool )wxPyTimer_IsOneShot(_arg0); |
f6bcfd97 | 4261 | |
4268f798 RD |
4262 | wxPyEndAllowThreads(__tstate); |
4263 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4264 | } _resultobj = Py_BuildValue("i",_result); |
4265 | return _resultobj; | |
4266 | } | |
4267 | ||
4268 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
4269 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4270 | PyObject * _resultobj; | |
4271 | bool _result; | |
4272 | wxPyTimer * _arg0; | |
4273 | PyObject * _argo0 = 0; | |
4274 | char *_kwnames[] = { "self", NULL }; | |
4275 | ||
4276 | self = self; | |
4277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
4278 | return NULL; | |
4279 | if (_argo0) { | |
4280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
4283 | return NULL; | |
4284 | } | |
4285 | } | |
4286 | { | |
4268f798 | 4287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4288 | _result = (bool )wxPyTimer_IsRunning(_arg0); |
f6bcfd97 | 4289 | |
4268f798 RD |
4290 | wxPyEndAllowThreads(__tstate); |
4291 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4292 | } _resultobj = Py_BuildValue("i",_result); |
4293 | return _resultobj; | |
4294 | } | |
4295 | ||
4296 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
4297 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4298 | PyObject * _resultobj; | |
4299 | wxPyTimer * _arg0; | |
4300 | wxEvtHandler * _arg1; | |
4301 | int _arg2 = (int ) -1; | |
4302 | PyObject * _argo0 = 0; | |
4303 | PyObject * _argo1 = 0; | |
4304 | char *_kwnames[] = { "self","owner","id", NULL }; | |
4305 | ||
4306 | self = self; | |
4307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4308 | return NULL; | |
4309 | if (_argo0) { | |
4310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
4313 | return NULL; | |
4314 | } | |
4315 | } | |
4316 | if (_argo1) { | |
4317 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4318 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
4320 | return NULL; | |
4321 | } | |
4322 | } | |
4323 | { | |
4268f798 | 4324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4325 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); |
f6bcfd97 | 4326 | |
4268f798 RD |
4327 | wxPyEndAllowThreads(__tstate); |
4328 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4329 | } Py_INCREF(Py_None); |
4330 | _resultobj = Py_None; | |
4331 | return _resultobj; | |
4332 | } | |
4333 | ||
4334 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
4335 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4336 | PyObject * _resultobj; | |
4337 | wxPyTimer * _arg0; | |
4338 | int _arg1 = (int ) -1; | |
4339 | int _arg2 = (int ) FALSE; | |
4340 | PyObject * _argo0 = 0; | |
4341 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
4342 | ||
4343 | self = self; | |
4344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4345 | return NULL; | |
4346 | if (_argo0) { | |
4347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
4350 | return NULL; | |
4351 | } | |
4352 | } | |
4353 | { | |
4268f798 | 4354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4355 | wxPyTimer_Start(_arg0,_arg1,_arg2); |
f6bcfd97 | 4356 | |
4268f798 RD |
4357 | wxPyEndAllowThreads(__tstate); |
4358 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4359 | } Py_INCREF(Py_None); |
4360 | _resultobj = Py_None; | |
4361 | return _resultobj; | |
4362 | } | |
4363 | ||
4364 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
4365 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4366 | PyObject * _resultobj; | |
4367 | wxPyTimer * _arg0; | |
f0261a72 RD |
4368 | PyObject * _argo0 = 0; |
4369 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4370 | |
4371 | self = self; | |
f6bcfd97 | 4372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) |
f0261a72 RD |
4373 | return NULL; |
4374 | if (_argo0) { | |
4375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { |
4377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
f0261a72 RD |
4378 | return NULL; |
4379 | } | |
4380 | } | |
4381 | { | |
4268f798 | 4382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4383 | wxPyTimer_Stop(_arg0); |
f0261a72 | 4384 | |
4268f798 RD |
4385 | wxPyEndAllowThreads(__tstate); |
4386 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4387 | } Py_INCREF(Py_None); |
4388 | _resultobj = Py_None; | |
f0261a72 RD |
4389 | return _resultobj; |
4390 | } | |
4391 | ||
b37c7e1d RD |
4392 | #define new_wxStopWatch() (new wxStopWatch()) |
4393 | static PyObject *_wrap_new_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4394 | PyObject * _resultobj; | |
4395 | wxStopWatch * _result; | |
4396 | char *_kwnames[] = { NULL }; | |
4397 | char _ptemp[128]; | |
4398 | ||
4399 | self = self; | |
4400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxStopWatch",_kwnames)) | |
4401 | return NULL; | |
4402 | { | |
4268f798 | 4403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4404 | _result = (wxStopWatch *)new_wxStopWatch(); |
b37c7e1d | 4405 | |
4268f798 RD |
4406 | wxPyEndAllowThreads(__tstate); |
4407 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4408 | } if (_result) { |
4409 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStopWatch_p"); | |
4410 | _resultobj = Py_BuildValue("s",_ptemp); | |
4411 | } else { | |
4412 | Py_INCREF(Py_None); | |
4413 | _resultobj = Py_None; | |
4414 | } | |
4415 | return _resultobj; | |
4416 | } | |
4417 | ||
68320e40 RD |
4418 | #define delete_wxStopWatch(_swigobj) (delete _swigobj) |
4419 | static PyObject *_wrap_delete_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4420 | PyObject * _resultobj; | |
4421 | wxStopWatch * _arg0; | |
4422 | PyObject * _argo0 = 0; | |
4423 | char *_kwnames[] = { "self", NULL }; | |
4424 | ||
4425 | self = self; | |
4426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxStopWatch",_kwnames,&_argo0)) | |
4427 | return NULL; | |
4428 | if (_argo0) { | |
4429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxStopWatch. Expected _wxStopWatch_p."); | |
4432 | return NULL; | |
4433 | } | |
4434 | } | |
4435 | { | |
4436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4437 | delete_wxStopWatch(_arg0); |
68320e40 RD |
4438 | |
4439 | wxPyEndAllowThreads(__tstate); | |
4440 | if (PyErr_Occurred()) return NULL; | |
4441 | } Py_INCREF(Py_None); | |
4442 | _resultobj = Py_None; | |
4443 | return _resultobj; | |
4444 | } | |
4445 | ||
b37c7e1d RD |
4446 | #define wxStopWatch_Start(_swigobj,_swigarg0) (_swigobj->Start(_swigarg0)) |
4447 | static PyObject *_wrap_wxStopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4448 | PyObject * _resultobj; | |
4449 | wxStopWatch * _arg0; | |
4450 | long _arg1 = (long ) 0; | |
4451 | PyObject * _argo0 = 0; | |
4452 | char *_kwnames[] = { "self","t", NULL }; | |
4453 | ||
4454 | self = self; | |
4455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxStopWatch_Start",_kwnames,&_argo0,&_arg1)) | |
4456 | return NULL; | |
4457 | if (_argo0) { | |
4458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Start. Expected _wxStopWatch_p."); | |
4461 | return NULL; | |
4462 | } | |
4463 | } | |
4464 | { | |
4268f798 | 4465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4466 | wxStopWatch_Start(_arg0,_arg1); |
b37c7e1d | 4467 | |
4268f798 RD |
4468 | wxPyEndAllowThreads(__tstate); |
4469 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4470 | } Py_INCREF(Py_None); |
4471 | _resultobj = Py_None; | |
4472 | return _resultobj; | |
4473 | } | |
4474 | ||
4475 | #define wxStopWatch_Pause(_swigobj) (_swigobj->Pause()) | |
4476 | static PyObject *_wrap_wxStopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4477 | PyObject * _resultobj; | |
4478 | wxStopWatch * _arg0; | |
4479 | PyObject * _argo0 = 0; | |
4480 | char *_kwnames[] = { "self", NULL }; | |
4481 | ||
4482 | self = self; | |
4483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Pause",_kwnames,&_argo0)) | |
4484 | return NULL; | |
4485 | if (_argo0) { | |
4486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Pause. Expected _wxStopWatch_p."); | |
4489 | return NULL; | |
4490 | } | |
4491 | } | |
4492 | { | |
4268f798 | 4493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4494 | wxStopWatch_Pause(_arg0); |
b37c7e1d | 4495 | |
4268f798 RD |
4496 | wxPyEndAllowThreads(__tstate); |
4497 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4498 | } Py_INCREF(Py_None); |
4499 | _resultobj = Py_None; | |
4500 | return _resultobj; | |
4501 | } | |
4502 | ||
4503 | #define wxStopWatch_Resume(_swigobj) (_swigobj->Resume()) | |
4504 | static PyObject *_wrap_wxStopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4505 | PyObject * _resultobj; | |
4506 | wxStopWatch * _arg0; | |
4507 | PyObject * _argo0 = 0; | |
4508 | char *_kwnames[] = { "self", NULL }; | |
4509 | ||
4510 | self = self; | |
4511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Resume",_kwnames,&_argo0)) | |
4512 | return NULL; | |
4513 | if (_argo0) { | |
4514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Resume. Expected _wxStopWatch_p."); | |
4517 | return NULL; | |
4518 | } | |
4519 | } | |
4520 | { | |
4268f798 | 4521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4522 | wxStopWatch_Resume(_arg0); |
b37c7e1d | 4523 | |
4268f798 RD |
4524 | wxPyEndAllowThreads(__tstate); |
4525 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4526 | } Py_INCREF(Py_None); |
4527 | _resultobj = Py_None; | |
4528 | return _resultobj; | |
4529 | } | |
4530 | ||
4531 | #define wxStopWatch_Time(_swigobj) (_swigobj->Time()) | |
4532 | static PyObject *_wrap_wxStopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4533 | PyObject * _resultobj; | |
4534 | long _result; | |
4535 | wxStopWatch * _arg0; | |
4536 | PyObject * _argo0 = 0; | |
4537 | char *_kwnames[] = { "self", NULL }; | |
4538 | ||
4539 | self = self; | |
4540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Time",_kwnames,&_argo0)) | |
4541 | return NULL; | |
4542 | if (_argo0) { | |
4543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Time. Expected _wxStopWatch_p."); | |
4546 | return NULL; | |
4547 | } | |
4548 | } | |
4549 | { | |
4268f798 | 4550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4551 | _result = (long )wxStopWatch_Time(_arg0); |
b37c7e1d | 4552 | |
4268f798 RD |
4553 | wxPyEndAllowThreads(__tstate); |
4554 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4555 | } _resultobj = Py_BuildValue("l",_result); |
4556 | return _resultobj; | |
4557 | } | |
4558 | ||
f6bcfd97 BP |
4559 | #define new_wxLog() (new wxLog()) |
4560 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4561 | PyObject * _resultobj; |
f6bcfd97 BP |
4562 | wxLog * _result; |
4563 | char *_kwnames[] = { NULL }; | |
4564 | char _ptemp[128]; | |
f0261a72 RD |
4565 | |
4566 | self = self; | |
f6bcfd97 BP |
4567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) |
4568 | return NULL; | |
f0261a72 | 4569 | { |
4268f798 | 4570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4571 | _result = (wxLog *)new_wxLog(); |
f6bcfd97 | 4572 | |
4268f798 RD |
4573 | wxPyEndAllowThreads(__tstate); |
4574 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4575 | } if (_result) { |
4576 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4577 | _resultobj = Py_BuildValue("s",_ptemp); | |
4578 | } else { | |
4579 | Py_INCREF(Py_None); | |
4580 | _resultobj = Py_None; | |
4581 | } | |
4582 | return _resultobj; | |
f0261a72 | 4583 | } |
f6bcfd97 BP |
4584 | |
4585 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4586 | PyObject * _resultobj; | |
4587 | bool _result; | |
4588 | char *_kwnames[] = { NULL }; | |
4589 | ||
4590 | self = self; | |
4591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
4592 | return NULL; | |
f0261a72 | 4593 | { |
4268f798 | 4594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4595 | _result = (bool )wxLog::IsEnabled(); |
f6bcfd97 | 4596 | |
4268f798 RD |
4597 | wxPyEndAllowThreads(__tstate); |
4598 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4599 | } _resultobj = Py_BuildValue("i",_result); |
4600 | return _resultobj; | |
f0261a72 | 4601 | } |
f6bcfd97 BP |
4602 | |
4603 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4604 | PyObject * _resultobj; | |
4605 | bool _result; | |
4606 | bool _arg0 = (bool ) TRUE; | |
4607 | int tempbool0 = (int) TRUE; | |
4608 | char *_kwnames[] = { "doIt", NULL }; | |
4609 | ||
4610 | self = self; | |
4611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
4612 | return NULL; | |
4613 | _arg0 = (bool ) tempbool0; | |
4614 | { | |
4268f798 | 4615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4616 | _result = (bool )wxLog::EnableLogging(_arg0); |
f6bcfd97 | 4617 | |
4268f798 RD |
4618 | wxPyEndAllowThreads(__tstate); |
4619 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4620 | } _resultobj = Py_BuildValue("i",_result); |
4621 | return _resultobj; | |
4622 | } | |
4623 | ||
4624 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4625 | PyObject * _resultobj; | |
4626 | wxLogLevel * _arg0; | |
c8bc7bb8 | 4627 | wxString * _arg1; |
f6bcfd97 BP |
4628 | int _arg2 = (int ) 0; |
4629 | PyObject * _argo0 = 0; | |
c8bc7bb8 | 4630 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
4631 | char *_kwnames[] = { "level","szString","t", NULL }; |
4632 | ||
4633 | self = self; | |
c8bc7bb8 | 4634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxLog_OnLog",_kwnames,&_argo0,&_obj1,&_arg2)) |
f0261a72 RD |
4635 | return NULL; |
4636 | if (_argo0) { | |
4637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogLevel_p")) { |
4639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_OnLog. Expected _wxLogLevel_p."); | |
f0261a72 RD |
4640 | return NULL; |
4641 | } | |
4642 | } | |
c8bc7bb8 RD |
4643 | { |
4644 | _arg1 = wxString_in_helper(_obj1); | |
4645 | if (_arg1 == NULL) | |
4646 | return NULL; | |
4647 | } | |
f0261a72 | 4648 | { |
4268f798 | 4649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4650 | wxLog::OnLog(*_arg0,*_arg1,_arg2); |
f0261a72 | 4651 | |
4268f798 RD |
4652 | wxPyEndAllowThreads(__tstate); |
4653 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4654 | } Py_INCREF(Py_None); |
4655 | _resultobj = Py_None; | |
c8bc7bb8 RD |
4656 | { |
4657 | if (_obj1) | |
4658 | delete _arg1; | |
4659 | } | |
f6bcfd97 | 4660 | return _resultobj; |
f0261a72 | 4661 | } |
f6bcfd97 BP |
4662 | |
4663 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
4664 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4665 | PyObject * _resultobj; | |
4666 | wxLog * _arg0; | |
4667 | PyObject * _argo0 = 0; | |
4668 | char *_kwnames[] = { "self", NULL }; | |
4669 | ||
4670 | self = self; | |
4671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
4672 | return NULL; | |
4673 | if (_argo0) { | |
4674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
4677 | return NULL; | |
4678 | } | |
4679 | } | |
f0261a72 | 4680 | { |
4268f798 | 4681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4682 | wxLog_Flush(_arg0); |
f6bcfd97 | 4683 | |
4268f798 RD |
4684 | wxPyEndAllowThreads(__tstate); |
4685 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4686 | } Py_INCREF(Py_None); |
4687 | _resultobj = Py_None; | |
f0261a72 RD |
4688 | return _resultobj; |
4689 | } | |
4690 | ||
f6bcfd97 BP |
4691 | #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages()) |
4692 | static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4693 | PyObject * _resultobj; |
f6bcfd97 BP |
4694 | bool _result; |
4695 | wxLog * _arg0; | |
f0261a72 RD |
4696 | PyObject * _argo0 = 0; |
4697 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4698 | |
4699 | self = self; | |
f6bcfd97 | 4700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0)) |
f0261a72 RD |
4701 | return NULL; |
4702 | if (_argo0) { | |
4703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p."); | |
f0261a72 RD |
4706 | return NULL; |
4707 | } | |
4708 | } | |
4709 | { | |
4268f798 | 4710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4711 | _result = (bool )wxLog_HasPendingMessages(_arg0); |
f0261a72 | 4712 | |
4268f798 RD |
4713 | wxPyEndAllowThreads(__tstate); |
4714 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 4715 | } _resultobj = Py_BuildValue("i",_result); |
f0261a72 RD |
4716 | return _resultobj; |
4717 | } | |
4718 | ||
f6bcfd97 | 4719 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4720 | PyObject * _resultobj; |
f6bcfd97 BP |
4721 | char *_kwnames[] = { NULL }; |
4722 | ||
4723 | self = self; | |
4724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4725 | return NULL; | |
4726 | { | |
4268f798 | 4727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4728 | wxLog::FlushActive(); |
f6bcfd97 | 4729 | |
4268f798 RD |
4730 | wxPyEndAllowThreads(__tstate); |
4731 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4732 | } Py_INCREF(Py_None); |
4733 | _resultobj = Py_None; | |
4734 | return _resultobj; | |
4735 | } | |
4736 | ||
4737 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4738 | PyObject * _resultobj; | |
4739 | wxLog * _result; | |
4740 | char *_kwnames[] = { NULL }; | |
4741 | char _ptemp[128]; | |
4742 | ||
4743 | self = self; | |
4744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
4745 | return NULL; | |
4746 | { | |
4268f798 | 4747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4748 | _result = (wxLog *)wxLog::GetActiveTarget(); |
f6bcfd97 | 4749 | |
4268f798 RD |
4750 | wxPyEndAllowThreads(__tstate); |
4751 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4752 | } if (_result) { |
4753 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4754 | _resultobj = Py_BuildValue("s",_ptemp); | |
4755 | } else { | |
4756 | Py_INCREF(Py_None); | |
4757 | _resultobj = Py_None; | |
4758 | } | |
4759 | return _resultobj; | |
4760 | } | |
4761 | ||
4762 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4763 | PyObject * _resultobj; | |
4764 | wxLog * _result; | |
4765 | wxLog * _arg0; | |
f0261a72 | 4766 | PyObject * _argo0 = 0; |
f6bcfd97 | 4767 | char *_kwnames[] = { "pLogger", NULL }; |
f0261a72 RD |
4768 | char _ptemp[128]; |
4769 | ||
4770 | self = self; | |
f6bcfd97 | 4771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) |
f0261a72 RD |
4772 | return NULL; |
4773 | if (_argo0) { | |
4774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
f0261a72 RD |
4777 | return NULL; |
4778 | } | |
4779 | } | |
4780 | { | |
4268f798 | 4781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4782 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); |
f0261a72 | 4783 | |
4268f798 RD |
4784 | wxPyEndAllowThreads(__tstate); |
4785 | if (PyErr_Occurred()) return NULL; | |
f0261a72 | 4786 | } if (_result) { |
f6bcfd97 | 4787 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); |
f0261a72 RD |
4788 | _resultobj = Py_BuildValue("s",_ptemp); |
4789 | } else { | |
4790 | Py_INCREF(Py_None); | |
4791 | _resultobj = Py_None; | |
4792 | } | |
4793 | return _resultobj; | |
4794 | } | |
4795 | ||
f6bcfd97 | 4796 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4797 | PyObject * _resultobj; |
f6bcfd97 BP |
4798 | char *_kwnames[] = { NULL }; |
4799 | ||
4800 | self = self; | |
4801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
4802 | return NULL; | |
4803 | { | |
4268f798 | 4804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4805 | wxLog::Suspend(); |
f6bcfd97 | 4806 | |
4268f798 RD |
4807 | wxPyEndAllowThreads(__tstate); |
4808 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4809 | } Py_INCREF(Py_None); |
4810 | _resultobj = Py_None; | |
4811 | return _resultobj; | |
4812 | } | |
4813 | ||
4814 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4815 | PyObject * _resultobj; | |
4816 | char *_kwnames[] = { NULL }; | |
4817 | ||
4818 | self = self; | |
4819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
4820 | return NULL; | |
4821 | { | |
4268f798 | 4822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4823 | wxLog::Resume(); |
f6bcfd97 | 4824 | |
4268f798 RD |
4825 | wxPyEndAllowThreads(__tstate); |
4826 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4827 | } Py_INCREF(Py_None); |
4828 | _resultobj = Py_None; | |
4829 | return _resultobj; | |
4830 | } | |
4831 | ||
f6bcfd97 BP |
4832 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { |
4833 | PyObject * _resultobj; | |
d6eacb25 RD |
4834 | bool _arg0 = (bool ) TRUE; |
4835 | int tempbool0 = (int) TRUE; | |
4836 | char *_kwnames[] = { "bVerbose", NULL }; | |
f0261a72 RD |
4837 | |
4838 | self = self; | |
d6eacb25 | 4839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_SetVerbose",_kwnames,&tempbool0)) |
f0261a72 | 4840 | return NULL; |
d6eacb25 | 4841 | _arg0 = (bool ) tempbool0; |
f0261a72 | 4842 | { |
4268f798 | 4843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d6eacb25 | 4844 | wxLog::SetVerbose(_arg0); |
f0261a72 | 4845 | |
4268f798 RD |
4846 | wxPyEndAllowThreads(__tstate); |
4847 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4848 | } Py_INCREF(Py_None); |
4849 | _resultobj = Py_None; | |
4850 | return _resultobj; | |
4851 | } | |
4852 | ||
f6bcfd97 | 4853 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4854 | PyObject * _resultobj; |
f6bcfd97 BP |
4855 | char *_kwnames[] = { NULL }; |
4856 | ||
4857 | self = self; | |
4858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
4859 | return NULL; | |
4860 | { | |
4268f798 | 4861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4862 | wxLog::DontCreateOnDemand(); |
f6bcfd97 | 4863 | |
4268f798 RD |
4864 | wxPyEndAllowThreads(__tstate); |
4865 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4866 | } Py_INCREF(Py_None); |
4867 | _resultobj = Py_None; | |
4868 | return _resultobj; | |
4869 | } | |
4870 | ||
4871 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4872 | PyObject * _resultobj; | |
4873 | wxTraceMask * _arg0; | |
f0261a72 | 4874 | PyObject * _argo0 = 0; |
f6bcfd97 | 4875 | char *_kwnames[] = { "ulMask", NULL }; |
f0261a72 RD |
4876 | |
4877 | self = self; | |
f6bcfd97 | 4878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTraceMask",_kwnames,&_argo0)) |
f0261a72 RD |
4879 | return NULL; |
4880 | if (_argo0) { | |
4881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTraceMask_p")) { |
4883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetTraceMask. Expected _wxTraceMask_p."); | |
4884 | return NULL; | |
4885 | } | |
4886 | } | |
4887 | { | |
4268f798 | 4888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4889 | wxLog::SetTraceMask(*_arg0); |
f6bcfd97 | 4890 | |
4268f798 RD |
4891 | wxPyEndAllowThreads(__tstate); |
4892 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4893 | } Py_INCREF(Py_None); |
4894 | _resultobj = Py_None; | |
4895 | return _resultobj; | |
4896 | } | |
4897 | ||
4898 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4899 | PyObject * _resultobj; | |
4900 | wxString * _arg0; | |
4901 | PyObject * _obj0 = 0; | |
4902 | char *_kwnames[] = { "str", NULL }; | |
4903 | ||
4904 | self = self; | |
4905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
4906 | return NULL; | |
4907 | { | |
c8bc7bb8 RD |
4908 | _arg0 = wxString_in_helper(_obj0); |
4909 | if (_arg0 == NULL) | |
f6bcfd97 | 4910 | return NULL; |
f6bcfd97 BP |
4911 | } |
4912 | { | |
4268f798 | 4913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4914 | wxLog::AddTraceMask(*_arg0); |
f6bcfd97 | 4915 | |
4268f798 RD |
4916 | wxPyEndAllowThreads(__tstate); |
4917 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4918 | } Py_INCREF(Py_None); |
4919 | _resultobj = Py_None; | |
4920 | { | |
4921 | if (_obj0) | |
4922 | delete _arg0; | |
4923 | } | |
4924 | return _resultobj; | |
4925 | } | |
4926 | ||
4927 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4928 | PyObject * _resultobj; | |
4929 | wxString * _arg0; | |
4930 | PyObject * _obj0 = 0; | |
4931 | char *_kwnames[] = { "str", NULL }; | |
4932 | ||
4933 | self = self; | |
4934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
f0261a72 | 4935 | return NULL; |
f0261a72 | 4936 | { |
c8bc7bb8 RD |
4937 | _arg0 = wxString_in_helper(_obj0); |
4938 | if (_arg0 == NULL) | |
185d7c3e | 4939 | return NULL; |
f0261a72 RD |
4940 | } |
4941 | { | |
4268f798 | 4942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4943 | wxLog::RemoveTraceMask(*_arg0); |
f0261a72 | 4944 | |
4268f798 RD |
4945 | wxPyEndAllowThreads(__tstate); |
4946 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4947 | } Py_INCREF(Py_None); |
4948 | _resultobj = Py_None; | |
f6bcfd97 BP |
4949 | { |
4950 | if (_obj0) | |
4951 | delete _arg0; | |
4952 | } | |
f0261a72 RD |
4953 | return _resultobj; |
4954 | } | |
4955 | ||
76bfdc78 RD |
4956 | static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { |
4957 | PyObject * _resultobj; | |
4958 | char *_kwnames[] = { NULL }; | |
4959 | ||
4960 | self = self; | |
4961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames)) | |
4962 | return NULL; | |
4963 | { | |
4268f798 | 4964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4965 | wxLog::ClearTraceMasks(); |
76bfdc78 | 4966 | |
4268f798 RD |
4967 | wxPyEndAllowThreads(__tstate); |
4968 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
4969 | } Py_INCREF(Py_None); |
4970 | _resultobj = Py_None; | |
4971 | return _resultobj; | |
4972 | } | |
4973 | ||
4974 | static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4975 | PyObject * _resultobj; | |
137b5242 RD |
4976 | wxString * _arg0; |
4977 | PyObject * _obj0 = 0; | |
76bfdc78 RD |
4978 | char *_kwnames[] = { "ts", NULL }; |
4979 | ||
4980 | self = self; | |
137b5242 | 4981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTimestamp",_kwnames,&_obj0)) |
76bfdc78 | 4982 | return NULL; |
137b5242 RD |
4983 | { |
4984 | _arg0 = wxString_in_helper(_obj0); | |
4985 | if (_arg0 == NULL) | |
4986 | return NULL; | |
4987 | } | |
76bfdc78 | 4988 | { |
4268f798 | 4989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 4990 | wxLog::SetTimestamp(*_arg0); |
76bfdc78 | 4991 | |
4268f798 RD |
4992 | wxPyEndAllowThreads(__tstate); |
4993 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
4994 | } Py_INCREF(Py_None); |
4995 | _resultobj = Py_None; | |
137b5242 RD |
4996 | { |
4997 | if (_obj0) | |
4998 | delete _arg0; | |
4999 | } | |
76bfdc78 RD |
5000 | return _resultobj; |
5001 | } | |
5002 | ||
5003 | static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5004 | PyObject * _resultobj; | |
137b5242 | 5005 | wxString * _result; |
76bfdc78 RD |
5006 | char *_kwnames[] = { NULL }; |
5007 | ||
5008 | self = self; | |
5009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames)) | |
5010 | return NULL; | |
5011 | { | |
4268f798 | 5012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 RD |
5013 | const wxString & _result_ref = wxLog::GetTimestamp(); |
5014 | _result = (wxString *) &_result_ref; | |
76bfdc78 | 5015 | |
4268f798 RD |
5016 | wxPyEndAllowThreads(__tstate); |
5017 | if (PyErr_Occurred()) return NULL; | |
137b5242 RD |
5018 | }{ |
5019 | #if wxUSE_UNICODE | |
5020 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5021 | #else | |
5022 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5023 | #endif | |
5024 | } | |
76bfdc78 RD |
5025 | return _resultobj; |
5026 | } | |
5027 | ||
f6bcfd97 BP |
5028 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) |
5029 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
a1df7a95 | 5030 | PyObject * _resultobj; |
f6bcfd97 BP |
5031 | bool _result; |
5032 | wxLog * _arg0; | |
a1df7a95 | 5033 | PyObject * _argo0 = 0; |
f6bcfd97 | 5034 | char *_kwnames[] = { "self", NULL }; |
a1df7a95 RD |
5035 | |
5036 | self = self; | |
f6bcfd97 | 5037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) |
a1df7a95 RD |
5038 | return NULL; |
5039 | if (_argo0) { | |
5040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
5042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
a1df7a95 RD |
5043 | return NULL; |
5044 | } | |
5045 | } | |
5046 | { | |
4268f798 | 5047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5048 | _result = (bool )wxLog_GetVerbose(_arg0); |
a1df7a95 | 5049 | |
4268f798 RD |
5050 | wxPyEndAllowThreads(__tstate); |
5051 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5052 | } _resultobj = Py_BuildValue("i",_result); |
a1df7a95 RD |
5053 | return _resultobj; |
5054 | } | |
5055 | ||
f6bcfd97 | 5056 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
a1df7a95 | 5057 | PyObject * _resultobj; |
f6bcfd97 BP |
5058 | wxTraceMask * _result; |
5059 | char *_kwnames[] = { NULL }; | |
5060 | char _ptemp[128]; | |
a1df7a95 RD |
5061 | |
5062 | self = self; | |
f6bcfd97 | 5063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) |
a1df7a95 | 5064 | return NULL; |
a1df7a95 | 5065 | { |
4268f798 | 5066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5067 | _result = new wxTraceMask (wxLog::GetTraceMask()); |
f6bcfd97 | 5068 | |
4268f798 RD |
5069 | wxPyEndAllowThreads(__tstate); |
5070 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5071 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTraceMask_p"); |
5072 | _resultobj = Py_BuildValue("s",_ptemp); | |
5073 | return _resultobj; | |
a1df7a95 | 5074 | } |
f6bcfd97 BP |
5075 | |
5076 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5077 | PyObject * _resultobj; | |
5078 | bool _result; | |
c8bc7bb8 RD |
5079 | wxString * _arg0; |
5080 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
5081 | char *_kwnames[] = { "mask", NULL }; |
5082 | ||
5083 | self = self; | |
c8bc7bb8 | 5084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_IsAllowedTraceMask",_kwnames,&_obj0)) |
f6bcfd97 | 5085 | return NULL; |
c8bc7bb8 RD |
5086 | { |
5087 | _arg0 = wxString_in_helper(_obj0); | |
5088 | if (_arg0 == NULL) | |
5089 | return NULL; | |
5090 | } | |
a1df7a95 | 5091 | { |
4268f798 | 5092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5093 | _result = (bool )wxLog::IsAllowedTraceMask(*_arg0); |
a1df7a95 | 5094 | |
4268f798 RD |
5095 | wxPyEndAllowThreads(__tstate); |
5096 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5097 | } _resultobj = Py_BuildValue("i",_result); |
c8bc7bb8 RD |
5098 | { |
5099 | if (_obj0) | |
5100 | delete _arg0; | |
5101 | } | |
a1df7a95 RD |
5102 | return _resultobj; |
5103 | } | |
5104 | ||
76bfdc78 RD |
5105 | static wxString wxLog_TimeStamp(wxLog *self) { |
5106 | wxString msg; | |
5107 | wxLog::TimeStamp(&msg); | |
5108 | return msg; | |
5109 | } | |
5110 | static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5111 | PyObject * _resultobj; | |
5112 | wxString * _result; | |
5113 | wxLog * _arg0; | |
5114 | PyObject * _argo0 = 0; | |
5115 | char *_kwnames[] = { "self", NULL }; | |
5116 | ||
5117 | self = self; | |
5118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0)) | |
5119 | return NULL; | |
5120 | if (_argo0) { | |
5121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p."); | |
5124 | return NULL; | |
5125 | } | |
5126 | } | |
5127 | { | |
4268f798 | 5128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5129 | _result = new wxString (wxLog_TimeStamp(_arg0)); |
76bfdc78 | 5130 | |
4268f798 RD |
5131 | wxPyEndAllowThreads(__tstate); |
5132 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 | 5133 | }{ |
c8bc7bb8 RD |
5134 | #if wxUSE_UNICODE |
5135 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5136 | #else | |
76bfdc78 | 5137 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5138 | #endif |
76bfdc78 RD |
5139 | } |
5140 | { | |
5141 | delete _result; | |
5142 | } | |
5143 | return _resultobj; | |
5144 | } | |
5145 | ||
f6bcfd97 BP |
5146 | static void *SwigwxLogStderrTowxLog(void *ptr) { |
5147 | wxLogStderr *src; | |
5148 | wxLog *dest; | |
5149 | src = (wxLogStderr *) ptr; | |
5150 | dest = (wxLog *) src; | |
5151 | return (void *) dest; | |
5152 | } | |
5153 | ||
5154 | #define new_wxLogStderr() (new wxLogStderr()) | |
5155 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5156 | PyObject * _resultobj; |
f6bcfd97 BP |
5157 | wxLogStderr * _result; |
5158 | char *_kwnames[] = { NULL }; | |
5159 | char _ptemp[128]; | |
f0261a72 RD |
5160 | |
5161 | self = self; | |
f6bcfd97 | 5162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) |
f0261a72 | 5163 | return NULL; |
f0261a72 | 5164 | { |
4268f798 | 5165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5166 | _result = (wxLogStderr *)new_wxLogStderr(); |
f0261a72 | 5167 | |
4268f798 RD |
5168 | wxPyEndAllowThreads(__tstate); |
5169 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5170 | } if (_result) { |
5171 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
5172 | _resultobj = Py_BuildValue("s",_ptemp); | |
5173 | } else { | |
5174 | Py_INCREF(Py_None); | |
5175 | _resultobj = Py_None; | |
5176 | } | |
f0261a72 RD |
5177 | return _resultobj; |
5178 | } | |
5179 | ||
f6bcfd97 BP |
5180 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { |
5181 | wxLogTextCtrl *src; | |
5182 | wxLog *dest; | |
5183 | src = (wxLogTextCtrl *) ptr; | |
5184 | dest = (wxLog *) src; | |
5185 | return (void *) dest; | |
5186 | } | |
5187 | ||
5188 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
5189 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5190 | PyObject * _resultobj; |
f6bcfd97 BP |
5191 | wxLogTextCtrl * _result; |
5192 | wxTextCtrl * _arg0; | |
f0261a72 | 5193 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5194 | char *_kwnames[] = { "pTextCtrl", NULL }; |
5195 | char _ptemp[128]; | |
f0261a72 RD |
5196 | |
5197 | self = self; | |
f6bcfd97 | 5198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) |
f0261a72 RD |
5199 | return NULL; |
5200 | if (_argo0) { | |
5201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
5203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
f0261a72 RD |
5204 | return NULL; |
5205 | } | |
5206 | } | |
5207 | { | |
4268f798 | 5208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5209 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); |
f0261a72 | 5210 | |
4268f798 RD |
5211 | wxPyEndAllowThreads(__tstate); |
5212 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5213 | } if (_result) { |
5214 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
5215 | _resultobj = Py_BuildValue("s",_ptemp); | |
5216 | } else { | |
5217 | Py_INCREF(Py_None); | |
5218 | _resultobj = Py_None; | |
5219 | } | |
f0261a72 RD |
5220 | return _resultobj; |
5221 | } | |
5222 | ||
f6bcfd97 BP |
5223 | static void *SwigwxLogGuiTowxLog(void *ptr) { |
5224 | wxLogGui *src; | |
5225 | wxLog *dest; | |
5226 | src = (wxLogGui *) ptr; | |
5227 | dest = (wxLog *) src; | |
5228 | return (void *) dest; | |
5229 | } | |
5230 | ||
5231 | #define new_wxLogGui() (new wxLogGui()) | |
5232 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5233 | PyObject * _resultobj; |
f6bcfd97 | 5234 | wxLogGui * _result; |
b1462dfa RD |
5235 | char *_kwnames[] = { NULL }; |
5236 | char _ptemp[128]; | |
5237 | ||
5238 | self = self; | |
f6bcfd97 | 5239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) |
b1462dfa RD |
5240 | return NULL; |
5241 | { | |
4268f798 | 5242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5243 | _result = (wxLogGui *)new_wxLogGui(); |
b1462dfa | 5244 | |
4268f798 RD |
5245 | wxPyEndAllowThreads(__tstate); |
5246 | if (PyErr_Occurred()) return NULL; | |
b1462dfa | 5247 | } if (_result) { |
f6bcfd97 | 5248 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); |
b1462dfa RD |
5249 | _resultobj = Py_BuildValue("s",_ptemp); |
5250 | } else { | |
5251 | Py_INCREF(Py_None); | |
5252 | _resultobj = Py_None; | |
5253 | } | |
5254 | return _resultobj; | |
5255 | } | |
5256 | ||
f6bcfd97 BP |
5257 | static void *SwigwxLogWindowTowxLog(void *ptr) { |
5258 | wxLogWindow *src; | |
5259 | wxLog *dest; | |
5260 | src = (wxLogWindow *) ptr; | |
5261 | dest = (wxLog *) src; | |
5262 | return (void *) dest; | |
5263 | } | |
5264 | ||
5265 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5266 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5267 | PyObject * _resultobj; |
f6bcfd97 BP |
5268 | wxLogWindow * _result; |
5269 | wxFrame * _arg0; | |
c8bc7bb8 | 5270 | wxString * _arg1; |
f6bcfd97 BP |
5271 | bool _arg2 = (bool ) TRUE; |
5272 | bool _arg3 = (bool ) TRUE; | |
b1462dfa | 5273 | PyObject * _argo0 = 0; |
c8bc7bb8 | 5274 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
5275 | int tempbool2 = (int) TRUE; |
5276 | int tempbool3 = (int) TRUE; | |
5277 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
5278 | char _ptemp[128]; | |
b1462dfa RD |
5279 | |
5280 | self = self; | |
c8bc7bb8 | 5281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:new_wxLogWindow",_kwnames,&_argo0,&_obj1,&tempbool2,&tempbool3)) |
b1462dfa RD |
5282 | return NULL; |
5283 | if (_argo0) { | |
5284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { |
5286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
b1462dfa RD |
5287 | return NULL; |
5288 | } | |
5289 | } | |
c8bc7bb8 RD |
5290 | { |
5291 | _arg1 = wxString_in_helper(_obj1); | |
5292 | if (_arg1 == NULL) | |
5293 | return NULL; | |
5294 | } | |
f6bcfd97 BP |
5295 | _arg2 = (bool ) tempbool2; |
5296 | _arg3 = (bool ) tempbool3; | |
b1462dfa | 5297 | { |
4268f798 | 5298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5299 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,*_arg1,_arg2,_arg3); |
b1462dfa | 5300 | |
4268f798 RD |
5301 | wxPyEndAllowThreads(__tstate); |
5302 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5303 | } if (_result) { |
5304 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
5305 | _resultobj = Py_BuildValue("s",_ptemp); | |
5306 | } else { | |
5307 | Py_INCREF(Py_None); | |
5308 | _resultobj = Py_None; | |
5309 | } | |
c8bc7bb8 RD |
5310 | { |
5311 | if (_obj1) | |
5312 | delete _arg1; | |
5313 | } | |
b1462dfa RD |
5314 | return _resultobj; |
5315 | } | |
5316 | ||
f6bcfd97 BP |
5317 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) |
5318 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5319 | PyObject * _resultobj; |
f6bcfd97 BP |
5320 | wxLogWindow * _arg0; |
5321 | bool _arg1 = (bool ) TRUE; | |
b1462dfa | 5322 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5323 | int tempbool1 = (int) TRUE; |
5324 | char *_kwnames[] = { "self","bShow", NULL }; | |
b1462dfa RD |
5325 | |
5326 | self = self; | |
f6bcfd97 | 5327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) |
b1462dfa RD |
5328 | return NULL; |
5329 | if (_argo0) { | |
5330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5333 | return NULL; |
5334 | } | |
5335 | } | |
f6bcfd97 | 5336 | _arg1 = (bool ) tempbool1; |
b1462dfa | 5337 | { |
4268f798 | 5338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5339 | wxLogWindow_Show(_arg0,_arg1); |
b1462dfa | 5340 | |
4268f798 RD |
5341 | wxPyEndAllowThreads(__tstate); |
5342 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
5343 | } Py_INCREF(Py_None); |
5344 | _resultobj = Py_None; | |
5345 | return _resultobj; | |
5346 | } | |
5347 | ||
f6bcfd97 BP |
5348 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) |
5349 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5350 | PyObject * _resultobj; |
f6bcfd97 BP |
5351 | wxFrame * _result; |
5352 | wxLogWindow * _arg0; | |
b1462dfa | 5353 | PyObject * _argo0 = 0; |
f6bcfd97 | 5354 | char *_kwnames[] = { "self", NULL }; |
b1462dfa RD |
5355 | |
5356 | self = self; | |
f6bcfd97 | 5357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) |
b1462dfa RD |
5358 | return NULL; |
5359 | if (_argo0) { | |
5360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5363 | return NULL; |
5364 | } | |
5365 | } | |
b1462dfa | 5366 | { |
4268f798 | 5367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5368 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); |
b1462dfa | 5369 | |
4268f798 RD |
5370 | wxPyEndAllowThreads(__tstate); |
5371 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 5372 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
5373 | return _resultobj; |
5374 | } | |
5375 | ||
f6bcfd97 BP |
5376 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) |
5377 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5378 | PyObject * _resultobj; |
f6bcfd97 BP |
5379 | wxLog * _result; |
5380 | wxLogWindow * _arg0; | |
b1462dfa | 5381 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5382 | char *_kwnames[] = { "self", NULL }; |
5383 | char _ptemp[128]; | |
b1462dfa RD |
5384 | |
5385 | self = self; | |
f6bcfd97 | 5386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) |
b1462dfa RD |
5387 | return NULL; |
5388 | if (_argo0) { | |
5389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5392 | return NULL; |
5393 | } | |
5394 | } | |
5395 | { | |
4268f798 | 5396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5397 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); |
b1462dfa | 5398 | |
4268f798 RD |
5399 | wxPyEndAllowThreads(__tstate); |
5400 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5401 | } if (_result) { |
5402 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5403 | _resultobj = Py_BuildValue("s",_ptemp); | |
5404 | } else { | |
5405 | Py_INCREF(Py_None); | |
5406 | _resultobj = Py_None; | |
5407 | } | |
b1462dfa RD |
5408 | return _resultobj; |
5409 | } | |
5410 | ||
f6bcfd97 BP |
5411 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) |
5412 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5413 | PyObject * _resultobj; |
f6bcfd97 BP |
5414 | bool _result; |
5415 | wxLogWindow * _arg0; | |
65dd82cb RD |
5416 | PyObject * _argo0 = 0; |
5417 | char *_kwnames[] = { "self", NULL }; | |
5418 | ||
5419 | self = self; | |
f6bcfd97 | 5420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) |
65dd82cb RD |
5421 | return NULL; |
5422 | if (_argo0) { | |
5423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5426 | return NULL; |
5427 | } | |
5428 | } | |
5429 | { | |
4268f798 | 5430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5431 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); |
65dd82cb | 5432 | |
4268f798 RD |
5433 | wxPyEndAllowThreads(__tstate); |
5434 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5435 | } _resultobj = Py_BuildValue("i",_result); |
65dd82cb RD |
5436 | return _resultobj; |
5437 | } | |
5438 | ||
f6bcfd97 BP |
5439 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) |
5440 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5441 | PyObject * _resultobj; |
f6bcfd97 BP |
5442 | wxLogWindow * _arg0; |
5443 | bool _arg1; | |
65dd82cb | 5444 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5445 | int tempbool1; |
5446 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
65dd82cb RD |
5447 | |
5448 | self = self; | |
f6bcfd97 | 5449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) |
65dd82cb RD |
5450 | return NULL; |
5451 | if (_argo0) { | |
5452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5455 | return NULL; |
5456 | } | |
5457 | } | |
f6bcfd97 | 5458 | _arg1 = (bool ) tempbool1; |
65dd82cb | 5459 | { |
4268f798 | 5460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5461 | wxLogWindow_PassMessages(_arg0,_arg1); |
65dd82cb | 5462 | |
4268f798 RD |
5463 | wxPyEndAllowThreads(__tstate); |
5464 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5465 | } Py_INCREF(Py_None); |
5466 | _resultobj = Py_None; | |
65dd82cb RD |
5467 | return _resultobj; |
5468 | } | |
5469 | ||
76bfdc78 RD |
5470 | static void *SwigwxLogChainTowxLog(void *ptr) { |
5471 | wxLogChain *src; | |
5472 | wxLog *dest; | |
5473 | src = (wxLogChain *) ptr; | |
5474 | dest = (wxLog *) src; | |
5475 | return (void *) dest; | |
5476 | } | |
5477 | ||
5478 | #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0)) | |
5479 | static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5480 | PyObject * _resultobj; | |
5481 | wxLogChain * _result; | |
5482 | wxLog * _arg0; | |
5483 | PyObject * _argo0 = 0; | |
5484 | char *_kwnames[] = { "logger", NULL }; | |
5485 | char _ptemp[128]; | |
5486 | ||
5487 | self = self; | |
5488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0)) | |
5489 | return NULL; | |
5490 | if (_argo0) { | |
5491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p."); | |
5494 | return NULL; | |
5495 | } | |
5496 | } | |
5497 | { | |
4268f798 | 5498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5499 | _result = (wxLogChain *)new_wxLogChain(_arg0); |
76bfdc78 | 5500 | |
4268f798 RD |
5501 | wxPyEndAllowThreads(__tstate); |
5502 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5503 | } if (_result) { |
5504 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p"); | |
5505 | _resultobj = Py_BuildValue("s",_ptemp); | |
5506 | } else { | |
5507 | Py_INCREF(Py_None); | |
5508 | _resultobj = Py_None; | |
5509 | } | |
5510 | return _resultobj; | |
5511 | } | |
5512 | ||
5513 | #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0)) | |
5514 | static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5515 | PyObject * _resultobj; | |
5516 | wxLogChain * _arg0; | |
5517 | wxLog * _arg1; | |
5518 | PyObject * _argo0 = 0; | |
5519 | PyObject * _argo1 = 0; | |
5520 | char *_kwnames[] = { "self","logger", NULL }; | |
5521 | ||
5522 | self = self; | |
5523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1)) | |
5524 | return NULL; | |
5525 | if (_argo0) { | |
5526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p."); | |
5529 | return NULL; | |
5530 | } | |
5531 | } | |
5532 | if (_argo1) { | |
5533 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5534 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) { | |
5535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p."); | |
5536 | return NULL; | |
5537 | } | |
5538 | } | |
5539 | { | |
4268f798 | 5540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5541 | wxLogChain_SetLog(_arg0,_arg1); |
76bfdc78 | 5542 | |
4268f798 RD |
5543 | wxPyEndAllowThreads(__tstate); |
5544 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5545 | } Py_INCREF(Py_None); |
5546 | _resultobj = Py_None; | |
5547 | return _resultobj; | |
5548 | } | |
5549 | ||
5550 | #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5551 | static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5552 | PyObject * _resultobj; | |
5553 | wxLogChain * _arg0; | |
5554 | bool _arg1; | |
5555 | PyObject * _argo0 = 0; | |
5556 | int tempbool1; | |
5557 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5558 | ||
5559 | self = self; | |
5560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5561 | return NULL; | |
5562 | if (_argo0) { | |
5563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p."); | |
5566 | return NULL; | |
5567 | } | |
5568 | } | |
5569 | _arg1 = (bool ) tempbool1; | |
5570 | { | |
4268f798 | 5571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5572 | wxLogChain_PassMessages(_arg0,_arg1); |
76bfdc78 | 5573 | |
4268f798 RD |
5574 | wxPyEndAllowThreads(__tstate); |
5575 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5576 | } Py_INCREF(Py_None); |
5577 | _resultobj = Py_None; | |
5578 | return _resultobj; | |
5579 | } | |
5580 | ||
5581 | #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5582 | static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5583 | PyObject * _resultobj; | |
5584 | bool _result; | |
5585 | wxLogChain * _arg0; | |
5586 | PyObject * _argo0 = 0; | |
5587 | char *_kwnames[] = { "self", NULL }; | |
5588 | ||
5589 | self = self; | |
5590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0)) | |
5591 | return NULL; | |
5592 | if (_argo0) { | |
5593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p."); | |
5596 | return NULL; | |
5597 | } | |
5598 | } | |
5599 | { | |
4268f798 | 5600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5601 | _result = (bool )wxLogChain_IsPassingMessages(_arg0); |
76bfdc78 | 5602 | |
4268f798 RD |
5603 | wxPyEndAllowThreads(__tstate); |
5604 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5605 | } _resultobj = Py_BuildValue("i",_result); |
5606 | return _resultobj; | |
5607 | } | |
5608 | ||
5609 | #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5610 | static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5611 | PyObject * _resultobj; | |
5612 | wxLog * _result; | |
5613 | wxLogChain * _arg0; | |
5614 | PyObject * _argo0 = 0; | |
5615 | char *_kwnames[] = { "self", NULL }; | |
5616 | char _ptemp[128]; | |
5617 | ||
5618 | self = self; | |
5619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0)) | |
5620 | return NULL; | |
5621 | if (_argo0) { | |
5622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p."); | |
5625 | return NULL; | |
5626 | } | |
5627 | } | |
5628 | { | |
4268f798 | 5629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5630 | _result = (wxLog *)wxLogChain_GetOldLog(_arg0); |
76bfdc78 | 5631 | |
4268f798 RD |
5632 | wxPyEndAllowThreads(__tstate); |
5633 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5634 | } if (_result) { |
5635 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5636 | _resultobj = Py_BuildValue("s",_ptemp); | |
5637 | } else { | |
5638 | Py_INCREF(Py_None); | |
5639 | _resultobj = Py_None; | |
5640 | } | |
5641 | return _resultobj; | |
5642 | } | |
5643 | ||
19e30148 RD |
5644 | #define new_wxLogNull() (new wxLogNull()) |
5645 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5646 | PyObject * _resultobj; | |
5647 | wxLogNull * _result; | |
5648 | char *_kwnames[] = { NULL }; | |
5649 | char _ptemp[128]; | |
5650 | ||
5651 | self = self; | |
5652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) | |
5653 | return NULL; | |
5654 | { | |
5655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5656 | _result = (wxLogNull *)new_wxLogNull(); | |
5657 | ||
5658 | wxPyEndAllowThreads(__tstate); | |
5659 | if (PyErr_Occurred()) return NULL; | |
5660 | } if (_result) { | |
5661 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); | |
5662 | _resultobj = Py_BuildValue("s",_ptemp); | |
5663 | } else { | |
5664 | Py_INCREF(Py_None); | |
5665 | _resultobj = Py_None; | |
5666 | } | |
5667 | return _resultobj; | |
5668 | } | |
5669 | ||
5670 | #define delete_wxLogNull(_swigobj) (delete _swigobj) | |
5671 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5672 | PyObject * _resultobj; | |
5673 | wxLogNull * _arg0; | |
5674 | PyObject * _argo0 = 0; | |
5675 | char *_kwnames[] = { "self", NULL }; | |
5676 | ||
5677 | self = self; | |
5678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) | |
5679 | return NULL; | |
5680 | if (_argo0) { | |
5681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { | |
5683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
5684 | return NULL; | |
5685 | } | |
5686 | } | |
5687 | { | |
5688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5689 | delete_wxLogNull(_arg0); | |
5690 | ||
5691 | wxPyEndAllowThreads(__tstate); | |
5692 | if (PyErr_Occurred()) return NULL; | |
5693 | } Py_INCREF(Py_None); | |
5694 | _resultobj = Py_None; | |
5695 | return _resultobj; | |
5696 | } | |
5697 | ||
76bfdc78 RD |
5698 | static void *SwigwxPyLogTowxLog(void *ptr) { |
5699 | wxPyLog *src; | |
5700 | wxLog *dest; | |
5701 | src = (wxPyLog *) ptr; | |
5702 | dest = (wxLog *) src; | |
5703 | return (void *) dest; | |
5704 | } | |
5705 | ||
5706 | #define new_wxPyLog() (new wxPyLog()) | |
5707 | static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5708 | PyObject * _resultobj; | |
5709 | wxPyLog * _result; | |
5710 | char *_kwnames[] = { NULL }; | |
5711 | char _ptemp[128]; | |
5712 | ||
5713 | self = self; | |
5714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames)) | |
5715 | return NULL; | |
5716 | { | |
4268f798 | 5717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5718 | _result = (wxPyLog *)new_wxPyLog(); |
76bfdc78 | 5719 | |
4268f798 RD |
5720 | wxPyEndAllowThreads(__tstate); |
5721 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5722 | } if (_result) { |
5723 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p"); | |
5724 | _resultobj = Py_BuildValue("s",_ptemp); | |
5725 | } else { | |
5726 | Py_INCREF(Py_None); | |
5727 | _resultobj = Py_None; | |
5728 | } | |
5729 | return _resultobj; | |
5730 | } | |
5731 | ||
0122b7e3 RD |
5732 | #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
5733 | static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
76bfdc78 RD |
5734 | PyObject * _resultobj; |
5735 | wxPyLog * _arg0; | |
5736 | PyObject * _arg1; | |
5737 | PyObject * _arg2; | |
5738 | PyObject * _argo0 = 0; | |
5739 | PyObject * _obj1 = 0; | |
5740 | PyObject * _obj2 = 0; | |
5741 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5742 | ||
5743 | self = self; | |
0122b7e3 | 5744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
76bfdc78 RD |
5745 | return NULL; |
5746 | if (_argo0) { | |
5747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
0122b7e3 | 5749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p."); |
76bfdc78 RD |
5750 | return NULL; |
5751 | } | |
5752 | } | |
5753 | { | |
5754 | _arg1 = _obj1; | |
5755 | } | |
5756 | { | |
5757 | _arg2 = _obj2; | |
5758 | } | |
5759 | { | |
4268f798 | 5760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5761 | wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2); |
76bfdc78 | 5762 | |
4268f798 RD |
5763 | wxPyEndAllowThreads(__tstate); |
5764 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5765 | } Py_INCREF(Py_None); |
5766 | _resultobj = Py_None; | |
5767 | return _resultobj; | |
5768 | } | |
5769 | ||
5770 | static void wxPyLog_Destroy(wxPyLog *self) { delete self; } | |
5771 | static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5772 | PyObject * _resultobj; | |
5773 | wxPyLog * _arg0; | |
5774 | PyObject * _argo0 = 0; | |
5775 | char *_kwnames[] = { "self", NULL }; | |
5776 | ||
5777 | self = self; | |
5778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0)) | |
5779 | return NULL; | |
5780 | if (_argo0) { | |
5781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p."); | |
5784 | return NULL; | |
5785 | } | |
5786 | } | |
5787 | { | |
4268f798 | 5788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5789 | wxPyLog_Destroy(_arg0); |
76bfdc78 | 5790 | |
4268f798 RD |
5791 | wxPyEndAllowThreads(__tstate); |
5792 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5793 | } Py_INCREF(Py_None); |
5794 | _resultobj = Py_None; | |
5795 | return _resultobj; | |
5796 | } | |
5797 | ||
c368d904 RD |
5798 | static void *SwigwxProcessEventTowxEvent(void *ptr) { |
5799 | wxProcessEvent *src; | |
5800 | wxEvent *dest; | |
5801 | src = (wxProcessEvent *) ptr; | |
5802 | dest = (wxEvent *) src; | |
5803 | return (void *) dest; | |
5804 | } | |
5805 | ||
9416aa89 RD |
5806 | static void *SwigwxProcessEventTowxObject(void *ptr) { |
5807 | wxProcessEvent *src; | |
5808 | wxObject *dest; | |
5809 | src = (wxProcessEvent *) ptr; | |
5810 | dest = (wxObject *) src; | |
5811 | return (void *) dest; | |
5812 | } | |
5813 | ||
c368d904 RD |
5814 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) |
5815 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5816 | PyObject * _resultobj; | |
5817 | wxProcessEvent * _result; | |
5818 | int _arg0 = (int ) 0; | |
5819 | int _arg1 = (int ) 0; | |
5820 | int _arg2 = (int ) 0; | |
5821 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
5822 | char _ptemp[128]; | |
5823 | ||
5824 | self = self; | |
5825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
5826 | return NULL; | |
5827 | { | |
4268f798 | 5828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5829 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); |
c368d904 | 5830 | |
4268f798 RD |
5831 | wxPyEndAllowThreads(__tstate); |
5832 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5833 | } if (_result) { |
5834 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
5835 | _resultobj = Py_BuildValue("s",_ptemp); | |
5836 | } else { | |
5837 | Py_INCREF(Py_None); | |
5838 | _resultobj = Py_None; | |
5839 | } | |
5840 | return _resultobj; | |
5841 | } | |
5842 | ||
5843 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
5844 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5845 | PyObject * _resultobj; | |
5846 | int _result; | |
5847 | wxProcessEvent * _arg0; | |
5848 | PyObject * _argo0 = 0; | |
5849 | char *_kwnames[] = { "self", NULL }; | |
5850 | ||
5851 | self = self; | |
5852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
5853 | return NULL; | |
5854 | if (_argo0) { | |
5855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
5858 | return NULL; | |
5859 | } | |
5860 | } | |
5861 | { | |
4268f798 | 5862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5863 | _result = (int )wxProcessEvent_GetPid(_arg0); |
c368d904 | 5864 | |
4268f798 RD |
5865 | wxPyEndAllowThreads(__tstate); |
5866 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5867 | } _resultobj = Py_BuildValue("i",_result); |
5868 | return _resultobj; | |
5869 | } | |
5870 | ||
5871 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
5872 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5873 | PyObject * _resultobj; | |
5874 | int _result; | |
5875 | wxProcessEvent * _arg0; | |
5876 | PyObject * _argo0 = 0; | |
5877 | char *_kwnames[] = { "self", NULL }; | |
5878 | ||
5879 | self = self; | |
5880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
5881 | return NULL; | |
5882 | if (_argo0) { | |
5883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
5886 | return NULL; | |
5887 | } | |
5888 | } | |
5889 | { | |
4268f798 | 5890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5891 | _result = (int )wxProcessEvent_GetExitCode(_arg0); |
c368d904 | 5892 | |
4268f798 RD |
5893 | wxPyEndAllowThreads(__tstate); |
5894 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5895 | } _resultobj = Py_BuildValue("i",_result); |
5896 | return _resultobj; | |
5897 | } | |
5898 | ||
5899 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
5900 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5901 | PyObject * _resultobj; | |
5902 | int _result; | |
5903 | wxProcessEvent * _arg0; | |
5904 | int _arg1; | |
5905 | PyObject * _argo0 = 0; | |
5906 | char *_kwnames[] = { "self","m_pid", NULL }; | |
5907 | ||
5908 | self = self; | |
5909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
5910 | return NULL; | |
5911 | if (_argo0) { | |
5912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
5915 | return NULL; | |
5916 | } | |
5917 | } | |
5918 | { | |
4268f798 | 5919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5920 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); |
c368d904 | 5921 | |
4268f798 RD |
5922 | wxPyEndAllowThreads(__tstate); |
5923 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5924 | } _resultobj = Py_BuildValue("i",_result); |
5925 | return _resultobj; | |
5926 | } | |
5927 | ||
5928 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
5929 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5930 | PyObject * _resultobj; | |
5931 | int _result; | |
5932 | wxProcessEvent * _arg0; | |
5933 | PyObject * _argo0 = 0; | |
5934 | char *_kwnames[] = { "self", NULL }; | |
5935 | ||
5936 | self = self; | |
5937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
5938 | return NULL; | |
5939 | if (_argo0) { | |
5940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
5943 | return NULL; | |
5944 | } | |
5945 | } | |
5946 | { | |
4268f798 | 5947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5948 | _result = (int )wxProcessEvent_m_pid_get(_arg0); |
c368d904 | 5949 | |
4268f798 RD |
5950 | wxPyEndAllowThreads(__tstate); |
5951 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5952 | } _resultobj = Py_BuildValue("i",_result); |
5953 | return _resultobj; | |
5954 | } | |
5955 | ||
5956 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
5957 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5958 | PyObject * _resultobj; | |
5959 | int _result; | |
5960 | wxProcessEvent * _arg0; | |
5961 | int _arg1; | |
5962 | PyObject * _argo0 = 0; | |
5963 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
5964 | ||
5965 | self = self; | |
5966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
5967 | return NULL; | |
5968 | if (_argo0) { | |
5969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
5972 | return NULL; | |
5973 | } | |
5974 | } | |
5975 | { | |
4268f798 | 5976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5977 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); |
c368d904 | 5978 | |
4268f798 RD |
5979 | wxPyEndAllowThreads(__tstate); |
5980 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5981 | } _resultobj = Py_BuildValue("i",_result); |
5982 | return _resultobj; | |
5983 | } | |
5984 | ||
5985 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
5986 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5987 | PyObject * _resultobj; | |
5988 | int _result; | |
5989 | wxProcessEvent * _arg0; | |
5990 | PyObject * _argo0 = 0; | |
5991 | char *_kwnames[] = { "self", NULL }; | |
5992 | ||
5993 | self = self; | |
5994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
5995 | return NULL; | |
5996 | if (_argo0) { | |
5997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
6000 | return NULL; | |
6001 | } | |
6002 | } | |
6003 | { | |
4268f798 | 6004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6005 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); |
c368d904 | 6006 | |
4268f798 RD |
6007 | wxPyEndAllowThreads(__tstate); |
6008 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6009 | } _resultobj = Py_BuildValue("i",_result); |
6010 | return _resultobj; | |
6011 | } | |
6012 | ||
6013 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
6014 | wxPyProcess *src; | |
6015 | wxEvtHandler *dest; | |
6016 | src = (wxPyProcess *) ptr; | |
6017 | dest = (wxEvtHandler *) src; | |
6018 | return (void *) dest; | |
6019 | } | |
6020 | ||
9416aa89 RD |
6021 | static void *SwigwxPyProcessTowxObject(void *ptr) { |
6022 | wxPyProcess *src; | |
6023 | wxObject *dest; | |
6024 | src = (wxPyProcess *) ptr; | |
6025 | dest = (wxObject *) src; | |
6026 | return (void *) dest; | |
6027 | } | |
6028 | ||
c368d904 RD |
6029 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) |
6030 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6031 | PyObject * _resultobj; | |
6032 | wxPyProcess * _result; | |
6033 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
6034 | int _arg1 = (int ) -1; | |
6035 | PyObject * _argo0 = 0; | |
6036 | char *_kwnames[] = { "parent","id", NULL }; | |
6037 | char _ptemp[128]; | |
6038 | ||
6039 | self = self; | |
6040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
6041 | return NULL; | |
6042 | if (_argo0) { | |
6043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
6045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
6046 | return NULL; | |
6047 | } | |
6048 | } | |
6049 | { | |
4268f798 | 6050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6051 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); |
c368d904 | 6052 | |
4268f798 RD |
6053 | wxPyEndAllowThreads(__tstate); |
6054 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6055 | } if (_result) { |
6056 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
6057 | _resultobj = Py_BuildValue("s",_ptemp); | |
6058 | } else { | |
6059 | Py_INCREF(Py_None); | |
6060 | _resultobj = Py_None; | |
6061 | } | |
6062 | return _resultobj; | |
6063 | } | |
6064 | ||
6065 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
6066 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6067 | PyObject * _resultobj; | |
6068 | wxPyProcess * _arg0; | |
6069 | PyObject * _argo0 = 0; | |
6070 | char *_kwnames[] = { "self", NULL }; | |
6071 | ||
6072 | self = self; | |
6073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
6074 | return NULL; | |
6075 | if (_argo0) { | |
6076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
6079 | return NULL; | |
6080 | } | |
6081 | } | |
6082 | { | |
4268f798 | 6083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6084 | wxPyProcess_Destroy(_arg0); |
c368d904 | 6085 | |
4268f798 RD |
6086 | wxPyEndAllowThreads(__tstate); |
6087 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6088 | } Py_INCREF(Py_None); |
6089 | _resultobj = Py_None; | |
6090 | return _resultobj; | |
6091 | } | |
6092 | ||
0122b7e3 RD |
6093 | #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6094 | static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c368d904 RD |
6095 | PyObject * _resultobj; |
6096 | wxPyProcess * _arg0; | |
6097 | PyObject * _arg1; | |
6098 | PyObject * _arg2; | |
6099 | PyObject * _argo0 = 0; | |
6100 | PyObject * _obj1 = 0; | |
6101 | PyObject * _obj2 = 0; | |
6102 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6103 | ||
6104 | self = self; | |
0122b7e3 | 6105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
c368d904 RD |
6106 | return NULL; |
6107 | if (_argo0) { | |
6108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
0122b7e3 | 6110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p."); |
c368d904 RD |
6111 | return NULL; |
6112 | } | |
6113 | } | |
6114 | { | |
6115 | _arg1 = _obj1; | |
6116 | } | |
6117 | { | |
6118 | _arg2 = _obj2; | |
6119 | } | |
6120 | { | |
4268f798 | 6121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6122 | wxProcess__setCallbackInfo(_arg0,_arg1,_arg2); |
c368d904 | 6123 | |
4268f798 RD |
6124 | wxPyEndAllowThreads(__tstate); |
6125 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6126 | } Py_INCREF(Py_None); |
6127 | _resultobj = Py_None; | |
6128 | return _resultobj; | |
6129 | } | |
6130 | ||
6131 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
6132 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6133 | PyObject * _resultobj; | |
6134 | wxPyProcess * _arg0; | |
6135 | int _arg1; | |
6136 | int _arg2; | |
6137 | PyObject * _argo0 = 0; | |
6138 | char *_kwnames[] = { "self","pid","status", NULL }; | |
6139 | ||
6140 | self = self; | |
6141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6142 | return NULL; | |
6143 | if (_argo0) { | |
6144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
6147 | return NULL; | |
6148 | } | |
6149 | } | |
6150 | { | |
4268f798 | 6151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6152 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); |
c368d904 | 6153 | |
4268f798 RD |
6154 | wxPyEndAllowThreads(__tstate); |
6155 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6156 | } Py_INCREF(Py_None); |
6157 | _resultobj = Py_None; | |
6158 | return _resultobj; | |
6159 | } | |
6160 | ||
6161 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
6162 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6163 | PyObject * _resultobj; | |
6164 | wxPyProcess * _arg0; | |
6165 | PyObject * _argo0 = 0; | |
6166 | char *_kwnames[] = { "self", NULL }; | |
6167 | ||
6168 | self = self; | |
6169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
6170 | return NULL; | |
6171 | if (_argo0) { | |
6172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
6175 | return NULL; | |
6176 | } | |
6177 | } | |
6178 | { | |
4268f798 | 6179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6180 | wxProcess_Redirect(_arg0); |
c368d904 | 6181 | |
4268f798 RD |
6182 | wxPyEndAllowThreads(__tstate); |
6183 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6184 | } Py_INCREF(Py_None); |
6185 | _resultobj = Py_None; | |
6186 | return _resultobj; | |
6187 | } | |
6188 | ||
6189 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
6190 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6191 | PyObject * _resultobj; | |
6192 | bool _result; | |
6193 | wxPyProcess * _arg0; | |
6194 | PyObject * _argo0 = 0; | |
6195 | char *_kwnames[] = { "self", NULL }; | |
6196 | ||
6197 | self = self; | |
6198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
6199 | return NULL; | |
6200 | if (_argo0) { | |
6201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
6204 | return NULL; | |
6205 | } | |
6206 | } | |
6207 | { | |
4268f798 | 6208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6209 | _result = (bool )wxProcess_IsRedirected(_arg0); |
c368d904 | 6210 | |
4268f798 RD |
6211 | wxPyEndAllowThreads(__tstate); |
6212 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6213 | } _resultobj = Py_BuildValue("i",_result); |
6214 | return _resultobj; | |
6215 | } | |
6216 | ||
6217 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
6218 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6219 | PyObject * _resultobj; | |
6220 | wxPyProcess * _arg0; | |
6221 | PyObject * _argo0 = 0; | |
6222 | char *_kwnames[] = { "self", NULL }; | |
6223 | ||
6224 | self = self; | |
6225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
6226 | return NULL; | |
6227 | if (_argo0) { | |
6228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
6231 | return NULL; | |
6232 | } | |
6233 | } | |
6234 | { | |
4268f798 | 6235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6236 | wxProcess_Detach(_arg0); |
c368d904 | 6237 | |
4268f798 RD |
6238 | wxPyEndAllowThreads(__tstate); |
6239 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6240 | } Py_INCREF(Py_None); |
6241 | _resultobj = Py_None; | |
6242 | return _resultobj; | |
6243 | } | |
6244 | ||
6245 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
6246 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6247 | PyObject * _resultobj; | |
6248 | wxInputStream * _result; | |
6249 | wxPyProcess * _arg0; | |
6250 | PyObject * _argo0 = 0; | |
6251 | char *_kwnames[] = { "self", NULL }; | |
6252 | ||
6253 | self = self; | |
6254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
6255 | return NULL; | |
6256 | if (_argo0) { | |
6257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
6260 | return NULL; | |
6261 | } | |
6262 | } | |
6263 | { | |
4268f798 | 6264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6265 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); |
c368d904 | 6266 | |
4268f798 RD |
6267 | wxPyEndAllowThreads(__tstate); |
6268 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6269 | }{ |
6270 | wxPyInputStream * _ptr = NULL; | |
6271 | ||
6272 | if (_result) { | |
6273 | _ptr = new wxPyInputStream(_result); | |
6274 | } | |
9416aa89 | 6275 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6276 | } |
6277 | return _resultobj; | |
6278 | } | |
6279 | ||
6280 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
6281 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6282 | PyObject * _resultobj; | |
6283 | wxInputStream * _result; | |
6284 | wxPyProcess * _arg0; | |
6285 | PyObject * _argo0 = 0; | |
6286 | char *_kwnames[] = { "self", NULL }; | |
6287 | ||
6288 | self = self; | |
6289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
6290 | return NULL; | |
6291 | if (_argo0) { | |
6292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
6295 | return NULL; | |
6296 | } | |
6297 | } | |
6298 | { | |
4268f798 | 6299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6300 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); |
c368d904 | 6301 | |
4268f798 RD |
6302 | wxPyEndAllowThreads(__tstate); |
6303 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6304 | }{ |
6305 | wxPyInputStream * _ptr = NULL; | |
6306 | ||
6307 | if (_result) { | |
6308 | _ptr = new wxPyInputStream(_result); | |
6309 | } | |
9416aa89 | 6310 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6311 | } |
6312 | return _resultobj; | |
6313 | } | |
6314 | ||
6315 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
6316 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6317 | PyObject * _resultobj; | |
6318 | wxOutputStream * _result; | |
6319 | wxPyProcess * _arg0; | |
6320 | PyObject * _argo0 = 0; | |
6321 | char *_kwnames[] = { "self", NULL }; | |
6322 | char _ptemp[128]; | |
6323 | ||
6324 | self = self; | |
6325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
6326 | return NULL; | |
6327 | if (_argo0) { | |
6328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
6331 | return NULL; | |
6332 | } | |
6333 | } | |
6334 | { | |
4268f798 | 6335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6336 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); |
c368d904 | 6337 | |
4268f798 RD |
6338 | wxPyEndAllowThreads(__tstate); |
6339 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6340 | } if (_result) { |
6341 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
6342 | _resultobj = Py_BuildValue("s",_ptemp); | |
6343 | } else { | |
6344 | Py_INCREF(Py_None); | |
6345 | _resultobj = Py_None; | |
6346 | } | |
6347 | return _resultobj; | |
6348 | } | |
6349 | ||
6350 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
6351 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6352 | PyObject * _resultobj; | |
6353 | wxPyProcess * _arg0; | |
6354 | PyObject * _argo0 = 0; | |
6355 | char *_kwnames[] = { "self", NULL }; | |
6356 | ||
6357 | self = self; | |
6358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
6359 | return NULL; | |
6360 | if (_argo0) { | |
6361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
6364 | return NULL; | |
6365 | } | |
6366 | } | |
6367 | { | |
4268f798 | 6368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6369 | wxProcess_CloseOutput(_arg0); |
c368d904 | 6370 | |
4268f798 RD |
6371 | wxPyEndAllowThreads(__tstate); |
6372 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6373 | } Py_INCREF(Py_None); |
6374 | _resultobj = Py_None; | |
6375 | return _resultobj; | |
6376 | } | |
6377 | ||
9416aa89 RD |
6378 | static void *SwigwxJoystickTowxObject(void *ptr) { |
6379 | wxJoystick *src; | |
6380 | wxObject *dest; | |
6381 | src = (wxJoystick *) ptr; | |
6382 | dest = (wxObject *) src; | |
6383 | return (void *) dest; | |
6384 | } | |
6385 | ||
185d7c3e RD |
6386 | #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0)) |
6387 | static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6388 | PyObject * _resultobj; | |
6389 | wxJoystick * _result; | |
6390 | int _arg0 = (int ) wxJOYSTICK1; | |
6391 | char *_kwnames[] = { "joystick", NULL }; | |
6392 | char _ptemp[128]; | |
6393 | ||
6394 | self = self; | |
6395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0)) | |
6396 | return NULL; | |
6397 | { | |
4268f798 | 6398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6399 | _result = (wxJoystick *)new_wxJoystick(_arg0); |
185d7c3e | 6400 | |
4268f798 RD |
6401 | wxPyEndAllowThreads(__tstate); |
6402 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6403 | } if (_result) { |
6404 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p"); | |
6405 | _resultobj = Py_BuildValue("s",_ptemp); | |
6406 | } else { | |
6407 | Py_INCREF(Py_None); | |
6408 | _resultobj = Py_None; | |
6409 | } | |
6410 | return _resultobj; | |
6411 | } | |
6412 | ||
ac346f50 RD |
6413 | #define delete_wxJoystick(_swigobj) (delete _swigobj) |
6414 | static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6415 | PyObject * _resultobj; | |
6416 | wxJoystick * _arg0; | |
6417 | PyObject * _argo0 = 0; | |
6418 | char *_kwnames[] = { "self", NULL }; | |
6419 | ||
6420 | self = self; | |
6421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0)) | |
6422 | return NULL; | |
6423 | if (_argo0) { | |
6424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p."); | |
6427 | return NULL; | |
6428 | } | |
6429 | } | |
6430 | { | |
4268f798 | 6431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6432 | delete_wxJoystick(_arg0); |
ac346f50 | 6433 | |
4268f798 RD |
6434 | wxPyEndAllowThreads(__tstate); |
6435 | if (PyErr_Occurred()) return NULL; | |
ac346f50 RD |
6436 | } Py_INCREF(Py_None); |
6437 | _resultobj = Py_None; | |
6438 | return _resultobj; | |
6439 | } | |
6440 | ||
185d7c3e RD |
6441 | #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition()) |
6442 | static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6443 | PyObject * _resultobj; | |
6444 | wxPoint * _result; | |
6445 | wxJoystick * _arg0; | |
6446 | PyObject * _argo0 = 0; | |
6447 | char *_kwnames[] = { "self", NULL }; | |
6448 | char _ptemp[128]; | |
6449 | ||
6450 | self = self; | |
6451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0)) | |
6452 | return NULL; | |
6453 | if (_argo0) { | |
6454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p."); | |
6457 | return NULL; | |
6458 | } | |
6459 | } | |
6460 | { | |
4268f798 | 6461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6462 | _result = new wxPoint (wxJoystick_GetPosition(_arg0)); |
185d7c3e | 6463 | |
4268f798 RD |
6464 | wxPyEndAllowThreads(__tstate); |
6465 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6466 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
6467 | _resultobj = Py_BuildValue("s",_ptemp); | |
6468 | return _resultobj; | |
6469 | } | |
6470 | ||
6471 | #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition()) | |
6472 | static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6473 | PyObject * _resultobj; | |
6474 | int _result; | |
6475 | wxJoystick * _arg0; | |
6476 | PyObject * _argo0 = 0; | |
6477 | char *_kwnames[] = { "self", NULL }; | |
6478 | ||
6479 | self = self; | |
6480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0)) | |
6481 | return NULL; | |
6482 | if (_argo0) { | |
6483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p."); | |
6486 | return NULL; | |
6487 | } | |
6488 | } | |
6489 | { | |
4268f798 | 6490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6491 | _result = (int )wxJoystick_GetZPosition(_arg0); |
185d7c3e | 6492 | |
4268f798 RD |
6493 | wxPyEndAllowThreads(__tstate); |
6494 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6495 | } _resultobj = Py_BuildValue("i",_result); |
6496 | return _resultobj; | |
6497 | } | |
6498 | ||
6499 | #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState()) | |
6500 | static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6501 | PyObject * _resultobj; | |
6502 | int _result; | |
6503 | wxJoystick * _arg0; | |
6504 | PyObject * _argo0 = 0; | |
6505 | char *_kwnames[] = { "self", NULL }; | |
6506 | ||
6507 | self = self; | |
6508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0)) | |
6509 | return NULL; | |
6510 | if (_argo0) { | |
6511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p."); | |
6514 | return NULL; | |
6515 | } | |
6516 | } | |
6517 | { | |
4268f798 | 6518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6519 | _result = (int )wxJoystick_GetButtonState(_arg0); |
185d7c3e | 6520 | |
4268f798 RD |
6521 | wxPyEndAllowThreads(__tstate); |
6522 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6523 | } _resultobj = Py_BuildValue("i",_result); |
6524 | return _resultobj; | |
6525 | } | |
6526 | ||
6527 | #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition()) | |
6528 | static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6529 | PyObject * _resultobj; | |
6530 | int _result; | |
6531 | wxJoystick * _arg0; | |
6532 | PyObject * _argo0 = 0; | |
6533 | char *_kwnames[] = { "self", NULL }; | |
6534 | ||
6535 | self = self; | |
6536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0)) | |
6537 | return NULL; | |
6538 | if (_argo0) { | |
6539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p."); | |
6542 | return NULL; | |
6543 | } | |
6544 | } | |
6545 | { | |
4268f798 | 6546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6547 | _result = (int )wxJoystick_GetPOVPosition(_arg0); |
185d7c3e | 6548 | |
4268f798 RD |
6549 | wxPyEndAllowThreads(__tstate); |
6550 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6551 | } _resultobj = Py_BuildValue("i",_result); |
6552 | return _resultobj; | |
6553 | } | |
6554 | ||
6555 | #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition()) | |
6556 | static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6557 | PyObject * _resultobj; | |
6558 | int _result; | |
6559 | wxJoystick * _arg0; | |
6560 | PyObject * _argo0 = 0; | |
6561 | char *_kwnames[] = { "self", NULL }; | |
6562 | ||
6563 | self = self; | |
6564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0)) | |
6565 | return NULL; | |
6566 | if (_argo0) { | |
6567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p."); | |
6570 | return NULL; | |
6571 | } | |
6572 | } | |
6573 | { | |
4268f798 | 6574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6575 | _result = (int )wxJoystick_GetPOVCTSPosition(_arg0); |
185d7c3e | 6576 | |
4268f798 RD |
6577 | wxPyEndAllowThreads(__tstate); |
6578 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6579 | } _resultobj = Py_BuildValue("i",_result); |
6580 | return _resultobj; | |
6581 | } | |
6582 | ||
6583 | #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition()) | |
6584 | static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6585 | PyObject * _resultobj; | |
6586 | int _result; | |
6587 | wxJoystick * _arg0; | |
6588 | PyObject * _argo0 = 0; | |
6589 | char *_kwnames[] = { "self", NULL }; | |
6590 | ||
6591 | self = self; | |
6592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0)) | |
6593 | return NULL; | |
6594 | if (_argo0) { | |
6595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p."); | |
6598 | return NULL; | |
6599 | } | |
6600 | } | |
6601 | { | |
4268f798 | 6602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6603 | _result = (int )wxJoystick_GetRudderPosition(_arg0); |
185d7c3e | 6604 | |
4268f798 RD |
6605 | wxPyEndAllowThreads(__tstate); |
6606 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6607 | } _resultobj = Py_BuildValue("i",_result); |
6608 | return _resultobj; | |
6609 | } | |
6610 | ||
6611 | #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition()) | |
6612 | static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6613 | PyObject * _resultobj; | |
6614 | int _result; | |
6615 | wxJoystick * _arg0; | |
6616 | PyObject * _argo0 = 0; | |
6617 | char *_kwnames[] = { "self", NULL }; | |
6618 | ||
6619 | self = self; | |
6620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0)) | |
6621 | return NULL; | |
6622 | if (_argo0) { | |
6623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p."); | |
6626 | return NULL; | |
6627 | } | |
6628 | } | |
6629 | { | |
4268f798 | 6630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6631 | _result = (int )wxJoystick_GetUPosition(_arg0); |
185d7c3e | 6632 | |
4268f798 RD |
6633 | wxPyEndAllowThreads(__tstate); |
6634 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6635 | } _resultobj = Py_BuildValue("i",_result); |
6636 | return _resultobj; | |
6637 | } | |
6638 | ||
6639 | #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition()) | |
6640 | static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6641 | PyObject * _resultobj; | |
6642 | int _result; | |
6643 | wxJoystick * _arg0; | |
6644 | PyObject * _argo0 = 0; | |
6645 | char *_kwnames[] = { "self", NULL }; | |
6646 | ||
6647 | self = self; | |
6648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0)) | |
6649 | return NULL; | |
6650 | if (_argo0) { | |
6651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p."); | |
6654 | return NULL; | |
6655 | } | |
6656 | } | |
6657 | { | |
4268f798 | 6658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6659 | _result = (int )wxJoystick_GetVPosition(_arg0); |
185d7c3e | 6660 | |
4268f798 RD |
6661 | wxPyEndAllowThreads(__tstate); |
6662 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6663 | } _resultobj = Py_BuildValue("i",_result); |
6664 | return _resultobj; | |
6665 | } | |
6666 | ||
6667 | #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold()) | |
6668 | static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6669 | PyObject * _resultobj; | |
6670 | int _result; | |
6671 | wxJoystick * _arg0; | |
6672 | PyObject * _argo0 = 0; | |
6673 | char *_kwnames[] = { "self", NULL }; | |
6674 | ||
6675 | self = self; | |
6676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0)) | |
6677 | return NULL; | |
6678 | if (_argo0) { | |
6679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p."); | |
6682 | return NULL; | |
6683 | } | |
6684 | } | |
6685 | { | |
4268f798 | 6686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6687 | _result = (int )wxJoystick_GetMovementThreshold(_arg0); |
185d7c3e | 6688 | |
4268f798 RD |
6689 | wxPyEndAllowThreads(__tstate); |
6690 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6691 | } _resultobj = Py_BuildValue("i",_result); |
6692 | return _resultobj; | |
6693 | } | |
6694 | ||
6695 | #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0)) | |
6696 | static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6697 | PyObject * _resultobj; | |
6698 | wxJoystick * _arg0; | |
6699 | int _arg1; | |
6700 | PyObject * _argo0 = 0; | |
6701 | char *_kwnames[] = { "self","threshold", NULL }; | |
6702 | ||
6703 | self = self; | |
6704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1)) | |
6705 | return NULL; | |
6706 | if (_argo0) { | |
6707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p."); | |
6710 | return NULL; | |
6711 | } | |
6712 | } | |
6713 | { | |
4268f798 | 6714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6715 | wxJoystick_SetMovementThreshold(_arg0,_arg1); |
185d7c3e | 6716 | |
4268f798 RD |
6717 | wxPyEndAllowThreads(__tstate); |
6718 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6719 | } Py_INCREF(Py_None); |
6720 | _resultobj = Py_None; | |
6721 | return _resultobj; | |
6722 | } | |
6723 | ||
6724 | #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk()) | |
6725 | static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6726 | PyObject * _resultobj; | |
6727 | bool _result; | |
6728 | wxJoystick * _arg0; | |
6729 | PyObject * _argo0 = 0; | |
6730 | char *_kwnames[] = { "self", NULL }; | |
6731 | ||
6732 | self = self; | |
6733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0)) | |
6734 | return NULL; | |
6735 | if (_argo0) { | |
6736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p."); | |
6739 | return NULL; | |
6740 | } | |
6741 | } | |
6742 | { | |
4268f798 | 6743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6744 | _result = (bool )wxJoystick_IsOk(_arg0); |
185d7c3e | 6745 | |
4268f798 RD |
6746 | wxPyEndAllowThreads(__tstate); |
6747 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6748 | } _resultobj = Py_BuildValue("i",_result); |
6749 | return _resultobj; | |
6750 | } | |
6751 | ||
6752 | #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks()) | |
6753 | static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6754 | PyObject * _resultobj; | |
6755 | int _result; | |
6756 | wxJoystick * _arg0; | |
6757 | PyObject * _argo0 = 0; | |
6758 | char *_kwnames[] = { "self", NULL }; | |
6759 | ||
6760 | self = self; | |
6761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0)) | |
6762 | return NULL; | |
6763 | if (_argo0) { | |
6764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p."); | |
6767 | return NULL; | |
6768 | } | |
6769 | } | |
6770 | { | |
4268f798 | 6771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6772 | _result = (int )wxJoystick_GetNumberJoysticks(_arg0); |
185d7c3e | 6773 | |
4268f798 RD |
6774 | wxPyEndAllowThreads(__tstate); |
6775 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6776 | } _resultobj = Py_BuildValue("i",_result); |
6777 | return _resultobj; | |
6778 | } | |
6779 | ||
6780 | #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId()) | |
6781 | static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6782 | PyObject * _resultobj; | |
6783 | int _result; | |
6784 | wxJoystick * _arg0; | |
6785 | PyObject * _argo0 = 0; | |
6786 | char *_kwnames[] = { "self", NULL }; | |
6787 | ||
6788 | self = self; | |
6789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0)) | |
6790 | return NULL; | |
6791 | if (_argo0) { | |
6792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p."); | |
6795 | return NULL; | |
6796 | } | |
6797 | } | |
6798 | { | |
4268f798 | 6799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6800 | _result = (int )wxJoystick_GetManufacturerId(_arg0); |
185d7c3e | 6801 | |
4268f798 RD |
6802 | wxPyEndAllowThreads(__tstate); |
6803 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6804 | } _resultobj = Py_BuildValue("i",_result); |
6805 | return _resultobj; | |
6806 | } | |
6807 | ||
6808 | #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId()) | |
6809 | static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6810 | PyObject * _resultobj; | |
6811 | int _result; | |
6812 | wxJoystick * _arg0; | |
6813 | PyObject * _argo0 = 0; | |
6814 | char *_kwnames[] = { "self", NULL }; | |
6815 | ||
6816 | self = self; | |
6817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0)) | |
6818 | return NULL; | |
6819 | if (_argo0) { | |
6820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p."); | |
6823 | return NULL; | |
6824 | } | |
6825 | } | |
6826 | { | |
4268f798 | 6827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6828 | _result = (int )wxJoystick_GetProductId(_arg0); |
185d7c3e | 6829 | |
4268f798 RD |
6830 | wxPyEndAllowThreads(__tstate); |
6831 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6832 | } _resultobj = Py_BuildValue("i",_result); |
6833 | return _resultobj; | |
6834 | } | |
6835 | ||
6836 | #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName()) | |
6837 | static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6838 | PyObject * _resultobj; | |
6839 | wxString * _result; | |
6840 | wxJoystick * _arg0; | |
6841 | PyObject * _argo0 = 0; | |
6842 | char *_kwnames[] = { "self", NULL }; | |
6843 | ||
6844 | self = self; | |
6845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0)) | |
6846 | return NULL; | |
6847 | if (_argo0) { | |
6848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p."); | |
6851 | return NULL; | |
6852 | } | |
6853 | } | |
6854 | { | |
4268f798 | 6855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6856 | _result = new wxString (wxJoystick_GetProductName(_arg0)); |
185d7c3e | 6857 | |
4268f798 RD |
6858 | wxPyEndAllowThreads(__tstate); |
6859 | if (PyErr_Occurred()) return NULL; | |
185d7c3e | 6860 | }{ |
c8bc7bb8 RD |
6861 | #if wxUSE_UNICODE |
6862 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6863 | #else | |
185d7c3e | 6864 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6865 | #endif |
185d7c3e RD |
6866 | } |
6867 | { | |
6868 | delete _result; | |
6869 | } | |
6870 | return _resultobj; | |
6871 | } | |
6872 | ||
6873 | #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin()) | |
6874 | static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6875 | PyObject * _resultobj; | |
6876 | int _result; | |
6877 | wxJoystick * _arg0; | |
6878 | PyObject * _argo0 = 0; | |
6879 | char *_kwnames[] = { "self", NULL }; | |
6880 | ||
6881 | self = self; | |
6882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0)) | |
6883 | return NULL; | |
6884 | if (_argo0) { | |
6885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p."); | |
6888 | return NULL; | |
6889 | } | |
6890 | } | |
6891 | { | |
4268f798 | 6892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6893 | _result = (int )wxJoystick_GetXMin(_arg0); |
185d7c3e | 6894 | |
4268f798 RD |
6895 | wxPyEndAllowThreads(__tstate); |
6896 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6897 | } _resultobj = Py_BuildValue("i",_result); |
6898 | return _resultobj; | |
6899 | } | |
6900 | ||
6901 | #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin()) | |
6902 | static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6903 | PyObject * _resultobj; | |
6904 | int _result; | |
6905 | wxJoystick * _arg0; | |
6906 | PyObject * _argo0 = 0; | |
6907 | char *_kwnames[] = { "self", NULL }; | |
6908 | ||
6909 | self = self; | |
6910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0)) | |
6911 | return NULL; | |
6912 | if (_argo0) { | |
6913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p."); | |
6916 | return NULL; | |
6917 | } | |
6918 | } | |
6919 | { | |
4268f798 | 6920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6921 | _result = (int )wxJoystick_GetYMin(_arg0); |
185d7c3e | 6922 | |
4268f798 RD |
6923 | wxPyEndAllowThreads(__tstate); |
6924 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6925 | } _resultobj = Py_BuildValue("i",_result); |
6926 | return _resultobj; | |
6927 | } | |
6928 | ||
6929 | #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin()) | |
6930 | static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6931 | PyObject * _resultobj; | |
6932 | int _result; | |
6933 | wxJoystick * _arg0; | |
6934 | PyObject * _argo0 = 0; | |
6935 | char *_kwnames[] = { "self", NULL }; | |
6936 | ||
6937 | self = self; | |
6938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0)) | |
6939 | return NULL; | |
6940 | if (_argo0) { | |
6941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p."); | |
6944 | return NULL; | |
6945 | } | |
6946 | } | |
6947 | { | |
4268f798 | 6948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6949 | _result = (int )wxJoystick_GetZMin(_arg0); |
185d7c3e | 6950 | |
4268f798 RD |
6951 | wxPyEndAllowThreads(__tstate); |
6952 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6953 | } _resultobj = Py_BuildValue("i",_result); |
6954 | return _resultobj; | |
6955 | } | |
6956 | ||
6957 | #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax()) | |
6958 | static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6959 | PyObject * _resultobj; | |
6960 | int _result; | |
6961 | wxJoystick * _arg0; | |
6962 | PyObject * _argo0 = 0; | |
6963 | char *_kwnames[] = { "self", NULL }; | |
6964 | ||
6965 | self = self; | |
6966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0)) | |
6967 | return NULL; | |
6968 | if (_argo0) { | |
6969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p."); | |
6972 | return NULL; | |
6973 | } | |
6974 | } | |
6975 | { | |
4268f798 | 6976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6977 | _result = (int )wxJoystick_GetXMax(_arg0); |
185d7c3e | 6978 | |
4268f798 RD |
6979 | wxPyEndAllowThreads(__tstate); |
6980 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6981 | } _resultobj = Py_BuildValue("i",_result); |
6982 | return _resultobj; | |
6983 | } | |
6984 | ||
6985 | #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax()) | |
6986 | static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6987 | PyObject * _resultobj; | |
6988 | int _result; | |
6989 | wxJoystick * _arg0; | |
6990 | PyObject * _argo0 = 0; | |
6991 | char *_kwnames[] = { "self", NULL }; | |
6992 | ||
6993 | self = self; | |
6994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0)) | |
6995 | return NULL; | |
6996 | if (_argo0) { | |
6997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p."); | |
7000 | return NULL; | |
7001 | } | |
7002 | } | |
7003 | { | |
4268f798 | 7004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7005 | _result = (int )wxJoystick_GetYMax(_arg0); |
185d7c3e | 7006 | |
4268f798 RD |
7007 | wxPyEndAllowThreads(__tstate); |
7008 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7009 | } _resultobj = Py_BuildValue("i",_result); |
7010 | return _resultobj; | |
7011 | } | |
7012 | ||
7013 | #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax()) | |
7014 | static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7015 | PyObject * _resultobj; | |
7016 | int _result; | |
7017 | wxJoystick * _arg0; | |
7018 | PyObject * _argo0 = 0; | |
7019 | char *_kwnames[] = { "self", NULL }; | |
7020 | ||
7021 | self = self; | |
7022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0)) | |
7023 | return NULL; | |
7024 | if (_argo0) { | |
7025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p."); | |
7028 | return NULL; | |
7029 | } | |
7030 | } | |
7031 | { | |
4268f798 | 7032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7033 | _result = (int )wxJoystick_GetZMax(_arg0); |
185d7c3e | 7034 | |
4268f798 RD |
7035 | wxPyEndAllowThreads(__tstate); |
7036 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7037 | } _resultobj = Py_BuildValue("i",_result); |
7038 | return _resultobj; | |
7039 | } | |
7040 | ||
7041 | #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons()) | |
7042 | static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7043 | PyObject * _resultobj; | |
7044 | int _result; | |
7045 | wxJoystick * _arg0; | |
7046 | PyObject * _argo0 = 0; | |
7047 | char *_kwnames[] = { "self", NULL }; | |
7048 | ||
7049 | self = self; | |
7050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0)) | |
7051 | return NULL; | |
7052 | if (_argo0) { | |
7053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p."); | |
7056 | return NULL; | |
7057 | } | |
7058 | } | |
7059 | { | |
4268f798 | 7060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7061 | _result = (int )wxJoystick_GetNumberButtons(_arg0); |
185d7c3e | 7062 | |
4268f798 RD |
7063 | wxPyEndAllowThreads(__tstate); |
7064 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7065 | } _resultobj = Py_BuildValue("i",_result); |
7066 | return _resultobj; | |
7067 | } | |
7068 | ||
7069 | #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes()) | |
7070 | static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7071 | PyObject * _resultobj; | |
7072 | int _result; | |
7073 | wxJoystick * _arg0; | |
7074 | PyObject * _argo0 = 0; | |
7075 | char *_kwnames[] = { "self", NULL }; | |
7076 | ||
7077 | self = self; | |
7078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0)) | |
7079 | return NULL; | |
7080 | if (_argo0) { | |
7081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p."); | |
7084 | return NULL; | |
7085 | } | |
7086 | } | |
7087 | { | |
4268f798 | 7088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7089 | _result = (int )wxJoystick_GetNumberAxes(_arg0); |
185d7c3e | 7090 | |
4268f798 RD |
7091 | wxPyEndAllowThreads(__tstate); |
7092 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7093 | } _resultobj = Py_BuildValue("i",_result); |
7094 | return _resultobj; | |
7095 | } | |
7096 | ||
7097 | #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons()) | |
7098 | static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7099 | PyObject * _resultobj; | |
7100 | int _result; | |
7101 | wxJoystick * _arg0; | |
7102 | PyObject * _argo0 = 0; | |
7103 | char *_kwnames[] = { "self", NULL }; | |
7104 | ||
7105 | self = self; | |
7106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0)) | |
7107 | return NULL; | |
7108 | if (_argo0) { | |
7109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p."); | |
7112 | return NULL; | |
7113 | } | |
7114 | } | |
7115 | { | |
4268f798 | 7116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7117 | _result = (int )wxJoystick_GetMaxButtons(_arg0); |
185d7c3e | 7118 | |
4268f798 RD |
7119 | wxPyEndAllowThreads(__tstate); |
7120 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7121 | } _resultobj = Py_BuildValue("i",_result); |
7122 | return _resultobj; | |
7123 | } | |
7124 | ||
7125 | #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes()) | |
7126 | static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7127 | PyObject * _resultobj; | |
7128 | int _result; | |
7129 | wxJoystick * _arg0; | |
7130 | PyObject * _argo0 = 0; | |
7131 | char *_kwnames[] = { "self", NULL }; | |
7132 | ||
7133 | self = self; | |
7134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0)) | |
7135 | return NULL; | |
7136 | if (_argo0) { | |
7137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p."); | |
7140 | return NULL; | |
7141 | } | |
7142 | } | |
7143 | { | |
4268f798 | 7144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7145 | _result = (int )wxJoystick_GetMaxAxes(_arg0); |
185d7c3e | 7146 | |
4268f798 RD |
7147 | wxPyEndAllowThreads(__tstate); |
7148 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7149 | } _resultobj = Py_BuildValue("i",_result); |
7150 | return _resultobj; | |
7151 | } | |
7152 | ||
7153 | #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin()) | |
7154 | static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7155 | PyObject * _resultobj; | |
7156 | int _result; | |
7157 | wxJoystick * _arg0; | |
7158 | PyObject * _argo0 = 0; | |
7159 | char *_kwnames[] = { "self", NULL }; | |
7160 | ||
7161 | self = self; | |
7162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0)) | |
7163 | return NULL; | |
7164 | if (_argo0) { | |
7165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p."); | |
7168 | return NULL; | |
7169 | } | |
7170 | } | |
7171 | { | |
4268f798 | 7172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7173 | _result = (int )wxJoystick_GetPollingMin(_arg0); |
185d7c3e | 7174 | |
4268f798 RD |
7175 | wxPyEndAllowThreads(__tstate); |
7176 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7177 | } _resultobj = Py_BuildValue("i",_result); |
7178 | return _resultobj; | |
7179 | } | |
7180 | ||
7181 | #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax()) | |
7182 | static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7183 | PyObject * _resultobj; | |
7184 | int _result; | |
7185 | wxJoystick * _arg0; | |
7186 | PyObject * _argo0 = 0; | |
7187 | char *_kwnames[] = { "self", NULL }; | |
7188 | ||
7189 | self = self; | |
7190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0)) | |
7191 | return NULL; | |
7192 | if (_argo0) { | |
7193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p."); | |
7196 | return NULL; | |
7197 | } | |
7198 | } | |
7199 | { | |
4268f798 | 7200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7201 | _result = (int )wxJoystick_GetPollingMax(_arg0); |
185d7c3e | 7202 | |
4268f798 RD |
7203 | wxPyEndAllowThreads(__tstate); |
7204 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7205 | } _resultobj = Py_BuildValue("i",_result); |
7206 | return _resultobj; | |
7207 | } | |
7208 | ||
7209 | #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin()) | |
7210 | static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7211 | PyObject * _resultobj; | |
7212 | int _result; | |
7213 | wxJoystick * _arg0; | |
7214 | PyObject * _argo0 = 0; | |
7215 | char *_kwnames[] = { "self", NULL }; | |
7216 | ||
7217 | self = self; | |
7218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0)) | |
7219 | return NULL; | |
7220 | if (_argo0) { | |
7221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p."); | |
7224 | return NULL; | |
7225 | } | |
7226 | } | |
7227 | { | |
4268f798 | 7228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7229 | _result = (int )wxJoystick_GetRudderMin(_arg0); |
185d7c3e | 7230 | |
4268f798 RD |
7231 | wxPyEndAllowThreads(__tstate); |
7232 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7233 | } _resultobj = Py_BuildValue("i",_result); |
7234 | return _resultobj; | |
7235 | } | |
7236 | ||
7237 | #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax()) | |
7238 | static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7239 | PyObject * _resultobj; | |
7240 | int _result; | |
7241 | wxJoystick * _arg0; | |
7242 | PyObject * _argo0 = 0; | |
7243 | char *_kwnames[] = { "self", NULL }; | |
7244 | ||
7245 | self = self; | |
7246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0)) | |
7247 | return NULL; | |
7248 | if (_argo0) { | |
7249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p."); | |
7252 | return NULL; | |
7253 | } | |
7254 | } | |
7255 | { | |
4268f798 | 7256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7257 | _result = (int )wxJoystick_GetRudderMax(_arg0); |
185d7c3e | 7258 | |
4268f798 RD |
7259 | wxPyEndAllowThreads(__tstate); |
7260 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7261 | } _resultobj = Py_BuildValue("i",_result); |
7262 | return _resultobj; | |
7263 | } | |
7264 | ||
7265 | #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin()) | |
7266 | static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7267 | PyObject * _resultobj; | |
7268 | int _result; | |
7269 | wxJoystick * _arg0; | |
7270 | PyObject * _argo0 = 0; | |
7271 | char *_kwnames[] = { "self", NULL }; | |
7272 | ||
7273 | self = self; | |
7274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0)) | |
7275 | return NULL; | |
7276 | if (_argo0) { | |
7277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p."); | |
7280 | return NULL; | |
7281 | } | |
7282 | } | |
7283 | { | |
4268f798 | 7284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7285 | _result = (int )wxJoystick_GetUMin(_arg0); |
185d7c3e | 7286 | |
4268f798 RD |
7287 | wxPyEndAllowThreads(__tstate); |
7288 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7289 | } _resultobj = Py_BuildValue("i",_result); |
7290 | return _resultobj; | |
7291 | } | |
7292 | ||
7293 | #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax()) | |
7294 | static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7295 | PyObject * _resultobj; | |
7296 | int _result; | |
7297 | wxJoystick * _arg0; | |
7298 | PyObject * _argo0 = 0; | |
7299 | char *_kwnames[] = { "self", NULL }; | |
7300 | ||
7301 | self = self; | |
7302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0)) | |
7303 | return NULL; | |
7304 | if (_argo0) { | |
7305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p."); | |
7308 | return NULL; | |
7309 | } | |
7310 | } | |
7311 | { | |
4268f798 | 7312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7313 | _result = (int )wxJoystick_GetUMax(_arg0); |
185d7c3e | 7314 | |
4268f798 RD |
7315 | wxPyEndAllowThreads(__tstate); |
7316 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7317 | } _resultobj = Py_BuildValue("i",_result); |
7318 | return _resultobj; | |
7319 | } | |
7320 | ||
7321 | #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin()) | |
7322 | static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7323 | PyObject * _resultobj; | |
7324 | int _result; | |
7325 | wxJoystick * _arg0; | |
7326 | PyObject * _argo0 = 0; | |
7327 | char *_kwnames[] = { "self", NULL }; | |
7328 | ||
7329 | self = self; | |
7330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0)) | |
7331 | return NULL; | |
7332 | if (_argo0) { | |
7333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p."); | |
7336 | return NULL; | |
7337 | } | |
7338 | } | |
7339 | { | |
4268f798 | 7340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7341 | _result = (int )wxJoystick_GetVMin(_arg0); |
185d7c3e | 7342 | |
4268f798 RD |
7343 | wxPyEndAllowThreads(__tstate); |
7344 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7345 | } _resultobj = Py_BuildValue("i",_result); |
7346 | return _resultobj; | |
7347 | } | |
7348 | ||
7349 | #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax()) | |
7350 | static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7351 | PyObject * _resultobj; | |
7352 | int _result; | |
7353 | wxJoystick * _arg0; | |
7354 | PyObject * _argo0 = 0; | |
7355 | char *_kwnames[] = { "self", NULL }; | |
7356 | ||
7357 | self = self; | |
7358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0)) | |
7359 | return NULL; | |
7360 | if (_argo0) { | |
7361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p."); | |
7364 | return NULL; | |
7365 | } | |
7366 | } | |
7367 | { | |
4268f798 | 7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7369 | _result = (int )wxJoystick_GetVMax(_arg0); |
185d7c3e | 7370 | |
4268f798 RD |
7371 | wxPyEndAllowThreads(__tstate); |
7372 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7373 | } _resultobj = Py_BuildValue("i",_result); |
7374 | return _resultobj; | |
7375 | } | |
7376 | ||
7377 | #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder()) | |
7378 | static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7379 | PyObject * _resultobj; | |
7380 | bool _result; | |
7381 | wxJoystick * _arg0; | |
7382 | PyObject * _argo0 = 0; | |
7383 | char *_kwnames[] = { "self", NULL }; | |
7384 | ||
7385 | self = self; | |
7386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0)) | |
7387 | return NULL; | |
7388 | if (_argo0) { | |
7389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p."); | |
7392 | return NULL; | |
7393 | } | |
7394 | } | |
7395 | { | |
4268f798 | 7396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7397 | _result = (bool )wxJoystick_HasRudder(_arg0); |
185d7c3e | 7398 | |
4268f798 RD |
7399 | wxPyEndAllowThreads(__tstate); |
7400 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7401 | } _resultobj = Py_BuildValue("i",_result); |
7402 | return _resultobj; | |
7403 | } | |
7404 | ||
7405 | #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ()) | |
7406 | static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7407 | PyObject * _resultobj; | |
7408 | bool _result; | |
7409 | wxJoystick * _arg0; | |
7410 | PyObject * _argo0 = 0; | |
7411 | char *_kwnames[] = { "self", NULL }; | |
7412 | ||
7413 | self = self; | |
7414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0)) | |
7415 | return NULL; | |
7416 | if (_argo0) { | |
7417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p."); | |
7420 | return NULL; | |
7421 | } | |
7422 | } | |
7423 | { | |
4268f798 | 7424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7425 | _result = (bool )wxJoystick_HasZ(_arg0); |
185d7c3e | 7426 | |
4268f798 RD |
7427 | wxPyEndAllowThreads(__tstate); |
7428 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7429 | } _resultobj = Py_BuildValue("i",_result); |
7430 | return _resultobj; | |
7431 | } | |
7432 | ||
7433 | #define wxJoystick_HasU(_swigobj) (_swigobj->HasU()) | |
7434 | static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7435 | PyObject * _resultobj; | |
7436 | bool _result; | |
7437 | wxJoystick * _arg0; | |
7438 | PyObject * _argo0 = 0; | |
7439 | char *_kwnames[] = { "self", NULL }; | |
7440 | ||
7441 | self = self; | |
7442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0)) | |
7443 | return NULL; | |
7444 | if (_argo0) { | |
7445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p."); | |
7448 | return NULL; | |
7449 | } | |
7450 | } | |
7451 | { | |
4268f798 | 7452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7453 | _result = (bool )wxJoystick_HasU(_arg0); |
185d7c3e | 7454 | |
4268f798 RD |
7455 | wxPyEndAllowThreads(__tstate); |
7456 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7457 | } _resultobj = Py_BuildValue("i",_result); |
7458 | return _resultobj; | |
7459 | } | |
7460 | ||
7461 | #define wxJoystick_HasV(_swigobj) (_swigobj->HasV()) | |
7462 | static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7463 | PyObject * _resultobj; | |
7464 | bool _result; | |
7465 | wxJoystick * _arg0; | |
7466 | PyObject * _argo0 = 0; | |
7467 | char *_kwnames[] = { "self", NULL }; | |
7468 | ||
7469 | self = self; | |
7470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0)) | |
7471 | return NULL; | |
7472 | if (_argo0) { | |
7473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p."); | |
7476 | return NULL; | |
7477 | } | |
7478 | } | |
7479 | { | |
4268f798 | 7480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7481 | _result = (bool )wxJoystick_HasV(_arg0); |
185d7c3e | 7482 | |
4268f798 RD |
7483 | wxPyEndAllowThreads(__tstate); |
7484 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7485 | } _resultobj = Py_BuildValue("i",_result); |
7486 | return _resultobj; | |
7487 | } | |
7488 | ||
7489 | #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV()) | |
7490 | static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7491 | PyObject * _resultobj; | |
7492 | bool _result; | |
7493 | wxJoystick * _arg0; | |
7494 | PyObject * _argo0 = 0; | |
7495 | char *_kwnames[] = { "self", NULL }; | |
7496 | ||
7497 | self = self; | |
7498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0)) | |
7499 | return NULL; | |
7500 | if (_argo0) { | |
7501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p."); | |
7504 | return NULL; | |
7505 | } | |
7506 | } | |
7507 | { | |
4268f798 | 7508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7509 | _result = (bool )wxJoystick_HasPOV(_arg0); |
185d7c3e | 7510 | |
4268f798 RD |
7511 | wxPyEndAllowThreads(__tstate); |
7512 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7513 | } _resultobj = Py_BuildValue("i",_result); |
7514 | return _resultobj; | |
7515 | } | |
7516 | ||
7517 | #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir()) | |
7518 | static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7519 | PyObject * _resultobj; | |
7520 | bool _result; | |
7521 | wxJoystick * _arg0; | |
7522 | PyObject * _argo0 = 0; | |
7523 | char *_kwnames[] = { "self", NULL }; | |
7524 | ||
7525 | self = self; | |
7526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0)) | |
7527 | return NULL; | |
7528 | if (_argo0) { | |
7529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p."); | |
7532 | return NULL; | |
7533 | } | |
7534 | } | |
7535 | { | |
4268f798 | 7536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7537 | _result = (bool )wxJoystick_HasPOV4Dir(_arg0); |
185d7c3e | 7538 | |
4268f798 RD |
7539 | wxPyEndAllowThreads(__tstate); |
7540 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7541 | } _resultobj = Py_BuildValue("i",_result); |
7542 | return _resultobj; | |
7543 | } | |
7544 | ||
7545 | #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS()) | |
7546 | static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7547 | PyObject * _resultobj; | |
7548 | bool _result; | |
7549 | wxJoystick * _arg0; | |
7550 | PyObject * _argo0 = 0; | |
7551 | char *_kwnames[] = { "self", NULL }; | |
7552 | ||
7553 | self = self; | |
7554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0)) | |
7555 | return NULL; | |
7556 | if (_argo0) { | |
7557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p."); | |
7560 | return NULL; | |
7561 | } | |
7562 | } | |
7563 | { | |
4268f798 | 7564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7565 | _result = (bool )wxJoystick_HasPOVCTS(_arg0); |
185d7c3e | 7566 | |
4268f798 RD |
7567 | wxPyEndAllowThreads(__tstate); |
7568 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7569 | } _resultobj = Py_BuildValue("i",_result); |
7570 | return _resultobj; | |
7571 | } | |
7572 | ||
7573 | #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1)) | |
7574 | static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7575 | PyObject * _resultobj; | |
7576 | bool _result; | |
7577 | wxJoystick * _arg0; | |
7578 | wxWindow * _arg1; | |
7579 | int _arg2 = (int ) 0; | |
7580 | PyObject * _argo0 = 0; | |
7581 | PyObject * _argo1 = 0; | |
7582 | char *_kwnames[] = { "self","win","pollingFreq", NULL }; | |
7583 | ||
7584 | self = self; | |
7585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7586 | return NULL; | |
7587 | if (_argo0) { | |
7588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p."); | |
7591 | return NULL; | |
7592 | } | |
7593 | } | |
7594 | if (_argo1) { | |
7595 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7596 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p."); | |
7598 | return NULL; | |
7599 | } | |
7600 | } | |
7601 | { | |
4268f798 | 7602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7603 | _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2); |
185d7c3e | 7604 | |
4268f798 RD |
7605 | wxPyEndAllowThreads(__tstate); |
7606 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7607 | } _resultobj = Py_BuildValue("i",_result); |
7608 | return _resultobj; | |
7609 | } | |
7610 | ||
7611 | #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture()) | |
7612 | static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7613 | PyObject * _resultobj; | |
7614 | bool _result; | |
7615 | wxJoystick * _arg0; | |
7616 | PyObject * _argo0 = 0; | |
7617 | char *_kwnames[] = { "self", NULL }; | |
7618 | ||
7619 | self = self; | |
7620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0)) | |
7621 | return NULL; | |
7622 | if (_argo0) { | |
7623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p."); | |
7626 | return NULL; | |
7627 | } | |
7628 | } | |
7629 | { | |
4268f798 | 7630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7631 | _result = (bool )wxJoystick_ReleaseCapture(_arg0); |
185d7c3e | 7632 | |
4268f798 RD |
7633 | wxPyEndAllowThreads(__tstate); |
7634 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7635 | } _resultobj = Py_BuildValue("i",_result); |
7636 | return _resultobj; | |
7637 | } | |
7638 | ||
493f1553 RD |
7639 | static void *SwigwxWaveTowxObject(void *ptr) { |
7640 | wxWave *src; | |
7641 | wxObject *dest; | |
7642 | src = (wxWave *) ptr; | |
7643 | dest = (wxObject *) src; | |
7644 | return (void *) dest; | |
7645 | } | |
7646 | ||
7647 | #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1)) | |
7648 | static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7649 | PyObject * _resultobj; | |
7650 | wxWave * _result; | |
7651 | wxString * _arg0; | |
7652 | bool _arg1 = (bool ) FALSE; | |
7653 | PyObject * _obj0 = 0; | |
7654 | int tempbool1 = (int) FALSE; | |
7655 | char *_kwnames[] = { "fileName","isResource", NULL }; | |
7656 | char _ptemp[128]; | |
7657 | ||
7658 | self = self; | |
7659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1)) | |
7660 | return NULL; | |
7661 | { | |
c8bc7bb8 RD |
7662 | _arg0 = wxString_in_helper(_obj0); |
7663 | if (_arg0 == NULL) | |
493f1553 | 7664 | return NULL; |
493f1553 RD |
7665 | } |
7666 | _arg1 = (bool ) tempbool1; | |
7667 | { | |
4268f798 | 7668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7669 | _result = (wxWave *)new_wxWave(*_arg0,_arg1); |
493f1553 | 7670 | |
4268f798 RD |
7671 | wxPyEndAllowThreads(__tstate); |
7672 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7673 | } if (_result) { |
7674 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
7675 | _resultobj = Py_BuildValue("s",_ptemp); | |
7676 | } else { | |
7677 | Py_INCREF(Py_None); | |
7678 | _resultobj = Py_None; | |
7679 | } | |
7680 | { | |
7681 | if (_obj0) | |
7682 | delete _arg0; | |
7683 | } | |
7684 | return _resultobj; | |
7685 | } | |
7686 | ||
7687 | #define delete_wxWave(_swigobj) (delete _swigobj) | |
7688 | static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7689 | PyObject * _resultobj; | |
7690 | wxWave * _arg0; | |
7691 | PyObject * _argo0 = 0; | |
7692 | char *_kwnames[] = { "self", NULL }; | |
7693 | ||
7694 | self = self; | |
7695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0)) | |
7696 | return NULL; | |
7697 | if (_argo0) { | |
7698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p."); | |
7701 | return NULL; | |
7702 | } | |
7703 | } | |
7704 | { | |
4268f798 | 7705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7706 | delete_wxWave(_arg0); |
493f1553 | 7707 | |
4268f798 RD |
7708 | wxPyEndAllowThreads(__tstate); |
7709 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7710 | } Py_INCREF(Py_None); |
7711 | _resultobj = Py_None; | |
7712 | return _resultobj; | |
7713 | } | |
7714 | ||
7715 | #define wxWave_IsOk(_swigobj) (_swigobj->IsOk()) | |
7716 | static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7717 | PyObject * _resultobj; | |
7718 | bool _result; | |
7719 | wxWave * _arg0; | |
7720 | PyObject * _argo0 = 0; | |
7721 | char *_kwnames[] = { "self", NULL }; | |
7722 | ||
7723 | self = self; | |
7724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0)) | |
7725 | return NULL; | |
7726 | if (_argo0) { | |
7727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p."); | |
7730 | return NULL; | |
7731 | } | |
7732 | } | |
7733 | { | |
4268f798 | 7734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7735 | _result = (bool )wxWave_IsOk(_arg0); |
493f1553 | 7736 | |
4268f798 RD |
7737 | wxPyEndAllowThreads(__tstate); |
7738 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7739 | } _resultobj = Py_BuildValue("i",_result); |
7740 | return _resultobj; | |
7741 | } | |
7742 | ||
7743 | #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1)) | |
7744 | static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7745 | PyObject * _resultobj; | |
7746 | bool _result; | |
7747 | wxWave * _arg0; | |
7748 | bool _arg1 = (bool ) TRUE; | |
7749 | bool _arg2 = (bool ) FALSE; | |
7750 | PyObject * _argo0 = 0; | |
7751 | int tempbool1 = (int) TRUE; | |
7752 | int tempbool2 = (int) FALSE; | |
7753 | char *_kwnames[] = { "self","async","looped", NULL }; | |
7754 | ||
7755 | self = self; | |
7756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
7757 | return NULL; | |
7758 | if (_argo0) { | |
7759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p."); | |
7762 | return NULL; | |
7763 | } | |
7764 | } | |
7765 | _arg1 = (bool ) tempbool1; | |
7766 | _arg2 = (bool ) tempbool2; | |
7767 | { | |
4268f798 | 7768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7769 | _result = (bool )wxWave_Play(_arg0,_arg1,_arg2); |
493f1553 | 7770 | |
4268f798 RD |
7771 | wxPyEndAllowThreads(__tstate); |
7772 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7773 | } _resultobj = Py_BuildValue("i",_result); |
7774 | return _resultobj; | |
7775 | } | |
7776 | ||
b37c7e1d RD |
7777 | #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7778 | static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7779 | PyObject * _resultobj; | |
7780 | wxFileTypeInfo * _result; | |
7781 | char * _arg0; | |
7782 | char * _arg1; | |
7783 | char * _arg2; | |
7784 | char * _arg3; | |
7785 | char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL }; | |
7786 | char _ptemp[128]; | |
7787 | ||
7788 | self = self; | |
7789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ssss:new_wxFileTypeInfo",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
7790 | return NULL; | |
7791 | { | |
4268f798 | 7792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7793 | _result = (wxFileTypeInfo *)new_wxFileTypeInfo(_arg0,_arg1,_arg2,_arg3); |
b37c7e1d | 7794 | |
4268f798 RD |
7795 | wxPyEndAllowThreads(__tstate); |
7796 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7797 | } if (_result) { |
7798 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7799 | _resultobj = Py_BuildValue("s",_ptemp); | |
7800 | } else { | |
7801 | Py_INCREF(Py_None); | |
7802 | _resultobj = Py_None; | |
7803 | } | |
7804 | return _resultobj; | |
7805 | } | |
7806 | ||
7807 | #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0)) | |
7808 | static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7809 | PyObject * _resultobj; | |
7810 | wxFileTypeInfo * _result; | |
7811 | wxArrayString * _arg0; | |
7812 | PyObject * _obj0 = 0; | |
7813 | char *_kwnames[] = { "sArray", NULL }; | |
7814 | char _ptemp[128]; | |
7815 | ||
7816 | self = self; | |
7817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0)) | |
7818 | return NULL; | |
7819 | { | |
7820 | if (! PySequence_Check(_obj0)) { | |
7821 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7822 | return NULL; | |
7823 | } | |
7824 | _arg0 = new wxArrayString; | |
7825 | int i, len=PySequence_Length(_obj0); | |
7826 | for (i=0; i<len; i++) { | |
7827 | PyObject* item = PySequence_GetItem(_obj0, i); | |
c8bc7bb8 RD |
7828 | #if wxUSE_UNICODE |
7829 | PyObject* str = PyObject_Unicode(item); | |
7830 | _arg0->Add(PyUnicode_AsUnicode(str)); | |
7831 | #else | |
b37c7e1d | 7832 | PyObject* str = PyObject_Str(item); |
293a0a86 | 7833 | _arg0->Add(PyString_AsString(str)); |
c8bc7bb8 | 7834 | #endif |
b37c7e1d RD |
7835 | Py_DECREF(item); |
7836 | Py_DECREF(str); | |
7837 | } | |
7838 | } | |
7839 | { | |
4268f798 | 7840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7841 | _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0); |
b37c7e1d | 7842 | |
4268f798 RD |
7843 | wxPyEndAllowThreads(__tstate); |
7844 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7845 | } if (_result) { |
7846 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7847 | _resultobj = Py_BuildValue("s",_ptemp); | |
7848 | } else { | |
7849 | Py_INCREF(Py_None); | |
7850 | _resultobj = Py_None; | |
7851 | } | |
7852 | { | |
7853 | if (_obj0) | |
7854 | delete _arg0; | |
7855 | } | |
7856 | return _resultobj; | |
7857 | } | |
7858 | ||
7859 | #define new_wxNullFileTypeInfo() (new wxFileTypeInfo()) | |
7860 | static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7861 | PyObject * _resultobj; | |
7862 | wxFileTypeInfo * _result; | |
7863 | char *_kwnames[] = { NULL }; | |
7864 | char _ptemp[128]; | |
7865 | ||
7866 | self = self; | |
7867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames)) | |
7868 | return NULL; | |
7869 | { | |
4268f798 | 7870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7871 | _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo(); |
b37c7e1d | 7872 | |
4268f798 RD |
7873 | wxPyEndAllowThreads(__tstate); |
7874 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7875 | } if (_result) { |
7876 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7877 | _resultobj = Py_BuildValue("s",_ptemp); | |
7878 | } else { | |
7879 | Py_INCREF(Py_None); | |
7880 | _resultobj = Py_None; | |
7881 | } | |
7882 | return _resultobj; | |
7883 | } | |
7884 | ||
7885 | #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid()) | |
7886 | static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7887 | PyObject * _resultobj; | |
7888 | bool _result; | |
7889 | wxFileTypeInfo * _arg0; | |
7890 | PyObject * _argo0 = 0; | |
7891 | char *_kwnames[] = { "self", NULL }; | |
7892 | ||
7893 | self = self; | |
7894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0)) | |
7895 | return NULL; | |
7896 | if (_argo0) { | |
7897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p."); | |
7900 | return NULL; | |
7901 | } | |
7902 | } | |
7903 | { | |
4268f798 | 7904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7905 | _result = (bool )wxFileTypeInfo_IsValid(_arg0); |
b37c7e1d | 7906 | |
4268f798 RD |
7907 | wxPyEndAllowThreads(__tstate); |
7908 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7909 | } _resultobj = Py_BuildValue("i",_result); |
7910 | return _resultobj; | |
7911 | } | |
7912 | ||
7913 | #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1)) | |
7914 | static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7915 | PyObject * _resultobj; | |
7916 | wxFileTypeInfo * _arg0; | |
7917 | wxString * _arg1; | |
7918 | int _arg2 = (int ) 0; | |
7919 | PyObject * _argo0 = 0; | |
7920 | PyObject * _obj1 = 0; | |
7921 | char *_kwnames[] = { "self","iconFile","iconIndex", NULL }; | |
7922 | ||
7923 | self = self; | |
7924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
7925 | return NULL; | |
7926 | if (_argo0) { | |
7927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p."); | |
7930 | return NULL; | |
7931 | } | |
7932 | } | |
7933 | { | |
c8bc7bb8 RD |
7934 | _arg1 = wxString_in_helper(_obj1); |
7935 | if (_arg1 == NULL) | |
b37c7e1d | 7936 | return NULL; |
b37c7e1d RD |
7937 | } |
7938 | { | |
4268f798 | 7939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7940 | wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 7941 | |
4268f798 RD |
7942 | wxPyEndAllowThreads(__tstate); |
7943 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7944 | } Py_INCREF(Py_None); |
7945 | _resultobj = Py_None; | |
7946 | { | |
7947 | if (_obj1) | |
7948 | delete _arg1; | |
7949 | } | |
7950 | return _resultobj; | |
7951 | } | |
7952 | ||
7953 | #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0)) | |
7954 | static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7955 | PyObject * _resultobj; | |
7956 | wxFileTypeInfo * _arg0; | |
7957 | wxString * _arg1; | |
7958 | PyObject * _argo0 = 0; | |
7959 | PyObject * _obj1 = 0; | |
7960 | char *_kwnames[] = { "self","shortDesc", NULL }; | |
7961 | ||
7962 | self = self; | |
7963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1)) | |
7964 | return NULL; | |
7965 | if (_argo0) { | |
7966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p."); | |
7969 | return NULL; | |
7970 | } | |
7971 | } | |
7972 | { | |
c8bc7bb8 RD |
7973 | _arg1 = wxString_in_helper(_obj1); |
7974 | if (_arg1 == NULL) | |
b37c7e1d | 7975 | return NULL; |
b37c7e1d RD |
7976 | } |
7977 | { | |
4268f798 | 7978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7979 | wxFileTypeInfo_SetShortDesc(_arg0,*_arg1); |
b37c7e1d | 7980 | |
4268f798 RD |
7981 | wxPyEndAllowThreads(__tstate); |
7982 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7983 | } Py_INCREF(Py_None); |
7984 | _resultobj = Py_None; | |
7985 | { | |
7986 | if (_obj1) | |
7987 | delete _arg1; | |
7988 | } | |
7989 | return _resultobj; | |
7990 | } | |
7991 | ||
7992 | #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
7993 | static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7994 | PyObject * _resultobj; | |
7995 | wxString * _result; | |
7996 | wxFileTypeInfo * _arg0; | |
7997 | PyObject * _argo0 = 0; | |
7998 | char *_kwnames[] = { "self", NULL }; | |
7999 | ||
8000 | self = self; | |
8001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0)) | |
8002 | return NULL; | |
8003 | if (_argo0) { | |
8004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p."); | |
8007 | return NULL; | |
8008 | } | |
8009 | } | |
8010 | { | |
4268f798 | 8011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8012 | const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0); |
b37c7e1d RD |
8013 | _result = (wxString *) &_result_ref; |
8014 | ||
4268f798 RD |
8015 | wxPyEndAllowThreads(__tstate); |
8016 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8017 | }{ |
c8bc7bb8 RD |
8018 | #if wxUSE_UNICODE |
8019 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8020 | #else | |
b37c7e1d | 8021 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8022 | #endif |
b37c7e1d RD |
8023 | } |
8024 | return _resultobj; | |
8025 | } | |
8026 | ||
8027 | #define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand()) | |
8028 | static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8029 | PyObject * _resultobj; | |
8030 | wxString * _result; | |
8031 | wxFileTypeInfo * _arg0; | |
8032 | PyObject * _argo0 = 0; | |
8033 | char *_kwnames[] = { "self", NULL }; | |
8034 | ||
8035 | self = self; | |
8036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0)) | |
8037 | return NULL; | |
8038 | if (_argo0) { | |
8039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p."); | |
8042 | return NULL; | |
8043 | } | |
8044 | } | |
8045 | { | |
4268f798 | 8046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8047 | const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0); |
b37c7e1d RD |
8048 | _result = (wxString *) &_result_ref; |
8049 | ||
4268f798 RD |
8050 | wxPyEndAllowThreads(__tstate); |
8051 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8052 | }{ |
c8bc7bb8 RD |
8053 | #if wxUSE_UNICODE |
8054 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8055 | #else | |
b37c7e1d | 8056 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8057 | #endif |
b37c7e1d RD |
8058 | } |
8059 | return _resultobj; | |
8060 | } | |
8061 | ||
8062 | #define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand()) | |
8063 | static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8064 | PyObject * _resultobj; | |
8065 | wxString * _result; | |
8066 | wxFileTypeInfo * _arg0; | |
8067 | PyObject * _argo0 = 0; | |
8068 | char *_kwnames[] = { "self", NULL }; | |
8069 | ||
8070 | self = self; | |
8071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0)) | |
8072 | return NULL; | |
8073 | if (_argo0) { | |
8074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p."); | |
8077 | return NULL; | |
8078 | } | |
8079 | } | |
8080 | { | |
4268f798 | 8081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8082 | const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0); |
b37c7e1d RD |
8083 | _result = (wxString *) &_result_ref; |
8084 | ||
4268f798 RD |
8085 | wxPyEndAllowThreads(__tstate); |
8086 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8087 | }{ |
c8bc7bb8 RD |
8088 | #if wxUSE_UNICODE |
8089 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8090 | #else | |
b37c7e1d | 8091 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8092 | #endif |
b37c7e1d RD |
8093 | } |
8094 | return _resultobj; | |
8095 | } | |
8096 | ||
8097 | #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc()) | |
8098 | static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8099 | PyObject * _resultobj; | |
8100 | wxString * _result; | |
8101 | wxFileTypeInfo * _arg0; | |
8102 | PyObject * _argo0 = 0; | |
8103 | char *_kwnames[] = { "self", NULL }; | |
8104 | ||
8105 | self = self; | |
8106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0)) | |
8107 | return NULL; | |
8108 | if (_argo0) { | |
8109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p."); | |
8112 | return NULL; | |
8113 | } | |
8114 | } | |
8115 | { | |
4268f798 | 8116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8117 | const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0); |
b37c7e1d RD |
8118 | _result = (wxString *) &_result_ref; |
8119 | ||
4268f798 RD |
8120 | wxPyEndAllowThreads(__tstate); |
8121 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8122 | }{ |
c8bc7bb8 RD |
8123 | #if wxUSE_UNICODE |
8124 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8125 | #else | |
b37c7e1d | 8126 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8127 | #endif |
b37c7e1d RD |
8128 | } |
8129 | return _resultobj; | |
8130 | } | |
8131 | ||
8132 | #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription()) | |
8133 | static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8134 | PyObject * _resultobj; | |
8135 | wxString * _result; | |
8136 | wxFileTypeInfo * _arg0; | |
8137 | PyObject * _argo0 = 0; | |
8138 | char *_kwnames[] = { "self", NULL }; | |
8139 | ||
8140 | self = self; | |
8141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0)) | |
8142 | return NULL; | |
8143 | if (_argo0) { | |
8144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p."); | |
8147 | return NULL; | |
8148 | } | |
8149 | } | |
8150 | { | |
4268f798 | 8151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8152 | const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0); |
b37c7e1d RD |
8153 | _result = (wxString *) &_result_ref; |
8154 | ||
4268f798 RD |
8155 | wxPyEndAllowThreads(__tstate); |
8156 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8157 | }{ |
c8bc7bb8 RD |
8158 | #if wxUSE_UNICODE |
8159 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8160 | #else | |
b37c7e1d | 8161 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8162 | #endif |
b37c7e1d RD |
8163 | } |
8164 | return _resultobj; | |
8165 | } | |
8166 | ||
8167 | static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) { | |
8168 | wxArrayString& arr = (wxArrayString&)self->GetExtensions(); | |
8169 | return wxArrayString2PyList_helper(arr); | |
8170 | } | |
8171 | static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8172 | PyObject * _resultobj; | |
8173 | PyObject * _result; | |
8174 | wxFileTypeInfo * _arg0; | |
8175 | PyObject * _argo0 = 0; | |
8176 | char *_kwnames[] = { "self", NULL }; | |
8177 | ||
8178 | self = self; | |
8179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0)) | |
8180 | return NULL; | |
8181 | if (_argo0) { | |
8182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p."); | |
8185 | return NULL; | |
8186 | } | |
8187 | } | |
8188 | { | |
4268f798 | 8189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8190 | _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0); |
b37c7e1d | 8191 | |
4268f798 RD |
8192 | wxPyEndAllowThreads(__tstate); |
8193 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8194 | }{ |
8195 | _resultobj = _result; | |
8196 | } | |
8197 | return _resultobj; | |
8198 | } | |
8199 | ||
8200 | #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount()) | |
8201 | static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8202 | PyObject * _resultobj; | |
8203 | int _result; | |
8204 | wxFileTypeInfo * _arg0; | |
8205 | PyObject * _argo0 = 0; | |
8206 | char *_kwnames[] = { "self", NULL }; | |
8207 | ||
8208 | self = self; | |
8209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0)) | |
8210 | return NULL; | |
8211 | if (_argo0) { | |
8212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p."); | |
8215 | return NULL; | |
8216 | } | |
8217 | } | |
8218 | { | |
4268f798 | 8219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8220 | _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0); |
b37c7e1d | 8221 | |
4268f798 RD |
8222 | wxPyEndAllowThreads(__tstate); |
8223 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8224 | } _resultobj = Py_BuildValue("i",_result); |
8225 | return _resultobj; | |
8226 | } | |
8227 | ||
8228 | #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile()) | |
8229 | static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8230 | PyObject * _resultobj; | |
8231 | wxString * _result; | |
8232 | wxFileTypeInfo * _arg0; | |
8233 | PyObject * _argo0 = 0; | |
8234 | char *_kwnames[] = { "self", NULL }; | |
8235 | ||
8236 | self = self; | |
8237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0)) | |
8238 | return NULL; | |
8239 | if (_argo0) { | |
8240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p."); | |
8243 | return NULL; | |
8244 | } | |
8245 | } | |
8246 | { | |
4268f798 | 8247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8248 | const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0); |
b37c7e1d RD |
8249 | _result = (wxString *) &_result_ref; |
8250 | ||
4268f798 RD |
8251 | wxPyEndAllowThreads(__tstate); |
8252 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8253 | }{ |
c8bc7bb8 RD |
8254 | #if wxUSE_UNICODE |
8255 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8256 | #else | |
b37c7e1d | 8257 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8258 | #endif |
b37c7e1d RD |
8259 | } |
8260 | return _resultobj; | |
8261 | } | |
8262 | ||
8263 | #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex()) | |
8264 | static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8265 | PyObject * _resultobj; | |
8266 | int _result; | |
8267 | wxFileTypeInfo * _arg0; | |
8268 | PyObject * _argo0 = 0; | |
8269 | char *_kwnames[] = { "self", NULL }; | |
8270 | ||
8271 | self = self; | |
8272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0)) | |
8273 | return NULL; | |
8274 | if (_argo0) { | |
8275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p."); | |
8278 | return NULL; | |
8279 | } | |
8280 | } | |
8281 | { | |
4268f798 | 8282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8283 | _result = (int )wxFileTypeInfo_GetIconIndex(_arg0); |
b37c7e1d | 8284 | |
4268f798 RD |
8285 | wxPyEndAllowThreads(__tstate); |
8286 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8287 | } _resultobj = Py_BuildValue("i",_result); |
8288 | return _resultobj; | |
8289 | } | |
8290 | ||
8291 | #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0)) | |
8292 | static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8293 | PyObject * _resultobj; | |
8294 | wxFileType * _result; | |
8295 | wxFileTypeInfo * _arg0; | |
8296 | PyObject * _argo0 = 0; | |
8297 | char *_kwnames[] = { "ftInfo", NULL }; | |
8298 | char _ptemp[128]; | |
8299 | ||
8300 | self = self; | |
8301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0)) | |
8302 | return NULL; | |
8303 | if (_argo0) { | |
8304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p."); | |
8307 | return NULL; | |
8308 | } | |
8309 | } | |
8310 | { | |
4268f798 | 8311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8312 | _result = (wxFileType *)new_wxFileType(*_arg0); |
b37c7e1d | 8313 | |
4268f798 RD |
8314 | wxPyEndAllowThreads(__tstate); |
8315 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8316 | } if (_result) { |
8317 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8318 | _resultobj = Py_BuildValue("s",_ptemp); | |
8319 | } else { | |
8320 | Py_INCREF(Py_None); | |
8321 | _resultobj = Py_None; | |
8322 | } | |
8323 | return _resultobj; | |
8324 | } | |
8325 | ||
8326 | static PyObject * wxFileType_GetMimeType(wxFileType *self) { | |
8327 | wxString str; | |
c8bc7bb8 RD |
8328 | if (self->GetMimeType(&str)) { |
8329 | #if wxUSE_UNICODE | |
8330 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8331 | #else | |
8332 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8333 | #endif | |
8334 | } | |
b37c7e1d RD |
8335 | else |
8336 | RETURN_NONE(); | |
8337 | } | |
8338 | static PyObject *_wrap_wxFileType_GetMimeType(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_GetMimeType",_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_GetMimeType. Expected _wxFileType_p."); | |
8352 | return NULL; | |
8353 | } | |
8354 | } | |
8355 | { | |
4268f798 | 8356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8357 | _result = (PyObject *)wxFileType_GetMimeType(_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 PyObject * wxFileType_GetMimeTypes(wxFileType *self) { | |
8368 | wxArrayString arr; | |
8369 | if (self->GetMimeTypes(arr)) | |
8370 | return wxArrayString2PyList_helper(arr); | |
8371 | else | |
8372 | RETURN_NONE(); | |
8373 | } | |
8374 | static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8375 | PyObject * _resultobj; | |
8376 | PyObject * _result; | |
8377 | wxFileType * _arg0; | |
8378 | PyObject * _argo0 = 0; | |
8379 | char *_kwnames[] = { "self", NULL }; | |
8380 | ||
8381 | self = self; | |
8382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0)) | |
8383 | return NULL; | |
8384 | if (_argo0) { | |
8385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p."); | |
8388 | return NULL; | |
8389 | } | |
8390 | } | |
8391 | { | |
4268f798 | 8392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8393 | _result = (PyObject *)wxFileType_GetMimeTypes(_arg0); |
b37c7e1d | 8394 | |
4268f798 RD |
8395 | wxPyEndAllowThreads(__tstate); |
8396 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8397 | }{ |
8398 | _resultobj = _result; | |
8399 | } | |
8400 | return _resultobj; | |
8401 | } | |
8402 | ||
8403 | static PyObject * wxFileType_GetExtensions(wxFileType *self) { | |
8404 | wxArrayString arr; | |
8405 | if (self->GetExtensions(arr)) | |
8406 | return wxArrayString2PyList_helper(arr); | |
8407 | else | |
8408 | RETURN_NONE(); | |
8409 | } | |
8410 | static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8411 | PyObject * _resultobj; | |
8412 | PyObject * _result; | |
8413 | wxFileType * _arg0; | |
8414 | PyObject * _argo0 = 0; | |
8415 | char *_kwnames[] = { "self", NULL }; | |
8416 | ||
8417 | self = self; | |
8418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0)) | |
8419 | return NULL; | |
8420 | if (_argo0) { | |
8421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p."); | |
8424 | return NULL; | |
8425 | } | |
8426 | } | |
8427 | { | |
4268f798 | 8428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8429 | _result = (PyObject *)wxFileType_GetExtensions(_arg0); |
b37c7e1d | 8430 | |
4268f798 RD |
8431 | wxPyEndAllowThreads(__tstate); |
8432 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8433 | }{ |
8434 | _resultobj = _result; | |
8435 | } | |
8436 | return _resultobj; | |
8437 | } | |
8438 | ||
8439 | static wxIcon * wxFileType_GetIcon(wxFileType *self) { | |
8440 | wxIcon icon; | |
8441 | if (self->GetIcon(&icon)) | |
8442 | return new wxIcon(icon); | |
8443 | else | |
8444 | return NULL; | |
8445 | } | |
8446 | static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8447 | PyObject * _resultobj; | |
8448 | wxIcon * _result; | |
8449 | wxFileType * _arg0; | |
8450 | PyObject * _argo0 = 0; | |
8451 | char *_kwnames[] = { "self", NULL }; | |
8452 | char _ptemp[128]; | |
8453 | ||
8454 | self = self; | |
8455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0)) | |
8456 | return NULL; | |
8457 | if (_argo0) { | |
8458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p."); | |
8461 | return NULL; | |
8462 | } | |
8463 | } | |
8464 | { | |
4268f798 | 8465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8466 | _result = (wxIcon *)wxFileType_GetIcon(_arg0); |
b37c7e1d | 8467 | |
4268f798 RD |
8468 | wxPyEndAllowThreads(__tstate); |
8469 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8470 | } if (_result) { |
8471 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
8472 | _resultobj = Py_BuildValue("s",_ptemp); | |
8473 | } else { | |
8474 | Py_INCREF(Py_None); | |
8475 | _resultobj = Py_None; | |
8476 | } | |
8477 | return _resultobj; | |
8478 | } | |
8479 | ||
8480 | static PyObject * wxFileType_GetIconInfo(wxFileType *self) { | |
8481 | wxIcon icon; | |
8482 | wxString iconFile; | |
8483 | int iconIndex; | |
8484 | if (self->GetIcon(&icon, &iconFile, &iconIndex)) { | |
4268f798 | 8485 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
8486 | PyObject* tuple = PyTuple_New(3); |
8487 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(icon), | |
8488 | "wxIcon", TRUE)); | |
c8bc7bb8 RD |
8489 | #if wxUSE_UNICODE |
8490 | PyTuple_SetItem(tuple, 1, PyUnicode_FromUnicode(iconFile.c_str(), iconFile.Len())); | |
8491 | #else | |
8492 | PyTuple_SetItem(tuple, 1, PyString_FromStringAndSize(iconFile.c_str(), iconFile.Len())); | |
8493 | #endif | |
b37c7e1d | 8494 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); |
4268f798 | 8495 | wxPyEndBlockThreads(); |
b37c7e1d RD |
8496 | return tuple; |
8497 | } | |
8498 | else | |
8499 | RETURN_NONE(); | |
8500 | } | |
8501 | static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8502 | PyObject * _resultobj; | |
8503 | PyObject * _result; | |
8504 | wxFileType * _arg0; | |
8505 | PyObject * _argo0 = 0; | |
8506 | char *_kwnames[] = { "self", NULL }; | |
8507 | ||
8508 | self = self; | |
8509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0)) | |
8510 | return NULL; | |
8511 | if (_argo0) { | |
8512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p."); | |
8515 | return NULL; | |
8516 | } | |
8517 | } | |
8518 | { | |
4268f798 | 8519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8520 | _result = (PyObject *)wxFileType_GetIconInfo(_arg0); |
b37c7e1d | 8521 | |
4268f798 RD |
8522 | wxPyEndAllowThreads(__tstate); |
8523 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8524 | }{ |
8525 | _resultobj = _result; | |
8526 | } | |
8527 | return _resultobj; | |
8528 | } | |
8529 | ||
8530 | static PyObject * wxFileType_GetDescription(wxFileType *self) { | |
8531 | wxString str; | |
c8bc7bb8 RD |
8532 | if (self->GetDescription(&str)) { |
8533 | #if wxUSE_UNICODE | |
8534 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8535 | #else | |
8536 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8537 | #endif | |
8538 | } else | |
b37c7e1d RD |
8539 | RETURN_NONE(); |
8540 | } | |
8541 | static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8542 | PyObject * _resultobj; | |
8543 | PyObject * _result; | |
8544 | wxFileType * _arg0; | |
8545 | PyObject * _argo0 = 0; | |
8546 | char *_kwnames[] = { "self", NULL }; | |
8547 | ||
8548 | self = self; | |
8549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0)) | |
8550 | return NULL; | |
8551 | if (_argo0) { | |
8552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p."); | |
8555 | return NULL; | |
8556 | } | |
8557 | } | |
8558 | { | |
4268f798 | 8559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8560 | _result = (PyObject *)wxFileType_GetDescription(_arg0); |
b37c7e1d | 8561 | |
4268f798 RD |
8562 | wxPyEndAllowThreads(__tstate); |
8563 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8564 | }{ |
8565 | _resultobj = _result; | |
8566 | } | |
8567 | return _resultobj; | |
8568 | } | |
8569 | ||
8570 | static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8571 | wxString str; | |
c8bc7bb8 RD |
8572 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
8573 | #if wxUSE_UNICODE | |
8574 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8575 | #else | |
8576 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8577 | #endif | |
8578 | } else | |
b37c7e1d RD |
8579 | RETURN_NONE(); |
8580 | } | |
8581 | static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8582 | PyObject * _resultobj; | |
8583 | PyObject * _result; | |
8584 | wxFileType * _arg0; | |
8585 | wxString * _arg1; | |
137b5242 | 8586 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8587 | PyObject * _argo0 = 0; |
8588 | PyObject * _obj1 = 0; | |
8589 | PyObject * _obj2 = 0; | |
8590 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8591 | ||
8592 | self = self; | |
8593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8594 | return NULL; | |
8595 | if (_argo0) { | |
8596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p."); | |
8599 | return NULL; | |
8600 | } | |
8601 | } | |
8602 | { | |
c8bc7bb8 RD |
8603 | _arg1 = wxString_in_helper(_obj1); |
8604 | if (_arg1 == NULL) | |
b37c7e1d | 8605 | return NULL; |
b37c7e1d RD |
8606 | } |
8607 | if (_obj2) | |
8608 | { | |
c8bc7bb8 RD |
8609 | _arg2 = wxString_in_helper(_obj2); |
8610 | if (_arg2 == NULL) | |
b37c7e1d | 8611 | return NULL; |
b37c7e1d RD |
8612 | } |
8613 | { | |
4268f798 | 8614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8615 | _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8616 | |
4268f798 RD |
8617 | wxPyEndAllowThreads(__tstate); |
8618 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8619 | }{ |
8620 | _resultobj = _result; | |
8621 | } | |
8622 | { | |
8623 | if (_obj1) | |
8624 | delete _arg1; | |
8625 | } | |
8626 | { | |
8627 | if (_obj2) | |
8628 | delete _arg2; | |
8629 | } | |
8630 | return _resultobj; | |
8631 | } | |
8632 | ||
8633 | static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8634 | wxString str; | |
c8bc7bb8 RD |
8635 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
8636 | #if wxUSE_UNICODE | |
8637 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8638 | #else | |
8639 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8640 | #endif | |
8641 | } else | |
b37c7e1d RD |
8642 | RETURN_NONE(); |
8643 | } | |
8644 | static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8645 | PyObject * _resultobj; | |
8646 | PyObject * _result; | |
8647 | wxFileType * _arg0; | |
8648 | wxString * _arg1; | |
137b5242 | 8649 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8650 | PyObject * _argo0 = 0; |
8651 | PyObject * _obj1 = 0; | |
8652 | PyObject * _obj2 = 0; | |
8653 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8654 | ||
8655 | self = self; | |
8656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8657 | return NULL; | |
8658 | if (_argo0) { | |
8659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p."); | |
8662 | return NULL; | |
8663 | } | |
8664 | } | |
8665 | { | |
c8bc7bb8 RD |
8666 | _arg1 = wxString_in_helper(_obj1); |
8667 | if (_arg1 == NULL) | |
b37c7e1d | 8668 | return NULL; |
b37c7e1d RD |
8669 | } |
8670 | if (_obj2) | |
8671 | { | |
c8bc7bb8 RD |
8672 | _arg2 = wxString_in_helper(_obj2); |
8673 | if (_arg2 == NULL) | |
b37c7e1d | 8674 | return NULL; |
b37c7e1d RD |
8675 | } |
8676 | { | |
4268f798 | 8677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8678 | _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8679 | |
4268f798 RD |
8680 | wxPyEndAllowThreads(__tstate); |
8681 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8682 | }{ |
8683 | _resultobj = _result; | |
8684 | } | |
8685 | { | |
8686 | if (_obj1) | |
8687 | delete _arg1; | |
8688 | } | |
8689 | { | |
8690 | if (_obj2) | |
8691 | delete _arg2; | |
8692 | } | |
8693 | return _resultobj; | |
8694 | } | |
8695 | ||
8696 | static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8697 | wxArrayString verbs; | |
8698 | wxArrayString commands; | |
8699 | if (self->GetAllCommands(&verbs, &commands, | |
8700 | wxFileType::MessageParameters(filename, mimetype))) { | |
4268f798 | 8701 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
8702 | PyObject* tuple = PyTuple_New(2); |
8703 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
8704 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
4268f798 | 8705 | wxPyEndBlockThreads(); |
b37c7e1d RD |
8706 | return tuple; |
8707 | } | |
8708 | else | |
8709 | RETURN_NONE(); | |
8710 | } | |
8711 | static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8712 | PyObject * _resultobj; | |
8713 | PyObject * _result; | |
8714 | wxFileType * _arg0; | |
8715 | wxString * _arg1; | |
137b5242 | 8716 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8717 | PyObject * _argo0 = 0; |
8718 | PyObject * _obj1 = 0; | |
8719 | PyObject * _obj2 = 0; | |
8720 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8721 | ||
8722 | self = self; | |
8723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8724 | return NULL; | |
8725 | if (_argo0) { | |
8726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p."); | |
8729 | return NULL; | |
8730 | } | |
8731 | } | |
8732 | { | |
c8bc7bb8 RD |
8733 | _arg1 = wxString_in_helper(_obj1); |
8734 | if (_arg1 == NULL) | |
b37c7e1d | 8735 | return NULL; |
b37c7e1d RD |
8736 | } |
8737 | if (_obj2) | |
8738 | { | |
c8bc7bb8 RD |
8739 | _arg2 = wxString_in_helper(_obj2); |
8740 | if (_arg2 == NULL) | |
b37c7e1d | 8741 | return NULL; |
b37c7e1d RD |
8742 | } |
8743 | { | |
4268f798 | 8744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8745 | _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8746 | |
4268f798 RD |
8747 | wxPyEndAllowThreads(__tstate); |
8748 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8749 | }{ |
8750 | _resultobj = _result; | |
8751 | } | |
8752 | { | |
8753 | if (_obj1) | |
8754 | delete _arg1; | |
8755 | } | |
8756 | { | |
8757 | if (_obj2) | |
8758 | delete _arg2; | |
8759 | } | |
8760 | return _resultobj; | |
8761 | } | |
8762 | ||
8763 | #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2)) | |
8764 | static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8765 | PyObject * _resultobj; | |
8766 | bool _result; | |
8767 | wxFileType * _arg0; | |
8768 | wxString * _arg1; | |
8769 | wxString * _arg2; | |
8770 | bool _arg3 = (bool ) TRUE; | |
8771 | PyObject * _argo0 = 0; | |
8772 | PyObject * _obj1 = 0; | |
8773 | PyObject * _obj2 = 0; | |
8774 | int tempbool3 = (int) TRUE; | |
8775 | char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL }; | |
8776 | ||
8777 | self = self; | |
8778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) | |
8779 | return NULL; | |
8780 | if (_argo0) { | |
8781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p."); | |
8784 | return NULL; | |
8785 | } | |
8786 | } | |
8787 | { | |
c8bc7bb8 RD |
8788 | _arg1 = wxString_in_helper(_obj1); |
8789 | if (_arg1 == NULL) | |
b37c7e1d | 8790 | return NULL; |
b37c7e1d RD |
8791 | } |
8792 | { | |
c8bc7bb8 RD |
8793 | _arg2 = wxString_in_helper(_obj2); |
8794 | if (_arg2 == NULL) | |
b37c7e1d | 8795 | return NULL; |
b37c7e1d RD |
8796 | } |
8797 | _arg3 = (bool ) tempbool3; | |
8798 | { | |
4268f798 | 8799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8800 | _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3); |
b37c7e1d | 8801 | |
4268f798 RD |
8802 | wxPyEndAllowThreads(__tstate); |
8803 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8804 | } _resultobj = Py_BuildValue("i",_result); |
8805 | { | |
8806 | if (_obj1) | |
8807 | delete _arg1; | |
8808 | } | |
8809 | { | |
8810 | if (_obj2) | |
8811 | delete _arg2; | |
8812 | } | |
8813 | return _resultobj; | |
8814 | } | |
8815 | ||
8816 | #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1)) | |
8817 | static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8818 | PyObject * _resultobj; | |
8819 | bool _result; | |
8820 | wxFileType * _arg0; | |
137b5242 | 8821 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8822 | int _arg2 = (int ) 0; |
8823 | PyObject * _argo0 = 0; | |
8824 | PyObject * _obj1 = 0; | |
8825 | char *_kwnames[] = { "self","cmd","index", NULL }; | |
8826 | ||
8827 | self = self; | |
8828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
8829 | return NULL; | |
8830 | if (_argo0) { | |
8831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p."); | |
8834 | return NULL; | |
8835 | } | |
8836 | } | |
8837 | if (_obj1) | |
8838 | { | |
c8bc7bb8 RD |
8839 | _arg1 = wxString_in_helper(_obj1); |
8840 | if (_arg1 == NULL) | |
b37c7e1d | 8841 | return NULL; |
b37c7e1d RD |
8842 | } |
8843 | { | |
4268f798 | 8844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8845 | _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 8846 | |
4268f798 RD |
8847 | wxPyEndAllowThreads(__tstate); |
8848 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8849 | } _resultobj = Py_BuildValue("i",_result); |
8850 | { | |
8851 | if (_obj1) | |
8852 | delete _arg1; | |
8853 | } | |
8854 | return _resultobj; | |
8855 | } | |
8856 | ||
8857 | #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate()) | |
8858 | static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8859 | PyObject * _resultobj; | |
8860 | bool _result; | |
8861 | wxFileType * _arg0; | |
8862 | PyObject * _argo0 = 0; | |
8863 | char *_kwnames[] = { "self", NULL }; | |
8864 | ||
8865 | self = self; | |
8866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0)) | |
8867 | return NULL; | |
8868 | if (_argo0) { | |
8869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p."); | |
8872 | return NULL; | |
8873 | } | |
8874 | } | |
8875 | { | |
4268f798 | 8876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8877 | _result = (bool )wxFileType_Unassociate(_arg0); |
b37c7e1d | 8878 | |
4268f798 RD |
8879 | wxPyEndAllowThreads(__tstate); |
8880 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8881 | } _resultobj = Py_BuildValue("i",_result); |
8882 | return _resultobj; | |
8883 | } | |
8884 | ||
8885 | static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8886 | PyObject * _resultobj; | |
8887 | wxString * _result; | |
8888 | wxString * _arg0; | |
8889 | wxFileType::MessageParameters * _arg1; | |
8890 | PyObject * _obj0 = 0; | |
8891 | PyObject * _argo1 = 0; | |
8892 | char *_kwnames[] = { "command","params", NULL }; | |
8893 | ||
8894 | self = self; | |
8895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1)) | |
8896 | return NULL; | |
8897 | { | |
c8bc7bb8 RD |
8898 | _arg0 = wxString_in_helper(_obj0); |
8899 | if (_arg0 == NULL) | |
b37c7e1d | 8900 | return NULL; |
b37c7e1d RD |
8901 | } |
8902 | if (_argo1) { | |
8903 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8904 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) { | |
8905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p."); | |
8906 | return NULL; | |
8907 | } | |
8908 | } | |
8909 | { | |
4268f798 | 8910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8911 | _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1)); |
b37c7e1d | 8912 | |
4268f798 RD |
8913 | wxPyEndAllowThreads(__tstate); |
8914 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8915 | }{ |
c8bc7bb8 RD |
8916 | #if wxUSE_UNICODE |
8917 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8918 | #else | |
b37c7e1d | 8919 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8920 | #endif |
b37c7e1d RD |
8921 | } |
8922 | { | |
8923 | if (_obj0) | |
8924 | delete _arg0; | |
8925 | } | |
8926 | { | |
8927 | delete _result; | |
8928 | } | |
8929 | return _resultobj; | |
8930 | } | |
8931 | ||
8932 | #define delete_wxFileType(_swigobj) (delete _swigobj) | |
8933 | static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8934 | PyObject * _resultobj; | |
8935 | wxFileType * _arg0; | |
8936 | PyObject * _argo0 = 0; | |
8937 | char *_kwnames[] = { "self", NULL }; | |
8938 | ||
8939 | self = self; | |
8940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0)) | |
8941 | return NULL; | |
8942 | if (_argo0) { | |
8943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p."); | |
8946 | return NULL; | |
8947 | } | |
8948 | } | |
8949 | { | |
4268f798 | 8950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8951 | delete_wxFileType(_arg0); |
b37c7e1d | 8952 | |
4268f798 RD |
8953 | wxPyEndAllowThreads(__tstate); |
8954 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8955 | } Py_INCREF(Py_None); |
8956 | _resultobj = Py_None; | |
8957 | return _resultobj; | |
8958 | } | |
8959 | ||
8960 | static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8961 | PyObject * _resultobj; | |
8962 | bool _result; | |
8963 | wxString * _arg0; | |
8964 | wxString * _arg1; | |
8965 | PyObject * _obj0 = 0; | |
8966 | PyObject * _obj1 = 0; | |
8967 | char *_kwnames[] = { "mimeType","wildcard", NULL }; | |
8968 | ||
8969 | self = self; | |
8970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1)) | |
8971 | return NULL; | |
8972 | { | |
c8bc7bb8 RD |
8973 | _arg0 = wxString_in_helper(_obj0); |
8974 | if (_arg0 == NULL) | |
b37c7e1d | 8975 | return NULL; |
b37c7e1d RD |
8976 | } |
8977 | { | |
c8bc7bb8 RD |
8978 | _arg1 = wxString_in_helper(_obj1); |
8979 | if (_arg1 == NULL) | |
b37c7e1d | 8980 | return NULL; |
b37c7e1d RD |
8981 | } |
8982 | { | |
4268f798 | 8983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8984 | _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1); |
b37c7e1d | 8985 | |
4268f798 RD |
8986 | wxPyEndAllowThreads(__tstate); |
8987 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8988 | } _resultobj = Py_BuildValue("i",_result); |
8989 | { | |
8990 | if (_obj0) | |
8991 | delete _arg0; | |
8992 | } | |
8993 | { | |
8994 | if (_obj1) | |
8995 | delete _arg1; | |
8996 | } | |
8997 | return _resultobj; | |
8998 | } | |
8999 | ||
9000 | #define new_wxMimeTypesManager() (new wxMimeTypesManager()) | |
9001 | static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9002 | PyObject * _resultobj; | |
9003 | wxMimeTypesManager * _result; | |
9004 | char *_kwnames[] = { NULL }; | |
9005 | char _ptemp[128]; | |
9006 | ||
9007 | self = self; | |
9008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames)) | |
9009 | return NULL; | |
9010 | { | |
4268f798 | 9011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9012 | _result = (wxMimeTypesManager *)new_wxMimeTypesManager(); |
b37c7e1d | 9013 | |
4268f798 RD |
9014 | wxPyEndAllowThreads(__tstate); |
9015 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9016 | } if (_result) { |
9017 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p"); | |
9018 | _resultobj = Py_BuildValue("s",_ptemp); | |
9019 | } else { | |
9020 | Py_INCREF(Py_None); | |
9021 | _resultobj = Py_None; | |
9022 | } | |
9023 | return _resultobj; | |
9024 | } | |
9025 | ||
9026 | #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1)) | |
9027 | static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9028 | PyObject * _resultobj; | |
9029 | wxMimeTypesManager * _arg0; | |
9030 | int _arg1 = (int ) (wxMAILCAP_STANDARD); | |
137b5242 | 9031 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9032 | PyObject * _argo0 = 0; |
9033 | PyObject * _obj2 = 0; | |
9034 | char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL }; | |
9035 | ||
9036 | self = self; | |
9037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9038 | return NULL; | |
9039 | if (_argo0) { | |
9040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p."); | |
9043 | return NULL; | |
9044 | } | |
9045 | } | |
9046 | if (_obj2) | |
9047 | { | |
c8bc7bb8 RD |
9048 | _arg2 = wxString_in_helper(_obj2); |
9049 | if (_arg2 == NULL) | |
b37c7e1d | 9050 | return NULL; |
b37c7e1d RD |
9051 | } |
9052 | { | |
4268f798 | 9053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9054 | wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2); |
b37c7e1d | 9055 | |
4268f798 RD |
9056 | wxPyEndAllowThreads(__tstate); |
9057 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9058 | } Py_INCREF(Py_None); |
9059 | _resultobj = Py_None; | |
9060 | { | |
9061 | if (_obj2) | |
9062 | delete _arg2; | |
9063 | } | |
9064 | return _resultobj; | |
9065 | } | |
9066 | ||
9067 | #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData()) | |
9068 | static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9069 | PyObject * _resultobj; | |
9070 | wxMimeTypesManager * _arg0; | |
9071 | PyObject * _argo0 = 0; | |
9072 | char *_kwnames[] = { "self", NULL }; | |
9073 | ||
9074 | self = self; | |
9075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0)) | |
9076 | return NULL; | |
9077 | if (_argo0) { | |
9078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p."); | |
9081 | return NULL; | |
9082 | } | |
9083 | } | |
9084 | { | |
4268f798 | 9085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9086 | wxMimeTypesManager_ClearData(_arg0); |
b37c7e1d | 9087 | |
4268f798 RD |
9088 | wxPyEndAllowThreads(__tstate); |
9089 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9090 | } Py_INCREF(Py_None); |
9091 | _resultobj = Py_None; | |
9092 | return _resultobj; | |
9093 | } | |
9094 | ||
9095 | #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0)) | |
9096 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9097 | PyObject * _resultobj; | |
9098 | wxFileType * _result; | |
9099 | wxMimeTypesManager * _arg0; | |
9100 | wxString * _arg1; | |
9101 | PyObject * _argo0 = 0; | |
9102 | PyObject * _obj1 = 0; | |
9103 | char *_kwnames[] = { "self","ext", NULL }; | |
9104 | char _ptemp[128]; | |
9105 | ||
9106 | self = self; | |
9107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1)) | |
9108 | return NULL; | |
9109 | if (_argo0) { | |
9110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p."); | |
9113 | return NULL; | |
9114 | } | |
9115 | } | |
9116 | { | |
c8bc7bb8 RD |
9117 | _arg1 = wxString_in_helper(_obj1); |
9118 | if (_arg1 == NULL) | |
b37c7e1d | 9119 | return NULL; |
b37c7e1d RD |
9120 | } |
9121 | { | |
4268f798 | 9122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9123 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1); |
b37c7e1d | 9124 | |
4268f798 RD |
9125 | wxPyEndAllowThreads(__tstate); |
9126 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9127 | } if (_result) { |
9128 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9129 | _resultobj = Py_BuildValue("s",_ptemp); | |
9130 | } else { | |
9131 | Py_INCREF(Py_None); | |
9132 | _resultobj = Py_None; | |
9133 | } | |
9134 | { | |
9135 | if (_obj1) | |
9136 | delete _arg1; | |
9137 | } | |
9138 | return _resultobj; | |
9139 | } | |
9140 | ||
9141 | #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0)) | |
9142 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9143 | PyObject * _resultobj; | |
9144 | wxFileType * _result; | |
9145 | wxMimeTypesManager * _arg0; | |
9146 | wxString * _arg1; | |
9147 | PyObject * _argo0 = 0; | |
9148 | PyObject * _obj1 = 0; | |
9149 | char *_kwnames[] = { "self","mimeType", NULL }; | |
9150 | char _ptemp[128]; | |
9151 | ||
9152 | self = self; | |
9153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1)) | |
9154 | return NULL; | |
9155 | if (_argo0) { | |
9156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p."); | |
9159 | return NULL; | |
9160 | } | |
9161 | } | |
9162 | { | |
c8bc7bb8 RD |
9163 | _arg1 = wxString_in_helper(_obj1); |
9164 | if (_arg1 == NULL) | |
b37c7e1d | 9165 | return NULL; |
b37c7e1d RD |
9166 | } |
9167 | { | |
4268f798 | 9168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9169 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_arg0,*_arg1); |
b37c7e1d | 9170 | |
4268f798 RD |
9171 | wxPyEndAllowThreads(__tstate); |
9172 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9173 | } if (_result) { |
9174 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9175 | _resultobj = Py_BuildValue("s",_ptemp); | |
9176 | } else { | |
9177 | Py_INCREF(Py_None); | |
9178 | _resultobj = Py_None; | |
9179 | } | |
9180 | { | |
9181 | if (_obj1) | |
9182 | delete _arg1; | |
9183 | } | |
9184 | return _resultobj; | |
9185 | } | |
9186 | ||
9187 | #define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1)) | |
9188 | static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9189 | PyObject * _resultobj; | |
9190 | bool _result; | |
9191 | wxMimeTypesManager * _arg0; | |
9192 | wxString * _arg1; | |
9193 | bool _arg2 = (bool ) FALSE; | |
9194 | PyObject * _argo0 = 0; | |
9195 | PyObject * _obj1 = 0; | |
9196 | int tempbool2 = (int) FALSE; | |
9197 | char *_kwnames[] = { "self","filename","fallback", NULL }; | |
9198 | ||
9199 | self = self; | |
9200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
9201 | return NULL; | |
9202 | if (_argo0) { | |
9203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p."); | |
9206 | return NULL; | |
9207 | } | |
9208 | } | |
9209 | { | |
c8bc7bb8 RD |
9210 | _arg1 = wxString_in_helper(_obj1); |
9211 | if (_arg1 == NULL) | |
b37c7e1d | 9212 | return NULL; |
b37c7e1d RD |
9213 | } |
9214 | _arg2 = (bool ) tempbool2; | |
9215 | { | |
4268f798 | 9216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9217 | _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2); |
b37c7e1d | 9218 | |
4268f798 RD |
9219 | wxPyEndAllowThreads(__tstate); |
9220 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9221 | } _resultobj = Py_BuildValue("i",_result); |
9222 | { | |
9223 | if (_obj1) | |
9224 | delete _arg1; | |
9225 | } | |
9226 | return _resultobj; | |
9227 | } | |
9228 | ||
9229 | #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0)) | |
9230 | static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9231 | PyObject * _resultobj; | |
9232 | bool _result; | |
9233 | wxMimeTypesManager * _arg0; | |
9234 | wxString * _arg1; | |
9235 | PyObject * _argo0 = 0; | |
9236 | PyObject * _obj1 = 0; | |
9237 | char *_kwnames[] = { "self","filename", NULL }; | |
9238 | ||
9239 | self = self; | |
9240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1)) | |
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_ReadMimeTypes. Expected _wxMimeTypesManager_p."); | |
9246 | return NULL; | |
9247 | } | |
9248 | } | |
9249 | { | |
c8bc7bb8 RD |
9250 | _arg1 = wxString_in_helper(_obj1); |
9251 | if (_arg1 == NULL) | |
b37c7e1d | 9252 | return NULL; |
b37c7e1d RD |
9253 | } |
9254 | { | |
4268f798 | 9255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9256 | _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1); |
b37c7e1d | 9257 | |
4268f798 RD |
9258 | wxPyEndAllowThreads(__tstate); |
9259 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9260 | } _resultobj = Py_BuildValue("i",_result); |
9261 | { | |
9262 | if (_obj1) | |
9263 | delete _arg1; | |
9264 | } | |
9265 | return _resultobj; | |
9266 | } | |
9267 | ||
9268 | static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) { | |
9269 | wxArrayString arr; | |
9270 | self->EnumAllFileTypes(arr); | |
9271 | return wxArrayString2PyList_helper(arr); | |
9272 | } | |
9273 | static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9274 | PyObject * _resultobj; | |
9275 | PyObject * _result; | |
9276 | wxMimeTypesManager * _arg0; | |
9277 | PyObject * _argo0 = 0; | |
9278 | char *_kwnames[] = { "self", NULL }; | |
9279 | ||
9280 | self = self; | |
9281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0)) | |
9282 | return NULL; | |
9283 | if (_argo0) { | |
9284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p."); | |
9287 | return NULL; | |
9288 | } | |
9289 | } | |
9290 | { | |
4268f798 | 9291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9292 | _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0); |
b37c7e1d | 9293 | |
4268f798 RD |
9294 | wxPyEndAllowThreads(__tstate); |
9295 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9296 | }{ |
9297 | _resultobj = _result; | |
9298 | } | |
9299 | return _resultobj; | |
9300 | } | |
9301 | ||
9302 | #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0)) | |
9303 | static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9304 | PyObject * _resultobj; | |
9305 | wxMimeTypesManager * _arg0; | |
9306 | wxFileTypeInfo * _arg1; | |
9307 | PyObject * _argo0 = 0; | |
9308 | PyObject * _argo1 = 0; | |
9309 | char *_kwnames[] = { "self","ft", NULL }; | |
9310 | ||
9311 | self = self; | |
9312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1)) | |
9313 | return NULL; | |
9314 | if (_argo0) { | |
9315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p."); | |
9318 | return NULL; | |
9319 | } | |
9320 | } | |
9321 | if (_argo1) { | |
9322 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9323 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p."); | |
9325 | return NULL; | |
9326 | } | |
9327 | } | |
9328 | { | |
4268f798 | 9329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9330 | wxMimeTypesManager_AddFallback(_arg0,*_arg1); |
b37c7e1d | 9331 | |
4268f798 RD |
9332 | wxPyEndAllowThreads(__tstate); |
9333 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9334 | } Py_INCREF(Py_None); |
9335 | _resultobj = Py_None; | |
9336 | return _resultobj; | |
9337 | } | |
9338 | ||
9339 | #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0)) | |
9340 | static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9341 | PyObject * _resultobj; | |
9342 | wxFileType * _result; | |
9343 | wxMimeTypesManager * _arg0; | |
9344 | wxFileTypeInfo * _arg1; | |
9345 | PyObject * _argo0 = 0; | |
9346 | PyObject * _argo1 = 0; | |
9347 | char *_kwnames[] = { "self","ftInfo", NULL }; | |
9348 | char _ptemp[128]; | |
9349 | ||
9350 | self = self; | |
9351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1)) | |
9352 | return NULL; | |
9353 | if (_argo0) { | |
9354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p."); | |
9357 | return NULL; | |
9358 | } | |
9359 | } | |
9360 | if (_argo1) { | |
9361 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9362 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p."); | |
9364 | return NULL; | |
9365 | } | |
9366 | } | |
9367 | { | |
4268f798 | 9368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9369 | _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1); |
b37c7e1d | 9370 | |
4268f798 RD |
9371 | wxPyEndAllowThreads(__tstate); |
9372 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9373 | } if (_result) { |
9374 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9375 | _resultobj = Py_BuildValue("s",_ptemp); | |
9376 | } else { | |
9377 | Py_INCREF(Py_None); | |
9378 | _resultobj = Py_None; | |
9379 | } | |
9380 | return _resultobj; | |
9381 | } | |
9382 | ||
9383 | #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0)) | |
9384 | static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9385 | PyObject * _resultobj; | |
9386 | bool _result; | |
9387 | wxMimeTypesManager * _arg0; | |
9388 | wxFileType * _arg1; | |
9389 | PyObject * _argo0 = 0; | |
9390 | PyObject * _argo1 = 0; | |
9391 | char *_kwnames[] = { "self","ft", NULL }; | |
9392 | ||
9393 | self = self; | |
9394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1)) | |
9395 | return NULL; | |
9396 | if (_argo0) { | |
9397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p."); | |
9400 | return NULL; | |
9401 | } | |
9402 | } | |
9403 | if (_argo1) { | |
9404 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9405 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) { | |
9406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p."); | |
9407 | return NULL; | |
9408 | } | |
9409 | } | |
9410 | { | |
4268f798 | 9411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9412 | _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1); |
b37c7e1d | 9413 | |
4268f798 RD |
9414 | wxPyEndAllowThreads(__tstate); |
9415 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9416 | } _resultobj = Py_BuildValue("i",_result); |
9417 | return _resultobj; | |
9418 | } | |
9419 | ||
9420 | #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj) | |
9421 | static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9422 | PyObject * _resultobj; | |
9423 | wxMimeTypesManager * _arg0; | |
9424 | PyObject * _argo0 = 0; | |
9425 | char *_kwnames[] = { "self", NULL }; | |
9426 | ||
9427 | self = self; | |
9428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0)) | |
9429 | return NULL; | |
9430 | if (_argo0) { | |
9431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p."); | |
9434 | return NULL; | |
9435 | } | |
9436 | } | |
9437 | { | |
4268f798 | 9438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9439 | delete_wxMimeTypesManager(_arg0); |
b37c7e1d | 9440 | |
4268f798 RD |
9441 | wxPyEndAllowThreads(__tstate); |
9442 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9443 | } Py_INCREF(Py_None); |
9444 | _resultobj = Py_None; | |
9445 | return _resultobj; | |
9446 | } | |
9447 | ||
72797a7d RD |
9448 | static void *SwigwxPyArtProviderTowxObject(void *ptr) { |
9449 | wxPyArtProvider *src; | |
9450 | wxObject *dest; | |
9451 | src = (wxPyArtProvider *) ptr; | |
9452 | dest = (wxObject *) src; | |
9453 | return (void *) dest; | |
9454 | } | |
9455 | ||
9456 | #define new_wxArtProvider() (new wxPyArtProvider()) | |
9457 | static PyObject *_wrap_new_wxArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9458 | PyObject * _resultobj; | |
9459 | wxPyArtProvider * _result; | |
9460 | char *_kwnames[] = { NULL }; | |
9461 | char _ptemp[128]; | |
9462 | ||
9463 | self = self; | |
9464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxArtProvider",_kwnames)) | |
9465 | return NULL; | |
9466 | { | |
9467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9468 | _result = (wxPyArtProvider *)new_wxArtProvider(); | |
9469 | ||
9470 | wxPyEndAllowThreads(__tstate); | |
9471 | if (PyErr_Occurred()) return NULL; | |
9472 | } if (_result) { | |
9473 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyArtProvider_p"); | |
9474 | _resultobj = Py_BuildValue("s",_ptemp); | |
9475 | } else { | |
9476 | Py_INCREF(Py_None); | |
9477 | _resultobj = Py_None; | |
9478 | } | |
9479 | return _resultobj; | |
9480 | } | |
9481 | ||
9482 | #define wxArtProvider__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
9483 | static PyObject *_wrap_wxArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9484 | PyObject * _resultobj; | |
9485 | wxPyArtProvider * _arg0; | |
9486 | PyObject * _arg1; | |
9487 | PyObject * _arg2; | |
9488 | PyObject * _argo0 = 0; | |
9489 | PyObject * _obj1 = 0; | |
9490 | PyObject * _obj2 = 0; | |
9491 | char *_kwnames[] = { "self","self","_class", NULL }; | |
9492 | ||
9493 | self = self; | |
9494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxArtProvider__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9495 | return NULL; | |
9496 | if (_argo0) { | |
9497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider__setCallbackInfo. Expected _wxPyArtProvider_p."); | |
9500 | return NULL; | |
9501 | } | |
9502 | } | |
9503 | { | |
9504 | _arg1 = _obj1; | |
9505 | } | |
9506 | { | |
9507 | _arg2 = _obj2; | |
9508 | } | |
9509 | { | |
9510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9511 | wxArtProvider__setCallbackInfo(_arg0,_arg1,_arg2); | |
9512 | ||
9513 | wxPyEndAllowThreads(__tstate); | |
9514 | if (PyErr_Occurred()) return NULL; | |
9515 | } Py_INCREF(Py_None); | |
9516 | _resultobj = Py_None; | |
9517 | return _resultobj; | |
9518 | } | |
9519 | ||
9520 | static PyObject *_wrap_wxArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9521 | PyObject * _resultobj; | |
9522 | wxPyArtProvider * _arg0; | |
9523 | PyObject * _argo0 = 0; | |
9524 | char *_kwnames[] = { "provider", NULL }; | |
9525 | ||
9526 | self = self; | |
9527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_PushProvider",_kwnames,&_argo0)) | |
9528 | return NULL; | |
9529 | if (_argo0) { | |
9530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_PushProvider. Expected _wxPyArtProvider_p."); | |
9533 | return NULL; | |
9534 | } | |
9535 | } | |
9536 | { | |
9537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9538 | wxPyArtProvider::PushProvider(_arg0); | |
9539 | ||
9540 | wxPyEndAllowThreads(__tstate); | |
9541 | if (PyErr_Occurred()) return NULL; | |
9542 | } Py_INCREF(Py_None); | |
9543 | _resultobj = Py_None; | |
9544 | return _resultobj; | |
9545 | } | |
9546 | ||
9547 | static PyObject *_wrap_wxArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9548 | PyObject * _resultobj; | |
9549 | bool _result; | |
9550 | char *_kwnames[] = { NULL }; | |
9551 | ||
9552 | self = self; | |
9553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxArtProvider_PopProvider",_kwnames)) | |
9554 | return NULL; | |
9555 | { | |
9556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9557 | _result = (bool )wxPyArtProvider::PopProvider(); | |
9558 | ||
9559 | wxPyEndAllowThreads(__tstate); | |
9560 | if (PyErr_Occurred()) return NULL; | |
9561 | } _resultobj = Py_BuildValue("i",_result); | |
9562 | return _resultobj; | |
9563 | } | |
9564 | ||
9565 | static PyObject *_wrap_wxArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9566 | PyObject * _resultobj; | |
9567 | bool _result; | |
9568 | wxPyArtProvider * _arg0; | |
9569 | PyObject * _argo0 = 0; | |
9570 | char *_kwnames[] = { "provider", NULL }; | |
9571 | ||
9572 | self = self; | |
9573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_RemoveProvider",_kwnames,&_argo0)) | |
9574 | return NULL; | |
9575 | if (_argo0) { | |
9576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_RemoveProvider. Expected _wxPyArtProvider_p."); | |
9579 | return NULL; | |
9580 | } | |
9581 | } | |
9582 | { | |
9583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9584 | _result = (bool )wxPyArtProvider::RemoveProvider(_arg0); | |
9585 | ||
9586 | wxPyEndAllowThreads(__tstate); | |
9587 | if (PyErr_Occurred()) return NULL; | |
9588 | } _resultobj = Py_BuildValue("i",_result); | |
9589 | return _resultobj; | |
9590 | } | |
9591 | ||
9592 | static PyObject *_wrap_wxArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9593 | PyObject * _resultobj; | |
9594 | wxBitmap * _result; | |
9595 | wxString * _arg0; | |
9596 | wxString * _arg1 = (wxString *) &wxPyART_OTHER; | |
9597 | wxSize * _arg2 = (wxSize *) &wxDefaultSize; | |
9598 | PyObject * _obj0 = 0; | |
9599 | PyObject * _obj1 = 0; | |
9600 | wxSize temp; | |
9601 | PyObject * _obj2 = 0; | |
9602 | char *_kwnames[] = { "id","client","size", NULL }; | |
9603 | char _ptemp[128]; | |
9604 | ||
9605 | self = self; | |
9606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetBitmap",_kwnames,&_obj0,&_obj1,&_obj2)) | |
9607 | return NULL; | |
9608 | { | |
9609 | _arg0 = wxString_in_helper(_obj0); | |
9610 | if (_arg0 == NULL) | |
9611 | return NULL; | |
9612 | } | |
9613 | if (_obj1) | |
9614 | { | |
9615 | _arg1 = wxString_in_helper(_obj1); | |
9616 | if (_arg1 == NULL) | |
9617 | return NULL; | |
9618 | } | |
9619 | if (_obj2) | |
9620 | { | |
9621 | _arg2 = &temp; | |
9622 | if (! wxSize_helper(_obj2, &_arg2)) | |
9623 | return NULL; | |
9624 | } | |
9625 | { | |
9626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9627 | _result = new wxBitmap (wxPyArtProvider::GetBitmap(*_arg0,*_arg1,*_arg2)); | |
9628 | ||
9629 | wxPyEndAllowThreads(__tstate); | |
9630 | if (PyErr_Occurred()) return NULL; | |
9631 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
9632 | _resultobj = Py_BuildValue("s",_ptemp); | |
9633 | { | |
9634 | if (_obj0) | |
9635 | delete _arg0; | |
9636 | } | |
9637 | { | |
9638 | if (_obj1) | |
9639 | delete _arg1; | |
9640 | } | |
9641 | return _resultobj; | |
9642 | } | |
9643 | ||
9644 | static PyObject *_wrap_wxArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9645 | PyObject * _resultobj; | |
9646 | wxIcon * _result; | |
9647 | wxString * _arg0; | |
9648 | wxString * _arg1 = (wxString *) &wxPyART_OTHER; | |
9649 | wxSize * _arg2 = (wxSize *) &wxDefaultSize; | |
9650 | PyObject * _obj0 = 0; | |
9651 | PyObject * _obj1 = 0; | |
9652 | wxSize temp; | |
9653 | PyObject * _obj2 = 0; | |
9654 | char *_kwnames[] = { "id","client","size", NULL }; | |
9655 | char _ptemp[128]; | |
9656 | ||
9657 | self = self; | |
9658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetIcon",_kwnames,&_obj0,&_obj1,&_obj2)) | |
9659 | return NULL; | |
9660 | { | |
9661 | _arg0 = wxString_in_helper(_obj0); | |
9662 | if (_arg0 == NULL) | |
9663 | return NULL; | |
9664 | } | |
9665 | if (_obj1) | |
9666 | { | |
9667 | _arg1 = wxString_in_helper(_obj1); | |
9668 | if (_arg1 == NULL) | |
9669 | return NULL; | |
9670 | } | |
9671 | if (_obj2) | |
9672 | { | |
9673 | _arg2 = &temp; | |
9674 | if (! wxSize_helper(_obj2, &_arg2)) | |
9675 | return NULL; | |
9676 | } | |
9677 | { | |
9678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9679 | _result = new wxIcon (wxPyArtProvider::GetIcon(*_arg0,*_arg1,*_arg2)); | |
9680 | ||
9681 | wxPyEndAllowThreads(__tstate); | |
9682 | if (PyErr_Occurred()) return NULL; | |
9683 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); | |
9684 | _resultobj = Py_BuildValue("s",_ptemp); | |
9685 | { | |
9686 | if (_obj0) | |
9687 | delete _arg0; | |
9688 | } | |
9689 | { | |
9690 | if (_obj1) | |
9691 | delete _arg1; | |
9692 | } | |
9693 | return _resultobj; | |
9694 | } | |
9695 | ||
9696 | static PyObject *_wrap_wxArtProvider_CleanUpProviders(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9697 | PyObject * _resultobj; | |
9698 | char *_kwnames[] = { NULL }; | |
9699 | ||
9700 | self = self; | |
9701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxArtProvider_CleanUpProviders",_kwnames)) | |
9702 | return NULL; | |
9703 | { | |
9704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9705 | wxPyArtProvider::CleanUpProviders(); | |
9706 | ||
9707 | wxPyEndAllowThreads(__tstate); | |
9708 | if (PyErr_Occurred()) return NULL; | |
9709 | } Py_INCREF(Py_None); | |
9710 | _resultobj = Py_None; | |
9711 | return _resultobj; | |
9712 | } | |
9713 | ||
7dbce44a RD |
9714 | static void *SwigwxFileHistoryTowxObject(void *ptr) { |
9715 | wxFileHistory *src; | |
9716 | wxObject *dest; | |
9717 | src = (wxFileHistory *) ptr; | |
9718 | dest = (wxObject *) src; | |
9719 | return (void *) dest; | |
9720 | } | |
9721 | ||
9722 | #define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0)) | |
9723 | static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9724 | PyObject * _resultobj; | |
9725 | wxFileHistory * _result; | |
9726 | int _arg0 = (int ) 9; | |
9727 | char *_kwnames[] = { "maxFiles", NULL }; | |
9728 | char _ptemp[128]; | |
9729 | ||
9730 | self = self; | |
9731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0)) | |
9732 | return NULL; | |
9733 | { | |
4268f798 | 9734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9735 | _result = (wxFileHistory *)new_wxFileHistory(_arg0); |
7dbce44a | 9736 | |
4268f798 RD |
9737 | wxPyEndAllowThreads(__tstate); |
9738 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9739 | } if (_result) { |
9740 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p"); | |
9741 | _resultobj = Py_BuildValue("s",_ptemp); | |
9742 | } else { | |
9743 | Py_INCREF(Py_None); | |
9744 | _resultobj = Py_None; | |
9745 | } | |
9746 | return _resultobj; | |
9747 | } | |
9748 | ||
9749 | #define delete_wxFileHistory(_swigobj) (delete _swigobj) | |
9750 | static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9751 | PyObject * _resultobj; | |
9752 | wxFileHistory * _arg0; | |
9753 | PyObject * _argo0 = 0; | |
9754 | char *_kwnames[] = { "self", NULL }; | |
9755 | ||
9756 | self = self; | |
9757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0)) | |
9758 | return NULL; | |
9759 | if (_argo0) { | |
9760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileHistory. Expected _wxFileHistory_p."); | |
9763 | return NULL; | |
9764 | } | |
9765 | } | |
9766 | { | |
4268f798 | 9767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9768 | delete_wxFileHistory(_arg0); |
7dbce44a | 9769 | |
4268f798 RD |
9770 | wxPyEndAllowThreads(__tstate); |
9771 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9772 | } Py_INCREF(Py_None); |
9773 | _resultobj = Py_None; | |
9774 | return _resultobj; | |
9775 | } | |
9776 | ||
9777 | #define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0)) | |
9778 | static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9779 | PyObject * _resultobj; | |
9780 | wxFileHistory * _arg0; | |
9781 | wxString * _arg1; | |
9782 | PyObject * _argo0 = 0; | |
9783 | PyObject * _obj1 = 0; | |
9784 | char *_kwnames[] = { "self","file", NULL }; | |
9785 | ||
9786 | self = self; | |
9787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1)) | |
9788 | return NULL; | |
9789 | if (_argo0) { | |
9790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p."); | |
9793 | return NULL; | |
9794 | } | |
9795 | } | |
9796 | { | |
c8bc7bb8 RD |
9797 | _arg1 = wxString_in_helper(_obj1); |
9798 | if (_arg1 == NULL) | |
7dbce44a | 9799 | return NULL; |
7dbce44a RD |
9800 | } |
9801 | { | |
4268f798 | 9802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9803 | wxFileHistory_AddFileToHistory(_arg0,*_arg1); |
7dbce44a | 9804 | |
4268f798 RD |
9805 | wxPyEndAllowThreads(__tstate); |
9806 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9807 | } Py_INCREF(Py_None); |
9808 | _resultobj = Py_None; | |
9809 | { | |
9810 | if (_obj1) | |
9811 | delete _arg1; | |
9812 | } | |
9813 | return _resultobj; | |
9814 | } | |
9815 | ||
9816 | #define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0)) | |
9817 | static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9818 | PyObject * _resultobj; | |
9819 | wxFileHistory * _arg0; | |
9820 | int _arg1; | |
9821 | PyObject * _argo0 = 0; | |
9822 | char *_kwnames[] = { "self","i", NULL }; | |
9823 | ||
9824 | self = self; | |
9825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1)) | |
9826 | return NULL; | |
9827 | if (_argo0) { | |
9828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p."); | |
9831 | return NULL; | |
9832 | } | |
9833 | } | |
9834 | { | |
4268f798 | 9835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9836 | wxFileHistory_RemoveFileFromHistory(_arg0,_arg1); |
7dbce44a | 9837 | |
4268f798 RD |
9838 | wxPyEndAllowThreads(__tstate); |
9839 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9840 | } Py_INCREF(Py_None); |
9841 | _resultobj = Py_None; | |
9842 | return _resultobj; | |
9843 | } | |
9844 | ||
9845 | #define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles()) | |
9846 | static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9847 | PyObject * _resultobj; | |
9848 | int _result; | |
9849 | wxFileHistory * _arg0; | |
9850 | PyObject * _argo0 = 0; | |
9851 | char *_kwnames[] = { "self", NULL }; | |
9852 | ||
9853 | self = self; | |
9854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0)) | |
9855 | return NULL; | |
9856 | if (_argo0) { | |
9857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p."); | |
9860 | return NULL; | |
9861 | } | |
9862 | } | |
9863 | { | |
4268f798 | 9864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9865 | _result = (int )wxFileHistory_GetMaxFiles(_arg0); |
7dbce44a | 9866 | |
4268f798 RD |
9867 | wxPyEndAllowThreads(__tstate); |
9868 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9869 | } _resultobj = Py_BuildValue("i",_result); |
9870 | return _resultobj; | |
9871 | } | |
9872 | ||
9873 | #define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0)) | |
9874 | static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9875 | PyObject * _resultobj; | |
9876 | wxFileHistory * _arg0; | |
9877 | wxMenu * _arg1; | |
9878 | PyObject * _argo0 = 0; | |
9879 | PyObject * _argo1 = 0; | |
9880 | char *_kwnames[] = { "self","menu", NULL }; | |
9881 | ||
9882 | self = self; | |
9883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1)) | |
9884 | return NULL; | |
9885 | if (_argo0) { | |
9886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p."); | |
9889 | return NULL; | |
9890 | } | |
9891 | } | |
9892 | if (_argo1) { | |
9893 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9894 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p."); | |
9896 | return NULL; | |
9897 | } | |
9898 | } | |
9899 | { | |
4268f798 | 9900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9901 | wxFileHistory_UseMenu(_arg0,_arg1); |
7dbce44a | 9902 | |
4268f798 RD |
9903 | wxPyEndAllowThreads(__tstate); |
9904 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9905 | } Py_INCREF(Py_None); |
9906 | _resultobj = Py_None; | |
9907 | return _resultobj; | |
9908 | } | |
9909 | ||
9910 | #define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0)) | |
9911 | static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9912 | PyObject * _resultobj; | |
9913 | wxFileHistory * _arg0; | |
9914 | wxMenu * _arg1; | |
9915 | PyObject * _argo0 = 0; | |
9916 | PyObject * _argo1 = 0; | |
9917 | char *_kwnames[] = { "self","menu", NULL }; | |
9918 | ||
9919 | self = self; | |
9920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1)) | |
9921 | return NULL; | |
9922 | if (_argo0) { | |
9923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p."); | |
9926 | return NULL; | |
9927 | } | |
9928 | } | |
9929 | if (_argo1) { | |
9930 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9931 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p."); | |
9933 | return NULL; | |
9934 | } | |
9935 | } | |
9936 | { | |
4268f798 | 9937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9938 | wxFileHistory_RemoveMenu(_arg0,_arg1); |
7dbce44a | 9939 | |
4268f798 RD |
9940 | wxPyEndAllowThreads(__tstate); |
9941 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9942 | } Py_INCREF(Py_None); |
9943 | _resultobj = Py_None; | |
9944 | return _resultobj; | |
9945 | } | |
9946 | ||
9947 | #define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0)) | |
9948 | static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9949 | PyObject * _resultobj; | |
9950 | wxFileHistory * _arg0; | |
9951 | wxConfigBase * _arg1; | |
9952 | PyObject * _argo0 = 0; | |
9953 | PyObject * _argo1 = 0; | |
9954 | char *_kwnames[] = { "self","config", NULL }; | |
9955 | ||
9956 | self = self; | |
9957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1)) | |
9958 | return NULL; | |
9959 | if (_argo0) { | |
9960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p."); | |
9963 | return NULL; | |
9964 | } | |
9965 | } | |
9966 | if (_argo1) { | |
9967 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9968 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
9969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p."); | |
9970 | return NULL; | |
9971 | } | |
9972 | } | |
9973 | { | |
4268f798 | 9974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9975 | wxFileHistory_Load(_arg0,*_arg1); |
7dbce44a | 9976 | |
4268f798 RD |
9977 | wxPyEndAllowThreads(__tstate); |
9978 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9979 | } Py_INCREF(Py_None); |
9980 | _resultobj = Py_None; | |
9981 | return _resultobj; | |
9982 | } | |
9983 | ||
9984 | #define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0)) | |
9985 | static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9986 | PyObject * _resultobj; | |
9987 | wxFileHistory * _arg0; | |
9988 | wxConfigBase * _arg1; | |
9989 | PyObject * _argo0 = 0; | |
9990 | PyObject * _argo1 = 0; | |
9991 | char *_kwnames[] = { "self","config", NULL }; | |
9992 | ||
9993 | self = self; | |
9994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1)) | |
9995 | return NULL; | |
9996 | if (_argo0) { | |
9997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p."); | |
10000 | return NULL; | |
10001 | } | |
10002 | } | |
10003 | if (_argo1) { | |
10004 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10005 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
10006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p."); | |
10007 | return NULL; | |
10008 | } | |
10009 | } | |
10010 | { | |
4268f798 | 10011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10012 | wxFileHistory_Save(_arg0,*_arg1); |
7dbce44a | 10013 | |
4268f798 RD |
10014 | wxPyEndAllowThreads(__tstate); |
10015 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10016 | } Py_INCREF(Py_None); |
10017 | _resultobj = Py_None; | |
10018 | return _resultobj; | |
10019 | } | |
10020 | ||
10021 | #define wxFileHistory_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu()) | |
10022 | static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10023 | PyObject * _resultobj; | |
10024 | wxFileHistory * _arg0; | |
10025 | PyObject * _argo0 = 0; | |
10026 | char *_kwnames[] = { "self", NULL }; | |
10027 | ||
10028 | self = self; | |
10029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0)) | |
10030 | return NULL; | |
10031 | if (_argo0) { | |
10032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p."); | |
10035 | return NULL; | |
10036 | } | |
10037 | } | |
10038 | { | |
4268f798 | 10039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10040 | wxFileHistory_AddFilesToMenu(_arg0); |
7dbce44a | 10041 | |
4268f798 RD |
10042 | wxPyEndAllowThreads(__tstate); |
10043 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10044 | } Py_INCREF(Py_None); |
10045 | _resultobj = Py_None; | |
10046 | return _resultobj; | |
10047 | } | |
10048 | ||
68bc8549 RD |
10049 | #define wxFileHistory_AddFilesToThisMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0)) |
10050 | static PyObject *_wrap_wxFileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7dbce44a RD |
10051 | PyObject * _resultobj; |
10052 | wxFileHistory * _arg0; | |
10053 | wxMenu * _arg1; | |
10054 | PyObject * _argo0 = 0; | |
10055 | PyObject * _argo1 = 0; | |
10056 | char *_kwnames[] = { "self","menu", NULL }; | |
10057 | ||
10058 | self = self; | |
68bc8549 | 10059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToThisMenu",_kwnames,&_argo0,&_argo1)) |
7dbce44a RD |
10060 | return NULL; |
10061 | if (_argo0) { | |
10062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
68bc8549 | 10064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToThisMenu. Expected _wxFileHistory_p."); |
7dbce44a RD |
10065 | return NULL; |
10066 | } | |
10067 | } | |
10068 | if (_argo1) { | |
10069 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10070 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
68bc8549 | 10071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToThisMenu. Expected _wxMenu_p."); |
7dbce44a RD |
10072 | return NULL; |
10073 | } | |
10074 | } | |
10075 | { | |
4268f798 | 10076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
68bc8549 | 10077 | wxFileHistory_AddFilesToThisMenu(_arg0,_arg1); |
7dbce44a | 10078 | |
4268f798 RD |
10079 | wxPyEndAllowThreads(__tstate); |
10080 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10081 | } Py_INCREF(Py_None); |
10082 | _resultobj = Py_None; | |
10083 | return _resultobj; | |
10084 | } | |
10085 | ||
10086 | #define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0)) | |
10087 | static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10088 | PyObject * _resultobj; | |
10089 | wxString * _result; | |
10090 | wxFileHistory * _arg0; | |
10091 | int _arg1; | |
10092 | PyObject * _argo0 = 0; | |
10093 | char *_kwnames[] = { "self","i", NULL }; | |
10094 | ||
10095 | self = self; | |
10096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1)) | |
10097 | return NULL; | |
10098 | if (_argo0) { | |
10099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p."); | |
10102 | return NULL; | |
10103 | } | |
10104 | } | |
10105 | { | |
4268f798 | 10106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10107 | _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1)); |
7dbce44a | 10108 | |
4268f798 RD |
10109 | wxPyEndAllowThreads(__tstate); |
10110 | if (PyErr_Occurred()) return NULL; | |
7dbce44a | 10111 | }{ |
c8bc7bb8 RD |
10112 | #if wxUSE_UNICODE |
10113 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10114 | #else | |
7dbce44a | 10115 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10116 | #endif |
7dbce44a RD |
10117 | } |
10118 | { | |
10119 | delete _result; | |
10120 | } | |
10121 | return _resultobj; | |
10122 | } | |
10123 | ||
10124 | #define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount()) | |
10125 | static PyObject *_wrap_wxFileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10126 | PyObject * _resultobj; | |
10127 | int _result; | |
10128 | wxFileHistory * _arg0; | |
10129 | PyObject * _argo0 = 0; | |
10130 | char *_kwnames[] = { "self", NULL }; | |
10131 | ||
10132 | self = self; | |
10133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetCount",_kwnames,&_argo0)) | |
10134 | return NULL; | |
10135 | if (_argo0) { | |
10136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetCount. Expected _wxFileHistory_p."); | |
10139 | return NULL; | |
10140 | } | |
10141 | } | |
10142 | { | |
4268f798 | 10143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10144 | _result = (int )wxFileHistory_GetCount(_arg0); |
7dbce44a | 10145 | |
4268f798 RD |
10146 | wxPyEndAllowThreads(__tstate); |
10147 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10148 | } _resultobj = Py_BuildValue("i",_result); |
10149 | return _resultobj; | |
10150 | } | |
10151 | ||
10152 | #define wxFileHistory_GetNoHistoryFiles(_swigobj) (_swigobj->GetNoHistoryFiles()) | |
10153 | static PyObject *_wrap_wxFileHistory_GetNoHistoryFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10154 | PyObject * _resultobj; | |
10155 | int _result; | |
10156 | wxFileHistory * _arg0; | |
10157 | PyObject * _argo0 = 0; | |
10158 | char *_kwnames[] = { "self", NULL }; | |
10159 | ||
10160 | self = self; | |
10161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetNoHistoryFiles",_kwnames,&_argo0)) | |
10162 | return NULL; | |
10163 | if (_argo0) { | |
10164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetNoHistoryFiles. Expected _wxFileHistory_p."); | |
10167 | return NULL; | |
10168 | } | |
10169 | } | |
10170 | { | |
4268f798 | 10171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10172 | _result = (int )wxFileHistory_GetNoHistoryFiles(_arg0); |
7dbce44a | 10173 | |
4268f798 RD |
10174 | wxPyEndAllowThreads(__tstate); |
10175 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10176 | } _resultobj = Py_BuildValue("i",_result); |
10177 | return _resultobj; | |
10178 | } | |
10179 | ||
bb0054cd | 10180 | static PyMethodDef misc2cMethods[] = { |
7dbce44a RD |
10181 | { "wxFileHistory_GetNoHistoryFiles", (PyCFunction) _wrap_wxFileHistory_GetNoHistoryFiles, METH_VARARGS | METH_KEYWORDS }, |
10182 | { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
10183 | { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
68bc8549 | 10184 | { "wxFileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, |
7dbce44a RD |
10185 | { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, |
10186 | { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
10187 | { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
10188 | { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
10189 | { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
10190 | { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
10191 | { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
10192 | { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
10193 | { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
10194 | { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
72797a7d RD |
10195 | { "wxArtProvider_CleanUpProviders", (PyCFunction) _wrap_wxArtProvider_CleanUpProviders, METH_VARARGS | METH_KEYWORDS }, |
10196 | { "wxArtProvider_GetIcon", (PyCFunction) _wrap_wxArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10197 | { "wxArtProvider_GetBitmap", (PyCFunction) _wrap_wxArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10198 | { "wxArtProvider_RemoveProvider", (PyCFunction) _wrap_wxArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
10199 | { "wxArtProvider_PopProvider", (PyCFunction) _wrap_wxArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
10200 | { "wxArtProvider_PushProvider", (PyCFunction) _wrap_wxArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
10201 | { "wxArtProvider__setCallbackInfo", (PyCFunction) _wrap_wxArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
10202 | { "new_wxArtProvider", (PyCFunction) _wrap_new_wxArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
10203 | { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, |
10204 | { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
10205 | { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
10206 | { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
10207 | { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
10208 | { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
10209 | { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
10210 | { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
10211 | { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
10212 | { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
10213 | { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
10214 | { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
10215 | { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
10216 | { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
10217 | { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
10218 | { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
10219 | { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
10220 | { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
10221 | { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
10222 | { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
10223 | { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
10224 | { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
10225 | { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
10226 | { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10227 | { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
10228 | { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
10229 | { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
10230 | { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
10231 | { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
10232 | { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
10233 | { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
10234 | { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
10235 | { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
10236 | { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
10237 | { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
10238 | { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
10239 | { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
10240 | { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
10241 | { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10242 | { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
10243 | { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
10244 | { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
10245 | { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 RD |
10246 | { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS }, |
10247 | { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10248 | { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
10249 | { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
185d7c3e RD |
10250 | { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, |
10251 | { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
10252 | { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
10253 | { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
10254 | { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
10255 | { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
10256 | { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
10257 | { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
10258 | { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
10259 | { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
10260 | { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
10261 | { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
10262 | { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
10263 | { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
10264 | { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
10265 | { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
10266 | { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
10267 | { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
10268 | { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
10269 | { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
10270 | { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
10271 | { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
10272 | { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
10273 | { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
10274 | { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
10275 | { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
10276 | { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
10277 | { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
10278 | { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
10279 | { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
10280 | { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
10281 | { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10282 | { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
10283 | { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
10284 | { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
10285 | { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
10286 | { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
10287 | { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
10288 | { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
10289 | { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
10290 | { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
10291 | { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 10292 | { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
185d7c3e | 10293 | { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
10294 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, |
10295 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
10296 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
10297 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
10298 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
10299 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
10300 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
10301 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10302 | { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
10303 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, |
10304 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
10305 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
10306 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
10307 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
10308 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
10309 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
10310 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
10311 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 10312 | { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 10313 | { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 10314 | { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS }, |
19e30148 RD |
10315 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, |
10316 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
10317 | { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, |
10318 | { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10319 | { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
10320 | { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
10321 | { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10322 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, |
10323 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10324 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
10325 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
10326 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10327 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
10328 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
10329 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10330 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 10331 | { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10332 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, |
10333 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10334 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
10335 | { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, |
10336 | { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
10337 | { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10338 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, |
10339 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10340 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10341 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
10342 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10343 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
10344 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
10345 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
10346 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
10347 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
10348 | { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10349 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, | |
10350 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
10351 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
10352 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10353 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
10354 | { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS }, |
10355 | { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
10356 | { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
10357 | { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
68320e40 | 10358 | { "delete_wxStopWatch", (PyCFunction) _wrap_delete_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
b37c7e1d | 10359 | { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10360 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, |
10361 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
10362 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
10363 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
10364 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
10365 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
10366 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
10367 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
10368 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
10369 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
10370 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
10371 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
10372 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
10373 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
10374 | { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS }, | |
10375 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
10e07c70 | 10376 | { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 10377 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
cdf14688 RD |
10378 | { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, |
10379 | { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
10380 | { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
10381 | { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10382 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
10383 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
10384 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
10385 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10386 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
10387 | { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, |
10388 | { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
10389 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, |
10390 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f RD |
10391 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, |
10392 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
10393 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, |
10394 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10395 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, |
10396 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
10397 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, |
10398 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10399 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10400 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10401 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10402 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10403 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10404 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10405 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10406 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
10407 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
edf2f43e RD |
10408 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, |
10409 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10410 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
10411 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10412 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
10413 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
e67409dc RD |
10414 | { "wxSystemSettings_SetScreenType", (PyCFunction) _wrap_wxSystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, |
10415 | { "wxSystemSettings_GetScreenType", (PyCFunction) _wrap_wxSystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
10416 | { "wxSystemSettings_HasFeature", (PyCFunction) _wrap_wxSystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, |
10417 | { "wxSystemSettings_GetMetric", (PyCFunction) _wrap_wxSystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
10418 | { "wxSystemSettings_GetFont", (PyCFunction) _wrap_wxSystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10419 | { "wxSystemSettings_GetColour", (PyCFunction) _wrap_wxSystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 | 10420 | { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10421 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, |
0b85cc38 | 10422 | { "wxSafeShowMessage", (PyCFunction) _wrap_wxSafeShowMessage, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10423 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, |
10424 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
10425 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
10426 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10427 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, | |
10428 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
10429 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
10430 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
10431 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
10432 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
10433 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10434 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, |
10435 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
10436 | { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS }, |
10437 | { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
10438 | { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
10439 | { "wxWakeUpMainThread", (PyCFunction) _wrap_wxWakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10440 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10441 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, |
6e18ca6c | 10442 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 RD |
10443 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, |
10444 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10445 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, |
10446 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
10447 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
10448 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
10449 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
10450 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
10451 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10452 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
10453 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
2a74d141 | 10454 | { "wxGetTopLevelParent", (PyCFunction) _wrap_wxGetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, |
25832b3f | 10455 | { "wxFlushEvents", (PyCFunction) _wrap_wxFlushEvents, METH_VARARGS | METH_KEYWORDS }, |
493f1553 RD |
10456 | { "wxCheckForInterrupt", (PyCFunction) _wrap_wxCheckForInterrupt, METH_VARARGS | METH_KEYWORDS }, |
10457 | { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
10458 | { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10459 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, |
10460 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 10461 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, |
91c41b30 RD |
10462 | { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, |
10463 | { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
1e7ecb7b RD |
10464 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, |
10465 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
10466 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10467 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10468 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10469 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, |
10470 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
10471 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
10472 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
10473 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
10474 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10475 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, |
06c0fba4 | 10476 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, |
7cdaed0b | 10477 | { "wxDirSelector", (PyCFunction) _wrap_wxDirSelector, METH_VARARGS | METH_KEYWORDS }, |
a541c325 RD |
10478 | { "wxSaveFileSelector", (PyCFunction) _wrap_wxSaveFileSelector, METH_VARARGS | METH_KEYWORDS }, |
10479 | { "wxLoadFileSelector", (PyCFunction) _wrap_wxLoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 10480 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, |
bb0054cd RD |
10481 | { NULL, NULL } |
10482 | }; | |
1d99702e RD |
10483 | #ifdef __cplusplus |
10484 | } | |
10485 | #endif | |
10486 | /* | |
10487 | * This table is used by the pointer type-checker | |
10488 | */ | |
10489 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
c368d904 | 10490 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, |
1d99702e | 10491 | { "_signed_long","_long",0}, |
b1462dfa | 10492 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10493 | { "_wxPrintQuality","_int",0}, |
10494 | { "_wxPrintQuality","_signed_int",0}, | |
10495 | { "_wxPrintQuality","_unsigned_int",0}, | |
10496 | { "_wxPrintQuality","_wxWindowID",0}, | |
10497 | { "_wxPrintQuality","_uint",0}, | |
10498 | { "_wxPrintQuality","_EBool",0}, | |
10499 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10500 | { "_wxPrintQuality","_time_t",0}, |
76bfdc78 RD |
10501 | { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog}, |
10502 | { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog}, | |
f6bcfd97 | 10503 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, |
f6bcfd97 | 10504 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, |
f6bcfd97 | 10505 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, |
f6bcfd97 | 10506 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, |
1d99702e | 10507 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10508 | { "_long","_unsigned_long",0}, |
10509 | { "_long","_signed_long",0}, | |
b1462dfa | 10510 | { "_size_t","_wxCoord",0}, |
1d99702e | 10511 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10512 | { "_size_t","_time_t",0}, |
1d99702e RD |
10513 | { "_size_t","_unsigned_int",0}, |
10514 | { "_size_t","_int",0}, | |
10515 | { "_size_t","_wxWindowID",0}, | |
10516 | { "_size_t","_uint",0}, | |
b1462dfa | 10517 | { "_uint","_wxCoord",0}, |
1d99702e | 10518 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10519 | { "_uint","_time_t",0}, |
1d99702e RD |
10520 | { "_uint","_size_t",0}, |
10521 | { "_uint","_unsigned_int",0}, | |
10522 | { "_uint","_int",0}, | |
10523 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10524 | { "_wxChar","_char",0}, |
f6bcfd97 | 10525 | { "_char","_wxChar",0}, |
cdf14688 | 10526 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10527 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10528 | { "_EBool","_wxPrintQuality",0}, |
10529 | { "_EBool","_signed_int",0}, | |
10530 | { "_EBool","_int",0}, | |
10531 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10532 | { "_unsigned_long","_long",0}, |
cdf14688 | 10533 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 10534 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10535 | { "_signed_int","_wxPrintQuality",0}, |
10536 | { "_signed_int","_EBool",0}, | |
10537 | { "_signed_int","_wxWindowID",0}, | |
10538 | { "_signed_int","_int",0}, | |
7dbce44a | 10539 | { "_WXTYPE","_wxDateTime_t",0}, |
1d99702e RD |
10540 | { "_WXTYPE","_short",0}, |
10541 | { "_WXTYPE","_signed_short",0}, | |
10542 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 | 10543 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, |
7dbce44a | 10544 | { "_unsigned_short","_wxDateTime_t",0}, |
1d99702e RD |
10545 | { "_unsigned_short","_WXTYPE",0}, |
10546 | { "_unsigned_short","_short",0}, | |
7dbce44a | 10547 | { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject}, |
72797a7d | 10548 | { "_wxObject","_wxPyArtProvider",SwigwxPyArtProviderTowxObject}, |
493f1553 | 10549 | { "_wxObject","_wxWave",SwigwxWaveTowxObject}, |
9416aa89 | 10550 | { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject}, |
9416aa89 | 10551 | { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject}, |
9416aa89 | 10552 | { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject}, |
9416aa89 | 10553 | { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject}, |
9416aa89 | 10554 | { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject}, |
9416aa89 | 10555 | { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject}, |
1d99702e RD |
10556 | { "_signed_short","_WXTYPE",0}, |
10557 | { "_signed_short","_short",0}, | |
1d99702e | 10558 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10559 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10560 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10561 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10562 | { "_unsigned_int","_size_t",0}, |
10563 | { "_unsigned_int","_uint",0}, | |
10564 | { "_unsigned_int","_wxWindowID",0}, | |
10565 | { "_unsigned_int","_int",0}, | |
7dbce44a | 10566 | { "_short","_wxDateTime_t",0}, |
1d99702e RD |
10567 | { "_short","_WXTYPE",0}, |
10568 | { "_short","_unsigned_short",0}, | |
10569 | { "_short","_signed_short",0}, | |
b1462dfa | 10570 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10571 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10572 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10573 | { "_wxWindowID","_size_t",0}, |
10574 | { "_wxWindowID","_EBool",0}, | |
10575 | { "_wxWindowID","_uint",0}, | |
10576 | { "_wxWindowID","_int",0}, | |
10577 | { "_wxWindowID","_signed_int",0}, | |
10578 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10579 | { "_int","_wxCoord",0}, |
1d99702e | 10580 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10581 | { "_int","_time_t",0}, |
1d99702e RD |
10582 | { "_int","_size_t",0}, |
10583 | { "_int","_EBool",0}, | |
10584 | { "_int","_uint",0}, | |
10585 | { "_int","_wxWindowID",0}, | |
10586 | { "_int","_unsigned_int",0}, | |
10587 | { "_int","_signed_int",0}, | |
7dbce44a RD |
10588 | { "_wxDateTime_t","_unsigned_short",0}, |
10589 | { "_wxDateTime_t","_short",0}, | |
10590 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
10591 | { "_time_t","_wxCoord",0}, |
10592 | { "_time_t","_wxPrintQuality",0}, | |
10593 | { "_time_t","_unsigned_int",0}, | |
10594 | { "_time_t","_int",0}, | |
10595 | { "_time_t","_wxWindowID",0}, | |
10596 | { "_time_t","_uint",0}, | |
10597 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
10598 | { "_wxCoord","_int",0}, |
10599 | { "_wxCoord","_signed_int",0}, | |
10600 | { "_wxCoord","_unsigned_int",0}, | |
10601 | { "_wxCoord","_wxWindowID",0}, | |
10602 | { "_wxCoord","_uint",0}, | |
10603 | { "_wxCoord","_EBool",0}, | |
10604 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10605 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10606 | { "_wxCoord","_wxPrintQuality",0}, |
c368d904 | 10607 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, |
1d99702e RD |
10608 | {0,0,0}}; |
10609 | ||
bb0054cd RD |
10610 | static PyObject *SWIG_globals; |
10611 | #ifdef __cplusplus | |
10612 | extern "C" | |
10613 | #endif | |
1d99702e | 10614 | SWIGEXPORT(void) initmisc2c() { |
bb0054cd RD |
10615 | PyObject *m, *d; |
10616 | SWIG_globals = SWIG_newvarlink(); | |
10617 | m = Py_InitModule("misc2c", misc2cMethods); | |
10618 | d = PyModule_GetDict(m); | |
06c0fba4 RD |
10619 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); |
10620 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
10621 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
10622 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
10623 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
10624 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
10625 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
10626 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
10627 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
10628 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
c6c593e8 | 10629 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); |
06c0fba4 RD |
10630 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); |
10631 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
10632 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
10633 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
10634 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
10635 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
10636 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
10637 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
10638 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
10639 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
10640 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
10641 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
10642 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
10643 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
c6c593e8 | 10644 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); |
06c0fba4 | 10645 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); |
c6c593e8 | 10646 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); |
06c0fba4 RD |
10647 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); |
10648 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
10649 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
10650 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
c6c593e8 RD |
10651 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); |
10652 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
10653 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
06c0fba4 RD |
10654 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); |
10655 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
10656 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
10657 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
b5a5d647 | 10658 | PyDict_SetItemString(d,"wxSYS_COLOUR_LISTBOX", PyInt_FromLong((long) wxSYS_COLOUR_LISTBOX)); |
c6c593e8 RD |
10659 | PyDict_SetItemString(d,"wxSYS_COLOUR_HOTLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HOTLIGHT)); |
10660 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
10661 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTINACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
10662 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_MENUHILIGHT)); | |
10663 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUBAR", PyInt_FromLong((long) wxSYS_COLOUR_MENUBAR)); | |
10664 | PyDict_SetItemString(d,"wxSYS_COLOUR_MAX", PyInt_FromLong((long) wxSYS_COLOUR_MAX)); | |
06c0fba4 RD |
10665 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); |
10666 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
10667 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
10668 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
10669 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
10670 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
10671 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
10672 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
10673 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
10674 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
10675 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
10676 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
10677 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
10678 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
10679 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
10680 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
10681 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
10682 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
10683 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
10684 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
10685 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
10686 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
10687 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
10688 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
10689 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
10690 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
10691 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
10692 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
10693 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
10694 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
10695 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
10696 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
10697 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
10698 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
10699 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
10700 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
10701 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
b5a5d647 RD |
10702 | PyDict_SetItemString(d,"wxSYS_CAN_DRAW_FRAME_DECORATIONS", PyInt_FromLong((long) wxSYS_CAN_DRAW_FRAME_DECORATIONS)); |
10703 | PyDict_SetItemString(d,"wxSYS_CAN_ICONIZE_FRAME", PyInt_FromLong((long) wxSYS_CAN_ICONIZE_FRAME)); | |
daa3eac9 | 10704 | PyDict_SetItemString(d,"wxSYS_SCREEN_NONE", PyInt_FromLong((long) wxSYS_SCREEN_NONE)); |
daa3eac9 | 10705 | PyDict_SetItemString(d,"wxSYS_SCREEN_TINY", PyInt_FromLong((long) wxSYS_SCREEN_TINY)); |
e67409dc RD |
10706 | PyDict_SetItemString(d,"wxSYS_SCREEN_PDA", PyInt_FromLong((long) wxSYS_SCREEN_PDA)); |
10707 | PyDict_SetItemString(d,"wxSYS_SCREEN_SMALL", PyInt_FromLong((long) wxSYS_SCREEN_SMALL)); | |
10708 | PyDict_SetItemString(d,"wxSYS_SCREEN_DESKTOP", PyInt_FromLong((long) wxSYS_SCREEN_DESKTOP)); | |
f6bcfd97 BP |
10709 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); |
10710 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
10711 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
10712 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
10713 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
10714 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
10715 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
10716 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
10717 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
10718 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
1b62f00d | 10719 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); |
b96c7a38 RD |
10720 | PyDict_SetItemString(d,"wxEXEC_ASYNC", PyInt_FromLong((long) wxEXEC_ASYNC)); |
10721 | PyDict_SetItemString(d,"wxEXEC_SYNC", PyInt_FromLong((long) wxEXEC_SYNC)); | |
10722 | PyDict_SetItemString(d,"wxEXEC_NOHIDE", PyInt_FromLong((long) wxEXEC_NOHIDE)); | |
d6eacb25 | 10723 | PyDict_SetItemString(d,"wxEXEC_MAKE_GROUP_LEADER", PyInt_FromLong((long) wxEXEC_MAKE_GROUP_LEADER)); |
b37c7e1d RD |
10724 | PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD)); |
10725 | PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE)); | |
10726 | PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE)); | |
10727 | PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME)); | |
10728 | PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL)); | |
10729 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
10730 | SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set); | |
72797a7d RD |
10731 | PyDict_SetItemString(d,"wxART_TOOLBAR", PyString_FromString("toolbar_C")); |
10732 | PyDict_SetItemString(d,"wxART_MENU", PyString_FromString("menu_C")); | |
10733 | PyDict_SetItemString(d,"wxART_FRAME_ICON", PyString_FromString("frame_icon_C")); | |
10734 | PyDict_SetItemString(d,"wxART_CMN_DIALOG", PyString_FromString("cmn_dialog_C")); | |
10735 | PyDict_SetItemString(d,"wxART_HELP_BROWSER", PyString_FromString("help_browser_C")); | |
10736 | PyDict_SetItemString(d,"wxART_MESSAGE_BOX", PyString_FromString("message_box_C")); | |
10737 | PyDict_SetItemString(d,"wxART_OTHER", PyString_FromString("other_C")); | |
10738 | PyDict_SetItemString(d,"wxART_ADD_BOOKMARK", PyString_FromString("add_bookmark")); | |
10739 | PyDict_SetItemString(d,"wxART_DEL_BOOKMARK", PyString_FromString("del_bookmark")); | |
10740 | PyDict_SetItemString(d,"wxART_HELP_SIDE_PANEL", PyString_FromString("help_side_panel")); | |
10741 | PyDict_SetItemString(d,"wxART_HELP_SETTINGS", PyString_FromString("help_settings")); | |
10742 | PyDict_SetItemString(d,"wxART_HELP_BOOK", PyString_FromString("help_book")); | |
10743 | PyDict_SetItemString(d,"wxART_HELP_FOLDER", PyString_FromString("help_folder")); | |
10744 | PyDict_SetItemString(d,"wxART_HELP_PAGE", PyString_FromString("help_page")); | |
10745 | PyDict_SetItemString(d,"wxART_GO_BACK", PyString_FromString("go_back")); | |
10746 | PyDict_SetItemString(d,"wxART_GO_FORWARD", PyString_FromString("go_forward")); | |
10747 | PyDict_SetItemString(d,"wxART_GO_UP", PyString_FromString("go_up")); | |
10748 | PyDict_SetItemString(d,"wxART_GO_DOWN", PyString_FromString("go_down")); | |
10749 | PyDict_SetItemString(d,"wxART_GO_TO_PARENT", PyString_FromString("go_to_parent")); | |
10750 | PyDict_SetItemString(d,"wxART_GO_HOME", PyString_FromString("go_home")); | |
10751 | PyDict_SetItemString(d,"wxART_FILE_OPEN", PyString_FromString("file_open")); | |
10752 | PyDict_SetItemString(d,"wxART_PRINT", PyString_FromString("print")); | |
10753 | PyDict_SetItemString(d,"wxART_HELP", PyString_FromString("help")); | |
10754 | PyDict_SetItemString(d,"wxART_TIP", PyString_FromString("tip")); | |
10755 | PyDict_SetItemString(d,"wxART_REPORT_VIEW", PyString_FromString("report_view")); | |
10756 | PyDict_SetItemString(d,"wxART_LIST_VIEW", PyString_FromString("list_view")); | |
10757 | PyDict_SetItemString(d,"wxART_NEW_DIR", PyString_FromString("new_dir")); | |
10758 | PyDict_SetItemString(d,"wxART_FOLDER", PyString_FromString("folder")); | |
10759 | PyDict_SetItemString(d,"wxART_GO_DIR_UP", PyString_FromString("go_dir_up")); | |
10760 | PyDict_SetItemString(d,"wxART_EXECUTABLE_FILE", PyString_FromString("executable_file")); | |
10761 | PyDict_SetItemString(d,"wxART_NORMAL_FILE", PyString_FromString("normal_file")); | |
10762 | PyDict_SetItemString(d,"wxART_TICK_MARK", PyString_FromString("tick")); | |
10763 | PyDict_SetItemString(d,"wxART_CROSS_MARK", PyString_FromString("cross")); | |
10764 | PyDict_SetItemString(d,"wxART_ERROR", PyString_FromString("error")); | |
10765 | PyDict_SetItemString(d,"wxART_QUESTION", PyString_FromString("question")); | |
10766 | PyDict_SetItemString(d,"wxART_WARNING", PyString_FromString("warning")); | |
10767 | PyDict_SetItemString(d,"wxART_INFORMATION", PyString_FromString("information")); | |
9416aa89 | 10768 | |
9416aa89 RD |
10769 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); |
10770 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
72797a7d | 10771 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); |
1d99702e RD |
10772 | { |
10773 | int i; | |
10774 | for (i = 0; _swig_mapping[i].n1; i++) | |
10775 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10776 | } | |
bb0054cd | 10777 | } |