]>
Commit | Line | Data |
---|---|---|
bb0054cd | 1 | /* |
c368d904 | 2 | * FILE : src/msw/misc2.cpp |
bb0054cd RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
bb0054cd RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
bb0054cd RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
bb0054cd | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
bb0054cd RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
bb0054cd RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
bb0054cd RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
bb0054cd RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
bb0054cd RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
bb0054cd RD |
54 | #define SWIG_init initmisc2c |
55 | ||
56 | #define SWIG_name "misc2c" | |
57 | ||
58 | #include "helpers.h" | |
5ae76026 | 59 | #include "pyistream.h" |
bb0054cd RD |
60 | #include <wx/resource.h> |
61 | #include <wx/tooltip.h> | |
f0261a72 | 62 | #include <wx/caret.h> |
f6bcfd97 | 63 | #include <wx/tipdlg.h> |
c368d904 | 64 | #include <wx/process.h> |
493f1553 RD |
65 | |
66 | #if wxUSE_JOYSTICK || defined(__WXMSW__) | |
185d7c3e | 67 | #include <wx/joystick.h> |
e0672e2f | 68 | #endif |
bb0054cd | 69 | |
493f1553 RD |
70 | #if wxUSE_WAVE || defined(__WXMSW__) |
71 | #include <wx/wave.h> | |
72 | #endif | |
73 | ||
b37c7e1d RD |
74 | #include <wx/mimetype.h> |
75 | ||
bb0054cd RD |
76 | |
77 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
78 | PyObject* o2; | |
79 | PyObject* o3; | |
80 | ||
6e18ca6c | 81 | if (!target) { |
bb0054cd | 82 | target = o; |
6e18ca6c | 83 | } else if (target == Py_None) { |
bb0054cd RD |
84 | Py_DECREF(Py_None); |
85 | target = o; | |
6e18ca6c | 86 | } else { |
bb0054cd RD |
87 | if (!PyTuple_Check(target)) { |
88 | o2 = target; | |
89 | target = PyTuple_New(1); | |
90 | PyTuple_SetItem(target, 0, o2); | |
91 | } | |
6e18ca6c RD |
92 | o3 = PyTuple_New(1); |
93 | PyTuple_SetItem(o3, 0, o); | |
bb0054cd RD |
94 | |
95 | o2 = target; | |
6e18ca6c RD |
96 | target = PySequence_Concat(o2, o3); |
97 | Py_DECREF(o2); | |
bb0054cd RD |
98 | Py_DECREF(o3); |
99 | } | |
100 | return target; | |
101 | } | |
102 | ||
137b5242 RD |
103 | // Put some wx default wxChar* values into wxStrings. |
104 | DECLARE_DEF_STRING(FileSelectorPromptStr); | |
105 | DECLARE_DEF_STRING(FileSelectorDefaultWildcardStr); | |
7cdaed0b | 106 | DECLARE_DEF_STRING(DirSelectorPromptStr); |
137b5242 RD |
107 | static const wxString wxPyEmptyString(wxT("")); |
108 | ||
06c0fba4 RD |
109 | int wxCaret_GetBlinkTime() { |
110 | return wxCaret::GetBlinkTime(); | |
111 | } | |
112 | ||
113 | void wxCaret_SetBlinkTime(int milliseconds) { | |
114 | wxCaret::SetBlinkTime(milliseconds); | |
115 | } | |
b1462dfa | 116 | |
6e18ca6c | 117 | bool wxThread_IsMain() { |
00ca6262 | 118 | #ifdef WXP_WITH_THREAD |
6e18ca6c | 119 | return wxThread::IsMain(); |
00ca6262 RD |
120 | #else |
121 | return TRUE; | |
122 | #endif | |
6e18ca6c RD |
123 | } |
124 | ||
f6bcfd97 BP |
125 | class wxPyTipProvider : public wxTipProvider { |
126 | public: | |
127 | wxPyTipProvider(size_t currentTip) | |
128 | : wxTipProvider(currentTip) {} | |
129 | ||
130 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
131 | ||
132 | PYPRIVATE; | |
133 | }; | |
134 | ||
135 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
136 | ||
137 | ||
138 | #include <wx/generic/dragimgg.h> | |
76bfdc78 | 139 | |
19e30148 | 140 | // A wxLog class that can be derived from in wxPython |
76bfdc78 RD |
141 | class wxPyLog : public wxLog { |
142 | public: | |
143 | wxPyLog() : wxLog() {} | |
144 | ||
145 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
146 | bool found; | |
4268f798 | 147 | wxPyBeginBlockThreads(); |
a66212dc RD |
148 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { |
149 | PyObject* s = wx2PyString(szString); | |
150 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
151 | Py_DECREF(s); | |
152 | } | |
4268f798 | 153 | wxPyEndBlockThreads(); |
76bfdc78 RD |
154 | if (! found) |
155 | wxLog::DoLog(level, szString, t); | |
156 | } | |
157 | ||
158 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
159 | bool found; | |
4268f798 | 160 | wxPyBeginBlockThreads(); |
a66212dc RD |
161 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { |
162 | PyObject* s = wx2PyString(szString); | |
163 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
164 | Py_DECREF(s); | |
165 | } | |
4268f798 | 166 | wxPyEndBlockThreads(); |
76bfdc78 RD |
167 | if (! found) |
168 | wxLog::DoLogString(szString, t); | |
169 | } | |
170 | ||
171 | PYPRIVATE; | |
172 | }; | |
c368d904 RD |
173 | // C++ version of wxProcess derived class |
174 | ||
175 | class wxPyProcess : public wxProcess { | |
176 | public: | |
177 | wxPyProcess(wxEvtHandler *parent = NULL, int id = -1) | |
178 | : wxProcess(parent, id) | |
179 | {} | |
180 | ||
181 | DEC_PYCALLBACK_VOID_INTINT(OnTerminate); | |
182 | ||
183 | PYPRIVATE; | |
184 | }; | |
185 | ||
186 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
493f1553 | 187 | |
19a97bd6 | 188 | |
493f1553 RD |
189 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) |
190 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
191 | class wxJoystick : public wxObject { | |
192 | public: | |
193 | wxJoystick(int joystick = wxJOYSTICK1) { | |
4268f798 | 194 | wxPyBeginBlockThreads(); |
493f1553 | 195 | PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); |
4268f798 | 196 | wxPyEndBlockThreads(); |
493f1553 RD |
197 | } |
198 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
199 | int GetZPosition() { return -1; } | |
200 | int GetButtonState() { return -1; } | |
201 | int GetPOVPosition() { return -1; } | |
202 | int GetPOVCTSPosition() { return -1; } | |
203 | int GetRudderPosition() { return -1; } | |
204 | int GetUPosition() { return -1; } | |
205 | int GetVPosition() { return -1; } | |
206 | int GetMovementThreshold() { return -1; } | |
d56cebe7 | 207 | void SetMovementThreshold(int threshold) {} |
493f1553 RD |
208 | |
209 | bool IsOk(void) { return FALSE; } | |
210 | int GetNumberJoysticks() { return -1; } | |
211 | int GetManufacturerId() { return -1; } | |
212 | int GetProductId() { return -1; } | |
213 | wxString GetProductName() { return ""; } | |
214 | int GetXMin() { return -1; } | |
215 | int GetYMin() { return -1; } | |
216 | int GetZMin() { return -1; } | |
217 | int GetXMax() { return -1; } | |
218 | int GetYMax() { return -1; } | |
219 | int GetZMax() { return -1; } | |
220 | int GetNumberButtons() { return -1; } | |
221 | int GetNumberAxes() { return -1; } | |
222 | int GetMaxButtons() { return -1; } | |
223 | int GetMaxAxes() { return -1; } | |
224 | int GetPollingMin() { return -1; } | |
225 | int GetPollingMax() { return -1; } | |
226 | int GetRudderMin() { return -1; } | |
227 | int GetRudderMax() { return -1; } | |
228 | int GetUMin() { return -1; } | |
229 | int GetUMax() { return -1; } | |
230 | int GetVMin() { return -1; } | |
231 | int GetVMax() { return -1; } | |
232 | ||
233 | bool HasRudder() { return FALSE; } | |
234 | bool HasZ() { return FALSE; } | |
235 | bool HasU() { return FALSE; } | |
236 | bool HasV() { return FALSE; } | |
237 | bool HasPOV() { return FALSE; } | |
238 | bool HasPOV4Dir() { return FALSE; } | |
239 | bool HasPOVCTS() { return FALSE; } | |
240 | ||
241 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return FALSE; } | |
242 | bool ReleaseCapture() { return FALSE; } | |
243 | }; | |
244 | #endif | |
245 | ||
0adbc166 | 246 | #if !wxUSE_WAVE |
493f1553 RD |
247 | // A C++ stub class for wxWave for platforms that don't have it. |
248 | class wxWave : public wxObject | |
249 | { | |
250 | public: | |
251 | wxWave(const wxString& fileName, bool isResource = FALSE) { | |
4268f798 | 252 | wxPyBeginBlockThreads(); |
493f1553 | 253 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 254 | wxPyEndBlockThreads(); |
493f1553 RD |
255 | } |
256 | wxWave(int size, const wxByte* data) { | |
4268f798 | 257 | wxPyBeginBlockThreads(); |
493f1553 | 258 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 259 | wxPyEndBlockThreads(); |
493f1553 RD |
260 | } |
261 | ||
262 | ~wxWave() {} | |
263 | ||
264 | bool IsOk() const { return FALSE; } | |
265 | bool Play(bool async = TRUE, bool looped = FALSE) const { return FALSE; } | |
266 | }; | |
267 | ||
268 | #endif | |
269 | // Implementations of some alternate "constructors" | |
270 | wxWave* wxWaveData(const wxString& data) { | |
271 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
272 | } | |
b37c7e1d RD |
273 | |
274 | #if 0 | |
275 | extern wxMimeTypesManager * wxTheMimeTypesManager; | |
276 | ||
277 | #endif | |
7dbce44a | 278 | |
72797a7d RD |
279 | #include <wx/artprov.h> |
280 | ||
281 | DECLARE_DEF_STRING(ART_OTHER); | |
282 | ||
283 | // Python aware wxArtProvider | |
284 | class wxPyArtProvider : public wxArtProvider { | |
285 | public: | |
286 | ||
287 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
288 | const wxArtClient& client, | |
289 | const wxSize& size) { | |
290 | wxBitmap rval = wxNullBitmap; | |
291 | wxPyBeginBlockThreads(); | |
292 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
293 | PyObject* so = wxPyConstructObject((void*)&size, "wxSize", 0); | |
294 | PyObject* ro; | |
295 | wxBitmap* ptr; | |
a66212dc | 296 | PyObject* s1, *s2; |
72797a7d RD |
297 | s1 = wx2PyString(id); |
298 | s2 = wx2PyString(client); | |
a66212dc | 299 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); |
72797a7d | 300 | Py_DECREF(so); |
a66212dc RD |
301 | Py_DECREF(s1); |
302 | Py_DECREF(s2); | |
72797a7d RD |
303 | if (ro) { |
304 | if (!SWIG_GetPtrObj(ro, (void**)&ptr, "_wxBitmap_p")) | |
305 | rval = *ptr; | |
306 | Py_DECREF(ro); | |
307 | } | |
308 | } | |
309 | wxPyEndBlockThreads(); | |
310 | return rval; | |
311 | } | |
312 | ||
313 | PYPRIVATE; | |
314 | }; | |
315 | ||
7dbce44a | 316 | #include <wx/docview.h> |
06c0fba4 RD |
317 | #ifdef __cplusplus |
318 | extern "C" { | |
319 | #endif | |
320 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
321 | PyObject * _resultobj; | |
322 | wxString * _result; | |
137b5242 RD |
323 | wxString * _arg0 = (wxString *) &wxPyFileSelectorPromptStr; |
324 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
325 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
326 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
327 | wxString * _arg4 = (wxString *) &wxPyFileSelectorDefaultWildcardStr; | |
06c0fba4 RD |
328 | int _arg5 = (int ) 0; |
329 | wxWindow * _arg6 = (wxWindow *) NULL; | |
330 | int _arg7 = (int ) -1; | |
331 | int _arg8 = (int ) -1; | |
137b5242 RD |
332 | PyObject * _obj0 = 0; |
333 | PyObject * _obj1 = 0; | |
334 | PyObject * _obj2 = 0; | |
335 | PyObject * _obj3 = 0; | |
336 | PyObject * _obj4 = 0; | |
06c0fba4 RD |
337 | PyObject * _argo6 = 0; |
338 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
339 | ||
340 | self = self; | |
137b5242 | 341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOOOiOii:wxFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7,&_arg8)) |
06c0fba4 | 342 | return NULL; |
137b5242 RD |
343 | if (_obj0) |
344 | { | |
345 | _arg0 = wxString_in_helper(_obj0); | |
346 | if (_arg0 == NULL) | |
347 | return NULL; | |
348 | } | |
349 | if (_obj1) | |
350 | { | |
351 | _arg1 = wxString_in_helper(_obj1); | |
352 | if (_arg1 == NULL) | |
353 | return NULL; | |
354 | } | |
355 | if (_obj2) | |
356 | { | |
357 | _arg2 = wxString_in_helper(_obj2); | |
358 | if (_arg2 == NULL) | |
359 | return NULL; | |
360 | } | |
361 | if (_obj3) | |
362 | { | |
363 | _arg3 = wxString_in_helper(_obj3); | |
364 | if (_arg3 == NULL) | |
365 | return NULL; | |
366 | } | |
367 | if (_obj4) | |
368 | { | |
369 | _arg4 = wxString_in_helper(_obj4); | |
370 | if (_arg4 == NULL) | |
371 | return NULL; | |
372 | } | |
06c0fba4 RD |
373 | if (_argo6) { |
374 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
375 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
377 | return NULL; | |
378 | } | |
379 | } | |
380 | { | |
4268f798 | 381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 382 | _result = new wxString (wxFileSelector(*_arg0,*_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8)); |
06c0fba4 | 383 | |
4268f798 RD |
384 | wxPyEndAllowThreads(__tstate); |
385 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 386 | }{ |
c8bc7bb8 RD |
387 | #if wxUSE_UNICODE |
388 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
389 | #else | |
eec92d76 | 390 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 391 | #endif |
06c0fba4 | 392 | } |
137b5242 RD |
393 | { |
394 | if (_obj0) | |
395 | delete _arg0; | |
396 | } | |
397 | { | |
398 | if (_obj1) | |
399 | delete _arg1; | |
400 | } | |
401 | { | |
402 | if (_obj2) | |
403 | delete _arg2; | |
404 | } | |
405 | { | |
406 | if (_obj3) | |
407 | delete _arg3; | |
408 | } | |
409 | { | |
410 | if (_obj4) | |
411 | delete _arg4; | |
412 | } | |
06c0fba4 RD |
413 | { |
414 | delete _result; | |
415 | } | |
416 | return _resultobj; | |
417 | } | |
418 | ||
a541c325 RD |
419 | static PyObject *_wrap_wxLoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
420 | PyObject * _resultobj; | |
421 | wxString * _result; | |
137b5242 RD |
422 | wxString * _arg0; |
423 | wxString * _arg1; | |
424 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
a541c325 | 425 | wxWindow * _arg3 = (wxWindow *) NULL; |
137b5242 RD |
426 | PyObject * _obj0 = 0; |
427 | PyObject * _obj1 = 0; | |
428 | PyObject * _obj2 = 0; | |
a541c325 RD |
429 | PyObject * _argo3 = 0; |
430 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
431 | ||
432 | self = self; | |
137b5242 | 433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxLoadFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) |
a541c325 | 434 | return NULL; |
137b5242 RD |
435 | { |
436 | _arg0 = wxString_in_helper(_obj0); | |
437 | if (_arg0 == NULL) | |
438 | return NULL; | |
439 | } | |
440 | { | |
441 | _arg1 = wxString_in_helper(_obj1); | |
442 | if (_arg1 == NULL) | |
443 | return NULL; | |
444 | } | |
445 | if (_obj2) | |
446 | { | |
447 | _arg2 = wxString_in_helper(_obj2); | |
448 | if (_arg2 == NULL) | |
449 | return NULL; | |
450 | } | |
a541c325 RD |
451 | if (_argo3) { |
452 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
453 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxLoadFileSelector. Expected _wxWindow_p."); | |
455 | return NULL; | |
456 | } | |
457 | } | |
458 | { | |
459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 460 | _result = new wxString (wxLoadFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); |
a541c325 RD |
461 | |
462 | wxPyEndAllowThreads(__tstate); | |
463 | if (PyErr_Occurred()) return NULL; | |
464 | }{ | |
465 | #if wxUSE_UNICODE | |
466 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
467 | #else | |
468 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
469 | #endif | |
470 | } | |
137b5242 RD |
471 | { |
472 | if (_obj0) | |
473 | delete _arg0; | |
474 | } | |
475 | { | |
476 | if (_obj1) | |
477 | delete _arg1; | |
478 | } | |
479 | { | |
480 | if (_obj2) | |
481 | delete _arg2; | |
482 | } | |
a541c325 RD |
483 | { |
484 | delete _result; | |
485 | } | |
486 | return _resultobj; | |
487 | } | |
488 | ||
489 | static PyObject *_wrap_wxSaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
490 | PyObject * _resultobj; | |
491 | wxString * _result; | |
137b5242 RD |
492 | wxString * _arg0; |
493 | wxString * _arg1; | |
494 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
a541c325 | 495 | wxWindow * _arg3 = (wxWindow *) NULL; |
137b5242 RD |
496 | PyObject * _obj0 = 0; |
497 | PyObject * _obj1 = 0; | |
498 | PyObject * _obj2 = 0; | |
a541c325 RD |
499 | PyObject * _argo3 = 0; |
500 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
501 | ||
502 | self = self; | |
137b5242 RD |
503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxSaveFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) |
504 | return NULL; | |
505 | { | |
506 | _arg0 = wxString_in_helper(_obj0); | |
507 | if (_arg0 == NULL) | |
a541c325 | 508 | return NULL; |
137b5242 RD |
509 | } |
510 | { | |
511 | _arg1 = wxString_in_helper(_obj1); | |
512 | if (_arg1 == NULL) | |
513 | return NULL; | |
514 | } | |
515 | if (_obj2) | |
516 | { | |
517 | _arg2 = wxString_in_helper(_obj2); | |
518 | if (_arg2 == NULL) | |
519 | return NULL; | |
520 | } | |
a541c325 RD |
521 | if (_argo3) { |
522 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
523 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxSaveFileSelector. Expected _wxWindow_p."); | |
525 | return NULL; | |
526 | } | |
527 | } | |
528 | { | |
529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 530 | _result = new wxString (wxSaveFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); |
a541c325 RD |
531 | |
532 | wxPyEndAllowThreads(__tstate); | |
533 | if (PyErr_Occurred()) return NULL; | |
534 | }{ | |
535 | #if wxUSE_UNICODE | |
536 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
537 | #else | |
538 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
539 | #endif | |
540 | } | |
137b5242 RD |
541 | { |
542 | if (_obj0) | |
543 | delete _arg0; | |
544 | } | |
545 | { | |
546 | if (_obj1) | |
547 | delete _arg1; | |
548 | } | |
549 | { | |
550 | if (_obj2) | |
551 | delete _arg2; | |
552 | } | |
a541c325 RD |
553 | { |
554 | delete _result; | |
555 | } | |
556 | return _resultobj; | |
557 | } | |
558 | ||
7cdaed0b RD |
559 | static PyObject *_wrap_wxDirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
560 | PyObject * _resultobj; | |
561 | wxString * _result; | |
562 | wxString * _arg0 = (wxString *) &wxPyDirSelectorPromptStr; | |
563 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
daa3eac9 | 564 | long _arg2 = (long ) wxDD_DEFAULT_STYLE; |
7cdaed0b RD |
565 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
566 | wxWindow * _arg4 = (wxWindow *) NULL; | |
567 | PyObject * _obj0 = 0; | |
568 | PyObject * _obj1 = 0; | |
569 | wxPoint temp; | |
570 | PyObject * _obj3 = 0; | |
571 | PyObject * _argo4 = 0; | |
572 | char *_kwnames[] = { "message","defaultPath","style","pos","parent", NULL }; | |
573 | ||
574 | self = self; | |
575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOlOO:wxDirSelector",_kwnames,&_obj0,&_obj1,&_arg2,&_obj3,&_argo4)) | |
576 | return NULL; | |
577 | if (_obj0) | |
578 | { | |
579 | _arg0 = wxString_in_helper(_obj0); | |
580 | if (_arg0 == NULL) | |
581 | return NULL; | |
582 | } | |
583 | if (_obj1) | |
584 | { | |
585 | _arg1 = wxString_in_helper(_obj1); | |
586 | if (_arg1 == NULL) | |
587 | return NULL; | |
588 | } | |
589 | if (_obj3) | |
590 | { | |
591 | _arg3 = &temp; | |
592 | if (! wxPoint_helper(_obj3, &_arg3)) | |
593 | return NULL; | |
594 | } | |
595 | if (_argo4) { | |
596 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
597 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxDirSelector. Expected _wxWindow_p."); | |
599 | return NULL; | |
600 | } | |
601 | } | |
602 | { | |
603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
604 | _result = new wxString (wxDirSelector(*_arg0,*_arg1,_arg2,*_arg3,_arg4)); | |
605 | ||
606 | wxPyEndAllowThreads(__tstate); | |
607 | if (PyErr_Occurred()) return NULL; | |
608 | }{ | |
609 | #if wxUSE_UNICODE | |
610 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
611 | #else | |
612 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
613 | #endif | |
614 | } | |
615 | { | |
616 | if (_obj0) | |
617 | delete _arg0; | |
618 | } | |
619 | { | |
620 | if (_obj1) | |
621 | delete _arg1; | |
622 | } | |
623 | { | |
624 | delete _result; | |
625 | } | |
626 | return _resultobj; | |
627 | } | |
628 | ||
06c0fba4 RD |
629 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
630 | PyObject * _resultobj; | |
631 | wxString * _result; | |
632 | wxString * _arg0; | |
137b5242 RD |
633 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
634 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
06c0fba4 RD |
635 | wxWindow * _arg3 = (wxWindow *) NULL; |
636 | int _arg4 = (int ) -1; | |
637 | int _arg5 = (int ) -1; | |
638 | bool _arg6 = (bool ) TRUE; | |
639 | PyObject * _obj0 = 0; | |
640 | PyObject * _obj1 = 0; | |
641 | PyObject * _obj2 = 0; | |
642 | PyObject * _argo3 = 0; | |
643 | int tempbool6 = (int) TRUE; | |
644 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
645 | ||
646 | self = self; | |
647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
648 | return NULL; | |
649 | { | |
c8bc7bb8 RD |
650 | _arg0 = wxString_in_helper(_obj0); |
651 | if (_arg0 == NULL) | |
185d7c3e | 652 | return NULL; |
06c0fba4 RD |
653 | } |
654 | if (_obj1) | |
655 | { | |
c8bc7bb8 RD |
656 | _arg1 = wxString_in_helper(_obj1); |
657 | if (_arg1 == NULL) | |
185d7c3e | 658 | return NULL; |
06c0fba4 RD |
659 | } |
660 | if (_obj2) | |
661 | { | |
c8bc7bb8 RD |
662 | _arg2 = wxString_in_helper(_obj2); |
663 | if (_arg2 == NULL) | |
06c0fba4 | 664 | return NULL; |
06c0fba4 RD |
665 | } |
666 | if (_argo3) { | |
667 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
668 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
670 | return NULL; | |
671 | } | |
672 | } | |
673 | _arg6 = (bool ) tempbool6; | |
674 | { | |
4268f798 | 675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 676 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); |
06c0fba4 | 677 | |
4268f798 RD |
678 | wxPyEndAllowThreads(__tstate); |
679 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 680 | }{ |
c8bc7bb8 RD |
681 | #if wxUSE_UNICODE |
682 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
683 | #else | |
eec92d76 | 684 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 685 | #endif |
06c0fba4 RD |
686 | } |
687 | { | |
688 | if (_obj0) | |
689 | delete _arg0; | |
690 | } | |
691 | { | |
692 | if (_obj1) | |
693 | delete _arg1; | |
694 | } | |
695 | { | |
696 | if (_obj2) | |
697 | delete _arg2; | |
698 | } | |
699 | { | |
700 | delete _result; | |
701 | } | |
702 | return _resultobj; | |
703 | } | |
704 | ||
1b62f00d RD |
705 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
706 | PyObject * _resultobj; | |
707 | wxString * _result; | |
708 | wxString * _arg0; | |
137b5242 RD |
709 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
710 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
1b62f00d RD |
711 | wxWindow * _arg3 = (wxWindow *) NULL; |
712 | PyObject * _obj0 = 0; | |
713 | PyObject * _obj1 = 0; | |
714 | PyObject * _obj2 = 0; | |
715 | PyObject * _argo3 = 0; | |
716 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
717 | ||
718 | self = self; | |
719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
720 | return NULL; | |
721 | { | |
c8bc7bb8 RD |
722 | _arg0 = wxString_in_helper(_obj0); |
723 | if (_arg0 == NULL) | |
1b62f00d | 724 | return NULL; |
1b62f00d RD |
725 | } |
726 | if (_obj1) | |
727 | { | |
c8bc7bb8 RD |
728 | _arg1 = wxString_in_helper(_obj1); |
729 | if (_arg1 == NULL) | |
1b62f00d | 730 | return NULL; |
1b62f00d RD |
731 | } |
732 | if (_obj2) | |
733 | { | |
c8bc7bb8 RD |
734 | _arg2 = wxString_in_helper(_obj2); |
735 | if (_arg2 == NULL) | |
1b62f00d | 736 | return NULL; |
1b62f00d RD |
737 | } |
738 | if (_argo3) { | |
739 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
740 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
742 | return NULL; | |
743 | } | |
744 | } | |
745 | { | |
4268f798 | 746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 747 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); |
1b62f00d | 748 | |
4268f798 RD |
749 | wxPyEndAllowThreads(__tstate); |
750 | if (PyErr_Occurred()) return NULL; | |
1b62f00d | 751 | }{ |
c8bc7bb8 RD |
752 | #if wxUSE_UNICODE |
753 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
754 | #else | |
1b62f00d | 755 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 756 | #endif |
1b62f00d RD |
757 | } |
758 | { | |
759 | if (_obj0) | |
760 | delete _arg0; | |
761 | } | |
762 | { | |
763 | if (_obj1) | |
764 | delete _arg1; | |
765 | } | |
766 | { | |
767 | if (_obj2) | |
768 | delete _arg2; | |
769 | } | |
770 | { | |
771 | delete _result; | |
772 | } | |
773 | return _resultobj; | |
774 | } | |
775 | ||
06c0fba4 RD |
776 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
777 | PyObject * _resultobj; | |
778 | wxString * _result; | |
779 | wxString * _arg0; | |
780 | wxString * _arg1; | |
781 | int _arg2; | |
782 | wxString * _arg3; | |
783 | wxWindow * _arg4 = (wxWindow *) NULL; | |
784 | int _arg5 = (int ) -1; | |
785 | int _arg6 = (int ) -1; | |
786 | bool _arg7 = (bool ) TRUE; | |
787 | int _arg8 = (int ) 150; | |
788 | int _arg9 = (int ) 200; | |
789 | PyObject * _obj0 = 0; | |
790 | PyObject * _obj1 = 0; | |
791 | PyObject * _obj3 = 0; | |
792 | PyObject * _argo4 = 0; | |
793 | int tempbool7 = (int) TRUE; | |
eec92d76 | 794 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
795 | |
796 | self = self; | |
797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
798 | return NULL; | |
799 | { | |
c8bc7bb8 RD |
800 | _arg0 = wxString_in_helper(_obj0); |
801 | if (_arg0 == NULL) | |
185d7c3e | 802 | return NULL; |
06c0fba4 RD |
803 | } |
804 | { | |
c8bc7bb8 RD |
805 | _arg1 = wxString_in_helper(_obj1); |
806 | if (_arg1 == NULL) | |
185d7c3e | 807 | return NULL; |
06c0fba4 RD |
808 | } |
809 | if (_obj3) | |
810 | { | |
811 | _arg3 = wxString_LIST_helper(_obj3); | |
812 | if (_arg3 == NULL) { | |
813 | return NULL; | |
814 | } | |
815 | } | |
816 | if (_argo4) { | |
817 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
818 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
820 | return NULL; | |
821 | } | |
822 | } | |
823 | _arg7 = (bool ) tempbool7; | |
824 | { | |
825 | if (_obj3) { | |
826 | _arg2 = PyList_Size(_obj3); | |
827 | } | |
828 | else { | |
829 | _arg2 = 0; | |
830 | } | |
831 | } | |
832 | { | |
4268f798 | 833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 834 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); |
06c0fba4 | 835 | |
4268f798 RD |
836 | wxPyEndAllowThreads(__tstate); |
837 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 838 | }{ |
c8bc7bb8 RD |
839 | #if wxUSE_UNICODE |
840 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
841 | #else | |
eec92d76 | 842 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 843 | #endif |
06c0fba4 RD |
844 | } |
845 | { | |
846 | if (_obj0) | |
847 | delete _arg0; | |
848 | } | |
849 | { | |
850 | if (_obj1) | |
851 | delete _arg1; | |
852 | } | |
853 | { | |
854 | delete [] _arg3; | |
855 | } | |
856 | { | |
857 | delete _result; | |
858 | } | |
859 | return _resultobj; | |
860 | } | |
861 | ||
862 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
863 | PyObject * _resultobj; | |
864 | int _result; | |
865 | wxString * _arg0; | |
866 | wxString * _arg1; | |
867 | int _arg2; | |
868 | wxString * _arg3; | |
869 | wxWindow * _arg4 = (wxWindow *) NULL; | |
870 | int _arg5 = (int ) -1; | |
871 | int _arg6 = (int ) -1; | |
872 | bool _arg7 = (bool ) TRUE; | |
873 | int _arg8 = (int ) 150; | |
874 | int _arg9 = (int ) 200; | |
875 | PyObject * _obj0 = 0; | |
876 | PyObject * _obj1 = 0; | |
877 | PyObject * _obj3 = 0; | |
878 | PyObject * _argo4 = 0; | |
879 | int tempbool7 = (int) TRUE; | |
eec92d76 | 880 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
881 | |
882 | self = self; | |
883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
884 | return NULL; | |
885 | { | |
c8bc7bb8 RD |
886 | _arg0 = wxString_in_helper(_obj0); |
887 | if (_arg0 == NULL) | |
185d7c3e | 888 | return NULL; |
06c0fba4 RD |
889 | } |
890 | { | |
c8bc7bb8 RD |
891 | _arg1 = wxString_in_helper(_obj1); |
892 | if (_arg1 == NULL) | |
185d7c3e | 893 | return NULL; |
06c0fba4 RD |
894 | } |
895 | if (_obj3) | |
896 | { | |
897 | _arg3 = wxString_LIST_helper(_obj3); | |
898 | if (_arg3 == NULL) { | |
899 | return NULL; | |
900 | } | |
901 | } | |
902 | if (_argo4) { | |
903 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
904 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
906 | return NULL; | |
907 | } | |
908 | } | |
909 | _arg7 = (bool ) tempbool7; | |
910 | { | |
911 | if (_obj3) { | |
912 | _arg2 = PyList_Size(_obj3); | |
913 | } | |
914 | else { | |
915 | _arg2 = 0; | |
916 | } | |
917 | } | |
918 | { | |
4268f798 | 919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 920 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
06c0fba4 | 921 | |
4268f798 RD |
922 | wxPyEndAllowThreads(__tstate); |
923 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
924 | } _resultobj = Py_BuildValue("i",_result); |
925 | { | |
926 | if (_obj0) | |
927 | delete _arg0; | |
928 | } | |
929 | { | |
930 | if (_obj1) | |
931 | delete _arg1; | |
932 | } | |
933 | { | |
934 | delete [] _arg3; | |
935 | } | |
936 | return _resultobj; | |
937 | } | |
938 | ||
939 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
940 | PyObject * _resultobj; | |
941 | int _result; | |
942 | wxString * _arg0; | |
137b5242 | 943 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
06c0fba4 RD |
944 | int _arg2 = (int ) wxOK|wxCENTRE; |
945 | wxWindow * _arg3 = (wxWindow *) NULL; | |
946 | int _arg4 = (int ) -1; | |
947 | int _arg5 = (int ) -1; | |
948 | PyObject * _obj0 = 0; | |
949 | PyObject * _obj1 = 0; | |
950 | PyObject * _argo3 = 0; | |
951 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
952 | ||
953 | self = self; | |
954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
955 | return NULL; | |
956 | { | |
c8bc7bb8 RD |
957 | _arg0 = wxString_in_helper(_obj0); |
958 | if (_arg0 == NULL) | |
185d7c3e | 959 | return NULL; |
06c0fba4 RD |
960 | } |
961 | if (_obj1) | |
962 | { | |
c8bc7bb8 RD |
963 | _arg1 = wxString_in_helper(_obj1); |
964 | if (_arg1 == NULL) | |
185d7c3e | 965 | return NULL; |
06c0fba4 RD |
966 | } |
967 | if (_argo3) { | |
968 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
969 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
971 | return NULL; | |
972 | } | |
973 | } | |
974 | { | |
4268f798 | 975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 976 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); |
06c0fba4 | 977 | |
4268f798 RD |
978 | wxPyEndAllowThreads(__tstate); |
979 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
980 | } _resultobj = Py_BuildValue("i",_result); |
981 | { | |
982 | if (_obj0) | |
983 | delete _arg0; | |
984 | } | |
985 | { | |
986 | if (_obj1) | |
987 | delete _arg1; | |
988 | } | |
989 | return _resultobj; | |
990 | } | |
991 | ||
992 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
993 | PyObject * _resultobj; | |
994 | long _result; | |
995 | wxString * _arg0; | |
996 | wxString * _arg1; | |
997 | wxString * _arg2; | |
998 | long _arg3; | |
999 | long _arg4 = (long ) 0; | |
1000 | long _arg5 = (long ) 100; | |
1001 | wxWindow * _arg6 = (wxWindow *) NULL; | |
e508a2b6 | 1002 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; |
06c0fba4 RD |
1003 | PyObject * _obj0 = 0; |
1004 | PyObject * _obj1 = 0; | |
1005 | PyObject * _obj2 = 0; | |
1006 | PyObject * _argo6 = 0; | |
1007 | wxPoint temp; | |
1008 | PyObject * _obj7 = 0; | |
1009 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
1010 | ||
1011 | self = self; | |
1012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
1013 | return NULL; | |
1014 | { | |
c8bc7bb8 RD |
1015 | _arg0 = wxString_in_helper(_obj0); |
1016 | if (_arg0 == NULL) | |
185d7c3e | 1017 | return NULL; |
06c0fba4 RD |
1018 | } |
1019 | { | |
c8bc7bb8 RD |
1020 | _arg1 = wxString_in_helper(_obj1); |
1021 | if (_arg1 == NULL) | |
06c0fba4 | 1022 | return NULL; |
06c0fba4 RD |
1023 | } |
1024 | { | |
c8bc7bb8 RD |
1025 | _arg2 = wxString_in_helper(_obj2); |
1026 | if (_arg2 == NULL) | |
185d7c3e | 1027 | return NULL; |
06c0fba4 RD |
1028 | } |
1029 | if (_argo6) { | |
1030 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1031 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
1032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
1033 | return NULL; | |
1034 | } | |
1035 | } | |
1036 | if (_obj7) | |
1037 | { | |
1038 | _arg7 = &temp; | |
1039 | if (! wxPoint_helper(_obj7, &_arg7)) | |
1040 | return NULL; | |
1041 | } | |
1042 | { | |
4268f798 | 1043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1044 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); |
06c0fba4 | 1045 | |
4268f798 RD |
1046 | wxPyEndAllowThreads(__tstate); |
1047 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1048 | } _resultobj = Py_BuildValue("l",_result); |
1049 | { | |
1050 | if (_obj0) | |
1051 | delete _arg0; | |
1052 | } | |
1053 | { | |
1054 | if (_obj1) | |
1055 | delete _arg1; | |
1056 | } | |
1057 | { | |
1058 | if (_obj2) | |
1059 | delete _arg2; | |
1060 | } | |
1061 | return _resultobj; | |
1062 | } | |
1063 | ||
1064 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1065 | PyObject * _resultobj; | |
1066 | bool _result; | |
1067 | char *_kwnames[] = { NULL }; | |
1068 | ||
1069 | self = self; | |
1070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
1071 | return NULL; | |
1072 | { | |
4268f798 | 1073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1074 | _result = (bool )wxColourDisplay(); |
06c0fba4 | 1075 | |
4268f798 RD |
1076 | wxPyEndAllowThreads(__tstate); |
1077 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1078 | } _resultobj = Py_BuildValue("i",_result); |
1079 | return _resultobj; | |
1080 | } | |
1081 | ||
1082 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1083 | PyObject * _resultobj; | |
1084 | int _result; | |
1085 | char *_kwnames[] = { NULL }; | |
1086 | ||
1087 | self = self; | |
1088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
1089 | return NULL; | |
1090 | { | |
4268f798 | 1091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1092 | _result = (int )wxDisplayDepth(); |
06c0fba4 | 1093 | |
4268f798 RD |
1094 | wxPyEndAllowThreads(__tstate); |
1095 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1096 | } _resultobj = Py_BuildValue("i",_result); |
1097 | return _resultobj; | |
1098 | } | |
f0261a72 | 1099 | |
1e7ecb7b RD |
1100 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { |
1101 | PyObject * _resultobj; | |
1102 | int _result; | |
1103 | char *_kwnames[] = { NULL }; | |
1104 | ||
1105 | self = self; | |
1106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
1107 | return NULL; | |
1108 | { | |
4268f798 | 1109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1110 | _result = (int )wxGetDisplayDepth(); |
1e7ecb7b | 1111 | |
4268f798 RD |
1112 | wxPyEndAllowThreads(__tstate); |
1113 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1114 | } _resultobj = Py_BuildValue("i",_result); |
1115 | return _resultobj; | |
1116 | } | |
1117 | ||
1118 | static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1119 | PyObject * _resultobj; | |
1120 | int * _arg0; | |
1121 | int temp; | |
1122 | int * _arg1; | |
1123 | int temp0; | |
1124 | char *_kwnames[] = { NULL }; | |
1125 | ||
1126 | self = self; | |
1127 | { | |
1128 | _arg0 = &temp; | |
1129 | } | |
1130 | { | |
1131 | _arg1 = &temp0; | |
1132 | } | |
1133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames)) | |
1134 | return NULL; | |
1135 | { | |
4268f798 | 1136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1137 | wxDisplaySize(_arg0,_arg1); |
1e7ecb7b | 1138 | |
4268f798 RD |
1139 | wxPyEndAllowThreads(__tstate); |
1140 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1141 | } Py_INCREF(Py_None); |
1142 | _resultobj = Py_None; | |
1143 | { | |
1144 | PyObject *o; | |
1145 | o = PyInt_FromLong((long) (*_arg0)); | |
1146 | _resultobj = t_output_helper(_resultobj, o); | |
1147 | } | |
1148 | { | |
1149 | PyObject *o; | |
1150 | o = PyInt_FromLong((long) (*_arg1)); | |
1151 | _resultobj = t_output_helper(_resultobj, o); | |
1152 | } | |
1153 | return _resultobj; | |
1154 | } | |
1155 | ||
1156 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1157 | PyObject * _resultobj; | |
1158 | wxSize * _result; | |
1159 | char *_kwnames[] = { NULL }; | |
1160 | char _ptemp[128]; | |
1161 | ||
1162 | self = self; | |
1163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
1164 | return NULL; | |
1165 | { | |
4268f798 | 1166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1167 | _result = new wxSize (wxGetDisplaySize()); |
1e7ecb7b | 1168 | |
4268f798 RD |
1169 | wxPyEndAllowThreads(__tstate); |
1170 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1171 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1172 | _resultobj = Py_BuildValue("s",_ptemp); | |
1173 | return _resultobj; | |
1174 | } | |
1175 | ||
1176 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1177 | PyObject * _resultobj; | |
1178 | int * _arg0; | |
1179 | int temp; | |
1180 | int * _arg1; | |
1181 | int temp0; | |
1182 | char *_kwnames[] = { NULL }; | |
1183 | ||
1184 | self = self; | |
1185 | { | |
1186 | _arg0 = &temp; | |
1187 | } | |
1188 | { | |
1189 | _arg1 = &temp0; | |
1190 | } | |
1191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
1192 | return NULL; | |
1193 | { | |
4268f798 | 1194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1195 | wxDisplaySizeMM(_arg0,_arg1); |
1e7ecb7b | 1196 | |
4268f798 RD |
1197 | wxPyEndAllowThreads(__tstate); |
1198 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1199 | } Py_INCREF(Py_None); |
1200 | _resultobj = Py_None; | |
1201 | { | |
1202 | PyObject *o; | |
1203 | o = PyInt_FromLong((long) (*_arg0)); | |
1204 | _resultobj = t_output_helper(_resultobj, o); | |
1205 | } | |
1206 | { | |
1207 | PyObject *o; | |
1208 | o = PyInt_FromLong((long) (*_arg1)); | |
1209 | _resultobj = t_output_helper(_resultobj, o); | |
1210 | } | |
1211 | return _resultobj; | |
1212 | } | |
1213 | ||
1214 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1215 | PyObject * _resultobj; | |
1216 | wxSize * _result; | |
1217 | char *_kwnames[] = { NULL }; | |
1218 | char _ptemp[128]; | |
1219 | ||
1220 | self = self; | |
1221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1222 | return NULL; | |
1223 | { | |
4268f798 | 1224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1225 | _result = new wxSize (wxGetDisplaySizeMM()); |
1e7ecb7b | 1226 | |
4268f798 RD |
1227 | wxPyEndAllowThreads(__tstate); |
1228 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1229 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1230 | _resultobj = Py_BuildValue("s",_ptemp); | |
1231 | return _resultobj; | |
1232 | } | |
1233 | ||
91c41b30 RD |
1234 | static PyObject *_wrap_wxClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
1235 | PyObject * _resultobj; | |
1236 | int * _arg0; | |
1237 | int temp; | |
1238 | int * _arg1; | |
1239 | int temp0; | |
1240 | int * _arg2; | |
1241 | int temp1; | |
1242 | int * _arg3; | |
1243 | int temp2; | |
1244 | char *_kwnames[] = { NULL }; | |
1245 | ||
1246 | self = self; | |
1247 | { | |
1248 | _arg0 = &temp; | |
1249 | } | |
1250 | { | |
1251 | _arg1 = &temp0; | |
1252 | } | |
1253 | { | |
1254 | _arg2 = &temp1; | |
1255 | } | |
1256 | { | |
1257 | _arg3 = &temp2; | |
1258 | } | |
1259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxClientDisplayRect",_kwnames)) | |
1260 | return NULL; | |
1261 | { | |
4268f798 | 1262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1263 | wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3); |
91c41b30 | 1264 | |
4268f798 RD |
1265 | wxPyEndAllowThreads(__tstate); |
1266 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1267 | } Py_INCREF(Py_None); |
1268 | _resultobj = Py_None; | |
1269 | { | |
1270 | PyObject *o; | |
1271 | o = PyInt_FromLong((long) (*_arg0)); | |
1272 | _resultobj = t_output_helper(_resultobj, o); | |
1273 | } | |
1274 | { | |
1275 | PyObject *o; | |
1276 | o = PyInt_FromLong((long) (*_arg1)); | |
1277 | _resultobj = t_output_helper(_resultobj, o); | |
1278 | } | |
1279 | { | |
1280 | PyObject *o; | |
1281 | o = PyInt_FromLong((long) (*_arg2)); | |
1282 | _resultobj = t_output_helper(_resultobj, o); | |
1283 | } | |
1284 | { | |
1285 | PyObject *o; | |
1286 | o = PyInt_FromLong((long) (*_arg3)); | |
1287 | _resultobj = t_output_helper(_resultobj, o); | |
1288 | } | |
1289 | return _resultobj; | |
1290 | } | |
1291 | ||
1292 | static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1293 | PyObject * _resultobj; | |
1294 | wxRect * _result; | |
1295 | char *_kwnames[] = { NULL }; | |
1296 | char _ptemp[128]; | |
1297 | ||
1298 | self = self; | |
1299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames)) | |
1300 | return NULL; | |
1301 | { | |
4268f798 | 1302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1303 | _result = new wxRect (wxGetClientDisplayRect()); |
91c41b30 | 1304 | |
4268f798 RD |
1305 | wxPyEndAllowThreads(__tstate); |
1306 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1307 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
1308 | _resultobj = Py_BuildValue("s",_ptemp); | |
1309 | return _resultobj; | |
1310 | } | |
1311 | ||
06c0fba4 RD |
1312 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1313 | PyObject * _resultobj; | |
1314 | wxCursor * _arg0; | |
1315 | PyObject * _argo0 = 0; | |
1316 | char *_kwnames[] = { "cursor", NULL }; | |
f0261a72 | 1317 | |
06c0fba4 RD |
1318 | self = self; |
1319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1320 | return NULL; | |
1321 | if (_argo0) { | |
1322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
1325 | return NULL; | |
1326 | } | |
f0261a72 | 1327 | } |
06c0fba4 | 1328 | { |
4268f798 | 1329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1330 | wxSetCursor(*_arg0); |
06c0fba4 | 1331 | |
4268f798 RD |
1332 | wxPyEndAllowThreads(__tstate); |
1333 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1334 | } Py_INCREF(Py_None); |
1335 | _resultobj = Py_None; | |
1336 | return _resultobj; | |
1337 | } | |
1338 | ||
06c0fba4 RD |
1339 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1340 | PyObject * _resultobj; | |
1341 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1342 | PyObject * _argo0 = 0; | |
1343 | char *_kwnames[] = { "cursor", NULL }; | |
1344 | ||
1345 | self = self; | |
1346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1347 | return NULL; | |
1348 | if (_argo0) { | |
1349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1352 | return NULL; | |
1353 | } | |
1354 | } | |
1355 | { | |
4268f798 | 1356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1357 | wxBeginBusyCursor(_arg0); |
06c0fba4 | 1358 | |
4268f798 RD |
1359 | wxPyEndAllowThreads(__tstate); |
1360 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1361 | } Py_INCREF(Py_None); |
1362 | _resultobj = Py_None; | |
1363 | return _resultobj; | |
1364 | } | |
1365 | ||
1366 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1367 | PyObject * _resultobj; | |
1368 | wxWindow * _result; | |
1369 | char *_kwnames[] = { NULL }; | |
06c0fba4 RD |
1370 | |
1371 | self = self; | |
1372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1373 | return NULL; | |
1374 | { | |
4268f798 | 1375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1376 | _result = (wxWindow *)wxGetActiveWindow(); |
06c0fba4 | 1377 | |
4268f798 RD |
1378 | wxPyEndAllowThreads(__tstate); |
1379 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1380 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1381 | return _resultobj; |
1382 | } | |
1383 | ||
493f1553 RD |
1384 | static PyObject *_wrap_wxGenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
1385 | PyObject * _resultobj; | |
1386 | wxWindow * _result; | |
1387 | wxPoint * _arg0; | |
1388 | wxPoint temp; | |
1389 | PyObject * _obj0 = 0; | |
1390 | char *_kwnames[] = { "pt", NULL }; | |
1391 | ||
1392 | self = self; | |
1393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericFindWindowAtPoint",_kwnames,&_obj0)) | |
1394 | return NULL; | |
1395 | { | |
1396 | _arg0 = &temp; | |
1397 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1398 | return NULL; | |
1399 | } | |
1400 | { | |
4268f798 | 1401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1402 | _result = (wxWindow *)wxGenericFindWindowAtPoint(*_arg0); |
493f1553 | 1403 | |
4268f798 RD |
1404 | wxPyEndAllowThreads(__tstate); |
1405 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1406 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1407 | return _resultobj; | |
1408 | } | |
1409 | ||
1410 | static PyObject *_wrap_wxFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1411 | PyObject * _resultobj; | |
1412 | wxWindow * _result; | |
1413 | wxPoint * _arg0; | |
1414 | wxPoint temp; | |
1415 | PyObject * _obj0 = 0; | |
1416 | char *_kwnames[] = { "pt", NULL }; | |
1417 | ||
1418 | self = self; | |
1419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindWindowAtPoint",_kwnames,&_obj0)) | |
1420 | return NULL; | |
1421 | { | |
1422 | _arg0 = &temp; | |
1423 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1424 | return NULL; | |
1425 | } | |
1426 | { | |
4268f798 | 1427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1428 | _result = (wxWindow *)wxFindWindowAtPoint(*_arg0); |
493f1553 | 1429 | |
4268f798 RD |
1430 | wxPyEndAllowThreads(__tstate); |
1431 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1432 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1433 | return _resultobj; | |
1434 | } | |
1435 | ||
1436 | static PyObject *_wrap_wxCheckForInterrupt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1437 | PyObject * _resultobj; | |
1438 | bool _result; | |
1439 | wxWindow * _arg0; | |
1440 | PyObject * _argo0 = 0; | |
1441 | char *_kwnames[] = { "wnd", NULL }; | |
1442 | ||
1443 | self = self; | |
1444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckForInterrupt",_kwnames,&_argo0)) | |
1445 | return NULL; | |
1446 | if (_argo0) { | |
1447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckForInterrupt. Expected _wxWindow_p."); | |
1450 | return NULL; | |
1451 | } | |
1452 | } | |
1453 | { | |
4268f798 | 1454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1455 | _result = (bool )wxCheckForInterrupt(_arg0); |
493f1553 | 1456 | |
4268f798 RD |
1457 | wxPyEndAllowThreads(__tstate); |
1458 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1459 | } _resultobj = Py_BuildValue("i",_result); |
1460 | return _resultobj; | |
1461 | } | |
1462 | ||
25832b3f RD |
1463 | static PyObject *_wrap_wxFlushEvents(PyObject *self, PyObject *args, PyObject *kwargs) { |
1464 | PyObject * _resultobj; | |
1465 | char *_kwnames[] = { NULL }; | |
1466 | ||
1467 | self = self; | |
1468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFlushEvents",_kwnames)) | |
1469 | return NULL; | |
1470 | { | |
4268f798 | 1471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1472 | wxFlushEvents(); |
25832b3f | 1473 | |
4268f798 RD |
1474 | wxPyEndAllowThreads(__tstate); |
1475 | if (PyErr_Occurred()) return NULL; | |
25832b3f RD |
1476 | } Py_INCREF(Py_None); |
1477 | _resultobj = Py_None; | |
1478 | return _resultobj; | |
1479 | } | |
1480 | ||
2a74d141 RD |
1481 | static PyObject *_wrap_wxGetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1482 | PyObject * _resultobj; | |
1483 | wxWindow * _result; | |
1484 | wxWindow * _arg0; | |
1485 | PyObject * _argo0 = 0; | |
1486 | char *_kwnames[] = { "win", NULL }; | |
1487 | ||
1488 | self = self; | |
1489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGetTopLevelParent",_kwnames,&_argo0)) | |
1490 | return NULL; | |
1491 | if (_argo0) { | |
1492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGetTopLevelParent. Expected _wxWindow_p."); | |
1495 | return NULL; | |
1496 | } | |
1497 | } | |
1498 | { | |
1499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1500 | _result = (wxWindow *)wxGetTopLevelParent(_arg0); | |
1501 | ||
1502 | wxPyEndAllowThreads(__tstate); | |
1503 | if (PyErr_Occurred()) return NULL; | |
1504 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1505 | return _resultobj; | |
1506 | } | |
1507 | ||
06c0fba4 RD |
1508 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { |
1509 | PyObject * _resultobj; | |
1510 | bool _result; | |
1511 | char * _arg0; | |
1512 | int _arg1; | |
1513 | char *_kwnames[] = { "name","value", NULL }; | |
1514 | ||
1515 | self = self; | |
1516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
1517 | return NULL; | |
1518 | { | |
4268f798 | 1519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1520 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); |
06c0fba4 | 1521 | |
4268f798 RD |
1522 | wxPyEndAllowThreads(__tstate); |
1523 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1524 | } _resultobj = Py_BuildValue("i",_result); |
1525 | return _resultobj; | |
1526 | } | |
1527 | ||
1528 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1529 | PyObject * _resultobj; | |
1530 | char *_kwnames[] = { NULL }; | |
1531 | ||
1532 | self = self; | |
1533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
1534 | return NULL; | |
1535 | { | |
4268f798 | 1536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1537 | wxResourceClear(); |
06c0fba4 | 1538 | |
4268f798 RD |
1539 | wxPyEndAllowThreads(__tstate); |
1540 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1541 | } Py_INCREF(Py_None); |
1542 | _resultobj = Py_None; | |
1543 | return _resultobj; | |
1544 | } | |
1545 | ||
1546 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1547 | PyObject * _resultobj; | |
1548 | wxBitmap * _result; | |
1549 | char * _arg0; | |
1550 | char *_kwnames[] = { "resource", NULL }; | |
1551 | char _ptemp[128]; | |
1552 | ||
1553 | self = self; | |
1554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
1555 | return NULL; | |
1556 | { | |
4268f798 | 1557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1558 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); |
06c0fba4 | 1559 | |
4268f798 RD |
1560 | wxPyEndAllowThreads(__tstate); |
1561 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1562 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1563 | _resultobj = Py_BuildValue("s",_ptemp); | |
1564 | return _resultobj; | |
1565 | } | |
1566 | ||
1567 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1568 | PyObject * _resultobj; | |
1569 | wxIcon * _result; | |
1570 | char * _arg0; | |
1571 | char *_kwnames[] = { "resource", NULL }; | |
1572 | char _ptemp[128]; | |
1573 | ||
1574 | self = self; | |
1575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
1576 | return NULL; | |
1577 | { | |
4268f798 | 1578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1579 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); |
06c0fba4 | 1580 | |
4268f798 RD |
1581 | wxPyEndAllowThreads(__tstate); |
1582 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1583 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); |
1584 | _resultobj = Py_BuildValue("s",_ptemp); | |
1585 | return _resultobj; | |
1586 | } | |
1587 | ||
1588 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1589 | PyObject * _resultobj; | |
1590 | wxMenuBar * _result; | |
1591 | char * _arg0; | |
1592 | char *_kwnames[] = { "resource", NULL }; | |
06c0fba4 RD |
1593 | |
1594 | self = self; | |
1595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
1596 | return NULL; | |
1597 | { | |
4268f798 | 1598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1599 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); |
06c0fba4 | 1600 | |
4268f798 RD |
1601 | wxPyEndAllowThreads(__tstate); |
1602 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1603 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1604 | return _resultobj; |
1605 | } | |
1606 | ||
1607 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1608 | PyObject * _resultobj; | |
1609 | int _result; | |
1610 | char * _arg0; | |
1611 | char *_kwnames[] = { "name", NULL }; | |
1612 | ||
1613 | self = self; | |
1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
1615 | return NULL; | |
1616 | { | |
4268f798 | 1617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1618 | _result = (int )wxResourceGetIdentifier(_arg0); |
06c0fba4 | 1619 | |
4268f798 RD |
1620 | wxPyEndAllowThreads(__tstate); |
1621 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1622 | } _resultobj = Py_BuildValue("i",_result); |
1623 | return _resultobj; | |
1624 | } | |
1625 | ||
1626 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1627 | PyObject * _resultobj; | |
1628 | bool _result; | |
1629 | char * _arg0; | |
1630 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1631 | PyObject * _argo1 = 0; | |
1632 | char *_kwnames[] = { "resource","table", NULL }; | |
1633 | ||
1634 | self = self; | |
1635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
1636 | return NULL; | |
1637 | if (_argo1) { | |
1638 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1639 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
1641 | return NULL; | |
1642 | } | |
1643 | } | |
1644 | { | |
4268f798 | 1645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1646 | _result = (bool )wxResourceParseData(_arg0,_arg1); |
06c0fba4 | 1647 | |
4268f798 RD |
1648 | wxPyEndAllowThreads(__tstate); |
1649 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1650 | } _resultobj = Py_BuildValue("i",_result); |
1651 | return _resultobj; | |
1652 | } | |
1653 | ||
1654 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1655 | PyObject * _resultobj; | |
1656 | bool _result; | |
1657 | char * _arg0; | |
1658 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1659 | PyObject * _argo1 = 0; | |
1660 | char *_kwnames[] = { "filename","table", NULL }; | |
1661 | ||
1662 | self = self; | |
1663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
1664 | return NULL; | |
1665 | if (_argo1) { | |
1666 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1667 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
1669 | return NULL; | |
1670 | } | |
1671 | } | |
1672 | { | |
4268f798 | 1673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1674 | _result = (bool )wxResourceParseFile(_arg0,_arg1); |
06c0fba4 | 1675 | |
4268f798 RD |
1676 | wxPyEndAllowThreads(__tstate); |
1677 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1678 | } _resultobj = Py_BuildValue("i",_result); |
1679 | return _resultobj; | |
1680 | } | |
1681 | ||
1682 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1683 | PyObject * _resultobj; | |
1684 | bool _result; | |
1685 | char * _arg0; | |
1686 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1687 | PyObject * _argo1 = 0; | |
1688 | char *_kwnames[] = { "resource","table", NULL }; | |
1689 | ||
1690 | self = self; | |
1691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
1692 | return NULL; | |
1693 | if (_argo1) { | |
1694 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1695 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
1697 | return NULL; | |
1698 | } | |
1699 | } | |
1700 | { | |
4268f798 | 1701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1702 | _result = (bool )wxResourceParseString(_arg0,_arg1); |
06c0fba4 | 1703 | |
4268f798 RD |
1704 | wxPyEndAllowThreads(__tstate); |
1705 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1706 | } _resultobj = Py_BuildValue("i",_result); |
1707 | return _resultobj; | |
1708 | } | |
1709 | ||
f0261a72 RD |
1710 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { |
1711 | PyObject * _resultobj; | |
1712 | int _result; | |
1713 | char *_kwnames[] = { NULL }; | |
1714 | ||
1715 | self = self; | |
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1717 | return NULL; | |
1718 | { | |
4268f798 | 1719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1720 | _result = (int )wxCaret_GetBlinkTime(); |
f0261a72 | 1721 | |
4268f798 RD |
1722 | wxPyEndAllowThreads(__tstate); |
1723 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1724 | } _resultobj = Py_BuildValue("i",_result); |
1725 | return _resultobj; | |
1726 | } | |
1727 | ||
1728 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1729 | PyObject * _resultobj; | |
1730 | int _arg0; | |
1731 | char *_kwnames[] = { "milliseconds", NULL }; | |
1732 | ||
1733 | self = self; | |
1734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1735 | return NULL; | |
1736 | { | |
4268f798 | 1737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1738 | wxCaret_SetBlinkTime(_arg0); |
f0261a72 | 1739 | |
4268f798 RD |
1740 | wxPyEndAllowThreads(__tstate); |
1741 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1742 | } Py_INCREF(Py_None); |
1743 | _resultobj = Py_None; | |
1744 | return _resultobj; | |
1745 | } | |
1746 | ||
6e18ca6c RD |
1747 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { |
1748 | PyObject * _resultobj; | |
1749 | bool _result; | |
1750 | wxWindow * _arg0 = (wxWindow *) NULL; | |
1751 | PyObject * _argo0 = 0; | |
1752 | char *_kwnames[] = { "win", NULL }; | |
1753 | ||
1754 | self = self; | |
1755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0)) | |
1756 | return NULL; | |
1757 | if (_argo0) { | |
1758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1761 | return NULL; | |
1762 | } | |
1763 | } | |
1764 | { | |
4268f798 | 1765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1766 | _result = (bool )wxSafeYield(_arg0); |
6e18ca6c | 1767 | |
4268f798 RD |
1768 | wxPyEndAllowThreads(__tstate); |
1769 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1770 | } _resultobj = Py_BuildValue("i",_result); |
1771 | return _resultobj; | |
1772 | } | |
1773 | ||
b1462dfa RD |
1774 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1775 | PyObject * _resultobj; | |
1776 | wxEvtHandler * _arg0; | |
1777 | wxEvent * _arg1; | |
1778 | PyObject * _argo0 = 0; | |
1779 | PyObject * _argo1 = 0; | |
1780 | char *_kwnames[] = { "dest","event", NULL }; | |
1781 | ||
1782 | self = self; | |
1783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1784 | return NULL; | |
1785 | if (_argo0) { | |
1786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1789 | return NULL; | |
1790 | } | |
1791 | } | |
1792 | if (_argo1) { | |
1793 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1794 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1796 | return NULL; | |
1797 | } | |
1798 | } | |
1799 | { | |
4268f798 | 1800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1801 | wxPostEvent(_arg0,*_arg1); |
b1462dfa | 1802 | |
4268f798 RD |
1803 | wxPyEndAllowThreads(__tstate); |
1804 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
1805 | } Py_INCREF(Py_None); |
1806 | _resultobj = Py_None; | |
1807 | return _resultobj; | |
1808 | } | |
1809 | ||
694759cf RD |
1810 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { |
1811 | PyObject * _resultobj; | |
1812 | char *_kwnames[] = { NULL }; | |
1813 | ||
1814 | self = self; | |
1815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1816 | return NULL; | |
1817 | { | |
4268f798 | 1818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1819 | wxWakeUpIdle(); |
694759cf | 1820 | |
4268f798 RD |
1821 | wxPyEndAllowThreads(__tstate); |
1822 | if (PyErr_Occurred()) return NULL; | |
694759cf RD |
1823 | } Py_INCREF(Py_None); |
1824 | _resultobj = Py_None; | |
1825 | return _resultobj; | |
1826 | } | |
1827 | ||
6e18ca6c | 1828 | static PyObject *_wrap_wxWakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
c368d904 | 1829 | PyObject * _resultobj; |
6e18ca6c | 1830 | char *_kwnames[] = { NULL }; |
c368d904 RD |
1831 | |
1832 | self = self; | |
6e18ca6c | 1833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpMainThread",_kwnames)) |
c368d904 | 1834 | return NULL; |
6e18ca6c | 1835 | { |
4268f798 | 1836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1837 | wxWakeUpMainThread(); |
6e18ca6c | 1838 | |
4268f798 RD |
1839 | wxPyEndAllowThreads(__tstate); |
1840 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1841 | } Py_INCREF(Py_None); |
1842 | _resultobj = Py_None; | |
1843 | return _resultobj; | |
1844 | } | |
1845 | ||
1846 | static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1847 | PyObject * _resultobj; | |
1848 | char *_kwnames[] = { NULL }; | |
1849 | ||
1850 | self = self; | |
1851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames)) | |
c368d904 | 1852 | return NULL; |
c368d904 | 1853 | { |
4268f798 | 1854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1855 | wxMutexGuiEnter(); |
6e18ca6c | 1856 | |
4268f798 RD |
1857 | wxPyEndAllowThreads(__tstate); |
1858 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1859 | } Py_INCREF(Py_None); |
1860 | _resultobj = Py_None; | |
1861 | return _resultobj; | |
1862 | } | |
1863 | ||
1864 | static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1865 | PyObject * _resultobj; | |
1866 | char *_kwnames[] = { NULL }; | |
1867 | ||
1868 | self = self; | |
1869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames)) | |
1870 | return NULL; | |
1871 | { | |
4268f798 | 1872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1873 | wxMutexGuiLeave(); |
6e18ca6c | 1874 | |
4268f798 RD |
1875 | wxPyEndAllowThreads(__tstate); |
1876 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1877 | } Py_INCREF(Py_None); |
1878 | _resultobj = Py_None; | |
1879 | return _resultobj; | |
1880 | } | |
1881 | ||
1882 | static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1883 | PyObject * _resultobj; | |
1884 | bool _result; | |
1885 | char *_kwnames[] = { NULL }; | |
1886 | ||
1887 | self = self; | |
1888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames)) | |
1889 | return NULL; | |
1890 | { | |
4268f798 | 1891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1892 | _result = (bool )wxThread_IsMain(); |
c368d904 | 1893 | |
4268f798 RD |
1894 | wxPyEndAllowThreads(__tstate); |
1895 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
1896 | } _resultobj = Py_BuildValue("i",_result); |
1897 | return _resultobj; | |
1898 | } | |
1899 | ||
f6bcfd97 | 1900 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd | 1901 | PyObject * _resultobj; |
f6bcfd97 BP |
1902 | bool _result; |
1903 | wxWindow * _arg0; | |
1904 | wxTipProvider * _arg1; | |
1905 | bool _arg2 = (bool ) TRUE; | |
1906 | PyObject * _argo0 = 0; | |
1907 | PyObject * _argo1 = 0; | |
1908 | int tempbool2 = (int) TRUE; | |
1909 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1910 | ||
1911 | self = self; | |
1912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1913 | return NULL; | |
1914 | if (_argo0) { | |
1915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1918 | return NULL; | |
1919 | } | |
1920 | } | |
1921 | if (_argo1) { | |
1922 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1923 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1925 | return NULL; | |
1926 | } | |
1927 | } | |
1928 | _arg2 = (bool ) tempbool2; | |
1929 | { | |
4268f798 | 1930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1931 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); |
f6bcfd97 | 1932 | |
4268f798 RD |
1933 | wxPyEndAllowThreads(__tstate); |
1934 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1935 | } _resultobj = Py_BuildValue("i",_result); |
1936 | return _resultobj; | |
1937 | } | |
1938 | ||
1939 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1940 | PyObject * _resultobj; | |
1941 | wxTipProvider * _result; | |
bb0054cd | 1942 | wxString * _arg0; |
f6bcfd97 | 1943 | size_t _arg1; |
bb0054cd | 1944 | PyObject * _obj0 = 0; |
f6bcfd97 | 1945 | char *_kwnames[] = { "filename","currentTip", NULL }; |
bb0054cd RD |
1946 | char _ptemp[128]; |
1947 | ||
1948 | self = self; | |
f6bcfd97 | 1949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) |
bb0054cd RD |
1950 | return NULL; |
1951 | { | |
c8bc7bb8 RD |
1952 | _arg0 = wxString_in_helper(_obj0); |
1953 | if (_arg0 == NULL) | |
185d7c3e | 1954 | return NULL; |
bb0054cd RD |
1955 | } |
1956 | { | |
4268f798 | 1957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1958 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); |
bb0054cd | 1959 | |
4268f798 RD |
1960 | wxPyEndAllowThreads(__tstate); |
1961 | if (PyErr_Occurred()) return NULL; | |
1d99702e | 1962 | } if (_result) { |
f6bcfd97 | 1963 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); |
1d99702e RD |
1964 | _resultobj = Py_BuildValue("s",_ptemp); |
1965 | } else { | |
1966 | Py_INCREF(Py_None); | |
1967 | _resultobj = Py_None; | |
1968 | } | |
bb0054cd RD |
1969 | { |
1970 | if (_obj0) | |
1971 | delete _arg0; | |
1972 | } | |
1973 | return _resultobj; | |
1974 | } | |
1975 | ||
f6bcfd97 | 1976 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1977 | PyObject * _resultobj; |
f6bcfd97 BP |
1978 | unsigned long _result; |
1979 | char *_kwnames[] = { NULL }; | |
f0261a72 RD |
1980 | |
1981 | self = self; | |
f6bcfd97 | 1982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) |
f0261a72 | 1983 | return NULL; |
f0261a72 | 1984 | { |
4268f798 | 1985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1986 | _result = (unsigned long )wxSysErrorCode(); |
f0261a72 | 1987 | |
4268f798 RD |
1988 | wxPyEndAllowThreads(__tstate); |
1989 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 1990 | } _resultobj = Py_BuildValue("l",_result); |
f0261a72 RD |
1991 | return _resultobj; |
1992 | } | |
1993 | ||
f6bcfd97 | 1994 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1995 | PyObject * _resultobj; |
c8bc7bb8 | 1996 | wxString * _result; |
f6bcfd97 BP |
1997 | unsigned long _arg0 = (unsigned long ) 0; |
1998 | char *_kwnames[] = { "nErrCode", NULL }; | |
f0261a72 RD |
1999 | |
2000 | self = self; | |
f6bcfd97 | 2001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) |
f0261a72 | 2002 | return NULL; |
f0261a72 | 2003 | { |
4268f798 | 2004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2005 | _result = new wxString (wxSysErrorMsg(_arg0)); |
f0261a72 | 2006 | |
4268f798 RD |
2007 | wxPyEndAllowThreads(__tstate); |
2008 | if (PyErr_Occurred()) return NULL; | |
c8bc7bb8 RD |
2009 | }{ |
2010 | #if wxUSE_UNICODE | |
2011 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2012 | #else | |
2013 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2014 | #endif | |
2015 | } | |
2016 | { | |
2017 | delete _result; | |
2018 | } | |
f0261a72 RD |
2019 | return _resultobj; |
2020 | } | |
2021 | ||
f6bcfd97 | 2022 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 2023 | PyObject * _resultobj; |
c8bc7bb8 RD |
2024 | wxString * _arg0; |
2025 | PyObject * _obj0 = 0; | |
be13a6af | 2026 | char *_kwnames[] = { "msg", NULL }; |
f0261a72 RD |
2027 | |
2028 | self = self; | |
c8bc7bb8 | 2029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogFatalError",_kwnames,&_obj0)) |
f0261a72 | 2030 | return NULL; |
c8bc7bb8 RD |
2031 | { |
2032 | _arg0 = wxString_in_helper(_obj0); | |
2033 | if (_arg0 == NULL) | |
2034 | return NULL; | |
2035 | } | |
f0261a72 | 2036 | { |
4268f798 | 2037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2038 | wxLogFatalError(*_arg0); |
f0261a72 | 2039 | |
4268f798 RD |
2040 | wxPyEndAllowThreads(__tstate); |
2041 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2042 | } Py_INCREF(Py_None); |
2043 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2044 | { |
2045 | if (_obj0) | |
2046 | delete _arg0; | |
2047 | } | |
f0261a72 RD |
2048 | return _resultobj; |
2049 | } | |
2050 | ||
f6bcfd97 | 2051 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 2052 | PyObject * _resultobj; |
c8bc7bb8 RD |
2053 | wxString * _arg0; |
2054 | PyObject * _obj0 = 0; | |
be13a6af | 2055 | char *_kwnames[] = { "msg", NULL }; |
f0261a72 RD |
2056 | |
2057 | self = self; | |
c8bc7bb8 | 2058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogError",_kwnames,&_obj0)) |
f0261a72 | 2059 | return NULL; |
c8bc7bb8 RD |
2060 | { |
2061 | _arg0 = wxString_in_helper(_obj0); | |
2062 | if (_arg0 == NULL) | |
2063 | return NULL; | |
2064 | } | |
f0261a72 | 2065 | { |
4268f798 | 2066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2067 | wxLogError(*_arg0); |
f0261a72 | 2068 | |
4268f798 RD |
2069 | wxPyEndAllowThreads(__tstate); |
2070 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
2071 | } Py_INCREF(Py_None); |
2072 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2073 | { |
2074 | if (_obj0) | |
2075 | delete _arg0; | |
2076 | } | |
f0261a72 RD |
2077 | return _resultobj; |
2078 | } | |
2079 | ||
f6bcfd97 BP |
2080 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { |
2081 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2082 | wxString * _arg0; |
2083 | PyObject * _obj0 = 0; | |
be13a6af | 2084 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2085 | |
2086 | self = self; | |
c8bc7bb8 | 2087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWarning",_kwnames,&_obj0)) |
f6bcfd97 | 2088 | return NULL; |
c8bc7bb8 RD |
2089 | { |
2090 | _arg0 = wxString_in_helper(_obj0); | |
2091 | if (_arg0 == NULL) | |
2092 | return NULL; | |
2093 | } | |
f6bcfd97 | 2094 | { |
4268f798 | 2095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2096 | wxLogWarning(*_arg0); |
f6bcfd97 | 2097 | |
4268f798 RD |
2098 | wxPyEndAllowThreads(__tstate); |
2099 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2100 | } Py_INCREF(Py_None); |
2101 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2102 | { |
2103 | if (_obj0) | |
2104 | delete _arg0; | |
2105 | } | |
f6bcfd97 BP |
2106 | return _resultobj; |
2107 | } | |
2108 | ||
2109 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2110 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2111 | wxString * _arg0; |
2112 | PyObject * _obj0 = 0; | |
be13a6af | 2113 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2114 | |
2115 | self = self; | |
c8bc7bb8 RD |
2116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogMessage",_kwnames,&_obj0)) |
2117 | return NULL; | |
2118 | { | |
2119 | _arg0 = wxString_in_helper(_obj0); | |
2120 | if (_arg0 == NULL) | |
f6bcfd97 | 2121 | return NULL; |
c8bc7bb8 | 2122 | } |
f6bcfd97 | 2123 | { |
4268f798 | 2124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2125 | wxLogMessage(*_arg0); |
f6bcfd97 | 2126 | |
4268f798 RD |
2127 | wxPyEndAllowThreads(__tstate); |
2128 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2129 | } Py_INCREF(Py_None); |
2130 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2131 | { |
2132 | if (_obj0) | |
2133 | delete _arg0; | |
2134 | } | |
f6bcfd97 BP |
2135 | return _resultobj; |
2136 | } | |
2137 | ||
2138 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2139 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2140 | wxString * _arg0; |
2141 | PyObject * _obj0 = 0; | |
be13a6af | 2142 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2143 | |
2144 | self = self; | |
c8bc7bb8 RD |
2145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogInfo",_kwnames,&_obj0)) |
2146 | return NULL; | |
2147 | { | |
2148 | _arg0 = wxString_in_helper(_obj0); | |
2149 | if (_arg0 == NULL) | |
f6bcfd97 | 2150 | return NULL; |
c8bc7bb8 | 2151 | } |
f6bcfd97 | 2152 | { |
4268f798 | 2153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2154 | wxLogInfo(*_arg0); |
f6bcfd97 | 2155 | |
4268f798 RD |
2156 | wxPyEndAllowThreads(__tstate); |
2157 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2158 | } Py_INCREF(Py_None); |
2159 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2160 | { |
2161 | if (_obj0) | |
2162 | delete _arg0; | |
2163 | } | |
f6bcfd97 BP |
2164 | return _resultobj; |
2165 | } | |
2166 | ||
2167 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2168 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2169 | wxString * _arg0; |
2170 | PyObject * _obj0 = 0; | |
be13a6af | 2171 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2172 | |
2173 | self = self; | |
c8bc7bb8 | 2174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogVerbose",_kwnames,&_obj0)) |
f6bcfd97 | 2175 | return NULL; |
c8bc7bb8 RD |
2176 | { |
2177 | _arg0 = wxString_in_helper(_obj0); | |
2178 | if (_arg0 == NULL) | |
2179 | return NULL; | |
2180 | } | |
f6bcfd97 | 2181 | { |
4268f798 | 2182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2183 | wxLogVerbose(*_arg0); |
f6bcfd97 | 2184 | |
4268f798 RD |
2185 | wxPyEndAllowThreads(__tstate); |
2186 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2187 | } Py_INCREF(Py_None); |
2188 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2189 | { |
2190 | if (_obj0) | |
2191 | delete _arg0; | |
2192 | } | |
f6bcfd97 BP |
2193 | return _resultobj; |
2194 | } | |
2195 | ||
2196 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2197 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2198 | wxString * _arg0; |
2199 | PyObject * _obj0 = 0; | |
be13a6af | 2200 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2201 | |
2202 | self = self; | |
c8bc7bb8 RD |
2203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogStatus",_kwnames,&_obj0)) |
2204 | return NULL; | |
2205 | { | |
2206 | _arg0 = wxString_in_helper(_obj0); | |
2207 | if (_arg0 == NULL) | |
f6bcfd97 | 2208 | return NULL; |
c8bc7bb8 | 2209 | } |
f6bcfd97 | 2210 | { |
4268f798 | 2211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2212 | wxLogStatus(*_arg0); |
f6bcfd97 | 2213 | |
4268f798 RD |
2214 | wxPyEndAllowThreads(__tstate); |
2215 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2216 | } Py_INCREF(Py_None); |
2217 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2218 | { |
2219 | if (_obj0) | |
2220 | delete _arg0; | |
2221 | } | |
f6bcfd97 BP |
2222 | return _resultobj; |
2223 | } | |
2224 | ||
2225 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2226 | PyObject * _resultobj; | |
2227 | wxFrame * _arg0; | |
c8bc7bb8 | 2228 | wxString * _arg1; |
f6bcfd97 | 2229 | PyObject * _argo0 = 0; |
c8bc7bb8 | 2230 | PyObject * _obj1 = 0; |
be13a6af | 2231 | char *_kwnames[] = { "pFrame","msg", NULL }; |
f6bcfd97 BP |
2232 | |
2233 | self = self; | |
c8bc7bb8 | 2234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogStatusFrame",_kwnames,&_argo0,&_obj1)) |
f6bcfd97 BP |
2235 | return NULL; |
2236 | if (_argo0) { | |
2237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2240 | return NULL; | |
2241 | } | |
2242 | } | |
c8bc7bb8 RD |
2243 | { |
2244 | _arg1 = wxString_in_helper(_obj1); | |
2245 | if (_arg1 == NULL) | |
2246 | return NULL; | |
2247 | } | |
f6bcfd97 | 2248 | { |
4268f798 | 2249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2250 | wxLogStatus(_arg0,*_arg1); |
f6bcfd97 | 2251 | |
4268f798 RD |
2252 | wxPyEndAllowThreads(__tstate); |
2253 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2254 | } Py_INCREF(Py_None); |
2255 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2256 | { |
2257 | if (_obj1) | |
2258 | delete _arg1; | |
2259 | } | |
f6bcfd97 BP |
2260 | return _resultobj; |
2261 | } | |
2262 | ||
2263 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2264 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2265 | wxString * _arg0; |
2266 | PyObject * _obj0 = 0; | |
be13a6af | 2267 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2268 | |
2269 | self = self; | |
c8bc7bb8 RD |
2270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogSysError",_kwnames,&_obj0)) |
2271 | return NULL; | |
2272 | { | |
2273 | _arg0 = wxString_in_helper(_obj0); | |
2274 | if (_arg0 == NULL) | |
f6bcfd97 | 2275 | return NULL; |
c8bc7bb8 | 2276 | } |
f6bcfd97 | 2277 | { |
4268f798 | 2278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2279 | wxLogSysError(*_arg0); |
f6bcfd97 | 2280 | |
4268f798 RD |
2281 | wxPyEndAllowThreads(__tstate); |
2282 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2283 | } Py_INCREF(Py_None); |
2284 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2285 | { |
2286 | if (_obj0) | |
2287 | delete _arg0; | |
2288 | } | |
f6bcfd97 BP |
2289 | return _resultobj; |
2290 | } | |
2291 | ||
be13a6af RD |
2292 | static PyObject *_wrap_wxLogTrace(PyObject *self, PyObject *args, PyObject *kwargs) { |
2293 | PyObject * _resultobj; | |
2294 | wxString * _arg0; | |
2295 | PyObject * _obj0 = 0; | |
2296 | char *_kwnames[] = { "msg", NULL }; | |
2297 | ||
2298 | self = self; | |
2299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogTrace",_kwnames,&_obj0)) | |
2300 | return NULL; | |
2301 | { | |
2302 | _arg0 = wxString_in_helper(_obj0); | |
2303 | if (_arg0 == NULL) | |
2304 | return NULL; | |
2305 | } | |
2306 | { | |
2307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2308 | wxLogTrace(*_arg0); | |
2309 | ||
2310 | wxPyEndAllowThreads(__tstate); | |
2311 | if (PyErr_Occurred()) return NULL; | |
2312 | } Py_INCREF(Py_None); | |
2313 | _resultobj = Py_None; | |
2314 | { | |
2315 | if (_obj0) | |
2316 | delete _arg0; | |
2317 | } | |
2318 | return _resultobj; | |
2319 | } | |
2320 | ||
2321 | static PyObject *_wrap_wxLogTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2322 | PyObject * _resultobj; | |
2323 | wxString * _arg0; | |
2324 | wxString * _arg1; | |
2325 | PyObject * _obj0 = 0; | |
2326 | PyObject * _obj1 = 0; | |
2327 | char *_kwnames[] = { "mask","msg", NULL }; | |
2328 | ||
2329 | self = self; | |
2330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogTraceMask",_kwnames,&_obj0,&_obj1)) | |
2331 | return NULL; | |
2332 | { | |
2333 | _arg0 = wxString_in_helper(_obj0); | |
2334 | if (_arg0 == NULL) | |
2335 | return NULL; | |
2336 | } | |
2337 | { | |
2338 | _arg1 = wxString_in_helper(_obj1); | |
2339 | if (_arg1 == NULL) | |
2340 | return NULL; | |
2341 | } | |
2342 | { | |
2343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2344 | wxLogTrace(*_arg0,*_arg1); | |
2345 | ||
2346 | wxPyEndAllowThreads(__tstate); | |
2347 | if (PyErr_Occurred()) return NULL; | |
2348 | } Py_INCREF(Py_None); | |
2349 | _resultobj = Py_None; | |
2350 | { | |
2351 | if (_obj0) | |
2352 | delete _arg0; | |
2353 | } | |
2354 | { | |
2355 | if (_obj1) | |
2356 | delete _arg1; | |
2357 | } | |
2358 | return _resultobj; | |
2359 | } | |
2360 | ||
2361 | static PyObject *_wrap_wxLogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2362 | PyObject * _resultobj; | |
2363 | unsigned long _arg0; | |
2364 | wxString * _arg1; | |
2365 | PyObject * _obj1 = 0; | |
2366 | char *_kwnames[] = { "level","msg", NULL }; | |
2367 | ||
2368 | self = self; | |
2369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"lO:wxLogGeneric",_kwnames,&_arg0,&_obj1)) | |
2370 | return NULL; | |
2371 | { | |
2372 | _arg1 = wxString_in_helper(_obj1); | |
2373 | if (_arg1 == NULL) | |
2374 | return NULL; | |
2375 | } | |
2376 | { | |
2377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2378 | wxLogGeneric(_arg0,*_arg1); | |
2379 | ||
2380 | wxPyEndAllowThreads(__tstate); | |
2381 | if (PyErr_Occurred()) return NULL; | |
2382 | } Py_INCREF(Py_None); | |
2383 | _resultobj = Py_None; | |
2384 | { | |
2385 | if (_obj1) | |
2386 | delete _arg1; | |
2387 | } | |
2388 | return _resultobj; | |
2389 | } | |
2390 | ||
0b85cc38 RD |
2391 | static PyObject *_wrap_wxSafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
2392 | PyObject * _resultobj; | |
2393 | wxString * _arg0; | |
2394 | wxString * _arg1; | |
2395 | PyObject * _obj0 = 0; | |
2396 | PyObject * _obj1 = 0; | |
2397 | char *_kwnames[] = { "title","text", NULL }; | |
2398 | ||
2399 | self = self; | |
2400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSafeShowMessage",_kwnames,&_obj0,&_obj1)) | |
2401 | return NULL; | |
2402 | { | |
2403 | _arg0 = wxString_in_helper(_obj0); | |
2404 | if (_arg0 == NULL) | |
2405 | return NULL; | |
2406 | } | |
2407 | { | |
2408 | _arg1 = wxString_in_helper(_obj1); | |
2409 | if (_arg1 == NULL) | |
2410 | return NULL; | |
2411 | } | |
2412 | { | |
2413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2414 | wxSafeShowMessage(*_arg0,*_arg1); | |
2415 | ||
2416 | wxPyEndAllowThreads(__tstate); | |
2417 | if (PyErr_Occurred()) return NULL; | |
2418 | } Py_INCREF(Py_None); | |
2419 | _resultobj = Py_None; | |
2420 | { | |
2421 | if (_obj0) | |
2422 | delete _arg0; | |
2423 | } | |
2424 | { | |
2425 | if (_obj1) | |
2426 | delete _arg1; | |
2427 | } | |
2428 | return _resultobj; | |
2429 | } | |
2430 | ||
c368d904 RD |
2431 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { |
2432 | PyObject * _resultobj; | |
2433 | long _result; | |
2434 | wxString * _arg0; | |
b96c7a38 | 2435 | int _arg1 = (int ) (wxEXEC_ASYNC); |
c368d904 RD |
2436 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; |
2437 | PyObject * _obj0 = 0; | |
2438 | PyObject * _argo2 = 0; | |
b96c7a38 | 2439 | char *_kwnames[] = { "command","flags","process", NULL }; |
c368d904 RD |
2440 | |
2441 | self = self; | |
2442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2443 | return NULL; | |
2444 | { | |
c8bc7bb8 RD |
2445 | _arg0 = wxString_in_helper(_obj0); |
2446 | if (_arg0 == NULL) | |
185d7c3e | 2447 | return NULL; |
c368d904 RD |
2448 | } |
2449 | if (_argo2) { | |
2450 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2451 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2453 | return NULL; | |
2454 | } | |
2455 | } | |
2456 | { | |
4268f798 | 2457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2458 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); |
c368d904 | 2459 | |
4268f798 RD |
2460 | wxPyEndAllowThreads(__tstate); |
2461 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
2462 | } _resultobj = Py_BuildValue("l",_result); |
2463 | { | |
2464 | if (_obj0) | |
2465 | delete _arg0; | |
2466 | } | |
2467 | return _resultobj; | |
2468 | } | |
2469 | ||
493f1553 RD |
2470 | static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) { |
2471 | PyObject * _resultobj; | |
2472 | wxWave * _result; | |
2473 | wxString * _arg0; | |
2474 | PyObject * _obj0 = 0; | |
2475 | char *_kwnames[] = { "data", NULL }; | |
2476 | char _ptemp[128]; | |
2477 | ||
2478 | self = self; | |
2479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0)) | |
2480 | return NULL; | |
2481 | { | |
c8bc7bb8 RD |
2482 | _arg0 = wxString_in_helper(_obj0); |
2483 | if (_arg0 == NULL) | |
493f1553 | 2484 | return NULL; |
493f1553 RD |
2485 | } |
2486 | { | |
4268f798 | 2487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2488 | _result = (wxWave *)wxWaveData(*_arg0); |
493f1553 | 2489 | |
4268f798 RD |
2490 | wxPyEndAllowThreads(__tstate); |
2491 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
2492 | } if (_result) { |
2493 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
2494 | _resultobj = Py_BuildValue("s",_ptemp); | |
2495 | } else { | |
2496 | Py_INCREF(Py_None); | |
2497 | _resultobj = Py_None; | |
2498 | } | |
2499 | { | |
2500 | if (_obj0) | |
2501 | delete _arg0; | |
2502 | } | |
2503 | return _resultobj; | |
2504 | } | |
2505 | ||
b37c7e1d RD |
2506 | static int _wrap_wxTheMimeTypesManager_set(PyObject *val) { |
2507 | ||
2508 | PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only."); | |
2509 | return 1; | |
2510 | } | |
2511 | ||
2512 | static PyObject *_wrap_wxTheMimeTypesManager_get() { | |
2513 | PyObject * pyobj; | |
2514 | char ptemp[128]; | |
2515 | ||
2516 | SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p"); | |
2517 | pyobj = PyString_FromString(ptemp); | |
2518 | return pyobj; | |
2519 | } | |
2520 | ||
b5a5d647 RD |
2521 | static PyObject *_wrap_wxSystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
2522 | PyObject * _resultobj; | |
2523 | wxColour * _result; | |
2524 | wxSystemColour _arg0; | |
2525 | char *_kwnames[] = { "index", NULL }; | |
2526 | char _ptemp[128]; | |
2527 | ||
2528 | self = self; | |
2529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetColour",_kwnames,&_arg0)) | |
2530 | return NULL; | |
2531 | { | |
2532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2533 | _result = new wxColour (wxSystemSettings::GetColour(_arg0)); |
b5a5d647 RD |
2534 | |
2535 | wxPyEndAllowThreads(__tstate); | |
2536 | if (PyErr_Occurred()) return NULL; | |
2537 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
2538 | _resultobj = Py_BuildValue("s",_ptemp); | |
2539 | return _resultobj; | |
2540 | } | |
2541 | ||
2542 | static PyObject *_wrap_wxSystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2543 | PyObject * _resultobj; | |
2544 | wxFont * _result; | |
2545 | wxSystemFont _arg0; | |
2546 | char *_kwnames[] = { "index", NULL }; | |
2547 | char _ptemp[128]; | |
2548 | ||
2549 | self = self; | |
2550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetFont",_kwnames,&_arg0)) | |
2551 | return NULL; | |
2552 | { | |
2553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2554 | _result = new wxFont (wxSystemSettings::GetFont(_arg0)); |
b5a5d647 RD |
2555 | |
2556 | wxPyEndAllowThreads(__tstate); | |
2557 | if (PyErr_Occurred()) return NULL; | |
2558 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
2559 | _resultobj = Py_BuildValue("s",_ptemp); | |
2560 | return _resultobj; | |
2561 | } | |
2562 | ||
2563 | static PyObject *_wrap_wxSystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2564 | PyObject * _resultobj; | |
2565 | int _result; | |
2566 | wxSystemMetric _arg0; | |
2567 | char *_kwnames[] = { "index", NULL }; | |
2568 | ||
2569 | self = self; | |
2570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetMetric",_kwnames,&_arg0)) | |
2571 | return NULL; | |
2572 | { | |
2573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2574 | _result = (int )wxSystemSettings::GetMetric(_arg0); |
b5a5d647 RD |
2575 | |
2576 | wxPyEndAllowThreads(__tstate); | |
2577 | if (PyErr_Occurred()) return NULL; | |
2578 | } _resultobj = Py_BuildValue("i",_result); | |
2579 | return _resultobj; | |
2580 | } | |
2581 | ||
2582 | static PyObject *_wrap_wxSystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2583 | PyObject * _resultobj; | |
2584 | bool _result; | |
2585 | wxSystemFeature _arg0; | |
2586 | char *_kwnames[] = { "index", NULL }; | |
2587 | ||
2588 | self = self; | |
2589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_HasFeature",_kwnames,&_arg0)) | |
2590 | return NULL; | |
2591 | { | |
2592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2593 | _result = (bool )wxSystemSettings::HasFeature(_arg0); |
b5a5d647 RD |
2594 | |
2595 | wxPyEndAllowThreads(__tstate); | |
2596 | if (PyErr_Occurred()) return NULL; | |
2597 | } _resultobj = Py_BuildValue("i",_result); | |
2598 | return _resultobj; | |
2599 | } | |
2600 | ||
e67409dc | 2601 | static PyObject *_wrap_wxSystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { |
0b85cc38 | 2602 | PyObject * _resultobj; |
e67409dc | 2603 | wxSystemScreenType _result; |
0b85cc38 RD |
2604 | char *_kwnames[] = { NULL }; |
2605 | ||
2606 | self = self; | |
e67409dc | 2607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSystemSettings_GetScreenType",_kwnames)) |
0b85cc38 RD |
2608 | return NULL; |
2609 | { | |
2610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e67409dc | 2611 | _result = (wxSystemScreenType )wxSystemSettings::GetScreenType(); |
0b85cc38 RD |
2612 | |
2613 | wxPyEndAllowThreads(__tstate); | |
2614 | if (PyErr_Occurred()) return NULL; | |
2615 | } _resultobj = Py_BuildValue("i",_result); | |
2616 | return _resultobj; | |
2617 | } | |
2618 | ||
e67409dc | 2619 | static PyObject *_wrap_wxSystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { |
0b85cc38 | 2620 | PyObject * _resultobj; |
e67409dc | 2621 | wxSystemScreenType _arg0; |
0b85cc38 RD |
2622 | char *_kwnames[] = { "screen", NULL }; |
2623 | ||
2624 | self = self; | |
e67409dc | 2625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_SetScreenType",_kwnames,&_arg0)) |
0b85cc38 RD |
2626 | return NULL; |
2627 | { | |
2628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e67409dc | 2629 | wxSystemSettings::SetScreenType(_arg0); |
0b85cc38 RD |
2630 | |
2631 | wxPyEndAllowThreads(__tstate); | |
2632 | if (PyErr_Occurred()) return NULL; | |
2633 | } Py_INCREF(Py_None); | |
2634 | _resultobj = Py_None; | |
2635 | return _resultobj; | |
2636 | } | |
2637 | ||
9416aa89 RD |
2638 | static void *SwigwxToolTipTowxObject(void *ptr) { |
2639 | wxToolTip *src; | |
2640 | wxObject *dest; | |
2641 | src = (wxToolTip *) ptr; | |
2642 | dest = (wxObject *) src; | |
2643 | return (void *) dest; | |
2644 | } | |
2645 | ||
f6bcfd97 BP |
2646 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) |
2647 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2648 | PyObject * _resultobj; | |
2649 | wxToolTip * _result; | |
2650 | wxString * _arg0; | |
2651 | PyObject * _obj0 = 0; | |
2652 | char *_kwnames[] = { "tip", NULL }; | |
2653 | char _ptemp[128]; | |
2654 | ||
2655 | self = self; | |
2656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2657 | return NULL; | |
2658 | { | |
c8bc7bb8 RD |
2659 | _arg0 = wxString_in_helper(_obj0); |
2660 | if (_arg0 == NULL) | |
f6bcfd97 | 2661 | return NULL; |
f6bcfd97 BP |
2662 | } |
2663 | { | |
4268f798 | 2664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2665 | _result = (wxToolTip *)new_wxToolTip(*_arg0); |
f6bcfd97 | 2666 | |
4268f798 RD |
2667 | wxPyEndAllowThreads(__tstate); |
2668 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2669 | } if (_result) { |
2670 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2671 | _resultobj = Py_BuildValue("s",_ptemp); | |
2672 | } else { | |
2673 | Py_INCREF(Py_None); | |
2674 | _resultobj = Py_None; | |
2675 | } | |
2676 | { | |
2677 | if (_obj0) | |
2678 | delete _arg0; | |
2679 | } | |
2680 | return _resultobj; | |
2681 | } | |
2682 | ||
2683 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2684 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2685 | PyObject * _resultobj; | |
2686 | wxToolTip * _arg0; | |
2687 | wxString * _arg1; | |
2688 | PyObject * _argo0 = 0; | |
2689 | PyObject * _obj1 = 0; | |
2690 | char *_kwnames[] = { "self","tip", NULL }; | |
2691 | ||
2692 | self = self; | |
2693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2694 | return NULL; | |
2695 | if (_argo0) { | |
2696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2699 | return NULL; | |
2700 | } | |
2701 | } | |
2702 | { | |
c8bc7bb8 RD |
2703 | _arg1 = wxString_in_helper(_obj1); |
2704 | if (_arg1 == NULL) | |
185d7c3e | 2705 | return NULL; |
f6bcfd97 BP |
2706 | } |
2707 | { | |
4268f798 | 2708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2709 | wxToolTip_SetTip(_arg0,*_arg1); |
f6bcfd97 | 2710 | |
4268f798 RD |
2711 | wxPyEndAllowThreads(__tstate); |
2712 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2713 | } Py_INCREF(Py_None); |
2714 | _resultobj = Py_None; | |
2715 | { | |
2716 | if (_obj1) | |
2717 | delete _arg1; | |
2718 | } | |
2719 | return _resultobj; | |
2720 | } | |
2721 | ||
2722 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2723 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2724 | PyObject * _resultobj; | |
2725 | wxString * _result; | |
2726 | wxToolTip * _arg0; | |
2727 | PyObject * _argo0 = 0; | |
2728 | char *_kwnames[] = { "self", NULL }; | |
2729 | ||
2730 | self = self; | |
2731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2732 | return NULL; | |
2733 | if (_argo0) { | |
2734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2737 | return NULL; | |
2738 | } | |
2739 | } | |
2740 | { | |
4268f798 | 2741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2742 | _result = new wxString (wxToolTip_GetTip(_arg0)); |
f6bcfd97 | 2743 | |
4268f798 RD |
2744 | wxPyEndAllowThreads(__tstate); |
2745 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 2746 | }{ |
c8bc7bb8 RD |
2747 | #if wxUSE_UNICODE |
2748 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2749 | #else | |
f6bcfd97 | 2750 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2751 | #endif |
f6bcfd97 BP |
2752 | } |
2753 | { | |
2754 | delete _result; | |
2755 | } | |
2756 | return _resultobj; | |
2757 | } | |
2758 | ||
2759 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2760 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2761 | PyObject * _resultobj; | |
2762 | wxWindow * _result; | |
2763 | wxToolTip * _arg0; | |
2764 | PyObject * _argo0 = 0; | |
2765 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2766 | |
2767 | self = self; | |
2768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2769 | return NULL; | |
2770 | if (_argo0) { | |
2771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2774 | return NULL; | |
2775 | } | |
2776 | } | |
2777 | { | |
4268f798 | 2778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2779 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); |
f6bcfd97 | 2780 | |
4268f798 RD |
2781 | wxPyEndAllowThreads(__tstate); |
2782 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 2783 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2784 | return _resultobj; |
2785 | } | |
2786 | ||
edf2f43e RD |
2787 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
2788 | PyObject * _resultobj; | |
2789 | bool _arg0; | |
2790 | int tempbool0; | |
2791 | char *_kwnames[] = { "flag", NULL }; | |
2792 | ||
2793 | self = self; | |
2794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) | |
2795 | return NULL; | |
2796 | _arg0 = (bool ) tempbool0; | |
2797 | { | |
4268f798 | 2798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2799 | wxToolTip::Enable(_arg0); |
edf2f43e | 2800 | |
4268f798 RD |
2801 | wxPyEndAllowThreads(__tstate); |
2802 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2803 | } Py_INCREF(Py_None); |
2804 | _resultobj = Py_None; | |
2805 | return _resultobj; | |
2806 | } | |
2807 | ||
2808 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2809 | PyObject * _resultobj; | |
2810 | long _arg0; | |
2811 | char *_kwnames[] = { "milliseconds", NULL }; | |
2812 | ||
2813 | self = self; | |
2814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) | |
2815 | return NULL; | |
2816 | { | |
4268f798 | 2817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2818 | wxToolTip::SetDelay(_arg0); |
edf2f43e | 2819 | |
4268f798 RD |
2820 | wxPyEndAllowThreads(__tstate); |
2821 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2822 | } Py_INCREF(Py_None); |
2823 | _resultobj = Py_None; | |
2824 | return _resultobj; | |
2825 | } | |
2826 | ||
f6bcfd97 BP |
2827 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) |
2828 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2829 | PyObject * _resultobj; | |
2830 | wxCaret * _result; | |
2831 | wxWindow * _arg0; | |
2832 | wxSize * _arg1; | |
2833 | PyObject * _argo0 = 0; | |
2834 | wxSize temp; | |
2835 | PyObject * _obj1 = 0; | |
2836 | char *_kwnames[] = { "window","size", NULL }; | |
2837 | char _ptemp[128]; | |
2838 | ||
2839 | self = self; | |
2840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2841 | return NULL; | |
2842 | if (_argo0) { | |
2843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2846 | return NULL; | |
2847 | } | |
2848 | } | |
2849 | { | |
2850 | _arg1 = &temp; | |
2851 | if (! wxSize_helper(_obj1, &_arg1)) | |
2852 | return NULL; | |
2853 | } | |
2854 | { | |
4268f798 | 2855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2856 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); |
f6bcfd97 | 2857 | |
4268f798 RD |
2858 | wxPyEndAllowThreads(__tstate); |
2859 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2860 | } if (_result) { |
2861 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2862 | _resultobj = Py_BuildValue("s",_ptemp); | |
2863 | } else { | |
2864 | Py_INCREF(Py_None); | |
2865 | _resultobj = Py_None; | |
2866 | } | |
2867 | return _resultobj; | |
2868 | } | |
2869 | ||
2870 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2871 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2872 | PyObject * _resultobj; | |
2873 | wxCaret * _arg0; | |
2874 | PyObject * _argo0 = 0; | |
2875 | char *_kwnames[] = { "self", NULL }; | |
2876 | ||
2877 | self = self; | |
2878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
2879 | return NULL; | |
2880 | if (_argo0) { | |
2881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
2884 | return NULL; | |
2885 | } | |
2886 | } | |
2887 | { | |
4268f798 | 2888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2889 | delete_wxCaret(_arg0); |
f6bcfd97 | 2890 | |
4268f798 RD |
2891 | wxPyEndAllowThreads(__tstate); |
2892 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2893 | } Py_INCREF(Py_None); |
2894 | _resultobj = Py_None; | |
2895 | return _resultobj; | |
2896 | } | |
2897 | ||
2898 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
2899 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2900 | PyObject * _resultobj; | |
2901 | bool _result; | |
2902 | wxCaret * _arg0; | |
2903 | PyObject * _argo0 = 0; | |
2904 | char *_kwnames[] = { "self", NULL }; | |
2905 | ||
2906 | self = self; | |
2907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
2908 | return NULL; | |
2909 | if (_argo0) { | |
2910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
2913 | return NULL; | |
2914 | } | |
2915 | } | |
2916 | { | |
4268f798 | 2917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2918 | _result = (bool )wxCaret_IsOk(_arg0); |
f6bcfd97 | 2919 | |
4268f798 RD |
2920 | wxPyEndAllowThreads(__tstate); |
2921 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2922 | } _resultobj = Py_BuildValue("i",_result); |
2923 | return _resultobj; | |
2924 | } | |
2925 | ||
2926 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
2927 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2928 | PyObject * _resultobj; | |
2929 | bool _result; | |
2930 | wxCaret * _arg0; | |
2931 | PyObject * _argo0 = 0; | |
2932 | char *_kwnames[] = { "self", NULL }; | |
2933 | ||
2934 | self = self; | |
2935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
2936 | return NULL; | |
2937 | if (_argo0) { | |
2938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
2941 | return NULL; | |
2942 | } | |
2943 | } | |
2944 | { | |
4268f798 | 2945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2946 | _result = (bool )wxCaret_IsVisible(_arg0); |
f6bcfd97 | 2947 | |
4268f798 RD |
2948 | wxPyEndAllowThreads(__tstate); |
2949 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2950 | } _resultobj = Py_BuildValue("i",_result); |
2951 | return _resultobj; | |
2952 | } | |
2953 | ||
2954 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2955 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2956 | PyObject * _resultobj; | |
2957 | wxCaret * _arg0; | |
2958 | int * _arg1; | |
2959 | int temp; | |
2960 | int * _arg2; | |
2961 | int temp0; | |
2962 | PyObject * _argo0 = 0; | |
2963 | char *_kwnames[] = { "self", NULL }; | |
2964 | ||
2965 | self = self; | |
2966 | { | |
2967 | _arg1 = &temp; | |
2968 | } | |
2969 | { | |
2970 | _arg2 = &temp0; | |
2971 | } | |
2972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
2973 | return NULL; | |
2974 | if (_argo0) { | |
2975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
2978 | return NULL; | |
2979 | } | |
2980 | } | |
2981 | { | |
4268f798 | 2982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2983 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 2984 | |
4268f798 RD |
2985 | wxPyEndAllowThreads(__tstate); |
2986 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2987 | } Py_INCREF(Py_None); |
2988 | _resultobj = Py_None; | |
2989 | { | |
2990 | PyObject *o; | |
2991 | o = PyInt_FromLong((long) (*_arg1)); | |
2992 | _resultobj = t_output_helper(_resultobj, o); | |
2993 | } | |
2994 | { | |
2995 | PyObject *o; | |
2996 | o = PyInt_FromLong((long) (*_arg2)); | |
2997 | _resultobj = t_output_helper(_resultobj, o); | |
2998 | } | |
2999 | return _resultobj; | |
3000 | } | |
3001 | ||
3002 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
f0261a72 RD |
3003 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
3004 | PyObject * _resultobj; | |
f6bcfd97 BP |
3005 | wxPoint * _result; |
3006 | wxCaret * _arg0; | |
3007 | PyObject * _argo0 = 0; | |
3008 | char *_kwnames[] = { "self", NULL }; | |
3009 | char _ptemp[128]; | |
3010 | ||
3011 | self = self; | |
3012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
3013 | return NULL; | |
3014 | if (_argo0) { | |
3015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
3018 | return NULL; | |
3019 | } | |
3020 | } | |
3021 | { | |
4268f798 | 3022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3023 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); |
f6bcfd97 | 3024 | |
4268f798 RD |
3025 | wxPyEndAllowThreads(__tstate); |
3026 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3027 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
3028 | _resultobj = Py_BuildValue("s",_ptemp); | |
3029 | return _resultobj; | |
3030 | } | |
3031 | ||
3032 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
3033 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3034 | PyObject * _resultobj; | |
3035 | wxCaret * _arg0; | |
3036 | int * _arg1; | |
3037 | int temp; | |
3038 | int * _arg2; | |
3039 | int temp0; | |
3040 | PyObject * _argo0 = 0; | |
3041 | char *_kwnames[] = { "self", NULL }; | |
3042 | ||
3043 | self = self; | |
3044 | { | |
3045 | _arg1 = &temp; | |
3046 | } | |
3047 | { | |
3048 | _arg2 = &temp0; | |
3049 | } | |
3050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
3051 | return NULL; | |
3052 | if (_argo0) { | |
3053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
3056 | return NULL; | |
3057 | } | |
3058 | } | |
3059 | { | |
4268f798 | 3060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3061 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 3062 | |
4268f798 RD |
3063 | wxPyEndAllowThreads(__tstate); |
3064 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3065 | } Py_INCREF(Py_None); |
3066 | _resultobj = Py_None; | |
3067 | { | |
3068 | PyObject *o; | |
3069 | o = PyInt_FromLong((long) (*_arg1)); | |
3070 | _resultobj = t_output_helper(_resultobj, o); | |
3071 | } | |
3072 | { | |
3073 | PyObject *o; | |
3074 | o = PyInt_FromLong((long) (*_arg2)); | |
3075 | _resultobj = t_output_helper(_resultobj, o); | |
3076 | } | |
3077 | return _resultobj; | |
3078 | } | |
3079 | ||
3080 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
3081 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3082 | PyObject * _resultobj; | |
3083 | wxSize * _result; | |
3084 | wxCaret * _arg0; | |
3085 | PyObject * _argo0 = 0; | |
3086 | char *_kwnames[] = { "self", NULL }; | |
3087 | char _ptemp[128]; | |
3088 | ||
3089 | self = self; | |
3090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
3091 | return NULL; | |
3092 | if (_argo0) { | |
3093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
3096 | return NULL; | |
3097 | } | |
3098 | } | |
3099 | { | |
4268f798 | 3100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3101 | _result = new wxSize (wxCaret_GetSize(_arg0)); |
f6bcfd97 | 3102 | |
4268f798 RD |
3103 | wxPyEndAllowThreads(__tstate); |
3104 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3105 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
3106 | _resultobj = Py_BuildValue("s",_ptemp); | |
3107 | return _resultobj; | |
3108 | } | |
3109 | ||
3110 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
3111 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3112 | PyObject * _resultobj; | |
3113 | wxWindow * _result; | |
3114 | wxCaret * _arg0; | |
3115 | PyObject * _argo0 = 0; | |
3116 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
3117 | |
3118 | self = self; | |
3119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
3120 | return NULL; | |
3121 | if (_argo0) { | |
3122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
3125 | return NULL; | |
3126 | } | |
3127 | } | |
3128 | { | |
4268f798 | 3129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3130 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); |
f6bcfd97 | 3131 | |
4268f798 RD |
3132 | wxPyEndAllowThreads(__tstate); |
3133 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 3134 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
3135 | return _resultobj; |
3136 | } | |
3137 | ||
3138 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
3139 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3140 | PyObject * _resultobj; | |
3141 | wxCaret * _arg0; | |
3142 | int _arg1; | |
3143 | int _arg2; | |
3144 | PyObject * _argo0 = 0; | |
3145 | char *_kwnames[] = { "self","x","y", NULL }; | |
3146 | ||
3147 | self = self; | |
3148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3149 | return NULL; | |
3150 | if (_argo0) { | |
3151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
3154 | return NULL; | |
3155 | } | |
3156 | } | |
3157 | { | |
4268f798 | 3158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3159 | wxCaret_MoveXY(_arg0,_arg1,_arg2); |
f6bcfd97 | 3160 | |
4268f798 RD |
3161 | wxPyEndAllowThreads(__tstate); |
3162 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3163 | } Py_INCREF(Py_None); |
3164 | _resultobj = Py_None; | |
3165 | return _resultobj; | |
3166 | } | |
3167 | ||
3168 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3169 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3170 | PyObject * _resultobj; | |
3171 | wxCaret * _arg0; | |
3172 | wxPoint * _arg1; | |
3173 | PyObject * _argo0 = 0; | |
3174 | wxPoint temp; | |
3175 | PyObject * _obj1 = 0; | |
3176 | char *_kwnames[] = { "self","pt", NULL }; | |
3177 | ||
3178 | self = self; | |
3179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
3180 | return NULL; | |
3181 | if (_argo0) { | |
3182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
3185 | return NULL; | |
3186 | } | |
3187 | } | |
3188 | { | |
3189 | _arg1 = &temp; | |
3190 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3191 | return NULL; | |
3192 | } | |
3193 | { | |
4268f798 | 3194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3195 | wxCaret_Move(_arg0,*_arg1); |
f6bcfd97 | 3196 | |
4268f798 RD |
3197 | wxPyEndAllowThreads(__tstate); |
3198 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3199 | } Py_INCREF(Py_None); |
3200 | _resultobj = Py_None; | |
3201 | return _resultobj; | |
3202 | } | |
3203 | ||
3204 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
3205 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3206 | PyObject * _resultobj; | |
3207 | wxCaret * _arg0; | |
3208 | int _arg1; | |
3209 | int _arg2; | |
3210 | PyObject * _argo0 = 0; | |
3211 | char *_kwnames[] = { "self","width","height", NULL }; | |
3212 | ||
3213 | self = self; | |
3214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3215 | return NULL; | |
3216 | if (_argo0) { | |
3217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
3220 | return NULL; | |
3221 | } | |
3222 | } | |
3223 | { | |
4268f798 | 3224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3225 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); |
f6bcfd97 | 3226 | |
4268f798 RD |
3227 | wxPyEndAllowThreads(__tstate); |
3228 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3229 | } Py_INCREF(Py_None); |
3230 | _resultobj = Py_None; | |
3231 | return _resultobj; | |
3232 | } | |
3233 | ||
3234 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3235 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3236 | PyObject * _resultobj; | |
3237 | wxCaret * _arg0; | |
3238 | wxSize * _arg1; | |
3239 | PyObject * _argo0 = 0; | |
3240 | wxSize temp; | |
3241 | PyObject * _obj1 = 0; | |
3242 | char *_kwnames[] = { "self","size", NULL }; | |
3243 | ||
3244 | self = self; | |
3245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
3246 | return NULL; | |
3247 | if (_argo0) { | |
3248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
3251 | return NULL; | |
3252 | } | |
3253 | } | |
3254 | { | |
3255 | _arg1 = &temp; | |
3256 | if (! wxSize_helper(_obj1, &_arg1)) | |
3257 | return NULL; | |
3258 | } | |
3259 | { | |
4268f798 | 3260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3261 | wxCaret_SetSize(_arg0,*_arg1); |
f6bcfd97 | 3262 | |
4268f798 RD |
3263 | wxPyEndAllowThreads(__tstate); |
3264 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3265 | } Py_INCREF(Py_None); |
3266 | _resultobj = Py_None; | |
3267 | return _resultobj; | |
3268 | } | |
3269 | ||
3270 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
3271 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3272 | PyObject * _resultobj; | |
3273 | wxCaret * _arg0; | |
3274 | int _arg1 = (int ) TRUE; | |
3275 | PyObject * _argo0 = 0; | |
3276 | char *_kwnames[] = { "self","show", NULL }; | |
3277 | ||
3278 | self = self; | |
3279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
3280 | return NULL; | |
3281 | if (_argo0) { | |
3282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
3285 | return NULL; | |
3286 | } | |
3287 | } | |
3288 | { | |
4268f798 | 3289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3290 | wxCaret_Show(_arg0,_arg1); |
f6bcfd97 | 3291 | |
4268f798 RD |
3292 | wxPyEndAllowThreads(__tstate); |
3293 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3294 | } Py_INCREF(Py_None); |
3295 | _resultobj = Py_None; | |
3296 | return _resultobj; | |
3297 | } | |
3298 | ||
3299 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
3300 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3301 | PyObject * _resultobj; | |
3302 | wxCaret * _arg0; | |
3303 | PyObject * _argo0 = 0; | |
3304 | char *_kwnames[] = { "self", NULL }; | |
3305 | ||
3306 | self = self; | |
3307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
3308 | return NULL; | |
3309 | if (_argo0) { | |
3310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
3313 | return NULL; | |
3314 | } | |
3315 | } | |
3316 | { | |
4268f798 | 3317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3318 | wxCaret_Hide(_arg0); |
f6bcfd97 | 3319 | |
4268f798 RD |
3320 | wxPyEndAllowThreads(__tstate); |
3321 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3322 | } Py_INCREF(Py_None); |
3323 | _resultobj = Py_None; | |
3324 | return _resultobj; | |
3325 | } | |
3326 | ||
f6bcfd97 BP |
3327 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) |
3328 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3329 | PyObject * _resultobj; | |
3330 | wxBusyCursor * _result; | |
3331 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3332 | PyObject * _argo0 = 0; | |
3333 | char *_kwnames[] = { "cursor", NULL }; | |
3334 | char _ptemp[128]; | |
3335 | ||
3336 | self = self; | |
3337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3338 | return NULL; | |
3339 | if (_argo0) { | |
3340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3343 | return NULL; | |
3344 | } | |
3345 | } | |
3346 | { | |
4268f798 | 3347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3348 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); |
f6bcfd97 | 3349 | |
4268f798 RD |
3350 | wxPyEndAllowThreads(__tstate); |
3351 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3352 | } if (_result) { |
3353 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3354 | _resultobj = Py_BuildValue("s",_ptemp); | |
3355 | } else { | |
3356 | Py_INCREF(Py_None); | |
3357 | _resultobj = Py_None; | |
3358 | } | |
3359 | return _resultobj; | |
3360 | } | |
3361 | ||
3362 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3363 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3364 | PyObject * _resultobj; | |
3365 | wxBusyCursor * _arg0; | |
3366 | PyObject * _argo0 = 0; | |
3367 | char *_kwnames[] = { "self", NULL }; | |
3368 | ||
3369 | self = self; | |
3370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3371 | return NULL; | |
3372 | if (_argo0) { | |
3373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3376 | return NULL; | |
3377 | } | |
3378 | } | |
3379 | { | |
4268f798 | 3380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3381 | delete_wxBusyCursor(_arg0); |
f6bcfd97 | 3382 | |
4268f798 RD |
3383 | wxPyEndAllowThreads(__tstate); |
3384 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3385 | } Py_INCREF(Py_None); |
3386 | _resultobj = Py_None; | |
3387 | return _resultobj; | |
3388 | } | |
3389 | ||
c368d904 RD |
3390 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) |
3391 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3392 | PyObject * _resultobj; | |
3393 | wxWindowDisabler * _result; | |
3394 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3395 | PyObject * _argo0 = 0; | |
3396 | char *_kwnames[] = { "winToSkip", NULL }; | |
3397 | char _ptemp[128]; | |
3398 | ||
3399 | self = self; | |
3400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3401 | return NULL; | |
3402 | if (_argo0) { | |
3403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3406 | return NULL; | |
3407 | } | |
3408 | } | |
3409 | { | |
4268f798 | 3410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3411 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); |
c368d904 | 3412 | |
4268f798 RD |
3413 | wxPyEndAllowThreads(__tstate); |
3414 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3415 | } if (_result) { |
3416 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3417 | _resultobj = Py_BuildValue("s",_ptemp); | |
3418 | } else { | |
3419 | Py_INCREF(Py_None); | |
3420 | _resultobj = Py_None; | |
3421 | } | |
3422 | return _resultobj; | |
3423 | } | |
3424 | ||
3425 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3426 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3427 | PyObject * _resultobj; | |
3428 | wxWindowDisabler * _arg0; | |
3429 | PyObject * _argo0 = 0; | |
3430 | char *_kwnames[] = { "self", NULL }; | |
3431 | ||
3432 | self = self; | |
3433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3434 | return NULL; | |
3435 | if (_argo0) { | |
3436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3439 | return NULL; | |
3440 | } | |
3441 | } | |
3442 | { | |
4268f798 | 3443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3444 | delete_wxWindowDisabler(_arg0); |
c368d904 | 3445 | |
4268f798 RD |
3446 | wxPyEndAllowThreads(__tstate); |
3447 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3448 | } Py_INCREF(Py_None); |
3449 | _resultobj = Py_None; | |
3450 | return _resultobj; | |
3451 | } | |
3452 | ||
6e18ca6c RD |
3453 | #define new_wxMutexGuiLocker() (new wxMutexGuiLocker()) |
3454 | static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3455 | PyObject * _resultobj; | |
3456 | wxMutexGuiLocker * _result; | |
3457 | char *_kwnames[] = { NULL }; | |
3458 | char _ptemp[128]; | |
3459 | ||
3460 | self = self; | |
3461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames)) | |
3462 | return NULL; | |
3463 | { | |
4268f798 | 3464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3465 | _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker(); |
6e18ca6c | 3466 | |
4268f798 RD |
3467 | wxPyEndAllowThreads(__tstate); |
3468 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3469 | } if (_result) { |
3470 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p"); | |
3471 | _resultobj = Py_BuildValue("s",_ptemp); | |
3472 | } else { | |
3473 | Py_INCREF(Py_None); | |
3474 | _resultobj = Py_None; | |
3475 | } | |
3476 | return _resultobj; | |
3477 | } | |
3478 | ||
3479 | #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj) | |
3480 | static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3481 | PyObject * _resultobj; | |
3482 | wxMutexGuiLocker * _arg0; | |
3483 | PyObject * _argo0 = 0; | |
3484 | char *_kwnames[] = { "self", NULL }; | |
3485 | ||
3486 | self = self; | |
3487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0)) | |
3488 | return NULL; | |
3489 | if (_argo0) { | |
3490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) { | |
3492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p."); | |
3493 | return NULL; | |
3494 | } | |
3495 | } | |
3496 | { | |
4268f798 | 3497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3498 | delete_wxMutexGuiLocker(_arg0); |
6e18ca6c | 3499 | |
4268f798 RD |
3500 | wxPyEndAllowThreads(__tstate); |
3501 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3502 | } Py_INCREF(Py_None); |
3503 | _resultobj = Py_None; | |
3504 | return _resultobj; | |
3505 | } | |
3506 | ||
f6bcfd97 BP |
3507 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) |
3508 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3509 | PyObject * _resultobj; | |
3510 | wxTipProvider * _arg0; | |
3511 | PyObject * _argo0 = 0; | |
3512 | char *_kwnames[] = { "self", NULL }; | |
3513 | ||
3514 | self = self; | |
3515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3516 | return NULL; | |
3517 | if (_argo0) { | |
3518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3521 | return NULL; | |
3522 | } | |
3523 | } | |
3524 | { | |
4268f798 | 3525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3526 | delete_wxTipProvider(_arg0); |
f6bcfd97 | 3527 | |
4268f798 RD |
3528 | wxPyEndAllowThreads(__tstate); |
3529 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3530 | } Py_INCREF(Py_None); |
3531 | _resultobj = Py_None; | |
3532 | return _resultobj; | |
3533 | } | |
3534 | ||
3535 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3536 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3537 | PyObject * _resultobj; | |
3538 | wxString * _result; | |
3539 | wxTipProvider * _arg0; | |
3540 | PyObject * _argo0 = 0; | |
3541 | char *_kwnames[] = { "self", NULL }; | |
3542 | ||
3543 | self = self; | |
3544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3545 | return NULL; | |
3546 | if (_argo0) { | |
3547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3550 | return NULL; | |
3551 | } | |
3552 | } | |
3553 | { | |
4268f798 | 3554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3555 | _result = new wxString (wxTipProvider_GetTip(_arg0)); |
f6bcfd97 | 3556 | |
4268f798 RD |
3557 | wxPyEndAllowThreads(__tstate); |
3558 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 3559 | }{ |
c8bc7bb8 RD |
3560 | #if wxUSE_UNICODE |
3561 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3562 | #else | |
f6bcfd97 | 3563 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3564 | #endif |
f6bcfd97 BP |
3565 | } |
3566 | { | |
3567 | delete _result; | |
3568 | } | |
3569 | return _resultobj; | |
3570 | } | |
3571 | ||
3572 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3573 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3574 | PyObject * _resultobj; | |
3575 | size_t _result; | |
3576 | wxTipProvider * _arg0; | |
3577 | PyObject * _argo0 = 0; | |
3578 | char *_kwnames[] = { "self", NULL }; | |
3579 | ||
3580 | self = self; | |
3581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3582 | return NULL; | |
3583 | if (_argo0) { | |
3584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3587 | return NULL; | |
3588 | } | |
3589 | } | |
3590 | { | |
4268f798 | 3591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3592 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); |
f6bcfd97 | 3593 | |
4268f798 RD |
3594 | wxPyEndAllowThreads(__tstate); |
3595 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3596 | } _resultobj = Py_BuildValue("i",_result); |
3597 | return _resultobj; | |
3598 | } | |
3599 | ||
3600 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { | |
3601 | wxPyTipProvider *src; | |
3602 | wxTipProvider *dest; | |
3603 | src = (wxPyTipProvider *) ptr; | |
3604 | dest = (wxTipProvider *) src; | |
3605 | return (void *) dest; | |
3606 | } | |
3607 | ||
3608 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3609 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3610 | PyObject * _resultobj; | |
3611 | wxPyTipProvider * _result; | |
3612 | size_t _arg0; | |
3613 | char *_kwnames[] = { "currentTip", NULL }; | |
3614 | char _ptemp[128]; | |
3615 | ||
3616 | self = self; | |
3617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3618 | return NULL; | |
3619 | { | |
4268f798 | 3620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3621 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); |
f6bcfd97 | 3622 | |
4268f798 RD |
3623 | wxPyEndAllowThreads(__tstate); |
3624 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3625 | } if (_result) { |
3626 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3627 | _resultobj = Py_BuildValue("s",_ptemp); | |
3628 | } else { | |
3629 | Py_INCREF(Py_None); | |
3630 | _resultobj = Py_None; | |
3631 | } | |
3632 | return _resultobj; | |
3633 | } | |
3634 | ||
9416aa89 RD |
3635 | static void *SwigwxGenericDragImageTowxObject(void *ptr) { |
3636 | wxGenericDragImage *src; | |
3637 | wxObject *dest; | |
3638 | src = (wxGenericDragImage *) ptr; | |
3639 | dest = (wxObject *) src; | |
3640 | return (void *) dest; | |
3641 | } | |
3642 | ||
10e07c70 | 3643 | #define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
f6bcfd97 BP |
3644 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
3645 | PyObject * _resultobj; | |
3646 | wxGenericDragImage * _result; | |
3647 | wxBitmap * _arg0; | |
3648 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
f6bcfd97 BP |
3649 | PyObject * _argo0 = 0; |
3650 | PyObject * _argo1 = 0; | |
10e07c70 | 3651 | char *_kwnames[] = { "image","cursor", NULL }; |
f6bcfd97 BP |
3652 | char _ptemp[128]; |
3653 | ||
3654 | self = self; | |
10e07c70 | 3655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
3656 | return NULL; |
3657 | if (_argo0) { | |
3658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
3660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); | |
3661 | return NULL; | |
3662 | } | |
3663 | } | |
3664 | if (_argo1) { | |
3665 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3666 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); | |
3668 | return NULL; | |
3669 | } | |
3670 | } | |
f6bcfd97 | 3671 | { |
4268f798 | 3672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3673 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1); |
f6bcfd97 | 3674 | |
4268f798 RD |
3675 | wxPyEndAllowThreads(__tstate); |
3676 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3677 | } if (_result) { |
3678 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3679 | _resultobj = Py_BuildValue("s",_ptemp); | |
3680 | } else { | |
3681 | Py_INCREF(Py_None); | |
3682 | _resultobj = Py_None; | |
3683 | } | |
3684 | return _resultobj; | |
3685 | } | |
3686 | ||
cdf14688 RD |
3687 | #define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
3688 | static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3689 | PyObject * _resultobj; | |
3690 | wxGenericDragImage * _result; | |
3691 | wxIcon * _arg0; | |
3692 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3693 | PyObject * _argo0 = 0; | |
3694 | PyObject * _argo1 = 0; | |
3695 | char *_kwnames[] = { "image","cursor", NULL }; | |
3696 | char _ptemp[128]; | |
3697 | ||
3698 | self = self; | |
3699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1)) | |
3700 | return NULL; | |
3701 | if (_argo0) { | |
3702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
3704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p."); | |
3705 | return NULL; | |
3706 | } | |
3707 | } | |
3708 | if (_argo1) { | |
3709 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3710 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p."); | |
3712 | return NULL; | |
3713 | } | |
3714 | } | |
3715 | { | |
4268f798 | 3716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3717 | _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1); |
cdf14688 | 3718 | |
4268f798 RD |
3719 | wxPyEndAllowThreads(__tstate); |
3720 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3721 | } if (_result) { |
3722 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3723 | _resultobj = Py_BuildValue("s",_ptemp); | |
3724 | } else { | |
3725 | Py_INCREF(Py_None); | |
3726 | _resultobj = Py_None; | |
3727 | } | |
3728 | return _resultobj; | |
3729 | } | |
3730 | ||
3731 | #define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3732 | static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3733 | PyObject * _resultobj; | |
3734 | wxGenericDragImage * _result; | |
3735 | wxString * _arg0; | |
3736 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3737 | PyObject * _obj0 = 0; | |
3738 | PyObject * _argo1 = 0; | |
3739 | char *_kwnames[] = { "str","cursor", NULL }; | |
3740 | char _ptemp[128]; | |
3741 | ||
3742 | self = self; | |
3743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1)) | |
3744 | return NULL; | |
3745 | { | |
c8bc7bb8 RD |
3746 | _arg0 = wxString_in_helper(_obj0); |
3747 | if (_arg0 == NULL) | |
cdf14688 | 3748 | return NULL; |
cdf14688 RD |
3749 | } |
3750 | if (_argo1) { | |
3751 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3752 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p."); | |
3754 | return NULL; | |
3755 | } | |
3756 | } | |
3757 | { | |
4268f798 | 3758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3759 | _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1); |
cdf14688 | 3760 | |
4268f798 RD |
3761 | wxPyEndAllowThreads(__tstate); |
3762 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3763 | } if (_result) { |
3764 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3765 | _resultobj = Py_BuildValue("s",_ptemp); | |
3766 | } else { | |
3767 | Py_INCREF(Py_None); | |
3768 | _resultobj = Py_None; | |
3769 | } | |
3770 | { | |
3771 | if (_obj0) | |
3772 | delete _arg0; | |
3773 | } | |
3774 | return _resultobj; | |
3775 | } | |
3776 | ||
3777 | #define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3778 | static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3779 | PyObject * _resultobj; | |
3780 | wxGenericDragImage * _result; | |
3781 | wxTreeCtrl * _arg0; | |
3782 | wxTreeItemId * _arg1; | |
3783 | PyObject * _argo0 = 0; | |
3784 | PyObject * _argo1 = 0; | |
3785 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
3786 | char _ptemp[128]; | |
3787 | ||
3788 | self = self; | |
3789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1)) | |
3790 | return NULL; | |
3791 | if (_argo0) { | |
3792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
3794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p."); | |
3795 | return NULL; | |
3796 | } | |
3797 | } | |
3798 | if (_argo1) { | |
3799 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3800 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
3801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p."); | |
3802 | return NULL; | |
3803 | } | |
3804 | } | |
3805 | { | |
4268f798 | 3806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3807 | _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1); |
cdf14688 | 3808 | |
4268f798 RD |
3809 | wxPyEndAllowThreads(__tstate); |
3810 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3811 | } if (_result) { |
3812 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3813 | _resultobj = Py_BuildValue("s",_ptemp); | |
3814 | } else { | |
3815 | Py_INCREF(Py_None); | |
3816 | _resultobj = Py_None; | |
3817 | } | |
3818 | return _resultobj; | |
3819 | } | |
3820 | ||
3821 | #define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3822 | static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3823 | PyObject * _resultobj; | |
3824 | wxGenericDragImage * _result; | |
3825 | wxListCtrl * _arg0; | |
3826 | long _arg1; | |
3827 | PyObject * _argo0 = 0; | |
3828 | char *_kwnames[] = { "listCtrl","id", NULL }; | |
3829 | char _ptemp[128]; | |
3830 | ||
3831 | self = self; | |
3832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1)) | |
3833 | return NULL; | |
3834 | if (_argo0) { | |
3835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragListItem. Expected _wxListCtrl_p."); | |
3838 | return NULL; | |
3839 | } | |
3840 | } | |
3841 | { | |
4268f798 | 3842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3843 | _result = (wxGenericDragImage *)new_wxDragListItem(*_arg0,_arg1); |
cdf14688 | 3844 | |
4268f798 RD |
3845 | wxPyEndAllowThreads(__tstate); |
3846 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3847 | } if (_result) { |
3848 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3849 | _resultobj = Py_BuildValue("s",_ptemp); | |
3850 | } else { | |
3851 | Py_INCREF(Py_None); | |
3852 | _resultobj = Py_None; | |
3853 | } | |
3854 | return _resultobj; | |
3855 | } | |
3856 | ||
f6bcfd97 BP |
3857 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) |
3858 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3859 | PyObject * _resultobj; | |
3860 | wxGenericDragImage * _arg0; | |
3861 | PyObject * _argo0 = 0; | |
3862 | char *_kwnames[] = { "self", NULL }; | |
3863 | ||
3864 | self = self; | |
3865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
3866 | return NULL; | |
3867 | if (_argo0) { | |
3868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
3871 | return NULL; | |
3872 | } | |
3873 | } | |
3874 | { | |
4268f798 | 3875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3876 | delete_wxGenericDragImage(_arg0); |
f6bcfd97 | 3877 | |
4268f798 RD |
3878 | wxPyEndAllowThreads(__tstate); |
3879 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3880 | } Py_INCREF(Py_None); |
3881 | _resultobj = Py_None; | |
3882 | return _resultobj; | |
3883 | } | |
3884 | ||
10e07c70 RD |
3885 | #define wxDragImage_SetBackingBitmap(_swigobj,_swigarg0) (_swigobj->SetBackingBitmap(_swigarg0)) |
3886 | static PyObject *_wrap_wxDragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3887 | PyObject * _resultobj; | |
3888 | wxGenericDragImage * _arg0; | |
3889 | wxBitmap * _arg1; | |
3890 | PyObject * _argo0 = 0; | |
3891 | PyObject * _argo1 = 0; | |
3892 | char *_kwnames[] = { "self","bitmap", NULL }; | |
3893 | ||
3894 | self = self; | |
3895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_SetBackingBitmap",_kwnames,&_argo0,&_argo1)) | |
3896 | return NULL; | |
3897 | if (_argo0) { | |
3898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_SetBackingBitmap. Expected _wxGenericDragImage_p."); | |
3901 | return NULL; | |
3902 | } | |
3903 | } | |
3904 | if (_argo1) { | |
3905 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3906 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
3907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragImage_SetBackingBitmap. Expected _wxBitmap_p."); | |
3908 | return NULL; | |
3909 | } | |
3910 | } | |
3911 | { | |
4268f798 | 3912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3913 | wxDragImage_SetBackingBitmap(_arg0,_arg1); |
10e07c70 | 3914 | |
4268f798 RD |
3915 | wxPyEndAllowThreads(__tstate); |
3916 | if (PyErr_Occurred()) return NULL; | |
10e07c70 RD |
3917 | } Py_INCREF(Py_None); |
3918 | _resultobj = Py_None; | |
3919 | return _resultobj; | |
3920 | } | |
3921 | ||
f6bcfd97 BP |
3922 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3923 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3924 | PyObject * _resultobj; | |
3925 | bool _result; | |
3926 | wxGenericDragImage * _arg0; | |
3927 | wxPoint * _arg1; | |
3928 | wxWindow * _arg2; | |
3929 | bool _arg3 = (bool ) FALSE; | |
3930 | wxRect * _arg4 = (wxRect *) NULL; | |
3931 | PyObject * _argo0 = 0; | |
3932 | wxPoint temp; | |
3933 | PyObject * _obj1 = 0; | |
3934 | PyObject * _argo2 = 0; | |
3935 | int tempbool3 = (int) FALSE; | |
3936 | wxRect temp0; | |
3937 | PyObject * _obj4 = 0; | |
3938 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
3939 | ||
3940 | self = self; | |
3941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
3942 | return NULL; | |
3943 | if (_argo0) { | |
3944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
3947 | return NULL; | |
3948 | } | |
3949 | } | |
3950 | { | |
3951 | _arg1 = &temp; | |
3952 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3953 | return NULL; | |
3954 | } | |
3955 | if (_argo2) { | |
3956 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3957 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
3959 | return NULL; | |
3960 | } | |
3961 | } | |
3962 | _arg3 = (bool ) tempbool3; | |
3963 | if (_obj4) | |
3964 | { | |
3965 | _arg4 = &temp0; | |
3966 | if (! wxRect_helper(_obj4, &_arg4)) | |
3967 | return NULL; | |
3968 | } | |
3969 | { | |
4268f798 | 3970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3971 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); |
f6bcfd97 | 3972 | |
4268f798 RD |
3973 | wxPyEndAllowThreads(__tstate); |
3974 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3975 | } _resultobj = Py_BuildValue("i",_result); |
3976 | return _resultobj; | |
3977 | } | |
3978 | ||
3979 | #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) | |
3980 | static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3981 | PyObject * _resultobj; | |
3982 | bool _result; | |
3983 | wxGenericDragImage * _arg0; | |
3984 | wxPoint * _arg1; | |
3985 | wxWindow * _arg2; | |
3986 | wxWindow * _arg3; | |
3987 | PyObject * _argo0 = 0; | |
3988 | wxPoint temp; | |
3989 | PyObject * _obj1 = 0; | |
3990 | PyObject * _argo2 = 0; | |
3991 | PyObject * _argo3 = 0; | |
3992 | char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL }; | |
3993 | ||
3994 | self = self; | |
3995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
3996 | return NULL; | |
3997 | if (_argo0) { | |
3998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p."); | |
4001 | return NULL; | |
4002 | } | |
4003 | } | |
4004 | { | |
4005 | _arg1 = &temp; | |
4006 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4007 | return NULL; | |
4008 | } | |
4009 | if (_argo2) { | |
4010 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4011 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
4012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
4013 | return NULL; | |
4014 | } | |
4015 | } | |
4016 | if (_argo3) { | |
4017 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
4018 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
4019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
4020 | return NULL; | |
4021 | } | |
4022 | } | |
4023 | { | |
4268f798 | 4024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4025 | _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3); |
f6bcfd97 | 4026 | |
4268f798 RD |
4027 | wxPyEndAllowThreads(__tstate); |
4028 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4029 | } _resultobj = Py_BuildValue("i",_result); |
4030 | return _resultobj; | |
4031 | } | |
4032 | ||
4033 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
4034 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4035 | PyObject * _resultobj; | |
4036 | bool _result; | |
4037 | wxGenericDragImage * _arg0; | |
4038 | PyObject * _argo0 = 0; | |
4039 | char *_kwnames[] = { "self", NULL }; | |
4040 | ||
4041 | self = self; | |
4042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
4043 | return NULL; | |
4044 | if (_argo0) { | |
4045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
4048 | return NULL; | |
4049 | } | |
4050 | } | |
4051 | { | |
4268f798 | 4052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4053 | _result = (bool )wxDragImage_EndDrag(_arg0); |
f6bcfd97 | 4054 | |
4268f798 RD |
4055 | wxPyEndAllowThreads(__tstate); |
4056 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4057 | } _resultobj = Py_BuildValue("i",_result); |
4058 | return _resultobj; | |
4059 | } | |
4060 | ||
4061 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
4062 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4063 | PyObject * _resultobj; | |
4064 | bool _result; | |
4065 | wxGenericDragImage * _arg0; | |
4066 | wxPoint * _arg1; | |
4067 | PyObject * _argo0 = 0; | |
4068 | wxPoint temp; | |
4069 | PyObject * _obj1 = 0; | |
4070 | char *_kwnames[] = { "self","pt", NULL }; | |
4071 | ||
4072 | self = self; | |
4073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
4074 | return NULL; | |
4075 | if (_argo0) { | |
4076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p."); | |
4079 | return NULL; | |
4080 | } | |
4081 | } | |
4082 | { | |
4083 | _arg1 = &temp; | |
4084 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4085 | return NULL; | |
4086 | } | |
4087 | { | |
4268f798 | 4088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4089 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); |
f6bcfd97 | 4090 | |
4268f798 RD |
4091 | wxPyEndAllowThreads(__tstate); |
4092 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4093 | } _resultobj = Py_BuildValue("i",_result); |
4094 | return _resultobj; | |
4095 | } | |
4096 | ||
4097 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
4098 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4099 | PyObject * _resultobj; | |
4100 | bool _result; | |
4101 | wxGenericDragImage * _arg0; | |
4102 | PyObject * _argo0 = 0; | |
4103 | char *_kwnames[] = { "self", NULL }; | |
4104 | ||
4105 | self = self; | |
4106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
4107 | return NULL; | |
4108 | if (_argo0) { | |
4109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
4112 | return NULL; | |
4113 | } | |
4114 | } | |
4115 | { | |
4268f798 | 4116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4117 | _result = (bool )wxDragImage_Show(_arg0); |
f6bcfd97 | 4118 | |
4268f798 RD |
4119 | wxPyEndAllowThreads(__tstate); |
4120 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4121 | } _resultobj = Py_BuildValue("i",_result); |
4122 | return _resultobj; | |
4123 | } | |
4124 | ||
4125 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
4126 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4127 | PyObject * _resultobj; | |
4128 | bool _result; | |
4129 | wxGenericDragImage * _arg0; | |
4130 | PyObject * _argo0 = 0; | |
4131 | char *_kwnames[] = { "self", NULL }; | |
4132 | ||
4133 | self = self; | |
4134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
4135 | return NULL; | |
4136 | if (_argo0) { | |
4137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
4140 | return NULL; | |
4141 | } | |
4142 | } | |
4143 | { | |
4268f798 | 4144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4145 | _result = (bool )wxDragImage_Hide(_arg0); |
f6bcfd97 | 4146 | |
4268f798 RD |
4147 | wxPyEndAllowThreads(__tstate); |
4148 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4149 | } _resultobj = Py_BuildValue("i",_result); |
4150 | return _resultobj; | |
4151 | } | |
4152 | ||
4153 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
4154 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4155 | PyObject * _resultobj; | |
4156 | wxRect * _result; | |
4157 | wxGenericDragImage * _arg0; | |
4158 | wxPoint * _arg1; | |
4159 | PyObject * _argo0 = 0; | |
4160 | wxPoint temp; | |
4161 | PyObject * _obj1 = 0; | |
4162 | char *_kwnames[] = { "self","pos", NULL }; | |
4163 | char _ptemp[128]; | |
4164 | ||
4165 | self = self; | |
4166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
4167 | return NULL; | |
4168 | if (_argo0) { | |
4169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p."); | |
4172 | return NULL; | |
4173 | } | |
4174 | } | |
4175 | { | |
4176 | _arg1 = &temp; | |
4177 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4178 | return NULL; | |
4179 | } | |
4180 | { | |
4268f798 | 4181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4182 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); |
f6bcfd97 | 4183 | |
4268f798 RD |
4184 | wxPyEndAllowThreads(__tstate); |
4185 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4186 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
4187 | _resultobj = Py_BuildValue("s",_ptemp); | |
4188 | return _resultobj; | |
4189 | } | |
4190 | ||
4191 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4192 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4193 | PyObject * _resultobj; | |
4194 | bool _result; | |
4195 | wxGenericDragImage * _arg0; | |
4196 | wxPoint * _arg1; | |
4197 | wxPoint * _arg2; | |
4198 | bool _arg3; | |
4199 | bool _arg4; | |
4200 | PyObject * _argo0 = 0; | |
4201 | wxPoint temp; | |
4202 | PyObject * _obj1 = 0; | |
4203 | wxPoint temp0; | |
4204 | PyObject * _obj2 = 0; | |
4205 | int tempbool3; | |
4206 | int tempbool4; | |
4207 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
4208 | ||
4209 | self = self; | |
4210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
4211 | return NULL; | |
4212 | if (_argo0) { | |
4213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
4216 | return NULL; | |
4217 | } | |
4218 | } | |
4219 | { | |
4220 | _arg1 = &temp; | |
4221 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4222 | return NULL; | |
4223 | } | |
4224 | { | |
4225 | _arg2 = &temp0; | |
4226 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4227 | return NULL; | |
4228 | } | |
4229 | _arg3 = (bool ) tempbool3; | |
4230 | _arg4 = (bool ) tempbool4; | |
4231 | { | |
4268f798 | 4232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4233 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
f6bcfd97 | 4234 | |
4268f798 RD |
4235 | wxPyEndAllowThreads(__tstate); |
4236 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4237 | } _resultobj = Py_BuildValue("i",_result); |
4238 | return _resultobj; | |
4239 | } | |
4240 | ||
9416aa89 RD |
4241 | static void *SwigwxPyTimerTowxObject(void *ptr) { |
4242 | wxPyTimer *src; | |
4243 | wxObject *dest; | |
4244 | src = (wxPyTimer *) ptr; | |
4245 | dest = (wxObject *) src; | |
4246 | return (void *) dest; | |
4247 | } | |
4248 | ||
f6bcfd97 BP |
4249 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) |
4250 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4251 | PyObject * _resultobj; | |
4252 | wxPyTimer * _result; | |
4253 | PyObject * _arg0; | |
4254 | PyObject * _obj0 = 0; | |
4255 | char *_kwnames[] = { "notify", NULL }; | |
4256 | char _ptemp[128]; | |
4257 | ||
4258 | self = self; | |
4259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
4260 | return NULL; | |
4261 | { | |
4262 | _arg0 = _obj0; | |
4263 | } | |
4264 | { | |
4268f798 | 4265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4266 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); |
f6bcfd97 | 4267 | |
4268f798 RD |
4268 | wxPyEndAllowThreads(__tstate); |
4269 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4270 | } if (_result) { |
4271 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
4272 | _resultobj = Py_BuildValue("s",_ptemp); | |
4273 | } else { | |
4274 | Py_INCREF(Py_None); | |
4275 | _resultobj = Py_None; | |
4276 | } | |
4277 | return _resultobj; | |
4278 | } | |
4279 | ||
4280 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
4281 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4282 | PyObject * _resultobj; | |
4283 | wxPyTimer * _arg0; | |
4284 | PyObject * _argo0 = 0; | |
4285 | char *_kwnames[] = { "self", NULL }; | |
4286 | ||
4287 | self = self; | |
4288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
4289 | return NULL; | |
4290 | if (_argo0) { | |
4291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
4294 | return NULL; | |
4295 | } | |
4296 | } | |
4297 | { | |
4268f798 | 4298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4299 | delete_wxPyTimer(_arg0); |
f6bcfd97 | 4300 | |
4268f798 RD |
4301 | wxPyEndAllowThreads(__tstate); |
4302 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4303 | } Py_INCREF(Py_None); |
4304 | _resultobj = Py_None; | |
4305 | return _resultobj; | |
4306 | } | |
4307 | ||
4308 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
4309 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4310 | PyObject * _resultobj; | |
4311 | int _result; | |
4312 | wxPyTimer * _arg0; | |
4313 | PyObject * _argo0 = 0; | |
4314 | char *_kwnames[] = { "self", NULL }; | |
4315 | ||
4316 | self = self; | |
4317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
4318 | return NULL; | |
4319 | if (_argo0) { | |
4320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
4323 | return NULL; | |
4324 | } | |
4325 | } | |
4326 | { | |
4268f798 | 4327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4328 | _result = (int )wxPyTimer_GetInterval(_arg0); |
f6bcfd97 | 4329 | |
4268f798 RD |
4330 | wxPyEndAllowThreads(__tstate); |
4331 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4332 | } _resultobj = Py_BuildValue("i",_result); |
4333 | return _resultobj; | |
4334 | } | |
4335 | ||
4336 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
4337 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4338 | PyObject * _resultobj; | |
4339 | bool _result; | |
4340 | wxPyTimer * _arg0; | |
4341 | PyObject * _argo0 = 0; | |
4342 | char *_kwnames[] = { "self", NULL }; | |
4343 | ||
4344 | self = self; | |
4345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
4346 | return NULL; | |
4347 | if (_argo0) { | |
4348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
4351 | return NULL; | |
4352 | } | |
4353 | } | |
4354 | { | |
4268f798 | 4355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4356 | _result = (bool )wxPyTimer_IsOneShot(_arg0); |
f6bcfd97 | 4357 | |
4268f798 RD |
4358 | wxPyEndAllowThreads(__tstate); |
4359 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4360 | } _resultobj = Py_BuildValue("i",_result); |
4361 | return _resultobj; | |
4362 | } | |
4363 | ||
4364 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
4365 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4366 | PyObject * _resultobj; | |
4367 | bool _result; | |
4368 | wxPyTimer * _arg0; | |
4369 | PyObject * _argo0 = 0; | |
4370 | char *_kwnames[] = { "self", NULL }; | |
4371 | ||
4372 | self = self; | |
4373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
4374 | return NULL; | |
4375 | if (_argo0) { | |
4376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
4379 | return NULL; | |
4380 | } | |
4381 | } | |
4382 | { | |
4268f798 | 4383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4384 | _result = (bool )wxPyTimer_IsRunning(_arg0); |
f6bcfd97 | 4385 | |
4268f798 RD |
4386 | wxPyEndAllowThreads(__tstate); |
4387 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4388 | } _resultobj = Py_BuildValue("i",_result); |
4389 | return _resultobj; | |
4390 | } | |
4391 | ||
4392 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
4393 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4394 | PyObject * _resultobj; | |
4395 | wxPyTimer * _arg0; | |
4396 | wxEvtHandler * _arg1; | |
4397 | int _arg2 = (int ) -1; | |
4398 | PyObject * _argo0 = 0; | |
4399 | PyObject * _argo1 = 0; | |
4400 | char *_kwnames[] = { "self","owner","id", NULL }; | |
4401 | ||
4402 | self = self; | |
4403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4404 | return NULL; | |
4405 | if (_argo0) { | |
4406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
4409 | return NULL; | |
4410 | } | |
4411 | } | |
4412 | if (_argo1) { | |
4413 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4414 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
4416 | return NULL; | |
4417 | } | |
4418 | } | |
4419 | { | |
4268f798 | 4420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4421 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); |
f6bcfd97 | 4422 | |
4268f798 RD |
4423 | wxPyEndAllowThreads(__tstate); |
4424 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4425 | } Py_INCREF(Py_None); |
4426 | _resultobj = Py_None; | |
4427 | return _resultobj; | |
4428 | } | |
4429 | ||
4430 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
4431 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4432 | PyObject * _resultobj; | |
4433 | wxPyTimer * _arg0; | |
4434 | int _arg1 = (int ) -1; | |
4435 | int _arg2 = (int ) FALSE; | |
4436 | PyObject * _argo0 = 0; | |
4437 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
4438 | ||
4439 | self = self; | |
4440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4441 | return NULL; | |
4442 | if (_argo0) { | |
4443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
4446 | return NULL; | |
4447 | } | |
4448 | } | |
4449 | { | |
4268f798 | 4450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4451 | wxPyTimer_Start(_arg0,_arg1,_arg2); |
f6bcfd97 | 4452 | |
4268f798 RD |
4453 | wxPyEndAllowThreads(__tstate); |
4454 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4455 | } Py_INCREF(Py_None); |
4456 | _resultobj = Py_None; | |
4457 | return _resultobj; | |
4458 | } | |
4459 | ||
4460 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
4461 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4462 | PyObject * _resultobj; | |
4463 | wxPyTimer * _arg0; | |
f0261a72 RD |
4464 | PyObject * _argo0 = 0; |
4465 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4466 | |
4467 | self = self; | |
f6bcfd97 | 4468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) |
f0261a72 RD |
4469 | return NULL; |
4470 | if (_argo0) { | |
4471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { |
4473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
f0261a72 RD |
4474 | return NULL; |
4475 | } | |
4476 | } | |
4477 | { | |
4268f798 | 4478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4479 | wxPyTimer_Stop(_arg0); |
f0261a72 | 4480 | |
4268f798 RD |
4481 | wxPyEndAllowThreads(__tstate); |
4482 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4483 | } Py_INCREF(Py_None); |
4484 | _resultobj = Py_None; | |
f0261a72 RD |
4485 | return _resultobj; |
4486 | } | |
4487 | ||
b37c7e1d RD |
4488 | #define new_wxStopWatch() (new wxStopWatch()) |
4489 | static PyObject *_wrap_new_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4490 | PyObject * _resultobj; | |
4491 | wxStopWatch * _result; | |
4492 | char *_kwnames[] = { NULL }; | |
4493 | char _ptemp[128]; | |
4494 | ||
4495 | self = self; | |
4496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxStopWatch",_kwnames)) | |
4497 | return NULL; | |
4498 | { | |
4268f798 | 4499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4500 | _result = (wxStopWatch *)new_wxStopWatch(); |
b37c7e1d | 4501 | |
4268f798 RD |
4502 | wxPyEndAllowThreads(__tstate); |
4503 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4504 | } if (_result) { |
4505 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStopWatch_p"); | |
4506 | _resultobj = Py_BuildValue("s",_ptemp); | |
4507 | } else { | |
4508 | Py_INCREF(Py_None); | |
4509 | _resultobj = Py_None; | |
4510 | } | |
4511 | return _resultobj; | |
4512 | } | |
4513 | ||
68320e40 RD |
4514 | #define delete_wxStopWatch(_swigobj) (delete _swigobj) |
4515 | static PyObject *_wrap_delete_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4516 | PyObject * _resultobj; | |
4517 | wxStopWatch * _arg0; | |
4518 | PyObject * _argo0 = 0; | |
4519 | char *_kwnames[] = { "self", NULL }; | |
4520 | ||
4521 | self = self; | |
4522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxStopWatch",_kwnames,&_argo0)) | |
4523 | return NULL; | |
4524 | if (_argo0) { | |
4525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxStopWatch. Expected _wxStopWatch_p."); | |
4528 | return NULL; | |
4529 | } | |
4530 | } | |
4531 | { | |
4532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4533 | delete_wxStopWatch(_arg0); |
68320e40 RD |
4534 | |
4535 | wxPyEndAllowThreads(__tstate); | |
4536 | if (PyErr_Occurred()) return NULL; | |
4537 | } Py_INCREF(Py_None); | |
4538 | _resultobj = Py_None; | |
4539 | return _resultobj; | |
4540 | } | |
4541 | ||
b37c7e1d RD |
4542 | #define wxStopWatch_Start(_swigobj,_swigarg0) (_swigobj->Start(_swigarg0)) |
4543 | static PyObject *_wrap_wxStopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4544 | PyObject * _resultobj; | |
4545 | wxStopWatch * _arg0; | |
4546 | long _arg1 = (long ) 0; | |
4547 | PyObject * _argo0 = 0; | |
4548 | char *_kwnames[] = { "self","t", NULL }; | |
4549 | ||
4550 | self = self; | |
4551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxStopWatch_Start",_kwnames,&_argo0,&_arg1)) | |
4552 | return NULL; | |
4553 | if (_argo0) { | |
4554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Start. Expected _wxStopWatch_p."); | |
4557 | return NULL; | |
4558 | } | |
4559 | } | |
4560 | { | |
4268f798 | 4561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4562 | wxStopWatch_Start(_arg0,_arg1); |
b37c7e1d | 4563 | |
4268f798 RD |
4564 | wxPyEndAllowThreads(__tstate); |
4565 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4566 | } Py_INCREF(Py_None); |
4567 | _resultobj = Py_None; | |
4568 | return _resultobj; | |
4569 | } | |
4570 | ||
4571 | #define wxStopWatch_Pause(_swigobj) (_swigobj->Pause()) | |
4572 | static PyObject *_wrap_wxStopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4573 | PyObject * _resultobj; | |
4574 | wxStopWatch * _arg0; | |
4575 | PyObject * _argo0 = 0; | |
4576 | char *_kwnames[] = { "self", NULL }; | |
4577 | ||
4578 | self = self; | |
4579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Pause",_kwnames,&_argo0)) | |
4580 | return NULL; | |
4581 | if (_argo0) { | |
4582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Pause. Expected _wxStopWatch_p."); | |
4585 | return NULL; | |
4586 | } | |
4587 | } | |
4588 | { | |
4268f798 | 4589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4590 | wxStopWatch_Pause(_arg0); |
b37c7e1d | 4591 | |
4268f798 RD |
4592 | wxPyEndAllowThreads(__tstate); |
4593 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4594 | } Py_INCREF(Py_None); |
4595 | _resultobj = Py_None; | |
4596 | return _resultobj; | |
4597 | } | |
4598 | ||
4599 | #define wxStopWatch_Resume(_swigobj) (_swigobj->Resume()) | |
4600 | static PyObject *_wrap_wxStopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4601 | PyObject * _resultobj; | |
4602 | wxStopWatch * _arg0; | |
4603 | PyObject * _argo0 = 0; | |
4604 | char *_kwnames[] = { "self", NULL }; | |
4605 | ||
4606 | self = self; | |
4607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Resume",_kwnames,&_argo0)) | |
4608 | return NULL; | |
4609 | if (_argo0) { | |
4610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Resume. Expected _wxStopWatch_p."); | |
4613 | return NULL; | |
4614 | } | |
4615 | } | |
4616 | { | |
4268f798 | 4617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4618 | wxStopWatch_Resume(_arg0); |
b37c7e1d | 4619 | |
4268f798 RD |
4620 | wxPyEndAllowThreads(__tstate); |
4621 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4622 | } Py_INCREF(Py_None); |
4623 | _resultobj = Py_None; | |
4624 | return _resultobj; | |
4625 | } | |
4626 | ||
4627 | #define wxStopWatch_Time(_swigobj) (_swigobj->Time()) | |
4628 | static PyObject *_wrap_wxStopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4629 | PyObject * _resultobj; | |
4630 | long _result; | |
4631 | wxStopWatch * _arg0; | |
4632 | PyObject * _argo0 = 0; | |
4633 | char *_kwnames[] = { "self", NULL }; | |
4634 | ||
4635 | self = self; | |
4636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Time",_kwnames,&_argo0)) | |
4637 | return NULL; | |
4638 | if (_argo0) { | |
4639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Time. Expected _wxStopWatch_p."); | |
4642 | return NULL; | |
4643 | } | |
4644 | } | |
4645 | { | |
4268f798 | 4646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4647 | _result = (long )wxStopWatch_Time(_arg0); |
b37c7e1d | 4648 | |
4268f798 RD |
4649 | wxPyEndAllowThreads(__tstate); |
4650 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4651 | } _resultobj = Py_BuildValue("l",_result); |
4652 | return _resultobj; | |
4653 | } | |
4654 | ||
f6bcfd97 BP |
4655 | #define new_wxLog() (new wxLog()) |
4656 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4657 | PyObject * _resultobj; |
f6bcfd97 BP |
4658 | wxLog * _result; |
4659 | char *_kwnames[] = { NULL }; | |
4660 | char _ptemp[128]; | |
f0261a72 RD |
4661 | |
4662 | self = self; | |
f6bcfd97 BP |
4663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) |
4664 | return NULL; | |
f0261a72 | 4665 | { |
4268f798 | 4666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4667 | _result = (wxLog *)new_wxLog(); |
f6bcfd97 | 4668 | |
4268f798 RD |
4669 | wxPyEndAllowThreads(__tstate); |
4670 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4671 | } if (_result) { |
4672 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4673 | _resultobj = Py_BuildValue("s",_ptemp); | |
4674 | } else { | |
4675 | Py_INCREF(Py_None); | |
4676 | _resultobj = Py_None; | |
4677 | } | |
4678 | return _resultobj; | |
f0261a72 | 4679 | } |
f6bcfd97 BP |
4680 | |
4681 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4682 | PyObject * _resultobj; | |
4683 | bool _result; | |
4684 | char *_kwnames[] = { NULL }; | |
4685 | ||
4686 | self = self; | |
4687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
4688 | return NULL; | |
f0261a72 | 4689 | { |
4268f798 | 4690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4691 | _result = (bool )wxLog::IsEnabled(); |
f6bcfd97 | 4692 | |
4268f798 RD |
4693 | wxPyEndAllowThreads(__tstate); |
4694 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4695 | } _resultobj = Py_BuildValue("i",_result); |
4696 | return _resultobj; | |
f0261a72 | 4697 | } |
f6bcfd97 BP |
4698 | |
4699 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4700 | PyObject * _resultobj; | |
4701 | bool _result; | |
4702 | bool _arg0 = (bool ) TRUE; | |
4703 | int tempbool0 = (int) TRUE; | |
4704 | char *_kwnames[] = { "doIt", NULL }; | |
4705 | ||
4706 | self = self; | |
4707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
4708 | return NULL; | |
4709 | _arg0 = (bool ) tempbool0; | |
4710 | { | |
4268f798 | 4711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4712 | _result = (bool )wxLog::EnableLogging(_arg0); |
f6bcfd97 | 4713 | |
4268f798 RD |
4714 | wxPyEndAllowThreads(__tstate); |
4715 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4716 | } _resultobj = Py_BuildValue("i",_result); |
4717 | return _resultobj; | |
4718 | } | |
4719 | ||
4720 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4721 | PyObject * _resultobj; | |
8baa46e9 | 4722 | unsigned long _arg0; |
c8bc7bb8 | 4723 | wxString * _arg1; |
f6bcfd97 | 4724 | int _arg2 = (int ) 0; |
c8bc7bb8 | 4725 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
4726 | char *_kwnames[] = { "level","szString","t", NULL }; |
4727 | ||
4728 | self = self; | |
8baa46e9 | 4729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"lO|i:wxLog_OnLog",_kwnames,&_arg0,&_obj1,&_arg2)) |
f0261a72 | 4730 | return NULL; |
c8bc7bb8 RD |
4731 | { |
4732 | _arg1 = wxString_in_helper(_obj1); | |
4733 | if (_arg1 == NULL) | |
4734 | return NULL; | |
4735 | } | |
f0261a72 | 4736 | { |
4268f798 | 4737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8baa46e9 | 4738 | wxLog::OnLog(_arg0,*_arg1,_arg2); |
f0261a72 | 4739 | |
4268f798 RD |
4740 | wxPyEndAllowThreads(__tstate); |
4741 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4742 | } Py_INCREF(Py_None); |
4743 | _resultobj = Py_None; | |
c8bc7bb8 RD |
4744 | { |
4745 | if (_obj1) | |
4746 | delete _arg1; | |
4747 | } | |
f6bcfd97 | 4748 | return _resultobj; |
f0261a72 | 4749 | } |
f6bcfd97 BP |
4750 | |
4751 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
4752 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4753 | PyObject * _resultobj; | |
4754 | wxLog * _arg0; | |
4755 | PyObject * _argo0 = 0; | |
4756 | char *_kwnames[] = { "self", NULL }; | |
4757 | ||
4758 | self = self; | |
4759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
4760 | return NULL; | |
4761 | if (_argo0) { | |
4762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
4765 | return NULL; | |
4766 | } | |
4767 | } | |
f0261a72 | 4768 | { |
4268f798 | 4769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4770 | wxLog_Flush(_arg0); |
f6bcfd97 | 4771 | |
4268f798 RD |
4772 | wxPyEndAllowThreads(__tstate); |
4773 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4774 | } Py_INCREF(Py_None); |
4775 | _resultobj = Py_None; | |
f0261a72 RD |
4776 | return _resultobj; |
4777 | } | |
4778 | ||
f6bcfd97 BP |
4779 | #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages()) |
4780 | static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4781 | PyObject * _resultobj; |
f6bcfd97 BP |
4782 | bool _result; |
4783 | wxLog * _arg0; | |
f0261a72 RD |
4784 | PyObject * _argo0 = 0; |
4785 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4786 | |
4787 | self = self; | |
f6bcfd97 | 4788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0)) |
f0261a72 RD |
4789 | return NULL; |
4790 | if (_argo0) { | |
4791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p."); | |
f0261a72 RD |
4794 | return NULL; |
4795 | } | |
4796 | } | |
4797 | { | |
4268f798 | 4798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4799 | _result = (bool )wxLog_HasPendingMessages(_arg0); |
f0261a72 | 4800 | |
4268f798 RD |
4801 | wxPyEndAllowThreads(__tstate); |
4802 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 4803 | } _resultobj = Py_BuildValue("i",_result); |
f0261a72 RD |
4804 | return _resultobj; |
4805 | } | |
4806 | ||
f6bcfd97 | 4807 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4808 | PyObject * _resultobj; |
f6bcfd97 BP |
4809 | char *_kwnames[] = { NULL }; |
4810 | ||
4811 | self = self; | |
4812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4813 | return NULL; | |
4814 | { | |
4268f798 | 4815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4816 | wxLog::FlushActive(); |
f6bcfd97 | 4817 | |
4268f798 RD |
4818 | wxPyEndAllowThreads(__tstate); |
4819 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4820 | } Py_INCREF(Py_None); |
4821 | _resultobj = Py_None; | |
4822 | return _resultobj; | |
4823 | } | |
4824 | ||
4825 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4826 | PyObject * _resultobj; | |
4827 | wxLog * _result; | |
4828 | char *_kwnames[] = { NULL }; | |
4829 | char _ptemp[128]; | |
4830 | ||
4831 | self = self; | |
4832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
4833 | return NULL; | |
4834 | { | |
4268f798 | 4835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4836 | _result = (wxLog *)wxLog::GetActiveTarget(); |
f6bcfd97 | 4837 | |
4268f798 RD |
4838 | wxPyEndAllowThreads(__tstate); |
4839 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4840 | } if (_result) { |
4841 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4842 | _resultobj = Py_BuildValue("s",_ptemp); | |
4843 | } else { | |
4844 | Py_INCREF(Py_None); | |
4845 | _resultobj = Py_None; | |
4846 | } | |
4847 | return _resultobj; | |
4848 | } | |
4849 | ||
4850 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4851 | PyObject * _resultobj; | |
4852 | wxLog * _result; | |
4853 | wxLog * _arg0; | |
f0261a72 | 4854 | PyObject * _argo0 = 0; |
f6bcfd97 | 4855 | char *_kwnames[] = { "pLogger", NULL }; |
f0261a72 RD |
4856 | char _ptemp[128]; |
4857 | ||
4858 | self = self; | |
f6bcfd97 | 4859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) |
f0261a72 RD |
4860 | return NULL; |
4861 | if (_argo0) { | |
4862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
f0261a72 RD |
4865 | return NULL; |
4866 | } | |
4867 | } | |
4868 | { | |
4268f798 | 4869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4870 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); |
f0261a72 | 4871 | |
4268f798 RD |
4872 | wxPyEndAllowThreads(__tstate); |
4873 | if (PyErr_Occurred()) return NULL; | |
f0261a72 | 4874 | } if (_result) { |
f6bcfd97 | 4875 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); |
f0261a72 RD |
4876 | _resultobj = Py_BuildValue("s",_ptemp); |
4877 | } else { | |
4878 | Py_INCREF(Py_None); | |
4879 | _resultobj = Py_None; | |
4880 | } | |
4881 | return _resultobj; | |
4882 | } | |
4883 | ||
f6bcfd97 | 4884 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4885 | PyObject * _resultobj; |
f6bcfd97 BP |
4886 | char *_kwnames[] = { NULL }; |
4887 | ||
4888 | self = self; | |
4889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
4890 | return NULL; | |
4891 | { | |
4268f798 | 4892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4893 | wxLog::Suspend(); |
f6bcfd97 | 4894 | |
4268f798 RD |
4895 | wxPyEndAllowThreads(__tstate); |
4896 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4897 | } Py_INCREF(Py_None); |
4898 | _resultobj = Py_None; | |
4899 | return _resultobj; | |
4900 | } | |
4901 | ||
4902 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4903 | PyObject * _resultobj; | |
4904 | char *_kwnames[] = { NULL }; | |
4905 | ||
4906 | self = self; | |
4907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
4908 | return NULL; | |
4909 | { | |
4268f798 | 4910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4911 | wxLog::Resume(); |
f6bcfd97 | 4912 | |
4268f798 RD |
4913 | wxPyEndAllowThreads(__tstate); |
4914 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4915 | } Py_INCREF(Py_None); |
4916 | _resultobj = Py_None; | |
4917 | return _resultobj; | |
4918 | } | |
4919 | ||
f6bcfd97 BP |
4920 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { |
4921 | PyObject * _resultobj; | |
d6eacb25 RD |
4922 | bool _arg0 = (bool ) TRUE; |
4923 | int tempbool0 = (int) TRUE; | |
4924 | char *_kwnames[] = { "bVerbose", NULL }; | |
f0261a72 RD |
4925 | |
4926 | self = self; | |
d6eacb25 | 4927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_SetVerbose",_kwnames,&tempbool0)) |
f0261a72 | 4928 | return NULL; |
d6eacb25 | 4929 | _arg0 = (bool ) tempbool0; |
f0261a72 | 4930 | { |
4268f798 | 4931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d6eacb25 | 4932 | wxLog::SetVerbose(_arg0); |
f0261a72 | 4933 | |
4268f798 RD |
4934 | wxPyEndAllowThreads(__tstate); |
4935 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4936 | } Py_INCREF(Py_None); |
4937 | _resultobj = Py_None; | |
4938 | return _resultobj; | |
4939 | } | |
4940 | ||
f6bcfd97 | 4941 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4942 | PyObject * _resultobj; |
f6bcfd97 BP |
4943 | char *_kwnames[] = { NULL }; |
4944 | ||
4945 | self = self; | |
4946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
4947 | return NULL; | |
4948 | { | |
4268f798 | 4949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4950 | wxLog::DontCreateOnDemand(); |
f6bcfd97 | 4951 | |
4268f798 RD |
4952 | wxPyEndAllowThreads(__tstate); |
4953 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4954 | } Py_INCREF(Py_None); |
4955 | _resultobj = Py_None; | |
4956 | return _resultobj; | |
4957 | } | |
4958 | ||
4959 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4960 | PyObject * _resultobj; | |
8baa46e9 | 4961 | long _arg0; |
f6bcfd97 | 4962 | char *_kwnames[] = { "ulMask", NULL }; |
f0261a72 RD |
4963 | |
4964 | self = self; | |
8baa46e9 | 4965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxLog_SetTraceMask",_kwnames,&_arg0)) |
f6bcfd97 | 4966 | return NULL; |
f6bcfd97 | 4967 | { |
4268f798 | 4968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8baa46e9 | 4969 | wxLog::SetTraceMask(_arg0); |
f6bcfd97 | 4970 | |
4268f798 RD |
4971 | wxPyEndAllowThreads(__tstate); |
4972 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4973 | } Py_INCREF(Py_None); |
4974 | _resultobj = Py_None; | |
4975 | return _resultobj; | |
4976 | } | |
4977 | ||
4978 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4979 | PyObject * _resultobj; | |
4980 | wxString * _arg0; | |
4981 | PyObject * _obj0 = 0; | |
4982 | char *_kwnames[] = { "str", NULL }; | |
4983 | ||
4984 | self = self; | |
4985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
4986 | return NULL; | |
4987 | { | |
c8bc7bb8 RD |
4988 | _arg0 = wxString_in_helper(_obj0); |
4989 | if (_arg0 == NULL) | |
f6bcfd97 | 4990 | return NULL; |
f6bcfd97 BP |
4991 | } |
4992 | { | |
4268f798 | 4993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4994 | wxLog::AddTraceMask(*_arg0); |
f6bcfd97 | 4995 | |
4268f798 RD |
4996 | wxPyEndAllowThreads(__tstate); |
4997 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4998 | } Py_INCREF(Py_None); |
4999 | _resultobj = Py_None; | |
5000 | { | |
5001 | if (_obj0) | |
5002 | delete _arg0; | |
5003 | } | |
5004 | return _resultobj; | |
5005 | } | |
5006 | ||
5007 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5008 | PyObject * _resultobj; | |
5009 | wxString * _arg0; | |
5010 | PyObject * _obj0 = 0; | |
5011 | char *_kwnames[] = { "str", NULL }; | |
5012 | ||
5013 | self = self; | |
5014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
f0261a72 | 5015 | return NULL; |
f0261a72 | 5016 | { |
c8bc7bb8 RD |
5017 | _arg0 = wxString_in_helper(_obj0); |
5018 | if (_arg0 == NULL) | |
185d7c3e | 5019 | return NULL; |
f0261a72 RD |
5020 | } |
5021 | { | |
4268f798 | 5022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5023 | wxLog::RemoveTraceMask(*_arg0); |
f0261a72 | 5024 | |
4268f798 RD |
5025 | wxPyEndAllowThreads(__tstate); |
5026 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
5027 | } Py_INCREF(Py_None); |
5028 | _resultobj = Py_None; | |
f6bcfd97 BP |
5029 | { |
5030 | if (_obj0) | |
5031 | delete _arg0; | |
5032 | } | |
f0261a72 RD |
5033 | return _resultobj; |
5034 | } | |
5035 | ||
76bfdc78 RD |
5036 | static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { |
5037 | PyObject * _resultobj; | |
5038 | char *_kwnames[] = { NULL }; | |
5039 | ||
5040 | self = self; | |
5041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames)) | |
5042 | return NULL; | |
5043 | { | |
4268f798 | 5044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5045 | wxLog::ClearTraceMasks(); |
76bfdc78 | 5046 | |
4268f798 RD |
5047 | wxPyEndAllowThreads(__tstate); |
5048 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5049 | } Py_INCREF(Py_None); |
5050 | _resultobj = Py_None; | |
5051 | return _resultobj; | |
5052 | } | |
5053 | ||
5054 | static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5055 | PyObject * _resultobj; | |
137b5242 RD |
5056 | wxString * _arg0; |
5057 | PyObject * _obj0 = 0; | |
76bfdc78 RD |
5058 | char *_kwnames[] = { "ts", NULL }; |
5059 | ||
5060 | self = self; | |
137b5242 | 5061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTimestamp",_kwnames,&_obj0)) |
76bfdc78 | 5062 | return NULL; |
137b5242 RD |
5063 | { |
5064 | _arg0 = wxString_in_helper(_obj0); | |
5065 | if (_arg0 == NULL) | |
5066 | return NULL; | |
5067 | } | |
76bfdc78 | 5068 | { |
4268f798 | 5069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 5070 | wxLog::SetTimestamp(*_arg0); |
76bfdc78 | 5071 | |
4268f798 RD |
5072 | wxPyEndAllowThreads(__tstate); |
5073 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5074 | } Py_INCREF(Py_None); |
5075 | _resultobj = Py_None; | |
137b5242 RD |
5076 | { |
5077 | if (_obj0) | |
5078 | delete _arg0; | |
5079 | } | |
76bfdc78 RD |
5080 | return _resultobj; |
5081 | } | |
5082 | ||
5083 | static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5084 | PyObject * _resultobj; | |
137b5242 | 5085 | wxString * _result; |
76bfdc78 RD |
5086 | char *_kwnames[] = { NULL }; |
5087 | ||
5088 | self = self; | |
5089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames)) | |
5090 | return NULL; | |
5091 | { | |
4268f798 | 5092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 RD |
5093 | const wxString & _result_ref = wxLog::GetTimestamp(); |
5094 | _result = (wxString *) &_result_ref; | |
76bfdc78 | 5095 | |
4268f798 RD |
5096 | wxPyEndAllowThreads(__tstate); |
5097 | if (PyErr_Occurred()) return NULL; | |
137b5242 RD |
5098 | }{ |
5099 | #if wxUSE_UNICODE | |
5100 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5101 | #else | |
5102 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5103 | #endif | |
5104 | } | |
76bfdc78 RD |
5105 | return _resultobj; |
5106 | } | |
5107 | ||
f6bcfd97 BP |
5108 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) |
5109 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
a1df7a95 | 5110 | PyObject * _resultobj; |
f6bcfd97 BP |
5111 | bool _result; |
5112 | wxLog * _arg0; | |
a1df7a95 | 5113 | PyObject * _argo0 = 0; |
f6bcfd97 | 5114 | char *_kwnames[] = { "self", NULL }; |
a1df7a95 RD |
5115 | |
5116 | self = self; | |
f6bcfd97 | 5117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) |
a1df7a95 RD |
5118 | return NULL; |
5119 | if (_argo0) { | |
5120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
5122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
a1df7a95 RD |
5123 | return NULL; |
5124 | } | |
5125 | } | |
5126 | { | |
4268f798 | 5127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5128 | _result = (bool )wxLog_GetVerbose(_arg0); |
a1df7a95 | 5129 | |
4268f798 RD |
5130 | wxPyEndAllowThreads(__tstate); |
5131 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5132 | } _resultobj = Py_BuildValue("i",_result); |
a1df7a95 RD |
5133 | return _resultobj; |
5134 | } | |
5135 | ||
f6bcfd97 | 5136 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
a1df7a95 | 5137 | PyObject * _resultobj; |
be13a6af | 5138 | unsigned long _result; |
f6bcfd97 | 5139 | char *_kwnames[] = { NULL }; |
a1df7a95 RD |
5140 | |
5141 | self = self; | |
f6bcfd97 | 5142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) |
a1df7a95 | 5143 | return NULL; |
a1df7a95 | 5144 | { |
4268f798 | 5145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
be13a6af | 5146 | _result = (unsigned long )wxLog::GetTraceMask(); |
f6bcfd97 | 5147 | |
4268f798 RD |
5148 | wxPyEndAllowThreads(__tstate); |
5149 | if (PyErr_Occurred()) return NULL; | |
be13a6af | 5150 | } _resultobj = Py_BuildValue("l",_result); |
f6bcfd97 | 5151 | return _resultobj; |
a1df7a95 | 5152 | } |
f6bcfd97 BP |
5153 | |
5154 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5155 | PyObject * _resultobj; | |
5156 | bool _result; | |
c8bc7bb8 RD |
5157 | wxString * _arg0; |
5158 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
5159 | char *_kwnames[] = { "mask", NULL }; |
5160 | ||
5161 | self = self; | |
c8bc7bb8 | 5162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_IsAllowedTraceMask",_kwnames,&_obj0)) |
f6bcfd97 | 5163 | return NULL; |
c8bc7bb8 RD |
5164 | { |
5165 | _arg0 = wxString_in_helper(_obj0); | |
5166 | if (_arg0 == NULL) | |
5167 | return NULL; | |
5168 | } | |
a1df7a95 | 5169 | { |
4268f798 | 5170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5171 | _result = (bool )wxLog::IsAllowedTraceMask(*_arg0); |
a1df7a95 | 5172 | |
4268f798 RD |
5173 | wxPyEndAllowThreads(__tstate); |
5174 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5175 | } _resultobj = Py_BuildValue("i",_result); |
c8bc7bb8 RD |
5176 | { |
5177 | if (_obj0) | |
5178 | delete _arg0; | |
5179 | } | |
a1df7a95 RD |
5180 | return _resultobj; |
5181 | } | |
5182 | ||
76bfdc78 RD |
5183 | static wxString wxLog_TimeStamp(wxLog *self) { |
5184 | wxString msg; | |
5185 | wxLog::TimeStamp(&msg); | |
5186 | return msg; | |
5187 | } | |
5188 | static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5189 | PyObject * _resultobj; | |
5190 | wxString * _result; | |
5191 | wxLog * _arg0; | |
5192 | PyObject * _argo0 = 0; | |
5193 | char *_kwnames[] = { "self", NULL }; | |
5194 | ||
5195 | self = self; | |
5196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0)) | |
5197 | return NULL; | |
5198 | if (_argo0) { | |
5199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p."); | |
5202 | return NULL; | |
5203 | } | |
5204 | } | |
5205 | { | |
4268f798 | 5206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5207 | _result = new wxString (wxLog_TimeStamp(_arg0)); |
76bfdc78 | 5208 | |
4268f798 RD |
5209 | wxPyEndAllowThreads(__tstate); |
5210 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 | 5211 | }{ |
c8bc7bb8 RD |
5212 | #if wxUSE_UNICODE |
5213 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5214 | #else | |
76bfdc78 | 5215 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5216 | #endif |
76bfdc78 RD |
5217 | } |
5218 | { | |
5219 | delete _result; | |
5220 | } | |
5221 | return _resultobj; | |
5222 | } | |
5223 | ||
f6bcfd97 BP |
5224 | static void *SwigwxLogStderrTowxLog(void *ptr) { |
5225 | wxLogStderr *src; | |
5226 | wxLog *dest; | |
5227 | src = (wxLogStderr *) ptr; | |
5228 | dest = (wxLog *) src; | |
5229 | return (void *) dest; | |
5230 | } | |
5231 | ||
5232 | #define new_wxLogStderr() (new wxLogStderr()) | |
5233 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5234 | PyObject * _resultobj; |
f6bcfd97 BP |
5235 | wxLogStderr * _result; |
5236 | char *_kwnames[] = { NULL }; | |
5237 | char _ptemp[128]; | |
f0261a72 RD |
5238 | |
5239 | self = self; | |
f6bcfd97 | 5240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) |
f0261a72 | 5241 | return NULL; |
f0261a72 | 5242 | { |
4268f798 | 5243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5244 | _result = (wxLogStderr *)new_wxLogStderr(); |
f0261a72 | 5245 | |
4268f798 RD |
5246 | wxPyEndAllowThreads(__tstate); |
5247 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5248 | } if (_result) { |
5249 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
5250 | _resultobj = Py_BuildValue("s",_ptemp); | |
5251 | } else { | |
5252 | Py_INCREF(Py_None); | |
5253 | _resultobj = Py_None; | |
5254 | } | |
f0261a72 RD |
5255 | return _resultobj; |
5256 | } | |
5257 | ||
f6bcfd97 BP |
5258 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { |
5259 | wxLogTextCtrl *src; | |
5260 | wxLog *dest; | |
5261 | src = (wxLogTextCtrl *) ptr; | |
5262 | dest = (wxLog *) src; | |
5263 | return (void *) dest; | |
5264 | } | |
5265 | ||
5266 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
5267 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5268 | PyObject * _resultobj; |
f6bcfd97 BP |
5269 | wxLogTextCtrl * _result; |
5270 | wxTextCtrl * _arg0; | |
f0261a72 | 5271 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5272 | char *_kwnames[] = { "pTextCtrl", NULL }; |
5273 | char _ptemp[128]; | |
f0261a72 RD |
5274 | |
5275 | self = self; | |
f6bcfd97 | 5276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) |
f0261a72 RD |
5277 | return NULL; |
5278 | if (_argo0) { | |
5279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
5281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
f0261a72 RD |
5282 | return NULL; |
5283 | } | |
5284 | } | |
5285 | { | |
4268f798 | 5286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5287 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); |
f0261a72 | 5288 | |
4268f798 RD |
5289 | wxPyEndAllowThreads(__tstate); |
5290 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5291 | } if (_result) { |
5292 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
5293 | _resultobj = Py_BuildValue("s",_ptemp); | |
5294 | } else { | |
5295 | Py_INCREF(Py_None); | |
5296 | _resultobj = Py_None; | |
5297 | } | |
f0261a72 RD |
5298 | return _resultobj; |
5299 | } | |
5300 | ||
f6bcfd97 BP |
5301 | static void *SwigwxLogGuiTowxLog(void *ptr) { |
5302 | wxLogGui *src; | |
5303 | wxLog *dest; | |
5304 | src = (wxLogGui *) ptr; | |
5305 | dest = (wxLog *) src; | |
5306 | return (void *) dest; | |
5307 | } | |
5308 | ||
5309 | #define new_wxLogGui() (new wxLogGui()) | |
5310 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5311 | PyObject * _resultobj; |
f6bcfd97 | 5312 | wxLogGui * _result; |
b1462dfa RD |
5313 | char *_kwnames[] = { NULL }; |
5314 | char _ptemp[128]; | |
5315 | ||
5316 | self = self; | |
f6bcfd97 | 5317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) |
b1462dfa RD |
5318 | return NULL; |
5319 | { | |
4268f798 | 5320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5321 | _result = (wxLogGui *)new_wxLogGui(); |
b1462dfa | 5322 | |
4268f798 RD |
5323 | wxPyEndAllowThreads(__tstate); |
5324 | if (PyErr_Occurred()) return NULL; | |
b1462dfa | 5325 | } if (_result) { |
f6bcfd97 | 5326 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); |
b1462dfa RD |
5327 | _resultobj = Py_BuildValue("s",_ptemp); |
5328 | } else { | |
5329 | Py_INCREF(Py_None); | |
5330 | _resultobj = Py_None; | |
5331 | } | |
5332 | return _resultobj; | |
5333 | } | |
5334 | ||
f6bcfd97 BP |
5335 | static void *SwigwxLogWindowTowxLog(void *ptr) { |
5336 | wxLogWindow *src; | |
5337 | wxLog *dest; | |
5338 | src = (wxLogWindow *) ptr; | |
5339 | dest = (wxLog *) src; | |
5340 | return (void *) dest; | |
5341 | } | |
5342 | ||
5343 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5344 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5345 | PyObject * _resultobj; |
f6bcfd97 BP |
5346 | wxLogWindow * _result; |
5347 | wxFrame * _arg0; | |
c8bc7bb8 | 5348 | wxString * _arg1; |
f6bcfd97 BP |
5349 | bool _arg2 = (bool ) TRUE; |
5350 | bool _arg3 = (bool ) TRUE; | |
b1462dfa | 5351 | PyObject * _argo0 = 0; |
c8bc7bb8 | 5352 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
5353 | int tempbool2 = (int) TRUE; |
5354 | int tempbool3 = (int) TRUE; | |
5355 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
5356 | char _ptemp[128]; | |
b1462dfa RD |
5357 | |
5358 | self = self; | |
c8bc7bb8 | 5359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:new_wxLogWindow",_kwnames,&_argo0,&_obj1,&tempbool2,&tempbool3)) |
b1462dfa RD |
5360 | return NULL; |
5361 | if (_argo0) { | |
5362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { |
5364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
b1462dfa RD |
5365 | return NULL; |
5366 | } | |
5367 | } | |
c8bc7bb8 RD |
5368 | { |
5369 | _arg1 = wxString_in_helper(_obj1); | |
5370 | if (_arg1 == NULL) | |
5371 | return NULL; | |
5372 | } | |
f6bcfd97 BP |
5373 | _arg2 = (bool ) tempbool2; |
5374 | _arg3 = (bool ) tempbool3; | |
b1462dfa | 5375 | { |
4268f798 | 5376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5377 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,*_arg1,_arg2,_arg3); |
b1462dfa | 5378 | |
4268f798 RD |
5379 | wxPyEndAllowThreads(__tstate); |
5380 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5381 | } if (_result) { |
5382 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
5383 | _resultobj = Py_BuildValue("s",_ptemp); | |
5384 | } else { | |
5385 | Py_INCREF(Py_None); | |
5386 | _resultobj = Py_None; | |
5387 | } | |
c8bc7bb8 RD |
5388 | { |
5389 | if (_obj1) | |
5390 | delete _arg1; | |
5391 | } | |
b1462dfa RD |
5392 | return _resultobj; |
5393 | } | |
5394 | ||
f6bcfd97 BP |
5395 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) |
5396 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5397 | PyObject * _resultobj; |
f6bcfd97 BP |
5398 | wxLogWindow * _arg0; |
5399 | bool _arg1 = (bool ) TRUE; | |
b1462dfa | 5400 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5401 | int tempbool1 = (int) TRUE; |
5402 | char *_kwnames[] = { "self","bShow", NULL }; | |
b1462dfa RD |
5403 | |
5404 | self = self; | |
f6bcfd97 | 5405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) |
b1462dfa RD |
5406 | return NULL; |
5407 | if (_argo0) { | |
5408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5411 | return NULL; |
5412 | } | |
5413 | } | |
f6bcfd97 | 5414 | _arg1 = (bool ) tempbool1; |
b1462dfa | 5415 | { |
4268f798 | 5416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5417 | wxLogWindow_Show(_arg0,_arg1); |
b1462dfa | 5418 | |
4268f798 RD |
5419 | wxPyEndAllowThreads(__tstate); |
5420 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
5421 | } Py_INCREF(Py_None); |
5422 | _resultobj = Py_None; | |
5423 | return _resultobj; | |
5424 | } | |
5425 | ||
f6bcfd97 BP |
5426 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) |
5427 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5428 | PyObject * _resultobj; |
f6bcfd97 BP |
5429 | wxFrame * _result; |
5430 | wxLogWindow * _arg0; | |
b1462dfa | 5431 | PyObject * _argo0 = 0; |
f6bcfd97 | 5432 | char *_kwnames[] = { "self", NULL }; |
b1462dfa RD |
5433 | |
5434 | self = self; | |
f6bcfd97 | 5435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) |
b1462dfa RD |
5436 | return NULL; |
5437 | if (_argo0) { | |
5438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5441 | return NULL; |
5442 | } | |
5443 | } | |
b1462dfa | 5444 | { |
4268f798 | 5445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5446 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); |
b1462dfa | 5447 | |
4268f798 RD |
5448 | wxPyEndAllowThreads(__tstate); |
5449 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 5450 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
5451 | return _resultobj; |
5452 | } | |
5453 | ||
f6bcfd97 BP |
5454 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) |
5455 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5456 | PyObject * _resultobj; |
f6bcfd97 BP |
5457 | wxLog * _result; |
5458 | wxLogWindow * _arg0; | |
b1462dfa | 5459 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5460 | char *_kwnames[] = { "self", NULL }; |
5461 | char _ptemp[128]; | |
b1462dfa RD |
5462 | |
5463 | self = self; | |
f6bcfd97 | 5464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) |
b1462dfa RD |
5465 | return NULL; |
5466 | if (_argo0) { | |
5467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5470 | return NULL; |
5471 | } | |
5472 | } | |
5473 | { | |
4268f798 | 5474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5475 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); |
b1462dfa | 5476 | |
4268f798 RD |
5477 | wxPyEndAllowThreads(__tstate); |
5478 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5479 | } if (_result) { |
5480 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5481 | _resultobj = Py_BuildValue("s",_ptemp); | |
5482 | } else { | |
5483 | Py_INCREF(Py_None); | |
5484 | _resultobj = Py_None; | |
5485 | } | |
b1462dfa RD |
5486 | return _resultobj; |
5487 | } | |
5488 | ||
f6bcfd97 BP |
5489 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) |
5490 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5491 | PyObject * _resultobj; |
f6bcfd97 BP |
5492 | bool _result; |
5493 | wxLogWindow * _arg0; | |
65dd82cb RD |
5494 | PyObject * _argo0 = 0; |
5495 | char *_kwnames[] = { "self", NULL }; | |
5496 | ||
5497 | self = self; | |
f6bcfd97 | 5498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) |
65dd82cb RD |
5499 | return NULL; |
5500 | if (_argo0) { | |
5501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5504 | return NULL; |
5505 | } | |
5506 | } | |
5507 | { | |
4268f798 | 5508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5509 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); |
65dd82cb | 5510 | |
4268f798 RD |
5511 | wxPyEndAllowThreads(__tstate); |
5512 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5513 | } _resultobj = Py_BuildValue("i",_result); |
65dd82cb RD |
5514 | return _resultobj; |
5515 | } | |
5516 | ||
f6bcfd97 BP |
5517 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) |
5518 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5519 | PyObject * _resultobj; |
f6bcfd97 BP |
5520 | wxLogWindow * _arg0; |
5521 | bool _arg1; | |
65dd82cb | 5522 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5523 | int tempbool1; |
5524 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
65dd82cb RD |
5525 | |
5526 | self = self; | |
f6bcfd97 | 5527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) |
65dd82cb RD |
5528 | return NULL; |
5529 | if (_argo0) { | |
5530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5533 | return NULL; |
5534 | } | |
5535 | } | |
f6bcfd97 | 5536 | _arg1 = (bool ) tempbool1; |
65dd82cb | 5537 | { |
4268f798 | 5538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5539 | wxLogWindow_PassMessages(_arg0,_arg1); |
65dd82cb | 5540 | |
4268f798 RD |
5541 | wxPyEndAllowThreads(__tstate); |
5542 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5543 | } Py_INCREF(Py_None); |
5544 | _resultobj = Py_None; | |
65dd82cb RD |
5545 | return _resultobj; |
5546 | } | |
5547 | ||
76bfdc78 RD |
5548 | static void *SwigwxLogChainTowxLog(void *ptr) { |
5549 | wxLogChain *src; | |
5550 | wxLog *dest; | |
5551 | src = (wxLogChain *) ptr; | |
5552 | dest = (wxLog *) src; | |
5553 | return (void *) dest; | |
5554 | } | |
5555 | ||
5556 | #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0)) | |
5557 | static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5558 | PyObject * _resultobj; | |
5559 | wxLogChain * _result; | |
5560 | wxLog * _arg0; | |
5561 | PyObject * _argo0 = 0; | |
5562 | char *_kwnames[] = { "logger", NULL }; | |
5563 | char _ptemp[128]; | |
5564 | ||
5565 | self = self; | |
5566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0)) | |
5567 | return NULL; | |
5568 | if (_argo0) { | |
5569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p."); | |
5572 | return NULL; | |
5573 | } | |
5574 | } | |
5575 | { | |
4268f798 | 5576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5577 | _result = (wxLogChain *)new_wxLogChain(_arg0); |
76bfdc78 | 5578 | |
4268f798 RD |
5579 | wxPyEndAllowThreads(__tstate); |
5580 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5581 | } if (_result) { |
5582 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p"); | |
5583 | _resultobj = Py_BuildValue("s",_ptemp); | |
5584 | } else { | |
5585 | Py_INCREF(Py_None); | |
5586 | _resultobj = Py_None; | |
5587 | } | |
5588 | return _resultobj; | |
5589 | } | |
5590 | ||
5591 | #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0)) | |
5592 | static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5593 | PyObject * _resultobj; | |
5594 | wxLogChain * _arg0; | |
5595 | wxLog * _arg1; | |
5596 | PyObject * _argo0 = 0; | |
5597 | PyObject * _argo1 = 0; | |
5598 | char *_kwnames[] = { "self","logger", NULL }; | |
5599 | ||
5600 | self = self; | |
5601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1)) | |
5602 | return NULL; | |
5603 | if (_argo0) { | |
5604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p."); | |
5607 | return NULL; | |
5608 | } | |
5609 | } | |
5610 | if (_argo1) { | |
5611 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5612 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) { | |
5613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p."); | |
5614 | return NULL; | |
5615 | } | |
5616 | } | |
5617 | { | |
4268f798 | 5618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5619 | wxLogChain_SetLog(_arg0,_arg1); |
76bfdc78 | 5620 | |
4268f798 RD |
5621 | wxPyEndAllowThreads(__tstate); |
5622 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5623 | } Py_INCREF(Py_None); |
5624 | _resultobj = Py_None; | |
5625 | return _resultobj; | |
5626 | } | |
5627 | ||
5628 | #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5629 | static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5630 | PyObject * _resultobj; | |
5631 | wxLogChain * _arg0; | |
5632 | bool _arg1; | |
5633 | PyObject * _argo0 = 0; | |
5634 | int tempbool1; | |
5635 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5636 | ||
5637 | self = self; | |
5638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5639 | return NULL; | |
5640 | if (_argo0) { | |
5641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p."); | |
5644 | return NULL; | |
5645 | } | |
5646 | } | |
5647 | _arg1 = (bool ) tempbool1; | |
5648 | { | |
4268f798 | 5649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5650 | wxLogChain_PassMessages(_arg0,_arg1); |
76bfdc78 | 5651 | |
4268f798 RD |
5652 | wxPyEndAllowThreads(__tstate); |
5653 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5654 | } Py_INCREF(Py_None); |
5655 | _resultobj = Py_None; | |
5656 | return _resultobj; | |
5657 | } | |
5658 | ||
5659 | #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5660 | static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5661 | PyObject * _resultobj; | |
5662 | bool _result; | |
5663 | wxLogChain * _arg0; | |
5664 | PyObject * _argo0 = 0; | |
5665 | char *_kwnames[] = { "self", NULL }; | |
5666 | ||
5667 | self = self; | |
5668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0)) | |
5669 | return NULL; | |
5670 | if (_argo0) { | |
5671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p."); | |
5674 | return NULL; | |
5675 | } | |
5676 | } | |
5677 | { | |
4268f798 | 5678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5679 | _result = (bool )wxLogChain_IsPassingMessages(_arg0); |
76bfdc78 | 5680 | |
4268f798 RD |
5681 | wxPyEndAllowThreads(__tstate); |
5682 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5683 | } _resultobj = Py_BuildValue("i",_result); |
5684 | return _resultobj; | |
5685 | } | |
5686 | ||
5687 | #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5688 | static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5689 | PyObject * _resultobj; | |
5690 | wxLog * _result; | |
5691 | wxLogChain * _arg0; | |
5692 | PyObject * _argo0 = 0; | |
5693 | char *_kwnames[] = { "self", NULL }; | |
5694 | char _ptemp[128]; | |
5695 | ||
5696 | self = self; | |
5697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0)) | |
5698 | return NULL; | |
5699 | if (_argo0) { | |
5700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p."); | |
5703 | return NULL; | |
5704 | } | |
5705 | } | |
5706 | { | |
4268f798 | 5707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5708 | _result = (wxLog *)wxLogChain_GetOldLog(_arg0); |
76bfdc78 | 5709 | |
4268f798 RD |
5710 | wxPyEndAllowThreads(__tstate); |
5711 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5712 | } if (_result) { |
5713 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5714 | _resultobj = Py_BuildValue("s",_ptemp); | |
5715 | } else { | |
5716 | Py_INCREF(Py_None); | |
5717 | _resultobj = Py_None; | |
5718 | } | |
5719 | return _resultobj; | |
5720 | } | |
5721 | ||
19e30148 RD |
5722 | #define new_wxLogNull() (new wxLogNull()) |
5723 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5724 | PyObject * _resultobj; | |
5725 | wxLogNull * _result; | |
5726 | char *_kwnames[] = { NULL }; | |
5727 | char _ptemp[128]; | |
5728 | ||
5729 | self = self; | |
5730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) | |
5731 | return NULL; | |
5732 | { | |
5733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5734 | _result = (wxLogNull *)new_wxLogNull(); | |
5735 | ||
5736 | wxPyEndAllowThreads(__tstate); | |
5737 | if (PyErr_Occurred()) return NULL; | |
5738 | } if (_result) { | |
5739 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); | |
5740 | _resultobj = Py_BuildValue("s",_ptemp); | |
5741 | } else { | |
5742 | Py_INCREF(Py_None); | |
5743 | _resultobj = Py_None; | |
5744 | } | |
5745 | return _resultobj; | |
5746 | } | |
5747 | ||
5748 | #define delete_wxLogNull(_swigobj) (delete _swigobj) | |
5749 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5750 | PyObject * _resultobj; | |
5751 | wxLogNull * _arg0; | |
5752 | PyObject * _argo0 = 0; | |
5753 | char *_kwnames[] = { "self", NULL }; | |
5754 | ||
5755 | self = self; | |
5756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) | |
5757 | return NULL; | |
5758 | if (_argo0) { | |
5759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { | |
5761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
5762 | return NULL; | |
5763 | } | |
5764 | } | |
5765 | { | |
5766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5767 | delete_wxLogNull(_arg0); | |
5768 | ||
5769 | wxPyEndAllowThreads(__tstate); | |
5770 | if (PyErr_Occurred()) return NULL; | |
5771 | } Py_INCREF(Py_None); | |
5772 | _resultobj = Py_None; | |
5773 | return _resultobj; | |
5774 | } | |
5775 | ||
76bfdc78 RD |
5776 | static void *SwigwxPyLogTowxLog(void *ptr) { |
5777 | wxPyLog *src; | |
5778 | wxLog *dest; | |
5779 | src = (wxPyLog *) ptr; | |
5780 | dest = (wxLog *) src; | |
5781 | return (void *) dest; | |
5782 | } | |
5783 | ||
5784 | #define new_wxPyLog() (new wxPyLog()) | |
5785 | static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5786 | PyObject * _resultobj; | |
5787 | wxPyLog * _result; | |
5788 | char *_kwnames[] = { NULL }; | |
5789 | char _ptemp[128]; | |
5790 | ||
5791 | self = self; | |
5792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames)) | |
5793 | return NULL; | |
5794 | { | |
4268f798 | 5795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5796 | _result = (wxPyLog *)new_wxPyLog(); |
76bfdc78 | 5797 | |
4268f798 RD |
5798 | wxPyEndAllowThreads(__tstate); |
5799 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5800 | } if (_result) { |
5801 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p"); | |
5802 | _resultobj = Py_BuildValue("s",_ptemp); | |
5803 | } else { | |
5804 | Py_INCREF(Py_None); | |
5805 | _resultobj = Py_None; | |
5806 | } | |
5807 | return _resultobj; | |
5808 | } | |
5809 | ||
0122b7e3 RD |
5810 | #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
5811 | static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
76bfdc78 RD |
5812 | PyObject * _resultobj; |
5813 | wxPyLog * _arg0; | |
5814 | PyObject * _arg1; | |
5815 | PyObject * _arg2; | |
5816 | PyObject * _argo0 = 0; | |
5817 | PyObject * _obj1 = 0; | |
5818 | PyObject * _obj2 = 0; | |
5819 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5820 | ||
5821 | self = self; | |
0122b7e3 | 5822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
76bfdc78 RD |
5823 | return NULL; |
5824 | if (_argo0) { | |
5825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
0122b7e3 | 5827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p."); |
76bfdc78 RD |
5828 | return NULL; |
5829 | } | |
5830 | } | |
5831 | { | |
5832 | _arg1 = _obj1; | |
5833 | } | |
5834 | { | |
5835 | _arg2 = _obj2; | |
5836 | } | |
5837 | { | |
4268f798 | 5838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5839 | wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2); |
76bfdc78 | 5840 | |
4268f798 RD |
5841 | wxPyEndAllowThreads(__tstate); |
5842 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5843 | } Py_INCREF(Py_None); |
5844 | _resultobj = Py_None; | |
5845 | return _resultobj; | |
5846 | } | |
5847 | ||
5848 | static void wxPyLog_Destroy(wxPyLog *self) { delete self; } | |
5849 | static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5850 | PyObject * _resultobj; | |
5851 | wxPyLog * _arg0; | |
5852 | PyObject * _argo0 = 0; | |
5853 | char *_kwnames[] = { "self", NULL }; | |
5854 | ||
5855 | self = self; | |
5856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0)) | |
5857 | return NULL; | |
5858 | if (_argo0) { | |
5859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p."); | |
5862 | return NULL; | |
5863 | } | |
5864 | } | |
5865 | { | |
4268f798 | 5866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5867 | wxPyLog_Destroy(_arg0); |
76bfdc78 | 5868 | |
4268f798 RD |
5869 | wxPyEndAllowThreads(__tstate); |
5870 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5871 | } Py_INCREF(Py_None); |
5872 | _resultobj = Py_None; | |
5873 | return _resultobj; | |
5874 | } | |
5875 | ||
c368d904 RD |
5876 | static void *SwigwxProcessEventTowxEvent(void *ptr) { |
5877 | wxProcessEvent *src; | |
5878 | wxEvent *dest; | |
5879 | src = (wxProcessEvent *) ptr; | |
5880 | dest = (wxEvent *) src; | |
5881 | return (void *) dest; | |
5882 | } | |
5883 | ||
9416aa89 RD |
5884 | static void *SwigwxProcessEventTowxObject(void *ptr) { |
5885 | wxProcessEvent *src; | |
5886 | wxObject *dest; | |
5887 | src = (wxProcessEvent *) ptr; | |
5888 | dest = (wxObject *) src; | |
5889 | return (void *) dest; | |
5890 | } | |
5891 | ||
c368d904 RD |
5892 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) |
5893 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5894 | PyObject * _resultobj; | |
5895 | wxProcessEvent * _result; | |
5896 | int _arg0 = (int ) 0; | |
5897 | int _arg1 = (int ) 0; | |
5898 | int _arg2 = (int ) 0; | |
5899 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
5900 | char _ptemp[128]; | |
5901 | ||
5902 | self = self; | |
5903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
5904 | return NULL; | |
5905 | { | |
4268f798 | 5906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5907 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); |
c368d904 | 5908 | |
4268f798 RD |
5909 | wxPyEndAllowThreads(__tstate); |
5910 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5911 | } if (_result) { |
5912 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
5913 | _resultobj = Py_BuildValue("s",_ptemp); | |
5914 | } else { | |
5915 | Py_INCREF(Py_None); | |
5916 | _resultobj = Py_None; | |
5917 | } | |
5918 | return _resultobj; | |
5919 | } | |
5920 | ||
5921 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
5922 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5923 | PyObject * _resultobj; | |
5924 | int _result; | |
5925 | wxProcessEvent * _arg0; | |
5926 | PyObject * _argo0 = 0; | |
5927 | char *_kwnames[] = { "self", NULL }; | |
5928 | ||
5929 | self = self; | |
5930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
5931 | return NULL; | |
5932 | if (_argo0) { | |
5933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
5936 | return NULL; | |
5937 | } | |
5938 | } | |
5939 | { | |
4268f798 | 5940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5941 | _result = (int )wxProcessEvent_GetPid(_arg0); |
c368d904 | 5942 | |
4268f798 RD |
5943 | wxPyEndAllowThreads(__tstate); |
5944 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5945 | } _resultobj = Py_BuildValue("i",_result); |
5946 | return _resultobj; | |
5947 | } | |
5948 | ||
5949 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
5950 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5951 | PyObject * _resultobj; | |
5952 | int _result; | |
5953 | wxProcessEvent * _arg0; | |
5954 | PyObject * _argo0 = 0; | |
5955 | char *_kwnames[] = { "self", NULL }; | |
5956 | ||
5957 | self = self; | |
5958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
5959 | return NULL; | |
5960 | if (_argo0) { | |
5961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
5964 | return NULL; | |
5965 | } | |
5966 | } | |
5967 | { | |
4268f798 | 5968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5969 | _result = (int )wxProcessEvent_GetExitCode(_arg0); |
c368d904 | 5970 | |
4268f798 RD |
5971 | wxPyEndAllowThreads(__tstate); |
5972 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5973 | } _resultobj = Py_BuildValue("i",_result); |
5974 | return _resultobj; | |
5975 | } | |
5976 | ||
5977 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
5978 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5979 | PyObject * _resultobj; | |
5980 | int _result; | |
5981 | wxProcessEvent * _arg0; | |
5982 | int _arg1; | |
5983 | PyObject * _argo0 = 0; | |
5984 | char *_kwnames[] = { "self","m_pid", NULL }; | |
5985 | ||
5986 | self = self; | |
5987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
5988 | return NULL; | |
5989 | if (_argo0) { | |
5990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
5993 | return NULL; | |
5994 | } | |
5995 | } | |
5996 | { | |
4268f798 | 5997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5998 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); |
c368d904 | 5999 | |
4268f798 RD |
6000 | wxPyEndAllowThreads(__tstate); |
6001 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6002 | } _resultobj = Py_BuildValue("i",_result); |
6003 | return _resultobj; | |
6004 | } | |
6005 | ||
6006 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
6007 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6008 | PyObject * _resultobj; | |
6009 | int _result; | |
6010 | wxProcessEvent * _arg0; | |
6011 | PyObject * _argo0 = 0; | |
6012 | char *_kwnames[] = { "self", NULL }; | |
6013 | ||
6014 | self = self; | |
6015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
6016 | return NULL; | |
6017 | if (_argo0) { | |
6018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
6021 | return NULL; | |
6022 | } | |
6023 | } | |
6024 | { | |
4268f798 | 6025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6026 | _result = (int )wxProcessEvent_m_pid_get(_arg0); |
c368d904 | 6027 | |
4268f798 RD |
6028 | wxPyEndAllowThreads(__tstate); |
6029 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6030 | } _resultobj = Py_BuildValue("i",_result); |
6031 | return _resultobj; | |
6032 | } | |
6033 | ||
6034 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
6035 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6036 | PyObject * _resultobj; | |
6037 | int _result; | |
6038 | wxProcessEvent * _arg0; | |
6039 | int _arg1; | |
6040 | PyObject * _argo0 = 0; | |
6041 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
6042 | ||
6043 | self = self; | |
6044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
6045 | return NULL; | |
6046 | if (_argo0) { | |
6047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
6050 | return NULL; | |
6051 | } | |
6052 | } | |
6053 | { | |
4268f798 | 6054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6055 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); |
c368d904 | 6056 | |
4268f798 RD |
6057 | wxPyEndAllowThreads(__tstate); |
6058 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6059 | } _resultobj = Py_BuildValue("i",_result); |
6060 | return _resultobj; | |
6061 | } | |
6062 | ||
6063 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
6064 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6065 | PyObject * _resultobj; | |
6066 | int _result; | |
6067 | wxProcessEvent * _arg0; | |
6068 | PyObject * _argo0 = 0; | |
6069 | char *_kwnames[] = { "self", NULL }; | |
6070 | ||
6071 | self = self; | |
6072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
6073 | return NULL; | |
6074 | if (_argo0) { | |
6075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
6078 | return NULL; | |
6079 | } | |
6080 | } | |
6081 | { | |
4268f798 | 6082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6083 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); |
c368d904 | 6084 | |
4268f798 RD |
6085 | wxPyEndAllowThreads(__tstate); |
6086 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6087 | } _resultobj = Py_BuildValue("i",_result); |
6088 | return _resultobj; | |
6089 | } | |
6090 | ||
6091 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
6092 | wxPyProcess *src; | |
6093 | wxEvtHandler *dest; | |
6094 | src = (wxPyProcess *) ptr; | |
6095 | dest = (wxEvtHandler *) src; | |
6096 | return (void *) dest; | |
6097 | } | |
6098 | ||
9416aa89 RD |
6099 | static void *SwigwxPyProcessTowxObject(void *ptr) { |
6100 | wxPyProcess *src; | |
6101 | wxObject *dest; | |
6102 | src = (wxPyProcess *) ptr; | |
6103 | dest = (wxObject *) src; | |
6104 | return (void *) dest; | |
6105 | } | |
6106 | ||
814f509c RD |
6107 | static PyObject *_wrap_wxProcess_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { |
6108 | PyObject * _resultobj; | |
6109 | wxKillError _result; | |
6110 | int _arg0; | |
1883480f | 6111 | wxSignal _arg1 = (wxSignal ) (wxSIGTERM); |
814f509c RD |
6112 | char *_kwnames[] = { "pid","sig", NULL }; |
6113 | ||
6114 | self = self; | |
1883480f | 6115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|i:wxProcess_Kill",_kwnames,&_arg0,&_arg1)) |
814f509c | 6116 | return NULL; |
814f509c RD |
6117 | { |
6118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1883480f | 6119 | _result = (wxKillError )wxPyProcess::Kill(_arg0,_arg1); |
814f509c RD |
6120 | |
6121 | wxPyEndAllowThreads(__tstate); | |
6122 | if (PyErr_Occurred()) return NULL; | |
6123 | } _resultobj = Py_BuildValue("i",_result); | |
6124 | return _resultobj; | |
6125 | } | |
6126 | ||
6127 | static PyObject *_wrap_wxProcess_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6128 | PyObject * _resultobj; | |
6129 | bool _result; | |
6130 | int _arg0; | |
6131 | char *_kwnames[] = { "pid", NULL }; | |
6132 | ||
6133 | self = self; | |
6134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxProcess_Exists",_kwnames,&_arg0)) | |
6135 | return NULL; | |
6136 | { | |
6137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6138 | _result = (bool )wxPyProcess::Exists(_arg0); | |
6139 | ||
6140 | wxPyEndAllowThreads(__tstate); | |
6141 | if (PyErr_Occurred()) return NULL; | |
6142 | } _resultobj = Py_BuildValue("i",_result); | |
6143 | return _resultobj; | |
6144 | } | |
6145 | ||
6146 | static PyObject *_wrap_wxProcess_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6147 | PyObject * _resultobj; | |
6148 | wxPyProcess * _result; | |
6149 | wxString * _arg0; | |
6150 | PyObject * _obj0 = 0; | |
6151 | char *_kwnames[] = { "cmd", NULL }; | |
6152 | char _ptemp[128]; | |
6153 | ||
6154 | self = self; | |
6155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Open",_kwnames,&_obj0)) | |
6156 | return NULL; | |
6157 | { | |
6158 | _arg0 = wxString_in_helper(_obj0); | |
6159 | if (_arg0 == NULL) | |
6160 | return NULL; | |
6161 | } | |
6162 | { | |
6163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6164 | _result = (wxPyProcess *)wxPyProcess::Open(*_arg0); | |
6165 | ||
6166 | wxPyEndAllowThreads(__tstate); | |
6167 | if (PyErr_Occurred()) return NULL; | |
6168 | } if (_result) { | |
6169 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
6170 | _resultobj = Py_BuildValue("s",_ptemp); | |
6171 | } else { | |
6172 | Py_INCREF(Py_None); | |
6173 | _resultobj = Py_None; | |
6174 | } | |
6175 | { | |
6176 | if (_obj0) | |
6177 | delete _arg0; | |
6178 | } | |
6179 | return _resultobj; | |
6180 | } | |
6181 | ||
c368d904 RD |
6182 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) |
6183 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6184 | PyObject * _resultobj; | |
6185 | wxPyProcess * _result; | |
6186 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
6187 | int _arg1 = (int ) -1; | |
6188 | PyObject * _argo0 = 0; | |
6189 | char *_kwnames[] = { "parent","id", NULL }; | |
6190 | char _ptemp[128]; | |
6191 | ||
6192 | self = self; | |
6193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
6194 | return NULL; | |
6195 | if (_argo0) { | |
6196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
6198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
6199 | return NULL; | |
6200 | } | |
6201 | } | |
6202 | { | |
4268f798 | 6203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6204 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); |
c368d904 | 6205 | |
4268f798 RD |
6206 | wxPyEndAllowThreads(__tstate); |
6207 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6208 | } if (_result) { |
6209 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
6210 | _resultobj = Py_BuildValue("s",_ptemp); | |
6211 | } else { | |
6212 | Py_INCREF(Py_None); | |
6213 | _resultobj = Py_None; | |
6214 | } | |
6215 | return _resultobj; | |
6216 | } | |
6217 | ||
6218 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
6219 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6220 | PyObject * _resultobj; | |
6221 | wxPyProcess * _arg0; | |
6222 | PyObject * _argo0 = 0; | |
6223 | char *_kwnames[] = { "self", NULL }; | |
6224 | ||
6225 | self = self; | |
6226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
6227 | return NULL; | |
6228 | if (_argo0) { | |
6229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
6232 | return NULL; | |
6233 | } | |
6234 | } | |
6235 | { | |
4268f798 | 6236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6237 | wxPyProcess_Destroy(_arg0); |
c368d904 | 6238 | |
4268f798 RD |
6239 | wxPyEndAllowThreads(__tstate); |
6240 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6241 | } Py_INCREF(Py_None); |
6242 | _resultobj = Py_None; | |
6243 | return _resultobj; | |
6244 | } | |
6245 | ||
0122b7e3 RD |
6246 | #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6247 | static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c368d904 RD |
6248 | PyObject * _resultobj; |
6249 | wxPyProcess * _arg0; | |
6250 | PyObject * _arg1; | |
6251 | PyObject * _arg2; | |
6252 | PyObject * _argo0 = 0; | |
6253 | PyObject * _obj1 = 0; | |
6254 | PyObject * _obj2 = 0; | |
6255 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6256 | ||
6257 | self = self; | |
0122b7e3 | 6258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
c368d904 RD |
6259 | return NULL; |
6260 | if (_argo0) { | |
6261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
0122b7e3 | 6263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p."); |
c368d904 RD |
6264 | return NULL; |
6265 | } | |
6266 | } | |
6267 | { | |
6268 | _arg1 = _obj1; | |
6269 | } | |
6270 | { | |
6271 | _arg2 = _obj2; | |
6272 | } | |
6273 | { | |
4268f798 | 6274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6275 | wxProcess__setCallbackInfo(_arg0,_arg1,_arg2); |
c368d904 | 6276 | |
4268f798 RD |
6277 | wxPyEndAllowThreads(__tstate); |
6278 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6279 | } Py_INCREF(Py_None); |
6280 | _resultobj = Py_None; | |
6281 | return _resultobj; | |
6282 | } | |
6283 | ||
6284 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
6285 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6286 | PyObject * _resultobj; | |
6287 | wxPyProcess * _arg0; | |
6288 | int _arg1; | |
6289 | int _arg2; | |
6290 | PyObject * _argo0 = 0; | |
6291 | char *_kwnames[] = { "self","pid","status", NULL }; | |
6292 | ||
6293 | self = self; | |
6294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6295 | return NULL; | |
6296 | if (_argo0) { | |
6297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
6300 | return NULL; | |
6301 | } | |
6302 | } | |
6303 | { | |
4268f798 | 6304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6305 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); |
c368d904 | 6306 | |
4268f798 RD |
6307 | wxPyEndAllowThreads(__tstate); |
6308 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6309 | } Py_INCREF(Py_None); |
6310 | _resultobj = Py_None; | |
6311 | return _resultobj; | |
6312 | } | |
6313 | ||
6314 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
6315 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6316 | PyObject * _resultobj; | |
6317 | wxPyProcess * _arg0; | |
6318 | PyObject * _argo0 = 0; | |
6319 | char *_kwnames[] = { "self", NULL }; | |
6320 | ||
6321 | self = self; | |
6322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
6323 | return NULL; | |
6324 | if (_argo0) { | |
6325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
6328 | return NULL; | |
6329 | } | |
6330 | } | |
6331 | { | |
4268f798 | 6332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6333 | wxProcess_Redirect(_arg0); |
c368d904 | 6334 | |
4268f798 RD |
6335 | wxPyEndAllowThreads(__tstate); |
6336 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6337 | } Py_INCREF(Py_None); |
6338 | _resultobj = Py_None; | |
6339 | return _resultobj; | |
6340 | } | |
6341 | ||
6342 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
6343 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6344 | PyObject * _resultobj; | |
6345 | bool _result; | |
6346 | wxPyProcess * _arg0; | |
6347 | PyObject * _argo0 = 0; | |
6348 | char *_kwnames[] = { "self", NULL }; | |
6349 | ||
6350 | self = self; | |
6351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
6352 | return NULL; | |
6353 | if (_argo0) { | |
6354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
6357 | return NULL; | |
6358 | } | |
6359 | } | |
6360 | { | |
4268f798 | 6361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6362 | _result = (bool )wxProcess_IsRedirected(_arg0); |
c368d904 | 6363 | |
4268f798 RD |
6364 | wxPyEndAllowThreads(__tstate); |
6365 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6366 | } _resultobj = Py_BuildValue("i",_result); |
6367 | return _resultobj; | |
6368 | } | |
6369 | ||
6370 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
6371 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6372 | PyObject * _resultobj; | |
6373 | wxPyProcess * _arg0; | |
6374 | PyObject * _argo0 = 0; | |
6375 | char *_kwnames[] = { "self", NULL }; | |
6376 | ||
6377 | self = self; | |
6378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
6379 | return NULL; | |
6380 | if (_argo0) { | |
6381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
6384 | return NULL; | |
6385 | } | |
6386 | } | |
6387 | { | |
4268f798 | 6388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6389 | wxProcess_Detach(_arg0); |
c368d904 | 6390 | |
4268f798 RD |
6391 | wxPyEndAllowThreads(__tstate); |
6392 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6393 | } Py_INCREF(Py_None); |
6394 | _resultobj = Py_None; | |
6395 | return _resultobj; | |
6396 | } | |
6397 | ||
6398 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
6399 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6400 | PyObject * _resultobj; | |
6401 | wxInputStream * _result; | |
6402 | wxPyProcess * _arg0; | |
6403 | PyObject * _argo0 = 0; | |
6404 | char *_kwnames[] = { "self", NULL }; | |
6405 | ||
6406 | self = self; | |
6407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
6408 | return NULL; | |
6409 | if (_argo0) { | |
6410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
6413 | return NULL; | |
6414 | } | |
6415 | } | |
6416 | { | |
4268f798 | 6417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6418 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); |
c368d904 | 6419 | |
4268f798 RD |
6420 | wxPyEndAllowThreads(__tstate); |
6421 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6422 | }{ |
6423 | wxPyInputStream * _ptr = NULL; | |
6424 | ||
6425 | if (_result) { | |
6426 | _ptr = new wxPyInputStream(_result); | |
6427 | } | |
9416aa89 | 6428 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6429 | } |
6430 | return _resultobj; | |
6431 | } | |
6432 | ||
6433 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
6434 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6435 | PyObject * _resultobj; | |
6436 | wxInputStream * _result; | |
6437 | wxPyProcess * _arg0; | |
6438 | PyObject * _argo0 = 0; | |
6439 | char *_kwnames[] = { "self", NULL }; | |
6440 | ||
6441 | self = self; | |
6442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
6443 | return NULL; | |
6444 | if (_argo0) { | |
6445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
6448 | return NULL; | |
6449 | } | |
6450 | } | |
6451 | { | |
4268f798 | 6452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6453 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); |
c368d904 | 6454 | |
4268f798 RD |
6455 | wxPyEndAllowThreads(__tstate); |
6456 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6457 | }{ |
6458 | wxPyInputStream * _ptr = NULL; | |
6459 | ||
6460 | if (_result) { | |
6461 | _ptr = new wxPyInputStream(_result); | |
6462 | } | |
9416aa89 | 6463 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6464 | } |
6465 | return _resultobj; | |
6466 | } | |
6467 | ||
6468 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
6469 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6470 | PyObject * _resultobj; | |
6471 | wxOutputStream * _result; | |
6472 | wxPyProcess * _arg0; | |
6473 | PyObject * _argo0 = 0; | |
6474 | char *_kwnames[] = { "self", NULL }; | |
6475 | char _ptemp[128]; | |
6476 | ||
6477 | self = self; | |
6478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
6479 | return NULL; | |
6480 | if (_argo0) { | |
6481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
6484 | return NULL; | |
6485 | } | |
6486 | } | |
6487 | { | |
4268f798 | 6488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6489 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); |
c368d904 | 6490 | |
4268f798 RD |
6491 | wxPyEndAllowThreads(__tstate); |
6492 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6493 | } if (_result) { |
6494 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
6495 | _resultobj = Py_BuildValue("s",_ptemp); | |
6496 | } else { | |
6497 | Py_INCREF(Py_None); | |
6498 | _resultobj = Py_None; | |
6499 | } | |
6500 | return _resultobj; | |
6501 | } | |
6502 | ||
6503 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
6504 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6505 | PyObject * _resultobj; | |
6506 | wxPyProcess * _arg0; | |
6507 | PyObject * _argo0 = 0; | |
6508 | char *_kwnames[] = { "self", NULL }; | |
6509 | ||
6510 | self = self; | |
6511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
6512 | return NULL; | |
6513 | if (_argo0) { | |
6514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
6517 | return NULL; | |
6518 | } | |
6519 | } | |
6520 | { | |
4268f798 | 6521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6522 | wxProcess_CloseOutput(_arg0); |
c368d904 | 6523 | |
4268f798 RD |
6524 | wxPyEndAllowThreads(__tstate); |
6525 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6526 | } Py_INCREF(Py_None); |
6527 | _resultobj = Py_None; | |
6528 | return _resultobj; | |
6529 | } | |
6530 | ||
9416aa89 RD |
6531 | static void *SwigwxJoystickTowxObject(void *ptr) { |
6532 | wxJoystick *src; | |
6533 | wxObject *dest; | |
6534 | src = (wxJoystick *) ptr; | |
6535 | dest = (wxObject *) src; | |
6536 | return (void *) dest; | |
6537 | } | |
6538 | ||
185d7c3e RD |
6539 | #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0)) |
6540 | static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6541 | PyObject * _resultobj; | |
6542 | wxJoystick * _result; | |
3eb221f6 | 6543 | int _arg0 = (int ) (wxJOYSTICK1); |
185d7c3e RD |
6544 | char *_kwnames[] = { "joystick", NULL }; |
6545 | char _ptemp[128]; | |
6546 | ||
6547 | self = self; | |
6548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0)) | |
6549 | return NULL; | |
6550 | { | |
4268f798 | 6551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6552 | _result = (wxJoystick *)new_wxJoystick(_arg0); |
185d7c3e | 6553 | |
4268f798 RD |
6554 | wxPyEndAllowThreads(__tstate); |
6555 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6556 | } if (_result) { |
6557 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p"); | |
6558 | _resultobj = Py_BuildValue("s",_ptemp); | |
6559 | } else { | |
6560 | Py_INCREF(Py_None); | |
6561 | _resultobj = Py_None; | |
6562 | } | |
6563 | return _resultobj; | |
6564 | } | |
6565 | ||
ac346f50 RD |
6566 | #define delete_wxJoystick(_swigobj) (delete _swigobj) |
6567 | static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6568 | PyObject * _resultobj; | |
6569 | wxJoystick * _arg0; | |
6570 | PyObject * _argo0 = 0; | |
6571 | char *_kwnames[] = { "self", NULL }; | |
6572 | ||
6573 | self = self; | |
6574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0)) | |
6575 | return NULL; | |
6576 | if (_argo0) { | |
6577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p."); | |
6580 | return NULL; | |
6581 | } | |
6582 | } | |
6583 | { | |
4268f798 | 6584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6585 | delete_wxJoystick(_arg0); |
ac346f50 | 6586 | |
4268f798 RD |
6587 | wxPyEndAllowThreads(__tstate); |
6588 | if (PyErr_Occurred()) return NULL; | |
ac346f50 RD |
6589 | } Py_INCREF(Py_None); |
6590 | _resultobj = Py_None; | |
6591 | return _resultobj; | |
6592 | } | |
6593 | ||
185d7c3e RD |
6594 | #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition()) |
6595 | static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6596 | PyObject * _resultobj; | |
6597 | wxPoint * _result; | |
6598 | wxJoystick * _arg0; | |
6599 | PyObject * _argo0 = 0; | |
6600 | char *_kwnames[] = { "self", NULL }; | |
6601 | char _ptemp[128]; | |
6602 | ||
6603 | self = self; | |
6604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0)) | |
6605 | return NULL; | |
6606 | if (_argo0) { | |
6607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p."); | |
6610 | return NULL; | |
6611 | } | |
6612 | } | |
6613 | { | |
4268f798 | 6614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6615 | _result = new wxPoint (wxJoystick_GetPosition(_arg0)); |
185d7c3e | 6616 | |
4268f798 RD |
6617 | wxPyEndAllowThreads(__tstate); |
6618 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6619 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
6620 | _resultobj = Py_BuildValue("s",_ptemp); | |
6621 | return _resultobj; | |
6622 | } | |
6623 | ||
6624 | #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition()) | |
6625 | static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6626 | PyObject * _resultobj; | |
6627 | int _result; | |
6628 | wxJoystick * _arg0; | |
6629 | PyObject * _argo0 = 0; | |
6630 | char *_kwnames[] = { "self", NULL }; | |
6631 | ||
6632 | self = self; | |
6633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0)) | |
6634 | return NULL; | |
6635 | if (_argo0) { | |
6636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p."); | |
6639 | return NULL; | |
6640 | } | |
6641 | } | |
6642 | { | |
4268f798 | 6643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6644 | _result = (int )wxJoystick_GetZPosition(_arg0); |
185d7c3e | 6645 | |
4268f798 RD |
6646 | wxPyEndAllowThreads(__tstate); |
6647 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6648 | } _resultobj = Py_BuildValue("i",_result); |
6649 | return _resultobj; | |
6650 | } | |
6651 | ||
6652 | #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState()) | |
6653 | static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6654 | PyObject * _resultobj; | |
6655 | int _result; | |
6656 | wxJoystick * _arg0; | |
6657 | PyObject * _argo0 = 0; | |
6658 | char *_kwnames[] = { "self", NULL }; | |
6659 | ||
6660 | self = self; | |
6661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0)) | |
6662 | return NULL; | |
6663 | if (_argo0) { | |
6664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p."); | |
6667 | return NULL; | |
6668 | } | |
6669 | } | |
6670 | { | |
4268f798 | 6671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6672 | _result = (int )wxJoystick_GetButtonState(_arg0); |
185d7c3e | 6673 | |
4268f798 RD |
6674 | wxPyEndAllowThreads(__tstate); |
6675 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6676 | } _resultobj = Py_BuildValue("i",_result); |
6677 | return _resultobj; | |
6678 | } | |
6679 | ||
6680 | #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition()) | |
6681 | static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6682 | PyObject * _resultobj; | |
6683 | int _result; | |
6684 | wxJoystick * _arg0; | |
6685 | PyObject * _argo0 = 0; | |
6686 | char *_kwnames[] = { "self", NULL }; | |
6687 | ||
6688 | self = self; | |
6689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0)) | |
6690 | return NULL; | |
6691 | if (_argo0) { | |
6692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p."); | |
6695 | return NULL; | |
6696 | } | |
6697 | } | |
6698 | { | |
4268f798 | 6699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6700 | _result = (int )wxJoystick_GetPOVPosition(_arg0); |
185d7c3e | 6701 | |
4268f798 RD |
6702 | wxPyEndAllowThreads(__tstate); |
6703 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6704 | } _resultobj = Py_BuildValue("i",_result); |
6705 | return _resultobj; | |
6706 | } | |
6707 | ||
6708 | #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition()) | |
6709 | static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6710 | PyObject * _resultobj; | |
6711 | int _result; | |
6712 | wxJoystick * _arg0; | |
6713 | PyObject * _argo0 = 0; | |
6714 | char *_kwnames[] = { "self", NULL }; | |
6715 | ||
6716 | self = self; | |
6717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0)) | |
6718 | return NULL; | |
6719 | if (_argo0) { | |
6720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p."); | |
6723 | return NULL; | |
6724 | } | |
6725 | } | |
6726 | { | |
4268f798 | 6727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6728 | _result = (int )wxJoystick_GetPOVCTSPosition(_arg0); |
185d7c3e | 6729 | |
4268f798 RD |
6730 | wxPyEndAllowThreads(__tstate); |
6731 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6732 | } _resultobj = Py_BuildValue("i",_result); |
6733 | return _resultobj; | |
6734 | } | |
6735 | ||
6736 | #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition()) | |
6737 | static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6738 | PyObject * _resultobj; | |
6739 | int _result; | |
6740 | wxJoystick * _arg0; | |
6741 | PyObject * _argo0 = 0; | |
6742 | char *_kwnames[] = { "self", NULL }; | |
6743 | ||
6744 | self = self; | |
6745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0)) | |
6746 | return NULL; | |
6747 | if (_argo0) { | |
6748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p."); | |
6751 | return NULL; | |
6752 | } | |
6753 | } | |
6754 | { | |
4268f798 | 6755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6756 | _result = (int )wxJoystick_GetRudderPosition(_arg0); |
185d7c3e | 6757 | |
4268f798 RD |
6758 | wxPyEndAllowThreads(__tstate); |
6759 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6760 | } _resultobj = Py_BuildValue("i",_result); |
6761 | return _resultobj; | |
6762 | } | |
6763 | ||
6764 | #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition()) | |
6765 | static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6766 | PyObject * _resultobj; | |
6767 | int _result; | |
6768 | wxJoystick * _arg0; | |
6769 | PyObject * _argo0 = 0; | |
6770 | char *_kwnames[] = { "self", NULL }; | |
6771 | ||
6772 | self = self; | |
6773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0)) | |
6774 | return NULL; | |
6775 | if (_argo0) { | |
6776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p."); | |
6779 | return NULL; | |
6780 | } | |
6781 | } | |
6782 | { | |
4268f798 | 6783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6784 | _result = (int )wxJoystick_GetUPosition(_arg0); |
185d7c3e | 6785 | |
4268f798 RD |
6786 | wxPyEndAllowThreads(__tstate); |
6787 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6788 | } _resultobj = Py_BuildValue("i",_result); |
6789 | return _resultobj; | |
6790 | } | |
6791 | ||
6792 | #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition()) | |
6793 | static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6794 | PyObject * _resultobj; | |
6795 | int _result; | |
6796 | wxJoystick * _arg0; | |
6797 | PyObject * _argo0 = 0; | |
6798 | char *_kwnames[] = { "self", NULL }; | |
6799 | ||
6800 | self = self; | |
6801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0)) | |
6802 | return NULL; | |
6803 | if (_argo0) { | |
6804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p."); | |
6807 | return NULL; | |
6808 | } | |
6809 | } | |
6810 | { | |
4268f798 | 6811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6812 | _result = (int )wxJoystick_GetVPosition(_arg0); |
185d7c3e | 6813 | |
4268f798 RD |
6814 | wxPyEndAllowThreads(__tstate); |
6815 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6816 | } _resultobj = Py_BuildValue("i",_result); |
6817 | return _resultobj; | |
6818 | } | |
6819 | ||
6820 | #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold()) | |
6821 | static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6822 | PyObject * _resultobj; | |
6823 | int _result; | |
6824 | wxJoystick * _arg0; | |
6825 | PyObject * _argo0 = 0; | |
6826 | char *_kwnames[] = { "self", NULL }; | |
6827 | ||
6828 | self = self; | |
6829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0)) | |
6830 | return NULL; | |
6831 | if (_argo0) { | |
6832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p."); | |
6835 | return NULL; | |
6836 | } | |
6837 | } | |
6838 | { | |
4268f798 | 6839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6840 | _result = (int )wxJoystick_GetMovementThreshold(_arg0); |
185d7c3e | 6841 | |
4268f798 RD |
6842 | wxPyEndAllowThreads(__tstate); |
6843 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6844 | } _resultobj = Py_BuildValue("i",_result); |
6845 | return _resultobj; | |
6846 | } | |
6847 | ||
6848 | #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0)) | |
6849 | static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6850 | PyObject * _resultobj; | |
6851 | wxJoystick * _arg0; | |
6852 | int _arg1; | |
6853 | PyObject * _argo0 = 0; | |
6854 | char *_kwnames[] = { "self","threshold", NULL }; | |
6855 | ||
6856 | self = self; | |
6857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1)) | |
6858 | return NULL; | |
6859 | if (_argo0) { | |
6860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p."); | |
6863 | return NULL; | |
6864 | } | |
6865 | } | |
6866 | { | |
4268f798 | 6867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6868 | wxJoystick_SetMovementThreshold(_arg0,_arg1); |
185d7c3e | 6869 | |
4268f798 RD |
6870 | wxPyEndAllowThreads(__tstate); |
6871 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6872 | } Py_INCREF(Py_None); |
6873 | _resultobj = Py_None; | |
6874 | return _resultobj; | |
6875 | } | |
6876 | ||
6877 | #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk()) | |
6878 | static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6879 | PyObject * _resultobj; | |
6880 | bool _result; | |
6881 | wxJoystick * _arg0; | |
6882 | PyObject * _argo0 = 0; | |
6883 | char *_kwnames[] = { "self", NULL }; | |
6884 | ||
6885 | self = self; | |
6886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0)) | |
6887 | return NULL; | |
6888 | if (_argo0) { | |
6889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p."); | |
6892 | return NULL; | |
6893 | } | |
6894 | } | |
6895 | { | |
4268f798 | 6896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6897 | _result = (bool )wxJoystick_IsOk(_arg0); |
185d7c3e | 6898 | |
4268f798 RD |
6899 | wxPyEndAllowThreads(__tstate); |
6900 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6901 | } _resultobj = Py_BuildValue("i",_result); |
6902 | return _resultobj; | |
6903 | } | |
6904 | ||
6905 | #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks()) | |
6906 | static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6907 | PyObject * _resultobj; | |
6908 | int _result; | |
6909 | wxJoystick * _arg0; | |
6910 | PyObject * _argo0 = 0; | |
6911 | char *_kwnames[] = { "self", NULL }; | |
6912 | ||
6913 | self = self; | |
6914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0)) | |
6915 | return NULL; | |
6916 | if (_argo0) { | |
6917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p."); | |
6920 | return NULL; | |
6921 | } | |
6922 | } | |
6923 | { | |
4268f798 | 6924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6925 | _result = (int )wxJoystick_GetNumberJoysticks(_arg0); |
185d7c3e | 6926 | |
4268f798 RD |
6927 | wxPyEndAllowThreads(__tstate); |
6928 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6929 | } _resultobj = Py_BuildValue("i",_result); |
6930 | return _resultobj; | |
6931 | } | |
6932 | ||
6933 | #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId()) | |
6934 | static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6935 | PyObject * _resultobj; | |
6936 | int _result; | |
6937 | wxJoystick * _arg0; | |
6938 | PyObject * _argo0 = 0; | |
6939 | char *_kwnames[] = { "self", NULL }; | |
6940 | ||
6941 | self = self; | |
6942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0)) | |
6943 | return NULL; | |
6944 | if (_argo0) { | |
6945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p."); | |
6948 | return NULL; | |
6949 | } | |
6950 | } | |
6951 | { | |
4268f798 | 6952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6953 | _result = (int )wxJoystick_GetManufacturerId(_arg0); |
185d7c3e | 6954 | |
4268f798 RD |
6955 | wxPyEndAllowThreads(__tstate); |
6956 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6957 | } _resultobj = Py_BuildValue("i",_result); |
6958 | return _resultobj; | |
6959 | } | |
6960 | ||
6961 | #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId()) | |
6962 | static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6963 | PyObject * _resultobj; | |
6964 | int _result; | |
6965 | wxJoystick * _arg0; | |
6966 | PyObject * _argo0 = 0; | |
6967 | char *_kwnames[] = { "self", NULL }; | |
6968 | ||
6969 | self = self; | |
6970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0)) | |
6971 | return NULL; | |
6972 | if (_argo0) { | |
6973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p."); | |
6976 | return NULL; | |
6977 | } | |
6978 | } | |
6979 | { | |
4268f798 | 6980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6981 | _result = (int )wxJoystick_GetProductId(_arg0); |
185d7c3e | 6982 | |
4268f798 RD |
6983 | wxPyEndAllowThreads(__tstate); |
6984 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6985 | } _resultobj = Py_BuildValue("i",_result); |
6986 | return _resultobj; | |
6987 | } | |
6988 | ||
6989 | #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName()) | |
6990 | static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6991 | PyObject * _resultobj; | |
6992 | wxString * _result; | |
6993 | wxJoystick * _arg0; | |
6994 | PyObject * _argo0 = 0; | |
6995 | char *_kwnames[] = { "self", NULL }; | |
6996 | ||
6997 | self = self; | |
6998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0)) | |
6999 | return NULL; | |
7000 | if (_argo0) { | |
7001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p."); | |
7004 | return NULL; | |
7005 | } | |
7006 | } | |
7007 | { | |
4268f798 | 7008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7009 | _result = new wxString (wxJoystick_GetProductName(_arg0)); |
185d7c3e | 7010 | |
4268f798 RD |
7011 | wxPyEndAllowThreads(__tstate); |
7012 | if (PyErr_Occurred()) return NULL; | |
185d7c3e | 7013 | }{ |
c8bc7bb8 RD |
7014 | #if wxUSE_UNICODE |
7015 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7016 | #else | |
185d7c3e | 7017 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7018 | #endif |
185d7c3e RD |
7019 | } |
7020 | { | |
7021 | delete _result; | |
7022 | } | |
7023 | return _resultobj; | |
7024 | } | |
7025 | ||
7026 | #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin()) | |
7027 | static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7028 | PyObject * _resultobj; | |
7029 | int _result; | |
7030 | wxJoystick * _arg0; | |
7031 | PyObject * _argo0 = 0; | |
7032 | char *_kwnames[] = { "self", NULL }; | |
7033 | ||
7034 | self = self; | |
7035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0)) | |
7036 | return NULL; | |
7037 | if (_argo0) { | |
7038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p."); | |
7041 | return NULL; | |
7042 | } | |
7043 | } | |
7044 | { | |
4268f798 | 7045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7046 | _result = (int )wxJoystick_GetXMin(_arg0); |
185d7c3e | 7047 | |
4268f798 RD |
7048 | wxPyEndAllowThreads(__tstate); |
7049 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7050 | } _resultobj = Py_BuildValue("i",_result); |
7051 | return _resultobj; | |
7052 | } | |
7053 | ||
7054 | #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin()) | |
7055 | static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7056 | PyObject * _resultobj; | |
7057 | int _result; | |
7058 | wxJoystick * _arg0; | |
7059 | PyObject * _argo0 = 0; | |
7060 | char *_kwnames[] = { "self", NULL }; | |
7061 | ||
7062 | self = self; | |
7063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0)) | |
7064 | return NULL; | |
7065 | if (_argo0) { | |
7066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p."); | |
7069 | return NULL; | |
7070 | } | |
7071 | } | |
7072 | { | |
4268f798 | 7073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7074 | _result = (int )wxJoystick_GetYMin(_arg0); |
185d7c3e | 7075 | |
4268f798 RD |
7076 | wxPyEndAllowThreads(__tstate); |
7077 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7078 | } _resultobj = Py_BuildValue("i",_result); |
7079 | return _resultobj; | |
7080 | } | |
7081 | ||
7082 | #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin()) | |
7083 | static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7084 | PyObject * _resultobj; | |
7085 | int _result; | |
7086 | wxJoystick * _arg0; | |
7087 | PyObject * _argo0 = 0; | |
7088 | char *_kwnames[] = { "self", NULL }; | |
7089 | ||
7090 | self = self; | |
7091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0)) | |
7092 | return NULL; | |
7093 | if (_argo0) { | |
7094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p."); | |
7097 | return NULL; | |
7098 | } | |
7099 | } | |
7100 | { | |
4268f798 | 7101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7102 | _result = (int )wxJoystick_GetZMin(_arg0); |
185d7c3e | 7103 | |
4268f798 RD |
7104 | wxPyEndAllowThreads(__tstate); |
7105 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7106 | } _resultobj = Py_BuildValue("i",_result); |
7107 | return _resultobj; | |
7108 | } | |
7109 | ||
7110 | #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax()) | |
7111 | static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7112 | PyObject * _resultobj; | |
7113 | int _result; | |
7114 | wxJoystick * _arg0; | |
7115 | PyObject * _argo0 = 0; | |
7116 | char *_kwnames[] = { "self", NULL }; | |
7117 | ||
7118 | self = self; | |
7119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0)) | |
7120 | return NULL; | |
7121 | if (_argo0) { | |
7122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p."); | |
7125 | return NULL; | |
7126 | } | |
7127 | } | |
7128 | { | |
4268f798 | 7129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7130 | _result = (int )wxJoystick_GetXMax(_arg0); |
185d7c3e | 7131 | |
4268f798 RD |
7132 | wxPyEndAllowThreads(__tstate); |
7133 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7134 | } _resultobj = Py_BuildValue("i",_result); |
7135 | return _resultobj; | |
7136 | } | |
7137 | ||
7138 | #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax()) | |
7139 | static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7140 | PyObject * _resultobj; | |
7141 | int _result; | |
7142 | wxJoystick * _arg0; | |
7143 | PyObject * _argo0 = 0; | |
7144 | char *_kwnames[] = { "self", NULL }; | |
7145 | ||
7146 | self = self; | |
7147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0)) | |
7148 | return NULL; | |
7149 | if (_argo0) { | |
7150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p."); | |
7153 | return NULL; | |
7154 | } | |
7155 | } | |
7156 | { | |
4268f798 | 7157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7158 | _result = (int )wxJoystick_GetYMax(_arg0); |
185d7c3e | 7159 | |
4268f798 RD |
7160 | wxPyEndAllowThreads(__tstate); |
7161 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7162 | } _resultobj = Py_BuildValue("i",_result); |
7163 | return _resultobj; | |
7164 | } | |
7165 | ||
7166 | #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax()) | |
7167 | static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7168 | PyObject * _resultobj; | |
7169 | int _result; | |
7170 | wxJoystick * _arg0; | |
7171 | PyObject * _argo0 = 0; | |
7172 | char *_kwnames[] = { "self", NULL }; | |
7173 | ||
7174 | self = self; | |
7175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0)) | |
7176 | return NULL; | |
7177 | if (_argo0) { | |
7178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p."); | |
7181 | return NULL; | |
7182 | } | |
7183 | } | |
7184 | { | |
4268f798 | 7185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7186 | _result = (int )wxJoystick_GetZMax(_arg0); |
185d7c3e | 7187 | |
4268f798 RD |
7188 | wxPyEndAllowThreads(__tstate); |
7189 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7190 | } _resultobj = Py_BuildValue("i",_result); |
7191 | return _resultobj; | |
7192 | } | |
7193 | ||
7194 | #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons()) | |
7195 | static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7196 | PyObject * _resultobj; | |
7197 | int _result; | |
7198 | wxJoystick * _arg0; | |
7199 | PyObject * _argo0 = 0; | |
7200 | char *_kwnames[] = { "self", NULL }; | |
7201 | ||
7202 | self = self; | |
7203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0)) | |
7204 | return NULL; | |
7205 | if (_argo0) { | |
7206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p."); | |
7209 | return NULL; | |
7210 | } | |
7211 | } | |
7212 | { | |
4268f798 | 7213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7214 | _result = (int )wxJoystick_GetNumberButtons(_arg0); |
185d7c3e | 7215 | |
4268f798 RD |
7216 | wxPyEndAllowThreads(__tstate); |
7217 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7218 | } _resultobj = Py_BuildValue("i",_result); |
7219 | return _resultobj; | |
7220 | } | |
7221 | ||
7222 | #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes()) | |
7223 | static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7224 | PyObject * _resultobj; | |
7225 | int _result; | |
7226 | wxJoystick * _arg0; | |
7227 | PyObject * _argo0 = 0; | |
7228 | char *_kwnames[] = { "self", NULL }; | |
7229 | ||
7230 | self = self; | |
7231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0)) | |
7232 | return NULL; | |
7233 | if (_argo0) { | |
7234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p."); | |
7237 | return NULL; | |
7238 | } | |
7239 | } | |
7240 | { | |
4268f798 | 7241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7242 | _result = (int )wxJoystick_GetNumberAxes(_arg0); |
185d7c3e | 7243 | |
4268f798 RD |
7244 | wxPyEndAllowThreads(__tstate); |
7245 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7246 | } _resultobj = Py_BuildValue("i",_result); |
7247 | return _resultobj; | |
7248 | } | |
7249 | ||
7250 | #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons()) | |
7251 | static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7252 | PyObject * _resultobj; | |
7253 | int _result; | |
7254 | wxJoystick * _arg0; | |
7255 | PyObject * _argo0 = 0; | |
7256 | char *_kwnames[] = { "self", NULL }; | |
7257 | ||
7258 | self = self; | |
7259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0)) | |
7260 | return NULL; | |
7261 | if (_argo0) { | |
7262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p."); | |
7265 | return NULL; | |
7266 | } | |
7267 | } | |
7268 | { | |
4268f798 | 7269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7270 | _result = (int )wxJoystick_GetMaxButtons(_arg0); |
185d7c3e | 7271 | |
4268f798 RD |
7272 | wxPyEndAllowThreads(__tstate); |
7273 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7274 | } _resultobj = Py_BuildValue("i",_result); |
7275 | return _resultobj; | |
7276 | } | |
7277 | ||
7278 | #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes()) | |
7279 | static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7280 | PyObject * _resultobj; | |
7281 | int _result; | |
7282 | wxJoystick * _arg0; | |
7283 | PyObject * _argo0 = 0; | |
7284 | char *_kwnames[] = { "self", NULL }; | |
7285 | ||
7286 | self = self; | |
7287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0)) | |
7288 | return NULL; | |
7289 | if (_argo0) { | |
7290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p."); | |
7293 | return NULL; | |
7294 | } | |
7295 | } | |
7296 | { | |
4268f798 | 7297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7298 | _result = (int )wxJoystick_GetMaxAxes(_arg0); |
185d7c3e | 7299 | |
4268f798 RD |
7300 | wxPyEndAllowThreads(__tstate); |
7301 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7302 | } _resultobj = Py_BuildValue("i",_result); |
7303 | return _resultobj; | |
7304 | } | |
7305 | ||
7306 | #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin()) | |
7307 | static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7308 | PyObject * _resultobj; | |
7309 | int _result; | |
7310 | wxJoystick * _arg0; | |
7311 | PyObject * _argo0 = 0; | |
7312 | char *_kwnames[] = { "self", NULL }; | |
7313 | ||
7314 | self = self; | |
7315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0)) | |
7316 | return NULL; | |
7317 | if (_argo0) { | |
7318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p."); | |
7321 | return NULL; | |
7322 | } | |
7323 | } | |
7324 | { | |
4268f798 | 7325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7326 | _result = (int )wxJoystick_GetPollingMin(_arg0); |
185d7c3e | 7327 | |
4268f798 RD |
7328 | wxPyEndAllowThreads(__tstate); |
7329 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7330 | } _resultobj = Py_BuildValue("i",_result); |
7331 | return _resultobj; | |
7332 | } | |
7333 | ||
7334 | #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax()) | |
7335 | static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7336 | PyObject * _resultobj; | |
7337 | int _result; | |
7338 | wxJoystick * _arg0; | |
7339 | PyObject * _argo0 = 0; | |
7340 | char *_kwnames[] = { "self", NULL }; | |
7341 | ||
7342 | self = self; | |
7343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0)) | |
7344 | return NULL; | |
7345 | if (_argo0) { | |
7346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p."); | |
7349 | return NULL; | |
7350 | } | |
7351 | } | |
7352 | { | |
4268f798 | 7353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7354 | _result = (int )wxJoystick_GetPollingMax(_arg0); |
185d7c3e | 7355 | |
4268f798 RD |
7356 | wxPyEndAllowThreads(__tstate); |
7357 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7358 | } _resultobj = Py_BuildValue("i",_result); |
7359 | return _resultobj; | |
7360 | } | |
7361 | ||
7362 | #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin()) | |
7363 | static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7364 | PyObject * _resultobj; | |
7365 | int _result; | |
7366 | wxJoystick * _arg0; | |
7367 | PyObject * _argo0 = 0; | |
7368 | char *_kwnames[] = { "self", NULL }; | |
7369 | ||
7370 | self = self; | |
7371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0)) | |
7372 | return NULL; | |
7373 | if (_argo0) { | |
7374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p."); | |
7377 | return NULL; | |
7378 | } | |
7379 | } | |
7380 | { | |
4268f798 | 7381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7382 | _result = (int )wxJoystick_GetRudderMin(_arg0); |
185d7c3e | 7383 | |
4268f798 RD |
7384 | wxPyEndAllowThreads(__tstate); |
7385 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7386 | } _resultobj = Py_BuildValue("i",_result); |
7387 | return _resultobj; | |
7388 | } | |
7389 | ||
7390 | #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax()) | |
7391 | static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7392 | PyObject * _resultobj; | |
7393 | int _result; | |
7394 | wxJoystick * _arg0; | |
7395 | PyObject * _argo0 = 0; | |
7396 | char *_kwnames[] = { "self", NULL }; | |
7397 | ||
7398 | self = self; | |
7399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0)) | |
7400 | return NULL; | |
7401 | if (_argo0) { | |
7402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p."); | |
7405 | return NULL; | |
7406 | } | |
7407 | } | |
7408 | { | |
4268f798 | 7409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7410 | _result = (int )wxJoystick_GetRudderMax(_arg0); |
185d7c3e | 7411 | |
4268f798 RD |
7412 | wxPyEndAllowThreads(__tstate); |
7413 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7414 | } _resultobj = Py_BuildValue("i",_result); |
7415 | return _resultobj; | |
7416 | } | |
7417 | ||
7418 | #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin()) | |
7419 | static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7420 | PyObject * _resultobj; | |
7421 | int _result; | |
7422 | wxJoystick * _arg0; | |
7423 | PyObject * _argo0 = 0; | |
7424 | char *_kwnames[] = { "self", NULL }; | |
7425 | ||
7426 | self = self; | |
7427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0)) | |
7428 | return NULL; | |
7429 | if (_argo0) { | |
7430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p."); | |
7433 | return NULL; | |
7434 | } | |
7435 | } | |
7436 | { | |
4268f798 | 7437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7438 | _result = (int )wxJoystick_GetUMin(_arg0); |
185d7c3e | 7439 | |
4268f798 RD |
7440 | wxPyEndAllowThreads(__tstate); |
7441 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7442 | } _resultobj = Py_BuildValue("i",_result); |
7443 | return _resultobj; | |
7444 | } | |
7445 | ||
7446 | #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax()) | |
7447 | static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7448 | PyObject * _resultobj; | |
7449 | int _result; | |
7450 | wxJoystick * _arg0; | |
7451 | PyObject * _argo0 = 0; | |
7452 | char *_kwnames[] = { "self", NULL }; | |
7453 | ||
7454 | self = self; | |
7455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0)) | |
7456 | return NULL; | |
7457 | if (_argo0) { | |
7458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p."); | |
7461 | return NULL; | |
7462 | } | |
7463 | } | |
7464 | { | |
4268f798 | 7465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7466 | _result = (int )wxJoystick_GetUMax(_arg0); |
185d7c3e | 7467 | |
4268f798 RD |
7468 | wxPyEndAllowThreads(__tstate); |
7469 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7470 | } _resultobj = Py_BuildValue("i",_result); |
7471 | return _resultobj; | |
7472 | } | |
7473 | ||
7474 | #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin()) | |
7475 | static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7476 | PyObject * _resultobj; | |
7477 | int _result; | |
7478 | wxJoystick * _arg0; | |
7479 | PyObject * _argo0 = 0; | |
7480 | char *_kwnames[] = { "self", NULL }; | |
7481 | ||
7482 | self = self; | |
7483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0)) | |
7484 | return NULL; | |
7485 | if (_argo0) { | |
7486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p."); | |
7489 | return NULL; | |
7490 | } | |
7491 | } | |
7492 | { | |
4268f798 | 7493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7494 | _result = (int )wxJoystick_GetVMin(_arg0); |
185d7c3e | 7495 | |
4268f798 RD |
7496 | wxPyEndAllowThreads(__tstate); |
7497 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7498 | } _resultobj = Py_BuildValue("i",_result); |
7499 | return _resultobj; | |
7500 | } | |
7501 | ||
7502 | #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax()) | |
7503 | static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7504 | PyObject * _resultobj; | |
7505 | int _result; | |
7506 | wxJoystick * _arg0; | |
7507 | PyObject * _argo0 = 0; | |
7508 | char *_kwnames[] = { "self", NULL }; | |
7509 | ||
7510 | self = self; | |
7511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0)) | |
7512 | return NULL; | |
7513 | if (_argo0) { | |
7514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p."); | |
7517 | return NULL; | |
7518 | } | |
7519 | } | |
7520 | { | |
4268f798 | 7521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7522 | _result = (int )wxJoystick_GetVMax(_arg0); |
185d7c3e | 7523 | |
4268f798 RD |
7524 | wxPyEndAllowThreads(__tstate); |
7525 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7526 | } _resultobj = Py_BuildValue("i",_result); |
7527 | return _resultobj; | |
7528 | } | |
7529 | ||
7530 | #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder()) | |
7531 | static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7532 | PyObject * _resultobj; | |
7533 | bool _result; | |
7534 | wxJoystick * _arg0; | |
7535 | PyObject * _argo0 = 0; | |
7536 | char *_kwnames[] = { "self", NULL }; | |
7537 | ||
7538 | self = self; | |
7539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0)) | |
7540 | return NULL; | |
7541 | if (_argo0) { | |
7542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p."); | |
7545 | return NULL; | |
7546 | } | |
7547 | } | |
7548 | { | |
4268f798 | 7549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7550 | _result = (bool )wxJoystick_HasRudder(_arg0); |
185d7c3e | 7551 | |
4268f798 RD |
7552 | wxPyEndAllowThreads(__tstate); |
7553 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7554 | } _resultobj = Py_BuildValue("i",_result); |
7555 | return _resultobj; | |
7556 | } | |
7557 | ||
7558 | #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ()) | |
7559 | static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7560 | PyObject * _resultobj; | |
7561 | bool _result; | |
7562 | wxJoystick * _arg0; | |
7563 | PyObject * _argo0 = 0; | |
7564 | char *_kwnames[] = { "self", NULL }; | |
7565 | ||
7566 | self = self; | |
7567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0)) | |
7568 | return NULL; | |
7569 | if (_argo0) { | |
7570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p."); | |
7573 | return NULL; | |
7574 | } | |
7575 | } | |
7576 | { | |
4268f798 | 7577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7578 | _result = (bool )wxJoystick_HasZ(_arg0); |
185d7c3e | 7579 | |
4268f798 RD |
7580 | wxPyEndAllowThreads(__tstate); |
7581 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7582 | } _resultobj = Py_BuildValue("i",_result); |
7583 | return _resultobj; | |
7584 | } | |
7585 | ||
7586 | #define wxJoystick_HasU(_swigobj) (_swigobj->HasU()) | |
7587 | static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7588 | PyObject * _resultobj; | |
7589 | bool _result; | |
7590 | wxJoystick * _arg0; | |
7591 | PyObject * _argo0 = 0; | |
7592 | char *_kwnames[] = { "self", NULL }; | |
7593 | ||
7594 | self = self; | |
7595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0)) | |
7596 | return NULL; | |
7597 | if (_argo0) { | |
7598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p."); | |
7601 | return NULL; | |
7602 | } | |
7603 | } | |
7604 | { | |
4268f798 | 7605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7606 | _result = (bool )wxJoystick_HasU(_arg0); |
185d7c3e | 7607 | |
4268f798 RD |
7608 | wxPyEndAllowThreads(__tstate); |
7609 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7610 | } _resultobj = Py_BuildValue("i",_result); |
7611 | return _resultobj; | |
7612 | } | |
7613 | ||
7614 | #define wxJoystick_HasV(_swigobj) (_swigobj->HasV()) | |
7615 | static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7616 | PyObject * _resultobj; | |
7617 | bool _result; | |
7618 | wxJoystick * _arg0; | |
7619 | PyObject * _argo0 = 0; | |
7620 | char *_kwnames[] = { "self", NULL }; | |
7621 | ||
7622 | self = self; | |
7623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0)) | |
7624 | return NULL; | |
7625 | if (_argo0) { | |
7626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p."); | |
7629 | return NULL; | |
7630 | } | |
7631 | } | |
7632 | { | |
4268f798 | 7633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7634 | _result = (bool )wxJoystick_HasV(_arg0); |
185d7c3e | 7635 | |
4268f798 RD |
7636 | wxPyEndAllowThreads(__tstate); |
7637 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7638 | } _resultobj = Py_BuildValue("i",_result); |
7639 | return _resultobj; | |
7640 | } | |
7641 | ||
7642 | #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV()) | |
7643 | static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7644 | PyObject * _resultobj; | |
7645 | bool _result; | |
7646 | wxJoystick * _arg0; | |
7647 | PyObject * _argo0 = 0; | |
7648 | char *_kwnames[] = { "self", NULL }; | |
7649 | ||
7650 | self = self; | |
7651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0)) | |
7652 | return NULL; | |
7653 | if (_argo0) { | |
7654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p."); | |
7657 | return NULL; | |
7658 | } | |
7659 | } | |
7660 | { | |
4268f798 | 7661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7662 | _result = (bool )wxJoystick_HasPOV(_arg0); |
185d7c3e | 7663 | |
4268f798 RD |
7664 | wxPyEndAllowThreads(__tstate); |
7665 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7666 | } _resultobj = Py_BuildValue("i",_result); |
7667 | return _resultobj; | |
7668 | } | |
7669 | ||
7670 | #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir()) | |
7671 | static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7672 | PyObject * _resultobj; | |
7673 | bool _result; | |
7674 | wxJoystick * _arg0; | |
7675 | PyObject * _argo0 = 0; | |
7676 | char *_kwnames[] = { "self", NULL }; | |
7677 | ||
7678 | self = self; | |
7679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0)) | |
7680 | return NULL; | |
7681 | if (_argo0) { | |
7682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p."); | |
7685 | return NULL; | |
7686 | } | |
7687 | } | |
7688 | { | |
4268f798 | 7689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7690 | _result = (bool )wxJoystick_HasPOV4Dir(_arg0); |
185d7c3e | 7691 | |
4268f798 RD |
7692 | wxPyEndAllowThreads(__tstate); |
7693 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7694 | } _resultobj = Py_BuildValue("i",_result); |
7695 | return _resultobj; | |
7696 | } | |
7697 | ||
7698 | #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS()) | |
7699 | static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7700 | PyObject * _resultobj; | |
7701 | bool _result; | |
7702 | wxJoystick * _arg0; | |
7703 | PyObject * _argo0 = 0; | |
7704 | char *_kwnames[] = { "self", NULL }; | |
7705 | ||
7706 | self = self; | |
7707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0)) | |
7708 | return NULL; | |
7709 | if (_argo0) { | |
7710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p."); | |
7713 | return NULL; | |
7714 | } | |
7715 | } | |
7716 | { | |
4268f798 | 7717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7718 | _result = (bool )wxJoystick_HasPOVCTS(_arg0); |
185d7c3e | 7719 | |
4268f798 RD |
7720 | wxPyEndAllowThreads(__tstate); |
7721 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7722 | } _resultobj = Py_BuildValue("i",_result); |
7723 | return _resultobj; | |
7724 | } | |
7725 | ||
7726 | #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1)) | |
7727 | static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7728 | PyObject * _resultobj; | |
7729 | bool _result; | |
7730 | wxJoystick * _arg0; | |
7731 | wxWindow * _arg1; | |
7732 | int _arg2 = (int ) 0; | |
7733 | PyObject * _argo0 = 0; | |
7734 | PyObject * _argo1 = 0; | |
7735 | char *_kwnames[] = { "self","win","pollingFreq", NULL }; | |
7736 | ||
7737 | self = self; | |
7738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7739 | return NULL; | |
7740 | if (_argo0) { | |
7741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p."); | |
7744 | return NULL; | |
7745 | } | |
7746 | } | |
7747 | if (_argo1) { | |
7748 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7749 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p."); | |
7751 | return NULL; | |
7752 | } | |
7753 | } | |
7754 | { | |
4268f798 | 7755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7756 | _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2); |
185d7c3e | 7757 | |
4268f798 RD |
7758 | wxPyEndAllowThreads(__tstate); |
7759 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7760 | } _resultobj = Py_BuildValue("i",_result); |
7761 | return _resultobj; | |
7762 | } | |
7763 | ||
7764 | #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture()) | |
7765 | static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7766 | PyObject * _resultobj; | |
7767 | bool _result; | |
7768 | wxJoystick * _arg0; | |
7769 | PyObject * _argo0 = 0; | |
7770 | char *_kwnames[] = { "self", NULL }; | |
7771 | ||
7772 | self = self; | |
7773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0)) | |
7774 | return NULL; | |
7775 | if (_argo0) { | |
7776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p."); | |
7779 | return NULL; | |
7780 | } | |
7781 | } | |
7782 | { | |
4268f798 | 7783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7784 | _result = (bool )wxJoystick_ReleaseCapture(_arg0); |
185d7c3e | 7785 | |
4268f798 RD |
7786 | wxPyEndAllowThreads(__tstate); |
7787 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7788 | } _resultobj = Py_BuildValue("i",_result); |
7789 | return _resultobj; | |
7790 | } | |
7791 | ||
493f1553 RD |
7792 | static void *SwigwxWaveTowxObject(void *ptr) { |
7793 | wxWave *src; | |
7794 | wxObject *dest; | |
7795 | src = (wxWave *) ptr; | |
7796 | dest = (wxObject *) src; | |
7797 | return (void *) dest; | |
7798 | } | |
7799 | ||
7800 | #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1)) | |
7801 | static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7802 | PyObject * _resultobj; | |
7803 | wxWave * _result; | |
7804 | wxString * _arg0; | |
7805 | bool _arg1 = (bool ) FALSE; | |
7806 | PyObject * _obj0 = 0; | |
7807 | int tempbool1 = (int) FALSE; | |
7808 | char *_kwnames[] = { "fileName","isResource", NULL }; | |
7809 | char _ptemp[128]; | |
7810 | ||
7811 | self = self; | |
7812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1)) | |
7813 | return NULL; | |
7814 | { | |
c8bc7bb8 RD |
7815 | _arg0 = wxString_in_helper(_obj0); |
7816 | if (_arg0 == NULL) | |
493f1553 | 7817 | return NULL; |
493f1553 RD |
7818 | } |
7819 | _arg1 = (bool ) tempbool1; | |
7820 | { | |
4268f798 | 7821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7822 | _result = (wxWave *)new_wxWave(*_arg0,_arg1); |
493f1553 | 7823 | |
4268f798 RD |
7824 | wxPyEndAllowThreads(__tstate); |
7825 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7826 | } if (_result) { |
7827 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
7828 | _resultobj = Py_BuildValue("s",_ptemp); | |
7829 | } else { | |
7830 | Py_INCREF(Py_None); | |
7831 | _resultobj = Py_None; | |
7832 | } | |
7833 | { | |
7834 | if (_obj0) | |
7835 | delete _arg0; | |
7836 | } | |
7837 | return _resultobj; | |
7838 | } | |
7839 | ||
7840 | #define delete_wxWave(_swigobj) (delete _swigobj) | |
7841 | static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7842 | PyObject * _resultobj; | |
7843 | wxWave * _arg0; | |
7844 | PyObject * _argo0 = 0; | |
7845 | char *_kwnames[] = { "self", NULL }; | |
7846 | ||
7847 | self = self; | |
7848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0)) | |
7849 | return NULL; | |
7850 | if (_argo0) { | |
7851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p."); | |
7854 | return NULL; | |
7855 | } | |
7856 | } | |
7857 | { | |
4268f798 | 7858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7859 | delete_wxWave(_arg0); |
493f1553 | 7860 | |
4268f798 RD |
7861 | wxPyEndAllowThreads(__tstate); |
7862 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7863 | } Py_INCREF(Py_None); |
7864 | _resultobj = Py_None; | |
7865 | return _resultobj; | |
7866 | } | |
7867 | ||
7868 | #define wxWave_IsOk(_swigobj) (_swigobj->IsOk()) | |
7869 | static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7870 | PyObject * _resultobj; | |
7871 | bool _result; | |
7872 | wxWave * _arg0; | |
7873 | PyObject * _argo0 = 0; | |
7874 | char *_kwnames[] = { "self", NULL }; | |
7875 | ||
7876 | self = self; | |
7877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0)) | |
7878 | return NULL; | |
7879 | if (_argo0) { | |
7880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p."); | |
7883 | return NULL; | |
7884 | } | |
7885 | } | |
7886 | { | |
4268f798 | 7887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7888 | _result = (bool )wxWave_IsOk(_arg0); |
493f1553 | 7889 | |
4268f798 RD |
7890 | wxPyEndAllowThreads(__tstate); |
7891 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7892 | } _resultobj = Py_BuildValue("i",_result); |
7893 | return _resultobj; | |
7894 | } | |
7895 | ||
7896 | #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1)) | |
7897 | static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7898 | PyObject * _resultobj; | |
7899 | bool _result; | |
7900 | wxWave * _arg0; | |
7901 | bool _arg1 = (bool ) TRUE; | |
7902 | bool _arg2 = (bool ) FALSE; | |
7903 | PyObject * _argo0 = 0; | |
7904 | int tempbool1 = (int) TRUE; | |
7905 | int tempbool2 = (int) FALSE; | |
7906 | char *_kwnames[] = { "self","async","looped", NULL }; | |
7907 | ||
7908 | self = self; | |
7909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
7910 | return NULL; | |
7911 | if (_argo0) { | |
7912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p."); | |
7915 | return NULL; | |
7916 | } | |
7917 | } | |
7918 | _arg1 = (bool ) tempbool1; | |
7919 | _arg2 = (bool ) tempbool2; | |
7920 | { | |
4268f798 | 7921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7922 | _result = (bool )wxWave_Play(_arg0,_arg1,_arg2); |
493f1553 | 7923 | |
4268f798 RD |
7924 | wxPyEndAllowThreads(__tstate); |
7925 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7926 | } _resultobj = Py_BuildValue("i",_result); |
7927 | return _resultobj; | |
7928 | } | |
7929 | ||
b37c7e1d RD |
7930 | #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7931 | static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7932 | PyObject * _resultobj; | |
7933 | wxFileTypeInfo * _result; | |
7934 | char * _arg0; | |
7935 | char * _arg1; | |
7936 | char * _arg2; | |
7937 | char * _arg3; | |
7938 | char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL }; | |
7939 | char _ptemp[128]; | |
7940 | ||
7941 | self = self; | |
7942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ssss:new_wxFileTypeInfo",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
7943 | return NULL; | |
7944 | { | |
4268f798 | 7945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7946 | _result = (wxFileTypeInfo *)new_wxFileTypeInfo(_arg0,_arg1,_arg2,_arg3); |
b37c7e1d | 7947 | |
4268f798 RD |
7948 | wxPyEndAllowThreads(__tstate); |
7949 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7950 | } if (_result) { |
7951 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7952 | _resultobj = Py_BuildValue("s",_ptemp); | |
7953 | } else { | |
7954 | Py_INCREF(Py_None); | |
7955 | _resultobj = Py_None; | |
7956 | } | |
7957 | return _resultobj; | |
7958 | } | |
7959 | ||
7960 | #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0)) | |
7961 | static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7962 | PyObject * _resultobj; | |
7963 | wxFileTypeInfo * _result; | |
7964 | wxArrayString * _arg0; | |
7965 | PyObject * _obj0 = 0; | |
7966 | char *_kwnames[] = { "sArray", NULL }; | |
7967 | char _ptemp[128]; | |
7968 | ||
7969 | self = self; | |
7970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0)) | |
7971 | return NULL; | |
7972 | { | |
7973 | if (! PySequence_Check(_obj0)) { | |
7974 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7975 | return NULL; | |
7976 | } | |
7977 | _arg0 = new wxArrayString; | |
7978 | int i, len=PySequence_Length(_obj0); | |
7979 | for (i=0; i<len; i++) { | |
7980 | PyObject* item = PySequence_GetItem(_obj0, i); | |
c8bc7bb8 RD |
7981 | #if wxUSE_UNICODE |
7982 | PyObject* str = PyObject_Unicode(item); | |
7983 | _arg0->Add(PyUnicode_AsUnicode(str)); | |
7984 | #else | |
b37c7e1d | 7985 | PyObject* str = PyObject_Str(item); |
293a0a86 | 7986 | _arg0->Add(PyString_AsString(str)); |
c8bc7bb8 | 7987 | #endif |
b37c7e1d RD |
7988 | Py_DECREF(item); |
7989 | Py_DECREF(str); | |
7990 | } | |
7991 | } | |
7992 | { | |
4268f798 | 7993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7994 | _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0); |
b37c7e1d | 7995 | |
4268f798 RD |
7996 | wxPyEndAllowThreads(__tstate); |
7997 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7998 | } if (_result) { |
7999 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
8000 | _resultobj = Py_BuildValue("s",_ptemp); | |
8001 | } else { | |
8002 | Py_INCREF(Py_None); | |
8003 | _resultobj = Py_None; | |
8004 | } | |
8005 | { | |
8006 | if (_obj0) | |
8007 | delete _arg0; | |
8008 | } | |
8009 | return _resultobj; | |
8010 | } | |
8011 | ||
8012 | #define new_wxNullFileTypeInfo() (new wxFileTypeInfo()) | |
8013 | static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8014 | PyObject * _resultobj; | |
8015 | wxFileTypeInfo * _result; | |
8016 | char *_kwnames[] = { NULL }; | |
8017 | char _ptemp[128]; | |
8018 | ||
8019 | self = self; | |
8020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames)) | |
8021 | return NULL; | |
8022 | { | |
4268f798 | 8023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8024 | _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo(); |
b37c7e1d | 8025 | |
4268f798 RD |
8026 | wxPyEndAllowThreads(__tstate); |
8027 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8028 | } if (_result) { |
8029 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
8030 | _resultobj = Py_BuildValue("s",_ptemp); | |
8031 | } else { | |
8032 | Py_INCREF(Py_None); | |
8033 | _resultobj = Py_None; | |
8034 | } | |
8035 | return _resultobj; | |
8036 | } | |
8037 | ||
8038 | #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid()) | |
8039 | static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8040 | PyObject * _resultobj; | |
8041 | bool _result; | |
8042 | wxFileTypeInfo * _arg0; | |
8043 | PyObject * _argo0 = 0; | |
8044 | char *_kwnames[] = { "self", NULL }; | |
8045 | ||
8046 | self = self; | |
8047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0)) | |
8048 | return NULL; | |
8049 | if (_argo0) { | |
8050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p."); | |
8053 | return NULL; | |
8054 | } | |
8055 | } | |
8056 | { | |
4268f798 | 8057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8058 | _result = (bool )wxFileTypeInfo_IsValid(_arg0); |
b37c7e1d | 8059 | |
4268f798 RD |
8060 | wxPyEndAllowThreads(__tstate); |
8061 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8062 | } _resultobj = Py_BuildValue("i",_result); |
8063 | return _resultobj; | |
8064 | } | |
8065 | ||
8066 | #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1)) | |
8067 | static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8068 | PyObject * _resultobj; | |
8069 | wxFileTypeInfo * _arg0; | |
8070 | wxString * _arg1; | |
8071 | int _arg2 = (int ) 0; | |
8072 | PyObject * _argo0 = 0; | |
8073 | PyObject * _obj1 = 0; | |
8074 | char *_kwnames[] = { "self","iconFile","iconIndex", NULL }; | |
8075 | ||
8076 | self = self; | |
8077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
8078 | return NULL; | |
8079 | if (_argo0) { | |
8080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p."); | |
8083 | return NULL; | |
8084 | } | |
8085 | } | |
8086 | { | |
c8bc7bb8 RD |
8087 | _arg1 = wxString_in_helper(_obj1); |
8088 | if (_arg1 == NULL) | |
b37c7e1d | 8089 | return NULL; |
b37c7e1d RD |
8090 | } |
8091 | { | |
4268f798 | 8092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8093 | wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 8094 | |
4268f798 RD |
8095 | wxPyEndAllowThreads(__tstate); |
8096 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8097 | } Py_INCREF(Py_None); |
8098 | _resultobj = Py_None; | |
8099 | { | |
8100 | if (_obj1) | |
8101 | delete _arg1; | |
8102 | } | |
8103 | return _resultobj; | |
8104 | } | |
8105 | ||
8106 | #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0)) | |
8107 | static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8108 | PyObject * _resultobj; | |
8109 | wxFileTypeInfo * _arg0; | |
8110 | wxString * _arg1; | |
8111 | PyObject * _argo0 = 0; | |
8112 | PyObject * _obj1 = 0; | |
8113 | char *_kwnames[] = { "self","shortDesc", NULL }; | |
8114 | ||
8115 | self = self; | |
8116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1)) | |
8117 | return NULL; | |
8118 | if (_argo0) { | |
8119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p."); | |
8122 | return NULL; | |
8123 | } | |
8124 | } | |
8125 | { | |
c8bc7bb8 RD |
8126 | _arg1 = wxString_in_helper(_obj1); |
8127 | if (_arg1 == NULL) | |
b37c7e1d | 8128 | return NULL; |
b37c7e1d RD |
8129 | } |
8130 | { | |
4268f798 | 8131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8132 | wxFileTypeInfo_SetShortDesc(_arg0,*_arg1); |
b37c7e1d | 8133 | |
4268f798 RD |
8134 | wxPyEndAllowThreads(__tstate); |
8135 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8136 | } Py_INCREF(Py_None); |
8137 | _resultobj = Py_None; | |
8138 | { | |
8139 | if (_obj1) | |
8140 | delete _arg1; | |
8141 | } | |
8142 | return _resultobj; | |
8143 | } | |
8144 | ||
8145 | #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
8146 | static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8147 | PyObject * _resultobj; | |
8148 | wxString * _result; | |
8149 | wxFileTypeInfo * _arg0; | |
8150 | PyObject * _argo0 = 0; | |
8151 | char *_kwnames[] = { "self", NULL }; | |
8152 | ||
8153 | self = self; | |
8154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0)) | |
8155 | return NULL; | |
8156 | if (_argo0) { | |
8157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p."); | |
8160 | return NULL; | |
8161 | } | |
8162 | } | |
8163 | { | |
4268f798 | 8164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8165 | const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0); |
b37c7e1d RD |
8166 | _result = (wxString *) &_result_ref; |
8167 | ||
4268f798 RD |
8168 | wxPyEndAllowThreads(__tstate); |
8169 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8170 | }{ |
c8bc7bb8 RD |
8171 | #if wxUSE_UNICODE |
8172 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8173 | #else | |
b37c7e1d | 8174 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8175 | #endif |
b37c7e1d RD |
8176 | } |
8177 | return _resultobj; | |
8178 | } | |
8179 | ||
8180 | #define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand()) | |
8181 | static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8182 | PyObject * _resultobj; | |
8183 | wxString * _result; | |
8184 | wxFileTypeInfo * _arg0; | |
8185 | PyObject * _argo0 = 0; | |
8186 | char *_kwnames[] = { "self", NULL }; | |
8187 | ||
8188 | self = self; | |
8189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0)) | |
8190 | return NULL; | |
8191 | if (_argo0) { | |
8192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p."); | |
8195 | return NULL; | |
8196 | } | |
8197 | } | |
8198 | { | |
4268f798 | 8199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8200 | const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0); |
b37c7e1d RD |
8201 | _result = (wxString *) &_result_ref; |
8202 | ||
4268f798 RD |
8203 | wxPyEndAllowThreads(__tstate); |
8204 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8205 | }{ |
c8bc7bb8 RD |
8206 | #if wxUSE_UNICODE |
8207 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8208 | #else | |
b37c7e1d | 8209 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8210 | #endif |
b37c7e1d RD |
8211 | } |
8212 | return _resultobj; | |
8213 | } | |
8214 | ||
8215 | #define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand()) | |
8216 | static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8217 | PyObject * _resultobj; | |
8218 | wxString * _result; | |
8219 | wxFileTypeInfo * _arg0; | |
8220 | PyObject * _argo0 = 0; | |
8221 | char *_kwnames[] = { "self", NULL }; | |
8222 | ||
8223 | self = self; | |
8224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0)) | |
8225 | return NULL; | |
8226 | if (_argo0) { | |
8227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p."); | |
8230 | return NULL; | |
8231 | } | |
8232 | } | |
8233 | { | |
4268f798 | 8234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8235 | const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0); |
b37c7e1d RD |
8236 | _result = (wxString *) &_result_ref; |
8237 | ||
4268f798 RD |
8238 | wxPyEndAllowThreads(__tstate); |
8239 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8240 | }{ |
c8bc7bb8 RD |
8241 | #if wxUSE_UNICODE |
8242 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8243 | #else | |
b37c7e1d | 8244 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8245 | #endif |
b37c7e1d RD |
8246 | } |
8247 | return _resultobj; | |
8248 | } | |
8249 | ||
8250 | #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc()) | |
8251 | static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8252 | PyObject * _resultobj; | |
8253 | wxString * _result; | |
8254 | wxFileTypeInfo * _arg0; | |
8255 | PyObject * _argo0 = 0; | |
8256 | char *_kwnames[] = { "self", NULL }; | |
8257 | ||
8258 | self = self; | |
8259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0)) | |
8260 | return NULL; | |
8261 | if (_argo0) { | |
8262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p."); | |
8265 | return NULL; | |
8266 | } | |
8267 | } | |
8268 | { | |
4268f798 | 8269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8270 | const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0); |
b37c7e1d RD |
8271 | _result = (wxString *) &_result_ref; |
8272 | ||
4268f798 RD |
8273 | wxPyEndAllowThreads(__tstate); |
8274 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8275 | }{ |
c8bc7bb8 RD |
8276 | #if wxUSE_UNICODE |
8277 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8278 | #else | |
b37c7e1d | 8279 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8280 | #endif |
b37c7e1d RD |
8281 | } |
8282 | return _resultobj; | |
8283 | } | |
8284 | ||
8285 | #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription()) | |
8286 | static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8287 | PyObject * _resultobj; | |
8288 | wxString * _result; | |
8289 | wxFileTypeInfo * _arg0; | |
8290 | PyObject * _argo0 = 0; | |
8291 | char *_kwnames[] = { "self", NULL }; | |
8292 | ||
8293 | self = self; | |
8294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0)) | |
8295 | return NULL; | |
8296 | if (_argo0) { | |
8297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p."); | |
8300 | return NULL; | |
8301 | } | |
8302 | } | |
8303 | { | |
4268f798 | 8304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8305 | const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0); |
b37c7e1d RD |
8306 | _result = (wxString *) &_result_ref; |
8307 | ||
4268f798 RD |
8308 | wxPyEndAllowThreads(__tstate); |
8309 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8310 | }{ |
c8bc7bb8 RD |
8311 | #if wxUSE_UNICODE |
8312 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8313 | #else | |
b37c7e1d | 8314 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8315 | #endif |
b37c7e1d RD |
8316 | } |
8317 | return _resultobj; | |
8318 | } | |
8319 | ||
8320 | static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) { | |
8321 | wxArrayString& arr = (wxArrayString&)self->GetExtensions(); | |
8322 | return wxArrayString2PyList_helper(arr); | |
8323 | } | |
8324 | static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8325 | PyObject * _resultobj; | |
8326 | PyObject * _result; | |
8327 | wxFileTypeInfo * _arg0; | |
8328 | PyObject * _argo0 = 0; | |
8329 | char *_kwnames[] = { "self", NULL }; | |
8330 | ||
8331 | self = self; | |
8332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0)) | |
8333 | return NULL; | |
8334 | if (_argo0) { | |
8335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p."); | |
8338 | return NULL; | |
8339 | } | |
8340 | } | |
8341 | { | |
4268f798 | 8342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8343 | _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0); |
b37c7e1d | 8344 | |
4268f798 RD |
8345 | wxPyEndAllowThreads(__tstate); |
8346 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8347 | }{ |
8348 | _resultobj = _result; | |
8349 | } | |
8350 | return _resultobj; | |
8351 | } | |
8352 | ||
8353 | #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount()) | |
8354 | static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8355 | PyObject * _resultobj; | |
8356 | int _result; | |
8357 | wxFileTypeInfo * _arg0; | |
8358 | PyObject * _argo0 = 0; | |
8359 | char *_kwnames[] = { "self", NULL }; | |
8360 | ||
8361 | self = self; | |
8362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0)) | |
8363 | return NULL; | |
8364 | if (_argo0) { | |
8365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p."); | |
8368 | return NULL; | |
8369 | } | |
8370 | } | |
8371 | { | |
4268f798 | 8372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8373 | _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0); |
b37c7e1d | 8374 | |
4268f798 RD |
8375 | wxPyEndAllowThreads(__tstate); |
8376 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8377 | } _resultobj = Py_BuildValue("i",_result); |
8378 | return _resultobj; | |
8379 | } | |
8380 | ||
8381 | #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile()) | |
8382 | static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8383 | PyObject * _resultobj; | |
8384 | wxString * _result; | |
8385 | wxFileTypeInfo * _arg0; | |
8386 | PyObject * _argo0 = 0; | |
8387 | char *_kwnames[] = { "self", NULL }; | |
8388 | ||
8389 | self = self; | |
8390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0)) | |
8391 | return NULL; | |
8392 | if (_argo0) { | |
8393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p."); | |
8396 | return NULL; | |
8397 | } | |
8398 | } | |
8399 | { | |
4268f798 | 8400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8401 | const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0); |
b37c7e1d RD |
8402 | _result = (wxString *) &_result_ref; |
8403 | ||
4268f798 RD |
8404 | wxPyEndAllowThreads(__tstate); |
8405 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8406 | }{ |
c8bc7bb8 RD |
8407 | #if wxUSE_UNICODE |
8408 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8409 | #else | |
b37c7e1d | 8410 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8411 | #endif |
b37c7e1d RD |
8412 | } |
8413 | return _resultobj; | |
8414 | } | |
8415 | ||
8416 | #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex()) | |
8417 | static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8418 | PyObject * _resultobj; | |
8419 | int _result; | |
8420 | wxFileTypeInfo * _arg0; | |
8421 | PyObject * _argo0 = 0; | |
8422 | char *_kwnames[] = { "self", NULL }; | |
8423 | ||
8424 | self = self; | |
8425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0)) | |
8426 | return NULL; | |
8427 | if (_argo0) { | |
8428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p."); | |
8431 | return NULL; | |
8432 | } | |
8433 | } | |
8434 | { | |
4268f798 | 8435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8436 | _result = (int )wxFileTypeInfo_GetIconIndex(_arg0); |
b37c7e1d | 8437 | |
4268f798 RD |
8438 | wxPyEndAllowThreads(__tstate); |
8439 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8440 | } _resultobj = Py_BuildValue("i",_result); |
8441 | return _resultobj; | |
8442 | } | |
8443 | ||
8444 | #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0)) | |
8445 | static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8446 | PyObject * _resultobj; | |
8447 | wxFileType * _result; | |
8448 | wxFileTypeInfo * _arg0; | |
8449 | PyObject * _argo0 = 0; | |
8450 | char *_kwnames[] = { "ftInfo", NULL }; | |
8451 | char _ptemp[128]; | |
8452 | ||
8453 | self = self; | |
8454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0)) | |
8455 | return NULL; | |
8456 | if (_argo0) { | |
8457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p."); | |
8460 | return NULL; | |
8461 | } | |
8462 | } | |
8463 | { | |
4268f798 | 8464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8465 | _result = (wxFileType *)new_wxFileType(*_arg0); |
b37c7e1d | 8466 | |
4268f798 RD |
8467 | wxPyEndAllowThreads(__tstate); |
8468 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8469 | } if (_result) { |
8470 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8471 | _resultobj = Py_BuildValue("s",_ptemp); | |
8472 | } else { | |
8473 | Py_INCREF(Py_None); | |
8474 | _resultobj = Py_None; | |
8475 | } | |
8476 | return _resultobj; | |
8477 | } | |
8478 | ||
8479 | static PyObject * wxFileType_GetMimeType(wxFileType *self) { | |
8480 | wxString str; | |
c8bc7bb8 RD |
8481 | if (self->GetMimeType(&str)) { |
8482 | #if wxUSE_UNICODE | |
8483 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8484 | #else | |
8485 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8486 | #endif | |
8487 | } | |
b37c7e1d RD |
8488 | else |
8489 | RETURN_NONE(); | |
8490 | } | |
8491 | static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8492 | PyObject * _resultobj; | |
8493 | PyObject * _result; | |
8494 | wxFileType * _arg0; | |
8495 | PyObject * _argo0 = 0; | |
8496 | char *_kwnames[] = { "self", NULL }; | |
8497 | ||
8498 | self = self; | |
8499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0)) | |
8500 | return NULL; | |
8501 | if (_argo0) { | |
8502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p."); | |
8505 | return NULL; | |
8506 | } | |
8507 | } | |
8508 | { | |
4268f798 | 8509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8510 | _result = (PyObject *)wxFileType_GetMimeType(_arg0); |
b37c7e1d | 8511 | |
4268f798 RD |
8512 | wxPyEndAllowThreads(__tstate); |
8513 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8514 | }{ |
8515 | _resultobj = _result; | |
8516 | } | |
8517 | return _resultobj; | |
8518 | } | |
8519 | ||
8520 | static PyObject * wxFileType_GetMimeTypes(wxFileType *self) { | |
8521 | wxArrayString arr; | |
8522 | if (self->GetMimeTypes(arr)) | |
8523 | return wxArrayString2PyList_helper(arr); | |
8524 | else | |
8525 | RETURN_NONE(); | |
8526 | } | |
8527 | static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8528 | PyObject * _resultobj; | |
8529 | PyObject * _result; | |
8530 | wxFileType * _arg0; | |
8531 | PyObject * _argo0 = 0; | |
8532 | char *_kwnames[] = { "self", NULL }; | |
8533 | ||
8534 | self = self; | |
8535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0)) | |
8536 | return NULL; | |
8537 | if (_argo0) { | |
8538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p."); | |
8541 | return NULL; | |
8542 | } | |
8543 | } | |
8544 | { | |
4268f798 | 8545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8546 | _result = (PyObject *)wxFileType_GetMimeTypes(_arg0); |
b37c7e1d | 8547 | |
4268f798 RD |
8548 | wxPyEndAllowThreads(__tstate); |
8549 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8550 | }{ |
8551 | _resultobj = _result; | |
8552 | } | |
8553 | return _resultobj; | |
8554 | } | |
8555 | ||
8556 | static PyObject * wxFileType_GetExtensions(wxFileType *self) { | |
8557 | wxArrayString arr; | |
8558 | if (self->GetExtensions(arr)) | |
8559 | return wxArrayString2PyList_helper(arr); | |
8560 | else | |
8561 | RETURN_NONE(); | |
8562 | } | |
8563 | static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8564 | PyObject * _resultobj; | |
8565 | PyObject * _result; | |
8566 | wxFileType * _arg0; | |
8567 | PyObject * _argo0 = 0; | |
8568 | char *_kwnames[] = { "self", NULL }; | |
8569 | ||
8570 | self = self; | |
8571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0)) | |
8572 | return NULL; | |
8573 | if (_argo0) { | |
8574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p."); | |
8577 | return NULL; | |
8578 | } | |
8579 | } | |
8580 | { | |
4268f798 | 8581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8582 | _result = (PyObject *)wxFileType_GetExtensions(_arg0); |
b37c7e1d | 8583 | |
4268f798 RD |
8584 | wxPyEndAllowThreads(__tstate); |
8585 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8586 | }{ |
8587 | _resultobj = _result; | |
8588 | } | |
8589 | return _resultobj; | |
8590 | } | |
8591 | ||
8592 | static wxIcon * wxFileType_GetIcon(wxFileType *self) { | |
8593 | wxIcon icon; | |
8594 | if (self->GetIcon(&icon)) | |
8595 | return new wxIcon(icon); | |
8596 | else | |
8597 | return NULL; | |
8598 | } | |
8599 | static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8600 | PyObject * _resultobj; | |
8601 | wxIcon * _result; | |
8602 | wxFileType * _arg0; | |
8603 | PyObject * _argo0 = 0; | |
8604 | char *_kwnames[] = { "self", NULL }; | |
8605 | char _ptemp[128]; | |
8606 | ||
8607 | self = self; | |
8608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0)) | |
8609 | return NULL; | |
8610 | if (_argo0) { | |
8611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p."); | |
8614 | return NULL; | |
8615 | } | |
8616 | } | |
8617 | { | |
4268f798 | 8618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8619 | _result = (wxIcon *)wxFileType_GetIcon(_arg0); |
b37c7e1d | 8620 | |
4268f798 RD |
8621 | wxPyEndAllowThreads(__tstate); |
8622 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8623 | } if (_result) { |
8624 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
8625 | _resultobj = Py_BuildValue("s",_ptemp); | |
8626 | } else { | |
8627 | Py_INCREF(Py_None); | |
8628 | _resultobj = Py_None; | |
8629 | } | |
8630 | return _resultobj; | |
8631 | } | |
8632 | ||
8633 | static PyObject * wxFileType_GetIconInfo(wxFileType *self) { | |
8634 | wxIcon icon; | |
8635 | wxString iconFile; | |
8636 | int iconIndex; | |
8637 | if (self->GetIcon(&icon, &iconFile, &iconIndex)) { | |
4268f798 | 8638 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
8639 | PyObject* tuple = PyTuple_New(3); |
8640 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(icon), | |
8641 | "wxIcon", TRUE)); | |
c8bc7bb8 RD |
8642 | #if wxUSE_UNICODE |
8643 | PyTuple_SetItem(tuple, 1, PyUnicode_FromUnicode(iconFile.c_str(), iconFile.Len())); | |
8644 | #else | |
8645 | PyTuple_SetItem(tuple, 1, PyString_FromStringAndSize(iconFile.c_str(), iconFile.Len())); | |
8646 | #endif | |
b37c7e1d | 8647 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); |
4268f798 | 8648 | wxPyEndBlockThreads(); |
b37c7e1d RD |
8649 | return tuple; |
8650 | } | |
8651 | else | |
8652 | RETURN_NONE(); | |
8653 | } | |
8654 | static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8655 | PyObject * _resultobj; | |
8656 | PyObject * _result; | |
8657 | wxFileType * _arg0; | |
8658 | PyObject * _argo0 = 0; | |
8659 | char *_kwnames[] = { "self", NULL }; | |
8660 | ||
8661 | self = self; | |
8662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0)) | |
8663 | return NULL; | |
8664 | if (_argo0) { | |
8665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p."); | |
8668 | return NULL; | |
8669 | } | |
8670 | } | |
8671 | { | |
4268f798 | 8672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8673 | _result = (PyObject *)wxFileType_GetIconInfo(_arg0); |
b37c7e1d | 8674 | |
4268f798 RD |
8675 | wxPyEndAllowThreads(__tstate); |
8676 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8677 | }{ |
8678 | _resultobj = _result; | |
8679 | } | |
8680 | return _resultobj; | |
8681 | } | |
8682 | ||
8683 | static PyObject * wxFileType_GetDescription(wxFileType *self) { | |
8684 | wxString str; | |
c8bc7bb8 RD |
8685 | if (self->GetDescription(&str)) { |
8686 | #if wxUSE_UNICODE | |
8687 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8688 | #else | |
8689 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8690 | #endif | |
8691 | } else | |
b37c7e1d RD |
8692 | RETURN_NONE(); |
8693 | } | |
8694 | static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8695 | PyObject * _resultobj; | |
8696 | PyObject * _result; | |
8697 | wxFileType * _arg0; | |
8698 | PyObject * _argo0 = 0; | |
8699 | char *_kwnames[] = { "self", NULL }; | |
8700 | ||
8701 | self = self; | |
8702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0)) | |
8703 | return NULL; | |
8704 | if (_argo0) { | |
8705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p."); | |
8708 | return NULL; | |
8709 | } | |
8710 | } | |
8711 | { | |
4268f798 | 8712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8713 | _result = (PyObject *)wxFileType_GetDescription(_arg0); |
b37c7e1d | 8714 | |
4268f798 RD |
8715 | wxPyEndAllowThreads(__tstate); |
8716 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8717 | }{ |
8718 | _resultobj = _result; | |
8719 | } | |
8720 | return _resultobj; | |
8721 | } | |
8722 | ||
8723 | static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8724 | wxString str; | |
c8bc7bb8 RD |
8725 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
8726 | #if wxUSE_UNICODE | |
8727 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8728 | #else | |
8729 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8730 | #endif | |
8731 | } else | |
b37c7e1d RD |
8732 | RETURN_NONE(); |
8733 | } | |
8734 | static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8735 | PyObject * _resultobj; | |
8736 | PyObject * _result; | |
8737 | wxFileType * _arg0; | |
8738 | wxString * _arg1; | |
137b5242 | 8739 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8740 | PyObject * _argo0 = 0; |
8741 | PyObject * _obj1 = 0; | |
8742 | PyObject * _obj2 = 0; | |
8743 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8744 | ||
8745 | self = self; | |
8746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8747 | return NULL; | |
8748 | if (_argo0) { | |
8749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p."); | |
8752 | return NULL; | |
8753 | } | |
8754 | } | |
8755 | { | |
c8bc7bb8 RD |
8756 | _arg1 = wxString_in_helper(_obj1); |
8757 | if (_arg1 == NULL) | |
b37c7e1d | 8758 | return NULL; |
b37c7e1d RD |
8759 | } |
8760 | if (_obj2) | |
8761 | { | |
c8bc7bb8 RD |
8762 | _arg2 = wxString_in_helper(_obj2); |
8763 | if (_arg2 == NULL) | |
b37c7e1d | 8764 | return NULL; |
b37c7e1d RD |
8765 | } |
8766 | { | |
4268f798 | 8767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8768 | _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8769 | |
4268f798 RD |
8770 | wxPyEndAllowThreads(__tstate); |
8771 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8772 | }{ |
8773 | _resultobj = _result; | |
8774 | } | |
8775 | { | |
8776 | if (_obj1) | |
8777 | delete _arg1; | |
8778 | } | |
8779 | { | |
8780 | if (_obj2) | |
8781 | delete _arg2; | |
8782 | } | |
8783 | return _resultobj; | |
8784 | } | |
8785 | ||
8786 | static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8787 | wxString str; | |
c8bc7bb8 RD |
8788 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
8789 | #if wxUSE_UNICODE | |
8790 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8791 | #else | |
8792 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8793 | #endif | |
8794 | } else | |
b37c7e1d RD |
8795 | RETURN_NONE(); |
8796 | } | |
8797 | static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8798 | PyObject * _resultobj; | |
8799 | PyObject * _result; | |
8800 | wxFileType * _arg0; | |
8801 | wxString * _arg1; | |
137b5242 | 8802 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8803 | PyObject * _argo0 = 0; |
8804 | PyObject * _obj1 = 0; | |
8805 | PyObject * _obj2 = 0; | |
8806 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8807 | ||
8808 | self = self; | |
8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8810 | return NULL; | |
8811 | if (_argo0) { | |
8812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p."); | |
8815 | return NULL; | |
8816 | } | |
8817 | } | |
8818 | { | |
c8bc7bb8 RD |
8819 | _arg1 = wxString_in_helper(_obj1); |
8820 | if (_arg1 == NULL) | |
b37c7e1d | 8821 | return NULL; |
b37c7e1d RD |
8822 | } |
8823 | if (_obj2) | |
8824 | { | |
c8bc7bb8 RD |
8825 | _arg2 = wxString_in_helper(_obj2); |
8826 | if (_arg2 == NULL) | |
b37c7e1d | 8827 | return NULL; |
b37c7e1d RD |
8828 | } |
8829 | { | |
4268f798 | 8830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8831 | _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8832 | |
4268f798 RD |
8833 | wxPyEndAllowThreads(__tstate); |
8834 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8835 | }{ |
8836 | _resultobj = _result; | |
8837 | } | |
8838 | { | |
8839 | if (_obj1) | |
8840 | delete _arg1; | |
8841 | } | |
8842 | { | |
8843 | if (_obj2) | |
8844 | delete _arg2; | |
8845 | } | |
8846 | return _resultobj; | |
8847 | } | |
8848 | ||
8849 | static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8850 | wxArrayString verbs; | |
8851 | wxArrayString commands; | |
8852 | if (self->GetAllCommands(&verbs, &commands, | |
8853 | wxFileType::MessageParameters(filename, mimetype))) { | |
4268f798 | 8854 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
8855 | PyObject* tuple = PyTuple_New(2); |
8856 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
8857 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
4268f798 | 8858 | wxPyEndBlockThreads(); |
b37c7e1d RD |
8859 | return tuple; |
8860 | } | |
8861 | else | |
8862 | RETURN_NONE(); | |
8863 | } | |
8864 | static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8865 | PyObject * _resultobj; | |
8866 | PyObject * _result; | |
8867 | wxFileType * _arg0; | |
8868 | wxString * _arg1; | |
137b5242 | 8869 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8870 | PyObject * _argo0 = 0; |
8871 | PyObject * _obj1 = 0; | |
8872 | PyObject * _obj2 = 0; | |
8873 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8874 | ||
8875 | self = self; | |
8876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8877 | return NULL; | |
8878 | if (_argo0) { | |
8879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p."); | |
8882 | return NULL; | |
8883 | } | |
8884 | } | |
8885 | { | |
c8bc7bb8 RD |
8886 | _arg1 = wxString_in_helper(_obj1); |
8887 | if (_arg1 == NULL) | |
b37c7e1d | 8888 | return NULL; |
b37c7e1d RD |
8889 | } |
8890 | if (_obj2) | |
8891 | { | |
c8bc7bb8 RD |
8892 | _arg2 = wxString_in_helper(_obj2); |
8893 | if (_arg2 == NULL) | |
b37c7e1d | 8894 | return NULL; |
b37c7e1d RD |
8895 | } |
8896 | { | |
4268f798 | 8897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8898 | _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8899 | |
4268f798 RD |
8900 | wxPyEndAllowThreads(__tstate); |
8901 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8902 | }{ |
8903 | _resultobj = _result; | |
8904 | } | |
8905 | { | |
8906 | if (_obj1) | |
8907 | delete _arg1; | |
8908 | } | |
8909 | { | |
8910 | if (_obj2) | |
8911 | delete _arg2; | |
8912 | } | |
8913 | return _resultobj; | |
8914 | } | |
8915 | ||
8916 | #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2)) | |
8917 | static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8918 | PyObject * _resultobj; | |
8919 | bool _result; | |
8920 | wxFileType * _arg0; | |
8921 | wxString * _arg1; | |
8922 | wxString * _arg2; | |
8923 | bool _arg3 = (bool ) TRUE; | |
8924 | PyObject * _argo0 = 0; | |
8925 | PyObject * _obj1 = 0; | |
8926 | PyObject * _obj2 = 0; | |
8927 | int tempbool3 = (int) TRUE; | |
8928 | char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL }; | |
8929 | ||
8930 | self = self; | |
8931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) | |
8932 | return NULL; | |
8933 | if (_argo0) { | |
8934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p."); | |
8937 | return NULL; | |
8938 | } | |
8939 | } | |
8940 | { | |
c8bc7bb8 RD |
8941 | _arg1 = wxString_in_helper(_obj1); |
8942 | if (_arg1 == NULL) | |
b37c7e1d | 8943 | return NULL; |
b37c7e1d RD |
8944 | } |
8945 | { | |
c8bc7bb8 RD |
8946 | _arg2 = wxString_in_helper(_obj2); |
8947 | if (_arg2 == NULL) | |
b37c7e1d | 8948 | return NULL; |
b37c7e1d RD |
8949 | } |
8950 | _arg3 = (bool ) tempbool3; | |
8951 | { | |
4268f798 | 8952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8953 | _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3); |
b37c7e1d | 8954 | |
4268f798 RD |
8955 | wxPyEndAllowThreads(__tstate); |
8956 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8957 | } _resultobj = Py_BuildValue("i",_result); |
8958 | { | |
8959 | if (_obj1) | |
8960 | delete _arg1; | |
8961 | } | |
8962 | { | |
8963 | if (_obj2) | |
8964 | delete _arg2; | |
8965 | } | |
8966 | return _resultobj; | |
8967 | } | |
8968 | ||
8969 | #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1)) | |
8970 | static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8971 | PyObject * _resultobj; | |
8972 | bool _result; | |
8973 | wxFileType * _arg0; | |
137b5242 | 8974 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8975 | int _arg2 = (int ) 0; |
8976 | PyObject * _argo0 = 0; | |
8977 | PyObject * _obj1 = 0; | |
8978 | char *_kwnames[] = { "self","cmd","index", NULL }; | |
8979 | ||
8980 | self = self; | |
8981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
8982 | return NULL; | |
8983 | if (_argo0) { | |
8984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p."); | |
8987 | return NULL; | |
8988 | } | |
8989 | } | |
8990 | if (_obj1) | |
8991 | { | |
c8bc7bb8 RD |
8992 | _arg1 = wxString_in_helper(_obj1); |
8993 | if (_arg1 == NULL) | |
b37c7e1d | 8994 | return NULL; |
b37c7e1d RD |
8995 | } |
8996 | { | |
4268f798 | 8997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8998 | _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 8999 | |
4268f798 RD |
9000 | wxPyEndAllowThreads(__tstate); |
9001 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9002 | } _resultobj = Py_BuildValue("i",_result); |
9003 | { | |
9004 | if (_obj1) | |
9005 | delete _arg1; | |
9006 | } | |
9007 | return _resultobj; | |
9008 | } | |
9009 | ||
9010 | #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate()) | |
9011 | static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9012 | PyObject * _resultobj; | |
9013 | bool _result; | |
9014 | wxFileType * _arg0; | |
9015 | PyObject * _argo0 = 0; | |
9016 | char *_kwnames[] = { "self", NULL }; | |
9017 | ||
9018 | self = self; | |
9019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0)) | |
9020 | return NULL; | |
9021 | if (_argo0) { | |
9022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p."); | |
9025 | return NULL; | |
9026 | } | |
9027 | } | |
9028 | { | |
4268f798 | 9029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9030 | _result = (bool )wxFileType_Unassociate(_arg0); |
b37c7e1d | 9031 | |
4268f798 RD |
9032 | wxPyEndAllowThreads(__tstate); |
9033 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9034 | } _resultobj = Py_BuildValue("i",_result); |
9035 | return _resultobj; | |
9036 | } | |
9037 | ||
9038 | static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9039 | PyObject * _resultobj; | |
9040 | wxString * _result; | |
9041 | wxString * _arg0; | |
9042 | wxFileType::MessageParameters * _arg1; | |
9043 | PyObject * _obj0 = 0; | |
9044 | PyObject * _argo1 = 0; | |
9045 | char *_kwnames[] = { "command","params", NULL }; | |
9046 | ||
9047 | self = self; | |
9048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1)) | |
9049 | return NULL; | |
9050 | { | |
c8bc7bb8 RD |
9051 | _arg0 = wxString_in_helper(_obj0); |
9052 | if (_arg0 == NULL) | |
b37c7e1d | 9053 | return NULL; |
b37c7e1d RD |
9054 | } |
9055 | if (_argo1) { | |
9056 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9057 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) { | |
9058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p."); | |
9059 | return NULL; | |
9060 | } | |
9061 | } | |
9062 | { | |
4268f798 | 9063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9064 | _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1)); |
b37c7e1d | 9065 | |
4268f798 RD |
9066 | wxPyEndAllowThreads(__tstate); |
9067 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 9068 | }{ |
c8bc7bb8 RD |
9069 | #if wxUSE_UNICODE |
9070 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9071 | #else | |
b37c7e1d | 9072 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9073 | #endif |
b37c7e1d RD |
9074 | } |
9075 | { | |
9076 | if (_obj0) | |
9077 | delete _arg0; | |
9078 | } | |
9079 | { | |
9080 | delete _result; | |
9081 | } | |
9082 | return _resultobj; | |
9083 | } | |
9084 | ||
9085 | #define delete_wxFileType(_swigobj) (delete _swigobj) | |
9086 | static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9087 | PyObject * _resultobj; | |
9088 | wxFileType * _arg0; | |
9089 | PyObject * _argo0 = 0; | |
9090 | char *_kwnames[] = { "self", NULL }; | |
9091 | ||
9092 | self = self; | |
9093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0)) | |
9094 | return NULL; | |
9095 | if (_argo0) { | |
9096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p."); | |
9099 | return NULL; | |
9100 | } | |
9101 | } | |
9102 | { | |
4268f798 | 9103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9104 | delete_wxFileType(_arg0); |
b37c7e1d | 9105 | |
4268f798 RD |
9106 | wxPyEndAllowThreads(__tstate); |
9107 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9108 | } Py_INCREF(Py_None); |
9109 | _resultobj = Py_None; | |
9110 | return _resultobj; | |
9111 | } | |
9112 | ||
9113 | static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9114 | PyObject * _resultobj; | |
9115 | bool _result; | |
9116 | wxString * _arg0; | |
9117 | wxString * _arg1; | |
9118 | PyObject * _obj0 = 0; | |
9119 | PyObject * _obj1 = 0; | |
9120 | char *_kwnames[] = { "mimeType","wildcard", NULL }; | |
9121 | ||
9122 | self = self; | |
9123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1)) | |
9124 | return NULL; | |
9125 | { | |
c8bc7bb8 RD |
9126 | _arg0 = wxString_in_helper(_obj0); |
9127 | if (_arg0 == NULL) | |
b37c7e1d | 9128 | return NULL; |
b37c7e1d RD |
9129 | } |
9130 | { | |
c8bc7bb8 RD |
9131 | _arg1 = wxString_in_helper(_obj1); |
9132 | if (_arg1 == NULL) | |
b37c7e1d | 9133 | return NULL; |
b37c7e1d RD |
9134 | } |
9135 | { | |
4268f798 | 9136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9137 | _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1); |
b37c7e1d | 9138 | |
4268f798 RD |
9139 | wxPyEndAllowThreads(__tstate); |
9140 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9141 | } _resultobj = Py_BuildValue("i",_result); |
9142 | { | |
9143 | if (_obj0) | |
9144 | delete _arg0; | |
9145 | } | |
9146 | { | |
9147 | if (_obj1) | |
9148 | delete _arg1; | |
9149 | } | |
9150 | return _resultobj; | |
9151 | } | |
9152 | ||
9153 | #define new_wxMimeTypesManager() (new wxMimeTypesManager()) | |
9154 | static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9155 | PyObject * _resultobj; | |
9156 | wxMimeTypesManager * _result; | |
9157 | char *_kwnames[] = { NULL }; | |
9158 | char _ptemp[128]; | |
9159 | ||
9160 | self = self; | |
9161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames)) | |
9162 | return NULL; | |
9163 | { | |
4268f798 | 9164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9165 | _result = (wxMimeTypesManager *)new_wxMimeTypesManager(); |
b37c7e1d | 9166 | |
4268f798 RD |
9167 | wxPyEndAllowThreads(__tstate); |
9168 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9169 | } if (_result) { |
9170 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p"); | |
9171 | _resultobj = Py_BuildValue("s",_ptemp); | |
9172 | } else { | |
9173 | Py_INCREF(Py_None); | |
9174 | _resultobj = Py_None; | |
9175 | } | |
9176 | return _resultobj; | |
9177 | } | |
9178 | ||
9179 | #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1)) | |
9180 | static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9181 | PyObject * _resultobj; | |
9182 | wxMimeTypesManager * _arg0; | |
9183 | int _arg1 = (int ) (wxMAILCAP_STANDARD); | |
137b5242 | 9184 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9185 | PyObject * _argo0 = 0; |
9186 | PyObject * _obj2 = 0; | |
9187 | char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL }; | |
9188 | ||
9189 | self = self; | |
9190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9191 | return NULL; | |
9192 | if (_argo0) { | |
9193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p."); | |
9196 | return NULL; | |
9197 | } | |
9198 | } | |
9199 | if (_obj2) | |
9200 | { | |
c8bc7bb8 RD |
9201 | _arg2 = wxString_in_helper(_obj2); |
9202 | if (_arg2 == NULL) | |
b37c7e1d | 9203 | return NULL; |
b37c7e1d RD |
9204 | } |
9205 | { | |
4268f798 | 9206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9207 | wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2); |
b37c7e1d | 9208 | |
4268f798 RD |
9209 | wxPyEndAllowThreads(__tstate); |
9210 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9211 | } Py_INCREF(Py_None); |
9212 | _resultobj = Py_None; | |
9213 | { | |
9214 | if (_obj2) | |
9215 | delete _arg2; | |
9216 | } | |
9217 | return _resultobj; | |
9218 | } | |
9219 | ||
9220 | #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData()) | |
9221 | static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9222 | PyObject * _resultobj; | |
9223 | wxMimeTypesManager * _arg0; | |
9224 | PyObject * _argo0 = 0; | |
9225 | char *_kwnames[] = { "self", NULL }; | |
9226 | ||
9227 | self = self; | |
9228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0)) | |
9229 | return NULL; | |
9230 | if (_argo0) { | |
9231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p."); | |
9234 | return NULL; | |
9235 | } | |
9236 | } | |
9237 | { | |
4268f798 | 9238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9239 | wxMimeTypesManager_ClearData(_arg0); |
b37c7e1d | 9240 | |
4268f798 RD |
9241 | wxPyEndAllowThreads(__tstate); |
9242 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9243 | } Py_INCREF(Py_None); |
9244 | _resultobj = Py_None; | |
9245 | return _resultobj; | |
9246 | } | |
9247 | ||
9248 | #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0)) | |
9249 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9250 | PyObject * _resultobj; | |
9251 | wxFileType * _result; | |
9252 | wxMimeTypesManager * _arg0; | |
9253 | wxString * _arg1; | |
9254 | PyObject * _argo0 = 0; | |
9255 | PyObject * _obj1 = 0; | |
9256 | char *_kwnames[] = { "self","ext", NULL }; | |
9257 | char _ptemp[128]; | |
9258 | ||
9259 | self = self; | |
9260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1)) | |
9261 | return NULL; | |
9262 | if (_argo0) { | |
9263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p."); | |
9266 | return NULL; | |
9267 | } | |
9268 | } | |
9269 | { | |
c8bc7bb8 RD |
9270 | _arg1 = wxString_in_helper(_obj1); |
9271 | if (_arg1 == NULL) | |
b37c7e1d | 9272 | return NULL; |
b37c7e1d RD |
9273 | } |
9274 | { | |
4268f798 | 9275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9276 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1); |
b37c7e1d | 9277 | |
4268f798 RD |
9278 | wxPyEndAllowThreads(__tstate); |
9279 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9280 | } if (_result) { |
9281 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9282 | _resultobj = Py_BuildValue("s",_ptemp); | |
9283 | } else { | |
9284 | Py_INCREF(Py_None); | |
9285 | _resultobj = Py_None; | |
9286 | } | |
9287 | { | |
9288 | if (_obj1) | |
9289 | delete _arg1; | |
9290 | } | |
9291 | return _resultobj; | |
9292 | } | |
9293 | ||
9294 | #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0)) | |
9295 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9296 | PyObject * _resultobj; | |
9297 | wxFileType * _result; | |
9298 | wxMimeTypesManager * _arg0; | |
9299 | wxString * _arg1; | |
9300 | PyObject * _argo0 = 0; | |
9301 | PyObject * _obj1 = 0; | |
9302 | char *_kwnames[] = { "self","mimeType", NULL }; | |
9303 | char _ptemp[128]; | |
9304 | ||
9305 | self = self; | |
9306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1)) | |
9307 | return NULL; | |
9308 | if (_argo0) { | |
9309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p."); | |
9312 | return NULL; | |
9313 | } | |
9314 | } | |
9315 | { | |
c8bc7bb8 RD |
9316 | _arg1 = wxString_in_helper(_obj1); |
9317 | if (_arg1 == NULL) | |
b37c7e1d | 9318 | return NULL; |
b37c7e1d RD |
9319 | } |
9320 | { | |
4268f798 | 9321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9322 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_arg0,*_arg1); |
b37c7e1d | 9323 | |
4268f798 RD |
9324 | wxPyEndAllowThreads(__tstate); |
9325 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9326 | } if (_result) { |
9327 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9328 | _resultobj = Py_BuildValue("s",_ptemp); | |
9329 | } else { | |
9330 | Py_INCREF(Py_None); | |
9331 | _resultobj = Py_None; | |
9332 | } | |
9333 | { | |
9334 | if (_obj1) | |
9335 | delete _arg1; | |
9336 | } | |
9337 | return _resultobj; | |
9338 | } | |
9339 | ||
9340 | #define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1)) | |
9341 | static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9342 | PyObject * _resultobj; | |
9343 | bool _result; | |
9344 | wxMimeTypesManager * _arg0; | |
9345 | wxString * _arg1; | |
9346 | bool _arg2 = (bool ) FALSE; | |
9347 | PyObject * _argo0 = 0; | |
9348 | PyObject * _obj1 = 0; | |
9349 | int tempbool2 = (int) FALSE; | |
9350 | char *_kwnames[] = { "self","filename","fallback", NULL }; | |
9351 | ||
9352 | self = self; | |
9353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
9354 | return NULL; | |
9355 | if (_argo0) { | |
9356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p."); | |
9359 | return NULL; | |
9360 | } | |
9361 | } | |
9362 | { | |
c8bc7bb8 RD |
9363 | _arg1 = wxString_in_helper(_obj1); |
9364 | if (_arg1 == NULL) | |
b37c7e1d | 9365 | return NULL; |
b37c7e1d RD |
9366 | } |
9367 | _arg2 = (bool ) tempbool2; | |
9368 | { | |
4268f798 | 9369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9370 | _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2); |
b37c7e1d | 9371 | |
4268f798 RD |
9372 | wxPyEndAllowThreads(__tstate); |
9373 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9374 | } _resultobj = Py_BuildValue("i",_result); |
9375 | { | |
9376 | if (_obj1) | |
9377 | delete _arg1; | |
9378 | } | |
9379 | return _resultobj; | |
9380 | } | |
9381 | ||
9382 | #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0)) | |
9383 | static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9384 | PyObject * _resultobj; | |
9385 | bool _result; | |
9386 | wxMimeTypesManager * _arg0; | |
9387 | wxString * _arg1; | |
9388 | PyObject * _argo0 = 0; | |
9389 | PyObject * _obj1 = 0; | |
9390 | char *_kwnames[] = { "self","filename", NULL }; | |
9391 | ||
9392 | self = self; | |
9393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1)) | |
9394 | return NULL; | |
9395 | if (_argo0) { | |
9396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p."); | |
9399 | return NULL; | |
9400 | } | |
9401 | } | |
9402 | { | |
c8bc7bb8 RD |
9403 | _arg1 = wxString_in_helper(_obj1); |
9404 | if (_arg1 == NULL) | |
b37c7e1d | 9405 | return NULL; |
b37c7e1d RD |
9406 | } |
9407 | { | |
4268f798 | 9408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9409 | _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1); |
b37c7e1d | 9410 | |
4268f798 RD |
9411 | wxPyEndAllowThreads(__tstate); |
9412 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9413 | } _resultobj = Py_BuildValue("i",_result); |
9414 | { | |
9415 | if (_obj1) | |
9416 | delete _arg1; | |
9417 | } | |
9418 | return _resultobj; | |
9419 | } | |
9420 | ||
9421 | static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) { | |
9422 | wxArrayString arr; | |
9423 | self->EnumAllFileTypes(arr); | |
9424 | return wxArrayString2PyList_helper(arr); | |
9425 | } | |
9426 | static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9427 | PyObject * _resultobj; | |
9428 | PyObject * _result; | |
9429 | wxMimeTypesManager * _arg0; | |
9430 | PyObject * _argo0 = 0; | |
9431 | char *_kwnames[] = { "self", NULL }; | |
9432 | ||
9433 | self = self; | |
9434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0)) | |
9435 | return NULL; | |
9436 | if (_argo0) { | |
9437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p."); | |
9440 | return NULL; | |
9441 | } | |
9442 | } | |
9443 | { | |
4268f798 | 9444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9445 | _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0); |
b37c7e1d | 9446 | |
4268f798 RD |
9447 | wxPyEndAllowThreads(__tstate); |
9448 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9449 | }{ |
9450 | _resultobj = _result; | |
9451 | } | |
9452 | return _resultobj; | |
9453 | } | |
9454 | ||
9455 | #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0)) | |
9456 | static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9457 | PyObject * _resultobj; | |
9458 | wxMimeTypesManager * _arg0; | |
9459 | wxFileTypeInfo * _arg1; | |
9460 | PyObject * _argo0 = 0; | |
9461 | PyObject * _argo1 = 0; | |
9462 | char *_kwnames[] = { "self","ft", NULL }; | |
9463 | ||
9464 | self = self; | |
9465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1)) | |
9466 | return NULL; | |
9467 | if (_argo0) { | |
9468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p."); | |
9471 | return NULL; | |
9472 | } | |
9473 | } | |
9474 | if (_argo1) { | |
9475 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9476 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p."); | |
9478 | return NULL; | |
9479 | } | |
9480 | } | |
9481 | { | |
4268f798 | 9482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9483 | wxMimeTypesManager_AddFallback(_arg0,*_arg1); |
b37c7e1d | 9484 | |
4268f798 RD |
9485 | wxPyEndAllowThreads(__tstate); |
9486 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9487 | } Py_INCREF(Py_None); |
9488 | _resultobj = Py_None; | |
9489 | return _resultobj; | |
9490 | } | |
9491 | ||
9492 | #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0)) | |
9493 | static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9494 | PyObject * _resultobj; | |
9495 | wxFileType * _result; | |
9496 | wxMimeTypesManager * _arg0; | |
9497 | wxFileTypeInfo * _arg1; | |
9498 | PyObject * _argo0 = 0; | |
9499 | PyObject * _argo1 = 0; | |
9500 | char *_kwnames[] = { "self","ftInfo", NULL }; | |
9501 | char _ptemp[128]; | |
9502 | ||
9503 | self = self; | |
9504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1)) | |
9505 | return NULL; | |
9506 | if (_argo0) { | |
9507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p."); | |
9510 | return NULL; | |
9511 | } | |
9512 | } | |
9513 | if (_argo1) { | |
9514 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9515 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p."); | |
9517 | return NULL; | |
9518 | } | |
9519 | } | |
9520 | { | |
4268f798 | 9521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9522 | _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1); |
b37c7e1d | 9523 | |
4268f798 RD |
9524 | wxPyEndAllowThreads(__tstate); |
9525 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9526 | } if (_result) { |
9527 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9528 | _resultobj = Py_BuildValue("s",_ptemp); | |
9529 | } else { | |
9530 | Py_INCREF(Py_None); | |
9531 | _resultobj = Py_None; | |
9532 | } | |
9533 | return _resultobj; | |
9534 | } | |
9535 | ||
9536 | #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0)) | |
9537 | static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9538 | PyObject * _resultobj; | |
9539 | bool _result; | |
9540 | wxMimeTypesManager * _arg0; | |
9541 | wxFileType * _arg1; | |
9542 | PyObject * _argo0 = 0; | |
9543 | PyObject * _argo1 = 0; | |
9544 | char *_kwnames[] = { "self","ft", NULL }; | |
9545 | ||
9546 | self = self; | |
9547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1)) | |
9548 | return NULL; | |
9549 | if (_argo0) { | |
9550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p."); | |
9553 | return NULL; | |
9554 | } | |
9555 | } | |
9556 | if (_argo1) { | |
9557 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9558 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) { | |
9559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p."); | |
9560 | return NULL; | |
9561 | } | |
9562 | } | |
9563 | { | |
4268f798 | 9564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9565 | _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1); |
b37c7e1d | 9566 | |
4268f798 RD |
9567 | wxPyEndAllowThreads(__tstate); |
9568 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9569 | } _resultobj = Py_BuildValue("i",_result); |
9570 | return _resultobj; | |
9571 | } | |
9572 | ||
9573 | #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj) | |
9574 | static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9575 | PyObject * _resultobj; | |
9576 | wxMimeTypesManager * _arg0; | |
9577 | PyObject * _argo0 = 0; | |
9578 | char *_kwnames[] = { "self", NULL }; | |
9579 | ||
9580 | self = self; | |
9581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0)) | |
9582 | return NULL; | |
9583 | if (_argo0) { | |
9584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p."); | |
9587 | return NULL; | |
9588 | } | |
9589 | } | |
9590 | { | |
4268f798 | 9591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9592 | delete_wxMimeTypesManager(_arg0); |
b37c7e1d | 9593 | |
4268f798 RD |
9594 | wxPyEndAllowThreads(__tstate); |
9595 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9596 | } Py_INCREF(Py_None); |
9597 | _resultobj = Py_None; | |
9598 | return _resultobj; | |
9599 | } | |
9600 | ||
72797a7d RD |
9601 | static void *SwigwxPyArtProviderTowxObject(void *ptr) { |
9602 | wxPyArtProvider *src; | |
9603 | wxObject *dest; | |
9604 | src = (wxPyArtProvider *) ptr; | |
9605 | dest = (wxObject *) src; | |
9606 | return (void *) dest; | |
9607 | } | |
9608 | ||
9609 | #define new_wxArtProvider() (new wxPyArtProvider()) | |
9610 | static PyObject *_wrap_new_wxArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9611 | PyObject * _resultobj; | |
9612 | wxPyArtProvider * _result; | |
9613 | char *_kwnames[] = { NULL }; | |
9614 | char _ptemp[128]; | |
9615 | ||
9616 | self = self; | |
9617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxArtProvider",_kwnames)) | |
9618 | return NULL; | |
9619 | { | |
9620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9621 | _result = (wxPyArtProvider *)new_wxArtProvider(); | |
9622 | ||
9623 | wxPyEndAllowThreads(__tstate); | |
9624 | if (PyErr_Occurred()) return NULL; | |
9625 | } if (_result) { | |
9626 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyArtProvider_p"); | |
9627 | _resultobj = Py_BuildValue("s",_ptemp); | |
9628 | } else { | |
9629 | Py_INCREF(Py_None); | |
9630 | _resultobj = Py_None; | |
9631 | } | |
9632 | return _resultobj; | |
9633 | } | |
9634 | ||
9635 | #define wxArtProvider__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
9636 | static PyObject *_wrap_wxArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9637 | PyObject * _resultobj; | |
9638 | wxPyArtProvider * _arg0; | |
9639 | PyObject * _arg1; | |
9640 | PyObject * _arg2; | |
9641 | PyObject * _argo0 = 0; | |
9642 | PyObject * _obj1 = 0; | |
9643 | PyObject * _obj2 = 0; | |
9644 | char *_kwnames[] = { "self","self","_class", NULL }; | |
9645 | ||
9646 | self = self; | |
9647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxArtProvider__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9648 | return NULL; | |
9649 | if (_argo0) { | |
9650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider__setCallbackInfo. Expected _wxPyArtProvider_p."); | |
9653 | return NULL; | |
9654 | } | |
9655 | } | |
9656 | { | |
9657 | _arg1 = _obj1; | |
9658 | } | |
9659 | { | |
9660 | _arg2 = _obj2; | |
9661 | } | |
9662 | { | |
9663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9664 | wxArtProvider__setCallbackInfo(_arg0,_arg1,_arg2); | |
9665 | ||
9666 | wxPyEndAllowThreads(__tstate); | |
9667 | if (PyErr_Occurred()) return NULL; | |
9668 | } Py_INCREF(Py_None); | |
9669 | _resultobj = Py_None; | |
9670 | return _resultobj; | |
9671 | } | |
9672 | ||
9673 | static PyObject *_wrap_wxArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9674 | PyObject * _resultobj; | |
9675 | wxPyArtProvider * _arg0; | |
9676 | PyObject * _argo0 = 0; | |
9677 | char *_kwnames[] = { "provider", NULL }; | |
9678 | ||
9679 | self = self; | |
9680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_PushProvider",_kwnames,&_argo0)) | |
9681 | return NULL; | |
9682 | if (_argo0) { | |
9683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_PushProvider. Expected _wxPyArtProvider_p."); | |
9686 | return NULL; | |
9687 | } | |
9688 | } | |
9689 | { | |
9690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9691 | wxPyArtProvider::PushProvider(_arg0); | |
9692 | ||
9693 | wxPyEndAllowThreads(__tstate); | |
9694 | if (PyErr_Occurred()) return NULL; | |
9695 | } Py_INCREF(Py_None); | |
9696 | _resultobj = Py_None; | |
9697 | return _resultobj; | |
9698 | } | |
9699 | ||
9700 | static PyObject *_wrap_wxArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9701 | PyObject * _resultobj; | |
9702 | bool _result; | |
9703 | char *_kwnames[] = { NULL }; | |
9704 | ||
9705 | self = self; | |
9706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxArtProvider_PopProvider",_kwnames)) | |
9707 | return NULL; | |
9708 | { | |
9709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9710 | _result = (bool )wxPyArtProvider::PopProvider(); | |
9711 | ||
9712 | wxPyEndAllowThreads(__tstate); | |
9713 | if (PyErr_Occurred()) return NULL; | |
9714 | } _resultobj = Py_BuildValue("i",_result); | |
9715 | return _resultobj; | |
9716 | } | |
9717 | ||
9718 | static PyObject *_wrap_wxArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9719 | PyObject * _resultobj; | |
9720 | bool _result; | |
9721 | wxPyArtProvider * _arg0; | |
9722 | PyObject * _argo0 = 0; | |
9723 | char *_kwnames[] = { "provider", NULL }; | |
9724 | ||
9725 | self = self; | |
9726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_RemoveProvider",_kwnames,&_argo0)) | |
9727 | return NULL; | |
9728 | if (_argo0) { | |
9729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_RemoveProvider. Expected _wxPyArtProvider_p."); | |
9732 | return NULL; | |
9733 | } | |
9734 | } | |
9735 | { | |
9736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9737 | _result = (bool )wxPyArtProvider::RemoveProvider(_arg0); | |
9738 | ||
9739 | wxPyEndAllowThreads(__tstate); | |
9740 | if (PyErr_Occurred()) return NULL; | |
9741 | } _resultobj = Py_BuildValue("i",_result); | |
9742 | return _resultobj; | |
9743 | } | |
9744 | ||
9745 | static PyObject *_wrap_wxArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9746 | PyObject * _resultobj; | |
9747 | wxBitmap * _result; | |
9748 | wxString * _arg0; | |
9749 | wxString * _arg1 = (wxString *) &wxPyART_OTHER; | |
9750 | wxSize * _arg2 = (wxSize *) &wxDefaultSize; | |
9751 | PyObject * _obj0 = 0; | |
9752 | PyObject * _obj1 = 0; | |
9753 | wxSize temp; | |
9754 | PyObject * _obj2 = 0; | |
9755 | char *_kwnames[] = { "id","client","size", NULL }; | |
9756 | char _ptemp[128]; | |
9757 | ||
9758 | self = self; | |
9759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetBitmap",_kwnames,&_obj0,&_obj1,&_obj2)) | |
9760 | return NULL; | |
9761 | { | |
9762 | _arg0 = wxString_in_helper(_obj0); | |
9763 | if (_arg0 == NULL) | |
9764 | return NULL; | |
9765 | } | |
9766 | if (_obj1) | |
9767 | { | |
9768 | _arg1 = wxString_in_helper(_obj1); | |
9769 | if (_arg1 == NULL) | |
9770 | return NULL; | |
9771 | } | |
9772 | if (_obj2) | |
9773 | { | |
9774 | _arg2 = &temp; | |
9775 | if (! wxSize_helper(_obj2, &_arg2)) | |
9776 | return NULL; | |
9777 | } | |
9778 | { | |
9779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9780 | _result = new wxBitmap (wxPyArtProvider::GetBitmap(*_arg0,*_arg1,*_arg2)); | |
9781 | ||
9782 | wxPyEndAllowThreads(__tstate); | |
9783 | if (PyErr_Occurred()) return NULL; | |
9784 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
9785 | _resultobj = Py_BuildValue("s",_ptemp); | |
9786 | { | |
9787 | if (_obj0) | |
9788 | delete _arg0; | |
9789 | } | |
9790 | { | |
9791 | if (_obj1) | |
9792 | delete _arg1; | |
9793 | } | |
9794 | return _resultobj; | |
9795 | } | |
9796 | ||
9797 | static PyObject *_wrap_wxArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9798 | PyObject * _resultobj; | |
9799 | wxIcon * _result; | |
9800 | wxString * _arg0; | |
9801 | wxString * _arg1 = (wxString *) &wxPyART_OTHER; | |
9802 | wxSize * _arg2 = (wxSize *) &wxDefaultSize; | |
9803 | PyObject * _obj0 = 0; | |
9804 | PyObject * _obj1 = 0; | |
9805 | wxSize temp; | |
9806 | PyObject * _obj2 = 0; | |
9807 | char *_kwnames[] = { "id","client","size", NULL }; | |
9808 | char _ptemp[128]; | |
9809 | ||
9810 | self = self; | |
9811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetIcon",_kwnames,&_obj0,&_obj1,&_obj2)) | |
9812 | return NULL; | |
9813 | { | |
9814 | _arg0 = wxString_in_helper(_obj0); | |
9815 | if (_arg0 == NULL) | |
9816 | return NULL; | |
9817 | } | |
9818 | if (_obj1) | |
9819 | { | |
9820 | _arg1 = wxString_in_helper(_obj1); | |
9821 | if (_arg1 == NULL) | |
9822 | return NULL; | |
9823 | } | |
9824 | if (_obj2) | |
9825 | { | |
9826 | _arg2 = &temp; | |
9827 | if (! wxSize_helper(_obj2, &_arg2)) | |
9828 | return NULL; | |
9829 | } | |
9830 | { | |
9831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9832 | _result = new wxIcon (wxPyArtProvider::GetIcon(*_arg0,*_arg1,*_arg2)); | |
9833 | ||
9834 | wxPyEndAllowThreads(__tstate); | |
9835 | if (PyErr_Occurred()) return NULL; | |
9836 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); | |
9837 | _resultobj = Py_BuildValue("s",_ptemp); | |
9838 | { | |
9839 | if (_obj0) | |
9840 | delete _arg0; | |
9841 | } | |
9842 | { | |
9843 | if (_obj1) | |
9844 | delete _arg1; | |
9845 | } | |
9846 | return _resultobj; | |
9847 | } | |
9848 | ||
9849 | static PyObject *_wrap_wxArtProvider_CleanUpProviders(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9850 | PyObject * _resultobj; | |
9851 | char *_kwnames[] = { NULL }; | |
9852 | ||
9853 | self = self; | |
9854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxArtProvider_CleanUpProviders",_kwnames)) | |
9855 | return NULL; | |
9856 | { | |
9857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9858 | wxPyArtProvider::CleanUpProviders(); | |
9859 | ||
9860 | wxPyEndAllowThreads(__tstate); | |
9861 | if (PyErr_Occurred()) return NULL; | |
9862 | } Py_INCREF(Py_None); | |
9863 | _resultobj = Py_None; | |
9864 | return _resultobj; | |
9865 | } | |
9866 | ||
7dbce44a RD |
9867 | static void *SwigwxFileHistoryTowxObject(void *ptr) { |
9868 | wxFileHistory *src; | |
9869 | wxObject *dest; | |
9870 | src = (wxFileHistory *) ptr; | |
9871 | dest = (wxObject *) src; | |
9872 | return (void *) dest; | |
9873 | } | |
9874 | ||
9875 | #define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0)) | |
9876 | static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9877 | PyObject * _resultobj; | |
9878 | wxFileHistory * _result; | |
9879 | int _arg0 = (int ) 9; | |
9880 | char *_kwnames[] = { "maxFiles", NULL }; | |
9881 | char _ptemp[128]; | |
9882 | ||
9883 | self = self; | |
9884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0)) | |
9885 | return NULL; | |
9886 | { | |
4268f798 | 9887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9888 | _result = (wxFileHistory *)new_wxFileHistory(_arg0); |
7dbce44a | 9889 | |
4268f798 RD |
9890 | wxPyEndAllowThreads(__tstate); |
9891 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9892 | } if (_result) { |
9893 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p"); | |
9894 | _resultobj = Py_BuildValue("s",_ptemp); | |
9895 | } else { | |
9896 | Py_INCREF(Py_None); | |
9897 | _resultobj = Py_None; | |
9898 | } | |
9899 | return _resultobj; | |
9900 | } | |
9901 | ||
9902 | #define delete_wxFileHistory(_swigobj) (delete _swigobj) | |
9903 | static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9904 | PyObject * _resultobj; | |
9905 | wxFileHistory * _arg0; | |
9906 | PyObject * _argo0 = 0; | |
9907 | char *_kwnames[] = { "self", NULL }; | |
9908 | ||
9909 | self = self; | |
9910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0)) | |
9911 | return NULL; | |
9912 | if (_argo0) { | |
9913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileHistory. Expected _wxFileHistory_p."); | |
9916 | return NULL; | |
9917 | } | |
9918 | } | |
9919 | { | |
4268f798 | 9920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9921 | delete_wxFileHistory(_arg0); |
7dbce44a | 9922 | |
4268f798 RD |
9923 | wxPyEndAllowThreads(__tstate); |
9924 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9925 | } Py_INCREF(Py_None); |
9926 | _resultobj = Py_None; | |
9927 | return _resultobj; | |
9928 | } | |
9929 | ||
9930 | #define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0)) | |
9931 | static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9932 | PyObject * _resultobj; | |
9933 | wxFileHistory * _arg0; | |
9934 | wxString * _arg1; | |
9935 | PyObject * _argo0 = 0; | |
9936 | PyObject * _obj1 = 0; | |
9937 | char *_kwnames[] = { "self","file", NULL }; | |
9938 | ||
9939 | self = self; | |
9940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1)) | |
9941 | return NULL; | |
9942 | if (_argo0) { | |
9943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p."); | |
9946 | return NULL; | |
9947 | } | |
9948 | } | |
9949 | { | |
c8bc7bb8 RD |
9950 | _arg1 = wxString_in_helper(_obj1); |
9951 | if (_arg1 == NULL) | |
7dbce44a | 9952 | return NULL; |
7dbce44a RD |
9953 | } |
9954 | { | |
4268f798 | 9955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9956 | wxFileHistory_AddFileToHistory(_arg0,*_arg1); |
7dbce44a | 9957 | |
4268f798 RD |
9958 | wxPyEndAllowThreads(__tstate); |
9959 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9960 | } Py_INCREF(Py_None); |
9961 | _resultobj = Py_None; | |
9962 | { | |
9963 | if (_obj1) | |
9964 | delete _arg1; | |
9965 | } | |
9966 | return _resultobj; | |
9967 | } | |
9968 | ||
9969 | #define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0)) | |
9970 | static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9971 | PyObject * _resultobj; | |
9972 | wxFileHistory * _arg0; | |
9973 | int _arg1; | |
9974 | PyObject * _argo0 = 0; | |
9975 | char *_kwnames[] = { "self","i", NULL }; | |
9976 | ||
9977 | self = self; | |
9978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1)) | |
9979 | return NULL; | |
9980 | if (_argo0) { | |
9981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p."); | |
9984 | return NULL; | |
9985 | } | |
9986 | } | |
9987 | { | |
4268f798 | 9988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9989 | wxFileHistory_RemoveFileFromHistory(_arg0,_arg1); |
7dbce44a | 9990 | |
4268f798 RD |
9991 | wxPyEndAllowThreads(__tstate); |
9992 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9993 | } Py_INCREF(Py_None); |
9994 | _resultobj = Py_None; | |
9995 | return _resultobj; | |
9996 | } | |
9997 | ||
9998 | #define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles()) | |
9999 | static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10000 | PyObject * _resultobj; | |
10001 | int _result; | |
10002 | wxFileHistory * _arg0; | |
10003 | PyObject * _argo0 = 0; | |
10004 | char *_kwnames[] = { "self", NULL }; | |
10005 | ||
10006 | self = self; | |
10007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0)) | |
10008 | return NULL; | |
10009 | if (_argo0) { | |
10010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p."); | |
10013 | return NULL; | |
10014 | } | |
10015 | } | |
10016 | { | |
4268f798 | 10017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10018 | _result = (int )wxFileHistory_GetMaxFiles(_arg0); |
7dbce44a | 10019 | |
4268f798 RD |
10020 | wxPyEndAllowThreads(__tstate); |
10021 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10022 | } _resultobj = Py_BuildValue("i",_result); |
10023 | return _resultobj; | |
10024 | } | |
10025 | ||
10026 | #define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0)) | |
10027 | static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10028 | PyObject * _resultobj; | |
10029 | wxFileHistory * _arg0; | |
10030 | wxMenu * _arg1; | |
10031 | PyObject * _argo0 = 0; | |
10032 | PyObject * _argo1 = 0; | |
10033 | char *_kwnames[] = { "self","menu", NULL }; | |
10034 | ||
10035 | self = self; | |
10036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1)) | |
10037 | return NULL; | |
10038 | if (_argo0) { | |
10039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p."); | |
10042 | return NULL; | |
10043 | } | |
10044 | } | |
10045 | if (_argo1) { | |
10046 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10047 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p."); | |
10049 | return NULL; | |
10050 | } | |
10051 | } | |
10052 | { | |
4268f798 | 10053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10054 | wxFileHistory_UseMenu(_arg0,_arg1); |
7dbce44a | 10055 | |
4268f798 RD |
10056 | wxPyEndAllowThreads(__tstate); |
10057 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10058 | } Py_INCREF(Py_None); |
10059 | _resultobj = Py_None; | |
10060 | return _resultobj; | |
10061 | } | |
10062 | ||
10063 | #define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0)) | |
10064 | static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10065 | PyObject * _resultobj; | |
10066 | wxFileHistory * _arg0; | |
10067 | wxMenu * _arg1; | |
10068 | PyObject * _argo0 = 0; | |
10069 | PyObject * _argo1 = 0; | |
10070 | char *_kwnames[] = { "self","menu", NULL }; | |
10071 | ||
10072 | self = self; | |
10073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1)) | |
10074 | return NULL; | |
10075 | if (_argo0) { | |
10076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p."); | |
10079 | return NULL; | |
10080 | } | |
10081 | } | |
10082 | if (_argo1) { | |
10083 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10084 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p."); | |
10086 | return NULL; | |
10087 | } | |
10088 | } | |
10089 | { | |
4268f798 | 10090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10091 | wxFileHistory_RemoveMenu(_arg0,_arg1); |
7dbce44a | 10092 | |
4268f798 RD |
10093 | wxPyEndAllowThreads(__tstate); |
10094 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10095 | } Py_INCREF(Py_None); |
10096 | _resultobj = Py_None; | |
10097 | return _resultobj; | |
10098 | } | |
10099 | ||
10100 | #define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0)) | |
10101 | static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10102 | PyObject * _resultobj; | |
10103 | wxFileHistory * _arg0; | |
10104 | wxConfigBase * _arg1; | |
10105 | PyObject * _argo0 = 0; | |
10106 | PyObject * _argo1 = 0; | |
10107 | char *_kwnames[] = { "self","config", NULL }; | |
10108 | ||
10109 | self = self; | |
10110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1)) | |
10111 | return NULL; | |
10112 | if (_argo0) { | |
10113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p."); | |
10116 | return NULL; | |
10117 | } | |
10118 | } | |
10119 | if (_argo1) { | |
10120 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10121 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
10122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p."); | |
10123 | return NULL; | |
10124 | } | |
10125 | } | |
10126 | { | |
4268f798 | 10127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10128 | wxFileHistory_Load(_arg0,*_arg1); |
7dbce44a | 10129 | |
4268f798 RD |
10130 | wxPyEndAllowThreads(__tstate); |
10131 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10132 | } Py_INCREF(Py_None); |
10133 | _resultobj = Py_None; | |
10134 | return _resultobj; | |
10135 | } | |
10136 | ||
10137 | #define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0)) | |
10138 | static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10139 | PyObject * _resultobj; | |
10140 | wxFileHistory * _arg0; | |
10141 | wxConfigBase * _arg1; | |
10142 | PyObject * _argo0 = 0; | |
10143 | PyObject * _argo1 = 0; | |
10144 | char *_kwnames[] = { "self","config", NULL }; | |
10145 | ||
10146 | self = self; | |
10147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1)) | |
10148 | return NULL; | |
10149 | if (_argo0) { | |
10150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p."); | |
10153 | return NULL; | |
10154 | } | |
10155 | } | |
10156 | if (_argo1) { | |
10157 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10158 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
10159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p."); | |
10160 | return NULL; | |
10161 | } | |
10162 | } | |
10163 | { | |
4268f798 | 10164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10165 | wxFileHistory_Save(_arg0,*_arg1); |
7dbce44a | 10166 | |
4268f798 RD |
10167 | wxPyEndAllowThreads(__tstate); |
10168 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10169 | } Py_INCREF(Py_None); |
10170 | _resultobj = Py_None; | |
10171 | return _resultobj; | |
10172 | } | |
10173 | ||
10174 | #define wxFileHistory_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu()) | |
10175 | static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10176 | PyObject * _resultobj; | |
10177 | wxFileHistory * _arg0; | |
10178 | PyObject * _argo0 = 0; | |
10179 | char *_kwnames[] = { "self", NULL }; | |
10180 | ||
10181 | self = self; | |
10182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0)) | |
10183 | return NULL; | |
10184 | if (_argo0) { | |
10185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p."); | |
10188 | return NULL; | |
10189 | } | |
10190 | } | |
10191 | { | |
4268f798 | 10192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10193 | wxFileHistory_AddFilesToMenu(_arg0); |
7dbce44a | 10194 | |
4268f798 RD |
10195 | wxPyEndAllowThreads(__tstate); |
10196 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10197 | } Py_INCREF(Py_None); |
10198 | _resultobj = Py_None; | |
10199 | return _resultobj; | |
10200 | } | |
10201 | ||
68bc8549 RD |
10202 | #define wxFileHistory_AddFilesToThisMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0)) |
10203 | static PyObject *_wrap_wxFileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7dbce44a RD |
10204 | PyObject * _resultobj; |
10205 | wxFileHistory * _arg0; | |
10206 | wxMenu * _arg1; | |
10207 | PyObject * _argo0 = 0; | |
10208 | PyObject * _argo1 = 0; | |
10209 | char *_kwnames[] = { "self","menu", NULL }; | |
10210 | ||
10211 | self = self; | |
68bc8549 | 10212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToThisMenu",_kwnames,&_argo0,&_argo1)) |
7dbce44a RD |
10213 | return NULL; |
10214 | if (_argo0) { | |
10215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
68bc8549 | 10217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToThisMenu. Expected _wxFileHistory_p."); |
7dbce44a RD |
10218 | return NULL; |
10219 | } | |
10220 | } | |
10221 | if (_argo1) { | |
10222 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10223 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
68bc8549 | 10224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToThisMenu. Expected _wxMenu_p."); |
7dbce44a RD |
10225 | return NULL; |
10226 | } | |
10227 | } | |
10228 | { | |
4268f798 | 10229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
68bc8549 | 10230 | wxFileHistory_AddFilesToThisMenu(_arg0,_arg1); |
7dbce44a | 10231 | |
4268f798 RD |
10232 | wxPyEndAllowThreads(__tstate); |
10233 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10234 | } Py_INCREF(Py_None); |
10235 | _resultobj = Py_None; | |
10236 | return _resultobj; | |
10237 | } | |
10238 | ||
10239 | #define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0)) | |
10240 | static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10241 | PyObject * _resultobj; | |
10242 | wxString * _result; | |
10243 | wxFileHistory * _arg0; | |
10244 | int _arg1; | |
10245 | PyObject * _argo0 = 0; | |
10246 | char *_kwnames[] = { "self","i", NULL }; | |
10247 | ||
10248 | self = self; | |
10249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1)) | |
10250 | return NULL; | |
10251 | if (_argo0) { | |
10252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p."); | |
10255 | return NULL; | |
10256 | } | |
10257 | } | |
10258 | { | |
4268f798 | 10259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10260 | _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1)); |
7dbce44a | 10261 | |
4268f798 RD |
10262 | wxPyEndAllowThreads(__tstate); |
10263 | if (PyErr_Occurred()) return NULL; | |
7dbce44a | 10264 | }{ |
c8bc7bb8 RD |
10265 | #if wxUSE_UNICODE |
10266 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10267 | #else | |
7dbce44a | 10268 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10269 | #endif |
7dbce44a RD |
10270 | } |
10271 | { | |
10272 | delete _result; | |
10273 | } | |
10274 | return _resultobj; | |
10275 | } | |
10276 | ||
10277 | #define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount()) | |
10278 | static PyObject *_wrap_wxFileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10279 | PyObject * _resultobj; | |
10280 | int _result; | |
10281 | wxFileHistory * _arg0; | |
10282 | PyObject * _argo0 = 0; | |
10283 | char *_kwnames[] = { "self", NULL }; | |
10284 | ||
10285 | self = self; | |
10286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetCount",_kwnames,&_argo0)) | |
10287 | return NULL; | |
10288 | if (_argo0) { | |
10289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetCount. Expected _wxFileHistory_p."); | |
10292 | return NULL; | |
10293 | } | |
10294 | } | |
10295 | { | |
4268f798 | 10296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10297 | _result = (int )wxFileHistory_GetCount(_arg0); |
7dbce44a | 10298 | |
4268f798 RD |
10299 | wxPyEndAllowThreads(__tstate); |
10300 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10301 | } _resultobj = Py_BuildValue("i",_result); |
10302 | return _resultobj; | |
10303 | } | |
10304 | ||
10305 | #define wxFileHistory_GetNoHistoryFiles(_swigobj) (_swigobj->GetNoHistoryFiles()) | |
10306 | static PyObject *_wrap_wxFileHistory_GetNoHistoryFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10307 | PyObject * _resultobj; | |
10308 | int _result; | |
10309 | wxFileHistory * _arg0; | |
10310 | PyObject * _argo0 = 0; | |
10311 | char *_kwnames[] = { "self", NULL }; | |
10312 | ||
10313 | self = self; | |
10314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetNoHistoryFiles",_kwnames,&_argo0)) | |
10315 | return NULL; | |
10316 | if (_argo0) { | |
10317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetNoHistoryFiles. Expected _wxFileHistory_p."); | |
10320 | return NULL; | |
10321 | } | |
10322 | } | |
10323 | { | |
4268f798 | 10324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10325 | _result = (int )wxFileHistory_GetNoHistoryFiles(_arg0); |
7dbce44a | 10326 | |
4268f798 RD |
10327 | wxPyEndAllowThreads(__tstate); |
10328 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10329 | } _resultobj = Py_BuildValue("i",_result); |
10330 | return _resultobj; | |
10331 | } | |
10332 | ||
bb0054cd | 10333 | static PyMethodDef misc2cMethods[] = { |
7dbce44a RD |
10334 | { "wxFileHistory_GetNoHistoryFiles", (PyCFunction) _wrap_wxFileHistory_GetNoHistoryFiles, METH_VARARGS | METH_KEYWORDS }, |
10335 | { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
10336 | { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
68bc8549 | 10337 | { "wxFileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, |
7dbce44a RD |
10338 | { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, |
10339 | { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
10340 | { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
10341 | { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
10342 | { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
10343 | { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
10344 | { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
10345 | { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
10346 | { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
10347 | { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
72797a7d RD |
10348 | { "wxArtProvider_CleanUpProviders", (PyCFunction) _wrap_wxArtProvider_CleanUpProviders, METH_VARARGS | METH_KEYWORDS }, |
10349 | { "wxArtProvider_GetIcon", (PyCFunction) _wrap_wxArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10350 | { "wxArtProvider_GetBitmap", (PyCFunction) _wrap_wxArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10351 | { "wxArtProvider_RemoveProvider", (PyCFunction) _wrap_wxArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
10352 | { "wxArtProvider_PopProvider", (PyCFunction) _wrap_wxArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
10353 | { "wxArtProvider_PushProvider", (PyCFunction) _wrap_wxArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
10354 | { "wxArtProvider__setCallbackInfo", (PyCFunction) _wrap_wxArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
10355 | { "new_wxArtProvider", (PyCFunction) _wrap_new_wxArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
10356 | { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, |
10357 | { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
10358 | { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
10359 | { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
10360 | { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
10361 | { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
10362 | { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
10363 | { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
10364 | { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
10365 | { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
10366 | { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
10367 | { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
10368 | { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
10369 | { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
10370 | { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
10371 | { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
10372 | { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
10373 | { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
10374 | { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
10375 | { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
10376 | { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
10377 | { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
10378 | { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
10379 | { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10380 | { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
10381 | { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
10382 | { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
10383 | { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
10384 | { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
10385 | { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
10386 | { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
10387 | { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
10388 | { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
10389 | { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
10390 | { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
10391 | { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
10392 | { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
10393 | { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
10394 | { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10395 | { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
10396 | { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
10397 | { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
10398 | { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 RD |
10399 | { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS }, |
10400 | { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10401 | { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
10402 | { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
185d7c3e RD |
10403 | { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, |
10404 | { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
10405 | { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
10406 | { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
10407 | { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
10408 | { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
10409 | { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
10410 | { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
10411 | { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
10412 | { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
10413 | { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
10414 | { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
10415 | { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
10416 | { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
10417 | { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
10418 | { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
10419 | { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
10420 | { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
10421 | { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
10422 | { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
10423 | { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
10424 | { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
10425 | { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
10426 | { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
10427 | { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
10428 | { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
10429 | { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
10430 | { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
10431 | { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
10432 | { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
10433 | { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
10434 | { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10435 | { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
10436 | { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
10437 | { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
10438 | { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
10439 | { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
10440 | { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
10441 | { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
10442 | { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
10443 | { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
10444 | { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 10445 | { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
185d7c3e | 10446 | { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
10447 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, |
10448 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
10449 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
10450 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
10451 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
10452 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
10453 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
10454 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10455 | { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
10456 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, |
10457 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
814f509c RD |
10458 | { "wxProcess_Open", (PyCFunction) _wrap_wxProcess_Open, METH_VARARGS | METH_KEYWORDS }, |
10459 | { "wxProcess_Exists", (PyCFunction) _wrap_wxProcess_Exists, METH_VARARGS | METH_KEYWORDS }, | |
10460 | { "wxProcess_Kill", (PyCFunction) _wrap_wxProcess_Kill, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
10461 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, |
10462 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
10463 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
10464 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
10465 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
10466 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
10467 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 10468 | { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 10469 | { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 10470 | { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS }, |
19e30148 RD |
10471 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, |
10472 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
10473 | { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, |
10474 | { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10475 | { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
10476 | { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
10477 | { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10478 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, |
10479 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10480 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
10481 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
10482 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10483 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
10484 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
10485 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10486 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 10487 | { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10488 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, |
10489 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10490 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
10491 | { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, |
10492 | { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
10493 | { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10494 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, |
10495 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10496 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10497 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
10498 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10499 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
10500 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
10501 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
10502 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
10503 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
10504 | { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10505 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, | |
10506 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
10507 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
10508 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10509 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
10510 | { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS }, |
10511 | { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
10512 | { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
10513 | { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
68320e40 | 10514 | { "delete_wxStopWatch", (PyCFunction) _wrap_delete_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
b37c7e1d | 10515 | { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10516 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, |
10517 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
10518 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
10519 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
10520 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
10521 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
10522 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
10523 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
10524 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
10525 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
10526 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
10527 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
10528 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
10529 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
10530 | { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS }, | |
10531 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
10e07c70 | 10532 | { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 10533 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
cdf14688 RD |
10534 | { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, |
10535 | { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
10536 | { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
10537 | { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10538 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
10539 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
10540 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
10541 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10542 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
10543 | { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, |
10544 | { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
10545 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, |
10546 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f RD |
10547 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, |
10548 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
10549 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, |
10550 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10551 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, |
10552 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
10553 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, |
10554 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10555 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10556 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10557 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10558 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10559 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10560 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10561 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10562 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
10563 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
edf2f43e RD |
10564 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, |
10565 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10566 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
10567 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10568 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
10569 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
e67409dc RD |
10570 | { "wxSystemSettings_SetScreenType", (PyCFunction) _wrap_wxSystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, |
10571 | { "wxSystemSettings_GetScreenType", (PyCFunction) _wrap_wxSystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
10572 | { "wxSystemSettings_HasFeature", (PyCFunction) _wrap_wxSystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, |
10573 | { "wxSystemSettings_GetMetric", (PyCFunction) _wrap_wxSystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
10574 | { "wxSystemSettings_GetFont", (PyCFunction) _wrap_wxSystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10575 | { "wxSystemSettings_GetColour", (PyCFunction) _wrap_wxSystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 | 10576 | { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10577 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, |
0b85cc38 | 10578 | { "wxSafeShowMessage", (PyCFunction) _wrap_wxSafeShowMessage, METH_VARARGS | METH_KEYWORDS }, |
be13a6af RD |
10579 | { "wxLogGeneric", (PyCFunction) _wrap_wxLogGeneric, METH_VARARGS | METH_KEYWORDS }, |
10580 | { "wxLogTraceMask", (PyCFunction) _wrap_wxLogTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10581 | { "wxLogTrace", (PyCFunction) _wrap_wxLogTrace, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10582 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, |
10583 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
10584 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
10585 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10586 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, | |
10587 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
10588 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
10589 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
10590 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
10591 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
10592 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10593 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, |
10594 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
10595 | { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS }, |
10596 | { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
10597 | { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
10598 | { "wxWakeUpMainThread", (PyCFunction) _wrap_wxWakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10599 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10600 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, |
6e18ca6c | 10601 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 RD |
10602 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, |
10603 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10604 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, |
10605 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
10606 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
10607 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
10608 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
10609 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
10610 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10611 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
10612 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
2a74d141 | 10613 | { "wxGetTopLevelParent", (PyCFunction) _wrap_wxGetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, |
25832b3f | 10614 | { "wxFlushEvents", (PyCFunction) _wrap_wxFlushEvents, METH_VARARGS | METH_KEYWORDS }, |
493f1553 RD |
10615 | { "wxCheckForInterrupt", (PyCFunction) _wrap_wxCheckForInterrupt, METH_VARARGS | METH_KEYWORDS }, |
10616 | { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
10617 | { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10618 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, |
10619 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 10620 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, |
91c41b30 RD |
10621 | { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, |
10622 | { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
1e7ecb7b RD |
10623 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, |
10624 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
10625 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10626 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10627 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10628 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, |
10629 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
10630 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
10631 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
10632 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
10633 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10634 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, |
06c0fba4 | 10635 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, |
7cdaed0b | 10636 | { "wxDirSelector", (PyCFunction) _wrap_wxDirSelector, METH_VARARGS | METH_KEYWORDS }, |
a541c325 RD |
10637 | { "wxSaveFileSelector", (PyCFunction) _wrap_wxSaveFileSelector, METH_VARARGS | METH_KEYWORDS }, |
10638 | { "wxLoadFileSelector", (PyCFunction) _wrap_wxLoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 10639 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, |
bb0054cd RD |
10640 | { NULL, NULL } |
10641 | }; | |
1d99702e RD |
10642 | #ifdef __cplusplus |
10643 | } | |
10644 | #endif | |
10645 | /* | |
10646 | * This table is used by the pointer type-checker | |
10647 | */ | |
10648 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
c368d904 | 10649 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, |
1d99702e | 10650 | { "_signed_long","_long",0}, |
b1462dfa | 10651 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10652 | { "_wxPrintQuality","_int",0}, |
10653 | { "_wxPrintQuality","_signed_int",0}, | |
10654 | { "_wxPrintQuality","_unsigned_int",0}, | |
10655 | { "_wxPrintQuality","_wxWindowID",0}, | |
10656 | { "_wxPrintQuality","_uint",0}, | |
10657 | { "_wxPrintQuality","_EBool",0}, | |
10658 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10659 | { "_wxPrintQuality","_time_t",0}, |
76bfdc78 RD |
10660 | { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog}, |
10661 | { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog}, | |
f6bcfd97 | 10662 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, |
f6bcfd97 | 10663 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, |
f6bcfd97 | 10664 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, |
f6bcfd97 | 10665 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, |
1d99702e | 10666 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10667 | { "_long","_unsigned_long",0}, |
10668 | { "_long","_signed_long",0}, | |
b1462dfa | 10669 | { "_size_t","_wxCoord",0}, |
1d99702e | 10670 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10671 | { "_size_t","_time_t",0}, |
1d99702e RD |
10672 | { "_size_t","_unsigned_int",0}, |
10673 | { "_size_t","_int",0}, | |
10674 | { "_size_t","_wxWindowID",0}, | |
10675 | { "_size_t","_uint",0}, | |
b1462dfa | 10676 | { "_uint","_wxCoord",0}, |
1d99702e | 10677 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10678 | { "_uint","_time_t",0}, |
1d99702e RD |
10679 | { "_uint","_size_t",0}, |
10680 | { "_uint","_unsigned_int",0}, | |
10681 | { "_uint","_int",0}, | |
10682 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10683 | { "_wxChar","_char",0}, |
f6bcfd97 | 10684 | { "_char","_wxChar",0}, |
cdf14688 | 10685 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10686 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10687 | { "_EBool","_wxPrintQuality",0}, |
10688 | { "_EBool","_signed_int",0}, | |
10689 | { "_EBool","_int",0}, | |
10690 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10691 | { "_unsigned_long","_long",0}, |
cdf14688 | 10692 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 10693 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10694 | { "_signed_int","_wxPrintQuality",0}, |
10695 | { "_signed_int","_EBool",0}, | |
10696 | { "_signed_int","_wxWindowID",0}, | |
10697 | { "_signed_int","_int",0}, | |
7dbce44a | 10698 | { "_WXTYPE","_wxDateTime_t",0}, |
1d99702e RD |
10699 | { "_WXTYPE","_short",0}, |
10700 | { "_WXTYPE","_signed_short",0}, | |
10701 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 | 10702 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, |
7dbce44a | 10703 | { "_unsigned_short","_wxDateTime_t",0}, |
1d99702e RD |
10704 | { "_unsigned_short","_WXTYPE",0}, |
10705 | { "_unsigned_short","_short",0}, | |
7dbce44a | 10706 | { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject}, |
72797a7d | 10707 | { "_wxObject","_wxPyArtProvider",SwigwxPyArtProviderTowxObject}, |
493f1553 | 10708 | { "_wxObject","_wxWave",SwigwxWaveTowxObject}, |
9416aa89 | 10709 | { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject}, |
9416aa89 | 10710 | { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject}, |
9416aa89 | 10711 | { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject}, |
9416aa89 | 10712 | { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject}, |
9416aa89 | 10713 | { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject}, |
9416aa89 | 10714 | { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject}, |
1d99702e RD |
10715 | { "_signed_short","_WXTYPE",0}, |
10716 | { "_signed_short","_short",0}, | |
1d99702e | 10717 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10718 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10719 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10720 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10721 | { "_unsigned_int","_size_t",0}, |
10722 | { "_unsigned_int","_uint",0}, | |
10723 | { "_unsigned_int","_wxWindowID",0}, | |
10724 | { "_unsigned_int","_int",0}, | |
7dbce44a | 10725 | { "_short","_wxDateTime_t",0}, |
1d99702e RD |
10726 | { "_short","_WXTYPE",0}, |
10727 | { "_short","_unsigned_short",0}, | |
10728 | { "_short","_signed_short",0}, | |
b1462dfa | 10729 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10730 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10731 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10732 | { "_wxWindowID","_size_t",0}, |
10733 | { "_wxWindowID","_EBool",0}, | |
10734 | { "_wxWindowID","_uint",0}, | |
10735 | { "_wxWindowID","_int",0}, | |
10736 | { "_wxWindowID","_signed_int",0}, | |
10737 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10738 | { "_int","_wxCoord",0}, |
1d99702e | 10739 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10740 | { "_int","_time_t",0}, |
1d99702e RD |
10741 | { "_int","_size_t",0}, |
10742 | { "_int","_EBool",0}, | |
10743 | { "_int","_uint",0}, | |
10744 | { "_int","_wxWindowID",0}, | |
10745 | { "_int","_unsigned_int",0}, | |
10746 | { "_int","_signed_int",0}, | |
7dbce44a RD |
10747 | { "_wxDateTime_t","_unsigned_short",0}, |
10748 | { "_wxDateTime_t","_short",0}, | |
10749 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
10750 | { "_time_t","_wxCoord",0}, |
10751 | { "_time_t","_wxPrintQuality",0}, | |
10752 | { "_time_t","_unsigned_int",0}, | |
10753 | { "_time_t","_int",0}, | |
10754 | { "_time_t","_wxWindowID",0}, | |
10755 | { "_time_t","_uint",0}, | |
10756 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
10757 | { "_wxCoord","_int",0}, |
10758 | { "_wxCoord","_signed_int",0}, | |
10759 | { "_wxCoord","_unsigned_int",0}, | |
10760 | { "_wxCoord","_wxWindowID",0}, | |
10761 | { "_wxCoord","_uint",0}, | |
10762 | { "_wxCoord","_EBool",0}, | |
10763 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10764 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10765 | { "_wxCoord","_wxPrintQuality",0}, |
c368d904 | 10766 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, |
1d99702e RD |
10767 | {0,0,0}}; |
10768 | ||
bb0054cd RD |
10769 | static PyObject *SWIG_globals; |
10770 | #ifdef __cplusplus | |
10771 | extern "C" | |
10772 | #endif | |
1d99702e | 10773 | SWIGEXPORT(void) initmisc2c() { |
bb0054cd RD |
10774 | PyObject *m, *d; |
10775 | SWIG_globals = SWIG_newvarlink(); | |
10776 | m = Py_InitModule("misc2c", misc2cMethods); | |
10777 | d = PyModule_GetDict(m); | |
06c0fba4 RD |
10778 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); |
10779 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
10780 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
10781 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
10782 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
10783 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
10784 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
10785 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
10786 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
10787 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
c6c593e8 | 10788 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); |
06c0fba4 RD |
10789 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); |
10790 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
10791 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
10792 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
10793 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
10794 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
10795 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
10796 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
10797 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
10798 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
10799 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
10800 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
10801 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
10802 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
c6c593e8 | 10803 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); |
06c0fba4 | 10804 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); |
c6c593e8 | 10805 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); |
06c0fba4 RD |
10806 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); |
10807 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
10808 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
10809 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
c6c593e8 RD |
10810 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); |
10811 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
10812 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
06c0fba4 RD |
10813 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); |
10814 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
10815 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
10816 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
b5a5d647 | 10817 | PyDict_SetItemString(d,"wxSYS_COLOUR_LISTBOX", PyInt_FromLong((long) wxSYS_COLOUR_LISTBOX)); |
c6c593e8 RD |
10818 | PyDict_SetItemString(d,"wxSYS_COLOUR_HOTLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HOTLIGHT)); |
10819 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
10820 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTINACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
10821 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_MENUHILIGHT)); | |
10822 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUBAR", PyInt_FromLong((long) wxSYS_COLOUR_MENUBAR)); | |
10823 | PyDict_SetItemString(d,"wxSYS_COLOUR_MAX", PyInt_FromLong((long) wxSYS_COLOUR_MAX)); | |
06c0fba4 RD |
10824 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); |
10825 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
10826 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
10827 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
10828 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
10829 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
10830 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
10831 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
10832 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
10833 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
10834 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
10835 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
10836 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
10837 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
10838 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
10839 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
10840 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
10841 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
10842 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
10843 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
10844 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
10845 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
10846 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
10847 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
10848 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
10849 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
10850 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
10851 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
10852 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
10853 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
10854 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
10855 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
10856 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
10857 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
10858 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
10859 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
10860 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
b5a5d647 RD |
10861 | PyDict_SetItemString(d,"wxSYS_CAN_DRAW_FRAME_DECORATIONS", PyInt_FromLong((long) wxSYS_CAN_DRAW_FRAME_DECORATIONS)); |
10862 | PyDict_SetItemString(d,"wxSYS_CAN_ICONIZE_FRAME", PyInt_FromLong((long) wxSYS_CAN_ICONIZE_FRAME)); | |
daa3eac9 | 10863 | PyDict_SetItemString(d,"wxSYS_SCREEN_NONE", PyInt_FromLong((long) wxSYS_SCREEN_NONE)); |
daa3eac9 | 10864 | PyDict_SetItemString(d,"wxSYS_SCREEN_TINY", PyInt_FromLong((long) wxSYS_SCREEN_TINY)); |
e67409dc RD |
10865 | PyDict_SetItemString(d,"wxSYS_SCREEN_PDA", PyInt_FromLong((long) wxSYS_SCREEN_PDA)); |
10866 | PyDict_SetItemString(d,"wxSYS_SCREEN_SMALL", PyInt_FromLong((long) wxSYS_SCREEN_SMALL)); | |
10867 | PyDict_SetItemString(d,"wxSYS_SCREEN_DESKTOP", PyInt_FromLong((long) wxSYS_SCREEN_DESKTOP)); | |
f6bcfd97 BP |
10868 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); |
10869 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
10870 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
10871 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
10872 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
10873 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
10874 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
10875 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
10876 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
10877 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
8baa46e9 RD |
10878 | PyDict_SetItemString(d,"wxTRACE_MemAlloc", PyString_FromString("memalloc")); |
10879 | PyDict_SetItemString(d,"wxTRACE_Messages", PyString_FromString("messages")); | |
10880 | PyDict_SetItemString(d,"wxTRACE_ResAlloc", PyString_FromString("resalloc")); | |
10881 | PyDict_SetItemString(d,"wxTRACE_RefCount", PyString_FromString("refcount")); | |
10882 | PyDict_SetItemString(d,"wxTRACE_OleCalls", PyString_FromString("ole")); | |
10883 | PyDict_SetItemString(d,"wxTraceMemAlloc", PyInt_FromLong((long) wxTraceMemAlloc)); | |
10884 | PyDict_SetItemString(d,"wxTraceMessages", PyInt_FromLong((long) wxTraceMessages)); | |
10885 | PyDict_SetItemString(d,"wxTraceResAlloc", PyInt_FromLong((long) wxTraceResAlloc)); | |
10886 | PyDict_SetItemString(d,"wxTraceRefCount", PyInt_FromLong((long) wxTraceRefCount)); | |
10887 | PyDict_SetItemString(d,"wxTraceOleCalls", PyInt_FromLong((long) wxTraceOleCalls)); | |
814f509c RD |
10888 | PyDict_SetItemString(d,"wxKILL_OK", PyInt_FromLong((long) wxKILL_OK)); |
10889 | PyDict_SetItemString(d,"wxKILL_BAD_SIGNAL", PyInt_FromLong((long) wxKILL_BAD_SIGNAL)); | |
10890 | PyDict_SetItemString(d,"wxKILL_ACCESS_DENIED", PyInt_FromLong((long) wxKILL_ACCESS_DENIED)); | |
10891 | PyDict_SetItemString(d,"wxKILL_NO_PROCESS", PyInt_FromLong((long) wxKILL_NO_PROCESS)); | |
10892 | PyDict_SetItemString(d,"wxKILL_ERROR", PyInt_FromLong((long) wxKILL_ERROR)); | |
1883480f RD |
10893 | PyDict_SetItemString(d,"wxSIGNONE", PyInt_FromLong((long) wxSIGNONE)); |
10894 | PyDict_SetItemString(d,"wxSIGHUP", PyInt_FromLong((long) wxSIGHUP)); | |
10895 | PyDict_SetItemString(d,"wxSIGINT", PyInt_FromLong((long) wxSIGINT)); | |
10896 | PyDict_SetItemString(d,"wxSIGQUIT", PyInt_FromLong((long) wxSIGQUIT)); | |
10897 | PyDict_SetItemString(d,"wxSIGILL", PyInt_FromLong((long) wxSIGILL)); | |
10898 | PyDict_SetItemString(d,"wxSIGTRAP", PyInt_FromLong((long) wxSIGTRAP)); | |
10899 | PyDict_SetItemString(d,"wxSIGABRT", PyInt_FromLong((long) wxSIGABRT)); | |
10900 | PyDict_SetItemString(d,"wxSIGIOT", PyInt_FromLong((long) wxSIGIOT)); | |
10901 | PyDict_SetItemString(d,"wxSIGEMT", PyInt_FromLong((long) wxSIGEMT)); | |
10902 | PyDict_SetItemString(d,"wxSIGFPE", PyInt_FromLong((long) wxSIGFPE)); | |
10903 | PyDict_SetItemString(d,"wxSIGKILL", PyInt_FromLong((long) wxSIGKILL)); | |
10904 | PyDict_SetItemString(d,"wxSIGBUS", PyInt_FromLong((long) wxSIGBUS)); | |
10905 | PyDict_SetItemString(d,"wxSIGSEGV", PyInt_FromLong((long) wxSIGSEGV)); | |
10906 | PyDict_SetItemString(d,"wxSIGSYS", PyInt_FromLong((long) wxSIGSYS)); | |
10907 | PyDict_SetItemString(d,"wxSIGPIPE", PyInt_FromLong((long) wxSIGPIPE)); | |
10908 | PyDict_SetItemString(d,"wxSIGALRM", PyInt_FromLong((long) wxSIGALRM)); | |
10909 | PyDict_SetItemString(d,"wxSIGTERM", PyInt_FromLong((long) wxSIGTERM)); | |
10910 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); | |
b96c7a38 RD |
10911 | PyDict_SetItemString(d,"wxEXEC_ASYNC", PyInt_FromLong((long) wxEXEC_ASYNC)); |
10912 | PyDict_SetItemString(d,"wxEXEC_SYNC", PyInt_FromLong((long) wxEXEC_SYNC)); | |
10913 | PyDict_SetItemString(d,"wxEXEC_NOHIDE", PyInt_FromLong((long) wxEXEC_NOHIDE)); | |
d6eacb25 | 10914 | PyDict_SetItemString(d,"wxEXEC_MAKE_GROUP_LEADER", PyInt_FromLong((long) wxEXEC_MAKE_GROUP_LEADER)); |
3eb221f6 RD |
10915 | PyDict_SetItemString(d,"wxJOYSTICK1", PyInt_FromLong((long) wxJOYSTICK1)); |
10916 | PyDict_SetItemString(d,"wxJOYSTICK2", PyInt_FromLong((long) wxJOYSTICK2)); | |
10917 | PyDict_SetItemString(d,"wxJOY_BUTTON_ANY", PyInt_FromLong((long) wxJOY_BUTTON_ANY)); | |
10918 | PyDict_SetItemString(d,"wxJOY_BUTTON1", PyInt_FromLong((long) wxJOY_BUTTON1)); | |
10919 | PyDict_SetItemString(d,"wxJOY_BUTTON2", PyInt_FromLong((long) wxJOY_BUTTON2)); | |
10920 | PyDict_SetItemString(d,"wxJOY_BUTTON3", PyInt_FromLong((long) wxJOY_BUTTON3)); | |
10921 | PyDict_SetItemString(d,"wxJOY_BUTTON4", PyInt_FromLong((long) wxJOY_BUTTON4)); | |
b37c7e1d RD |
10922 | PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD)); |
10923 | PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE)); | |
10924 | PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE)); | |
10925 | PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME)); | |
10926 | PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL)); | |
10927 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
10928 | SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set); | |
72797a7d RD |
10929 | PyDict_SetItemString(d,"wxART_TOOLBAR", PyString_FromString("toolbar_C")); |
10930 | PyDict_SetItemString(d,"wxART_MENU", PyString_FromString("menu_C")); | |
10931 | PyDict_SetItemString(d,"wxART_FRAME_ICON", PyString_FromString("frame_icon_C")); | |
10932 | PyDict_SetItemString(d,"wxART_CMN_DIALOG", PyString_FromString("cmn_dialog_C")); | |
10933 | PyDict_SetItemString(d,"wxART_HELP_BROWSER", PyString_FromString("help_browser_C")); | |
10934 | PyDict_SetItemString(d,"wxART_MESSAGE_BOX", PyString_FromString("message_box_C")); | |
10935 | PyDict_SetItemString(d,"wxART_OTHER", PyString_FromString("other_C")); | |
10936 | PyDict_SetItemString(d,"wxART_ADD_BOOKMARK", PyString_FromString("add_bookmark")); | |
10937 | PyDict_SetItemString(d,"wxART_DEL_BOOKMARK", PyString_FromString("del_bookmark")); | |
10938 | PyDict_SetItemString(d,"wxART_HELP_SIDE_PANEL", PyString_FromString("help_side_panel")); | |
10939 | PyDict_SetItemString(d,"wxART_HELP_SETTINGS", PyString_FromString("help_settings")); | |
10940 | PyDict_SetItemString(d,"wxART_HELP_BOOK", PyString_FromString("help_book")); | |
10941 | PyDict_SetItemString(d,"wxART_HELP_FOLDER", PyString_FromString("help_folder")); | |
10942 | PyDict_SetItemString(d,"wxART_HELP_PAGE", PyString_FromString("help_page")); | |
10943 | PyDict_SetItemString(d,"wxART_GO_BACK", PyString_FromString("go_back")); | |
10944 | PyDict_SetItemString(d,"wxART_GO_FORWARD", PyString_FromString("go_forward")); | |
10945 | PyDict_SetItemString(d,"wxART_GO_UP", PyString_FromString("go_up")); | |
10946 | PyDict_SetItemString(d,"wxART_GO_DOWN", PyString_FromString("go_down")); | |
10947 | PyDict_SetItemString(d,"wxART_GO_TO_PARENT", PyString_FromString("go_to_parent")); | |
10948 | PyDict_SetItemString(d,"wxART_GO_HOME", PyString_FromString("go_home")); | |
10949 | PyDict_SetItemString(d,"wxART_FILE_OPEN", PyString_FromString("file_open")); | |
10950 | PyDict_SetItemString(d,"wxART_PRINT", PyString_FromString("print")); | |
10951 | PyDict_SetItemString(d,"wxART_HELP", PyString_FromString("help")); | |
10952 | PyDict_SetItemString(d,"wxART_TIP", PyString_FromString("tip")); | |
10953 | PyDict_SetItemString(d,"wxART_REPORT_VIEW", PyString_FromString("report_view")); | |
10954 | PyDict_SetItemString(d,"wxART_LIST_VIEW", PyString_FromString("list_view")); | |
10955 | PyDict_SetItemString(d,"wxART_NEW_DIR", PyString_FromString("new_dir")); | |
10956 | PyDict_SetItemString(d,"wxART_FOLDER", PyString_FromString("folder")); | |
10957 | PyDict_SetItemString(d,"wxART_GO_DIR_UP", PyString_FromString("go_dir_up")); | |
10958 | PyDict_SetItemString(d,"wxART_EXECUTABLE_FILE", PyString_FromString("executable_file")); | |
10959 | PyDict_SetItemString(d,"wxART_NORMAL_FILE", PyString_FromString("normal_file")); | |
10960 | PyDict_SetItemString(d,"wxART_TICK_MARK", PyString_FromString("tick")); | |
10961 | PyDict_SetItemString(d,"wxART_CROSS_MARK", PyString_FromString("cross")); | |
10962 | PyDict_SetItemString(d,"wxART_ERROR", PyString_FromString("error")); | |
10963 | PyDict_SetItemString(d,"wxART_QUESTION", PyString_FromString("question")); | |
10964 | PyDict_SetItemString(d,"wxART_WARNING", PyString_FromString("warning")); | |
10965 | PyDict_SetItemString(d,"wxART_INFORMATION", PyString_FromString("information")); | |
9416aa89 | 10966 | |
9416aa89 RD |
10967 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); |
10968 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
72797a7d | 10969 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); |
8baa46e9 | 10970 | |
1d99702e RD |
10971 | { |
10972 | int i; | |
10973 | for (i = 0; _swig_mapping[i].n1; i++) | |
10974 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10975 | } | |
bb0054cd | 10976 | } |