]>
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 | 74 | #include <wx/mimetype.h> |
67a92fff RD |
75 | #include <wx/snglinst.h> |
76 | #include <wx/effects.h> | |
77 | //#include <wx/spawnbrowser.h> | |
b37c7e1d | 78 | |
bb0054cd RD |
79 | |
80 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
81 | PyObject* o2; | |
82 | PyObject* o3; | |
83 | ||
6e18ca6c | 84 | if (!target) { |
bb0054cd | 85 | target = o; |
6e18ca6c | 86 | } else if (target == Py_None) { |
bb0054cd RD |
87 | Py_DECREF(Py_None); |
88 | target = o; | |
6e18ca6c | 89 | } else { |
bb0054cd RD |
90 | if (!PyTuple_Check(target)) { |
91 | o2 = target; | |
92 | target = PyTuple_New(1); | |
93 | PyTuple_SetItem(target, 0, o2); | |
94 | } | |
6e18ca6c RD |
95 | o3 = PyTuple_New(1); |
96 | PyTuple_SetItem(o3, 0, o); | |
bb0054cd RD |
97 | |
98 | o2 = target; | |
6e18ca6c RD |
99 | target = PySequence_Concat(o2, o3); |
100 | Py_DECREF(o2); | |
bb0054cd RD |
101 | Py_DECREF(o3); |
102 | } | |
103 | return target; | |
104 | } | |
105 | ||
137b5242 RD |
106 | // Put some wx default wxChar* values into wxStrings. |
107 | DECLARE_DEF_STRING(FileSelectorPromptStr); | |
108 | DECLARE_DEF_STRING(FileSelectorDefaultWildcardStr); | |
7cdaed0b | 109 | DECLARE_DEF_STRING(DirSelectorPromptStr); |
137b5242 RD |
110 | static const wxString wxPyEmptyString(wxT("")); |
111 | ||
06c0fba4 RD |
112 | int wxCaret_GetBlinkTime() { |
113 | return wxCaret::GetBlinkTime(); | |
114 | } | |
115 | ||
116 | void wxCaret_SetBlinkTime(int milliseconds) { | |
117 | wxCaret::SetBlinkTime(milliseconds); | |
118 | } | |
b1462dfa | 119 | |
6e18ca6c | 120 | bool wxThread_IsMain() { |
00ca6262 | 121 | #ifdef WXP_WITH_THREAD |
6e18ca6c | 122 | return wxThread::IsMain(); |
00ca6262 RD |
123 | #else |
124 | return TRUE; | |
125 | #endif | |
6e18ca6c RD |
126 | } |
127 | ||
f6bcfd97 BP |
128 | class wxPyTipProvider : public wxTipProvider { |
129 | public: | |
130 | wxPyTipProvider(size_t currentTip) | |
131 | : wxTipProvider(currentTip) {} | |
132 | ||
133 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
67a92fff | 134 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); |
f6bcfd97 BP |
135 | PYPRIVATE; |
136 | }; | |
137 | ||
138 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
67a92fff | 139 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); |
f6bcfd97 BP |
140 | |
141 | #include <wx/generic/dragimgg.h> | |
76bfdc78 | 142 | |
19e30148 | 143 | // A wxLog class that can be derived from in wxPython |
76bfdc78 RD |
144 | class wxPyLog : public wxLog { |
145 | public: | |
146 | wxPyLog() : wxLog() {} | |
147 | ||
148 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
149 | bool found; | |
4268f798 | 150 | wxPyBeginBlockThreads(); |
a66212dc RD |
151 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { |
152 | PyObject* s = wx2PyString(szString); | |
153 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
154 | Py_DECREF(s); | |
155 | } | |
4268f798 | 156 | wxPyEndBlockThreads(); |
76bfdc78 RD |
157 | if (! found) |
158 | wxLog::DoLog(level, szString, t); | |
159 | } | |
160 | ||
161 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
162 | bool found; | |
4268f798 | 163 | wxPyBeginBlockThreads(); |
a66212dc RD |
164 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { |
165 | PyObject* s = wx2PyString(szString); | |
166 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
167 | Py_DECREF(s); | |
168 | } | |
4268f798 | 169 | wxPyEndBlockThreads(); |
76bfdc78 RD |
170 | if (! found) |
171 | wxLog::DoLogString(szString, t); | |
172 | } | |
173 | ||
174 | PYPRIVATE; | |
175 | }; | |
c368d904 RD |
176 | // C++ version of wxProcess derived class |
177 | ||
178 | class wxPyProcess : public wxProcess { | |
179 | public: | |
180 | wxPyProcess(wxEvtHandler *parent = NULL, int id = -1) | |
181 | : wxProcess(parent, id) | |
182 | {} | |
183 | ||
184 | DEC_PYCALLBACK_VOID_INTINT(OnTerminate); | |
185 | ||
186 | PYPRIVATE; | |
187 | }; | |
188 | ||
189 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
493f1553 | 190 | |
19a97bd6 | 191 | |
493f1553 RD |
192 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) |
193 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
194 | class wxJoystick : public wxObject { | |
195 | public: | |
196 | wxJoystick(int joystick = wxJOYSTICK1) { | |
4268f798 | 197 | wxPyBeginBlockThreads(); |
493f1553 | 198 | PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); |
4268f798 | 199 | wxPyEndBlockThreads(); |
493f1553 RD |
200 | } |
201 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
202 | int GetZPosition() { return -1; } | |
203 | int GetButtonState() { return -1; } | |
204 | int GetPOVPosition() { return -1; } | |
205 | int GetPOVCTSPosition() { return -1; } | |
206 | int GetRudderPosition() { return -1; } | |
207 | int GetUPosition() { return -1; } | |
208 | int GetVPosition() { return -1; } | |
209 | int GetMovementThreshold() { return -1; } | |
d56cebe7 | 210 | void SetMovementThreshold(int threshold) {} |
493f1553 RD |
211 | |
212 | bool IsOk(void) { return FALSE; } | |
213 | int GetNumberJoysticks() { return -1; } | |
214 | int GetManufacturerId() { return -1; } | |
215 | int GetProductId() { return -1; } | |
216 | wxString GetProductName() { return ""; } | |
217 | int GetXMin() { return -1; } | |
218 | int GetYMin() { return -1; } | |
219 | int GetZMin() { return -1; } | |
220 | int GetXMax() { return -1; } | |
221 | int GetYMax() { return -1; } | |
222 | int GetZMax() { return -1; } | |
223 | int GetNumberButtons() { return -1; } | |
224 | int GetNumberAxes() { return -1; } | |
225 | int GetMaxButtons() { return -1; } | |
226 | int GetMaxAxes() { return -1; } | |
227 | int GetPollingMin() { return -1; } | |
228 | int GetPollingMax() { return -1; } | |
229 | int GetRudderMin() { return -1; } | |
230 | int GetRudderMax() { return -1; } | |
231 | int GetUMin() { return -1; } | |
232 | int GetUMax() { return -1; } | |
233 | int GetVMin() { return -1; } | |
234 | int GetVMax() { return -1; } | |
235 | ||
236 | bool HasRudder() { return FALSE; } | |
237 | bool HasZ() { return FALSE; } | |
238 | bool HasU() { return FALSE; } | |
239 | bool HasV() { return FALSE; } | |
240 | bool HasPOV() { return FALSE; } | |
241 | bool HasPOV4Dir() { return FALSE; } | |
242 | bool HasPOVCTS() { return FALSE; } | |
243 | ||
244 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return FALSE; } | |
245 | bool ReleaseCapture() { return FALSE; } | |
246 | }; | |
247 | #endif | |
248 | ||
0adbc166 | 249 | #if !wxUSE_WAVE |
493f1553 RD |
250 | // A C++ stub class for wxWave for platforms that don't have it. |
251 | class wxWave : public wxObject | |
252 | { | |
253 | public: | |
254 | wxWave(const wxString& fileName, bool isResource = FALSE) { | |
4268f798 | 255 | wxPyBeginBlockThreads(); |
493f1553 | 256 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 257 | wxPyEndBlockThreads(); |
493f1553 RD |
258 | } |
259 | wxWave(int size, const wxByte* data) { | |
4268f798 | 260 | wxPyBeginBlockThreads(); |
493f1553 | 261 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 262 | wxPyEndBlockThreads(); |
493f1553 RD |
263 | } |
264 | ||
265 | ~wxWave() {} | |
266 | ||
267 | bool IsOk() const { return FALSE; } | |
268 | bool Play(bool async = TRUE, bool looped = FALSE) const { return FALSE; } | |
269 | }; | |
270 | ||
271 | #endif | |
272 | // Implementations of some alternate "constructors" | |
273 | wxWave* wxWaveData(const wxString& data) { | |
274 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
275 | } | |
b37c7e1d RD |
276 | |
277 | #if 0 | |
278 | extern wxMimeTypesManager * wxTheMimeTypesManager; | |
279 | ||
280 | #endif | |
7dbce44a | 281 | |
72797a7d RD |
282 | #include <wx/artprov.h> |
283 | ||
284 | DECLARE_DEF_STRING(ART_OTHER); | |
285 | ||
286 | // Python aware wxArtProvider | |
287 | class wxPyArtProvider : public wxArtProvider { | |
288 | public: | |
289 | ||
290 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
291 | const wxArtClient& client, | |
292 | const wxSize& size) { | |
293 | wxBitmap rval = wxNullBitmap; | |
294 | wxPyBeginBlockThreads(); | |
295 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
296 | PyObject* so = wxPyConstructObject((void*)&size, "wxSize", 0); | |
297 | PyObject* ro; | |
298 | wxBitmap* ptr; | |
a66212dc | 299 | PyObject* s1, *s2; |
72797a7d RD |
300 | s1 = wx2PyString(id); |
301 | s2 = wx2PyString(client); | |
a66212dc | 302 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); |
72797a7d | 303 | Py_DECREF(so); |
a66212dc RD |
304 | Py_DECREF(s1); |
305 | Py_DECREF(s2); | |
72797a7d RD |
306 | if (ro) { |
307 | if (!SWIG_GetPtrObj(ro, (void**)&ptr, "_wxBitmap_p")) | |
308 | rval = *ptr; | |
309 | Py_DECREF(ro); | |
310 | } | |
311 | } | |
312 | wxPyEndBlockThreads(); | |
313 | return rval; | |
314 | } | |
315 | ||
316 | PYPRIVATE; | |
317 | }; | |
318 | ||
7dbce44a | 319 | #include <wx/docview.h> |
06c0fba4 RD |
320 | #ifdef __cplusplus |
321 | extern "C" { | |
322 | #endif | |
323 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
324 | PyObject * _resultobj; | |
325 | wxString * _result; | |
137b5242 RD |
326 | wxString * _arg0 = (wxString *) &wxPyFileSelectorPromptStr; |
327 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
328 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
329 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
330 | wxString * _arg4 = (wxString *) &wxPyFileSelectorDefaultWildcardStr; | |
06c0fba4 RD |
331 | int _arg5 = (int ) 0; |
332 | wxWindow * _arg6 = (wxWindow *) NULL; | |
333 | int _arg7 = (int ) -1; | |
334 | int _arg8 = (int ) -1; | |
137b5242 RD |
335 | PyObject * _obj0 = 0; |
336 | PyObject * _obj1 = 0; | |
337 | PyObject * _obj2 = 0; | |
338 | PyObject * _obj3 = 0; | |
339 | PyObject * _obj4 = 0; | |
06c0fba4 RD |
340 | PyObject * _argo6 = 0; |
341 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
342 | ||
343 | self = self; | |
137b5242 | 344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOOOiOii:wxFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7,&_arg8)) |
06c0fba4 | 345 | return NULL; |
137b5242 RD |
346 | if (_obj0) |
347 | { | |
348 | _arg0 = wxString_in_helper(_obj0); | |
349 | if (_arg0 == NULL) | |
350 | return NULL; | |
351 | } | |
352 | if (_obj1) | |
353 | { | |
354 | _arg1 = wxString_in_helper(_obj1); | |
355 | if (_arg1 == NULL) | |
356 | return NULL; | |
357 | } | |
358 | if (_obj2) | |
359 | { | |
360 | _arg2 = wxString_in_helper(_obj2); | |
361 | if (_arg2 == NULL) | |
362 | return NULL; | |
363 | } | |
364 | if (_obj3) | |
365 | { | |
366 | _arg3 = wxString_in_helper(_obj3); | |
367 | if (_arg3 == NULL) | |
368 | return NULL; | |
369 | } | |
370 | if (_obj4) | |
371 | { | |
372 | _arg4 = wxString_in_helper(_obj4); | |
373 | if (_arg4 == NULL) | |
374 | return NULL; | |
375 | } | |
06c0fba4 RD |
376 | if (_argo6) { |
377 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
378 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
380 | return NULL; | |
381 | } | |
382 | } | |
383 | { | |
4268f798 | 384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 385 | _result = new wxString (wxFileSelector(*_arg0,*_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8)); |
06c0fba4 | 386 | |
4268f798 RD |
387 | wxPyEndAllowThreads(__tstate); |
388 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 389 | }{ |
c8bc7bb8 RD |
390 | #if wxUSE_UNICODE |
391 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
392 | #else | |
eec92d76 | 393 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 394 | #endif |
06c0fba4 | 395 | } |
137b5242 RD |
396 | { |
397 | if (_obj0) | |
398 | delete _arg0; | |
399 | } | |
400 | { | |
401 | if (_obj1) | |
402 | delete _arg1; | |
403 | } | |
404 | { | |
405 | if (_obj2) | |
406 | delete _arg2; | |
407 | } | |
408 | { | |
409 | if (_obj3) | |
410 | delete _arg3; | |
411 | } | |
412 | { | |
413 | if (_obj4) | |
414 | delete _arg4; | |
415 | } | |
06c0fba4 RD |
416 | { |
417 | delete _result; | |
418 | } | |
419 | return _resultobj; | |
420 | } | |
421 | ||
a541c325 RD |
422 | static PyObject *_wrap_wxLoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
423 | PyObject * _resultobj; | |
424 | wxString * _result; | |
137b5242 RD |
425 | wxString * _arg0; |
426 | wxString * _arg1; | |
427 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
a541c325 | 428 | wxWindow * _arg3 = (wxWindow *) NULL; |
137b5242 RD |
429 | PyObject * _obj0 = 0; |
430 | PyObject * _obj1 = 0; | |
431 | PyObject * _obj2 = 0; | |
a541c325 RD |
432 | PyObject * _argo3 = 0; |
433 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
434 | ||
435 | self = self; | |
137b5242 | 436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxLoadFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) |
a541c325 | 437 | return NULL; |
137b5242 RD |
438 | { |
439 | _arg0 = wxString_in_helper(_obj0); | |
440 | if (_arg0 == NULL) | |
441 | return NULL; | |
442 | } | |
443 | { | |
444 | _arg1 = wxString_in_helper(_obj1); | |
445 | if (_arg1 == NULL) | |
446 | return NULL; | |
447 | } | |
448 | if (_obj2) | |
449 | { | |
450 | _arg2 = wxString_in_helper(_obj2); | |
451 | if (_arg2 == NULL) | |
452 | return NULL; | |
453 | } | |
a541c325 RD |
454 | if (_argo3) { |
455 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
456 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxLoadFileSelector. Expected _wxWindow_p."); | |
458 | return NULL; | |
459 | } | |
460 | } | |
461 | { | |
462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 463 | _result = new wxString (wxLoadFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); |
a541c325 RD |
464 | |
465 | wxPyEndAllowThreads(__tstate); | |
466 | if (PyErr_Occurred()) return NULL; | |
467 | }{ | |
468 | #if wxUSE_UNICODE | |
469 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
470 | #else | |
471 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
472 | #endif | |
473 | } | |
137b5242 RD |
474 | { |
475 | if (_obj0) | |
476 | delete _arg0; | |
477 | } | |
478 | { | |
479 | if (_obj1) | |
480 | delete _arg1; | |
481 | } | |
482 | { | |
483 | if (_obj2) | |
484 | delete _arg2; | |
485 | } | |
a541c325 RD |
486 | { |
487 | delete _result; | |
488 | } | |
489 | return _resultobj; | |
490 | } | |
491 | ||
492 | static PyObject *_wrap_wxSaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
493 | PyObject * _resultobj; | |
494 | wxString * _result; | |
137b5242 RD |
495 | wxString * _arg0; |
496 | wxString * _arg1; | |
497 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
a541c325 | 498 | wxWindow * _arg3 = (wxWindow *) NULL; |
137b5242 RD |
499 | PyObject * _obj0 = 0; |
500 | PyObject * _obj1 = 0; | |
501 | PyObject * _obj2 = 0; | |
a541c325 RD |
502 | PyObject * _argo3 = 0; |
503 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
504 | ||
505 | self = self; | |
137b5242 RD |
506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxSaveFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) |
507 | return NULL; | |
508 | { | |
509 | _arg0 = wxString_in_helper(_obj0); | |
510 | if (_arg0 == NULL) | |
a541c325 | 511 | return NULL; |
137b5242 RD |
512 | } |
513 | { | |
514 | _arg1 = wxString_in_helper(_obj1); | |
515 | if (_arg1 == NULL) | |
516 | return NULL; | |
517 | } | |
518 | if (_obj2) | |
519 | { | |
520 | _arg2 = wxString_in_helper(_obj2); | |
521 | if (_arg2 == NULL) | |
522 | return NULL; | |
523 | } | |
a541c325 RD |
524 | if (_argo3) { |
525 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
526 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxSaveFileSelector. Expected _wxWindow_p."); | |
528 | return NULL; | |
529 | } | |
530 | } | |
531 | { | |
532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 533 | _result = new wxString (wxSaveFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); |
a541c325 RD |
534 | |
535 | wxPyEndAllowThreads(__tstate); | |
536 | if (PyErr_Occurred()) return NULL; | |
537 | }{ | |
538 | #if wxUSE_UNICODE | |
539 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
540 | #else | |
541 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
542 | #endif | |
543 | } | |
137b5242 RD |
544 | { |
545 | if (_obj0) | |
546 | delete _arg0; | |
547 | } | |
548 | { | |
549 | if (_obj1) | |
550 | delete _arg1; | |
551 | } | |
552 | { | |
553 | if (_obj2) | |
554 | delete _arg2; | |
555 | } | |
a541c325 RD |
556 | { |
557 | delete _result; | |
558 | } | |
559 | return _resultobj; | |
560 | } | |
561 | ||
7cdaed0b RD |
562 | static PyObject *_wrap_wxDirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
563 | PyObject * _resultobj; | |
564 | wxString * _result; | |
565 | wxString * _arg0 = (wxString *) &wxPyDirSelectorPromptStr; | |
566 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
daa3eac9 | 567 | long _arg2 = (long ) wxDD_DEFAULT_STYLE; |
7cdaed0b RD |
568 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
569 | wxWindow * _arg4 = (wxWindow *) NULL; | |
570 | PyObject * _obj0 = 0; | |
571 | PyObject * _obj1 = 0; | |
572 | wxPoint temp; | |
573 | PyObject * _obj3 = 0; | |
574 | PyObject * _argo4 = 0; | |
575 | char *_kwnames[] = { "message","defaultPath","style","pos","parent", NULL }; | |
576 | ||
577 | self = self; | |
578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOlOO:wxDirSelector",_kwnames,&_obj0,&_obj1,&_arg2,&_obj3,&_argo4)) | |
579 | return NULL; | |
580 | if (_obj0) | |
581 | { | |
582 | _arg0 = wxString_in_helper(_obj0); | |
583 | if (_arg0 == NULL) | |
584 | return NULL; | |
585 | } | |
586 | if (_obj1) | |
587 | { | |
588 | _arg1 = wxString_in_helper(_obj1); | |
589 | if (_arg1 == NULL) | |
590 | return NULL; | |
591 | } | |
592 | if (_obj3) | |
593 | { | |
594 | _arg3 = &temp; | |
595 | if (! wxPoint_helper(_obj3, &_arg3)) | |
596 | return NULL; | |
597 | } | |
598 | if (_argo4) { | |
599 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
600 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxDirSelector. Expected _wxWindow_p."); | |
602 | return NULL; | |
603 | } | |
604 | } | |
605 | { | |
606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
607 | _result = new wxString (wxDirSelector(*_arg0,*_arg1,_arg2,*_arg3,_arg4)); | |
608 | ||
609 | wxPyEndAllowThreads(__tstate); | |
610 | if (PyErr_Occurred()) return NULL; | |
611 | }{ | |
612 | #if wxUSE_UNICODE | |
613 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
614 | #else | |
615 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
616 | #endif | |
617 | } | |
618 | { | |
619 | if (_obj0) | |
620 | delete _arg0; | |
621 | } | |
622 | { | |
623 | if (_obj1) | |
624 | delete _arg1; | |
625 | } | |
626 | { | |
627 | delete _result; | |
628 | } | |
629 | return _resultobj; | |
630 | } | |
631 | ||
06c0fba4 RD |
632 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
633 | PyObject * _resultobj; | |
634 | wxString * _result; | |
635 | wxString * _arg0; | |
137b5242 RD |
636 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
637 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
06c0fba4 RD |
638 | wxWindow * _arg3 = (wxWindow *) NULL; |
639 | int _arg4 = (int ) -1; | |
640 | int _arg5 = (int ) -1; | |
641 | bool _arg6 = (bool ) TRUE; | |
642 | PyObject * _obj0 = 0; | |
643 | PyObject * _obj1 = 0; | |
644 | PyObject * _obj2 = 0; | |
645 | PyObject * _argo3 = 0; | |
646 | int tempbool6 = (int) TRUE; | |
647 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
648 | ||
649 | self = self; | |
650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
651 | return NULL; | |
652 | { | |
c8bc7bb8 RD |
653 | _arg0 = wxString_in_helper(_obj0); |
654 | if (_arg0 == NULL) | |
185d7c3e | 655 | return NULL; |
06c0fba4 RD |
656 | } |
657 | if (_obj1) | |
658 | { | |
c8bc7bb8 RD |
659 | _arg1 = wxString_in_helper(_obj1); |
660 | if (_arg1 == NULL) | |
185d7c3e | 661 | return NULL; |
06c0fba4 RD |
662 | } |
663 | if (_obj2) | |
664 | { | |
c8bc7bb8 RD |
665 | _arg2 = wxString_in_helper(_obj2); |
666 | if (_arg2 == NULL) | |
06c0fba4 | 667 | return NULL; |
06c0fba4 RD |
668 | } |
669 | if (_argo3) { | |
670 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
671 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
673 | return NULL; | |
674 | } | |
675 | } | |
676 | _arg6 = (bool ) tempbool6; | |
677 | { | |
4268f798 | 678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 679 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); |
06c0fba4 | 680 | |
4268f798 RD |
681 | wxPyEndAllowThreads(__tstate); |
682 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 683 | }{ |
c8bc7bb8 RD |
684 | #if wxUSE_UNICODE |
685 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
686 | #else | |
eec92d76 | 687 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 688 | #endif |
06c0fba4 RD |
689 | } |
690 | { | |
691 | if (_obj0) | |
692 | delete _arg0; | |
693 | } | |
694 | { | |
695 | if (_obj1) | |
696 | delete _arg1; | |
697 | } | |
698 | { | |
699 | if (_obj2) | |
700 | delete _arg2; | |
701 | } | |
702 | { | |
703 | delete _result; | |
704 | } | |
705 | return _resultobj; | |
706 | } | |
707 | ||
1b62f00d RD |
708 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
709 | PyObject * _resultobj; | |
710 | wxString * _result; | |
711 | wxString * _arg0; | |
137b5242 RD |
712 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
713 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
1b62f00d RD |
714 | wxWindow * _arg3 = (wxWindow *) NULL; |
715 | PyObject * _obj0 = 0; | |
716 | PyObject * _obj1 = 0; | |
717 | PyObject * _obj2 = 0; | |
718 | PyObject * _argo3 = 0; | |
719 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
720 | ||
721 | self = self; | |
722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
723 | return NULL; | |
724 | { | |
c8bc7bb8 RD |
725 | _arg0 = wxString_in_helper(_obj0); |
726 | if (_arg0 == NULL) | |
1b62f00d | 727 | return NULL; |
1b62f00d RD |
728 | } |
729 | if (_obj1) | |
730 | { | |
c8bc7bb8 RD |
731 | _arg1 = wxString_in_helper(_obj1); |
732 | if (_arg1 == NULL) | |
1b62f00d | 733 | return NULL; |
1b62f00d RD |
734 | } |
735 | if (_obj2) | |
736 | { | |
c8bc7bb8 RD |
737 | _arg2 = wxString_in_helper(_obj2); |
738 | if (_arg2 == NULL) | |
1b62f00d | 739 | return NULL; |
1b62f00d RD |
740 | } |
741 | if (_argo3) { | |
742 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
743 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
745 | return NULL; | |
746 | } | |
747 | } | |
748 | { | |
4268f798 | 749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 750 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); |
1b62f00d | 751 | |
4268f798 RD |
752 | wxPyEndAllowThreads(__tstate); |
753 | if (PyErr_Occurred()) return NULL; | |
1b62f00d | 754 | }{ |
c8bc7bb8 RD |
755 | #if wxUSE_UNICODE |
756 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
757 | #else | |
1b62f00d | 758 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 759 | #endif |
1b62f00d RD |
760 | } |
761 | { | |
762 | if (_obj0) | |
763 | delete _arg0; | |
764 | } | |
765 | { | |
766 | if (_obj1) | |
767 | delete _arg1; | |
768 | } | |
769 | { | |
770 | if (_obj2) | |
771 | delete _arg2; | |
772 | } | |
773 | { | |
774 | delete _result; | |
775 | } | |
776 | return _resultobj; | |
777 | } | |
778 | ||
06c0fba4 RD |
779 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
780 | PyObject * _resultobj; | |
781 | wxString * _result; | |
782 | wxString * _arg0; | |
783 | wxString * _arg1; | |
784 | int _arg2; | |
785 | wxString * _arg3; | |
786 | wxWindow * _arg4 = (wxWindow *) NULL; | |
787 | int _arg5 = (int ) -1; | |
788 | int _arg6 = (int ) -1; | |
789 | bool _arg7 = (bool ) TRUE; | |
790 | int _arg8 = (int ) 150; | |
791 | int _arg9 = (int ) 200; | |
792 | PyObject * _obj0 = 0; | |
793 | PyObject * _obj1 = 0; | |
794 | PyObject * _obj3 = 0; | |
795 | PyObject * _argo4 = 0; | |
796 | int tempbool7 = (int) TRUE; | |
eec92d76 | 797 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
798 | |
799 | self = self; | |
800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
801 | return NULL; | |
802 | { | |
c8bc7bb8 RD |
803 | _arg0 = wxString_in_helper(_obj0); |
804 | if (_arg0 == NULL) | |
185d7c3e | 805 | return NULL; |
06c0fba4 RD |
806 | } |
807 | { | |
c8bc7bb8 RD |
808 | _arg1 = wxString_in_helper(_obj1); |
809 | if (_arg1 == NULL) | |
185d7c3e | 810 | return NULL; |
06c0fba4 RD |
811 | } |
812 | if (_obj3) | |
813 | { | |
814 | _arg3 = wxString_LIST_helper(_obj3); | |
815 | if (_arg3 == NULL) { | |
816 | return NULL; | |
817 | } | |
818 | } | |
819 | if (_argo4) { | |
820 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
821 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
823 | return NULL; | |
824 | } | |
825 | } | |
826 | _arg7 = (bool ) tempbool7; | |
827 | { | |
828 | if (_obj3) { | |
829 | _arg2 = PyList_Size(_obj3); | |
830 | } | |
831 | else { | |
832 | _arg2 = 0; | |
833 | } | |
834 | } | |
835 | { | |
4268f798 | 836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 837 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); |
06c0fba4 | 838 | |
4268f798 RD |
839 | wxPyEndAllowThreads(__tstate); |
840 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 841 | }{ |
c8bc7bb8 RD |
842 | #if wxUSE_UNICODE |
843 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
844 | #else | |
eec92d76 | 845 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 846 | #endif |
06c0fba4 RD |
847 | } |
848 | { | |
849 | if (_obj0) | |
850 | delete _arg0; | |
851 | } | |
852 | { | |
853 | if (_obj1) | |
854 | delete _arg1; | |
855 | } | |
856 | { | |
857 | delete [] _arg3; | |
858 | } | |
859 | { | |
860 | delete _result; | |
861 | } | |
862 | return _resultobj; | |
863 | } | |
864 | ||
865 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
866 | PyObject * _resultobj; | |
867 | int _result; | |
868 | wxString * _arg0; | |
869 | wxString * _arg1; | |
870 | int _arg2; | |
871 | wxString * _arg3; | |
872 | wxWindow * _arg4 = (wxWindow *) NULL; | |
873 | int _arg5 = (int ) -1; | |
874 | int _arg6 = (int ) -1; | |
875 | bool _arg7 = (bool ) TRUE; | |
876 | int _arg8 = (int ) 150; | |
877 | int _arg9 = (int ) 200; | |
878 | PyObject * _obj0 = 0; | |
879 | PyObject * _obj1 = 0; | |
880 | PyObject * _obj3 = 0; | |
881 | PyObject * _argo4 = 0; | |
882 | int tempbool7 = (int) TRUE; | |
eec92d76 | 883 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
884 | |
885 | self = self; | |
886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
887 | return NULL; | |
888 | { | |
c8bc7bb8 RD |
889 | _arg0 = wxString_in_helper(_obj0); |
890 | if (_arg0 == NULL) | |
185d7c3e | 891 | return NULL; |
06c0fba4 RD |
892 | } |
893 | { | |
c8bc7bb8 RD |
894 | _arg1 = wxString_in_helper(_obj1); |
895 | if (_arg1 == NULL) | |
185d7c3e | 896 | return NULL; |
06c0fba4 RD |
897 | } |
898 | if (_obj3) | |
899 | { | |
900 | _arg3 = wxString_LIST_helper(_obj3); | |
901 | if (_arg3 == NULL) { | |
902 | return NULL; | |
903 | } | |
904 | } | |
905 | if (_argo4) { | |
906 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
907 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
909 | return NULL; | |
910 | } | |
911 | } | |
912 | _arg7 = (bool ) tempbool7; | |
913 | { | |
914 | if (_obj3) { | |
915 | _arg2 = PyList_Size(_obj3); | |
916 | } | |
917 | else { | |
918 | _arg2 = 0; | |
919 | } | |
920 | } | |
921 | { | |
4268f798 | 922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 923 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
06c0fba4 | 924 | |
4268f798 RD |
925 | wxPyEndAllowThreads(__tstate); |
926 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
927 | } _resultobj = Py_BuildValue("i",_result); |
928 | { | |
929 | if (_obj0) | |
930 | delete _arg0; | |
931 | } | |
932 | { | |
933 | if (_obj1) | |
934 | delete _arg1; | |
935 | } | |
936 | { | |
937 | delete [] _arg3; | |
938 | } | |
939 | return _resultobj; | |
940 | } | |
941 | ||
942 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
943 | PyObject * _resultobj; | |
944 | int _result; | |
945 | wxString * _arg0; | |
137b5242 | 946 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
06c0fba4 RD |
947 | int _arg2 = (int ) wxOK|wxCENTRE; |
948 | wxWindow * _arg3 = (wxWindow *) NULL; | |
949 | int _arg4 = (int ) -1; | |
950 | int _arg5 = (int ) -1; | |
951 | PyObject * _obj0 = 0; | |
952 | PyObject * _obj1 = 0; | |
953 | PyObject * _argo3 = 0; | |
954 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
955 | ||
956 | self = self; | |
957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
958 | return NULL; | |
959 | { | |
c8bc7bb8 RD |
960 | _arg0 = wxString_in_helper(_obj0); |
961 | if (_arg0 == NULL) | |
185d7c3e | 962 | return NULL; |
06c0fba4 RD |
963 | } |
964 | if (_obj1) | |
965 | { | |
c8bc7bb8 RD |
966 | _arg1 = wxString_in_helper(_obj1); |
967 | if (_arg1 == NULL) | |
185d7c3e | 968 | return NULL; |
06c0fba4 RD |
969 | } |
970 | if (_argo3) { | |
971 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
972 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
974 | return NULL; | |
975 | } | |
976 | } | |
977 | { | |
4268f798 | 978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 979 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); |
06c0fba4 | 980 | |
4268f798 RD |
981 | wxPyEndAllowThreads(__tstate); |
982 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
983 | } _resultobj = Py_BuildValue("i",_result); |
984 | { | |
985 | if (_obj0) | |
986 | delete _arg0; | |
987 | } | |
988 | { | |
989 | if (_obj1) | |
990 | delete _arg1; | |
991 | } | |
992 | return _resultobj; | |
993 | } | |
994 | ||
995 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
996 | PyObject * _resultobj; | |
997 | long _result; | |
998 | wxString * _arg0; | |
999 | wxString * _arg1; | |
1000 | wxString * _arg2; | |
1001 | long _arg3; | |
1002 | long _arg4 = (long ) 0; | |
1003 | long _arg5 = (long ) 100; | |
1004 | wxWindow * _arg6 = (wxWindow *) NULL; | |
e508a2b6 | 1005 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; |
06c0fba4 RD |
1006 | PyObject * _obj0 = 0; |
1007 | PyObject * _obj1 = 0; | |
1008 | PyObject * _obj2 = 0; | |
1009 | PyObject * _argo6 = 0; | |
1010 | wxPoint temp; | |
1011 | PyObject * _obj7 = 0; | |
1012 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
1013 | ||
1014 | self = self; | |
1015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
1016 | return NULL; | |
1017 | { | |
c8bc7bb8 RD |
1018 | _arg0 = wxString_in_helper(_obj0); |
1019 | if (_arg0 == NULL) | |
185d7c3e | 1020 | return NULL; |
06c0fba4 RD |
1021 | } |
1022 | { | |
c8bc7bb8 RD |
1023 | _arg1 = wxString_in_helper(_obj1); |
1024 | if (_arg1 == NULL) | |
06c0fba4 | 1025 | return NULL; |
06c0fba4 RD |
1026 | } |
1027 | { | |
c8bc7bb8 RD |
1028 | _arg2 = wxString_in_helper(_obj2); |
1029 | if (_arg2 == NULL) | |
185d7c3e | 1030 | return NULL; |
06c0fba4 RD |
1031 | } |
1032 | if (_argo6) { | |
1033 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1034 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
1035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
1036 | return NULL; | |
1037 | } | |
1038 | } | |
1039 | if (_obj7) | |
1040 | { | |
1041 | _arg7 = &temp; | |
1042 | if (! wxPoint_helper(_obj7, &_arg7)) | |
1043 | return NULL; | |
1044 | } | |
1045 | { | |
4268f798 | 1046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1047 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); |
06c0fba4 | 1048 | |
4268f798 RD |
1049 | wxPyEndAllowThreads(__tstate); |
1050 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1051 | } _resultobj = Py_BuildValue("l",_result); |
1052 | { | |
1053 | if (_obj0) | |
1054 | delete _arg0; | |
1055 | } | |
1056 | { | |
1057 | if (_obj1) | |
1058 | delete _arg1; | |
1059 | } | |
1060 | { | |
1061 | if (_obj2) | |
1062 | delete _arg2; | |
1063 | } | |
1064 | return _resultobj; | |
1065 | } | |
1066 | ||
1067 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1068 | PyObject * _resultobj; | |
1069 | bool _result; | |
1070 | char *_kwnames[] = { NULL }; | |
1071 | ||
1072 | self = self; | |
1073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
1074 | return NULL; | |
1075 | { | |
4268f798 | 1076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1077 | _result = (bool )wxColourDisplay(); |
06c0fba4 | 1078 | |
4268f798 RD |
1079 | wxPyEndAllowThreads(__tstate); |
1080 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1081 | } _resultobj = Py_BuildValue("i",_result); |
1082 | return _resultobj; | |
1083 | } | |
1084 | ||
1085 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1086 | PyObject * _resultobj; | |
1087 | int _result; | |
1088 | char *_kwnames[] = { NULL }; | |
1089 | ||
1090 | self = self; | |
1091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
1092 | return NULL; | |
1093 | { | |
4268f798 | 1094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1095 | _result = (int )wxDisplayDepth(); |
06c0fba4 | 1096 | |
4268f798 RD |
1097 | wxPyEndAllowThreads(__tstate); |
1098 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1099 | } _resultobj = Py_BuildValue("i",_result); |
1100 | return _resultobj; | |
1101 | } | |
f0261a72 | 1102 | |
1e7ecb7b RD |
1103 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { |
1104 | PyObject * _resultobj; | |
1105 | int _result; | |
1106 | char *_kwnames[] = { NULL }; | |
1107 | ||
1108 | self = self; | |
1109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
1110 | return NULL; | |
1111 | { | |
4268f798 | 1112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1113 | _result = (int )wxGetDisplayDepth(); |
1e7ecb7b | 1114 | |
4268f798 RD |
1115 | wxPyEndAllowThreads(__tstate); |
1116 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1117 | } _resultobj = Py_BuildValue("i",_result); |
1118 | return _resultobj; | |
1119 | } | |
1120 | ||
1121 | static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1122 | PyObject * _resultobj; | |
1123 | int * _arg0; | |
1124 | int temp; | |
1125 | int * _arg1; | |
1126 | int temp0; | |
1127 | char *_kwnames[] = { NULL }; | |
1128 | ||
1129 | self = self; | |
1130 | { | |
1131 | _arg0 = &temp; | |
1132 | } | |
1133 | { | |
1134 | _arg1 = &temp0; | |
1135 | } | |
1136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames)) | |
1137 | return NULL; | |
1138 | { | |
4268f798 | 1139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1140 | wxDisplaySize(_arg0,_arg1); |
1e7ecb7b | 1141 | |
4268f798 RD |
1142 | wxPyEndAllowThreads(__tstate); |
1143 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1144 | } Py_INCREF(Py_None); |
1145 | _resultobj = Py_None; | |
1146 | { | |
1147 | PyObject *o; | |
1148 | o = PyInt_FromLong((long) (*_arg0)); | |
1149 | _resultobj = t_output_helper(_resultobj, o); | |
1150 | } | |
1151 | { | |
1152 | PyObject *o; | |
1153 | o = PyInt_FromLong((long) (*_arg1)); | |
1154 | _resultobj = t_output_helper(_resultobj, o); | |
1155 | } | |
1156 | return _resultobj; | |
1157 | } | |
1158 | ||
1159 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1160 | PyObject * _resultobj; | |
1161 | wxSize * _result; | |
1162 | char *_kwnames[] = { NULL }; | |
1163 | char _ptemp[128]; | |
1164 | ||
1165 | self = self; | |
1166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
1167 | return NULL; | |
1168 | { | |
4268f798 | 1169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1170 | _result = new wxSize (wxGetDisplaySize()); |
1e7ecb7b | 1171 | |
4268f798 RD |
1172 | wxPyEndAllowThreads(__tstate); |
1173 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1174 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1175 | _resultobj = Py_BuildValue("s",_ptemp); | |
1176 | return _resultobj; | |
1177 | } | |
1178 | ||
1179 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1180 | PyObject * _resultobj; | |
1181 | int * _arg0; | |
1182 | int temp; | |
1183 | int * _arg1; | |
1184 | int temp0; | |
1185 | char *_kwnames[] = { NULL }; | |
1186 | ||
1187 | self = self; | |
1188 | { | |
1189 | _arg0 = &temp; | |
1190 | } | |
1191 | { | |
1192 | _arg1 = &temp0; | |
1193 | } | |
1194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
1195 | return NULL; | |
1196 | { | |
4268f798 | 1197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1198 | wxDisplaySizeMM(_arg0,_arg1); |
1e7ecb7b | 1199 | |
4268f798 RD |
1200 | wxPyEndAllowThreads(__tstate); |
1201 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1202 | } Py_INCREF(Py_None); |
1203 | _resultobj = Py_None; | |
1204 | { | |
1205 | PyObject *o; | |
1206 | o = PyInt_FromLong((long) (*_arg0)); | |
1207 | _resultobj = t_output_helper(_resultobj, o); | |
1208 | } | |
1209 | { | |
1210 | PyObject *o; | |
1211 | o = PyInt_FromLong((long) (*_arg1)); | |
1212 | _resultobj = t_output_helper(_resultobj, o); | |
1213 | } | |
1214 | return _resultobj; | |
1215 | } | |
1216 | ||
1217 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1218 | PyObject * _resultobj; | |
1219 | wxSize * _result; | |
1220 | char *_kwnames[] = { NULL }; | |
1221 | char _ptemp[128]; | |
1222 | ||
1223 | self = self; | |
1224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1225 | return NULL; | |
1226 | { | |
4268f798 | 1227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1228 | _result = new wxSize (wxGetDisplaySizeMM()); |
1e7ecb7b | 1229 | |
4268f798 RD |
1230 | wxPyEndAllowThreads(__tstate); |
1231 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1232 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1233 | _resultobj = Py_BuildValue("s",_ptemp); | |
1234 | return _resultobj; | |
1235 | } | |
1236 | ||
91c41b30 RD |
1237 | static PyObject *_wrap_wxClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
1238 | PyObject * _resultobj; | |
1239 | int * _arg0; | |
1240 | int temp; | |
1241 | int * _arg1; | |
1242 | int temp0; | |
1243 | int * _arg2; | |
1244 | int temp1; | |
1245 | int * _arg3; | |
1246 | int temp2; | |
1247 | char *_kwnames[] = { NULL }; | |
1248 | ||
1249 | self = self; | |
1250 | { | |
1251 | _arg0 = &temp; | |
1252 | } | |
1253 | { | |
1254 | _arg1 = &temp0; | |
1255 | } | |
1256 | { | |
1257 | _arg2 = &temp1; | |
1258 | } | |
1259 | { | |
1260 | _arg3 = &temp2; | |
1261 | } | |
1262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxClientDisplayRect",_kwnames)) | |
1263 | return NULL; | |
1264 | { | |
4268f798 | 1265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1266 | wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3); |
91c41b30 | 1267 | |
4268f798 RD |
1268 | wxPyEndAllowThreads(__tstate); |
1269 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1270 | } Py_INCREF(Py_None); |
1271 | _resultobj = Py_None; | |
1272 | { | |
1273 | PyObject *o; | |
1274 | o = PyInt_FromLong((long) (*_arg0)); | |
1275 | _resultobj = t_output_helper(_resultobj, o); | |
1276 | } | |
1277 | { | |
1278 | PyObject *o; | |
1279 | o = PyInt_FromLong((long) (*_arg1)); | |
1280 | _resultobj = t_output_helper(_resultobj, o); | |
1281 | } | |
1282 | { | |
1283 | PyObject *o; | |
1284 | o = PyInt_FromLong((long) (*_arg2)); | |
1285 | _resultobj = t_output_helper(_resultobj, o); | |
1286 | } | |
1287 | { | |
1288 | PyObject *o; | |
1289 | o = PyInt_FromLong((long) (*_arg3)); | |
1290 | _resultobj = t_output_helper(_resultobj, o); | |
1291 | } | |
1292 | return _resultobj; | |
1293 | } | |
1294 | ||
1295 | static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1296 | PyObject * _resultobj; | |
1297 | wxRect * _result; | |
1298 | char *_kwnames[] = { NULL }; | |
1299 | char _ptemp[128]; | |
1300 | ||
1301 | self = self; | |
1302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames)) | |
1303 | return NULL; | |
1304 | { | |
4268f798 | 1305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1306 | _result = new wxRect (wxGetClientDisplayRect()); |
91c41b30 | 1307 | |
4268f798 RD |
1308 | wxPyEndAllowThreads(__tstate); |
1309 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1310 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
1311 | _resultobj = Py_BuildValue("s",_ptemp); | |
1312 | return _resultobj; | |
1313 | } | |
1314 | ||
06c0fba4 RD |
1315 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1316 | PyObject * _resultobj; | |
1317 | wxCursor * _arg0; | |
1318 | PyObject * _argo0 = 0; | |
1319 | char *_kwnames[] = { "cursor", NULL }; | |
f0261a72 | 1320 | |
06c0fba4 RD |
1321 | self = self; |
1322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1323 | return NULL; | |
1324 | if (_argo0) { | |
1325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
1328 | return NULL; | |
1329 | } | |
f0261a72 | 1330 | } |
06c0fba4 | 1331 | { |
4268f798 | 1332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1333 | wxSetCursor(*_arg0); |
06c0fba4 | 1334 | |
4268f798 RD |
1335 | wxPyEndAllowThreads(__tstate); |
1336 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1337 | } Py_INCREF(Py_None); |
1338 | _resultobj = Py_None; | |
1339 | return _resultobj; | |
1340 | } | |
1341 | ||
06c0fba4 RD |
1342 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1343 | PyObject * _resultobj; | |
1344 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1345 | PyObject * _argo0 = 0; | |
1346 | char *_kwnames[] = { "cursor", NULL }; | |
1347 | ||
1348 | self = self; | |
1349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1350 | return NULL; | |
1351 | if (_argo0) { | |
1352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1355 | return NULL; | |
1356 | } | |
1357 | } | |
1358 | { | |
4268f798 | 1359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1360 | wxBeginBusyCursor(_arg0); |
06c0fba4 | 1361 | |
4268f798 RD |
1362 | wxPyEndAllowThreads(__tstate); |
1363 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1364 | } Py_INCREF(Py_None); |
1365 | _resultobj = Py_None; | |
1366 | return _resultobj; | |
1367 | } | |
1368 | ||
1369 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1370 | PyObject * _resultobj; | |
1371 | wxWindow * _result; | |
1372 | char *_kwnames[] = { NULL }; | |
06c0fba4 RD |
1373 | |
1374 | self = self; | |
1375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1376 | return NULL; | |
1377 | { | |
4268f798 | 1378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1379 | _result = (wxWindow *)wxGetActiveWindow(); |
06c0fba4 | 1380 | |
4268f798 RD |
1381 | wxPyEndAllowThreads(__tstate); |
1382 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1383 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1384 | return _resultobj; |
1385 | } | |
1386 | ||
493f1553 RD |
1387 | static PyObject *_wrap_wxGenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
1388 | PyObject * _resultobj; | |
1389 | wxWindow * _result; | |
1390 | wxPoint * _arg0; | |
1391 | wxPoint temp; | |
1392 | PyObject * _obj0 = 0; | |
1393 | char *_kwnames[] = { "pt", NULL }; | |
1394 | ||
1395 | self = self; | |
1396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericFindWindowAtPoint",_kwnames,&_obj0)) | |
1397 | return NULL; | |
1398 | { | |
1399 | _arg0 = &temp; | |
1400 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1401 | return NULL; | |
1402 | } | |
1403 | { | |
4268f798 | 1404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1405 | _result = (wxWindow *)wxGenericFindWindowAtPoint(*_arg0); |
493f1553 | 1406 | |
4268f798 RD |
1407 | wxPyEndAllowThreads(__tstate); |
1408 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1409 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1410 | return _resultobj; | |
1411 | } | |
1412 | ||
1413 | static PyObject *_wrap_wxFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1414 | PyObject * _resultobj; | |
1415 | wxWindow * _result; | |
1416 | wxPoint * _arg0; | |
1417 | wxPoint temp; | |
1418 | PyObject * _obj0 = 0; | |
1419 | char *_kwnames[] = { "pt", NULL }; | |
1420 | ||
1421 | self = self; | |
1422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindWindowAtPoint",_kwnames,&_obj0)) | |
1423 | return NULL; | |
1424 | { | |
1425 | _arg0 = &temp; | |
1426 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1427 | return NULL; | |
1428 | } | |
1429 | { | |
4268f798 | 1430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1431 | _result = (wxWindow *)wxFindWindowAtPoint(*_arg0); |
493f1553 | 1432 | |
4268f798 RD |
1433 | wxPyEndAllowThreads(__tstate); |
1434 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1435 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1436 | return _resultobj; | |
1437 | } | |
1438 | ||
1439 | static PyObject *_wrap_wxCheckForInterrupt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1440 | PyObject * _resultobj; | |
1441 | bool _result; | |
1442 | wxWindow * _arg0; | |
1443 | PyObject * _argo0 = 0; | |
1444 | char *_kwnames[] = { "wnd", NULL }; | |
1445 | ||
1446 | self = self; | |
1447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckForInterrupt",_kwnames,&_argo0)) | |
1448 | return NULL; | |
1449 | if (_argo0) { | |
1450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckForInterrupt. Expected _wxWindow_p."); | |
1453 | return NULL; | |
1454 | } | |
1455 | } | |
1456 | { | |
4268f798 | 1457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1458 | _result = (bool )wxCheckForInterrupt(_arg0); |
493f1553 | 1459 | |
4268f798 RD |
1460 | wxPyEndAllowThreads(__tstate); |
1461 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1462 | } _resultobj = Py_BuildValue("i",_result); |
1463 | return _resultobj; | |
1464 | } | |
1465 | ||
25832b3f RD |
1466 | static PyObject *_wrap_wxFlushEvents(PyObject *self, PyObject *args, PyObject *kwargs) { |
1467 | PyObject * _resultobj; | |
1468 | char *_kwnames[] = { NULL }; | |
1469 | ||
1470 | self = self; | |
1471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFlushEvents",_kwnames)) | |
1472 | return NULL; | |
1473 | { | |
4268f798 | 1474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1475 | wxFlushEvents(); |
25832b3f | 1476 | |
4268f798 RD |
1477 | wxPyEndAllowThreads(__tstate); |
1478 | if (PyErr_Occurred()) return NULL; | |
25832b3f RD |
1479 | } Py_INCREF(Py_None); |
1480 | _resultobj = Py_None; | |
1481 | return _resultobj; | |
1482 | } | |
1483 | ||
2a74d141 RD |
1484 | static PyObject *_wrap_wxGetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1485 | PyObject * _resultobj; | |
1486 | wxWindow * _result; | |
1487 | wxWindow * _arg0; | |
1488 | PyObject * _argo0 = 0; | |
1489 | char *_kwnames[] = { "win", NULL }; | |
1490 | ||
1491 | self = self; | |
1492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGetTopLevelParent",_kwnames,&_argo0)) | |
1493 | return NULL; | |
1494 | if (_argo0) { | |
1495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGetTopLevelParent. Expected _wxWindow_p."); | |
1498 | return NULL; | |
1499 | } | |
1500 | } | |
1501 | { | |
1502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1503 | _result = (wxWindow *)wxGetTopLevelParent(_arg0); | |
1504 | ||
1505 | wxPyEndAllowThreads(__tstate); | |
1506 | if (PyErr_Occurred()) return NULL; | |
1507 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1508 | return _resultobj; | |
1509 | } | |
1510 | ||
06c0fba4 RD |
1511 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { |
1512 | PyObject * _resultobj; | |
1513 | bool _result; | |
1514 | char * _arg0; | |
1515 | int _arg1; | |
1516 | char *_kwnames[] = { "name","value", NULL }; | |
1517 | ||
1518 | self = self; | |
1519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
1520 | return NULL; | |
1521 | { | |
4268f798 | 1522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1523 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); |
06c0fba4 | 1524 | |
4268f798 RD |
1525 | wxPyEndAllowThreads(__tstate); |
1526 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1527 | } _resultobj = Py_BuildValue("i",_result); |
1528 | return _resultobj; | |
1529 | } | |
1530 | ||
1531 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1532 | PyObject * _resultobj; | |
1533 | char *_kwnames[] = { NULL }; | |
1534 | ||
1535 | self = self; | |
1536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
1537 | return NULL; | |
1538 | { | |
4268f798 | 1539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1540 | wxResourceClear(); |
06c0fba4 | 1541 | |
4268f798 RD |
1542 | wxPyEndAllowThreads(__tstate); |
1543 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1544 | } Py_INCREF(Py_None); |
1545 | _resultobj = Py_None; | |
1546 | return _resultobj; | |
1547 | } | |
1548 | ||
1549 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1550 | PyObject * _resultobj; | |
1551 | wxBitmap * _result; | |
1552 | char * _arg0; | |
1553 | char *_kwnames[] = { "resource", NULL }; | |
1554 | char _ptemp[128]; | |
1555 | ||
1556 | self = self; | |
1557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
1558 | return NULL; | |
1559 | { | |
4268f798 | 1560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1561 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); |
06c0fba4 | 1562 | |
4268f798 RD |
1563 | wxPyEndAllowThreads(__tstate); |
1564 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1565 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1566 | _resultobj = Py_BuildValue("s",_ptemp); | |
1567 | return _resultobj; | |
1568 | } | |
1569 | ||
1570 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1571 | PyObject * _resultobj; | |
1572 | wxIcon * _result; | |
1573 | char * _arg0; | |
1574 | char *_kwnames[] = { "resource", NULL }; | |
1575 | char _ptemp[128]; | |
1576 | ||
1577 | self = self; | |
1578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
1579 | return NULL; | |
1580 | { | |
4268f798 | 1581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1582 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); |
06c0fba4 | 1583 | |
4268f798 RD |
1584 | wxPyEndAllowThreads(__tstate); |
1585 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1586 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); |
1587 | _resultobj = Py_BuildValue("s",_ptemp); | |
1588 | return _resultobj; | |
1589 | } | |
1590 | ||
1591 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1592 | PyObject * _resultobj; | |
1593 | wxMenuBar * _result; | |
1594 | char * _arg0; | |
1595 | char *_kwnames[] = { "resource", NULL }; | |
06c0fba4 RD |
1596 | |
1597 | self = self; | |
1598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
1599 | return NULL; | |
1600 | { | |
4268f798 | 1601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1602 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); |
06c0fba4 | 1603 | |
4268f798 RD |
1604 | wxPyEndAllowThreads(__tstate); |
1605 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1606 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1607 | return _resultobj; |
1608 | } | |
1609 | ||
1610 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1611 | PyObject * _resultobj; | |
1612 | int _result; | |
1613 | char * _arg0; | |
1614 | char *_kwnames[] = { "name", NULL }; | |
1615 | ||
1616 | self = self; | |
1617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
1618 | return NULL; | |
1619 | { | |
4268f798 | 1620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1621 | _result = (int )wxResourceGetIdentifier(_arg0); |
06c0fba4 | 1622 | |
4268f798 RD |
1623 | wxPyEndAllowThreads(__tstate); |
1624 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1625 | } _resultobj = Py_BuildValue("i",_result); |
1626 | return _resultobj; | |
1627 | } | |
1628 | ||
1629 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1630 | PyObject * _resultobj; | |
1631 | bool _result; | |
1632 | char * _arg0; | |
1633 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1634 | PyObject * _argo1 = 0; | |
1635 | char *_kwnames[] = { "resource","table", NULL }; | |
1636 | ||
1637 | self = self; | |
1638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
1639 | return NULL; | |
1640 | if (_argo1) { | |
1641 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1642 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
1644 | return NULL; | |
1645 | } | |
1646 | } | |
1647 | { | |
4268f798 | 1648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1649 | _result = (bool )wxResourceParseData(_arg0,_arg1); |
06c0fba4 | 1650 | |
4268f798 RD |
1651 | wxPyEndAllowThreads(__tstate); |
1652 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1653 | } _resultobj = Py_BuildValue("i",_result); |
1654 | return _resultobj; | |
1655 | } | |
1656 | ||
1657 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1658 | PyObject * _resultobj; | |
1659 | bool _result; | |
1660 | char * _arg0; | |
1661 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1662 | PyObject * _argo1 = 0; | |
1663 | char *_kwnames[] = { "filename","table", NULL }; | |
1664 | ||
1665 | self = self; | |
1666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
1667 | return NULL; | |
1668 | if (_argo1) { | |
1669 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1670 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
1672 | return NULL; | |
1673 | } | |
1674 | } | |
1675 | { | |
4268f798 | 1676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1677 | _result = (bool )wxResourceParseFile(_arg0,_arg1); |
06c0fba4 | 1678 | |
4268f798 RD |
1679 | wxPyEndAllowThreads(__tstate); |
1680 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1681 | } _resultobj = Py_BuildValue("i",_result); |
1682 | return _resultobj; | |
1683 | } | |
1684 | ||
1685 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1686 | PyObject * _resultobj; | |
1687 | bool _result; | |
1688 | char * _arg0; | |
1689 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1690 | PyObject * _argo1 = 0; | |
1691 | char *_kwnames[] = { "resource","table", NULL }; | |
1692 | ||
1693 | self = self; | |
1694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
1695 | return NULL; | |
1696 | if (_argo1) { | |
1697 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1698 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
1700 | return NULL; | |
1701 | } | |
1702 | } | |
1703 | { | |
4268f798 | 1704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1705 | _result = (bool )wxResourceParseString(_arg0,_arg1); |
06c0fba4 | 1706 | |
4268f798 RD |
1707 | wxPyEndAllowThreads(__tstate); |
1708 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1709 | } _resultobj = Py_BuildValue("i",_result); |
1710 | return _resultobj; | |
1711 | } | |
1712 | ||
f0261a72 RD |
1713 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { |
1714 | PyObject * _resultobj; | |
1715 | int _result; | |
1716 | char *_kwnames[] = { NULL }; | |
1717 | ||
1718 | self = self; | |
1719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1720 | return NULL; | |
1721 | { | |
4268f798 | 1722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1723 | _result = (int )wxCaret_GetBlinkTime(); |
f0261a72 | 1724 | |
4268f798 RD |
1725 | wxPyEndAllowThreads(__tstate); |
1726 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1727 | } _resultobj = Py_BuildValue("i",_result); |
1728 | return _resultobj; | |
1729 | } | |
1730 | ||
1731 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1732 | PyObject * _resultobj; | |
1733 | int _arg0; | |
1734 | char *_kwnames[] = { "milliseconds", NULL }; | |
1735 | ||
1736 | self = self; | |
1737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1738 | return NULL; | |
1739 | { | |
4268f798 | 1740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1741 | wxCaret_SetBlinkTime(_arg0); |
f0261a72 | 1742 | |
4268f798 RD |
1743 | wxPyEndAllowThreads(__tstate); |
1744 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1745 | } Py_INCREF(Py_None); |
1746 | _resultobj = Py_None; | |
1747 | return _resultobj; | |
1748 | } | |
1749 | ||
6e18ca6c RD |
1750 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { |
1751 | PyObject * _resultobj; | |
1752 | bool _result; | |
1753 | wxWindow * _arg0 = (wxWindow *) NULL; | |
1754 | PyObject * _argo0 = 0; | |
1755 | char *_kwnames[] = { "win", NULL }; | |
1756 | ||
1757 | self = self; | |
1758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0)) | |
1759 | return NULL; | |
1760 | if (_argo0) { | |
1761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1764 | return NULL; | |
1765 | } | |
1766 | } | |
1767 | { | |
4268f798 | 1768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1769 | _result = (bool )wxSafeYield(_arg0); |
6e18ca6c | 1770 | |
4268f798 RD |
1771 | wxPyEndAllowThreads(__tstate); |
1772 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1773 | } _resultobj = Py_BuildValue("i",_result); |
1774 | return _resultobj; | |
1775 | } | |
1776 | ||
b1462dfa RD |
1777 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1778 | PyObject * _resultobj; | |
1779 | wxEvtHandler * _arg0; | |
1780 | wxEvent * _arg1; | |
1781 | PyObject * _argo0 = 0; | |
1782 | PyObject * _argo1 = 0; | |
1783 | char *_kwnames[] = { "dest","event", NULL }; | |
1784 | ||
1785 | self = self; | |
1786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1787 | return NULL; | |
1788 | if (_argo0) { | |
1789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1792 | return NULL; | |
1793 | } | |
1794 | } | |
1795 | if (_argo1) { | |
1796 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1797 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1799 | return NULL; | |
1800 | } | |
1801 | } | |
1802 | { | |
4268f798 | 1803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1804 | wxPostEvent(_arg0,*_arg1); |
b1462dfa | 1805 | |
4268f798 RD |
1806 | wxPyEndAllowThreads(__tstate); |
1807 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
1808 | } Py_INCREF(Py_None); |
1809 | _resultobj = Py_None; | |
1810 | return _resultobj; | |
1811 | } | |
1812 | ||
694759cf RD |
1813 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { |
1814 | PyObject * _resultobj; | |
1815 | char *_kwnames[] = { NULL }; | |
1816 | ||
1817 | self = self; | |
1818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1819 | return NULL; | |
1820 | { | |
4268f798 | 1821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1822 | wxWakeUpIdle(); |
694759cf | 1823 | |
4268f798 RD |
1824 | wxPyEndAllowThreads(__tstate); |
1825 | if (PyErr_Occurred()) return NULL; | |
694759cf RD |
1826 | } Py_INCREF(Py_None); |
1827 | _resultobj = Py_None; | |
1828 | return _resultobj; | |
1829 | } | |
1830 | ||
6e18ca6c | 1831 | static PyObject *_wrap_wxWakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
c368d904 | 1832 | PyObject * _resultobj; |
6e18ca6c | 1833 | char *_kwnames[] = { NULL }; |
c368d904 RD |
1834 | |
1835 | self = self; | |
6e18ca6c | 1836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpMainThread",_kwnames)) |
c368d904 | 1837 | return NULL; |
6e18ca6c | 1838 | { |
4268f798 | 1839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1840 | wxWakeUpMainThread(); |
6e18ca6c | 1841 | |
4268f798 RD |
1842 | wxPyEndAllowThreads(__tstate); |
1843 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1844 | } Py_INCREF(Py_None); |
1845 | _resultobj = Py_None; | |
1846 | return _resultobj; | |
1847 | } | |
1848 | ||
1849 | static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1850 | PyObject * _resultobj; | |
1851 | char *_kwnames[] = { NULL }; | |
1852 | ||
1853 | self = self; | |
1854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames)) | |
c368d904 | 1855 | return NULL; |
c368d904 | 1856 | { |
4268f798 | 1857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1858 | wxMutexGuiEnter(); |
6e18ca6c | 1859 | |
4268f798 RD |
1860 | wxPyEndAllowThreads(__tstate); |
1861 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1862 | } Py_INCREF(Py_None); |
1863 | _resultobj = Py_None; | |
1864 | return _resultobj; | |
1865 | } | |
1866 | ||
1867 | static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1868 | PyObject * _resultobj; | |
1869 | char *_kwnames[] = { NULL }; | |
1870 | ||
1871 | self = self; | |
1872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames)) | |
1873 | return NULL; | |
1874 | { | |
4268f798 | 1875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1876 | wxMutexGuiLeave(); |
6e18ca6c | 1877 | |
4268f798 RD |
1878 | wxPyEndAllowThreads(__tstate); |
1879 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1880 | } Py_INCREF(Py_None); |
1881 | _resultobj = Py_None; | |
1882 | return _resultobj; | |
1883 | } | |
1884 | ||
1885 | static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1886 | PyObject * _resultobj; | |
1887 | bool _result; | |
1888 | char *_kwnames[] = { NULL }; | |
1889 | ||
1890 | self = self; | |
1891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames)) | |
1892 | return NULL; | |
1893 | { | |
4268f798 | 1894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1895 | _result = (bool )wxThread_IsMain(); |
c368d904 | 1896 | |
4268f798 RD |
1897 | wxPyEndAllowThreads(__tstate); |
1898 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
1899 | } _resultobj = Py_BuildValue("i",_result); |
1900 | return _resultobj; | |
1901 | } | |
1902 | ||
f6bcfd97 | 1903 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd | 1904 | PyObject * _resultobj; |
f6bcfd97 BP |
1905 | bool _result; |
1906 | wxWindow * _arg0; | |
1907 | wxTipProvider * _arg1; | |
1908 | bool _arg2 = (bool ) TRUE; | |
1909 | PyObject * _argo0 = 0; | |
1910 | PyObject * _argo1 = 0; | |
1911 | int tempbool2 = (int) TRUE; | |
1912 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1913 | ||
1914 | self = self; | |
1915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1916 | return NULL; | |
1917 | if (_argo0) { | |
1918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1921 | return NULL; | |
1922 | } | |
1923 | } | |
1924 | if (_argo1) { | |
1925 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1926 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1928 | return NULL; | |
1929 | } | |
1930 | } | |
1931 | _arg2 = (bool ) tempbool2; | |
1932 | { | |
4268f798 | 1933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1934 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); |
f6bcfd97 | 1935 | |
4268f798 RD |
1936 | wxPyEndAllowThreads(__tstate); |
1937 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1938 | } _resultobj = Py_BuildValue("i",_result); |
1939 | return _resultobj; | |
1940 | } | |
1941 | ||
1942 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1943 | PyObject * _resultobj; | |
1944 | wxTipProvider * _result; | |
bb0054cd | 1945 | wxString * _arg0; |
f6bcfd97 | 1946 | size_t _arg1; |
bb0054cd | 1947 | PyObject * _obj0 = 0; |
f6bcfd97 | 1948 | char *_kwnames[] = { "filename","currentTip", NULL }; |
bb0054cd RD |
1949 | char _ptemp[128]; |
1950 | ||
1951 | self = self; | |
f6bcfd97 | 1952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) |
bb0054cd RD |
1953 | return NULL; |
1954 | { | |
c8bc7bb8 RD |
1955 | _arg0 = wxString_in_helper(_obj0); |
1956 | if (_arg0 == NULL) | |
185d7c3e | 1957 | return NULL; |
bb0054cd RD |
1958 | } |
1959 | { | |
4268f798 | 1960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1961 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); |
bb0054cd | 1962 | |
4268f798 RD |
1963 | wxPyEndAllowThreads(__tstate); |
1964 | if (PyErr_Occurred()) return NULL; | |
1d99702e | 1965 | } if (_result) { |
f6bcfd97 | 1966 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); |
1d99702e RD |
1967 | _resultobj = Py_BuildValue("s",_ptemp); |
1968 | } else { | |
1969 | Py_INCREF(Py_None); | |
1970 | _resultobj = Py_None; | |
1971 | } | |
bb0054cd RD |
1972 | { |
1973 | if (_obj0) | |
1974 | delete _arg0; | |
1975 | } | |
1976 | return _resultobj; | |
1977 | } | |
1978 | ||
f6bcfd97 | 1979 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1980 | PyObject * _resultobj; |
f6bcfd97 BP |
1981 | unsigned long _result; |
1982 | char *_kwnames[] = { NULL }; | |
f0261a72 RD |
1983 | |
1984 | self = self; | |
f6bcfd97 | 1985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) |
f0261a72 | 1986 | return NULL; |
f0261a72 | 1987 | { |
4268f798 | 1988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1989 | _result = (unsigned long )wxSysErrorCode(); |
f0261a72 | 1990 | |
4268f798 RD |
1991 | wxPyEndAllowThreads(__tstate); |
1992 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 1993 | } _resultobj = Py_BuildValue("l",_result); |
f0261a72 RD |
1994 | return _resultobj; |
1995 | } | |
1996 | ||
f6bcfd97 | 1997 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1998 | PyObject * _resultobj; |
c8bc7bb8 | 1999 | wxString * _result; |
f6bcfd97 BP |
2000 | unsigned long _arg0 = (unsigned long ) 0; |
2001 | char *_kwnames[] = { "nErrCode", NULL }; | |
f0261a72 RD |
2002 | |
2003 | self = self; | |
f6bcfd97 | 2004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) |
f0261a72 | 2005 | return NULL; |
f0261a72 | 2006 | { |
4268f798 | 2007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2008 | _result = new wxString (wxSysErrorMsg(_arg0)); |
f0261a72 | 2009 | |
4268f798 RD |
2010 | wxPyEndAllowThreads(__tstate); |
2011 | if (PyErr_Occurred()) return NULL; | |
c8bc7bb8 RD |
2012 | }{ |
2013 | #if wxUSE_UNICODE | |
2014 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2015 | #else | |
2016 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2017 | #endif | |
2018 | } | |
2019 | { | |
2020 | delete _result; | |
2021 | } | |
f0261a72 RD |
2022 | return _resultobj; |
2023 | } | |
2024 | ||
f6bcfd97 | 2025 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 2026 | PyObject * _resultobj; |
c8bc7bb8 RD |
2027 | wxString * _arg0; |
2028 | PyObject * _obj0 = 0; | |
be13a6af | 2029 | char *_kwnames[] = { "msg", NULL }; |
f0261a72 RD |
2030 | |
2031 | self = self; | |
c8bc7bb8 | 2032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogFatalError",_kwnames,&_obj0)) |
f0261a72 | 2033 | return NULL; |
c8bc7bb8 RD |
2034 | { |
2035 | _arg0 = wxString_in_helper(_obj0); | |
2036 | if (_arg0 == NULL) | |
2037 | return NULL; | |
2038 | } | |
f0261a72 | 2039 | { |
4268f798 | 2040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2041 | wxLogFatalError(*_arg0); |
f0261a72 | 2042 | |
4268f798 RD |
2043 | wxPyEndAllowThreads(__tstate); |
2044 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2045 | } Py_INCREF(Py_None); |
2046 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2047 | { |
2048 | if (_obj0) | |
2049 | delete _arg0; | |
2050 | } | |
f0261a72 RD |
2051 | return _resultobj; |
2052 | } | |
2053 | ||
f6bcfd97 | 2054 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 2055 | PyObject * _resultobj; |
c8bc7bb8 RD |
2056 | wxString * _arg0; |
2057 | PyObject * _obj0 = 0; | |
be13a6af | 2058 | char *_kwnames[] = { "msg", NULL }; |
f0261a72 RD |
2059 | |
2060 | self = self; | |
c8bc7bb8 | 2061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogError",_kwnames,&_obj0)) |
f0261a72 | 2062 | return NULL; |
c8bc7bb8 RD |
2063 | { |
2064 | _arg0 = wxString_in_helper(_obj0); | |
2065 | if (_arg0 == NULL) | |
2066 | return NULL; | |
2067 | } | |
f0261a72 | 2068 | { |
4268f798 | 2069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2070 | wxLogError(*_arg0); |
f0261a72 | 2071 | |
4268f798 RD |
2072 | wxPyEndAllowThreads(__tstate); |
2073 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
2074 | } Py_INCREF(Py_None); |
2075 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2076 | { |
2077 | if (_obj0) | |
2078 | delete _arg0; | |
2079 | } | |
f0261a72 RD |
2080 | return _resultobj; |
2081 | } | |
2082 | ||
f6bcfd97 BP |
2083 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { |
2084 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2085 | wxString * _arg0; |
2086 | PyObject * _obj0 = 0; | |
be13a6af | 2087 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2088 | |
2089 | self = self; | |
c8bc7bb8 | 2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWarning",_kwnames,&_obj0)) |
f6bcfd97 | 2091 | return NULL; |
c8bc7bb8 RD |
2092 | { |
2093 | _arg0 = wxString_in_helper(_obj0); | |
2094 | if (_arg0 == NULL) | |
2095 | return NULL; | |
2096 | } | |
f6bcfd97 | 2097 | { |
4268f798 | 2098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2099 | wxLogWarning(*_arg0); |
f6bcfd97 | 2100 | |
4268f798 RD |
2101 | wxPyEndAllowThreads(__tstate); |
2102 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2103 | } Py_INCREF(Py_None); |
2104 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2105 | { |
2106 | if (_obj0) | |
2107 | delete _arg0; | |
2108 | } | |
f6bcfd97 BP |
2109 | return _resultobj; |
2110 | } | |
2111 | ||
2112 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2113 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2114 | wxString * _arg0; |
2115 | PyObject * _obj0 = 0; | |
be13a6af | 2116 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2117 | |
2118 | self = self; | |
c8bc7bb8 RD |
2119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogMessage",_kwnames,&_obj0)) |
2120 | return NULL; | |
2121 | { | |
2122 | _arg0 = wxString_in_helper(_obj0); | |
2123 | if (_arg0 == NULL) | |
f6bcfd97 | 2124 | return NULL; |
c8bc7bb8 | 2125 | } |
f6bcfd97 | 2126 | { |
4268f798 | 2127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2128 | wxLogMessage(*_arg0); |
f6bcfd97 | 2129 | |
4268f798 RD |
2130 | wxPyEndAllowThreads(__tstate); |
2131 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2132 | } Py_INCREF(Py_None); |
2133 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2134 | { |
2135 | if (_obj0) | |
2136 | delete _arg0; | |
2137 | } | |
f6bcfd97 BP |
2138 | return _resultobj; |
2139 | } | |
2140 | ||
2141 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2142 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2143 | wxString * _arg0; |
2144 | PyObject * _obj0 = 0; | |
be13a6af | 2145 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2146 | |
2147 | self = self; | |
c8bc7bb8 RD |
2148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogInfo",_kwnames,&_obj0)) |
2149 | return NULL; | |
2150 | { | |
2151 | _arg0 = wxString_in_helper(_obj0); | |
2152 | if (_arg0 == NULL) | |
f6bcfd97 | 2153 | return NULL; |
c8bc7bb8 | 2154 | } |
f6bcfd97 | 2155 | { |
4268f798 | 2156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2157 | wxLogInfo(*_arg0); |
f6bcfd97 | 2158 | |
4268f798 RD |
2159 | wxPyEndAllowThreads(__tstate); |
2160 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2161 | } Py_INCREF(Py_None); |
2162 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2163 | { |
2164 | if (_obj0) | |
2165 | delete _arg0; | |
2166 | } | |
f6bcfd97 BP |
2167 | return _resultobj; |
2168 | } | |
2169 | ||
2170 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2171 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2172 | wxString * _arg0; |
2173 | PyObject * _obj0 = 0; | |
be13a6af | 2174 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2175 | |
2176 | self = self; | |
c8bc7bb8 | 2177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogVerbose",_kwnames,&_obj0)) |
f6bcfd97 | 2178 | return NULL; |
c8bc7bb8 RD |
2179 | { |
2180 | _arg0 = wxString_in_helper(_obj0); | |
2181 | if (_arg0 == NULL) | |
2182 | return NULL; | |
2183 | } | |
f6bcfd97 | 2184 | { |
4268f798 | 2185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2186 | wxLogVerbose(*_arg0); |
f6bcfd97 | 2187 | |
4268f798 RD |
2188 | wxPyEndAllowThreads(__tstate); |
2189 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2190 | } Py_INCREF(Py_None); |
2191 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2192 | { |
2193 | if (_obj0) | |
2194 | delete _arg0; | |
2195 | } | |
f6bcfd97 BP |
2196 | return _resultobj; |
2197 | } | |
2198 | ||
2199 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2200 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2201 | wxString * _arg0; |
2202 | PyObject * _obj0 = 0; | |
be13a6af | 2203 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2204 | |
2205 | self = self; | |
c8bc7bb8 RD |
2206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogStatus",_kwnames,&_obj0)) |
2207 | return NULL; | |
2208 | { | |
2209 | _arg0 = wxString_in_helper(_obj0); | |
2210 | if (_arg0 == NULL) | |
f6bcfd97 | 2211 | return NULL; |
c8bc7bb8 | 2212 | } |
f6bcfd97 | 2213 | { |
4268f798 | 2214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2215 | wxLogStatus(*_arg0); |
f6bcfd97 | 2216 | |
4268f798 RD |
2217 | wxPyEndAllowThreads(__tstate); |
2218 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2219 | } Py_INCREF(Py_None); |
2220 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2221 | { |
2222 | if (_obj0) | |
2223 | delete _arg0; | |
2224 | } | |
f6bcfd97 BP |
2225 | return _resultobj; |
2226 | } | |
2227 | ||
2228 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2229 | PyObject * _resultobj; | |
2230 | wxFrame * _arg0; | |
c8bc7bb8 | 2231 | wxString * _arg1; |
f6bcfd97 | 2232 | PyObject * _argo0 = 0; |
c8bc7bb8 | 2233 | PyObject * _obj1 = 0; |
be13a6af | 2234 | char *_kwnames[] = { "pFrame","msg", NULL }; |
f6bcfd97 BP |
2235 | |
2236 | self = self; | |
c8bc7bb8 | 2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogStatusFrame",_kwnames,&_argo0,&_obj1)) |
f6bcfd97 BP |
2238 | return NULL; |
2239 | if (_argo0) { | |
2240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2243 | return NULL; | |
2244 | } | |
2245 | } | |
c8bc7bb8 RD |
2246 | { |
2247 | _arg1 = wxString_in_helper(_obj1); | |
2248 | if (_arg1 == NULL) | |
2249 | return NULL; | |
2250 | } | |
f6bcfd97 | 2251 | { |
4268f798 | 2252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2253 | wxLogStatus(_arg0,*_arg1); |
f6bcfd97 | 2254 | |
4268f798 RD |
2255 | wxPyEndAllowThreads(__tstate); |
2256 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2257 | } Py_INCREF(Py_None); |
2258 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2259 | { |
2260 | if (_obj1) | |
2261 | delete _arg1; | |
2262 | } | |
f6bcfd97 BP |
2263 | return _resultobj; |
2264 | } | |
2265 | ||
2266 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2267 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2268 | wxString * _arg0; |
2269 | PyObject * _obj0 = 0; | |
be13a6af | 2270 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2271 | |
2272 | self = self; | |
c8bc7bb8 RD |
2273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogSysError",_kwnames,&_obj0)) |
2274 | return NULL; | |
2275 | { | |
2276 | _arg0 = wxString_in_helper(_obj0); | |
2277 | if (_arg0 == NULL) | |
f6bcfd97 | 2278 | return NULL; |
c8bc7bb8 | 2279 | } |
f6bcfd97 | 2280 | { |
4268f798 | 2281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2282 | wxLogSysError(*_arg0); |
f6bcfd97 | 2283 | |
4268f798 RD |
2284 | wxPyEndAllowThreads(__tstate); |
2285 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2286 | } Py_INCREF(Py_None); |
2287 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2288 | { |
2289 | if (_obj0) | |
2290 | delete _arg0; | |
2291 | } | |
f6bcfd97 BP |
2292 | return _resultobj; |
2293 | } | |
2294 | ||
be13a6af RD |
2295 | static PyObject *_wrap_wxLogTrace(PyObject *self, PyObject *args, PyObject *kwargs) { |
2296 | PyObject * _resultobj; | |
2297 | wxString * _arg0; | |
2298 | PyObject * _obj0 = 0; | |
2299 | char *_kwnames[] = { "msg", NULL }; | |
2300 | ||
2301 | self = self; | |
2302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogTrace",_kwnames,&_obj0)) | |
2303 | return NULL; | |
2304 | { | |
2305 | _arg0 = wxString_in_helper(_obj0); | |
2306 | if (_arg0 == NULL) | |
2307 | return NULL; | |
2308 | } | |
2309 | { | |
2310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2311 | wxLogTrace(*_arg0); | |
2312 | ||
2313 | wxPyEndAllowThreads(__tstate); | |
2314 | if (PyErr_Occurred()) return NULL; | |
2315 | } Py_INCREF(Py_None); | |
2316 | _resultobj = Py_None; | |
2317 | { | |
2318 | if (_obj0) | |
2319 | delete _arg0; | |
2320 | } | |
2321 | return _resultobj; | |
2322 | } | |
2323 | ||
2324 | static PyObject *_wrap_wxLogTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2325 | PyObject * _resultobj; | |
2326 | wxString * _arg0; | |
2327 | wxString * _arg1; | |
2328 | PyObject * _obj0 = 0; | |
2329 | PyObject * _obj1 = 0; | |
2330 | char *_kwnames[] = { "mask","msg", NULL }; | |
2331 | ||
2332 | self = self; | |
2333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogTraceMask",_kwnames,&_obj0,&_obj1)) | |
2334 | return NULL; | |
2335 | { | |
2336 | _arg0 = wxString_in_helper(_obj0); | |
2337 | if (_arg0 == NULL) | |
2338 | return NULL; | |
2339 | } | |
2340 | { | |
2341 | _arg1 = wxString_in_helper(_obj1); | |
2342 | if (_arg1 == NULL) | |
2343 | return NULL; | |
2344 | } | |
2345 | { | |
2346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2347 | wxLogTrace(*_arg0,*_arg1); | |
2348 | ||
2349 | wxPyEndAllowThreads(__tstate); | |
2350 | if (PyErr_Occurred()) return NULL; | |
2351 | } Py_INCREF(Py_None); | |
2352 | _resultobj = Py_None; | |
2353 | { | |
2354 | if (_obj0) | |
2355 | delete _arg0; | |
2356 | } | |
2357 | { | |
2358 | if (_obj1) | |
2359 | delete _arg1; | |
2360 | } | |
2361 | return _resultobj; | |
2362 | } | |
2363 | ||
2364 | static PyObject *_wrap_wxLogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2365 | PyObject * _resultobj; | |
2366 | unsigned long _arg0; | |
2367 | wxString * _arg1; | |
2368 | PyObject * _obj1 = 0; | |
2369 | char *_kwnames[] = { "level","msg", NULL }; | |
2370 | ||
2371 | self = self; | |
2372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"lO:wxLogGeneric",_kwnames,&_arg0,&_obj1)) | |
2373 | return NULL; | |
2374 | { | |
2375 | _arg1 = wxString_in_helper(_obj1); | |
2376 | if (_arg1 == NULL) | |
2377 | return NULL; | |
2378 | } | |
2379 | { | |
2380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2381 | wxLogGeneric(_arg0,*_arg1); | |
2382 | ||
2383 | wxPyEndAllowThreads(__tstate); | |
2384 | if (PyErr_Occurred()) return NULL; | |
2385 | } Py_INCREF(Py_None); | |
2386 | _resultobj = Py_None; | |
2387 | { | |
2388 | if (_obj1) | |
2389 | delete _arg1; | |
2390 | } | |
2391 | return _resultobj; | |
2392 | } | |
2393 | ||
0b85cc38 RD |
2394 | static PyObject *_wrap_wxSafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
2395 | PyObject * _resultobj; | |
2396 | wxString * _arg0; | |
2397 | wxString * _arg1; | |
2398 | PyObject * _obj0 = 0; | |
2399 | PyObject * _obj1 = 0; | |
2400 | char *_kwnames[] = { "title","text", NULL }; | |
2401 | ||
2402 | self = self; | |
2403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSafeShowMessage",_kwnames,&_obj0,&_obj1)) | |
2404 | return NULL; | |
2405 | { | |
2406 | _arg0 = wxString_in_helper(_obj0); | |
2407 | if (_arg0 == NULL) | |
2408 | return NULL; | |
2409 | } | |
2410 | { | |
2411 | _arg1 = wxString_in_helper(_obj1); | |
2412 | if (_arg1 == NULL) | |
2413 | return NULL; | |
2414 | } | |
2415 | { | |
2416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2417 | wxSafeShowMessage(*_arg0,*_arg1); | |
2418 | ||
2419 | wxPyEndAllowThreads(__tstate); | |
2420 | if (PyErr_Occurred()) return NULL; | |
2421 | } Py_INCREF(Py_None); | |
2422 | _resultobj = Py_None; | |
2423 | { | |
2424 | if (_obj0) | |
2425 | delete _arg0; | |
2426 | } | |
2427 | { | |
2428 | if (_obj1) | |
2429 | delete _arg1; | |
2430 | } | |
2431 | return _resultobj; | |
2432 | } | |
2433 | ||
c368d904 RD |
2434 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { |
2435 | PyObject * _resultobj; | |
2436 | long _result; | |
2437 | wxString * _arg0; | |
b96c7a38 | 2438 | int _arg1 = (int ) (wxEXEC_ASYNC); |
c368d904 RD |
2439 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; |
2440 | PyObject * _obj0 = 0; | |
2441 | PyObject * _argo2 = 0; | |
b96c7a38 | 2442 | char *_kwnames[] = { "command","flags","process", NULL }; |
c368d904 RD |
2443 | |
2444 | self = self; | |
2445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2446 | return NULL; | |
2447 | { | |
c8bc7bb8 RD |
2448 | _arg0 = wxString_in_helper(_obj0); |
2449 | if (_arg0 == NULL) | |
185d7c3e | 2450 | return NULL; |
c368d904 RD |
2451 | } |
2452 | if (_argo2) { | |
2453 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2454 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2456 | return NULL; | |
2457 | } | |
2458 | } | |
2459 | { | |
4268f798 | 2460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2461 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); |
c368d904 | 2462 | |
4268f798 RD |
2463 | wxPyEndAllowThreads(__tstate); |
2464 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
2465 | } _resultobj = Py_BuildValue("l",_result); |
2466 | { | |
2467 | if (_obj0) | |
2468 | delete _arg0; | |
2469 | } | |
2470 | return _resultobj; | |
2471 | } | |
2472 | ||
493f1553 RD |
2473 | static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) { |
2474 | PyObject * _resultobj; | |
2475 | wxWave * _result; | |
2476 | wxString * _arg0; | |
2477 | PyObject * _obj0 = 0; | |
2478 | char *_kwnames[] = { "data", NULL }; | |
2479 | char _ptemp[128]; | |
2480 | ||
2481 | self = self; | |
2482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0)) | |
2483 | return NULL; | |
2484 | { | |
c8bc7bb8 RD |
2485 | _arg0 = wxString_in_helper(_obj0); |
2486 | if (_arg0 == NULL) | |
493f1553 | 2487 | return NULL; |
493f1553 RD |
2488 | } |
2489 | { | |
4268f798 | 2490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2491 | _result = (wxWave *)wxWaveData(*_arg0); |
493f1553 | 2492 | |
4268f798 RD |
2493 | wxPyEndAllowThreads(__tstate); |
2494 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
2495 | } if (_result) { |
2496 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
2497 | _resultobj = Py_BuildValue("s",_ptemp); | |
2498 | } else { | |
2499 | Py_INCREF(Py_None); | |
2500 | _resultobj = Py_None; | |
2501 | } | |
2502 | { | |
2503 | if (_obj0) | |
2504 | delete _arg0; | |
2505 | } | |
2506 | return _resultobj; | |
2507 | } | |
2508 | ||
b37c7e1d RD |
2509 | static int _wrap_wxTheMimeTypesManager_set(PyObject *val) { |
2510 | ||
2511 | PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only."); | |
2512 | return 1; | |
2513 | } | |
2514 | ||
2515 | static PyObject *_wrap_wxTheMimeTypesManager_get() { | |
2516 | PyObject * pyobj; | |
2517 | char ptemp[128]; | |
2518 | ||
2519 | SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p"); | |
2520 | pyobj = PyString_FromString(ptemp); | |
2521 | return pyobj; | |
2522 | } | |
2523 | ||
b5a5d647 RD |
2524 | static PyObject *_wrap_wxSystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
2525 | PyObject * _resultobj; | |
2526 | wxColour * _result; | |
2527 | wxSystemColour _arg0; | |
2528 | char *_kwnames[] = { "index", NULL }; | |
2529 | char _ptemp[128]; | |
2530 | ||
2531 | self = self; | |
2532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetColour",_kwnames,&_arg0)) | |
2533 | return NULL; | |
2534 | { | |
2535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2536 | _result = new wxColour (wxSystemSettings::GetColour(_arg0)); |
b5a5d647 RD |
2537 | |
2538 | wxPyEndAllowThreads(__tstate); | |
2539 | if (PyErr_Occurred()) return NULL; | |
2540 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
2541 | _resultobj = Py_BuildValue("s",_ptemp); | |
2542 | return _resultobj; | |
2543 | } | |
2544 | ||
2545 | static PyObject *_wrap_wxSystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2546 | PyObject * _resultobj; | |
2547 | wxFont * _result; | |
2548 | wxSystemFont _arg0; | |
2549 | char *_kwnames[] = { "index", NULL }; | |
2550 | char _ptemp[128]; | |
2551 | ||
2552 | self = self; | |
2553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetFont",_kwnames,&_arg0)) | |
2554 | return NULL; | |
2555 | { | |
2556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2557 | _result = new wxFont (wxSystemSettings::GetFont(_arg0)); |
b5a5d647 RD |
2558 | |
2559 | wxPyEndAllowThreads(__tstate); | |
2560 | if (PyErr_Occurred()) return NULL; | |
2561 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
2562 | _resultobj = Py_BuildValue("s",_ptemp); | |
2563 | return _resultobj; | |
2564 | } | |
2565 | ||
2566 | static PyObject *_wrap_wxSystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2567 | PyObject * _resultobj; | |
2568 | int _result; | |
2569 | wxSystemMetric _arg0; | |
2570 | char *_kwnames[] = { "index", NULL }; | |
2571 | ||
2572 | self = self; | |
2573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetMetric",_kwnames,&_arg0)) | |
2574 | return NULL; | |
2575 | { | |
2576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2577 | _result = (int )wxSystemSettings::GetMetric(_arg0); |
b5a5d647 RD |
2578 | |
2579 | wxPyEndAllowThreads(__tstate); | |
2580 | if (PyErr_Occurred()) return NULL; | |
2581 | } _resultobj = Py_BuildValue("i",_result); | |
2582 | return _resultobj; | |
2583 | } | |
2584 | ||
2585 | static PyObject *_wrap_wxSystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2586 | PyObject * _resultobj; | |
2587 | bool _result; | |
2588 | wxSystemFeature _arg0; | |
2589 | char *_kwnames[] = { "index", NULL }; | |
2590 | ||
2591 | self = self; | |
2592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_HasFeature",_kwnames,&_arg0)) | |
2593 | return NULL; | |
2594 | { | |
2595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2596 | _result = (bool )wxSystemSettings::HasFeature(_arg0); |
b5a5d647 RD |
2597 | |
2598 | wxPyEndAllowThreads(__tstate); | |
2599 | if (PyErr_Occurred()) return NULL; | |
2600 | } _resultobj = Py_BuildValue("i",_result); | |
2601 | return _resultobj; | |
2602 | } | |
2603 | ||
e67409dc | 2604 | static PyObject *_wrap_wxSystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { |
0b85cc38 | 2605 | PyObject * _resultobj; |
e67409dc | 2606 | wxSystemScreenType _result; |
0b85cc38 RD |
2607 | char *_kwnames[] = { NULL }; |
2608 | ||
2609 | self = self; | |
e67409dc | 2610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSystemSettings_GetScreenType",_kwnames)) |
0b85cc38 RD |
2611 | return NULL; |
2612 | { | |
2613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e67409dc | 2614 | _result = (wxSystemScreenType )wxSystemSettings::GetScreenType(); |
0b85cc38 RD |
2615 | |
2616 | wxPyEndAllowThreads(__tstate); | |
2617 | if (PyErr_Occurred()) return NULL; | |
2618 | } _resultobj = Py_BuildValue("i",_result); | |
2619 | return _resultobj; | |
2620 | } | |
2621 | ||
e67409dc | 2622 | static PyObject *_wrap_wxSystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { |
0b85cc38 | 2623 | PyObject * _resultobj; |
e67409dc | 2624 | wxSystemScreenType _arg0; |
0b85cc38 RD |
2625 | char *_kwnames[] = { "screen", NULL }; |
2626 | ||
2627 | self = self; | |
e67409dc | 2628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_SetScreenType",_kwnames,&_arg0)) |
0b85cc38 RD |
2629 | return NULL; |
2630 | { | |
2631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e67409dc | 2632 | wxSystemSettings::SetScreenType(_arg0); |
0b85cc38 RD |
2633 | |
2634 | wxPyEndAllowThreads(__tstate); | |
2635 | if (PyErr_Occurred()) return NULL; | |
2636 | } Py_INCREF(Py_None); | |
2637 | _resultobj = Py_None; | |
2638 | return _resultobj; | |
2639 | } | |
2640 | ||
9416aa89 RD |
2641 | static void *SwigwxToolTipTowxObject(void *ptr) { |
2642 | wxToolTip *src; | |
2643 | wxObject *dest; | |
2644 | src = (wxToolTip *) ptr; | |
2645 | dest = (wxObject *) src; | |
2646 | return (void *) dest; | |
2647 | } | |
2648 | ||
f6bcfd97 BP |
2649 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) |
2650 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2651 | PyObject * _resultobj; | |
2652 | wxToolTip * _result; | |
2653 | wxString * _arg0; | |
2654 | PyObject * _obj0 = 0; | |
2655 | char *_kwnames[] = { "tip", NULL }; | |
2656 | char _ptemp[128]; | |
2657 | ||
2658 | self = self; | |
2659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2660 | return NULL; | |
2661 | { | |
c8bc7bb8 RD |
2662 | _arg0 = wxString_in_helper(_obj0); |
2663 | if (_arg0 == NULL) | |
f6bcfd97 | 2664 | return NULL; |
f6bcfd97 BP |
2665 | } |
2666 | { | |
4268f798 | 2667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2668 | _result = (wxToolTip *)new_wxToolTip(*_arg0); |
f6bcfd97 | 2669 | |
4268f798 RD |
2670 | wxPyEndAllowThreads(__tstate); |
2671 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2672 | } if (_result) { |
2673 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2674 | _resultobj = Py_BuildValue("s",_ptemp); | |
2675 | } else { | |
2676 | Py_INCREF(Py_None); | |
2677 | _resultobj = Py_None; | |
2678 | } | |
2679 | { | |
2680 | if (_obj0) | |
2681 | delete _arg0; | |
2682 | } | |
2683 | return _resultobj; | |
2684 | } | |
2685 | ||
2686 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2687 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2688 | PyObject * _resultobj; | |
2689 | wxToolTip * _arg0; | |
2690 | wxString * _arg1; | |
2691 | PyObject * _argo0 = 0; | |
2692 | PyObject * _obj1 = 0; | |
2693 | char *_kwnames[] = { "self","tip", NULL }; | |
2694 | ||
2695 | self = self; | |
2696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2697 | return NULL; | |
2698 | if (_argo0) { | |
2699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2702 | return NULL; | |
2703 | } | |
2704 | } | |
2705 | { | |
c8bc7bb8 RD |
2706 | _arg1 = wxString_in_helper(_obj1); |
2707 | if (_arg1 == NULL) | |
185d7c3e | 2708 | return NULL; |
f6bcfd97 BP |
2709 | } |
2710 | { | |
4268f798 | 2711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2712 | wxToolTip_SetTip(_arg0,*_arg1); |
f6bcfd97 | 2713 | |
4268f798 RD |
2714 | wxPyEndAllowThreads(__tstate); |
2715 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2716 | } Py_INCREF(Py_None); |
2717 | _resultobj = Py_None; | |
2718 | { | |
2719 | if (_obj1) | |
2720 | delete _arg1; | |
2721 | } | |
2722 | return _resultobj; | |
2723 | } | |
2724 | ||
2725 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2726 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2727 | PyObject * _resultobj; | |
2728 | wxString * _result; | |
2729 | wxToolTip * _arg0; | |
2730 | PyObject * _argo0 = 0; | |
2731 | char *_kwnames[] = { "self", NULL }; | |
2732 | ||
2733 | self = self; | |
2734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2735 | return NULL; | |
2736 | if (_argo0) { | |
2737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2740 | return NULL; | |
2741 | } | |
2742 | } | |
2743 | { | |
4268f798 | 2744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2745 | _result = new wxString (wxToolTip_GetTip(_arg0)); |
f6bcfd97 | 2746 | |
4268f798 RD |
2747 | wxPyEndAllowThreads(__tstate); |
2748 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 2749 | }{ |
c8bc7bb8 RD |
2750 | #if wxUSE_UNICODE |
2751 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2752 | #else | |
f6bcfd97 | 2753 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2754 | #endif |
f6bcfd97 BP |
2755 | } |
2756 | { | |
2757 | delete _result; | |
2758 | } | |
2759 | return _resultobj; | |
2760 | } | |
2761 | ||
2762 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2763 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2764 | PyObject * _resultobj; | |
2765 | wxWindow * _result; | |
2766 | wxToolTip * _arg0; | |
2767 | PyObject * _argo0 = 0; | |
2768 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2769 | |
2770 | self = self; | |
2771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2772 | return NULL; | |
2773 | if (_argo0) { | |
2774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2777 | return NULL; | |
2778 | } | |
2779 | } | |
2780 | { | |
4268f798 | 2781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2782 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); |
f6bcfd97 | 2783 | |
4268f798 RD |
2784 | wxPyEndAllowThreads(__tstate); |
2785 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 2786 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2787 | return _resultobj; |
2788 | } | |
2789 | ||
edf2f43e RD |
2790 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
2791 | PyObject * _resultobj; | |
2792 | bool _arg0; | |
2793 | int tempbool0; | |
2794 | char *_kwnames[] = { "flag", NULL }; | |
2795 | ||
2796 | self = self; | |
2797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) | |
2798 | return NULL; | |
2799 | _arg0 = (bool ) tempbool0; | |
2800 | { | |
4268f798 | 2801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2802 | wxToolTip::Enable(_arg0); |
edf2f43e | 2803 | |
4268f798 RD |
2804 | wxPyEndAllowThreads(__tstate); |
2805 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2806 | } Py_INCREF(Py_None); |
2807 | _resultobj = Py_None; | |
2808 | return _resultobj; | |
2809 | } | |
2810 | ||
2811 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2812 | PyObject * _resultobj; | |
2813 | long _arg0; | |
2814 | char *_kwnames[] = { "milliseconds", NULL }; | |
2815 | ||
2816 | self = self; | |
2817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) | |
2818 | return NULL; | |
2819 | { | |
4268f798 | 2820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2821 | wxToolTip::SetDelay(_arg0); |
edf2f43e | 2822 | |
4268f798 RD |
2823 | wxPyEndAllowThreads(__tstate); |
2824 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2825 | } Py_INCREF(Py_None); |
2826 | _resultobj = Py_None; | |
2827 | return _resultobj; | |
2828 | } | |
2829 | ||
f6bcfd97 BP |
2830 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) |
2831 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2832 | PyObject * _resultobj; | |
2833 | wxCaret * _result; | |
2834 | wxWindow * _arg0; | |
2835 | wxSize * _arg1; | |
2836 | PyObject * _argo0 = 0; | |
2837 | wxSize temp; | |
2838 | PyObject * _obj1 = 0; | |
2839 | char *_kwnames[] = { "window","size", NULL }; | |
2840 | char _ptemp[128]; | |
2841 | ||
2842 | self = self; | |
2843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2844 | return NULL; | |
2845 | if (_argo0) { | |
2846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2849 | return NULL; | |
2850 | } | |
2851 | } | |
2852 | { | |
2853 | _arg1 = &temp; | |
2854 | if (! wxSize_helper(_obj1, &_arg1)) | |
2855 | return NULL; | |
2856 | } | |
2857 | { | |
4268f798 | 2858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2859 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); |
f6bcfd97 | 2860 | |
4268f798 RD |
2861 | wxPyEndAllowThreads(__tstate); |
2862 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2863 | } if (_result) { |
2864 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2865 | _resultobj = Py_BuildValue("s",_ptemp); | |
2866 | } else { | |
2867 | Py_INCREF(Py_None); | |
2868 | _resultobj = Py_None; | |
2869 | } | |
2870 | return _resultobj; | |
2871 | } | |
2872 | ||
2873 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2874 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2875 | PyObject * _resultobj; | |
2876 | wxCaret * _arg0; | |
2877 | PyObject * _argo0 = 0; | |
2878 | char *_kwnames[] = { "self", NULL }; | |
2879 | ||
2880 | self = self; | |
2881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
2882 | return NULL; | |
2883 | if (_argo0) { | |
2884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
2887 | return NULL; | |
2888 | } | |
2889 | } | |
2890 | { | |
4268f798 | 2891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2892 | delete_wxCaret(_arg0); |
f6bcfd97 | 2893 | |
4268f798 RD |
2894 | wxPyEndAllowThreads(__tstate); |
2895 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2896 | } Py_INCREF(Py_None); |
2897 | _resultobj = Py_None; | |
2898 | return _resultobj; | |
2899 | } | |
2900 | ||
2901 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
2902 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2903 | PyObject * _resultobj; | |
2904 | bool _result; | |
2905 | wxCaret * _arg0; | |
2906 | PyObject * _argo0 = 0; | |
2907 | char *_kwnames[] = { "self", NULL }; | |
2908 | ||
2909 | self = self; | |
2910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
2911 | return NULL; | |
2912 | if (_argo0) { | |
2913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
2916 | return NULL; | |
2917 | } | |
2918 | } | |
2919 | { | |
4268f798 | 2920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2921 | _result = (bool )wxCaret_IsOk(_arg0); |
f6bcfd97 | 2922 | |
4268f798 RD |
2923 | wxPyEndAllowThreads(__tstate); |
2924 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2925 | } _resultobj = Py_BuildValue("i",_result); |
2926 | return _resultobj; | |
2927 | } | |
2928 | ||
2929 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
2930 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2931 | PyObject * _resultobj; | |
2932 | bool _result; | |
2933 | wxCaret * _arg0; | |
2934 | PyObject * _argo0 = 0; | |
2935 | char *_kwnames[] = { "self", NULL }; | |
2936 | ||
2937 | self = self; | |
2938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
2939 | return NULL; | |
2940 | if (_argo0) { | |
2941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
2944 | return NULL; | |
2945 | } | |
2946 | } | |
2947 | { | |
4268f798 | 2948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2949 | _result = (bool )wxCaret_IsVisible(_arg0); |
f6bcfd97 | 2950 | |
4268f798 RD |
2951 | wxPyEndAllowThreads(__tstate); |
2952 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2953 | } _resultobj = Py_BuildValue("i",_result); |
2954 | return _resultobj; | |
2955 | } | |
2956 | ||
2957 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2958 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2959 | PyObject * _resultobj; | |
2960 | wxCaret * _arg0; | |
2961 | int * _arg1; | |
2962 | int temp; | |
2963 | int * _arg2; | |
2964 | int temp0; | |
2965 | PyObject * _argo0 = 0; | |
2966 | char *_kwnames[] = { "self", NULL }; | |
2967 | ||
2968 | self = self; | |
2969 | { | |
2970 | _arg1 = &temp; | |
2971 | } | |
2972 | { | |
2973 | _arg2 = &temp0; | |
2974 | } | |
2975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
2976 | return NULL; | |
2977 | if (_argo0) { | |
2978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
2981 | return NULL; | |
2982 | } | |
2983 | } | |
2984 | { | |
4268f798 | 2985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2986 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 2987 | |
4268f798 RD |
2988 | wxPyEndAllowThreads(__tstate); |
2989 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2990 | } Py_INCREF(Py_None); |
2991 | _resultobj = Py_None; | |
2992 | { | |
2993 | PyObject *o; | |
2994 | o = PyInt_FromLong((long) (*_arg1)); | |
2995 | _resultobj = t_output_helper(_resultobj, o); | |
2996 | } | |
2997 | { | |
2998 | PyObject *o; | |
2999 | o = PyInt_FromLong((long) (*_arg2)); | |
3000 | _resultobj = t_output_helper(_resultobj, o); | |
3001 | } | |
3002 | return _resultobj; | |
3003 | } | |
3004 | ||
3005 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
f0261a72 RD |
3006 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
3007 | PyObject * _resultobj; | |
f6bcfd97 BP |
3008 | wxPoint * _result; |
3009 | wxCaret * _arg0; | |
3010 | PyObject * _argo0 = 0; | |
3011 | char *_kwnames[] = { "self", NULL }; | |
3012 | char _ptemp[128]; | |
3013 | ||
3014 | self = self; | |
3015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
3016 | return NULL; | |
3017 | if (_argo0) { | |
3018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
3021 | return NULL; | |
3022 | } | |
3023 | } | |
3024 | { | |
4268f798 | 3025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3026 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); |
f6bcfd97 | 3027 | |
4268f798 RD |
3028 | wxPyEndAllowThreads(__tstate); |
3029 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3030 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
3031 | _resultobj = Py_BuildValue("s",_ptemp); | |
3032 | return _resultobj; | |
3033 | } | |
3034 | ||
3035 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
3036 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3037 | PyObject * _resultobj; | |
3038 | wxCaret * _arg0; | |
3039 | int * _arg1; | |
3040 | int temp; | |
3041 | int * _arg2; | |
3042 | int temp0; | |
3043 | PyObject * _argo0 = 0; | |
3044 | char *_kwnames[] = { "self", NULL }; | |
3045 | ||
3046 | self = self; | |
3047 | { | |
3048 | _arg1 = &temp; | |
3049 | } | |
3050 | { | |
3051 | _arg2 = &temp0; | |
3052 | } | |
3053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
3054 | return NULL; | |
3055 | if (_argo0) { | |
3056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
3059 | return NULL; | |
3060 | } | |
3061 | } | |
3062 | { | |
4268f798 | 3063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3064 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 3065 | |
4268f798 RD |
3066 | wxPyEndAllowThreads(__tstate); |
3067 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3068 | } Py_INCREF(Py_None); |
3069 | _resultobj = Py_None; | |
3070 | { | |
3071 | PyObject *o; | |
3072 | o = PyInt_FromLong((long) (*_arg1)); | |
3073 | _resultobj = t_output_helper(_resultobj, o); | |
3074 | } | |
3075 | { | |
3076 | PyObject *o; | |
3077 | o = PyInt_FromLong((long) (*_arg2)); | |
3078 | _resultobj = t_output_helper(_resultobj, o); | |
3079 | } | |
3080 | return _resultobj; | |
3081 | } | |
3082 | ||
3083 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
3084 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3085 | PyObject * _resultobj; | |
3086 | wxSize * _result; | |
3087 | wxCaret * _arg0; | |
3088 | PyObject * _argo0 = 0; | |
3089 | char *_kwnames[] = { "self", NULL }; | |
3090 | char _ptemp[128]; | |
3091 | ||
3092 | self = self; | |
3093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
3094 | return NULL; | |
3095 | if (_argo0) { | |
3096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
3099 | return NULL; | |
3100 | } | |
3101 | } | |
3102 | { | |
4268f798 | 3103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3104 | _result = new wxSize (wxCaret_GetSize(_arg0)); |
f6bcfd97 | 3105 | |
4268f798 RD |
3106 | wxPyEndAllowThreads(__tstate); |
3107 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3108 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
3109 | _resultobj = Py_BuildValue("s",_ptemp); | |
3110 | return _resultobj; | |
3111 | } | |
3112 | ||
3113 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
3114 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3115 | PyObject * _resultobj; | |
3116 | wxWindow * _result; | |
3117 | wxCaret * _arg0; | |
3118 | PyObject * _argo0 = 0; | |
3119 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
3120 | |
3121 | self = self; | |
3122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
3123 | return NULL; | |
3124 | if (_argo0) { | |
3125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
3128 | return NULL; | |
3129 | } | |
3130 | } | |
3131 | { | |
4268f798 | 3132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3133 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); |
f6bcfd97 | 3134 | |
4268f798 RD |
3135 | wxPyEndAllowThreads(__tstate); |
3136 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 3137 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
3138 | return _resultobj; |
3139 | } | |
3140 | ||
3141 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
3142 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3143 | PyObject * _resultobj; | |
3144 | wxCaret * _arg0; | |
3145 | int _arg1; | |
3146 | int _arg2; | |
3147 | PyObject * _argo0 = 0; | |
3148 | char *_kwnames[] = { "self","x","y", NULL }; | |
3149 | ||
3150 | self = self; | |
3151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3152 | return NULL; | |
3153 | if (_argo0) { | |
3154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
3157 | return NULL; | |
3158 | } | |
3159 | } | |
3160 | { | |
4268f798 | 3161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3162 | wxCaret_MoveXY(_arg0,_arg1,_arg2); |
f6bcfd97 | 3163 | |
4268f798 RD |
3164 | wxPyEndAllowThreads(__tstate); |
3165 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3166 | } Py_INCREF(Py_None); |
3167 | _resultobj = Py_None; | |
3168 | return _resultobj; | |
3169 | } | |
3170 | ||
3171 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3172 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3173 | PyObject * _resultobj; | |
3174 | wxCaret * _arg0; | |
3175 | wxPoint * _arg1; | |
3176 | PyObject * _argo0 = 0; | |
3177 | wxPoint temp; | |
3178 | PyObject * _obj1 = 0; | |
3179 | char *_kwnames[] = { "self","pt", NULL }; | |
3180 | ||
3181 | self = self; | |
3182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
3183 | return NULL; | |
3184 | if (_argo0) { | |
3185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
3188 | return NULL; | |
3189 | } | |
3190 | } | |
3191 | { | |
3192 | _arg1 = &temp; | |
3193 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3194 | return NULL; | |
3195 | } | |
3196 | { | |
4268f798 | 3197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3198 | wxCaret_Move(_arg0,*_arg1); |
f6bcfd97 | 3199 | |
4268f798 RD |
3200 | wxPyEndAllowThreads(__tstate); |
3201 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3202 | } Py_INCREF(Py_None); |
3203 | _resultobj = Py_None; | |
3204 | return _resultobj; | |
3205 | } | |
3206 | ||
3207 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
3208 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3209 | PyObject * _resultobj; | |
3210 | wxCaret * _arg0; | |
3211 | int _arg1; | |
3212 | int _arg2; | |
3213 | PyObject * _argo0 = 0; | |
3214 | char *_kwnames[] = { "self","width","height", NULL }; | |
3215 | ||
3216 | self = self; | |
3217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3218 | return NULL; | |
3219 | if (_argo0) { | |
3220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
3223 | return NULL; | |
3224 | } | |
3225 | } | |
3226 | { | |
4268f798 | 3227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3228 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); |
f6bcfd97 | 3229 | |
4268f798 RD |
3230 | wxPyEndAllowThreads(__tstate); |
3231 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3232 | } Py_INCREF(Py_None); |
3233 | _resultobj = Py_None; | |
3234 | return _resultobj; | |
3235 | } | |
3236 | ||
3237 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3238 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3239 | PyObject * _resultobj; | |
3240 | wxCaret * _arg0; | |
3241 | wxSize * _arg1; | |
3242 | PyObject * _argo0 = 0; | |
3243 | wxSize temp; | |
3244 | PyObject * _obj1 = 0; | |
3245 | char *_kwnames[] = { "self","size", NULL }; | |
3246 | ||
3247 | self = self; | |
3248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
3249 | return NULL; | |
3250 | if (_argo0) { | |
3251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
3254 | return NULL; | |
3255 | } | |
3256 | } | |
3257 | { | |
3258 | _arg1 = &temp; | |
3259 | if (! wxSize_helper(_obj1, &_arg1)) | |
3260 | return NULL; | |
3261 | } | |
3262 | { | |
4268f798 | 3263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3264 | wxCaret_SetSize(_arg0,*_arg1); |
f6bcfd97 | 3265 | |
4268f798 RD |
3266 | wxPyEndAllowThreads(__tstate); |
3267 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3268 | } Py_INCREF(Py_None); |
3269 | _resultobj = Py_None; | |
3270 | return _resultobj; | |
3271 | } | |
3272 | ||
3273 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
3274 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3275 | PyObject * _resultobj; | |
3276 | wxCaret * _arg0; | |
3277 | int _arg1 = (int ) TRUE; | |
3278 | PyObject * _argo0 = 0; | |
3279 | char *_kwnames[] = { "self","show", NULL }; | |
3280 | ||
3281 | self = self; | |
3282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
3283 | return NULL; | |
3284 | if (_argo0) { | |
3285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
3288 | return NULL; | |
3289 | } | |
3290 | } | |
3291 | { | |
4268f798 | 3292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3293 | wxCaret_Show(_arg0,_arg1); |
f6bcfd97 | 3294 | |
4268f798 RD |
3295 | wxPyEndAllowThreads(__tstate); |
3296 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3297 | } Py_INCREF(Py_None); |
3298 | _resultobj = Py_None; | |
3299 | return _resultobj; | |
3300 | } | |
3301 | ||
3302 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
3303 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3304 | PyObject * _resultobj; | |
3305 | wxCaret * _arg0; | |
3306 | PyObject * _argo0 = 0; | |
3307 | char *_kwnames[] = { "self", NULL }; | |
3308 | ||
3309 | self = self; | |
3310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
3311 | return NULL; | |
3312 | if (_argo0) { | |
3313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
3316 | return NULL; | |
3317 | } | |
3318 | } | |
3319 | { | |
4268f798 | 3320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3321 | wxCaret_Hide(_arg0); |
f6bcfd97 | 3322 | |
4268f798 RD |
3323 | wxPyEndAllowThreads(__tstate); |
3324 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3325 | } Py_INCREF(Py_None); |
3326 | _resultobj = Py_None; | |
3327 | return _resultobj; | |
3328 | } | |
3329 | ||
f6bcfd97 BP |
3330 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) |
3331 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3332 | PyObject * _resultobj; | |
3333 | wxBusyCursor * _result; | |
3334 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3335 | PyObject * _argo0 = 0; | |
3336 | char *_kwnames[] = { "cursor", NULL }; | |
3337 | char _ptemp[128]; | |
3338 | ||
3339 | self = self; | |
3340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3341 | return NULL; | |
3342 | if (_argo0) { | |
3343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3346 | return NULL; | |
3347 | } | |
3348 | } | |
3349 | { | |
4268f798 | 3350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3351 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); |
f6bcfd97 | 3352 | |
4268f798 RD |
3353 | wxPyEndAllowThreads(__tstate); |
3354 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3355 | } if (_result) { |
3356 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3357 | _resultobj = Py_BuildValue("s",_ptemp); | |
3358 | } else { | |
3359 | Py_INCREF(Py_None); | |
3360 | _resultobj = Py_None; | |
3361 | } | |
3362 | return _resultobj; | |
3363 | } | |
3364 | ||
3365 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3366 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3367 | PyObject * _resultobj; | |
3368 | wxBusyCursor * _arg0; | |
3369 | PyObject * _argo0 = 0; | |
3370 | char *_kwnames[] = { "self", NULL }; | |
3371 | ||
3372 | self = self; | |
3373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3374 | return NULL; | |
3375 | if (_argo0) { | |
3376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3379 | return NULL; | |
3380 | } | |
3381 | } | |
3382 | { | |
4268f798 | 3383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3384 | delete_wxBusyCursor(_arg0); |
f6bcfd97 | 3385 | |
4268f798 RD |
3386 | wxPyEndAllowThreads(__tstate); |
3387 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3388 | } Py_INCREF(Py_None); |
3389 | _resultobj = Py_None; | |
3390 | return _resultobj; | |
3391 | } | |
3392 | ||
c368d904 RD |
3393 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) |
3394 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3395 | PyObject * _resultobj; | |
3396 | wxWindowDisabler * _result; | |
3397 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3398 | PyObject * _argo0 = 0; | |
3399 | char *_kwnames[] = { "winToSkip", NULL }; | |
3400 | char _ptemp[128]; | |
3401 | ||
3402 | self = self; | |
3403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3404 | return NULL; | |
3405 | if (_argo0) { | |
3406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3409 | return NULL; | |
3410 | } | |
3411 | } | |
3412 | { | |
4268f798 | 3413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3414 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); |
c368d904 | 3415 | |
4268f798 RD |
3416 | wxPyEndAllowThreads(__tstate); |
3417 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3418 | } if (_result) { |
3419 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3420 | _resultobj = Py_BuildValue("s",_ptemp); | |
3421 | } else { | |
3422 | Py_INCREF(Py_None); | |
3423 | _resultobj = Py_None; | |
3424 | } | |
3425 | return _resultobj; | |
3426 | } | |
3427 | ||
3428 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3429 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3430 | PyObject * _resultobj; | |
3431 | wxWindowDisabler * _arg0; | |
3432 | PyObject * _argo0 = 0; | |
3433 | char *_kwnames[] = { "self", NULL }; | |
3434 | ||
3435 | self = self; | |
3436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3437 | return NULL; | |
3438 | if (_argo0) { | |
3439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3442 | return NULL; | |
3443 | } | |
3444 | } | |
3445 | { | |
4268f798 | 3446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3447 | delete_wxWindowDisabler(_arg0); |
c368d904 | 3448 | |
4268f798 RD |
3449 | wxPyEndAllowThreads(__tstate); |
3450 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3451 | } Py_INCREF(Py_None); |
3452 | _resultobj = Py_None; | |
3453 | return _resultobj; | |
3454 | } | |
3455 | ||
6e18ca6c RD |
3456 | #define new_wxMutexGuiLocker() (new wxMutexGuiLocker()) |
3457 | static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3458 | PyObject * _resultobj; | |
3459 | wxMutexGuiLocker * _result; | |
3460 | char *_kwnames[] = { NULL }; | |
3461 | char _ptemp[128]; | |
3462 | ||
3463 | self = self; | |
3464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames)) | |
3465 | return NULL; | |
3466 | { | |
4268f798 | 3467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3468 | _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker(); |
6e18ca6c | 3469 | |
4268f798 RD |
3470 | wxPyEndAllowThreads(__tstate); |
3471 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3472 | } if (_result) { |
3473 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p"); | |
3474 | _resultobj = Py_BuildValue("s",_ptemp); | |
3475 | } else { | |
3476 | Py_INCREF(Py_None); | |
3477 | _resultobj = Py_None; | |
3478 | } | |
3479 | return _resultobj; | |
3480 | } | |
3481 | ||
3482 | #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj) | |
3483 | static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3484 | PyObject * _resultobj; | |
3485 | wxMutexGuiLocker * _arg0; | |
3486 | PyObject * _argo0 = 0; | |
3487 | char *_kwnames[] = { "self", NULL }; | |
3488 | ||
3489 | self = self; | |
3490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0)) | |
3491 | return NULL; | |
3492 | if (_argo0) { | |
3493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) { | |
3495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p."); | |
3496 | return NULL; | |
3497 | } | |
3498 | } | |
3499 | { | |
4268f798 | 3500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3501 | delete_wxMutexGuiLocker(_arg0); |
6e18ca6c | 3502 | |
4268f798 RD |
3503 | wxPyEndAllowThreads(__tstate); |
3504 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3505 | } Py_INCREF(Py_None); |
3506 | _resultobj = Py_None; | |
3507 | return _resultobj; | |
3508 | } | |
3509 | ||
f6bcfd97 BP |
3510 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) |
3511 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3512 | PyObject * _resultobj; | |
3513 | wxTipProvider * _arg0; | |
3514 | PyObject * _argo0 = 0; | |
3515 | char *_kwnames[] = { "self", NULL }; | |
3516 | ||
3517 | self = self; | |
3518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3519 | return NULL; | |
3520 | if (_argo0) { | |
3521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3524 | return NULL; | |
3525 | } | |
3526 | } | |
3527 | { | |
4268f798 | 3528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3529 | delete_wxTipProvider(_arg0); |
f6bcfd97 | 3530 | |
4268f798 RD |
3531 | wxPyEndAllowThreads(__tstate); |
3532 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3533 | } Py_INCREF(Py_None); |
3534 | _resultobj = Py_None; | |
3535 | return _resultobj; | |
3536 | } | |
3537 | ||
3538 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3539 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3540 | PyObject * _resultobj; | |
3541 | wxString * _result; | |
3542 | wxTipProvider * _arg0; | |
3543 | PyObject * _argo0 = 0; | |
3544 | char *_kwnames[] = { "self", NULL }; | |
3545 | ||
3546 | self = self; | |
3547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3548 | return NULL; | |
3549 | if (_argo0) { | |
3550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3553 | return NULL; | |
3554 | } | |
3555 | } | |
3556 | { | |
4268f798 | 3557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3558 | _result = new wxString (wxTipProvider_GetTip(_arg0)); |
f6bcfd97 | 3559 | |
4268f798 RD |
3560 | wxPyEndAllowThreads(__tstate); |
3561 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 3562 | }{ |
c8bc7bb8 RD |
3563 | #if wxUSE_UNICODE |
3564 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3565 | #else | |
f6bcfd97 | 3566 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3567 | #endif |
f6bcfd97 BP |
3568 | } |
3569 | { | |
3570 | delete _result; | |
3571 | } | |
3572 | return _resultobj; | |
3573 | } | |
3574 | ||
3575 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3576 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3577 | PyObject * _resultobj; | |
3578 | size_t _result; | |
3579 | wxTipProvider * _arg0; | |
3580 | PyObject * _argo0 = 0; | |
3581 | char *_kwnames[] = { "self", NULL }; | |
3582 | ||
3583 | self = self; | |
3584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3585 | return NULL; | |
3586 | if (_argo0) { | |
3587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3590 | return NULL; | |
3591 | } | |
3592 | } | |
3593 | { | |
4268f798 | 3594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3595 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); |
f6bcfd97 | 3596 | |
4268f798 RD |
3597 | wxPyEndAllowThreads(__tstate); |
3598 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3599 | } _resultobj = Py_BuildValue("i",_result); |
3600 | return _resultobj; | |
3601 | } | |
3602 | ||
67a92fff RD |
3603 | #define wxTipProvider_PreprocessTip(_swigobj,_swigarg0) (_swigobj->PreprocessTip(_swigarg0)) |
3604 | static PyObject *_wrap_wxTipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3605 | PyObject * _resultobj; | |
3606 | wxString * _result; | |
3607 | wxTipProvider * _arg0; | |
3608 | wxString * _arg1; | |
3609 | PyObject * _argo0 = 0; | |
3610 | PyObject * _obj1 = 0; | |
3611 | char *_kwnames[] = { "self","tip", NULL }; | |
3612 | ||
3613 | self = self; | |
3614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTipProvider_PreprocessTip",_kwnames,&_argo0,&_obj1)) | |
3615 | return NULL; | |
3616 | if (_argo0) { | |
3617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_PreprocessTip. Expected _wxTipProvider_p."); | |
3620 | return NULL; | |
3621 | } | |
3622 | } | |
3623 | { | |
3624 | _arg1 = wxString_in_helper(_obj1); | |
3625 | if (_arg1 == NULL) | |
3626 | return NULL; | |
3627 | } | |
3628 | { | |
3629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3630 | _result = new wxString (wxTipProvider_PreprocessTip(_arg0,*_arg1)); | |
3631 | ||
3632 | wxPyEndAllowThreads(__tstate); | |
3633 | if (PyErr_Occurred()) return NULL; | |
3634 | }{ | |
3635 | #if wxUSE_UNICODE | |
3636 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3637 | #else | |
3638 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3639 | #endif | |
3640 | } | |
3641 | { | |
3642 | if (_obj1) | |
3643 | delete _arg1; | |
3644 | } | |
3645 | { | |
3646 | delete _result; | |
3647 | } | |
3648 | return _resultobj; | |
3649 | } | |
3650 | ||
f6bcfd97 BP |
3651 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { |
3652 | wxPyTipProvider *src; | |
3653 | wxTipProvider *dest; | |
3654 | src = (wxPyTipProvider *) ptr; | |
3655 | dest = (wxTipProvider *) src; | |
3656 | return (void *) dest; | |
3657 | } | |
3658 | ||
3659 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3660 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3661 | PyObject * _resultobj; | |
3662 | wxPyTipProvider * _result; | |
3663 | size_t _arg0; | |
3664 | char *_kwnames[] = { "currentTip", NULL }; | |
3665 | char _ptemp[128]; | |
3666 | ||
3667 | self = self; | |
3668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3669 | return NULL; | |
3670 | { | |
4268f798 | 3671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3672 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); |
f6bcfd97 | 3673 | |
4268f798 RD |
3674 | wxPyEndAllowThreads(__tstate); |
3675 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3676 | } if (_result) { |
3677 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3678 | _resultobj = Py_BuildValue("s",_ptemp); | |
3679 | } else { | |
3680 | Py_INCREF(Py_None); | |
3681 | _resultobj = Py_None; | |
3682 | } | |
3683 | return _resultobj; | |
3684 | } | |
3685 | ||
cf276873 RD |
3686 | #define wxPyTipProvider__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
3687 | static PyObject *_wrap_wxPyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3688 | PyObject * _resultobj; | |
3689 | wxPyTipProvider * _arg0; | |
3690 | PyObject * _arg1; | |
3691 | PyObject * _arg2; | |
3692 | PyObject * _argo0 = 0; | |
3693 | PyObject * _obj1 = 0; | |
3694 | PyObject * _obj2 = 0; | |
3695 | char *_kwnames[] = { "self","self","_class", NULL }; | |
3696 | ||
3697 | self = self; | |
3698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyTipProvider__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3699 | return NULL; | |
3700 | if (_argo0) { | |
3701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTipProvider_p")) { | |
3703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTipProvider__setCallbackInfo. Expected _wxPyTipProvider_p."); | |
3704 | return NULL; | |
3705 | } | |
3706 | } | |
3707 | { | |
3708 | _arg1 = _obj1; | |
3709 | } | |
3710 | { | |
3711 | _arg2 = _obj2; | |
3712 | } | |
3713 | { | |
3714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3715 | wxPyTipProvider__setCallbackInfo(_arg0,_arg1,_arg2); | |
3716 | ||
3717 | wxPyEndAllowThreads(__tstate); | |
3718 | if (PyErr_Occurred()) return NULL; | |
3719 | } Py_INCREF(Py_None); | |
3720 | _resultobj = Py_None; | |
3721 | return _resultobj; | |
3722 | } | |
3723 | ||
9416aa89 RD |
3724 | static void *SwigwxGenericDragImageTowxObject(void *ptr) { |
3725 | wxGenericDragImage *src; | |
3726 | wxObject *dest; | |
3727 | src = (wxGenericDragImage *) ptr; | |
3728 | dest = (wxObject *) src; | |
3729 | return (void *) dest; | |
3730 | } | |
3731 | ||
10e07c70 | 3732 | #define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
f6bcfd97 BP |
3733 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
3734 | PyObject * _resultobj; | |
3735 | wxGenericDragImage * _result; | |
3736 | wxBitmap * _arg0; | |
3737 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
f6bcfd97 BP |
3738 | PyObject * _argo0 = 0; |
3739 | PyObject * _argo1 = 0; | |
10e07c70 | 3740 | char *_kwnames[] = { "image","cursor", NULL }; |
f6bcfd97 BP |
3741 | char _ptemp[128]; |
3742 | ||
3743 | self = self; | |
10e07c70 | 3744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
3745 | return NULL; |
3746 | if (_argo0) { | |
3747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
3749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); | |
3750 | return NULL; | |
3751 | } | |
3752 | } | |
3753 | if (_argo1) { | |
3754 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3755 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); | |
3757 | return NULL; | |
3758 | } | |
3759 | } | |
f6bcfd97 | 3760 | { |
4268f798 | 3761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3762 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1); |
f6bcfd97 | 3763 | |
4268f798 RD |
3764 | wxPyEndAllowThreads(__tstate); |
3765 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3766 | } if (_result) { |
3767 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3768 | _resultobj = Py_BuildValue("s",_ptemp); | |
3769 | } else { | |
3770 | Py_INCREF(Py_None); | |
3771 | _resultobj = Py_None; | |
3772 | } | |
3773 | return _resultobj; | |
3774 | } | |
3775 | ||
cdf14688 RD |
3776 | #define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
3777 | static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3778 | PyObject * _resultobj; | |
3779 | wxGenericDragImage * _result; | |
3780 | wxIcon * _arg0; | |
3781 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3782 | PyObject * _argo0 = 0; | |
3783 | PyObject * _argo1 = 0; | |
3784 | char *_kwnames[] = { "image","cursor", NULL }; | |
3785 | char _ptemp[128]; | |
3786 | ||
3787 | self = self; | |
3788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1)) | |
3789 | return NULL; | |
3790 | if (_argo0) { | |
3791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
3793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p."); | |
3794 | return NULL; | |
3795 | } | |
3796 | } | |
3797 | if (_argo1) { | |
3798 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3799 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p."); | |
3801 | return NULL; | |
3802 | } | |
3803 | } | |
3804 | { | |
4268f798 | 3805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3806 | _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1); |
cdf14688 | 3807 | |
4268f798 RD |
3808 | wxPyEndAllowThreads(__tstate); |
3809 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3810 | } if (_result) { |
3811 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3812 | _resultobj = Py_BuildValue("s",_ptemp); | |
3813 | } else { | |
3814 | Py_INCREF(Py_None); | |
3815 | _resultobj = Py_None; | |
3816 | } | |
3817 | return _resultobj; | |
3818 | } | |
3819 | ||
3820 | #define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3821 | static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3822 | PyObject * _resultobj; | |
3823 | wxGenericDragImage * _result; | |
3824 | wxString * _arg0; | |
3825 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3826 | PyObject * _obj0 = 0; | |
3827 | PyObject * _argo1 = 0; | |
3828 | char *_kwnames[] = { "str","cursor", NULL }; | |
3829 | char _ptemp[128]; | |
3830 | ||
3831 | self = self; | |
3832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1)) | |
3833 | return NULL; | |
3834 | { | |
c8bc7bb8 RD |
3835 | _arg0 = wxString_in_helper(_obj0); |
3836 | if (_arg0 == NULL) | |
cdf14688 | 3837 | return NULL; |
cdf14688 RD |
3838 | } |
3839 | if (_argo1) { | |
3840 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3841 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p."); | |
3843 | return NULL; | |
3844 | } | |
3845 | } | |
3846 | { | |
4268f798 | 3847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3848 | _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1); |
cdf14688 | 3849 | |
4268f798 RD |
3850 | wxPyEndAllowThreads(__tstate); |
3851 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3852 | } if (_result) { |
3853 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3854 | _resultobj = Py_BuildValue("s",_ptemp); | |
3855 | } else { | |
3856 | Py_INCREF(Py_None); | |
3857 | _resultobj = Py_None; | |
3858 | } | |
3859 | { | |
3860 | if (_obj0) | |
3861 | delete _arg0; | |
3862 | } | |
3863 | return _resultobj; | |
3864 | } | |
3865 | ||
3866 | #define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3867 | static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3868 | PyObject * _resultobj; | |
3869 | wxGenericDragImage * _result; | |
3870 | wxTreeCtrl * _arg0; | |
3871 | wxTreeItemId * _arg1; | |
3872 | PyObject * _argo0 = 0; | |
3873 | PyObject * _argo1 = 0; | |
3874 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
3875 | char _ptemp[128]; | |
3876 | ||
3877 | self = self; | |
3878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1)) | |
3879 | return NULL; | |
3880 | if (_argo0) { | |
3881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
3883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p."); | |
3884 | return NULL; | |
3885 | } | |
3886 | } | |
3887 | if (_argo1) { | |
3888 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3889 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
3890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p."); | |
3891 | return NULL; | |
3892 | } | |
3893 | } | |
3894 | { | |
4268f798 | 3895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3896 | _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1); |
cdf14688 | 3897 | |
4268f798 RD |
3898 | wxPyEndAllowThreads(__tstate); |
3899 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3900 | } if (_result) { |
3901 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3902 | _resultobj = Py_BuildValue("s",_ptemp); | |
3903 | } else { | |
3904 | Py_INCREF(Py_None); | |
3905 | _resultobj = Py_None; | |
3906 | } | |
3907 | return _resultobj; | |
3908 | } | |
3909 | ||
3910 | #define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3911 | static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3912 | PyObject * _resultobj; | |
3913 | wxGenericDragImage * _result; | |
3914 | wxListCtrl * _arg0; | |
3915 | long _arg1; | |
3916 | PyObject * _argo0 = 0; | |
3917 | char *_kwnames[] = { "listCtrl","id", NULL }; | |
3918 | char _ptemp[128]; | |
3919 | ||
3920 | self = self; | |
3921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1)) | |
3922 | return NULL; | |
3923 | if (_argo0) { | |
3924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragListItem. Expected _wxListCtrl_p."); | |
3927 | return NULL; | |
3928 | } | |
3929 | } | |
3930 | { | |
4268f798 | 3931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3932 | _result = (wxGenericDragImage *)new_wxDragListItem(*_arg0,_arg1); |
cdf14688 | 3933 | |
4268f798 RD |
3934 | wxPyEndAllowThreads(__tstate); |
3935 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3936 | } if (_result) { |
3937 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3938 | _resultobj = Py_BuildValue("s",_ptemp); | |
3939 | } else { | |
3940 | Py_INCREF(Py_None); | |
3941 | _resultobj = Py_None; | |
3942 | } | |
3943 | return _resultobj; | |
3944 | } | |
3945 | ||
f6bcfd97 BP |
3946 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) |
3947 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3948 | PyObject * _resultobj; | |
3949 | wxGenericDragImage * _arg0; | |
3950 | PyObject * _argo0 = 0; | |
3951 | char *_kwnames[] = { "self", NULL }; | |
3952 | ||
3953 | self = self; | |
3954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
3955 | return NULL; | |
3956 | if (_argo0) { | |
3957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
3960 | return NULL; | |
3961 | } | |
3962 | } | |
3963 | { | |
4268f798 | 3964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3965 | delete_wxGenericDragImage(_arg0); |
f6bcfd97 | 3966 | |
4268f798 RD |
3967 | wxPyEndAllowThreads(__tstate); |
3968 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3969 | } Py_INCREF(Py_None); |
3970 | _resultobj = Py_None; | |
3971 | return _resultobj; | |
3972 | } | |
3973 | ||
10e07c70 RD |
3974 | #define wxDragImage_SetBackingBitmap(_swigobj,_swigarg0) (_swigobj->SetBackingBitmap(_swigarg0)) |
3975 | static PyObject *_wrap_wxDragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3976 | PyObject * _resultobj; | |
3977 | wxGenericDragImage * _arg0; | |
3978 | wxBitmap * _arg1; | |
3979 | PyObject * _argo0 = 0; | |
3980 | PyObject * _argo1 = 0; | |
3981 | char *_kwnames[] = { "self","bitmap", NULL }; | |
3982 | ||
3983 | self = self; | |
3984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_SetBackingBitmap",_kwnames,&_argo0,&_argo1)) | |
3985 | return NULL; | |
3986 | if (_argo0) { | |
3987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_SetBackingBitmap. Expected _wxGenericDragImage_p."); | |
3990 | return NULL; | |
3991 | } | |
3992 | } | |
3993 | if (_argo1) { | |
3994 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3995 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
3996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragImage_SetBackingBitmap. Expected _wxBitmap_p."); | |
3997 | return NULL; | |
3998 | } | |
3999 | } | |
4000 | { | |
4268f798 | 4001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4002 | wxDragImage_SetBackingBitmap(_arg0,_arg1); |
10e07c70 | 4003 | |
4268f798 RD |
4004 | wxPyEndAllowThreads(__tstate); |
4005 | if (PyErr_Occurred()) return NULL; | |
10e07c70 RD |
4006 | } Py_INCREF(Py_None); |
4007 | _resultobj = Py_None; | |
4008 | return _resultobj; | |
4009 | } | |
4010 | ||
f6bcfd97 BP |
4011 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4012 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4013 | PyObject * _resultobj; | |
4014 | bool _result; | |
4015 | wxGenericDragImage * _arg0; | |
4016 | wxPoint * _arg1; | |
4017 | wxWindow * _arg2; | |
4018 | bool _arg3 = (bool ) FALSE; | |
4019 | wxRect * _arg4 = (wxRect *) NULL; | |
4020 | PyObject * _argo0 = 0; | |
4021 | wxPoint temp; | |
4022 | PyObject * _obj1 = 0; | |
4023 | PyObject * _argo2 = 0; | |
4024 | int tempbool3 = (int) FALSE; | |
4025 | wxRect temp0; | |
4026 | PyObject * _obj4 = 0; | |
4027 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
4028 | ||
4029 | self = self; | |
4030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
4031 | return NULL; | |
4032 | if (_argo0) { | |
4033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
4036 | return NULL; | |
4037 | } | |
4038 | } | |
4039 | { | |
4040 | _arg1 = &temp; | |
4041 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4042 | return NULL; | |
4043 | } | |
4044 | if (_argo2) { | |
4045 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4046 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
4047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
4048 | return NULL; | |
4049 | } | |
4050 | } | |
4051 | _arg3 = (bool ) tempbool3; | |
4052 | if (_obj4) | |
4053 | { | |
4054 | _arg4 = &temp0; | |
4055 | if (! wxRect_helper(_obj4, &_arg4)) | |
4056 | return NULL; | |
4057 | } | |
4058 | { | |
4268f798 | 4059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4060 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); |
f6bcfd97 | 4061 | |
4268f798 RD |
4062 | wxPyEndAllowThreads(__tstate); |
4063 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4064 | } _resultobj = Py_BuildValue("i",_result); |
4065 | return _resultobj; | |
4066 | } | |
4067 | ||
4068 | #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) | |
4069 | static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4070 | PyObject * _resultobj; | |
4071 | bool _result; | |
4072 | wxGenericDragImage * _arg0; | |
4073 | wxPoint * _arg1; | |
4074 | wxWindow * _arg2; | |
4075 | wxWindow * _arg3; | |
4076 | PyObject * _argo0 = 0; | |
4077 | wxPoint temp; | |
4078 | PyObject * _obj1 = 0; | |
4079 | PyObject * _argo2 = 0; | |
4080 | PyObject * _argo3 = 0; | |
4081 | char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL }; | |
4082 | ||
4083 | self = self; | |
4084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
4085 | return NULL; | |
4086 | if (_argo0) { | |
4087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p."); | |
4090 | return NULL; | |
4091 | } | |
4092 | } | |
4093 | { | |
4094 | _arg1 = &temp; | |
4095 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4096 | return NULL; | |
4097 | } | |
4098 | if (_argo2) { | |
4099 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4100 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
4101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
4102 | return NULL; | |
4103 | } | |
4104 | } | |
4105 | if (_argo3) { | |
4106 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
4107 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
4108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
4109 | return NULL; | |
4110 | } | |
4111 | } | |
4112 | { | |
4268f798 | 4113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4114 | _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3); |
f6bcfd97 | 4115 | |
4268f798 RD |
4116 | wxPyEndAllowThreads(__tstate); |
4117 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4118 | } _resultobj = Py_BuildValue("i",_result); |
4119 | return _resultobj; | |
4120 | } | |
4121 | ||
4122 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
4123 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4124 | PyObject * _resultobj; | |
4125 | bool _result; | |
4126 | wxGenericDragImage * _arg0; | |
4127 | PyObject * _argo0 = 0; | |
4128 | char *_kwnames[] = { "self", NULL }; | |
4129 | ||
4130 | self = self; | |
4131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
4132 | return NULL; | |
4133 | if (_argo0) { | |
4134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
4137 | return NULL; | |
4138 | } | |
4139 | } | |
4140 | { | |
4268f798 | 4141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4142 | _result = (bool )wxDragImage_EndDrag(_arg0); |
f6bcfd97 | 4143 | |
4268f798 RD |
4144 | wxPyEndAllowThreads(__tstate); |
4145 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4146 | } _resultobj = Py_BuildValue("i",_result); |
4147 | return _resultobj; | |
4148 | } | |
4149 | ||
4150 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
4151 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4152 | PyObject * _resultobj; | |
4153 | bool _result; | |
4154 | wxGenericDragImage * _arg0; | |
4155 | wxPoint * _arg1; | |
4156 | PyObject * _argo0 = 0; | |
4157 | wxPoint temp; | |
4158 | PyObject * _obj1 = 0; | |
4159 | char *_kwnames[] = { "self","pt", NULL }; | |
4160 | ||
4161 | self = self; | |
4162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
4163 | return NULL; | |
4164 | if (_argo0) { | |
4165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p."); | |
4168 | return NULL; | |
4169 | } | |
4170 | } | |
4171 | { | |
4172 | _arg1 = &temp; | |
4173 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4174 | return NULL; | |
4175 | } | |
4176 | { | |
4268f798 | 4177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4178 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); |
f6bcfd97 | 4179 | |
4268f798 RD |
4180 | wxPyEndAllowThreads(__tstate); |
4181 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4182 | } _resultobj = Py_BuildValue("i",_result); |
4183 | return _resultobj; | |
4184 | } | |
4185 | ||
4186 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
4187 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4188 | PyObject * _resultobj; | |
4189 | bool _result; | |
4190 | wxGenericDragImage * _arg0; | |
4191 | PyObject * _argo0 = 0; | |
4192 | char *_kwnames[] = { "self", NULL }; | |
4193 | ||
4194 | self = self; | |
4195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
4196 | return NULL; | |
4197 | if (_argo0) { | |
4198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
4201 | return NULL; | |
4202 | } | |
4203 | } | |
4204 | { | |
4268f798 | 4205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4206 | _result = (bool )wxDragImage_Show(_arg0); |
f6bcfd97 | 4207 | |
4268f798 RD |
4208 | wxPyEndAllowThreads(__tstate); |
4209 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4210 | } _resultobj = Py_BuildValue("i",_result); |
4211 | return _resultobj; | |
4212 | } | |
4213 | ||
4214 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
4215 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4216 | PyObject * _resultobj; | |
4217 | bool _result; | |
4218 | wxGenericDragImage * _arg0; | |
4219 | PyObject * _argo0 = 0; | |
4220 | char *_kwnames[] = { "self", NULL }; | |
4221 | ||
4222 | self = self; | |
4223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
4224 | return NULL; | |
4225 | if (_argo0) { | |
4226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
4229 | return NULL; | |
4230 | } | |
4231 | } | |
4232 | { | |
4268f798 | 4233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4234 | _result = (bool )wxDragImage_Hide(_arg0); |
f6bcfd97 | 4235 | |
4268f798 RD |
4236 | wxPyEndAllowThreads(__tstate); |
4237 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4238 | } _resultobj = Py_BuildValue("i",_result); |
4239 | return _resultobj; | |
4240 | } | |
4241 | ||
4242 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
4243 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4244 | PyObject * _resultobj; | |
4245 | wxRect * _result; | |
4246 | wxGenericDragImage * _arg0; | |
4247 | wxPoint * _arg1; | |
4248 | PyObject * _argo0 = 0; | |
4249 | wxPoint temp; | |
4250 | PyObject * _obj1 = 0; | |
4251 | char *_kwnames[] = { "self","pos", NULL }; | |
4252 | char _ptemp[128]; | |
4253 | ||
4254 | self = self; | |
4255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
4256 | return NULL; | |
4257 | if (_argo0) { | |
4258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p."); | |
4261 | return NULL; | |
4262 | } | |
4263 | } | |
4264 | { | |
4265 | _arg1 = &temp; | |
4266 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4267 | return NULL; | |
4268 | } | |
4269 | { | |
4268f798 | 4270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4271 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); |
f6bcfd97 | 4272 | |
4268f798 RD |
4273 | wxPyEndAllowThreads(__tstate); |
4274 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4275 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
4276 | _resultobj = Py_BuildValue("s",_ptemp); | |
4277 | return _resultobj; | |
4278 | } | |
4279 | ||
4280 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4281 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4282 | PyObject * _resultobj; | |
4283 | bool _result; | |
4284 | wxGenericDragImage * _arg0; | |
4285 | wxPoint * _arg1; | |
4286 | wxPoint * _arg2; | |
4287 | bool _arg3; | |
4288 | bool _arg4; | |
4289 | PyObject * _argo0 = 0; | |
4290 | wxPoint temp; | |
4291 | PyObject * _obj1 = 0; | |
4292 | wxPoint temp0; | |
4293 | PyObject * _obj2 = 0; | |
4294 | int tempbool3; | |
4295 | int tempbool4; | |
4296 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
4297 | ||
4298 | self = self; | |
4299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
4300 | return NULL; | |
4301 | if (_argo0) { | |
4302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
4305 | return NULL; | |
4306 | } | |
4307 | } | |
4308 | { | |
4309 | _arg1 = &temp; | |
4310 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4311 | return NULL; | |
4312 | } | |
4313 | { | |
4314 | _arg2 = &temp0; | |
4315 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4316 | return NULL; | |
4317 | } | |
4318 | _arg3 = (bool ) tempbool3; | |
4319 | _arg4 = (bool ) tempbool4; | |
4320 | { | |
4268f798 | 4321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4322 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
f6bcfd97 | 4323 | |
4268f798 RD |
4324 | wxPyEndAllowThreads(__tstate); |
4325 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4326 | } _resultobj = Py_BuildValue("i",_result); |
4327 | return _resultobj; | |
4328 | } | |
4329 | ||
9416aa89 RD |
4330 | static void *SwigwxPyTimerTowxObject(void *ptr) { |
4331 | wxPyTimer *src; | |
4332 | wxObject *dest; | |
4333 | src = (wxPyTimer *) ptr; | |
4334 | dest = (wxObject *) src; | |
4335 | return (void *) dest; | |
4336 | } | |
4337 | ||
f6bcfd97 BP |
4338 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) |
4339 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4340 | PyObject * _resultobj; | |
4341 | wxPyTimer * _result; | |
4342 | PyObject * _arg0; | |
4343 | PyObject * _obj0 = 0; | |
4344 | char *_kwnames[] = { "notify", NULL }; | |
4345 | char _ptemp[128]; | |
4346 | ||
4347 | self = self; | |
4348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
4349 | return NULL; | |
4350 | { | |
4351 | _arg0 = _obj0; | |
4352 | } | |
4353 | { | |
4268f798 | 4354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4355 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); |
f6bcfd97 | 4356 | |
4268f798 RD |
4357 | wxPyEndAllowThreads(__tstate); |
4358 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4359 | } if (_result) { |
4360 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
4361 | _resultobj = Py_BuildValue("s",_ptemp); | |
4362 | } else { | |
4363 | Py_INCREF(Py_None); | |
4364 | _resultobj = Py_None; | |
4365 | } | |
4366 | return _resultobj; | |
4367 | } | |
4368 | ||
4369 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
4370 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4371 | PyObject * _resultobj; | |
4372 | wxPyTimer * _arg0; | |
4373 | PyObject * _argo0 = 0; | |
4374 | char *_kwnames[] = { "self", NULL }; | |
4375 | ||
4376 | self = self; | |
4377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
4378 | return NULL; | |
4379 | if (_argo0) { | |
4380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
4383 | return NULL; | |
4384 | } | |
4385 | } | |
4386 | { | |
4268f798 | 4387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4388 | delete_wxPyTimer(_arg0); |
f6bcfd97 | 4389 | |
4268f798 RD |
4390 | wxPyEndAllowThreads(__tstate); |
4391 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4392 | } Py_INCREF(Py_None); |
4393 | _resultobj = Py_None; | |
4394 | return _resultobj; | |
4395 | } | |
4396 | ||
4397 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
4398 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4399 | PyObject * _resultobj; | |
4400 | int _result; | |
4401 | wxPyTimer * _arg0; | |
4402 | PyObject * _argo0 = 0; | |
4403 | char *_kwnames[] = { "self", NULL }; | |
4404 | ||
4405 | self = self; | |
4406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
4407 | return NULL; | |
4408 | if (_argo0) { | |
4409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
4412 | return NULL; | |
4413 | } | |
4414 | } | |
4415 | { | |
4268f798 | 4416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4417 | _result = (int )wxPyTimer_GetInterval(_arg0); |
f6bcfd97 | 4418 | |
4268f798 RD |
4419 | wxPyEndAllowThreads(__tstate); |
4420 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4421 | } _resultobj = Py_BuildValue("i",_result); |
4422 | return _resultobj; | |
4423 | } | |
4424 | ||
4425 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
4426 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4427 | PyObject * _resultobj; | |
4428 | bool _result; | |
4429 | wxPyTimer * _arg0; | |
4430 | PyObject * _argo0 = 0; | |
4431 | char *_kwnames[] = { "self", NULL }; | |
4432 | ||
4433 | self = self; | |
4434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
4435 | return NULL; | |
4436 | if (_argo0) { | |
4437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
4440 | return NULL; | |
4441 | } | |
4442 | } | |
4443 | { | |
4268f798 | 4444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4445 | _result = (bool )wxPyTimer_IsOneShot(_arg0); |
f6bcfd97 | 4446 | |
4268f798 RD |
4447 | wxPyEndAllowThreads(__tstate); |
4448 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4449 | } _resultobj = Py_BuildValue("i",_result); |
4450 | return _resultobj; | |
4451 | } | |
4452 | ||
4453 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
4454 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4455 | PyObject * _resultobj; | |
4456 | bool _result; | |
4457 | wxPyTimer * _arg0; | |
4458 | PyObject * _argo0 = 0; | |
4459 | char *_kwnames[] = { "self", NULL }; | |
4460 | ||
4461 | self = self; | |
4462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
4463 | return NULL; | |
4464 | if (_argo0) { | |
4465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
4468 | return NULL; | |
4469 | } | |
4470 | } | |
4471 | { | |
4268f798 | 4472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4473 | _result = (bool )wxPyTimer_IsRunning(_arg0); |
f6bcfd97 | 4474 | |
4268f798 RD |
4475 | wxPyEndAllowThreads(__tstate); |
4476 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4477 | } _resultobj = Py_BuildValue("i",_result); |
4478 | return _resultobj; | |
4479 | } | |
4480 | ||
4481 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
4482 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4483 | PyObject * _resultobj; | |
4484 | wxPyTimer * _arg0; | |
4485 | wxEvtHandler * _arg1; | |
4486 | int _arg2 = (int ) -1; | |
4487 | PyObject * _argo0 = 0; | |
4488 | PyObject * _argo1 = 0; | |
4489 | char *_kwnames[] = { "self","owner","id", NULL }; | |
4490 | ||
4491 | self = self; | |
4492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4493 | return NULL; | |
4494 | if (_argo0) { | |
4495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
4498 | return NULL; | |
4499 | } | |
4500 | } | |
4501 | if (_argo1) { | |
4502 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4503 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
4505 | return NULL; | |
4506 | } | |
4507 | } | |
4508 | { | |
4268f798 | 4509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4510 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); |
f6bcfd97 | 4511 | |
4268f798 RD |
4512 | wxPyEndAllowThreads(__tstate); |
4513 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4514 | } Py_INCREF(Py_None); |
4515 | _resultobj = Py_None; | |
4516 | return _resultobj; | |
4517 | } | |
4518 | ||
4519 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
4520 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4521 | PyObject * _resultobj; | |
4522 | wxPyTimer * _arg0; | |
4523 | int _arg1 = (int ) -1; | |
4524 | int _arg2 = (int ) FALSE; | |
4525 | PyObject * _argo0 = 0; | |
4526 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
4527 | ||
4528 | self = self; | |
4529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4530 | return NULL; | |
4531 | if (_argo0) { | |
4532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
4535 | return NULL; | |
4536 | } | |
4537 | } | |
4538 | { | |
4268f798 | 4539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4540 | wxPyTimer_Start(_arg0,_arg1,_arg2); |
f6bcfd97 | 4541 | |
4268f798 RD |
4542 | wxPyEndAllowThreads(__tstate); |
4543 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4544 | } Py_INCREF(Py_None); |
4545 | _resultobj = Py_None; | |
4546 | return _resultobj; | |
4547 | } | |
4548 | ||
4549 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
4550 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4551 | PyObject * _resultobj; | |
4552 | wxPyTimer * _arg0; | |
f0261a72 RD |
4553 | PyObject * _argo0 = 0; |
4554 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4555 | |
4556 | self = self; | |
f6bcfd97 | 4557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) |
f0261a72 RD |
4558 | return NULL; |
4559 | if (_argo0) { | |
4560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { |
4562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
f0261a72 RD |
4563 | return NULL; |
4564 | } | |
4565 | } | |
4566 | { | |
4268f798 | 4567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4568 | wxPyTimer_Stop(_arg0); |
f0261a72 | 4569 | |
4268f798 RD |
4570 | wxPyEndAllowThreads(__tstate); |
4571 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4572 | } Py_INCREF(Py_None); |
4573 | _resultobj = Py_None; | |
f0261a72 RD |
4574 | return _resultobj; |
4575 | } | |
4576 | ||
b37c7e1d RD |
4577 | #define new_wxStopWatch() (new wxStopWatch()) |
4578 | static PyObject *_wrap_new_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4579 | PyObject * _resultobj; | |
4580 | wxStopWatch * _result; | |
4581 | char *_kwnames[] = { NULL }; | |
4582 | char _ptemp[128]; | |
4583 | ||
4584 | self = self; | |
4585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxStopWatch",_kwnames)) | |
4586 | return NULL; | |
4587 | { | |
4268f798 | 4588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4589 | _result = (wxStopWatch *)new_wxStopWatch(); |
b37c7e1d | 4590 | |
4268f798 RD |
4591 | wxPyEndAllowThreads(__tstate); |
4592 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4593 | } if (_result) { |
4594 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStopWatch_p"); | |
4595 | _resultobj = Py_BuildValue("s",_ptemp); | |
4596 | } else { | |
4597 | Py_INCREF(Py_None); | |
4598 | _resultobj = Py_None; | |
4599 | } | |
4600 | return _resultobj; | |
4601 | } | |
4602 | ||
68320e40 RD |
4603 | #define delete_wxStopWatch(_swigobj) (delete _swigobj) |
4604 | static PyObject *_wrap_delete_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4605 | PyObject * _resultobj; | |
4606 | wxStopWatch * _arg0; | |
4607 | PyObject * _argo0 = 0; | |
4608 | char *_kwnames[] = { "self", NULL }; | |
4609 | ||
4610 | self = self; | |
4611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxStopWatch",_kwnames,&_argo0)) | |
4612 | return NULL; | |
4613 | if (_argo0) { | |
4614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxStopWatch. Expected _wxStopWatch_p."); | |
4617 | return NULL; | |
4618 | } | |
4619 | } | |
4620 | { | |
4621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4622 | delete_wxStopWatch(_arg0); |
68320e40 RD |
4623 | |
4624 | wxPyEndAllowThreads(__tstate); | |
4625 | if (PyErr_Occurred()) return NULL; | |
4626 | } Py_INCREF(Py_None); | |
4627 | _resultobj = Py_None; | |
4628 | return _resultobj; | |
4629 | } | |
4630 | ||
b37c7e1d RD |
4631 | #define wxStopWatch_Start(_swigobj,_swigarg0) (_swigobj->Start(_swigarg0)) |
4632 | static PyObject *_wrap_wxStopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4633 | PyObject * _resultobj; | |
4634 | wxStopWatch * _arg0; | |
4635 | long _arg1 = (long ) 0; | |
4636 | PyObject * _argo0 = 0; | |
4637 | char *_kwnames[] = { "self","t", NULL }; | |
4638 | ||
4639 | self = self; | |
4640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxStopWatch_Start",_kwnames,&_argo0,&_arg1)) | |
4641 | return NULL; | |
4642 | if (_argo0) { | |
4643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Start. Expected _wxStopWatch_p."); | |
4646 | return NULL; | |
4647 | } | |
4648 | } | |
4649 | { | |
4268f798 | 4650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4651 | wxStopWatch_Start(_arg0,_arg1); |
b37c7e1d | 4652 | |
4268f798 RD |
4653 | wxPyEndAllowThreads(__tstate); |
4654 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4655 | } Py_INCREF(Py_None); |
4656 | _resultobj = Py_None; | |
4657 | return _resultobj; | |
4658 | } | |
4659 | ||
4660 | #define wxStopWatch_Pause(_swigobj) (_swigobj->Pause()) | |
4661 | static PyObject *_wrap_wxStopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4662 | PyObject * _resultobj; | |
4663 | wxStopWatch * _arg0; | |
4664 | PyObject * _argo0 = 0; | |
4665 | char *_kwnames[] = { "self", NULL }; | |
4666 | ||
4667 | self = self; | |
4668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Pause",_kwnames,&_argo0)) | |
4669 | return NULL; | |
4670 | if (_argo0) { | |
4671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Pause. Expected _wxStopWatch_p."); | |
4674 | return NULL; | |
4675 | } | |
4676 | } | |
4677 | { | |
4268f798 | 4678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4679 | wxStopWatch_Pause(_arg0); |
b37c7e1d | 4680 | |
4268f798 RD |
4681 | wxPyEndAllowThreads(__tstate); |
4682 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4683 | } Py_INCREF(Py_None); |
4684 | _resultobj = Py_None; | |
4685 | return _resultobj; | |
4686 | } | |
4687 | ||
4688 | #define wxStopWatch_Resume(_swigobj) (_swigobj->Resume()) | |
4689 | static PyObject *_wrap_wxStopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4690 | PyObject * _resultobj; | |
4691 | wxStopWatch * _arg0; | |
4692 | PyObject * _argo0 = 0; | |
4693 | char *_kwnames[] = { "self", NULL }; | |
4694 | ||
4695 | self = self; | |
4696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Resume",_kwnames,&_argo0)) | |
4697 | return NULL; | |
4698 | if (_argo0) { | |
4699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Resume. Expected _wxStopWatch_p."); | |
4702 | return NULL; | |
4703 | } | |
4704 | } | |
4705 | { | |
4268f798 | 4706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4707 | wxStopWatch_Resume(_arg0); |
b37c7e1d | 4708 | |
4268f798 RD |
4709 | wxPyEndAllowThreads(__tstate); |
4710 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4711 | } Py_INCREF(Py_None); |
4712 | _resultobj = Py_None; | |
4713 | return _resultobj; | |
4714 | } | |
4715 | ||
4716 | #define wxStopWatch_Time(_swigobj) (_swigobj->Time()) | |
4717 | static PyObject *_wrap_wxStopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4718 | PyObject * _resultobj; | |
4719 | long _result; | |
4720 | wxStopWatch * _arg0; | |
4721 | PyObject * _argo0 = 0; | |
4722 | char *_kwnames[] = { "self", NULL }; | |
4723 | ||
4724 | self = self; | |
4725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Time",_kwnames,&_argo0)) | |
4726 | return NULL; | |
4727 | if (_argo0) { | |
4728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Time. Expected _wxStopWatch_p."); | |
4731 | return NULL; | |
4732 | } | |
4733 | } | |
4734 | { | |
4268f798 | 4735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4736 | _result = (long )wxStopWatch_Time(_arg0); |
b37c7e1d | 4737 | |
4268f798 RD |
4738 | wxPyEndAllowThreads(__tstate); |
4739 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4740 | } _resultobj = Py_BuildValue("l",_result); |
4741 | return _resultobj; | |
4742 | } | |
4743 | ||
f6bcfd97 BP |
4744 | #define new_wxLog() (new wxLog()) |
4745 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4746 | PyObject * _resultobj; |
f6bcfd97 BP |
4747 | wxLog * _result; |
4748 | char *_kwnames[] = { NULL }; | |
4749 | char _ptemp[128]; | |
f0261a72 RD |
4750 | |
4751 | self = self; | |
f6bcfd97 BP |
4752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) |
4753 | return NULL; | |
f0261a72 | 4754 | { |
4268f798 | 4755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4756 | _result = (wxLog *)new_wxLog(); |
f6bcfd97 | 4757 | |
4268f798 RD |
4758 | wxPyEndAllowThreads(__tstate); |
4759 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4760 | } if (_result) { |
4761 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4762 | _resultobj = Py_BuildValue("s",_ptemp); | |
4763 | } else { | |
4764 | Py_INCREF(Py_None); | |
4765 | _resultobj = Py_None; | |
4766 | } | |
4767 | return _resultobj; | |
f0261a72 | 4768 | } |
f6bcfd97 BP |
4769 | |
4770 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4771 | PyObject * _resultobj; | |
4772 | bool _result; | |
4773 | char *_kwnames[] = { NULL }; | |
4774 | ||
4775 | self = self; | |
4776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
4777 | return NULL; | |
f0261a72 | 4778 | { |
4268f798 | 4779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4780 | _result = (bool )wxLog::IsEnabled(); |
f6bcfd97 | 4781 | |
4268f798 RD |
4782 | wxPyEndAllowThreads(__tstate); |
4783 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4784 | } _resultobj = Py_BuildValue("i",_result); |
4785 | return _resultobj; | |
f0261a72 | 4786 | } |
f6bcfd97 BP |
4787 | |
4788 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4789 | PyObject * _resultobj; | |
4790 | bool _result; | |
4791 | bool _arg0 = (bool ) TRUE; | |
4792 | int tempbool0 = (int) TRUE; | |
4793 | char *_kwnames[] = { "doIt", NULL }; | |
4794 | ||
4795 | self = self; | |
4796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
4797 | return NULL; | |
4798 | _arg0 = (bool ) tempbool0; | |
4799 | { | |
4268f798 | 4800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4801 | _result = (bool )wxLog::EnableLogging(_arg0); |
f6bcfd97 | 4802 | |
4268f798 RD |
4803 | wxPyEndAllowThreads(__tstate); |
4804 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4805 | } _resultobj = Py_BuildValue("i",_result); |
4806 | return _resultobj; | |
4807 | } | |
4808 | ||
4809 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4810 | PyObject * _resultobj; | |
8baa46e9 | 4811 | unsigned long _arg0; |
c8bc7bb8 | 4812 | wxString * _arg1; |
f6bcfd97 | 4813 | int _arg2 = (int ) 0; |
c8bc7bb8 | 4814 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
4815 | char *_kwnames[] = { "level","szString","t", NULL }; |
4816 | ||
4817 | self = self; | |
8baa46e9 | 4818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"lO|i:wxLog_OnLog",_kwnames,&_arg0,&_obj1,&_arg2)) |
f0261a72 | 4819 | return NULL; |
c8bc7bb8 RD |
4820 | { |
4821 | _arg1 = wxString_in_helper(_obj1); | |
4822 | if (_arg1 == NULL) | |
4823 | return NULL; | |
4824 | } | |
f0261a72 | 4825 | { |
4268f798 | 4826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8baa46e9 | 4827 | wxLog::OnLog(_arg0,*_arg1,_arg2); |
f0261a72 | 4828 | |
4268f798 RD |
4829 | wxPyEndAllowThreads(__tstate); |
4830 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4831 | } Py_INCREF(Py_None); |
4832 | _resultobj = Py_None; | |
c8bc7bb8 RD |
4833 | { |
4834 | if (_obj1) | |
4835 | delete _arg1; | |
4836 | } | |
f6bcfd97 | 4837 | return _resultobj; |
f0261a72 | 4838 | } |
f6bcfd97 BP |
4839 | |
4840 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
4841 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4842 | PyObject * _resultobj; | |
4843 | wxLog * _arg0; | |
4844 | PyObject * _argo0 = 0; | |
4845 | char *_kwnames[] = { "self", NULL }; | |
4846 | ||
4847 | self = self; | |
4848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
4849 | return NULL; | |
4850 | if (_argo0) { | |
4851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
4854 | return NULL; | |
4855 | } | |
4856 | } | |
f0261a72 | 4857 | { |
4268f798 | 4858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4859 | wxLog_Flush(_arg0); |
f6bcfd97 | 4860 | |
4268f798 RD |
4861 | wxPyEndAllowThreads(__tstate); |
4862 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4863 | } Py_INCREF(Py_None); |
4864 | _resultobj = Py_None; | |
f0261a72 RD |
4865 | return _resultobj; |
4866 | } | |
4867 | ||
f6bcfd97 BP |
4868 | #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages()) |
4869 | static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4870 | PyObject * _resultobj; |
f6bcfd97 BP |
4871 | bool _result; |
4872 | wxLog * _arg0; | |
f0261a72 RD |
4873 | PyObject * _argo0 = 0; |
4874 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4875 | |
4876 | self = self; | |
f6bcfd97 | 4877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0)) |
f0261a72 RD |
4878 | return NULL; |
4879 | if (_argo0) { | |
4880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p."); | |
f0261a72 RD |
4883 | return NULL; |
4884 | } | |
4885 | } | |
4886 | { | |
4268f798 | 4887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4888 | _result = (bool )wxLog_HasPendingMessages(_arg0); |
f0261a72 | 4889 | |
4268f798 RD |
4890 | wxPyEndAllowThreads(__tstate); |
4891 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 4892 | } _resultobj = Py_BuildValue("i",_result); |
f0261a72 RD |
4893 | return _resultobj; |
4894 | } | |
4895 | ||
f6bcfd97 | 4896 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4897 | PyObject * _resultobj; |
f6bcfd97 BP |
4898 | char *_kwnames[] = { NULL }; |
4899 | ||
4900 | self = self; | |
4901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4902 | return NULL; | |
4903 | { | |
4268f798 | 4904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4905 | wxLog::FlushActive(); |
f6bcfd97 | 4906 | |
4268f798 RD |
4907 | wxPyEndAllowThreads(__tstate); |
4908 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4909 | } Py_INCREF(Py_None); |
4910 | _resultobj = Py_None; | |
4911 | return _resultobj; | |
4912 | } | |
4913 | ||
4914 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4915 | PyObject * _resultobj; | |
4916 | wxLog * _result; | |
4917 | char *_kwnames[] = { NULL }; | |
4918 | char _ptemp[128]; | |
4919 | ||
4920 | self = self; | |
4921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
4922 | return NULL; | |
4923 | { | |
4268f798 | 4924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4925 | _result = (wxLog *)wxLog::GetActiveTarget(); |
f6bcfd97 | 4926 | |
4268f798 RD |
4927 | wxPyEndAllowThreads(__tstate); |
4928 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4929 | } if (_result) { |
4930 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4931 | _resultobj = Py_BuildValue("s",_ptemp); | |
4932 | } else { | |
4933 | Py_INCREF(Py_None); | |
4934 | _resultobj = Py_None; | |
4935 | } | |
4936 | return _resultobj; | |
4937 | } | |
4938 | ||
4939 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4940 | PyObject * _resultobj; | |
4941 | wxLog * _result; | |
4942 | wxLog * _arg0; | |
f0261a72 | 4943 | PyObject * _argo0 = 0; |
f6bcfd97 | 4944 | char *_kwnames[] = { "pLogger", NULL }; |
f0261a72 RD |
4945 | char _ptemp[128]; |
4946 | ||
4947 | self = self; | |
f6bcfd97 | 4948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) |
f0261a72 RD |
4949 | return NULL; |
4950 | if (_argo0) { | |
4951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
f0261a72 RD |
4954 | return NULL; |
4955 | } | |
4956 | } | |
4957 | { | |
4268f798 | 4958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4959 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); |
f0261a72 | 4960 | |
4268f798 RD |
4961 | wxPyEndAllowThreads(__tstate); |
4962 | if (PyErr_Occurred()) return NULL; | |
f0261a72 | 4963 | } if (_result) { |
f6bcfd97 | 4964 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); |
f0261a72 RD |
4965 | _resultobj = Py_BuildValue("s",_ptemp); |
4966 | } else { | |
4967 | Py_INCREF(Py_None); | |
4968 | _resultobj = Py_None; | |
4969 | } | |
4970 | return _resultobj; | |
4971 | } | |
4972 | ||
f6bcfd97 | 4973 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4974 | PyObject * _resultobj; |
f6bcfd97 BP |
4975 | char *_kwnames[] = { NULL }; |
4976 | ||
4977 | self = self; | |
4978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
4979 | return NULL; | |
4980 | { | |
4268f798 | 4981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4982 | wxLog::Suspend(); |
f6bcfd97 | 4983 | |
4268f798 RD |
4984 | wxPyEndAllowThreads(__tstate); |
4985 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4986 | } Py_INCREF(Py_None); |
4987 | _resultobj = Py_None; | |
4988 | return _resultobj; | |
4989 | } | |
4990 | ||
4991 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4992 | PyObject * _resultobj; | |
4993 | char *_kwnames[] = { NULL }; | |
4994 | ||
4995 | self = self; | |
4996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
4997 | return NULL; | |
4998 | { | |
4268f798 | 4999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5000 | wxLog::Resume(); |
f6bcfd97 | 5001 | |
4268f798 RD |
5002 | wxPyEndAllowThreads(__tstate); |
5003 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5004 | } Py_INCREF(Py_None); |
5005 | _resultobj = Py_None; | |
5006 | return _resultobj; | |
5007 | } | |
5008 | ||
f6bcfd97 BP |
5009 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { |
5010 | PyObject * _resultobj; | |
d6eacb25 RD |
5011 | bool _arg0 = (bool ) TRUE; |
5012 | int tempbool0 = (int) TRUE; | |
5013 | char *_kwnames[] = { "bVerbose", NULL }; | |
f0261a72 RD |
5014 | |
5015 | self = self; | |
d6eacb25 | 5016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_SetVerbose",_kwnames,&tempbool0)) |
f0261a72 | 5017 | return NULL; |
d6eacb25 | 5018 | _arg0 = (bool ) tempbool0; |
f0261a72 | 5019 | { |
4268f798 | 5020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d6eacb25 | 5021 | wxLog::SetVerbose(_arg0); |
f0261a72 | 5022 | |
4268f798 RD |
5023 | wxPyEndAllowThreads(__tstate); |
5024 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
5025 | } Py_INCREF(Py_None); |
5026 | _resultobj = Py_None; | |
5027 | return _resultobj; | |
5028 | } | |
5029 | ||
f6bcfd97 | 5030 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 5031 | PyObject * _resultobj; |
f6bcfd97 BP |
5032 | char *_kwnames[] = { NULL }; |
5033 | ||
5034 | self = self; | |
5035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
5036 | return NULL; | |
5037 | { | |
4268f798 | 5038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5039 | wxLog::DontCreateOnDemand(); |
f6bcfd97 | 5040 | |
4268f798 RD |
5041 | wxPyEndAllowThreads(__tstate); |
5042 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5043 | } Py_INCREF(Py_None); |
5044 | _resultobj = Py_None; | |
5045 | return _resultobj; | |
5046 | } | |
5047 | ||
5048 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5049 | PyObject * _resultobj; | |
8baa46e9 | 5050 | long _arg0; |
f6bcfd97 | 5051 | char *_kwnames[] = { "ulMask", NULL }; |
f0261a72 RD |
5052 | |
5053 | self = self; | |
8baa46e9 | 5054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxLog_SetTraceMask",_kwnames,&_arg0)) |
f6bcfd97 | 5055 | return NULL; |
f6bcfd97 | 5056 | { |
4268f798 | 5057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8baa46e9 | 5058 | wxLog::SetTraceMask(_arg0); |
f6bcfd97 | 5059 | |
4268f798 RD |
5060 | wxPyEndAllowThreads(__tstate); |
5061 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5062 | } Py_INCREF(Py_None); |
5063 | _resultobj = Py_None; | |
5064 | return _resultobj; | |
5065 | } | |
5066 | ||
5067 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5068 | PyObject * _resultobj; | |
5069 | wxString * _arg0; | |
5070 | PyObject * _obj0 = 0; | |
5071 | char *_kwnames[] = { "str", NULL }; | |
5072 | ||
5073 | self = self; | |
5074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
5075 | return NULL; | |
5076 | { | |
c8bc7bb8 RD |
5077 | _arg0 = wxString_in_helper(_obj0); |
5078 | if (_arg0 == NULL) | |
f6bcfd97 | 5079 | return NULL; |
f6bcfd97 BP |
5080 | } |
5081 | { | |
4268f798 | 5082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5083 | wxLog::AddTraceMask(*_arg0); |
f6bcfd97 | 5084 | |
4268f798 RD |
5085 | wxPyEndAllowThreads(__tstate); |
5086 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5087 | } Py_INCREF(Py_None); |
5088 | _resultobj = Py_None; | |
5089 | { | |
5090 | if (_obj0) | |
5091 | delete _arg0; | |
5092 | } | |
5093 | return _resultobj; | |
5094 | } | |
5095 | ||
5096 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5097 | PyObject * _resultobj; | |
5098 | wxString * _arg0; | |
5099 | PyObject * _obj0 = 0; | |
5100 | char *_kwnames[] = { "str", NULL }; | |
5101 | ||
5102 | self = self; | |
5103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
f0261a72 | 5104 | return NULL; |
f0261a72 | 5105 | { |
c8bc7bb8 RD |
5106 | _arg0 = wxString_in_helper(_obj0); |
5107 | if (_arg0 == NULL) | |
185d7c3e | 5108 | return NULL; |
f0261a72 RD |
5109 | } |
5110 | { | |
4268f798 | 5111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5112 | wxLog::RemoveTraceMask(*_arg0); |
f0261a72 | 5113 | |
4268f798 RD |
5114 | wxPyEndAllowThreads(__tstate); |
5115 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
5116 | } Py_INCREF(Py_None); |
5117 | _resultobj = Py_None; | |
f6bcfd97 BP |
5118 | { |
5119 | if (_obj0) | |
5120 | delete _arg0; | |
5121 | } | |
f0261a72 RD |
5122 | return _resultobj; |
5123 | } | |
5124 | ||
76bfdc78 RD |
5125 | static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { |
5126 | PyObject * _resultobj; | |
5127 | char *_kwnames[] = { NULL }; | |
5128 | ||
5129 | self = self; | |
5130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames)) | |
5131 | return NULL; | |
5132 | { | |
4268f798 | 5133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5134 | wxLog::ClearTraceMasks(); |
76bfdc78 | 5135 | |
4268f798 RD |
5136 | wxPyEndAllowThreads(__tstate); |
5137 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5138 | } Py_INCREF(Py_None); |
5139 | _resultobj = Py_None; | |
5140 | return _resultobj; | |
5141 | } | |
5142 | ||
67a92fff RD |
5143 | static PyObject *_wrap_wxLog_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { |
5144 | PyObject * _resultobj; | |
5145 | wxArrayString * _result; | |
5146 | char *_kwnames[] = { NULL }; | |
5147 | char _ptemp[128]; | |
5148 | ||
5149 | self = self; | |
5150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMasks",_kwnames)) | |
5151 | return NULL; | |
5152 | { | |
5153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5154 | const wxArrayString & _result_ref = wxLog::GetTraceMasks(); | |
5155 | _result = (wxArrayString *) &_result_ref; | |
5156 | ||
5157 | wxPyEndAllowThreads(__tstate); | |
5158 | if (PyErr_Occurred()) return NULL; | |
5159 | } if (_result) { | |
5160 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxArrayString_p"); | |
5161 | _resultobj = Py_BuildValue("s",_ptemp); | |
5162 | } else { | |
5163 | Py_INCREF(Py_None); | |
5164 | _resultobj = Py_None; | |
5165 | } | |
5166 | return _resultobj; | |
5167 | } | |
5168 | ||
76bfdc78 RD |
5169 | static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { |
5170 | PyObject * _resultobj; | |
137b5242 RD |
5171 | wxString * _arg0; |
5172 | PyObject * _obj0 = 0; | |
76bfdc78 RD |
5173 | char *_kwnames[] = { "ts", NULL }; |
5174 | ||
5175 | self = self; | |
137b5242 | 5176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTimestamp",_kwnames,&_obj0)) |
76bfdc78 | 5177 | return NULL; |
137b5242 RD |
5178 | { |
5179 | _arg0 = wxString_in_helper(_obj0); | |
5180 | if (_arg0 == NULL) | |
5181 | return NULL; | |
5182 | } | |
76bfdc78 | 5183 | { |
4268f798 | 5184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 5185 | wxLog::SetTimestamp(*_arg0); |
76bfdc78 | 5186 | |
4268f798 RD |
5187 | wxPyEndAllowThreads(__tstate); |
5188 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5189 | } Py_INCREF(Py_None); |
5190 | _resultobj = Py_None; | |
137b5242 RD |
5191 | { |
5192 | if (_obj0) | |
5193 | delete _arg0; | |
5194 | } | |
76bfdc78 RD |
5195 | return _resultobj; |
5196 | } | |
5197 | ||
5198 | static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5199 | PyObject * _resultobj; | |
137b5242 | 5200 | wxString * _result; |
76bfdc78 RD |
5201 | char *_kwnames[] = { NULL }; |
5202 | ||
5203 | self = self; | |
5204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames)) | |
5205 | return NULL; | |
5206 | { | |
4268f798 | 5207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 RD |
5208 | const wxString & _result_ref = wxLog::GetTimestamp(); |
5209 | _result = (wxString *) &_result_ref; | |
76bfdc78 | 5210 | |
4268f798 RD |
5211 | wxPyEndAllowThreads(__tstate); |
5212 | if (PyErr_Occurred()) return NULL; | |
137b5242 RD |
5213 | }{ |
5214 | #if wxUSE_UNICODE | |
5215 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5216 | #else | |
5217 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5218 | #endif | |
5219 | } | |
76bfdc78 RD |
5220 | return _resultobj; |
5221 | } | |
5222 | ||
f6bcfd97 BP |
5223 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) |
5224 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
a1df7a95 | 5225 | PyObject * _resultobj; |
f6bcfd97 BP |
5226 | bool _result; |
5227 | wxLog * _arg0; | |
a1df7a95 | 5228 | PyObject * _argo0 = 0; |
f6bcfd97 | 5229 | char *_kwnames[] = { "self", NULL }; |
a1df7a95 RD |
5230 | |
5231 | self = self; | |
f6bcfd97 | 5232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) |
a1df7a95 RD |
5233 | return NULL; |
5234 | if (_argo0) { | |
5235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
5237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
a1df7a95 RD |
5238 | return NULL; |
5239 | } | |
5240 | } | |
5241 | { | |
4268f798 | 5242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5243 | _result = (bool )wxLog_GetVerbose(_arg0); |
a1df7a95 | 5244 | |
4268f798 RD |
5245 | wxPyEndAllowThreads(__tstate); |
5246 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5247 | } _resultobj = Py_BuildValue("i",_result); |
a1df7a95 RD |
5248 | return _resultobj; |
5249 | } | |
5250 | ||
f6bcfd97 | 5251 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
a1df7a95 | 5252 | PyObject * _resultobj; |
be13a6af | 5253 | unsigned long _result; |
f6bcfd97 | 5254 | char *_kwnames[] = { NULL }; |
a1df7a95 RD |
5255 | |
5256 | self = self; | |
f6bcfd97 | 5257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) |
a1df7a95 | 5258 | return NULL; |
a1df7a95 | 5259 | { |
4268f798 | 5260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
be13a6af | 5261 | _result = (unsigned long )wxLog::GetTraceMask(); |
f6bcfd97 | 5262 | |
4268f798 RD |
5263 | wxPyEndAllowThreads(__tstate); |
5264 | if (PyErr_Occurred()) return NULL; | |
be13a6af | 5265 | } _resultobj = Py_BuildValue("l",_result); |
f6bcfd97 | 5266 | return _resultobj; |
a1df7a95 | 5267 | } |
f6bcfd97 BP |
5268 | |
5269 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5270 | PyObject * _resultobj; | |
5271 | bool _result; | |
c8bc7bb8 RD |
5272 | wxString * _arg0; |
5273 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
5274 | char *_kwnames[] = { "mask", NULL }; |
5275 | ||
5276 | self = self; | |
c8bc7bb8 | 5277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_IsAllowedTraceMask",_kwnames,&_obj0)) |
f6bcfd97 | 5278 | return NULL; |
c8bc7bb8 RD |
5279 | { |
5280 | _arg0 = wxString_in_helper(_obj0); | |
5281 | if (_arg0 == NULL) | |
5282 | return NULL; | |
5283 | } | |
a1df7a95 | 5284 | { |
4268f798 | 5285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5286 | _result = (bool )wxLog::IsAllowedTraceMask(*_arg0); |
a1df7a95 | 5287 | |
4268f798 RD |
5288 | wxPyEndAllowThreads(__tstate); |
5289 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5290 | } _resultobj = Py_BuildValue("i",_result); |
c8bc7bb8 RD |
5291 | { |
5292 | if (_obj0) | |
5293 | delete _arg0; | |
5294 | } | |
a1df7a95 RD |
5295 | return _resultobj; |
5296 | } | |
5297 | ||
76bfdc78 RD |
5298 | static wxString wxLog_TimeStamp(wxLog *self) { |
5299 | wxString msg; | |
5300 | wxLog::TimeStamp(&msg); | |
5301 | return msg; | |
5302 | } | |
5303 | static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5304 | PyObject * _resultobj; | |
5305 | wxString * _result; | |
5306 | wxLog * _arg0; | |
5307 | PyObject * _argo0 = 0; | |
5308 | char *_kwnames[] = { "self", NULL }; | |
5309 | ||
5310 | self = self; | |
5311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0)) | |
5312 | return NULL; | |
5313 | if (_argo0) { | |
5314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p."); | |
5317 | return NULL; | |
5318 | } | |
5319 | } | |
5320 | { | |
4268f798 | 5321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5322 | _result = new wxString (wxLog_TimeStamp(_arg0)); |
76bfdc78 | 5323 | |
4268f798 RD |
5324 | wxPyEndAllowThreads(__tstate); |
5325 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 | 5326 | }{ |
c8bc7bb8 RD |
5327 | #if wxUSE_UNICODE |
5328 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5329 | #else | |
76bfdc78 | 5330 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5331 | #endif |
76bfdc78 RD |
5332 | } |
5333 | { | |
5334 | delete _result; | |
5335 | } | |
5336 | return _resultobj; | |
5337 | } | |
5338 | ||
f6bcfd97 BP |
5339 | static void *SwigwxLogStderrTowxLog(void *ptr) { |
5340 | wxLogStderr *src; | |
5341 | wxLog *dest; | |
5342 | src = (wxLogStderr *) ptr; | |
5343 | dest = (wxLog *) src; | |
5344 | return (void *) dest; | |
5345 | } | |
5346 | ||
5347 | #define new_wxLogStderr() (new wxLogStderr()) | |
5348 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5349 | PyObject * _resultobj; |
f6bcfd97 BP |
5350 | wxLogStderr * _result; |
5351 | char *_kwnames[] = { NULL }; | |
5352 | char _ptemp[128]; | |
f0261a72 RD |
5353 | |
5354 | self = self; | |
f6bcfd97 | 5355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) |
f0261a72 | 5356 | return NULL; |
f0261a72 | 5357 | { |
4268f798 | 5358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5359 | _result = (wxLogStderr *)new_wxLogStderr(); |
f0261a72 | 5360 | |
4268f798 RD |
5361 | wxPyEndAllowThreads(__tstate); |
5362 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5363 | } if (_result) { |
5364 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
5365 | _resultobj = Py_BuildValue("s",_ptemp); | |
5366 | } else { | |
5367 | Py_INCREF(Py_None); | |
5368 | _resultobj = Py_None; | |
5369 | } | |
f0261a72 RD |
5370 | return _resultobj; |
5371 | } | |
5372 | ||
f6bcfd97 BP |
5373 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { |
5374 | wxLogTextCtrl *src; | |
5375 | wxLog *dest; | |
5376 | src = (wxLogTextCtrl *) ptr; | |
5377 | dest = (wxLog *) src; | |
5378 | return (void *) dest; | |
5379 | } | |
5380 | ||
5381 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
5382 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5383 | PyObject * _resultobj; |
f6bcfd97 BP |
5384 | wxLogTextCtrl * _result; |
5385 | wxTextCtrl * _arg0; | |
f0261a72 | 5386 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5387 | char *_kwnames[] = { "pTextCtrl", NULL }; |
5388 | char _ptemp[128]; | |
f0261a72 RD |
5389 | |
5390 | self = self; | |
f6bcfd97 | 5391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) |
f0261a72 RD |
5392 | return NULL; |
5393 | if (_argo0) { | |
5394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
5396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
f0261a72 RD |
5397 | return NULL; |
5398 | } | |
5399 | } | |
5400 | { | |
4268f798 | 5401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5402 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); |
f0261a72 | 5403 | |
4268f798 RD |
5404 | wxPyEndAllowThreads(__tstate); |
5405 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5406 | } if (_result) { |
5407 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
5408 | _resultobj = Py_BuildValue("s",_ptemp); | |
5409 | } else { | |
5410 | Py_INCREF(Py_None); | |
5411 | _resultobj = Py_None; | |
5412 | } | |
f0261a72 RD |
5413 | return _resultobj; |
5414 | } | |
5415 | ||
f6bcfd97 BP |
5416 | static void *SwigwxLogGuiTowxLog(void *ptr) { |
5417 | wxLogGui *src; | |
5418 | wxLog *dest; | |
5419 | src = (wxLogGui *) ptr; | |
5420 | dest = (wxLog *) src; | |
5421 | return (void *) dest; | |
5422 | } | |
5423 | ||
5424 | #define new_wxLogGui() (new wxLogGui()) | |
5425 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5426 | PyObject * _resultobj; |
f6bcfd97 | 5427 | wxLogGui * _result; |
b1462dfa RD |
5428 | char *_kwnames[] = { NULL }; |
5429 | char _ptemp[128]; | |
5430 | ||
5431 | self = self; | |
f6bcfd97 | 5432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) |
b1462dfa RD |
5433 | return NULL; |
5434 | { | |
4268f798 | 5435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5436 | _result = (wxLogGui *)new_wxLogGui(); |
b1462dfa | 5437 | |
4268f798 RD |
5438 | wxPyEndAllowThreads(__tstate); |
5439 | if (PyErr_Occurred()) return NULL; | |
b1462dfa | 5440 | } if (_result) { |
f6bcfd97 | 5441 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); |
b1462dfa RD |
5442 | _resultobj = Py_BuildValue("s",_ptemp); |
5443 | } else { | |
5444 | Py_INCREF(Py_None); | |
5445 | _resultobj = Py_None; | |
5446 | } | |
5447 | return _resultobj; | |
5448 | } | |
5449 | ||
f6bcfd97 BP |
5450 | static void *SwigwxLogWindowTowxLog(void *ptr) { |
5451 | wxLogWindow *src; | |
5452 | wxLog *dest; | |
5453 | src = (wxLogWindow *) ptr; | |
5454 | dest = (wxLog *) src; | |
5455 | return (void *) dest; | |
5456 | } | |
5457 | ||
5458 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5459 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5460 | PyObject * _resultobj; |
f6bcfd97 BP |
5461 | wxLogWindow * _result; |
5462 | wxFrame * _arg0; | |
c8bc7bb8 | 5463 | wxString * _arg1; |
f6bcfd97 BP |
5464 | bool _arg2 = (bool ) TRUE; |
5465 | bool _arg3 = (bool ) TRUE; | |
b1462dfa | 5466 | PyObject * _argo0 = 0; |
c8bc7bb8 | 5467 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
5468 | int tempbool2 = (int) TRUE; |
5469 | int tempbool3 = (int) TRUE; | |
5470 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
5471 | char _ptemp[128]; | |
b1462dfa RD |
5472 | |
5473 | self = self; | |
c8bc7bb8 | 5474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:new_wxLogWindow",_kwnames,&_argo0,&_obj1,&tempbool2,&tempbool3)) |
b1462dfa RD |
5475 | return NULL; |
5476 | if (_argo0) { | |
5477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { |
5479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
b1462dfa RD |
5480 | return NULL; |
5481 | } | |
5482 | } | |
c8bc7bb8 RD |
5483 | { |
5484 | _arg1 = wxString_in_helper(_obj1); | |
5485 | if (_arg1 == NULL) | |
5486 | return NULL; | |
5487 | } | |
f6bcfd97 BP |
5488 | _arg2 = (bool ) tempbool2; |
5489 | _arg3 = (bool ) tempbool3; | |
b1462dfa | 5490 | { |
4268f798 | 5491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5492 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,*_arg1,_arg2,_arg3); |
b1462dfa | 5493 | |
4268f798 RD |
5494 | wxPyEndAllowThreads(__tstate); |
5495 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5496 | } if (_result) { |
5497 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
5498 | _resultobj = Py_BuildValue("s",_ptemp); | |
5499 | } else { | |
5500 | Py_INCREF(Py_None); | |
5501 | _resultobj = Py_None; | |
5502 | } | |
c8bc7bb8 RD |
5503 | { |
5504 | if (_obj1) | |
5505 | delete _arg1; | |
5506 | } | |
b1462dfa RD |
5507 | return _resultobj; |
5508 | } | |
5509 | ||
f6bcfd97 BP |
5510 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) |
5511 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5512 | PyObject * _resultobj; |
f6bcfd97 BP |
5513 | wxLogWindow * _arg0; |
5514 | bool _arg1 = (bool ) TRUE; | |
b1462dfa | 5515 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5516 | int tempbool1 = (int) TRUE; |
5517 | char *_kwnames[] = { "self","bShow", NULL }; | |
b1462dfa RD |
5518 | |
5519 | self = self; | |
f6bcfd97 | 5520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) |
b1462dfa RD |
5521 | return NULL; |
5522 | if (_argo0) { | |
5523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5526 | return NULL; |
5527 | } | |
5528 | } | |
f6bcfd97 | 5529 | _arg1 = (bool ) tempbool1; |
b1462dfa | 5530 | { |
4268f798 | 5531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5532 | wxLogWindow_Show(_arg0,_arg1); |
b1462dfa | 5533 | |
4268f798 RD |
5534 | wxPyEndAllowThreads(__tstate); |
5535 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
5536 | } Py_INCREF(Py_None); |
5537 | _resultobj = Py_None; | |
5538 | return _resultobj; | |
5539 | } | |
5540 | ||
f6bcfd97 BP |
5541 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) |
5542 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5543 | PyObject * _resultobj; |
f6bcfd97 BP |
5544 | wxFrame * _result; |
5545 | wxLogWindow * _arg0; | |
b1462dfa | 5546 | PyObject * _argo0 = 0; |
f6bcfd97 | 5547 | char *_kwnames[] = { "self", NULL }; |
b1462dfa RD |
5548 | |
5549 | self = self; | |
f6bcfd97 | 5550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) |
b1462dfa RD |
5551 | return NULL; |
5552 | if (_argo0) { | |
5553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5556 | return NULL; |
5557 | } | |
5558 | } | |
b1462dfa | 5559 | { |
4268f798 | 5560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5561 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); |
b1462dfa | 5562 | |
4268f798 RD |
5563 | wxPyEndAllowThreads(__tstate); |
5564 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 5565 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
5566 | return _resultobj; |
5567 | } | |
5568 | ||
f6bcfd97 BP |
5569 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) |
5570 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5571 | PyObject * _resultobj; |
f6bcfd97 BP |
5572 | wxLog * _result; |
5573 | wxLogWindow * _arg0; | |
b1462dfa | 5574 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5575 | char *_kwnames[] = { "self", NULL }; |
5576 | char _ptemp[128]; | |
b1462dfa RD |
5577 | |
5578 | self = self; | |
f6bcfd97 | 5579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) |
b1462dfa RD |
5580 | return NULL; |
5581 | if (_argo0) { | |
5582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5585 | return NULL; |
5586 | } | |
5587 | } | |
5588 | { | |
4268f798 | 5589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5590 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); |
b1462dfa | 5591 | |
4268f798 RD |
5592 | wxPyEndAllowThreads(__tstate); |
5593 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5594 | } if (_result) { |
5595 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5596 | _resultobj = Py_BuildValue("s",_ptemp); | |
5597 | } else { | |
5598 | Py_INCREF(Py_None); | |
5599 | _resultobj = Py_None; | |
5600 | } | |
b1462dfa RD |
5601 | return _resultobj; |
5602 | } | |
5603 | ||
f6bcfd97 BP |
5604 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) |
5605 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5606 | PyObject * _resultobj; |
f6bcfd97 BP |
5607 | bool _result; |
5608 | wxLogWindow * _arg0; | |
65dd82cb RD |
5609 | PyObject * _argo0 = 0; |
5610 | char *_kwnames[] = { "self", NULL }; | |
5611 | ||
5612 | self = self; | |
f6bcfd97 | 5613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) |
65dd82cb RD |
5614 | return NULL; |
5615 | if (_argo0) { | |
5616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5619 | return NULL; |
5620 | } | |
5621 | } | |
5622 | { | |
4268f798 | 5623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5624 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); |
65dd82cb | 5625 | |
4268f798 RD |
5626 | wxPyEndAllowThreads(__tstate); |
5627 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5628 | } _resultobj = Py_BuildValue("i",_result); |
65dd82cb RD |
5629 | return _resultobj; |
5630 | } | |
5631 | ||
f6bcfd97 BP |
5632 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) |
5633 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5634 | PyObject * _resultobj; |
f6bcfd97 BP |
5635 | wxLogWindow * _arg0; |
5636 | bool _arg1; | |
65dd82cb | 5637 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5638 | int tempbool1; |
5639 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
65dd82cb RD |
5640 | |
5641 | self = self; | |
f6bcfd97 | 5642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) |
65dd82cb RD |
5643 | return NULL; |
5644 | if (_argo0) { | |
5645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5648 | return NULL; |
5649 | } | |
5650 | } | |
f6bcfd97 | 5651 | _arg1 = (bool ) tempbool1; |
65dd82cb | 5652 | { |
4268f798 | 5653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5654 | wxLogWindow_PassMessages(_arg0,_arg1); |
65dd82cb | 5655 | |
4268f798 RD |
5656 | wxPyEndAllowThreads(__tstate); |
5657 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5658 | } Py_INCREF(Py_None); |
5659 | _resultobj = Py_None; | |
65dd82cb RD |
5660 | return _resultobj; |
5661 | } | |
5662 | ||
76bfdc78 RD |
5663 | static void *SwigwxLogChainTowxLog(void *ptr) { |
5664 | wxLogChain *src; | |
5665 | wxLog *dest; | |
5666 | src = (wxLogChain *) ptr; | |
5667 | dest = (wxLog *) src; | |
5668 | return (void *) dest; | |
5669 | } | |
5670 | ||
5671 | #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0)) | |
5672 | static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5673 | PyObject * _resultobj; | |
5674 | wxLogChain * _result; | |
5675 | wxLog * _arg0; | |
5676 | PyObject * _argo0 = 0; | |
5677 | char *_kwnames[] = { "logger", NULL }; | |
5678 | char _ptemp[128]; | |
5679 | ||
5680 | self = self; | |
5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0)) | |
5682 | return NULL; | |
5683 | if (_argo0) { | |
5684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p."); | |
5687 | return NULL; | |
5688 | } | |
5689 | } | |
5690 | { | |
4268f798 | 5691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5692 | _result = (wxLogChain *)new_wxLogChain(_arg0); |
76bfdc78 | 5693 | |
4268f798 RD |
5694 | wxPyEndAllowThreads(__tstate); |
5695 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5696 | } if (_result) { |
5697 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p"); | |
5698 | _resultobj = Py_BuildValue("s",_ptemp); | |
5699 | } else { | |
5700 | Py_INCREF(Py_None); | |
5701 | _resultobj = Py_None; | |
5702 | } | |
5703 | return _resultobj; | |
5704 | } | |
5705 | ||
5706 | #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0)) | |
5707 | static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5708 | PyObject * _resultobj; | |
5709 | wxLogChain * _arg0; | |
5710 | wxLog * _arg1; | |
5711 | PyObject * _argo0 = 0; | |
5712 | PyObject * _argo1 = 0; | |
5713 | char *_kwnames[] = { "self","logger", NULL }; | |
5714 | ||
5715 | self = self; | |
5716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1)) | |
5717 | return NULL; | |
5718 | if (_argo0) { | |
5719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p."); | |
5722 | return NULL; | |
5723 | } | |
5724 | } | |
5725 | if (_argo1) { | |
5726 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5727 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) { | |
5728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p."); | |
5729 | return NULL; | |
5730 | } | |
5731 | } | |
5732 | { | |
4268f798 | 5733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5734 | wxLogChain_SetLog(_arg0,_arg1); |
76bfdc78 | 5735 | |
4268f798 RD |
5736 | wxPyEndAllowThreads(__tstate); |
5737 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5738 | } Py_INCREF(Py_None); |
5739 | _resultobj = Py_None; | |
5740 | return _resultobj; | |
5741 | } | |
5742 | ||
5743 | #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5744 | static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5745 | PyObject * _resultobj; | |
5746 | wxLogChain * _arg0; | |
5747 | bool _arg1; | |
5748 | PyObject * _argo0 = 0; | |
5749 | int tempbool1; | |
5750 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5751 | ||
5752 | self = self; | |
5753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5754 | return NULL; | |
5755 | if (_argo0) { | |
5756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p."); | |
5759 | return NULL; | |
5760 | } | |
5761 | } | |
5762 | _arg1 = (bool ) tempbool1; | |
5763 | { | |
4268f798 | 5764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5765 | wxLogChain_PassMessages(_arg0,_arg1); |
76bfdc78 | 5766 | |
4268f798 RD |
5767 | wxPyEndAllowThreads(__tstate); |
5768 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5769 | } Py_INCREF(Py_None); |
5770 | _resultobj = Py_None; | |
5771 | return _resultobj; | |
5772 | } | |
5773 | ||
5774 | #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5775 | static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5776 | PyObject * _resultobj; | |
5777 | bool _result; | |
5778 | wxLogChain * _arg0; | |
5779 | PyObject * _argo0 = 0; | |
5780 | char *_kwnames[] = { "self", NULL }; | |
5781 | ||
5782 | self = self; | |
5783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0)) | |
5784 | return NULL; | |
5785 | if (_argo0) { | |
5786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p."); | |
5789 | return NULL; | |
5790 | } | |
5791 | } | |
5792 | { | |
4268f798 | 5793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5794 | _result = (bool )wxLogChain_IsPassingMessages(_arg0); |
76bfdc78 | 5795 | |
4268f798 RD |
5796 | wxPyEndAllowThreads(__tstate); |
5797 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5798 | } _resultobj = Py_BuildValue("i",_result); |
5799 | return _resultobj; | |
5800 | } | |
5801 | ||
5802 | #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5803 | static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5804 | PyObject * _resultobj; | |
5805 | wxLog * _result; | |
5806 | wxLogChain * _arg0; | |
5807 | PyObject * _argo0 = 0; | |
5808 | char *_kwnames[] = { "self", NULL }; | |
5809 | char _ptemp[128]; | |
5810 | ||
5811 | self = self; | |
5812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0)) | |
5813 | return NULL; | |
5814 | if (_argo0) { | |
5815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p."); | |
5818 | return NULL; | |
5819 | } | |
5820 | } | |
5821 | { | |
4268f798 | 5822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5823 | _result = (wxLog *)wxLogChain_GetOldLog(_arg0); |
76bfdc78 | 5824 | |
4268f798 RD |
5825 | wxPyEndAllowThreads(__tstate); |
5826 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5827 | } if (_result) { |
5828 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5829 | _resultobj = Py_BuildValue("s",_ptemp); | |
5830 | } else { | |
5831 | Py_INCREF(Py_None); | |
5832 | _resultobj = Py_None; | |
5833 | } | |
5834 | return _resultobj; | |
5835 | } | |
5836 | ||
19e30148 RD |
5837 | #define new_wxLogNull() (new wxLogNull()) |
5838 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5839 | PyObject * _resultobj; | |
5840 | wxLogNull * _result; | |
5841 | char *_kwnames[] = { NULL }; | |
5842 | char _ptemp[128]; | |
5843 | ||
5844 | self = self; | |
5845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) | |
5846 | return NULL; | |
5847 | { | |
5848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5849 | _result = (wxLogNull *)new_wxLogNull(); | |
5850 | ||
5851 | wxPyEndAllowThreads(__tstate); | |
5852 | if (PyErr_Occurred()) return NULL; | |
5853 | } if (_result) { | |
5854 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); | |
5855 | _resultobj = Py_BuildValue("s",_ptemp); | |
5856 | } else { | |
5857 | Py_INCREF(Py_None); | |
5858 | _resultobj = Py_None; | |
5859 | } | |
5860 | return _resultobj; | |
5861 | } | |
5862 | ||
5863 | #define delete_wxLogNull(_swigobj) (delete _swigobj) | |
5864 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5865 | PyObject * _resultobj; | |
5866 | wxLogNull * _arg0; | |
5867 | PyObject * _argo0 = 0; | |
5868 | char *_kwnames[] = { "self", NULL }; | |
5869 | ||
5870 | self = self; | |
5871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) | |
5872 | return NULL; | |
5873 | if (_argo0) { | |
5874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { | |
5876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
5877 | return NULL; | |
5878 | } | |
5879 | } | |
5880 | { | |
5881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5882 | delete_wxLogNull(_arg0); | |
5883 | ||
5884 | wxPyEndAllowThreads(__tstate); | |
5885 | if (PyErr_Occurred()) return NULL; | |
5886 | } Py_INCREF(Py_None); | |
5887 | _resultobj = Py_None; | |
5888 | return _resultobj; | |
5889 | } | |
5890 | ||
76bfdc78 RD |
5891 | static void *SwigwxPyLogTowxLog(void *ptr) { |
5892 | wxPyLog *src; | |
5893 | wxLog *dest; | |
5894 | src = (wxPyLog *) ptr; | |
5895 | dest = (wxLog *) src; | |
5896 | return (void *) dest; | |
5897 | } | |
5898 | ||
5899 | #define new_wxPyLog() (new wxPyLog()) | |
5900 | static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5901 | PyObject * _resultobj; | |
5902 | wxPyLog * _result; | |
5903 | char *_kwnames[] = { NULL }; | |
5904 | char _ptemp[128]; | |
5905 | ||
5906 | self = self; | |
5907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames)) | |
5908 | return NULL; | |
5909 | { | |
4268f798 | 5910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5911 | _result = (wxPyLog *)new_wxPyLog(); |
76bfdc78 | 5912 | |
4268f798 RD |
5913 | wxPyEndAllowThreads(__tstate); |
5914 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5915 | } if (_result) { |
5916 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p"); | |
5917 | _resultobj = Py_BuildValue("s",_ptemp); | |
5918 | } else { | |
5919 | Py_INCREF(Py_None); | |
5920 | _resultobj = Py_None; | |
5921 | } | |
5922 | return _resultobj; | |
5923 | } | |
5924 | ||
0122b7e3 RD |
5925 | #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
5926 | static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
76bfdc78 RD |
5927 | PyObject * _resultobj; |
5928 | wxPyLog * _arg0; | |
5929 | PyObject * _arg1; | |
5930 | PyObject * _arg2; | |
5931 | PyObject * _argo0 = 0; | |
5932 | PyObject * _obj1 = 0; | |
5933 | PyObject * _obj2 = 0; | |
5934 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5935 | ||
5936 | self = self; | |
0122b7e3 | 5937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
76bfdc78 RD |
5938 | return NULL; |
5939 | if (_argo0) { | |
5940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
0122b7e3 | 5942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p."); |
76bfdc78 RD |
5943 | return NULL; |
5944 | } | |
5945 | } | |
5946 | { | |
5947 | _arg1 = _obj1; | |
5948 | } | |
5949 | { | |
5950 | _arg2 = _obj2; | |
5951 | } | |
5952 | { | |
4268f798 | 5953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5954 | wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2); |
76bfdc78 | 5955 | |
4268f798 RD |
5956 | wxPyEndAllowThreads(__tstate); |
5957 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5958 | } Py_INCREF(Py_None); |
5959 | _resultobj = Py_None; | |
5960 | return _resultobj; | |
5961 | } | |
5962 | ||
5963 | static void wxPyLog_Destroy(wxPyLog *self) { delete self; } | |
5964 | static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5965 | PyObject * _resultobj; | |
5966 | wxPyLog * _arg0; | |
5967 | PyObject * _argo0 = 0; | |
5968 | char *_kwnames[] = { "self", NULL }; | |
5969 | ||
5970 | self = self; | |
5971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0)) | |
5972 | return NULL; | |
5973 | if (_argo0) { | |
5974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p."); | |
5977 | return NULL; | |
5978 | } | |
5979 | } | |
5980 | { | |
4268f798 | 5981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5982 | wxPyLog_Destroy(_arg0); |
76bfdc78 | 5983 | |
4268f798 RD |
5984 | wxPyEndAllowThreads(__tstate); |
5985 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5986 | } Py_INCREF(Py_None); |
5987 | _resultobj = Py_None; | |
5988 | return _resultobj; | |
5989 | } | |
5990 | ||
c368d904 RD |
5991 | static void *SwigwxProcessEventTowxEvent(void *ptr) { |
5992 | wxProcessEvent *src; | |
5993 | wxEvent *dest; | |
5994 | src = (wxProcessEvent *) ptr; | |
5995 | dest = (wxEvent *) src; | |
5996 | return (void *) dest; | |
5997 | } | |
5998 | ||
9416aa89 RD |
5999 | static void *SwigwxProcessEventTowxObject(void *ptr) { |
6000 | wxProcessEvent *src; | |
6001 | wxObject *dest; | |
6002 | src = (wxProcessEvent *) ptr; | |
6003 | dest = (wxObject *) src; | |
6004 | return (void *) dest; | |
6005 | } | |
6006 | ||
c368d904 RD |
6007 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) |
6008 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6009 | PyObject * _resultobj; | |
6010 | wxProcessEvent * _result; | |
6011 | int _arg0 = (int ) 0; | |
6012 | int _arg1 = (int ) 0; | |
6013 | int _arg2 = (int ) 0; | |
6014 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
6015 | char _ptemp[128]; | |
6016 | ||
6017 | self = self; | |
6018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
6019 | return NULL; | |
6020 | { | |
4268f798 | 6021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6022 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); |
c368d904 | 6023 | |
4268f798 RD |
6024 | wxPyEndAllowThreads(__tstate); |
6025 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6026 | } if (_result) { |
6027 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
6028 | _resultobj = Py_BuildValue("s",_ptemp); | |
6029 | } else { | |
6030 | Py_INCREF(Py_None); | |
6031 | _resultobj = Py_None; | |
6032 | } | |
6033 | return _resultobj; | |
6034 | } | |
6035 | ||
6036 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
6037 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6038 | PyObject * _resultobj; | |
6039 | int _result; | |
6040 | wxProcessEvent * _arg0; | |
6041 | PyObject * _argo0 = 0; | |
6042 | char *_kwnames[] = { "self", NULL }; | |
6043 | ||
6044 | self = self; | |
6045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
6046 | return NULL; | |
6047 | if (_argo0) { | |
6048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
6051 | return NULL; | |
6052 | } | |
6053 | } | |
6054 | { | |
4268f798 | 6055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6056 | _result = (int )wxProcessEvent_GetPid(_arg0); |
c368d904 | 6057 | |
4268f798 RD |
6058 | wxPyEndAllowThreads(__tstate); |
6059 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6060 | } _resultobj = Py_BuildValue("i",_result); |
6061 | return _resultobj; | |
6062 | } | |
6063 | ||
6064 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
6065 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6066 | PyObject * _resultobj; | |
6067 | int _result; | |
6068 | wxProcessEvent * _arg0; | |
6069 | PyObject * _argo0 = 0; | |
6070 | char *_kwnames[] = { "self", NULL }; | |
6071 | ||
6072 | self = self; | |
6073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
6074 | return NULL; | |
6075 | if (_argo0) { | |
6076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
6079 | return NULL; | |
6080 | } | |
6081 | } | |
6082 | { | |
4268f798 | 6083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6084 | _result = (int )wxProcessEvent_GetExitCode(_arg0); |
c368d904 | 6085 | |
4268f798 RD |
6086 | wxPyEndAllowThreads(__tstate); |
6087 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6088 | } _resultobj = Py_BuildValue("i",_result); |
6089 | return _resultobj; | |
6090 | } | |
6091 | ||
6092 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
6093 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6094 | PyObject * _resultobj; | |
6095 | int _result; | |
6096 | wxProcessEvent * _arg0; | |
6097 | int _arg1; | |
6098 | PyObject * _argo0 = 0; | |
6099 | char *_kwnames[] = { "self","m_pid", NULL }; | |
6100 | ||
6101 | self = self; | |
6102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
6103 | return NULL; | |
6104 | if (_argo0) { | |
6105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
6108 | return NULL; | |
6109 | } | |
6110 | } | |
6111 | { | |
4268f798 | 6112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6113 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); |
c368d904 | 6114 | |
4268f798 RD |
6115 | wxPyEndAllowThreads(__tstate); |
6116 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6117 | } _resultobj = Py_BuildValue("i",_result); |
6118 | return _resultobj; | |
6119 | } | |
6120 | ||
6121 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
6122 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6123 | PyObject * _resultobj; | |
6124 | int _result; | |
6125 | wxProcessEvent * _arg0; | |
6126 | PyObject * _argo0 = 0; | |
6127 | char *_kwnames[] = { "self", NULL }; | |
6128 | ||
6129 | self = self; | |
6130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
6131 | return NULL; | |
6132 | if (_argo0) { | |
6133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
6136 | return NULL; | |
6137 | } | |
6138 | } | |
6139 | { | |
4268f798 | 6140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6141 | _result = (int )wxProcessEvent_m_pid_get(_arg0); |
c368d904 | 6142 | |
4268f798 RD |
6143 | wxPyEndAllowThreads(__tstate); |
6144 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6145 | } _resultobj = Py_BuildValue("i",_result); |
6146 | return _resultobj; | |
6147 | } | |
6148 | ||
6149 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
6150 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6151 | PyObject * _resultobj; | |
6152 | int _result; | |
6153 | wxProcessEvent * _arg0; | |
6154 | int _arg1; | |
6155 | PyObject * _argo0 = 0; | |
6156 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
6157 | ||
6158 | self = self; | |
6159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
6160 | return NULL; | |
6161 | if (_argo0) { | |
6162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
6165 | return NULL; | |
6166 | } | |
6167 | } | |
6168 | { | |
4268f798 | 6169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6170 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); |
c368d904 | 6171 | |
4268f798 RD |
6172 | wxPyEndAllowThreads(__tstate); |
6173 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6174 | } _resultobj = Py_BuildValue("i",_result); |
6175 | return _resultobj; | |
6176 | } | |
6177 | ||
6178 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
6179 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6180 | PyObject * _resultobj; | |
6181 | int _result; | |
6182 | wxProcessEvent * _arg0; | |
6183 | PyObject * _argo0 = 0; | |
6184 | char *_kwnames[] = { "self", NULL }; | |
6185 | ||
6186 | self = self; | |
6187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
6188 | return NULL; | |
6189 | if (_argo0) { | |
6190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
6193 | return NULL; | |
6194 | } | |
6195 | } | |
6196 | { | |
4268f798 | 6197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6198 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); |
c368d904 | 6199 | |
4268f798 RD |
6200 | wxPyEndAllowThreads(__tstate); |
6201 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6202 | } _resultobj = Py_BuildValue("i",_result); |
6203 | return _resultobj; | |
6204 | } | |
6205 | ||
6206 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
6207 | wxPyProcess *src; | |
6208 | wxEvtHandler *dest; | |
6209 | src = (wxPyProcess *) ptr; | |
6210 | dest = (wxEvtHandler *) src; | |
6211 | return (void *) dest; | |
6212 | } | |
6213 | ||
9416aa89 RD |
6214 | static void *SwigwxPyProcessTowxObject(void *ptr) { |
6215 | wxPyProcess *src; | |
6216 | wxObject *dest; | |
6217 | src = (wxPyProcess *) ptr; | |
6218 | dest = (wxObject *) src; | |
6219 | return (void *) dest; | |
6220 | } | |
6221 | ||
814f509c RD |
6222 | static PyObject *_wrap_wxProcess_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { |
6223 | PyObject * _resultobj; | |
6224 | wxKillError _result; | |
6225 | int _arg0; | |
1883480f | 6226 | wxSignal _arg1 = (wxSignal ) (wxSIGTERM); |
814f509c RD |
6227 | char *_kwnames[] = { "pid","sig", NULL }; |
6228 | ||
6229 | self = self; | |
1883480f | 6230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|i:wxProcess_Kill",_kwnames,&_arg0,&_arg1)) |
814f509c | 6231 | return NULL; |
814f509c RD |
6232 | { |
6233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1883480f | 6234 | _result = (wxKillError )wxPyProcess::Kill(_arg0,_arg1); |
814f509c RD |
6235 | |
6236 | wxPyEndAllowThreads(__tstate); | |
6237 | if (PyErr_Occurred()) return NULL; | |
6238 | } _resultobj = Py_BuildValue("i",_result); | |
6239 | return _resultobj; | |
6240 | } | |
6241 | ||
6242 | static PyObject *_wrap_wxProcess_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6243 | PyObject * _resultobj; | |
6244 | bool _result; | |
6245 | int _arg0; | |
6246 | char *_kwnames[] = { "pid", NULL }; | |
6247 | ||
6248 | self = self; | |
6249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxProcess_Exists",_kwnames,&_arg0)) | |
6250 | return NULL; | |
6251 | { | |
6252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6253 | _result = (bool )wxPyProcess::Exists(_arg0); | |
6254 | ||
6255 | wxPyEndAllowThreads(__tstate); | |
6256 | if (PyErr_Occurred()) return NULL; | |
6257 | } _resultobj = Py_BuildValue("i",_result); | |
6258 | return _resultobj; | |
6259 | } | |
6260 | ||
6261 | static PyObject *_wrap_wxProcess_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6262 | PyObject * _resultobj; | |
6263 | wxPyProcess * _result; | |
6264 | wxString * _arg0; | |
e626d7c7 | 6265 | int _arg1 = (int ) wxEXEC_ASYNC; |
814f509c | 6266 | PyObject * _obj0 = 0; |
e626d7c7 | 6267 | char *_kwnames[] = { "cmd","flags", NULL }; |
814f509c RD |
6268 | char _ptemp[128]; |
6269 | ||
6270 | self = self; | |
e626d7c7 | 6271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxProcess_Open",_kwnames,&_obj0,&_arg1)) |
814f509c RD |
6272 | return NULL; |
6273 | { | |
6274 | _arg0 = wxString_in_helper(_obj0); | |
6275 | if (_arg0 == NULL) | |
6276 | return NULL; | |
6277 | } | |
6278 | { | |
6279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e626d7c7 | 6280 | _result = (wxPyProcess *)wxPyProcess::Open(*_arg0,_arg1); |
814f509c RD |
6281 | |
6282 | wxPyEndAllowThreads(__tstate); | |
6283 | if (PyErr_Occurred()) return NULL; | |
6284 | } if (_result) { | |
6285 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
6286 | _resultobj = Py_BuildValue("s",_ptemp); | |
6287 | } else { | |
6288 | Py_INCREF(Py_None); | |
6289 | _resultobj = Py_None; | |
6290 | } | |
6291 | { | |
6292 | if (_obj0) | |
6293 | delete _arg0; | |
6294 | } | |
6295 | return _resultobj; | |
6296 | } | |
6297 | ||
c368d904 RD |
6298 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) |
6299 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6300 | PyObject * _resultobj; | |
6301 | wxPyProcess * _result; | |
6302 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
6303 | int _arg1 = (int ) -1; | |
6304 | PyObject * _argo0 = 0; | |
6305 | char *_kwnames[] = { "parent","id", NULL }; | |
6306 | char _ptemp[128]; | |
6307 | ||
6308 | self = self; | |
6309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
6310 | return NULL; | |
6311 | if (_argo0) { | |
6312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
6314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
6315 | return NULL; | |
6316 | } | |
6317 | } | |
6318 | { | |
4268f798 | 6319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6320 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); |
c368d904 | 6321 | |
4268f798 RD |
6322 | wxPyEndAllowThreads(__tstate); |
6323 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6324 | } if (_result) { |
6325 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
6326 | _resultobj = Py_BuildValue("s",_ptemp); | |
6327 | } else { | |
6328 | Py_INCREF(Py_None); | |
6329 | _resultobj = Py_None; | |
6330 | } | |
6331 | return _resultobj; | |
6332 | } | |
6333 | ||
6334 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
6335 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6336 | PyObject * _resultobj; | |
6337 | wxPyProcess * _arg0; | |
6338 | PyObject * _argo0 = 0; | |
6339 | char *_kwnames[] = { "self", NULL }; | |
6340 | ||
6341 | self = self; | |
6342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
6343 | return NULL; | |
6344 | if (_argo0) { | |
6345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
6348 | return NULL; | |
6349 | } | |
6350 | } | |
6351 | { | |
4268f798 | 6352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6353 | wxPyProcess_Destroy(_arg0); |
c368d904 | 6354 | |
4268f798 RD |
6355 | wxPyEndAllowThreads(__tstate); |
6356 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6357 | } Py_INCREF(Py_None); |
6358 | _resultobj = Py_None; | |
6359 | return _resultobj; | |
6360 | } | |
6361 | ||
0122b7e3 RD |
6362 | #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6363 | static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c368d904 RD |
6364 | PyObject * _resultobj; |
6365 | wxPyProcess * _arg0; | |
6366 | PyObject * _arg1; | |
6367 | PyObject * _arg2; | |
6368 | PyObject * _argo0 = 0; | |
6369 | PyObject * _obj1 = 0; | |
6370 | PyObject * _obj2 = 0; | |
6371 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6372 | ||
6373 | self = self; | |
0122b7e3 | 6374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
c368d904 RD |
6375 | return NULL; |
6376 | if (_argo0) { | |
6377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
0122b7e3 | 6379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p."); |
c368d904 RD |
6380 | return NULL; |
6381 | } | |
6382 | } | |
6383 | { | |
6384 | _arg1 = _obj1; | |
6385 | } | |
6386 | { | |
6387 | _arg2 = _obj2; | |
6388 | } | |
6389 | { | |
4268f798 | 6390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6391 | wxProcess__setCallbackInfo(_arg0,_arg1,_arg2); |
c368d904 | 6392 | |
4268f798 RD |
6393 | wxPyEndAllowThreads(__tstate); |
6394 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6395 | } Py_INCREF(Py_None); |
6396 | _resultobj = Py_None; | |
6397 | return _resultobj; | |
6398 | } | |
6399 | ||
6400 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
6401 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6402 | PyObject * _resultobj; | |
6403 | wxPyProcess * _arg0; | |
6404 | int _arg1; | |
6405 | int _arg2; | |
6406 | PyObject * _argo0 = 0; | |
6407 | char *_kwnames[] = { "self","pid","status", NULL }; | |
6408 | ||
6409 | self = self; | |
6410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6411 | return NULL; | |
6412 | if (_argo0) { | |
6413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
6416 | return NULL; | |
6417 | } | |
6418 | } | |
6419 | { | |
4268f798 | 6420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6421 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); |
c368d904 | 6422 | |
4268f798 RD |
6423 | wxPyEndAllowThreads(__tstate); |
6424 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6425 | } Py_INCREF(Py_None); |
6426 | _resultobj = Py_None; | |
6427 | return _resultobj; | |
6428 | } | |
6429 | ||
6430 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
6431 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6432 | PyObject * _resultobj; | |
6433 | wxPyProcess * _arg0; | |
6434 | PyObject * _argo0 = 0; | |
6435 | char *_kwnames[] = { "self", NULL }; | |
6436 | ||
6437 | self = self; | |
6438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
6439 | return NULL; | |
6440 | if (_argo0) { | |
6441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
6444 | return NULL; | |
6445 | } | |
6446 | } | |
6447 | { | |
4268f798 | 6448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6449 | wxProcess_Redirect(_arg0); |
c368d904 | 6450 | |
4268f798 RD |
6451 | wxPyEndAllowThreads(__tstate); |
6452 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6453 | } Py_INCREF(Py_None); |
6454 | _resultobj = Py_None; | |
6455 | return _resultobj; | |
6456 | } | |
6457 | ||
6458 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
6459 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6460 | PyObject * _resultobj; | |
6461 | bool _result; | |
6462 | wxPyProcess * _arg0; | |
6463 | PyObject * _argo0 = 0; | |
6464 | char *_kwnames[] = { "self", NULL }; | |
6465 | ||
6466 | self = self; | |
6467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
6468 | return NULL; | |
6469 | if (_argo0) { | |
6470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
6473 | return NULL; | |
6474 | } | |
6475 | } | |
6476 | { | |
4268f798 | 6477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6478 | _result = (bool )wxProcess_IsRedirected(_arg0); |
c368d904 | 6479 | |
4268f798 RD |
6480 | wxPyEndAllowThreads(__tstate); |
6481 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6482 | } _resultobj = Py_BuildValue("i",_result); |
6483 | return _resultobj; | |
6484 | } | |
6485 | ||
6486 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
6487 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6488 | PyObject * _resultobj; | |
6489 | wxPyProcess * _arg0; | |
6490 | PyObject * _argo0 = 0; | |
6491 | char *_kwnames[] = { "self", NULL }; | |
6492 | ||
6493 | self = self; | |
6494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
6495 | return NULL; | |
6496 | if (_argo0) { | |
6497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
6500 | return NULL; | |
6501 | } | |
6502 | } | |
6503 | { | |
4268f798 | 6504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6505 | wxProcess_Detach(_arg0); |
c368d904 | 6506 | |
4268f798 RD |
6507 | wxPyEndAllowThreads(__tstate); |
6508 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6509 | } Py_INCREF(Py_None); |
6510 | _resultobj = Py_None; | |
6511 | return _resultobj; | |
6512 | } | |
6513 | ||
6514 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
6515 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6516 | PyObject * _resultobj; | |
6517 | wxInputStream * _result; | |
6518 | wxPyProcess * _arg0; | |
6519 | PyObject * _argo0 = 0; | |
6520 | char *_kwnames[] = { "self", NULL }; | |
6521 | ||
6522 | self = self; | |
6523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
6524 | return NULL; | |
6525 | if (_argo0) { | |
6526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
6529 | return NULL; | |
6530 | } | |
6531 | } | |
6532 | { | |
4268f798 | 6533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6534 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); |
c368d904 | 6535 | |
4268f798 RD |
6536 | wxPyEndAllowThreads(__tstate); |
6537 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6538 | }{ |
6539 | wxPyInputStream * _ptr = NULL; | |
6540 | ||
6541 | if (_result) { | |
6542 | _ptr = new wxPyInputStream(_result); | |
6543 | } | |
9416aa89 | 6544 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6545 | } |
6546 | return _resultobj; | |
6547 | } | |
6548 | ||
6549 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
6550 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6551 | PyObject * _resultobj; | |
6552 | wxInputStream * _result; | |
6553 | wxPyProcess * _arg0; | |
6554 | PyObject * _argo0 = 0; | |
6555 | char *_kwnames[] = { "self", NULL }; | |
6556 | ||
6557 | self = self; | |
6558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
6559 | return NULL; | |
6560 | if (_argo0) { | |
6561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
6564 | return NULL; | |
6565 | } | |
6566 | } | |
6567 | { | |
4268f798 | 6568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6569 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); |
c368d904 | 6570 | |
4268f798 RD |
6571 | wxPyEndAllowThreads(__tstate); |
6572 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6573 | }{ |
6574 | wxPyInputStream * _ptr = NULL; | |
6575 | ||
6576 | if (_result) { | |
6577 | _ptr = new wxPyInputStream(_result); | |
6578 | } | |
9416aa89 | 6579 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6580 | } |
6581 | return _resultobj; | |
6582 | } | |
6583 | ||
6584 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
6585 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6586 | PyObject * _resultobj; | |
6587 | wxOutputStream * _result; | |
6588 | wxPyProcess * _arg0; | |
6589 | PyObject * _argo0 = 0; | |
6590 | char *_kwnames[] = { "self", NULL }; | |
6591 | char _ptemp[128]; | |
6592 | ||
6593 | self = self; | |
6594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
6595 | return NULL; | |
6596 | if (_argo0) { | |
6597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
6600 | return NULL; | |
6601 | } | |
6602 | } | |
6603 | { | |
4268f798 | 6604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6605 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); |
c368d904 | 6606 | |
4268f798 RD |
6607 | wxPyEndAllowThreads(__tstate); |
6608 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6609 | } if (_result) { |
6610 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
6611 | _resultobj = Py_BuildValue("s",_ptemp); | |
6612 | } else { | |
6613 | Py_INCREF(Py_None); | |
6614 | _resultobj = Py_None; | |
6615 | } | |
6616 | return _resultobj; | |
6617 | } | |
6618 | ||
6619 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
6620 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6621 | PyObject * _resultobj; | |
6622 | wxPyProcess * _arg0; | |
6623 | PyObject * _argo0 = 0; | |
6624 | char *_kwnames[] = { "self", NULL }; | |
6625 | ||
6626 | self = self; | |
6627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
6628 | return NULL; | |
6629 | if (_argo0) { | |
6630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
6633 | return NULL; | |
6634 | } | |
6635 | } | |
6636 | { | |
4268f798 | 6637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6638 | wxProcess_CloseOutput(_arg0); |
c368d904 | 6639 | |
4268f798 RD |
6640 | wxPyEndAllowThreads(__tstate); |
6641 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6642 | } Py_INCREF(Py_None); |
6643 | _resultobj = Py_None; | |
6644 | return _resultobj; | |
6645 | } | |
6646 | ||
85260f24 RD |
6647 | #define wxProcess_IsInputOpened(_swigobj) (_swigobj->IsInputOpened()) |
6648 | static PyObject *_wrap_wxProcess_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6649 | PyObject * _resultobj; | |
6650 | bool _result; | |
6651 | wxPyProcess * _arg0; | |
6652 | PyObject * _argo0 = 0; | |
6653 | char *_kwnames[] = { "self", NULL }; | |
6654 | ||
6655 | self = self; | |
6656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsInputOpened",_kwnames,&_argo0)) | |
6657 | return NULL; | |
6658 | if (_argo0) { | |
6659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsInputOpened. Expected _wxPyProcess_p."); | |
6662 | return NULL; | |
6663 | } | |
6664 | } | |
6665 | { | |
6666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6667 | _result = (bool )wxProcess_IsInputOpened(_arg0); | |
6668 | ||
6669 | wxPyEndAllowThreads(__tstate); | |
6670 | if (PyErr_Occurred()) return NULL; | |
6671 | } _resultobj = Py_BuildValue("i",_result); | |
6672 | return _resultobj; | |
6673 | } | |
6674 | ||
6675 | #define wxProcess_IsInputAvailable(_swigobj) (_swigobj->IsInputAvailable()) | |
6676 | static PyObject *_wrap_wxProcess_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6677 | PyObject * _resultobj; | |
6678 | bool _result; | |
6679 | wxPyProcess * _arg0; | |
6680 | PyObject * _argo0 = 0; | |
6681 | char *_kwnames[] = { "self", NULL }; | |
6682 | ||
6683 | self = self; | |
6684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsInputAvailable",_kwnames,&_argo0)) | |
6685 | return NULL; | |
6686 | if (_argo0) { | |
6687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsInputAvailable. Expected _wxPyProcess_p."); | |
6690 | return NULL; | |
6691 | } | |
6692 | } | |
6693 | { | |
6694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6695 | _result = (bool )wxProcess_IsInputAvailable(_arg0); | |
6696 | ||
6697 | wxPyEndAllowThreads(__tstate); | |
6698 | if (PyErr_Occurred()) return NULL; | |
6699 | } _resultobj = Py_BuildValue("i",_result); | |
6700 | return _resultobj; | |
6701 | } | |
6702 | ||
6703 | #define wxProcess_IsErrorAvailable(_swigobj) (_swigobj->IsErrorAvailable()) | |
6704 | static PyObject *_wrap_wxProcess_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6705 | PyObject * _resultobj; | |
6706 | bool _result; | |
6707 | wxPyProcess * _arg0; | |
6708 | PyObject * _argo0 = 0; | |
6709 | char *_kwnames[] = { "self", NULL }; | |
6710 | ||
6711 | self = self; | |
6712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsErrorAvailable",_kwnames,&_argo0)) | |
6713 | return NULL; | |
6714 | if (_argo0) { | |
6715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsErrorAvailable. Expected _wxPyProcess_p."); | |
6718 | return NULL; | |
6719 | } | |
6720 | } | |
6721 | { | |
6722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6723 | _result = (bool )wxProcess_IsErrorAvailable(_arg0); | |
6724 | ||
6725 | wxPyEndAllowThreads(__tstate); | |
6726 | if (PyErr_Occurred()) return NULL; | |
6727 | } _resultobj = Py_BuildValue("i",_result); | |
6728 | return _resultobj; | |
6729 | } | |
6730 | ||
9416aa89 RD |
6731 | static void *SwigwxJoystickTowxObject(void *ptr) { |
6732 | wxJoystick *src; | |
6733 | wxObject *dest; | |
6734 | src = (wxJoystick *) ptr; | |
6735 | dest = (wxObject *) src; | |
6736 | return (void *) dest; | |
6737 | } | |
6738 | ||
185d7c3e RD |
6739 | #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0)) |
6740 | static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6741 | PyObject * _resultobj; | |
6742 | wxJoystick * _result; | |
3eb221f6 | 6743 | int _arg0 = (int ) (wxJOYSTICK1); |
185d7c3e RD |
6744 | char *_kwnames[] = { "joystick", NULL }; |
6745 | char _ptemp[128]; | |
6746 | ||
6747 | self = self; | |
6748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0)) | |
6749 | return NULL; | |
6750 | { | |
4268f798 | 6751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6752 | _result = (wxJoystick *)new_wxJoystick(_arg0); |
185d7c3e | 6753 | |
4268f798 RD |
6754 | wxPyEndAllowThreads(__tstate); |
6755 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6756 | } if (_result) { |
6757 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p"); | |
6758 | _resultobj = Py_BuildValue("s",_ptemp); | |
6759 | } else { | |
6760 | Py_INCREF(Py_None); | |
6761 | _resultobj = Py_None; | |
6762 | } | |
6763 | return _resultobj; | |
6764 | } | |
6765 | ||
ac346f50 RD |
6766 | #define delete_wxJoystick(_swigobj) (delete _swigobj) |
6767 | static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6768 | PyObject * _resultobj; | |
6769 | wxJoystick * _arg0; | |
6770 | PyObject * _argo0 = 0; | |
6771 | char *_kwnames[] = { "self", NULL }; | |
6772 | ||
6773 | self = self; | |
6774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0)) | |
6775 | return NULL; | |
6776 | if (_argo0) { | |
6777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p."); | |
6780 | return NULL; | |
6781 | } | |
6782 | } | |
6783 | { | |
4268f798 | 6784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6785 | delete_wxJoystick(_arg0); |
ac346f50 | 6786 | |
4268f798 RD |
6787 | wxPyEndAllowThreads(__tstate); |
6788 | if (PyErr_Occurred()) return NULL; | |
ac346f50 RD |
6789 | } Py_INCREF(Py_None); |
6790 | _resultobj = Py_None; | |
6791 | return _resultobj; | |
6792 | } | |
6793 | ||
185d7c3e RD |
6794 | #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition()) |
6795 | static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6796 | PyObject * _resultobj; | |
6797 | wxPoint * _result; | |
6798 | wxJoystick * _arg0; | |
6799 | PyObject * _argo0 = 0; | |
6800 | char *_kwnames[] = { "self", NULL }; | |
6801 | char _ptemp[128]; | |
6802 | ||
6803 | self = self; | |
6804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0)) | |
6805 | return NULL; | |
6806 | if (_argo0) { | |
6807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p."); | |
6810 | return NULL; | |
6811 | } | |
6812 | } | |
6813 | { | |
4268f798 | 6814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6815 | _result = new wxPoint (wxJoystick_GetPosition(_arg0)); |
185d7c3e | 6816 | |
4268f798 RD |
6817 | wxPyEndAllowThreads(__tstate); |
6818 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6819 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
6820 | _resultobj = Py_BuildValue("s",_ptemp); | |
6821 | return _resultobj; | |
6822 | } | |
6823 | ||
6824 | #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition()) | |
6825 | static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6826 | PyObject * _resultobj; | |
6827 | int _result; | |
6828 | wxJoystick * _arg0; | |
6829 | PyObject * _argo0 = 0; | |
6830 | char *_kwnames[] = { "self", NULL }; | |
6831 | ||
6832 | self = self; | |
6833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0)) | |
6834 | return NULL; | |
6835 | if (_argo0) { | |
6836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p."); | |
6839 | return NULL; | |
6840 | } | |
6841 | } | |
6842 | { | |
4268f798 | 6843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6844 | _result = (int )wxJoystick_GetZPosition(_arg0); |
185d7c3e | 6845 | |
4268f798 RD |
6846 | wxPyEndAllowThreads(__tstate); |
6847 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6848 | } _resultobj = Py_BuildValue("i",_result); |
6849 | return _resultobj; | |
6850 | } | |
6851 | ||
6852 | #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState()) | |
6853 | static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6854 | PyObject * _resultobj; | |
6855 | int _result; | |
6856 | wxJoystick * _arg0; | |
6857 | PyObject * _argo0 = 0; | |
6858 | char *_kwnames[] = { "self", NULL }; | |
6859 | ||
6860 | self = self; | |
6861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0)) | |
6862 | return NULL; | |
6863 | if (_argo0) { | |
6864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p."); | |
6867 | return NULL; | |
6868 | } | |
6869 | } | |
6870 | { | |
4268f798 | 6871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6872 | _result = (int )wxJoystick_GetButtonState(_arg0); |
185d7c3e | 6873 | |
4268f798 RD |
6874 | wxPyEndAllowThreads(__tstate); |
6875 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6876 | } _resultobj = Py_BuildValue("i",_result); |
6877 | return _resultobj; | |
6878 | } | |
6879 | ||
6880 | #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition()) | |
6881 | static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6882 | PyObject * _resultobj; | |
6883 | int _result; | |
6884 | wxJoystick * _arg0; | |
6885 | PyObject * _argo0 = 0; | |
6886 | char *_kwnames[] = { "self", NULL }; | |
6887 | ||
6888 | self = self; | |
6889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0)) | |
6890 | return NULL; | |
6891 | if (_argo0) { | |
6892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p."); | |
6895 | return NULL; | |
6896 | } | |
6897 | } | |
6898 | { | |
4268f798 | 6899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6900 | _result = (int )wxJoystick_GetPOVPosition(_arg0); |
185d7c3e | 6901 | |
4268f798 RD |
6902 | wxPyEndAllowThreads(__tstate); |
6903 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6904 | } _resultobj = Py_BuildValue("i",_result); |
6905 | return _resultobj; | |
6906 | } | |
6907 | ||
6908 | #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition()) | |
6909 | static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6910 | PyObject * _resultobj; | |
6911 | int _result; | |
6912 | wxJoystick * _arg0; | |
6913 | PyObject * _argo0 = 0; | |
6914 | char *_kwnames[] = { "self", NULL }; | |
6915 | ||
6916 | self = self; | |
6917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0)) | |
6918 | return NULL; | |
6919 | if (_argo0) { | |
6920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p."); | |
6923 | return NULL; | |
6924 | } | |
6925 | } | |
6926 | { | |
4268f798 | 6927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6928 | _result = (int )wxJoystick_GetPOVCTSPosition(_arg0); |
185d7c3e | 6929 | |
4268f798 RD |
6930 | wxPyEndAllowThreads(__tstate); |
6931 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6932 | } _resultobj = Py_BuildValue("i",_result); |
6933 | return _resultobj; | |
6934 | } | |
6935 | ||
6936 | #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition()) | |
6937 | static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6938 | PyObject * _resultobj; | |
6939 | int _result; | |
6940 | wxJoystick * _arg0; | |
6941 | PyObject * _argo0 = 0; | |
6942 | char *_kwnames[] = { "self", NULL }; | |
6943 | ||
6944 | self = self; | |
6945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0)) | |
6946 | return NULL; | |
6947 | if (_argo0) { | |
6948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p."); | |
6951 | return NULL; | |
6952 | } | |
6953 | } | |
6954 | { | |
4268f798 | 6955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6956 | _result = (int )wxJoystick_GetRudderPosition(_arg0); |
185d7c3e | 6957 | |
4268f798 RD |
6958 | wxPyEndAllowThreads(__tstate); |
6959 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6960 | } _resultobj = Py_BuildValue("i",_result); |
6961 | return _resultobj; | |
6962 | } | |
6963 | ||
6964 | #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition()) | |
6965 | static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6966 | PyObject * _resultobj; | |
6967 | int _result; | |
6968 | wxJoystick * _arg0; | |
6969 | PyObject * _argo0 = 0; | |
6970 | char *_kwnames[] = { "self", NULL }; | |
6971 | ||
6972 | self = self; | |
6973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0)) | |
6974 | return NULL; | |
6975 | if (_argo0) { | |
6976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p."); | |
6979 | return NULL; | |
6980 | } | |
6981 | } | |
6982 | { | |
4268f798 | 6983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6984 | _result = (int )wxJoystick_GetUPosition(_arg0); |
185d7c3e | 6985 | |
4268f798 RD |
6986 | wxPyEndAllowThreads(__tstate); |
6987 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6988 | } _resultobj = Py_BuildValue("i",_result); |
6989 | return _resultobj; | |
6990 | } | |
6991 | ||
6992 | #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition()) | |
6993 | static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6994 | PyObject * _resultobj; | |
6995 | int _result; | |
6996 | wxJoystick * _arg0; | |
6997 | PyObject * _argo0 = 0; | |
6998 | char *_kwnames[] = { "self", NULL }; | |
6999 | ||
7000 | self = self; | |
7001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0)) | |
7002 | return NULL; | |
7003 | if (_argo0) { | |
7004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p."); | |
7007 | return NULL; | |
7008 | } | |
7009 | } | |
7010 | { | |
4268f798 | 7011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7012 | _result = (int )wxJoystick_GetVPosition(_arg0); |
185d7c3e | 7013 | |
4268f798 RD |
7014 | wxPyEndAllowThreads(__tstate); |
7015 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7016 | } _resultobj = Py_BuildValue("i",_result); |
7017 | return _resultobj; | |
7018 | } | |
7019 | ||
7020 | #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold()) | |
7021 | static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7022 | PyObject * _resultobj; | |
7023 | int _result; | |
7024 | wxJoystick * _arg0; | |
7025 | PyObject * _argo0 = 0; | |
7026 | char *_kwnames[] = { "self", NULL }; | |
7027 | ||
7028 | self = self; | |
7029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0)) | |
7030 | return NULL; | |
7031 | if (_argo0) { | |
7032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p."); | |
7035 | return NULL; | |
7036 | } | |
7037 | } | |
7038 | { | |
4268f798 | 7039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7040 | _result = (int )wxJoystick_GetMovementThreshold(_arg0); |
185d7c3e | 7041 | |
4268f798 RD |
7042 | wxPyEndAllowThreads(__tstate); |
7043 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7044 | } _resultobj = Py_BuildValue("i",_result); |
7045 | return _resultobj; | |
7046 | } | |
7047 | ||
7048 | #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0)) | |
7049 | static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7050 | PyObject * _resultobj; | |
7051 | wxJoystick * _arg0; | |
7052 | int _arg1; | |
7053 | PyObject * _argo0 = 0; | |
7054 | char *_kwnames[] = { "self","threshold", NULL }; | |
7055 | ||
7056 | self = self; | |
7057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1)) | |
7058 | return NULL; | |
7059 | if (_argo0) { | |
7060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p."); | |
7063 | return NULL; | |
7064 | } | |
7065 | } | |
7066 | { | |
4268f798 | 7067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7068 | wxJoystick_SetMovementThreshold(_arg0,_arg1); |
185d7c3e | 7069 | |
4268f798 RD |
7070 | wxPyEndAllowThreads(__tstate); |
7071 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7072 | } Py_INCREF(Py_None); |
7073 | _resultobj = Py_None; | |
7074 | return _resultobj; | |
7075 | } | |
7076 | ||
7077 | #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk()) | |
7078 | static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7079 | PyObject * _resultobj; | |
7080 | bool _result; | |
7081 | wxJoystick * _arg0; | |
7082 | PyObject * _argo0 = 0; | |
7083 | char *_kwnames[] = { "self", NULL }; | |
7084 | ||
7085 | self = self; | |
7086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0)) | |
7087 | return NULL; | |
7088 | if (_argo0) { | |
7089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p."); | |
7092 | return NULL; | |
7093 | } | |
7094 | } | |
7095 | { | |
4268f798 | 7096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7097 | _result = (bool )wxJoystick_IsOk(_arg0); |
185d7c3e | 7098 | |
4268f798 RD |
7099 | wxPyEndAllowThreads(__tstate); |
7100 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7101 | } _resultobj = Py_BuildValue("i",_result); |
7102 | return _resultobj; | |
7103 | } | |
7104 | ||
7105 | #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks()) | |
7106 | static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7107 | PyObject * _resultobj; | |
7108 | int _result; | |
7109 | wxJoystick * _arg0; | |
7110 | PyObject * _argo0 = 0; | |
7111 | char *_kwnames[] = { "self", NULL }; | |
7112 | ||
7113 | self = self; | |
7114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0)) | |
7115 | return NULL; | |
7116 | if (_argo0) { | |
7117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p."); | |
7120 | return NULL; | |
7121 | } | |
7122 | } | |
7123 | { | |
4268f798 | 7124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7125 | _result = (int )wxJoystick_GetNumberJoysticks(_arg0); |
185d7c3e | 7126 | |
4268f798 RD |
7127 | wxPyEndAllowThreads(__tstate); |
7128 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7129 | } _resultobj = Py_BuildValue("i",_result); |
7130 | return _resultobj; | |
7131 | } | |
7132 | ||
7133 | #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId()) | |
7134 | static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7135 | PyObject * _resultobj; | |
7136 | int _result; | |
7137 | wxJoystick * _arg0; | |
7138 | PyObject * _argo0 = 0; | |
7139 | char *_kwnames[] = { "self", NULL }; | |
7140 | ||
7141 | self = self; | |
7142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0)) | |
7143 | return NULL; | |
7144 | if (_argo0) { | |
7145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p."); | |
7148 | return NULL; | |
7149 | } | |
7150 | } | |
7151 | { | |
4268f798 | 7152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7153 | _result = (int )wxJoystick_GetManufacturerId(_arg0); |
185d7c3e | 7154 | |
4268f798 RD |
7155 | wxPyEndAllowThreads(__tstate); |
7156 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7157 | } _resultobj = Py_BuildValue("i",_result); |
7158 | return _resultobj; | |
7159 | } | |
7160 | ||
7161 | #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId()) | |
7162 | static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7163 | PyObject * _resultobj; | |
7164 | int _result; | |
7165 | wxJoystick * _arg0; | |
7166 | PyObject * _argo0 = 0; | |
7167 | char *_kwnames[] = { "self", NULL }; | |
7168 | ||
7169 | self = self; | |
7170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0)) | |
7171 | return NULL; | |
7172 | if (_argo0) { | |
7173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p."); | |
7176 | return NULL; | |
7177 | } | |
7178 | } | |
7179 | { | |
4268f798 | 7180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7181 | _result = (int )wxJoystick_GetProductId(_arg0); |
185d7c3e | 7182 | |
4268f798 RD |
7183 | wxPyEndAllowThreads(__tstate); |
7184 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7185 | } _resultobj = Py_BuildValue("i",_result); |
7186 | return _resultobj; | |
7187 | } | |
7188 | ||
7189 | #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName()) | |
7190 | static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7191 | PyObject * _resultobj; | |
7192 | wxString * _result; | |
7193 | wxJoystick * _arg0; | |
7194 | PyObject * _argo0 = 0; | |
7195 | char *_kwnames[] = { "self", NULL }; | |
7196 | ||
7197 | self = self; | |
7198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0)) | |
7199 | return NULL; | |
7200 | if (_argo0) { | |
7201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p."); | |
7204 | return NULL; | |
7205 | } | |
7206 | } | |
7207 | { | |
4268f798 | 7208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7209 | _result = new wxString (wxJoystick_GetProductName(_arg0)); |
185d7c3e | 7210 | |
4268f798 RD |
7211 | wxPyEndAllowThreads(__tstate); |
7212 | if (PyErr_Occurred()) return NULL; | |
185d7c3e | 7213 | }{ |
c8bc7bb8 RD |
7214 | #if wxUSE_UNICODE |
7215 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7216 | #else | |
185d7c3e | 7217 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7218 | #endif |
185d7c3e RD |
7219 | } |
7220 | { | |
7221 | delete _result; | |
7222 | } | |
7223 | return _resultobj; | |
7224 | } | |
7225 | ||
7226 | #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin()) | |
7227 | static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7228 | PyObject * _resultobj; | |
7229 | int _result; | |
7230 | wxJoystick * _arg0; | |
7231 | PyObject * _argo0 = 0; | |
7232 | char *_kwnames[] = { "self", NULL }; | |
7233 | ||
7234 | self = self; | |
7235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0)) | |
7236 | return NULL; | |
7237 | if (_argo0) { | |
7238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p."); | |
7241 | return NULL; | |
7242 | } | |
7243 | } | |
7244 | { | |
4268f798 | 7245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7246 | _result = (int )wxJoystick_GetXMin(_arg0); |
185d7c3e | 7247 | |
4268f798 RD |
7248 | wxPyEndAllowThreads(__tstate); |
7249 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7250 | } _resultobj = Py_BuildValue("i",_result); |
7251 | return _resultobj; | |
7252 | } | |
7253 | ||
7254 | #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin()) | |
7255 | static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7256 | PyObject * _resultobj; | |
7257 | int _result; | |
7258 | wxJoystick * _arg0; | |
7259 | PyObject * _argo0 = 0; | |
7260 | char *_kwnames[] = { "self", NULL }; | |
7261 | ||
7262 | self = self; | |
7263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0)) | |
7264 | return NULL; | |
7265 | if (_argo0) { | |
7266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p."); | |
7269 | return NULL; | |
7270 | } | |
7271 | } | |
7272 | { | |
4268f798 | 7273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7274 | _result = (int )wxJoystick_GetYMin(_arg0); |
185d7c3e | 7275 | |
4268f798 RD |
7276 | wxPyEndAllowThreads(__tstate); |
7277 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7278 | } _resultobj = Py_BuildValue("i",_result); |
7279 | return _resultobj; | |
7280 | } | |
7281 | ||
7282 | #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin()) | |
7283 | static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7284 | PyObject * _resultobj; | |
7285 | int _result; | |
7286 | wxJoystick * _arg0; | |
7287 | PyObject * _argo0 = 0; | |
7288 | char *_kwnames[] = { "self", NULL }; | |
7289 | ||
7290 | self = self; | |
7291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0)) | |
7292 | return NULL; | |
7293 | if (_argo0) { | |
7294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p."); | |
7297 | return NULL; | |
7298 | } | |
7299 | } | |
7300 | { | |
4268f798 | 7301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7302 | _result = (int )wxJoystick_GetZMin(_arg0); |
185d7c3e | 7303 | |
4268f798 RD |
7304 | wxPyEndAllowThreads(__tstate); |
7305 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7306 | } _resultobj = Py_BuildValue("i",_result); |
7307 | return _resultobj; | |
7308 | } | |
7309 | ||
7310 | #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax()) | |
7311 | static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7312 | PyObject * _resultobj; | |
7313 | int _result; | |
7314 | wxJoystick * _arg0; | |
7315 | PyObject * _argo0 = 0; | |
7316 | char *_kwnames[] = { "self", NULL }; | |
7317 | ||
7318 | self = self; | |
7319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0)) | |
7320 | return NULL; | |
7321 | if (_argo0) { | |
7322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p."); | |
7325 | return NULL; | |
7326 | } | |
7327 | } | |
7328 | { | |
4268f798 | 7329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7330 | _result = (int )wxJoystick_GetXMax(_arg0); |
185d7c3e | 7331 | |
4268f798 RD |
7332 | wxPyEndAllowThreads(__tstate); |
7333 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7334 | } _resultobj = Py_BuildValue("i",_result); |
7335 | return _resultobj; | |
7336 | } | |
7337 | ||
7338 | #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax()) | |
7339 | static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7340 | PyObject * _resultobj; | |
7341 | int _result; | |
7342 | wxJoystick * _arg0; | |
7343 | PyObject * _argo0 = 0; | |
7344 | char *_kwnames[] = { "self", NULL }; | |
7345 | ||
7346 | self = self; | |
7347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0)) | |
7348 | return NULL; | |
7349 | if (_argo0) { | |
7350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p."); | |
7353 | return NULL; | |
7354 | } | |
7355 | } | |
7356 | { | |
4268f798 | 7357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7358 | _result = (int )wxJoystick_GetYMax(_arg0); |
185d7c3e | 7359 | |
4268f798 RD |
7360 | wxPyEndAllowThreads(__tstate); |
7361 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7362 | } _resultobj = Py_BuildValue("i",_result); |
7363 | return _resultobj; | |
7364 | } | |
7365 | ||
7366 | #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax()) | |
7367 | static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7368 | PyObject * _resultobj; | |
7369 | int _result; | |
7370 | wxJoystick * _arg0; | |
7371 | PyObject * _argo0 = 0; | |
7372 | char *_kwnames[] = { "self", NULL }; | |
7373 | ||
7374 | self = self; | |
7375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0)) | |
7376 | return NULL; | |
7377 | if (_argo0) { | |
7378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p."); | |
7381 | return NULL; | |
7382 | } | |
7383 | } | |
7384 | { | |
4268f798 | 7385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7386 | _result = (int )wxJoystick_GetZMax(_arg0); |
185d7c3e | 7387 | |
4268f798 RD |
7388 | wxPyEndAllowThreads(__tstate); |
7389 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7390 | } _resultobj = Py_BuildValue("i",_result); |
7391 | return _resultobj; | |
7392 | } | |
7393 | ||
7394 | #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons()) | |
7395 | static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7396 | PyObject * _resultobj; | |
7397 | int _result; | |
7398 | wxJoystick * _arg0; | |
7399 | PyObject * _argo0 = 0; | |
7400 | char *_kwnames[] = { "self", NULL }; | |
7401 | ||
7402 | self = self; | |
7403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0)) | |
7404 | return NULL; | |
7405 | if (_argo0) { | |
7406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p."); | |
7409 | return NULL; | |
7410 | } | |
7411 | } | |
7412 | { | |
4268f798 | 7413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7414 | _result = (int )wxJoystick_GetNumberButtons(_arg0); |
185d7c3e | 7415 | |
4268f798 RD |
7416 | wxPyEndAllowThreads(__tstate); |
7417 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7418 | } _resultobj = Py_BuildValue("i",_result); |
7419 | return _resultobj; | |
7420 | } | |
7421 | ||
7422 | #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes()) | |
7423 | static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7424 | PyObject * _resultobj; | |
7425 | int _result; | |
7426 | wxJoystick * _arg0; | |
7427 | PyObject * _argo0 = 0; | |
7428 | char *_kwnames[] = { "self", NULL }; | |
7429 | ||
7430 | self = self; | |
7431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0)) | |
7432 | return NULL; | |
7433 | if (_argo0) { | |
7434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p."); | |
7437 | return NULL; | |
7438 | } | |
7439 | } | |
7440 | { | |
4268f798 | 7441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7442 | _result = (int )wxJoystick_GetNumberAxes(_arg0); |
185d7c3e | 7443 | |
4268f798 RD |
7444 | wxPyEndAllowThreads(__tstate); |
7445 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7446 | } _resultobj = Py_BuildValue("i",_result); |
7447 | return _resultobj; | |
7448 | } | |
7449 | ||
7450 | #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons()) | |
7451 | static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7452 | PyObject * _resultobj; | |
7453 | int _result; | |
7454 | wxJoystick * _arg0; | |
7455 | PyObject * _argo0 = 0; | |
7456 | char *_kwnames[] = { "self", NULL }; | |
7457 | ||
7458 | self = self; | |
7459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0)) | |
7460 | return NULL; | |
7461 | if (_argo0) { | |
7462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p."); | |
7465 | return NULL; | |
7466 | } | |
7467 | } | |
7468 | { | |
4268f798 | 7469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7470 | _result = (int )wxJoystick_GetMaxButtons(_arg0); |
185d7c3e | 7471 | |
4268f798 RD |
7472 | wxPyEndAllowThreads(__tstate); |
7473 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7474 | } _resultobj = Py_BuildValue("i",_result); |
7475 | return _resultobj; | |
7476 | } | |
7477 | ||
7478 | #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes()) | |
7479 | static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7480 | PyObject * _resultobj; | |
7481 | int _result; | |
7482 | wxJoystick * _arg0; | |
7483 | PyObject * _argo0 = 0; | |
7484 | char *_kwnames[] = { "self", NULL }; | |
7485 | ||
7486 | self = self; | |
7487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0)) | |
7488 | return NULL; | |
7489 | if (_argo0) { | |
7490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p."); | |
7493 | return NULL; | |
7494 | } | |
7495 | } | |
7496 | { | |
4268f798 | 7497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7498 | _result = (int )wxJoystick_GetMaxAxes(_arg0); |
185d7c3e | 7499 | |
4268f798 RD |
7500 | wxPyEndAllowThreads(__tstate); |
7501 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7502 | } _resultobj = Py_BuildValue("i",_result); |
7503 | return _resultobj; | |
7504 | } | |
7505 | ||
7506 | #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin()) | |
7507 | static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7508 | PyObject * _resultobj; | |
7509 | int _result; | |
7510 | wxJoystick * _arg0; | |
7511 | PyObject * _argo0 = 0; | |
7512 | char *_kwnames[] = { "self", NULL }; | |
7513 | ||
7514 | self = self; | |
7515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0)) | |
7516 | return NULL; | |
7517 | if (_argo0) { | |
7518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p."); | |
7521 | return NULL; | |
7522 | } | |
7523 | } | |
7524 | { | |
4268f798 | 7525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7526 | _result = (int )wxJoystick_GetPollingMin(_arg0); |
185d7c3e | 7527 | |
4268f798 RD |
7528 | wxPyEndAllowThreads(__tstate); |
7529 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7530 | } _resultobj = Py_BuildValue("i",_result); |
7531 | return _resultobj; | |
7532 | } | |
7533 | ||
7534 | #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax()) | |
7535 | static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7536 | PyObject * _resultobj; | |
7537 | int _result; | |
7538 | wxJoystick * _arg0; | |
7539 | PyObject * _argo0 = 0; | |
7540 | char *_kwnames[] = { "self", NULL }; | |
7541 | ||
7542 | self = self; | |
7543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0)) | |
7544 | return NULL; | |
7545 | if (_argo0) { | |
7546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p."); | |
7549 | return NULL; | |
7550 | } | |
7551 | } | |
7552 | { | |
4268f798 | 7553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7554 | _result = (int )wxJoystick_GetPollingMax(_arg0); |
185d7c3e | 7555 | |
4268f798 RD |
7556 | wxPyEndAllowThreads(__tstate); |
7557 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7558 | } _resultobj = Py_BuildValue("i",_result); |
7559 | return _resultobj; | |
7560 | } | |
7561 | ||
7562 | #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin()) | |
7563 | static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7564 | PyObject * _resultobj; | |
7565 | int _result; | |
7566 | wxJoystick * _arg0; | |
7567 | PyObject * _argo0 = 0; | |
7568 | char *_kwnames[] = { "self", NULL }; | |
7569 | ||
7570 | self = self; | |
7571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0)) | |
7572 | return NULL; | |
7573 | if (_argo0) { | |
7574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p."); | |
7577 | return NULL; | |
7578 | } | |
7579 | } | |
7580 | { | |
4268f798 | 7581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7582 | _result = (int )wxJoystick_GetRudderMin(_arg0); |
185d7c3e | 7583 | |
4268f798 RD |
7584 | wxPyEndAllowThreads(__tstate); |
7585 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7586 | } _resultobj = Py_BuildValue("i",_result); |
7587 | return _resultobj; | |
7588 | } | |
7589 | ||
7590 | #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax()) | |
7591 | static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7592 | PyObject * _resultobj; | |
7593 | int _result; | |
7594 | wxJoystick * _arg0; | |
7595 | PyObject * _argo0 = 0; | |
7596 | char *_kwnames[] = { "self", NULL }; | |
7597 | ||
7598 | self = self; | |
7599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0)) | |
7600 | return NULL; | |
7601 | if (_argo0) { | |
7602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p."); | |
7605 | return NULL; | |
7606 | } | |
7607 | } | |
7608 | { | |
4268f798 | 7609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7610 | _result = (int )wxJoystick_GetRudderMax(_arg0); |
185d7c3e | 7611 | |
4268f798 RD |
7612 | wxPyEndAllowThreads(__tstate); |
7613 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7614 | } _resultobj = Py_BuildValue("i",_result); |
7615 | return _resultobj; | |
7616 | } | |
7617 | ||
7618 | #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin()) | |
7619 | static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7620 | PyObject * _resultobj; | |
7621 | int _result; | |
7622 | wxJoystick * _arg0; | |
7623 | PyObject * _argo0 = 0; | |
7624 | char *_kwnames[] = { "self", NULL }; | |
7625 | ||
7626 | self = self; | |
7627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0)) | |
7628 | return NULL; | |
7629 | if (_argo0) { | |
7630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p."); | |
7633 | return NULL; | |
7634 | } | |
7635 | } | |
7636 | { | |
4268f798 | 7637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7638 | _result = (int )wxJoystick_GetUMin(_arg0); |
185d7c3e | 7639 | |
4268f798 RD |
7640 | wxPyEndAllowThreads(__tstate); |
7641 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7642 | } _resultobj = Py_BuildValue("i",_result); |
7643 | return _resultobj; | |
7644 | } | |
7645 | ||
7646 | #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax()) | |
7647 | static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7648 | PyObject * _resultobj; | |
7649 | int _result; | |
7650 | wxJoystick * _arg0; | |
7651 | PyObject * _argo0 = 0; | |
7652 | char *_kwnames[] = { "self", NULL }; | |
7653 | ||
7654 | self = self; | |
7655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0)) | |
7656 | return NULL; | |
7657 | if (_argo0) { | |
7658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p."); | |
7661 | return NULL; | |
7662 | } | |
7663 | } | |
7664 | { | |
4268f798 | 7665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7666 | _result = (int )wxJoystick_GetUMax(_arg0); |
185d7c3e | 7667 | |
4268f798 RD |
7668 | wxPyEndAllowThreads(__tstate); |
7669 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7670 | } _resultobj = Py_BuildValue("i",_result); |
7671 | return _resultobj; | |
7672 | } | |
7673 | ||
7674 | #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin()) | |
7675 | static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7676 | PyObject * _resultobj; | |
7677 | int _result; | |
7678 | wxJoystick * _arg0; | |
7679 | PyObject * _argo0 = 0; | |
7680 | char *_kwnames[] = { "self", NULL }; | |
7681 | ||
7682 | self = self; | |
7683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0)) | |
7684 | return NULL; | |
7685 | if (_argo0) { | |
7686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p."); | |
7689 | return NULL; | |
7690 | } | |
7691 | } | |
7692 | { | |
4268f798 | 7693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7694 | _result = (int )wxJoystick_GetVMin(_arg0); |
185d7c3e | 7695 | |
4268f798 RD |
7696 | wxPyEndAllowThreads(__tstate); |
7697 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7698 | } _resultobj = Py_BuildValue("i",_result); |
7699 | return _resultobj; | |
7700 | } | |
7701 | ||
7702 | #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax()) | |
7703 | static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7704 | PyObject * _resultobj; | |
7705 | int _result; | |
7706 | wxJoystick * _arg0; | |
7707 | PyObject * _argo0 = 0; | |
7708 | char *_kwnames[] = { "self", NULL }; | |
7709 | ||
7710 | self = self; | |
7711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0)) | |
7712 | return NULL; | |
7713 | if (_argo0) { | |
7714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p."); | |
7717 | return NULL; | |
7718 | } | |
7719 | } | |
7720 | { | |
4268f798 | 7721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7722 | _result = (int )wxJoystick_GetVMax(_arg0); |
185d7c3e | 7723 | |
4268f798 RD |
7724 | wxPyEndAllowThreads(__tstate); |
7725 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7726 | } _resultobj = Py_BuildValue("i",_result); |
7727 | return _resultobj; | |
7728 | } | |
7729 | ||
7730 | #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder()) | |
7731 | static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7732 | PyObject * _resultobj; | |
7733 | bool _result; | |
7734 | wxJoystick * _arg0; | |
7735 | PyObject * _argo0 = 0; | |
7736 | char *_kwnames[] = { "self", NULL }; | |
7737 | ||
7738 | self = self; | |
7739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0)) | |
7740 | return NULL; | |
7741 | if (_argo0) { | |
7742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p."); | |
7745 | return NULL; | |
7746 | } | |
7747 | } | |
7748 | { | |
4268f798 | 7749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7750 | _result = (bool )wxJoystick_HasRudder(_arg0); |
185d7c3e | 7751 | |
4268f798 RD |
7752 | wxPyEndAllowThreads(__tstate); |
7753 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7754 | } _resultobj = Py_BuildValue("i",_result); |
7755 | return _resultobj; | |
7756 | } | |
7757 | ||
7758 | #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ()) | |
7759 | static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7760 | PyObject * _resultobj; | |
7761 | bool _result; | |
7762 | wxJoystick * _arg0; | |
7763 | PyObject * _argo0 = 0; | |
7764 | char *_kwnames[] = { "self", NULL }; | |
7765 | ||
7766 | self = self; | |
7767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0)) | |
7768 | return NULL; | |
7769 | if (_argo0) { | |
7770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p."); | |
7773 | return NULL; | |
7774 | } | |
7775 | } | |
7776 | { | |
4268f798 | 7777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7778 | _result = (bool )wxJoystick_HasZ(_arg0); |
185d7c3e | 7779 | |
4268f798 RD |
7780 | wxPyEndAllowThreads(__tstate); |
7781 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7782 | } _resultobj = Py_BuildValue("i",_result); |
7783 | return _resultobj; | |
7784 | } | |
7785 | ||
7786 | #define wxJoystick_HasU(_swigobj) (_swigobj->HasU()) | |
7787 | static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7788 | PyObject * _resultobj; | |
7789 | bool _result; | |
7790 | wxJoystick * _arg0; | |
7791 | PyObject * _argo0 = 0; | |
7792 | char *_kwnames[] = { "self", NULL }; | |
7793 | ||
7794 | self = self; | |
7795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0)) | |
7796 | return NULL; | |
7797 | if (_argo0) { | |
7798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p."); | |
7801 | return NULL; | |
7802 | } | |
7803 | } | |
7804 | { | |
4268f798 | 7805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7806 | _result = (bool )wxJoystick_HasU(_arg0); |
185d7c3e | 7807 | |
4268f798 RD |
7808 | wxPyEndAllowThreads(__tstate); |
7809 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7810 | } _resultobj = Py_BuildValue("i",_result); |
7811 | return _resultobj; | |
7812 | } | |
7813 | ||
7814 | #define wxJoystick_HasV(_swigobj) (_swigobj->HasV()) | |
7815 | static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7816 | PyObject * _resultobj; | |
7817 | bool _result; | |
7818 | wxJoystick * _arg0; | |
7819 | PyObject * _argo0 = 0; | |
7820 | char *_kwnames[] = { "self", NULL }; | |
7821 | ||
7822 | self = self; | |
7823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0)) | |
7824 | return NULL; | |
7825 | if (_argo0) { | |
7826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p."); | |
7829 | return NULL; | |
7830 | } | |
7831 | } | |
7832 | { | |
4268f798 | 7833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7834 | _result = (bool )wxJoystick_HasV(_arg0); |
185d7c3e | 7835 | |
4268f798 RD |
7836 | wxPyEndAllowThreads(__tstate); |
7837 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7838 | } _resultobj = Py_BuildValue("i",_result); |
7839 | return _resultobj; | |
7840 | } | |
7841 | ||
7842 | #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV()) | |
7843 | static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7844 | PyObject * _resultobj; | |
7845 | bool _result; | |
7846 | wxJoystick * _arg0; | |
7847 | PyObject * _argo0 = 0; | |
7848 | char *_kwnames[] = { "self", NULL }; | |
7849 | ||
7850 | self = self; | |
7851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0)) | |
7852 | return NULL; | |
7853 | if (_argo0) { | |
7854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p."); | |
7857 | return NULL; | |
7858 | } | |
7859 | } | |
7860 | { | |
4268f798 | 7861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7862 | _result = (bool )wxJoystick_HasPOV(_arg0); |
185d7c3e | 7863 | |
4268f798 RD |
7864 | wxPyEndAllowThreads(__tstate); |
7865 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7866 | } _resultobj = Py_BuildValue("i",_result); |
7867 | return _resultobj; | |
7868 | } | |
7869 | ||
7870 | #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir()) | |
7871 | static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7872 | PyObject * _resultobj; | |
7873 | bool _result; | |
7874 | wxJoystick * _arg0; | |
7875 | PyObject * _argo0 = 0; | |
7876 | char *_kwnames[] = { "self", NULL }; | |
7877 | ||
7878 | self = self; | |
7879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0)) | |
7880 | return NULL; | |
7881 | if (_argo0) { | |
7882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p."); | |
7885 | return NULL; | |
7886 | } | |
7887 | } | |
7888 | { | |
4268f798 | 7889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7890 | _result = (bool )wxJoystick_HasPOV4Dir(_arg0); |
185d7c3e | 7891 | |
4268f798 RD |
7892 | wxPyEndAllowThreads(__tstate); |
7893 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7894 | } _resultobj = Py_BuildValue("i",_result); |
7895 | return _resultobj; | |
7896 | } | |
7897 | ||
7898 | #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS()) | |
7899 | static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7900 | PyObject * _resultobj; | |
7901 | bool _result; | |
7902 | wxJoystick * _arg0; | |
7903 | PyObject * _argo0 = 0; | |
7904 | char *_kwnames[] = { "self", NULL }; | |
7905 | ||
7906 | self = self; | |
7907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0)) | |
7908 | return NULL; | |
7909 | if (_argo0) { | |
7910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p."); | |
7913 | return NULL; | |
7914 | } | |
7915 | } | |
7916 | { | |
4268f798 | 7917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7918 | _result = (bool )wxJoystick_HasPOVCTS(_arg0); |
185d7c3e | 7919 | |
4268f798 RD |
7920 | wxPyEndAllowThreads(__tstate); |
7921 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7922 | } _resultobj = Py_BuildValue("i",_result); |
7923 | return _resultobj; | |
7924 | } | |
7925 | ||
7926 | #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1)) | |
7927 | static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7928 | PyObject * _resultobj; | |
7929 | bool _result; | |
7930 | wxJoystick * _arg0; | |
7931 | wxWindow * _arg1; | |
7932 | int _arg2 = (int ) 0; | |
7933 | PyObject * _argo0 = 0; | |
7934 | PyObject * _argo1 = 0; | |
7935 | char *_kwnames[] = { "self","win","pollingFreq", NULL }; | |
7936 | ||
7937 | self = self; | |
7938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7939 | return NULL; | |
7940 | if (_argo0) { | |
7941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p."); | |
7944 | return NULL; | |
7945 | } | |
7946 | } | |
7947 | if (_argo1) { | |
7948 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7949 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p."); | |
7951 | return NULL; | |
7952 | } | |
7953 | } | |
7954 | { | |
4268f798 | 7955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7956 | _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2); |
185d7c3e | 7957 | |
4268f798 RD |
7958 | wxPyEndAllowThreads(__tstate); |
7959 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7960 | } _resultobj = Py_BuildValue("i",_result); |
7961 | return _resultobj; | |
7962 | } | |
7963 | ||
7964 | #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture()) | |
7965 | static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7966 | PyObject * _resultobj; | |
7967 | bool _result; | |
7968 | wxJoystick * _arg0; | |
7969 | PyObject * _argo0 = 0; | |
7970 | char *_kwnames[] = { "self", NULL }; | |
7971 | ||
7972 | self = self; | |
7973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0)) | |
7974 | return NULL; | |
7975 | if (_argo0) { | |
7976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p."); | |
7979 | return NULL; | |
7980 | } | |
7981 | } | |
7982 | { | |
4268f798 | 7983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7984 | _result = (bool )wxJoystick_ReleaseCapture(_arg0); |
185d7c3e | 7985 | |
4268f798 RD |
7986 | wxPyEndAllowThreads(__tstate); |
7987 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7988 | } _resultobj = Py_BuildValue("i",_result); |
7989 | return _resultobj; | |
7990 | } | |
7991 | ||
493f1553 RD |
7992 | static void *SwigwxWaveTowxObject(void *ptr) { |
7993 | wxWave *src; | |
7994 | wxObject *dest; | |
7995 | src = (wxWave *) ptr; | |
7996 | dest = (wxObject *) src; | |
7997 | return (void *) dest; | |
7998 | } | |
7999 | ||
8000 | #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1)) | |
8001 | static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8002 | PyObject * _resultobj; | |
8003 | wxWave * _result; | |
8004 | wxString * _arg0; | |
8005 | bool _arg1 = (bool ) FALSE; | |
8006 | PyObject * _obj0 = 0; | |
8007 | int tempbool1 = (int) FALSE; | |
8008 | char *_kwnames[] = { "fileName","isResource", NULL }; | |
8009 | char _ptemp[128]; | |
8010 | ||
8011 | self = self; | |
8012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1)) | |
8013 | return NULL; | |
8014 | { | |
c8bc7bb8 RD |
8015 | _arg0 = wxString_in_helper(_obj0); |
8016 | if (_arg0 == NULL) | |
493f1553 | 8017 | return NULL; |
493f1553 RD |
8018 | } |
8019 | _arg1 = (bool ) tempbool1; | |
8020 | { | |
4268f798 | 8021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8022 | _result = (wxWave *)new_wxWave(*_arg0,_arg1); |
493f1553 | 8023 | |
4268f798 RD |
8024 | wxPyEndAllowThreads(__tstate); |
8025 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
8026 | } if (_result) { |
8027 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
8028 | _resultobj = Py_BuildValue("s",_ptemp); | |
8029 | } else { | |
8030 | Py_INCREF(Py_None); | |
8031 | _resultobj = Py_None; | |
8032 | } | |
8033 | { | |
8034 | if (_obj0) | |
8035 | delete _arg0; | |
8036 | } | |
8037 | return _resultobj; | |
8038 | } | |
8039 | ||
8040 | #define delete_wxWave(_swigobj) (delete _swigobj) | |
8041 | static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8042 | PyObject * _resultobj; | |
8043 | wxWave * _arg0; | |
8044 | PyObject * _argo0 = 0; | |
8045 | char *_kwnames[] = { "self", NULL }; | |
8046 | ||
8047 | self = self; | |
8048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0)) | |
8049 | return NULL; | |
8050 | if (_argo0) { | |
8051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
8053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p."); | |
8054 | return NULL; | |
8055 | } | |
8056 | } | |
8057 | { | |
4268f798 | 8058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8059 | delete_wxWave(_arg0); |
493f1553 | 8060 | |
4268f798 RD |
8061 | wxPyEndAllowThreads(__tstate); |
8062 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
8063 | } Py_INCREF(Py_None); |
8064 | _resultobj = Py_None; | |
8065 | return _resultobj; | |
8066 | } | |
8067 | ||
8068 | #define wxWave_IsOk(_swigobj) (_swigobj->IsOk()) | |
8069 | static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8070 | PyObject * _resultobj; | |
8071 | bool _result; | |
8072 | wxWave * _arg0; | |
8073 | PyObject * _argo0 = 0; | |
8074 | char *_kwnames[] = { "self", NULL }; | |
8075 | ||
8076 | self = self; | |
8077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0)) | |
8078 | return NULL; | |
8079 | if (_argo0) { | |
8080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
8082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p."); | |
8083 | return NULL; | |
8084 | } | |
8085 | } | |
8086 | { | |
4268f798 | 8087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8088 | _result = (bool )wxWave_IsOk(_arg0); |
493f1553 | 8089 | |
4268f798 RD |
8090 | wxPyEndAllowThreads(__tstate); |
8091 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
8092 | } _resultobj = Py_BuildValue("i",_result); |
8093 | return _resultobj; | |
8094 | } | |
8095 | ||
8096 | #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1)) | |
8097 | static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8098 | PyObject * _resultobj; | |
8099 | bool _result; | |
8100 | wxWave * _arg0; | |
8101 | bool _arg1 = (bool ) TRUE; | |
8102 | bool _arg2 = (bool ) FALSE; | |
8103 | PyObject * _argo0 = 0; | |
8104 | int tempbool1 = (int) TRUE; | |
8105 | int tempbool2 = (int) FALSE; | |
8106 | char *_kwnames[] = { "self","async","looped", NULL }; | |
8107 | ||
8108 | self = self; | |
8109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
8110 | return NULL; | |
8111 | if (_argo0) { | |
8112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
8114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p."); | |
8115 | return NULL; | |
8116 | } | |
8117 | } | |
8118 | _arg1 = (bool ) tempbool1; | |
8119 | _arg2 = (bool ) tempbool2; | |
8120 | { | |
4268f798 | 8121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8122 | _result = (bool )wxWave_Play(_arg0,_arg1,_arg2); |
493f1553 | 8123 | |
4268f798 RD |
8124 | wxPyEndAllowThreads(__tstate); |
8125 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
8126 | } _resultobj = Py_BuildValue("i",_result); |
8127 | return _resultobj; | |
8128 | } | |
8129 | ||
b37c7e1d RD |
8130 | #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8131 | static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8132 | PyObject * _resultobj; | |
8133 | wxFileTypeInfo * _result; | |
8134 | char * _arg0; | |
8135 | char * _arg1; | |
8136 | char * _arg2; | |
8137 | char * _arg3; | |
8138 | char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL }; | |
8139 | char _ptemp[128]; | |
8140 | ||
8141 | self = self; | |
8142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ssss:new_wxFileTypeInfo",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
8143 | return NULL; | |
8144 | { | |
4268f798 | 8145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8146 | _result = (wxFileTypeInfo *)new_wxFileTypeInfo(_arg0,_arg1,_arg2,_arg3); |
b37c7e1d | 8147 | |
4268f798 RD |
8148 | wxPyEndAllowThreads(__tstate); |
8149 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8150 | } if (_result) { |
8151 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
8152 | _resultobj = Py_BuildValue("s",_ptemp); | |
8153 | } else { | |
8154 | Py_INCREF(Py_None); | |
8155 | _resultobj = Py_None; | |
8156 | } | |
8157 | return _resultobj; | |
8158 | } | |
8159 | ||
8160 | #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0)) | |
8161 | static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8162 | PyObject * _resultobj; | |
8163 | wxFileTypeInfo * _result; | |
8164 | wxArrayString * _arg0; | |
8165 | PyObject * _obj0 = 0; | |
8166 | char *_kwnames[] = { "sArray", NULL }; | |
8167 | char _ptemp[128]; | |
8168 | ||
8169 | self = self; | |
8170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0)) | |
8171 | return NULL; | |
8172 | { | |
8173 | if (! PySequence_Check(_obj0)) { | |
8174 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8175 | return NULL; | |
8176 | } | |
8177 | _arg0 = new wxArrayString; | |
8178 | int i, len=PySequence_Length(_obj0); | |
8179 | for (i=0; i<len; i++) { | |
8180 | PyObject* item = PySequence_GetItem(_obj0, i); | |
c8bc7bb8 RD |
8181 | #if wxUSE_UNICODE |
8182 | PyObject* str = PyObject_Unicode(item); | |
8183 | _arg0->Add(PyUnicode_AsUnicode(str)); | |
8184 | #else | |
b37c7e1d | 8185 | PyObject* str = PyObject_Str(item); |
293a0a86 | 8186 | _arg0->Add(PyString_AsString(str)); |
c8bc7bb8 | 8187 | #endif |
b37c7e1d RD |
8188 | Py_DECREF(item); |
8189 | Py_DECREF(str); | |
8190 | } | |
8191 | } | |
8192 | { | |
4268f798 | 8193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8194 | _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0); |
b37c7e1d | 8195 | |
4268f798 RD |
8196 | wxPyEndAllowThreads(__tstate); |
8197 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8198 | } if (_result) { |
8199 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
8200 | _resultobj = Py_BuildValue("s",_ptemp); | |
8201 | } else { | |
8202 | Py_INCREF(Py_None); | |
8203 | _resultobj = Py_None; | |
8204 | } | |
8205 | { | |
8206 | if (_obj0) | |
8207 | delete _arg0; | |
8208 | } | |
8209 | return _resultobj; | |
8210 | } | |
8211 | ||
8212 | #define new_wxNullFileTypeInfo() (new wxFileTypeInfo()) | |
8213 | static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8214 | PyObject * _resultobj; | |
8215 | wxFileTypeInfo * _result; | |
8216 | char *_kwnames[] = { NULL }; | |
8217 | char _ptemp[128]; | |
8218 | ||
8219 | self = self; | |
8220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames)) | |
8221 | return NULL; | |
8222 | { | |
4268f798 | 8223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8224 | _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo(); |
b37c7e1d | 8225 | |
4268f798 RD |
8226 | wxPyEndAllowThreads(__tstate); |
8227 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8228 | } if (_result) { |
8229 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
8230 | _resultobj = Py_BuildValue("s",_ptemp); | |
8231 | } else { | |
8232 | Py_INCREF(Py_None); | |
8233 | _resultobj = Py_None; | |
8234 | } | |
8235 | return _resultobj; | |
8236 | } | |
8237 | ||
8238 | #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid()) | |
8239 | static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8240 | PyObject * _resultobj; | |
8241 | bool _result; | |
8242 | wxFileTypeInfo * _arg0; | |
8243 | PyObject * _argo0 = 0; | |
8244 | char *_kwnames[] = { "self", NULL }; | |
8245 | ||
8246 | self = self; | |
8247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0)) | |
8248 | return NULL; | |
8249 | if (_argo0) { | |
8250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p."); | |
8253 | return NULL; | |
8254 | } | |
8255 | } | |
8256 | { | |
4268f798 | 8257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8258 | _result = (bool )wxFileTypeInfo_IsValid(_arg0); |
b37c7e1d | 8259 | |
4268f798 RD |
8260 | wxPyEndAllowThreads(__tstate); |
8261 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8262 | } _resultobj = Py_BuildValue("i",_result); |
8263 | return _resultobj; | |
8264 | } | |
8265 | ||
8266 | #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1)) | |
8267 | static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8268 | PyObject * _resultobj; | |
8269 | wxFileTypeInfo * _arg0; | |
8270 | wxString * _arg1; | |
8271 | int _arg2 = (int ) 0; | |
8272 | PyObject * _argo0 = 0; | |
8273 | PyObject * _obj1 = 0; | |
8274 | char *_kwnames[] = { "self","iconFile","iconIndex", NULL }; | |
8275 | ||
8276 | self = self; | |
8277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
8278 | return NULL; | |
8279 | if (_argo0) { | |
8280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p."); | |
8283 | return NULL; | |
8284 | } | |
8285 | } | |
8286 | { | |
c8bc7bb8 RD |
8287 | _arg1 = wxString_in_helper(_obj1); |
8288 | if (_arg1 == NULL) | |
b37c7e1d | 8289 | return NULL; |
b37c7e1d RD |
8290 | } |
8291 | { | |
4268f798 | 8292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8293 | wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 8294 | |
4268f798 RD |
8295 | wxPyEndAllowThreads(__tstate); |
8296 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8297 | } Py_INCREF(Py_None); |
8298 | _resultobj = Py_None; | |
8299 | { | |
8300 | if (_obj1) | |
8301 | delete _arg1; | |
8302 | } | |
8303 | return _resultobj; | |
8304 | } | |
8305 | ||
8306 | #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0)) | |
8307 | static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8308 | PyObject * _resultobj; | |
8309 | wxFileTypeInfo * _arg0; | |
8310 | wxString * _arg1; | |
8311 | PyObject * _argo0 = 0; | |
8312 | PyObject * _obj1 = 0; | |
8313 | char *_kwnames[] = { "self","shortDesc", NULL }; | |
8314 | ||
8315 | self = self; | |
8316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1)) | |
8317 | return NULL; | |
8318 | if (_argo0) { | |
8319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p."); | |
8322 | return NULL; | |
8323 | } | |
8324 | } | |
8325 | { | |
c8bc7bb8 RD |
8326 | _arg1 = wxString_in_helper(_obj1); |
8327 | if (_arg1 == NULL) | |
b37c7e1d | 8328 | return NULL; |
b37c7e1d RD |
8329 | } |
8330 | { | |
4268f798 | 8331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8332 | wxFileTypeInfo_SetShortDesc(_arg0,*_arg1); |
b37c7e1d | 8333 | |
4268f798 RD |
8334 | wxPyEndAllowThreads(__tstate); |
8335 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8336 | } Py_INCREF(Py_None); |
8337 | _resultobj = Py_None; | |
8338 | { | |
8339 | if (_obj1) | |
8340 | delete _arg1; | |
8341 | } | |
8342 | return _resultobj; | |
8343 | } | |
8344 | ||
8345 | #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
8346 | static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8347 | PyObject * _resultobj; | |
8348 | wxString * _result; | |
8349 | wxFileTypeInfo * _arg0; | |
8350 | PyObject * _argo0 = 0; | |
8351 | char *_kwnames[] = { "self", NULL }; | |
8352 | ||
8353 | self = self; | |
8354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0)) | |
8355 | return NULL; | |
8356 | if (_argo0) { | |
8357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p."); | |
8360 | return NULL; | |
8361 | } | |
8362 | } | |
8363 | { | |
4268f798 | 8364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8365 | const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0); |
b37c7e1d RD |
8366 | _result = (wxString *) &_result_ref; |
8367 | ||
4268f798 RD |
8368 | wxPyEndAllowThreads(__tstate); |
8369 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8370 | }{ |
c8bc7bb8 RD |
8371 | #if wxUSE_UNICODE |
8372 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8373 | #else | |
b37c7e1d | 8374 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8375 | #endif |
b37c7e1d RD |
8376 | } |
8377 | return _resultobj; | |
8378 | } | |
8379 | ||
8380 | #define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand()) | |
8381 | static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8382 | PyObject * _resultobj; | |
8383 | wxString * _result; | |
8384 | wxFileTypeInfo * _arg0; | |
8385 | PyObject * _argo0 = 0; | |
8386 | char *_kwnames[] = { "self", NULL }; | |
8387 | ||
8388 | self = self; | |
8389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0)) | |
8390 | return NULL; | |
8391 | if (_argo0) { | |
8392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p."); | |
8395 | return NULL; | |
8396 | } | |
8397 | } | |
8398 | { | |
4268f798 | 8399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8400 | const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0); |
b37c7e1d RD |
8401 | _result = (wxString *) &_result_ref; |
8402 | ||
4268f798 RD |
8403 | wxPyEndAllowThreads(__tstate); |
8404 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8405 | }{ |
c8bc7bb8 RD |
8406 | #if wxUSE_UNICODE |
8407 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8408 | #else | |
b37c7e1d | 8409 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8410 | #endif |
b37c7e1d RD |
8411 | } |
8412 | return _resultobj; | |
8413 | } | |
8414 | ||
8415 | #define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand()) | |
8416 | static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8417 | PyObject * _resultobj; | |
8418 | wxString * _result; | |
8419 | wxFileTypeInfo * _arg0; | |
8420 | PyObject * _argo0 = 0; | |
8421 | char *_kwnames[] = { "self", NULL }; | |
8422 | ||
8423 | self = self; | |
8424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0)) | |
8425 | return NULL; | |
8426 | if (_argo0) { | |
8427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p."); | |
8430 | return NULL; | |
8431 | } | |
8432 | } | |
8433 | { | |
4268f798 | 8434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8435 | const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0); |
b37c7e1d RD |
8436 | _result = (wxString *) &_result_ref; |
8437 | ||
4268f798 RD |
8438 | wxPyEndAllowThreads(__tstate); |
8439 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8440 | }{ |
c8bc7bb8 RD |
8441 | #if wxUSE_UNICODE |
8442 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8443 | #else | |
b37c7e1d | 8444 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8445 | #endif |
b37c7e1d RD |
8446 | } |
8447 | return _resultobj; | |
8448 | } | |
8449 | ||
8450 | #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc()) | |
8451 | static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8452 | PyObject * _resultobj; | |
8453 | wxString * _result; | |
8454 | wxFileTypeInfo * _arg0; | |
8455 | PyObject * _argo0 = 0; | |
8456 | char *_kwnames[] = { "self", NULL }; | |
8457 | ||
8458 | self = self; | |
8459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0)) | |
8460 | return NULL; | |
8461 | if (_argo0) { | |
8462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p."); | |
8465 | return NULL; | |
8466 | } | |
8467 | } | |
8468 | { | |
4268f798 | 8469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8470 | const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0); |
b37c7e1d RD |
8471 | _result = (wxString *) &_result_ref; |
8472 | ||
4268f798 RD |
8473 | wxPyEndAllowThreads(__tstate); |
8474 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8475 | }{ |
c8bc7bb8 RD |
8476 | #if wxUSE_UNICODE |
8477 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8478 | #else | |
b37c7e1d | 8479 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8480 | #endif |
b37c7e1d RD |
8481 | } |
8482 | return _resultobj; | |
8483 | } | |
8484 | ||
8485 | #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription()) | |
8486 | static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8487 | PyObject * _resultobj; | |
8488 | wxString * _result; | |
8489 | wxFileTypeInfo * _arg0; | |
8490 | PyObject * _argo0 = 0; | |
8491 | char *_kwnames[] = { "self", NULL }; | |
8492 | ||
8493 | self = self; | |
8494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0)) | |
8495 | return NULL; | |
8496 | if (_argo0) { | |
8497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p."); | |
8500 | return NULL; | |
8501 | } | |
8502 | } | |
8503 | { | |
4268f798 | 8504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8505 | const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0); |
b37c7e1d RD |
8506 | _result = (wxString *) &_result_ref; |
8507 | ||
4268f798 RD |
8508 | wxPyEndAllowThreads(__tstate); |
8509 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8510 | }{ |
c8bc7bb8 RD |
8511 | #if wxUSE_UNICODE |
8512 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8513 | #else | |
b37c7e1d | 8514 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8515 | #endif |
b37c7e1d RD |
8516 | } |
8517 | return _resultobj; | |
8518 | } | |
8519 | ||
8520 | static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) { | |
8521 | wxArrayString& arr = (wxArrayString&)self->GetExtensions(); | |
8522 | return wxArrayString2PyList_helper(arr); | |
8523 | } | |
8524 | static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8525 | PyObject * _resultobj; | |
8526 | PyObject * _result; | |
8527 | wxFileTypeInfo * _arg0; | |
8528 | PyObject * _argo0 = 0; | |
8529 | char *_kwnames[] = { "self", NULL }; | |
8530 | ||
8531 | self = self; | |
8532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0)) | |
8533 | return NULL; | |
8534 | if (_argo0) { | |
8535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p."); | |
8538 | return NULL; | |
8539 | } | |
8540 | } | |
8541 | { | |
4268f798 | 8542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8543 | _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0); |
b37c7e1d | 8544 | |
4268f798 RD |
8545 | wxPyEndAllowThreads(__tstate); |
8546 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8547 | }{ |
8548 | _resultobj = _result; | |
8549 | } | |
8550 | return _resultobj; | |
8551 | } | |
8552 | ||
8553 | #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount()) | |
8554 | static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8555 | PyObject * _resultobj; | |
8556 | int _result; | |
8557 | wxFileTypeInfo * _arg0; | |
8558 | PyObject * _argo0 = 0; | |
8559 | char *_kwnames[] = { "self", NULL }; | |
8560 | ||
8561 | self = self; | |
8562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0)) | |
8563 | return NULL; | |
8564 | if (_argo0) { | |
8565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p."); | |
8568 | return NULL; | |
8569 | } | |
8570 | } | |
8571 | { | |
4268f798 | 8572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8573 | _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0); |
b37c7e1d | 8574 | |
4268f798 RD |
8575 | wxPyEndAllowThreads(__tstate); |
8576 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8577 | } _resultobj = Py_BuildValue("i",_result); |
8578 | return _resultobj; | |
8579 | } | |
8580 | ||
8581 | #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile()) | |
8582 | static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8583 | PyObject * _resultobj; | |
8584 | wxString * _result; | |
8585 | wxFileTypeInfo * _arg0; | |
8586 | PyObject * _argo0 = 0; | |
8587 | char *_kwnames[] = { "self", NULL }; | |
8588 | ||
8589 | self = self; | |
8590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0)) | |
8591 | return NULL; | |
8592 | if (_argo0) { | |
8593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p."); | |
8596 | return NULL; | |
8597 | } | |
8598 | } | |
8599 | { | |
4268f798 | 8600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8601 | const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0); |
b37c7e1d RD |
8602 | _result = (wxString *) &_result_ref; |
8603 | ||
4268f798 RD |
8604 | wxPyEndAllowThreads(__tstate); |
8605 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8606 | }{ |
c8bc7bb8 RD |
8607 | #if wxUSE_UNICODE |
8608 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8609 | #else | |
b37c7e1d | 8610 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8611 | #endif |
b37c7e1d RD |
8612 | } |
8613 | return _resultobj; | |
8614 | } | |
8615 | ||
8616 | #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex()) | |
8617 | static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8618 | PyObject * _resultobj; | |
8619 | int _result; | |
8620 | wxFileTypeInfo * _arg0; | |
8621 | PyObject * _argo0 = 0; | |
8622 | char *_kwnames[] = { "self", NULL }; | |
8623 | ||
8624 | self = self; | |
8625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0)) | |
8626 | return NULL; | |
8627 | if (_argo0) { | |
8628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p."); | |
8631 | return NULL; | |
8632 | } | |
8633 | } | |
8634 | { | |
4268f798 | 8635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8636 | _result = (int )wxFileTypeInfo_GetIconIndex(_arg0); |
b37c7e1d | 8637 | |
4268f798 RD |
8638 | wxPyEndAllowThreads(__tstate); |
8639 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8640 | } _resultobj = Py_BuildValue("i",_result); |
8641 | return _resultobj; | |
8642 | } | |
8643 | ||
8644 | #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0)) | |
8645 | static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8646 | PyObject * _resultobj; | |
8647 | wxFileType * _result; | |
8648 | wxFileTypeInfo * _arg0; | |
8649 | PyObject * _argo0 = 0; | |
8650 | char *_kwnames[] = { "ftInfo", NULL }; | |
8651 | char _ptemp[128]; | |
8652 | ||
8653 | self = self; | |
8654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0)) | |
8655 | return NULL; | |
8656 | if (_argo0) { | |
8657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p."); | |
8660 | return NULL; | |
8661 | } | |
8662 | } | |
8663 | { | |
4268f798 | 8664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8665 | _result = (wxFileType *)new_wxFileType(*_arg0); |
b37c7e1d | 8666 | |
4268f798 RD |
8667 | wxPyEndAllowThreads(__tstate); |
8668 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8669 | } if (_result) { |
8670 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8671 | _resultobj = Py_BuildValue("s",_ptemp); | |
8672 | } else { | |
8673 | Py_INCREF(Py_None); | |
8674 | _resultobj = Py_None; | |
8675 | } | |
8676 | return _resultobj; | |
8677 | } | |
8678 | ||
8679 | static PyObject * wxFileType_GetMimeType(wxFileType *self) { | |
8680 | wxString str; | |
c8bc7bb8 RD |
8681 | if (self->GetMimeType(&str)) { |
8682 | #if wxUSE_UNICODE | |
8683 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8684 | #else | |
8685 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8686 | #endif | |
8687 | } | |
b37c7e1d RD |
8688 | else |
8689 | RETURN_NONE(); | |
8690 | } | |
8691 | static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8692 | PyObject * _resultobj; | |
8693 | PyObject * _result; | |
8694 | wxFileType * _arg0; | |
8695 | PyObject * _argo0 = 0; | |
8696 | char *_kwnames[] = { "self", NULL }; | |
8697 | ||
8698 | self = self; | |
8699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0)) | |
8700 | return NULL; | |
8701 | if (_argo0) { | |
8702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p."); | |
8705 | return NULL; | |
8706 | } | |
8707 | } | |
8708 | { | |
4268f798 | 8709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8710 | _result = (PyObject *)wxFileType_GetMimeType(_arg0); |
b37c7e1d | 8711 | |
4268f798 RD |
8712 | wxPyEndAllowThreads(__tstate); |
8713 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8714 | }{ |
8715 | _resultobj = _result; | |
8716 | } | |
8717 | return _resultobj; | |
8718 | } | |
8719 | ||
8720 | static PyObject * wxFileType_GetMimeTypes(wxFileType *self) { | |
8721 | wxArrayString arr; | |
8722 | if (self->GetMimeTypes(arr)) | |
8723 | return wxArrayString2PyList_helper(arr); | |
8724 | else | |
8725 | RETURN_NONE(); | |
8726 | } | |
8727 | static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8728 | PyObject * _resultobj; | |
8729 | PyObject * _result; | |
8730 | wxFileType * _arg0; | |
8731 | PyObject * _argo0 = 0; | |
8732 | char *_kwnames[] = { "self", NULL }; | |
8733 | ||
8734 | self = self; | |
8735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0)) | |
8736 | return NULL; | |
8737 | if (_argo0) { | |
8738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p."); | |
8741 | return NULL; | |
8742 | } | |
8743 | } | |
8744 | { | |
4268f798 | 8745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8746 | _result = (PyObject *)wxFileType_GetMimeTypes(_arg0); |
b37c7e1d | 8747 | |
4268f798 RD |
8748 | wxPyEndAllowThreads(__tstate); |
8749 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8750 | }{ |
8751 | _resultobj = _result; | |
8752 | } | |
8753 | return _resultobj; | |
8754 | } | |
8755 | ||
8756 | static PyObject * wxFileType_GetExtensions(wxFileType *self) { | |
8757 | wxArrayString arr; | |
8758 | if (self->GetExtensions(arr)) | |
8759 | return wxArrayString2PyList_helper(arr); | |
8760 | else | |
8761 | RETURN_NONE(); | |
8762 | } | |
8763 | static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8764 | PyObject * _resultobj; | |
8765 | PyObject * _result; | |
8766 | wxFileType * _arg0; | |
8767 | PyObject * _argo0 = 0; | |
8768 | char *_kwnames[] = { "self", NULL }; | |
8769 | ||
8770 | self = self; | |
8771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0)) | |
8772 | return NULL; | |
8773 | if (_argo0) { | |
8774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p."); | |
8777 | return NULL; | |
8778 | } | |
8779 | } | |
8780 | { | |
4268f798 | 8781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8782 | _result = (PyObject *)wxFileType_GetExtensions(_arg0); |
b37c7e1d | 8783 | |
4268f798 RD |
8784 | wxPyEndAllowThreads(__tstate); |
8785 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8786 | }{ |
8787 | _resultobj = _result; | |
8788 | } | |
8789 | return _resultobj; | |
8790 | } | |
8791 | ||
8792 | static wxIcon * wxFileType_GetIcon(wxFileType *self) { | |
8793 | wxIcon icon; | |
8794 | if (self->GetIcon(&icon)) | |
8795 | return new wxIcon(icon); | |
8796 | else | |
8797 | return NULL; | |
8798 | } | |
8799 | static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8800 | PyObject * _resultobj; | |
8801 | wxIcon * _result; | |
8802 | wxFileType * _arg0; | |
8803 | PyObject * _argo0 = 0; | |
8804 | char *_kwnames[] = { "self", NULL }; | |
8805 | char _ptemp[128]; | |
8806 | ||
8807 | self = self; | |
8808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0)) | |
8809 | return NULL; | |
8810 | if (_argo0) { | |
8811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p."); | |
8814 | return NULL; | |
8815 | } | |
8816 | } | |
8817 | { | |
4268f798 | 8818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8819 | _result = (wxIcon *)wxFileType_GetIcon(_arg0); |
b37c7e1d | 8820 | |
4268f798 RD |
8821 | wxPyEndAllowThreads(__tstate); |
8822 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8823 | } if (_result) { |
8824 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
8825 | _resultobj = Py_BuildValue("s",_ptemp); | |
8826 | } else { | |
8827 | Py_INCREF(Py_None); | |
8828 | _resultobj = Py_None; | |
8829 | } | |
8830 | return _resultobj; | |
8831 | } | |
8832 | ||
8833 | static PyObject * wxFileType_GetIconInfo(wxFileType *self) { | |
8834 | wxIcon icon; | |
8835 | wxString iconFile; | |
8836 | int iconIndex; | |
8837 | if (self->GetIcon(&icon, &iconFile, &iconIndex)) { | |
4268f798 | 8838 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
8839 | PyObject* tuple = PyTuple_New(3); |
8840 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(icon), | |
8841 | "wxIcon", TRUE)); | |
c8bc7bb8 RD |
8842 | #if wxUSE_UNICODE |
8843 | PyTuple_SetItem(tuple, 1, PyUnicode_FromUnicode(iconFile.c_str(), iconFile.Len())); | |
8844 | #else | |
8845 | PyTuple_SetItem(tuple, 1, PyString_FromStringAndSize(iconFile.c_str(), iconFile.Len())); | |
8846 | #endif | |
b37c7e1d | 8847 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); |
4268f798 | 8848 | wxPyEndBlockThreads(); |
b37c7e1d RD |
8849 | return tuple; |
8850 | } | |
8851 | else | |
8852 | RETURN_NONE(); | |
8853 | } | |
8854 | static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8855 | PyObject * _resultobj; | |
8856 | PyObject * _result; | |
8857 | wxFileType * _arg0; | |
8858 | PyObject * _argo0 = 0; | |
8859 | char *_kwnames[] = { "self", NULL }; | |
8860 | ||
8861 | self = self; | |
8862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0)) | |
8863 | return NULL; | |
8864 | if (_argo0) { | |
8865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p."); | |
8868 | return NULL; | |
8869 | } | |
8870 | } | |
8871 | { | |
4268f798 | 8872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8873 | _result = (PyObject *)wxFileType_GetIconInfo(_arg0); |
b37c7e1d | 8874 | |
4268f798 RD |
8875 | wxPyEndAllowThreads(__tstate); |
8876 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8877 | }{ |
8878 | _resultobj = _result; | |
8879 | } | |
8880 | return _resultobj; | |
8881 | } | |
8882 | ||
8883 | static PyObject * wxFileType_GetDescription(wxFileType *self) { | |
8884 | wxString str; | |
c8bc7bb8 RD |
8885 | if (self->GetDescription(&str)) { |
8886 | #if wxUSE_UNICODE | |
8887 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8888 | #else | |
8889 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8890 | #endif | |
8891 | } else | |
b37c7e1d RD |
8892 | RETURN_NONE(); |
8893 | } | |
8894 | static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8895 | PyObject * _resultobj; | |
8896 | PyObject * _result; | |
8897 | wxFileType * _arg0; | |
8898 | PyObject * _argo0 = 0; | |
8899 | char *_kwnames[] = { "self", NULL }; | |
8900 | ||
8901 | self = self; | |
8902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0)) | |
8903 | return NULL; | |
8904 | if (_argo0) { | |
8905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p."); | |
8908 | return NULL; | |
8909 | } | |
8910 | } | |
8911 | { | |
4268f798 | 8912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8913 | _result = (PyObject *)wxFileType_GetDescription(_arg0); |
b37c7e1d | 8914 | |
4268f798 RD |
8915 | wxPyEndAllowThreads(__tstate); |
8916 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8917 | }{ |
8918 | _resultobj = _result; | |
8919 | } | |
8920 | return _resultobj; | |
8921 | } | |
8922 | ||
8923 | static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8924 | wxString str; | |
c8bc7bb8 RD |
8925 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
8926 | #if wxUSE_UNICODE | |
8927 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8928 | #else | |
8929 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8930 | #endif | |
8931 | } else | |
b37c7e1d RD |
8932 | RETURN_NONE(); |
8933 | } | |
8934 | static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8935 | PyObject * _resultobj; | |
8936 | PyObject * _result; | |
8937 | wxFileType * _arg0; | |
8938 | wxString * _arg1; | |
137b5242 | 8939 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8940 | PyObject * _argo0 = 0; |
8941 | PyObject * _obj1 = 0; | |
8942 | PyObject * _obj2 = 0; | |
8943 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8944 | ||
8945 | self = self; | |
8946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8947 | return NULL; | |
8948 | if (_argo0) { | |
8949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p."); | |
8952 | return NULL; | |
8953 | } | |
8954 | } | |
8955 | { | |
c8bc7bb8 RD |
8956 | _arg1 = wxString_in_helper(_obj1); |
8957 | if (_arg1 == NULL) | |
b37c7e1d | 8958 | return NULL; |
b37c7e1d RD |
8959 | } |
8960 | if (_obj2) | |
8961 | { | |
c8bc7bb8 RD |
8962 | _arg2 = wxString_in_helper(_obj2); |
8963 | if (_arg2 == NULL) | |
b37c7e1d | 8964 | return NULL; |
b37c7e1d RD |
8965 | } |
8966 | { | |
4268f798 | 8967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8968 | _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8969 | |
4268f798 RD |
8970 | wxPyEndAllowThreads(__tstate); |
8971 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8972 | }{ |
8973 | _resultobj = _result; | |
8974 | } | |
8975 | { | |
8976 | if (_obj1) | |
8977 | delete _arg1; | |
8978 | } | |
8979 | { | |
8980 | if (_obj2) | |
8981 | delete _arg2; | |
8982 | } | |
8983 | return _resultobj; | |
8984 | } | |
8985 | ||
8986 | static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8987 | wxString str; | |
c8bc7bb8 RD |
8988 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
8989 | #if wxUSE_UNICODE | |
8990 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8991 | #else | |
8992 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8993 | #endif | |
8994 | } else | |
b37c7e1d RD |
8995 | RETURN_NONE(); |
8996 | } | |
8997 | static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8998 | PyObject * _resultobj; | |
8999 | PyObject * _result; | |
9000 | wxFileType * _arg0; | |
9001 | wxString * _arg1; | |
137b5242 | 9002 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9003 | PyObject * _argo0 = 0; |
9004 | PyObject * _obj1 = 0; | |
9005 | PyObject * _obj2 = 0; | |
9006 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
9007 | ||
9008 | self = self; | |
9009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9010 | return NULL; | |
9011 | if (_argo0) { | |
9012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p."); | |
9015 | return NULL; | |
9016 | } | |
9017 | } | |
9018 | { | |
c8bc7bb8 RD |
9019 | _arg1 = wxString_in_helper(_obj1); |
9020 | if (_arg1 == NULL) | |
b37c7e1d | 9021 | return NULL; |
b37c7e1d RD |
9022 | } |
9023 | if (_obj2) | |
9024 | { | |
c8bc7bb8 RD |
9025 | _arg2 = wxString_in_helper(_obj2); |
9026 | if (_arg2 == NULL) | |
b37c7e1d | 9027 | return NULL; |
b37c7e1d RD |
9028 | } |
9029 | { | |
4268f798 | 9030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9031 | _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 9032 | |
4268f798 RD |
9033 | wxPyEndAllowThreads(__tstate); |
9034 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9035 | }{ |
9036 | _resultobj = _result; | |
9037 | } | |
9038 | { | |
9039 | if (_obj1) | |
9040 | delete _arg1; | |
9041 | } | |
9042 | { | |
9043 | if (_obj2) | |
9044 | delete _arg2; | |
9045 | } | |
9046 | return _resultobj; | |
9047 | } | |
9048 | ||
9049 | static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
9050 | wxArrayString verbs; | |
9051 | wxArrayString commands; | |
9052 | if (self->GetAllCommands(&verbs, &commands, | |
9053 | wxFileType::MessageParameters(filename, mimetype))) { | |
4268f798 | 9054 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
9055 | PyObject* tuple = PyTuple_New(2); |
9056 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
9057 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
4268f798 | 9058 | wxPyEndBlockThreads(); |
b37c7e1d RD |
9059 | return tuple; |
9060 | } | |
9061 | else | |
9062 | RETURN_NONE(); | |
9063 | } | |
9064 | static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9065 | PyObject * _resultobj; | |
9066 | PyObject * _result; | |
9067 | wxFileType * _arg0; | |
9068 | wxString * _arg1; | |
137b5242 | 9069 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9070 | PyObject * _argo0 = 0; |
9071 | PyObject * _obj1 = 0; | |
9072 | PyObject * _obj2 = 0; | |
9073 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
9074 | ||
9075 | self = self; | |
9076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9077 | return NULL; | |
9078 | if (_argo0) { | |
9079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p."); | |
9082 | return NULL; | |
9083 | } | |
9084 | } | |
9085 | { | |
c8bc7bb8 RD |
9086 | _arg1 = wxString_in_helper(_obj1); |
9087 | if (_arg1 == NULL) | |
b37c7e1d | 9088 | return NULL; |
b37c7e1d RD |
9089 | } |
9090 | if (_obj2) | |
9091 | { | |
c8bc7bb8 RD |
9092 | _arg2 = wxString_in_helper(_obj2); |
9093 | if (_arg2 == NULL) | |
b37c7e1d | 9094 | return NULL; |
b37c7e1d RD |
9095 | } |
9096 | { | |
4268f798 | 9097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9098 | _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2); |
b37c7e1d | 9099 | |
4268f798 RD |
9100 | wxPyEndAllowThreads(__tstate); |
9101 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9102 | }{ |
9103 | _resultobj = _result; | |
9104 | } | |
9105 | { | |
9106 | if (_obj1) | |
9107 | delete _arg1; | |
9108 | } | |
9109 | { | |
9110 | if (_obj2) | |
9111 | delete _arg2; | |
9112 | } | |
9113 | return _resultobj; | |
9114 | } | |
9115 | ||
9116 | #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2)) | |
9117 | static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9118 | PyObject * _resultobj; | |
9119 | bool _result; | |
9120 | wxFileType * _arg0; | |
9121 | wxString * _arg1; | |
9122 | wxString * _arg2; | |
9123 | bool _arg3 = (bool ) TRUE; | |
9124 | PyObject * _argo0 = 0; | |
9125 | PyObject * _obj1 = 0; | |
9126 | PyObject * _obj2 = 0; | |
9127 | int tempbool3 = (int) TRUE; | |
9128 | char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL }; | |
9129 | ||
9130 | self = self; | |
9131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) | |
9132 | return NULL; | |
9133 | if (_argo0) { | |
9134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p."); | |
9137 | return NULL; | |
9138 | } | |
9139 | } | |
9140 | { | |
c8bc7bb8 RD |
9141 | _arg1 = wxString_in_helper(_obj1); |
9142 | if (_arg1 == NULL) | |
b37c7e1d | 9143 | return NULL; |
b37c7e1d RD |
9144 | } |
9145 | { | |
c8bc7bb8 RD |
9146 | _arg2 = wxString_in_helper(_obj2); |
9147 | if (_arg2 == NULL) | |
b37c7e1d | 9148 | return NULL; |
b37c7e1d RD |
9149 | } |
9150 | _arg3 = (bool ) tempbool3; | |
9151 | { | |
4268f798 | 9152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9153 | _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3); |
b37c7e1d | 9154 | |
4268f798 RD |
9155 | wxPyEndAllowThreads(__tstate); |
9156 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9157 | } _resultobj = Py_BuildValue("i",_result); |
9158 | { | |
9159 | if (_obj1) | |
9160 | delete _arg1; | |
9161 | } | |
9162 | { | |
9163 | if (_obj2) | |
9164 | delete _arg2; | |
9165 | } | |
9166 | return _resultobj; | |
9167 | } | |
9168 | ||
9169 | #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1)) | |
9170 | static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9171 | PyObject * _resultobj; | |
9172 | bool _result; | |
9173 | wxFileType * _arg0; | |
137b5242 | 9174 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9175 | int _arg2 = (int ) 0; |
9176 | PyObject * _argo0 = 0; | |
9177 | PyObject * _obj1 = 0; | |
9178 | char *_kwnames[] = { "self","cmd","index", NULL }; | |
9179 | ||
9180 | self = self; | |
9181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
9182 | return NULL; | |
9183 | if (_argo0) { | |
9184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p."); | |
9187 | return NULL; | |
9188 | } | |
9189 | } | |
9190 | if (_obj1) | |
9191 | { | |
c8bc7bb8 RD |
9192 | _arg1 = wxString_in_helper(_obj1); |
9193 | if (_arg1 == NULL) | |
b37c7e1d | 9194 | return NULL; |
b37c7e1d RD |
9195 | } |
9196 | { | |
4268f798 | 9197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9198 | _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 9199 | |
4268f798 RD |
9200 | wxPyEndAllowThreads(__tstate); |
9201 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9202 | } _resultobj = Py_BuildValue("i",_result); |
9203 | { | |
9204 | if (_obj1) | |
9205 | delete _arg1; | |
9206 | } | |
9207 | return _resultobj; | |
9208 | } | |
9209 | ||
9210 | #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate()) | |
9211 | static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9212 | PyObject * _resultobj; | |
9213 | bool _result; | |
9214 | wxFileType * _arg0; | |
9215 | PyObject * _argo0 = 0; | |
9216 | char *_kwnames[] = { "self", NULL }; | |
9217 | ||
9218 | self = self; | |
9219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0)) | |
9220 | return NULL; | |
9221 | if (_argo0) { | |
9222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p."); | |
9225 | return NULL; | |
9226 | } | |
9227 | } | |
9228 | { | |
4268f798 | 9229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9230 | _result = (bool )wxFileType_Unassociate(_arg0); |
b37c7e1d | 9231 | |
4268f798 RD |
9232 | wxPyEndAllowThreads(__tstate); |
9233 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9234 | } _resultobj = Py_BuildValue("i",_result); |
9235 | return _resultobj; | |
9236 | } | |
9237 | ||
9238 | static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9239 | PyObject * _resultobj; | |
9240 | wxString * _result; | |
9241 | wxString * _arg0; | |
9242 | wxFileType::MessageParameters * _arg1; | |
9243 | PyObject * _obj0 = 0; | |
9244 | PyObject * _argo1 = 0; | |
9245 | char *_kwnames[] = { "command","params", NULL }; | |
9246 | ||
9247 | self = self; | |
9248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1)) | |
9249 | return NULL; | |
9250 | { | |
c8bc7bb8 RD |
9251 | _arg0 = wxString_in_helper(_obj0); |
9252 | if (_arg0 == NULL) | |
b37c7e1d | 9253 | return NULL; |
b37c7e1d RD |
9254 | } |
9255 | if (_argo1) { | |
9256 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9257 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) { | |
9258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p."); | |
9259 | return NULL; | |
9260 | } | |
9261 | } | |
9262 | { | |
4268f798 | 9263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9264 | _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1)); |
b37c7e1d | 9265 | |
4268f798 RD |
9266 | wxPyEndAllowThreads(__tstate); |
9267 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 9268 | }{ |
c8bc7bb8 RD |
9269 | #if wxUSE_UNICODE |
9270 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9271 | #else | |
b37c7e1d | 9272 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9273 | #endif |
b37c7e1d RD |
9274 | } |
9275 | { | |
9276 | if (_obj0) | |
9277 | delete _arg0; | |
9278 | } | |
9279 | { | |
9280 | delete _result; | |
9281 | } | |
9282 | return _resultobj; | |
9283 | } | |
9284 | ||
9285 | #define delete_wxFileType(_swigobj) (delete _swigobj) | |
9286 | static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9287 | PyObject * _resultobj; | |
9288 | wxFileType * _arg0; | |
9289 | PyObject * _argo0 = 0; | |
9290 | char *_kwnames[] = { "self", NULL }; | |
9291 | ||
9292 | self = self; | |
9293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0)) | |
9294 | return NULL; | |
9295 | if (_argo0) { | |
9296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p."); | |
9299 | return NULL; | |
9300 | } | |
9301 | } | |
9302 | { | |
4268f798 | 9303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9304 | delete_wxFileType(_arg0); |
b37c7e1d | 9305 | |
4268f798 RD |
9306 | wxPyEndAllowThreads(__tstate); |
9307 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9308 | } Py_INCREF(Py_None); |
9309 | _resultobj = Py_None; | |
9310 | return _resultobj; | |
9311 | } | |
9312 | ||
9313 | static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9314 | PyObject * _resultobj; | |
9315 | bool _result; | |
9316 | wxString * _arg0; | |
9317 | wxString * _arg1; | |
9318 | PyObject * _obj0 = 0; | |
9319 | PyObject * _obj1 = 0; | |
9320 | char *_kwnames[] = { "mimeType","wildcard", NULL }; | |
9321 | ||
9322 | self = self; | |
9323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1)) | |
9324 | return NULL; | |
9325 | { | |
c8bc7bb8 RD |
9326 | _arg0 = wxString_in_helper(_obj0); |
9327 | if (_arg0 == NULL) | |
b37c7e1d | 9328 | return NULL; |
b37c7e1d RD |
9329 | } |
9330 | { | |
c8bc7bb8 RD |
9331 | _arg1 = wxString_in_helper(_obj1); |
9332 | if (_arg1 == NULL) | |
b37c7e1d | 9333 | return NULL; |
b37c7e1d RD |
9334 | } |
9335 | { | |
4268f798 | 9336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9337 | _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1); |
b37c7e1d | 9338 | |
4268f798 RD |
9339 | wxPyEndAllowThreads(__tstate); |
9340 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9341 | } _resultobj = Py_BuildValue("i",_result); |
9342 | { | |
9343 | if (_obj0) | |
9344 | delete _arg0; | |
9345 | } | |
9346 | { | |
9347 | if (_obj1) | |
9348 | delete _arg1; | |
9349 | } | |
9350 | return _resultobj; | |
9351 | } | |
9352 | ||
9353 | #define new_wxMimeTypesManager() (new wxMimeTypesManager()) | |
9354 | static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9355 | PyObject * _resultobj; | |
9356 | wxMimeTypesManager * _result; | |
9357 | char *_kwnames[] = { NULL }; | |
9358 | char _ptemp[128]; | |
9359 | ||
9360 | self = self; | |
9361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames)) | |
9362 | return NULL; | |
9363 | { | |
4268f798 | 9364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9365 | _result = (wxMimeTypesManager *)new_wxMimeTypesManager(); |
b37c7e1d | 9366 | |
4268f798 RD |
9367 | wxPyEndAllowThreads(__tstate); |
9368 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9369 | } if (_result) { |
9370 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p"); | |
9371 | _resultobj = Py_BuildValue("s",_ptemp); | |
9372 | } else { | |
9373 | Py_INCREF(Py_None); | |
9374 | _resultobj = Py_None; | |
9375 | } | |
9376 | return _resultobj; | |
9377 | } | |
9378 | ||
9379 | #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1)) | |
9380 | static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9381 | PyObject * _resultobj; | |
9382 | wxMimeTypesManager * _arg0; | |
9383 | int _arg1 = (int ) (wxMAILCAP_STANDARD); | |
137b5242 | 9384 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9385 | PyObject * _argo0 = 0; |
9386 | PyObject * _obj2 = 0; | |
9387 | char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL }; | |
9388 | ||
9389 | self = self; | |
9390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9391 | return NULL; | |
9392 | if (_argo0) { | |
9393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p."); | |
9396 | return NULL; | |
9397 | } | |
9398 | } | |
9399 | if (_obj2) | |
9400 | { | |
c8bc7bb8 RD |
9401 | _arg2 = wxString_in_helper(_obj2); |
9402 | if (_arg2 == NULL) | |
b37c7e1d | 9403 | return NULL; |
b37c7e1d RD |
9404 | } |
9405 | { | |
4268f798 | 9406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9407 | wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2); |
b37c7e1d | 9408 | |
4268f798 RD |
9409 | wxPyEndAllowThreads(__tstate); |
9410 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9411 | } Py_INCREF(Py_None); |
9412 | _resultobj = Py_None; | |
9413 | { | |
9414 | if (_obj2) | |
9415 | delete _arg2; | |
9416 | } | |
9417 | return _resultobj; | |
9418 | } | |
9419 | ||
9420 | #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData()) | |
9421 | static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9422 | PyObject * _resultobj; | |
9423 | wxMimeTypesManager * _arg0; | |
9424 | PyObject * _argo0 = 0; | |
9425 | char *_kwnames[] = { "self", NULL }; | |
9426 | ||
9427 | self = self; | |
9428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0)) | |
9429 | return NULL; | |
9430 | if (_argo0) { | |
9431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p."); | |
9434 | return NULL; | |
9435 | } | |
9436 | } | |
9437 | { | |
4268f798 | 9438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9439 | wxMimeTypesManager_ClearData(_arg0); |
b37c7e1d | 9440 | |
4268f798 RD |
9441 | wxPyEndAllowThreads(__tstate); |
9442 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9443 | } Py_INCREF(Py_None); |
9444 | _resultobj = Py_None; | |
9445 | return _resultobj; | |
9446 | } | |
9447 | ||
9448 | #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0)) | |
9449 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9450 | PyObject * _resultobj; | |
9451 | wxFileType * _result; | |
9452 | wxMimeTypesManager * _arg0; | |
9453 | wxString * _arg1; | |
9454 | PyObject * _argo0 = 0; | |
9455 | PyObject * _obj1 = 0; | |
9456 | char *_kwnames[] = { "self","ext", NULL }; | |
9457 | char _ptemp[128]; | |
9458 | ||
9459 | self = self; | |
9460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1)) | |
9461 | return NULL; | |
9462 | if (_argo0) { | |
9463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p."); | |
9466 | return NULL; | |
9467 | } | |
9468 | } | |
9469 | { | |
c8bc7bb8 RD |
9470 | _arg1 = wxString_in_helper(_obj1); |
9471 | if (_arg1 == NULL) | |
b37c7e1d | 9472 | return NULL; |
b37c7e1d RD |
9473 | } |
9474 | { | |
4268f798 | 9475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9476 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1); |
b37c7e1d | 9477 | |
4268f798 RD |
9478 | wxPyEndAllowThreads(__tstate); |
9479 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9480 | } if (_result) { |
9481 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9482 | _resultobj = Py_BuildValue("s",_ptemp); | |
9483 | } else { | |
9484 | Py_INCREF(Py_None); | |
9485 | _resultobj = Py_None; | |
9486 | } | |
9487 | { | |
9488 | if (_obj1) | |
9489 | delete _arg1; | |
9490 | } | |
9491 | return _resultobj; | |
9492 | } | |
9493 | ||
9494 | #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0)) | |
9495 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9496 | PyObject * _resultobj; | |
9497 | wxFileType * _result; | |
9498 | wxMimeTypesManager * _arg0; | |
9499 | wxString * _arg1; | |
9500 | PyObject * _argo0 = 0; | |
9501 | PyObject * _obj1 = 0; | |
9502 | char *_kwnames[] = { "self","mimeType", NULL }; | |
9503 | char _ptemp[128]; | |
9504 | ||
9505 | self = self; | |
9506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1)) | |
9507 | return NULL; | |
9508 | if (_argo0) { | |
9509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p."); | |
9512 | return NULL; | |
9513 | } | |
9514 | } | |
9515 | { | |
c8bc7bb8 RD |
9516 | _arg1 = wxString_in_helper(_obj1); |
9517 | if (_arg1 == NULL) | |
b37c7e1d | 9518 | return NULL; |
b37c7e1d RD |
9519 | } |
9520 | { | |
4268f798 | 9521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9522 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_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 | { | |
9534 | if (_obj1) | |
9535 | delete _arg1; | |
9536 | } | |
9537 | return _resultobj; | |
9538 | } | |
9539 | ||
9540 | #define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1)) | |
9541 | static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9542 | PyObject * _resultobj; | |
9543 | bool _result; | |
9544 | wxMimeTypesManager * _arg0; | |
9545 | wxString * _arg1; | |
9546 | bool _arg2 = (bool ) FALSE; | |
9547 | PyObject * _argo0 = 0; | |
9548 | PyObject * _obj1 = 0; | |
9549 | int tempbool2 = (int) FALSE; | |
9550 | char *_kwnames[] = { "self","filename","fallback", NULL }; | |
9551 | ||
9552 | self = self; | |
9553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
9554 | return NULL; | |
9555 | if (_argo0) { | |
9556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p."); | |
9559 | return NULL; | |
9560 | } | |
9561 | } | |
9562 | { | |
c8bc7bb8 RD |
9563 | _arg1 = wxString_in_helper(_obj1); |
9564 | if (_arg1 == NULL) | |
b37c7e1d | 9565 | return NULL; |
b37c7e1d RD |
9566 | } |
9567 | _arg2 = (bool ) tempbool2; | |
9568 | { | |
4268f798 | 9569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9570 | _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2); |
b37c7e1d | 9571 | |
4268f798 RD |
9572 | wxPyEndAllowThreads(__tstate); |
9573 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9574 | } _resultobj = Py_BuildValue("i",_result); |
9575 | { | |
9576 | if (_obj1) | |
9577 | delete _arg1; | |
9578 | } | |
9579 | return _resultobj; | |
9580 | } | |
9581 | ||
9582 | #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0)) | |
9583 | static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9584 | PyObject * _resultobj; | |
9585 | bool _result; | |
9586 | wxMimeTypesManager * _arg0; | |
9587 | wxString * _arg1; | |
9588 | PyObject * _argo0 = 0; | |
9589 | PyObject * _obj1 = 0; | |
9590 | char *_kwnames[] = { "self","filename", NULL }; | |
9591 | ||
9592 | self = self; | |
9593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1)) | |
9594 | return NULL; | |
9595 | if (_argo0) { | |
9596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p."); | |
9599 | return NULL; | |
9600 | } | |
9601 | } | |
9602 | { | |
c8bc7bb8 RD |
9603 | _arg1 = wxString_in_helper(_obj1); |
9604 | if (_arg1 == NULL) | |
b37c7e1d | 9605 | return NULL; |
b37c7e1d RD |
9606 | } |
9607 | { | |
4268f798 | 9608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9609 | _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1); |
b37c7e1d | 9610 | |
4268f798 RD |
9611 | wxPyEndAllowThreads(__tstate); |
9612 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9613 | } _resultobj = Py_BuildValue("i",_result); |
9614 | { | |
9615 | if (_obj1) | |
9616 | delete _arg1; | |
9617 | } | |
9618 | return _resultobj; | |
9619 | } | |
9620 | ||
9621 | static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) { | |
9622 | wxArrayString arr; | |
9623 | self->EnumAllFileTypes(arr); | |
9624 | return wxArrayString2PyList_helper(arr); | |
9625 | } | |
9626 | static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9627 | PyObject * _resultobj; | |
9628 | PyObject * _result; | |
9629 | wxMimeTypesManager * _arg0; | |
9630 | PyObject * _argo0 = 0; | |
9631 | char *_kwnames[] = { "self", NULL }; | |
9632 | ||
9633 | self = self; | |
9634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0)) | |
9635 | return NULL; | |
9636 | if (_argo0) { | |
9637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p."); | |
9640 | return NULL; | |
9641 | } | |
9642 | } | |
9643 | { | |
4268f798 | 9644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9645 | _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0); |
b37c7e1d | 9646 | |
4268f798 RD |
9647 | wxPyEndAllowThreads(__tstate); |
9648 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9649 | }{ |
9650 | _resultobj = _result; | |
9651 | } | |
9652 | return _resultobj; | |
9653 | } | |
9654 | ||
9655 | #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0)) | |
9656 | static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9657 | PyObject * _resultobj; | |
9658 | wxMimeTypesManager * _arg0; | |
9659 | wxFileTypeInfo * _arg1; | |
9660 | PyObject * _argo0 = 0; | |
9661 | PyObject * _argo1 = 0; | |
9662 | char *_kwnames[] = { "self","ft", NULL }; | |
9663 | ||
9664 | self = self; | |
9665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1)) | |
9666 | return NULL; | |
9667 | if (_argo0) { | |
9668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p."); | |
9671 | return NULL; | |
9672 | } | |
9673 | } | |
9674 | if (_argo1) { | |
9675 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9676 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p."); | |
9678 | return NULL; | |
9679 | } | |
9680 | } | |
9681 | { | |
4268f798 | 9682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9683 | wxMimeTypesManager_AddFallback(_arg0,*_arg1); |
b37c7e1d | 9684 | |
4268f798 RD |
9685 | wxPyEndAllowThreads(__tstate); |
9686 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9687 | } Py_INCREF(Py_None); |
9688 | _resultobj = Py_None; | |
9689 | return _resultobj; | |
9690 | } | |
9691 | ||
9692 | #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0)) | |
9693 | static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9694 | PyObject * _resultobj; | |
9695 | wxFileType * _result; | |
9696 | wxMimeTypesManager * _arg0; | |
9697 | wxFileTypeInfo * _arg1; | |
9698 | PyObject * _argo0 = 0; | |
9699 | PyObject * _argo1 = 0; | |
9700 | char *_kwnames[] = { "self","ftInfo", NULL }; | |
9701 | char _ptemp[128]; | |
9702 | ||
9703 | self = self; | |
9704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1)) | |
9705 | return NULL; | |
9706 | if (_argo0) { | |
9707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p."); | |
9710 | return NULL; | |
9711 | } | |
9712 | } | |
9713 | if (_argo1) { | |
9714 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9715 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p."); | |
9717 | return NULL; | |
9718 | } | |
9719 | } | |
9720 | { | |
4268f798 | 9721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9722 | _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1); |
b37c7e1d | 9723 | |
4268f798 RD |
9724 | wxPyEndAllowThreads(__tstate); |
9725 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9726 | } if (_result) { |
9727 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9728 | _resultobj = Py_BuildValue("s",_ptemp); | |
9729 | } else { | |
9730 | Py_INCREF(Py_None); | |
9731 | _resultobj = Py_None; | |
9732 | } | |
9733 | return _resultobj; | |
9734 | } | |
9735 | ||
9736 | #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0)) | |
9737 | static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9738 | PyObject * _resultobj; | |
9739 | bool _result; | |
9740 | wxMimeTypesManager * _arg0; | |
9741 | wxFileType * _arg1; | |
9742 | PyObject * _argo0 = 0; | |
9743 | PyObject * _argo1 = 0; | |
9744 | char *_kwnames[] = { "self","ft", NULL }; | |
9745 | ||
9746 | self = self; | |
9747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1)) | |
9748 | return NULL; | |
9749 | if (_argo0) { | |
9750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p."); | |
9753 | return NULL; | |
9754 | } | |
9755 | } | |
9756 | if (_argo1) { | |
9757 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9758 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) { | |
9759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p."); | |
9760 | return NULL; | |
9761 | } | |
9762 | } | |
9763 | { | |
4268f798 | 9764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9765 | _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1); |
b37c7e1d | 9766 | |
4268f798 RD |
9767 | wxPyEndAllowThreads(__tstate); |
9768 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9769 | } _resultobj = Py_BuildValue("i",_result); |
9770 | return _resultobj; | |
9771 | } | |
9772 | ||
9773 | #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj) | |
9774 | static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9775 | PyObject * _resultobj; | |
9776 | wxMimeTypesManager * _arg0; | |
9777 | PyObject * _argo0 = 0; | |
9778 | char *_kwnames[] = { "self", NULL }; | |
9779 | ||
9780 | self = self; | |
9781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0)) | |
9782 | return NULL; | |
9783 | if (_argo0) { | |
9784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p."); | |
9787 | return NULL; | |
9788 | } | |
9789 | } | |
9790 | { | |
4268f798 | 9791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9792 | delete_wxMimeTypesManager(_arg0); |
b37c7e1d | 9793 | |
4268f798 RD |
9794 | wxPyEndAllowThreads(__tstate); |
9795 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9796 | } Py_INCREF(Py_None); |
9797 | _resultobj = Py_None; | |
9798 | return _resultobj; | |
9799 | } | |
9800 | ||
72797a7d RD |
9801 | static void *SwigwxPyArtProviderTowxObject(void *ptr) { |
9802 | wxPyArtProvider *src; | |
9803 | wxObject *dest; | |
9804 | src = (wxPyArtProvider *) ptr; | |
9805 | dest = (wxObject *) src; | |
9806 | return (void *) dest; | |
9807 | } | |
9808 | ||
9809 | #define new_wxArtProvider() (new wxPyArtProvider()) | |
9810 | static PyObject *_wrap_new_wxArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9811 | PyObject * _resultobj; | |
9812 | wxPyArtProvider * _result; | |
9813 | char *_kwnames[] = { NULL }; | |
9814 | char _ptemp[128]; | |
9815 | ||
9816 | self = self; | |
9817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxArtProvider",_kwnames)) | |
9818 | return NULL; | |
9819 | { | |
9820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9821 | _result = (wxPyArtProvider *)new_wxArtProvider(); | |
9822 | ||
9823 | wxPyEndAllowThreads(__tstate); | |
9824 | if (PyErr_Occurred()) return NULL; | |
9825 | } if (_result) { | |
9826 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyArtProvider_p"); | |
9827 | _resultobj = Py_BuildValue("s",_ptemp); | |
9828 | } else { | |
9829 | Py_INCREF(Py_None); | |
9830 | _resultobj = Py_None; | |
9831 | } | |
9832 | return _resultobj; | |
9833 | } | |
9834 | ||
9835 | #define wxArtProvider__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
9836 | static PyObject *_wrap_wxArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9837 | PyObject * _resultobj; | |
9838 | wxPyArtProvider * _arg0; | |
9839 | PyObject * _arg1; | |
9840 | PyObject * _arg2; | |
9841 | PyObject * _argo0 = 0; | |
9842 | PyObject * _obj1 = 0; | |
9843 | PyObject * _obj2 = 0; | |
9844 | char *_kwnames[] = { "self","self","_class", NULL }; | |
9845 | ||
9846 | self = self; | |
9847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxArtProvider__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9848 | return NULL; | |
9849 | if (_argo0) { | |
9850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider__setCallbackInfo. Expected _wxPyArtProvider_p."); | |
9853 | return NULL; | |
9854 | } | |
9855 | } | |
9856 | { | |
9857 | _arg1 = _obj1; | |
9858 | } | |
9859 | { | |
9860 | _arg2 = _obj2; | |
9861 | } | |
9862 | { | |
9863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9864 | wxArtProvider__setCallbackInfo(_arg0,_arg1,_arg2); | |
9865 | ||
9866 | wxPyEndAllowThreads(__tstate); | |
9867 | if (PyErr_Occurred()) return NULL; | |
9868 | } Py_INCREF(Py_None); | |
9869 | _resultobj = Py_None; | |
9870 | return _resultobj; | |
9871 | } | |
9872 | ||
9873 | static PyObject *_wrap_wxArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9874 | PyObject * _resultobj; | |
9875 | wxPyArtProvider * _arg0; | |
9876 | PyObject * _argo0 = 0; | |
9877 | char *_kwnames[] = { "provider", NULL }; | |
9878 | ||
9879 | self = self; | |
9880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_PushProvider",_kwnames,&_argo0)) | |
9881 | return NULL; | |
9882 | if (_argo0) { | |
9883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_PushProvider. Expected _wxPyArtProvider_p."); | |
9886 | return NULL; | |
9887 | } | |
9888 | } | |
9889 | { | |
9890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9891 | wxPyArtProvider::PushProvider(_arg0); | |
9892 | ||
9893 | wxPyEndAllowThreads(__tstate); | |
9894 | if (PyErr_Occurred()) return NULL; | |
9895 | } Py_INCREF(Py_None); | |
9896 | _resultobj = Py_None; | |
9897 | return _resultobj; | |
9898 | } | |
9899 | ||
9900 | static PyObject *_wrap_wxArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9901 | PyObject * _resultobj; | |
9902 | bool _result; | |
9903 | char *_kwnames[] = { NULL }; | |
9904 | ||
9905 | self = self; | |
9906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxArtProvider_PopProvider",_kwnames)) | |
9907 | return NULL; | |
9908 | { | |
9909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9910 | _result = (bool )wxPyArtProvider::PopProvider(); | |
9911 | ||
9912 | wxPyEndAllowThreads(__tstate); | |
9913 | if (PyErr_Occurred()) return NULL; | |
9914 | } _resultobj = Py_BuildValue("i",_result); | |
9915 | return _resultobj; | |
9916 | } | |
9917 | ||
9918 | static PyObject *_wrap_wxArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9919 | PyObject * _resultobj; | |
9920 | bool _result; | |
9921 | wxPyArtProvider * _arg0; | |
9922 | PyObject * _argo0 = 0; | |
9923 | char *_kwnames[] = { "provider", NULL }; | |
9924 | ||
9925 | self = self; | |
9926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_RemoveProvider",_kwnames,&_argo0)) | |
9927 | return NULL; | |
9928 | if (_argo0) { | |
9929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_RemoveProvider. Expected _wxPyArtProvider_p."); | |
9932 | return NULL; | |
9933 | } | |
9934 | } | |
9935 | { | |
9936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9937 | _result = (bool )wxPyArtProvider::RemoveProvider(_arg0); | |
9938 | ||
9939 | wxPyEndAllowThreads(__tstate); | |
9940 | if (PyErr_Occurred()) return NULL; | |
9941 | } _resultobj = Py_BuildValue("i",_result); | |
9942 | return _resultobj; | |
9943 | } | |
9944 | ||
9945 | static PyObject *_wrap_wxArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9946 | PyObject * _resultobj; | |
9947 | wxBitmap * _result; | |
9948 | wxString * _arg0; | |
9949 | wxString * _arg1 = (wxString *) &wxPyART_OTHER; | |
9950 | wxSize * _arg2 = (wxSize *) &wxDefaultSize; | |
9951 | PyObject * _obj0 = 0; | |
9952 | PyObject * _obj1 = 0; | |
9953 | wxSize temp; | |
9954 | PyObject * _obj2 = 0; | |
9955 | char *_kwnames[] = { "id","client","size", NULL }; | |
9956 | char _ptemp[128]; | |
9957 | ||
9958 | self = self; | |
9959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetBitmap",_kwnames,&_obj0,&_obj1,&_obj2)) | |
9960 | return NULL; | |
9961 | { | |
9962 | _arg0 = wxString_in_helper(_obj0); | |
9963 | if (_arg0 == NULL) | |
9964 | return NULL; | |
9965 | } | |
9966 | if (_obj1) | |
9967 | { | |
9968 | _arg1 = wxString_in_helper(_obj1); | |
9969 | if (_arg1 == NULL) | |
9970 | return NULL; | |
9971 | } | |
9972 | if (_obj2) | |
9973 | { | |
9974 | _arg2 = &temp; | |
9975 | if (! wxSize_helper(_obj2, &_arg2)) | |
9976 | return NULL; | |
9977 | } | |
9978 | { | |
9979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9980 | _result = new wxBitmap (wxPyArtProvider::GetBitmap(*_arg0,*_arg1,*_arg2)); | |
9981 | ||
9982 | wxPyEndAllowThreads(__tstate); | |
9983 | if (PyErr_Occurred()) return NULL; | |
9984 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
9985 | _resultobj = Py_BuildValue("s",_ptemp); | |
9986 | { | |
9987 | if (_obj0) | |
9988 | delete _arg0; | |
9989 | } | |
9990 | { | |
9991 | if (_obj1) | |
9992 | delete _arg1; | |
9993 | } | |
9994 | return _resultobj; | |
9995 | } | |
9996 | ||
9997 | static PyObject *_wrap_wxArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9998 | PyObject * _resultobj; | |
9999 | wxIcon * _result; | |
10000 | wxString * _arg0; | |
10001 | wxString * _arg1 = (wxString *) &wxPyART_OTHER; | |
10002 | wxSize * _arg2 = (wxSize *) &wxDefaultSize; | |
10003 | PyObject * _obj0 = 0; | |
10004 | PyObject * _obj1 = 0; | |
10005 | wxSize temp; | |
10006 | PyObject * _obj2 = 0; | |
10007 | char *_kwnames[] = { "id","client","size", NULL }; | |
10008 | char _ptemp[128]; | |
10009 | ||
10010 | self = self; | |
10011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetIcon",_kwnames,&_obj0,&_obj1,&_obj2)) | |
10012 | return NULL; | |
10013 | { | |
10014 | _arg0 = wxString_in_helper(_obj0); | |
10015 | if (_arg0 == NULL) | |
10016 | return NULL; | |
10017 | } | |
10018 | if (_obj1) | |
10019 | { | |
10020 | _arg1 = wxString_in_helper(_obj1); | |
10021 | if (_arg1 == NULL) | |
10022 | return NULL; | |
10023 | } | |
10024 | if (_obj2) | |
10025 | { | |
10026 | _arg2 = &temp; | |
10027 | if (! wxSize_helper(_obj2, &_arg2)) | |
10028 | return NULL; | |
10029 | } | |
10030 | { | |
10031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10032 | _result = new wxIcon (wxPyArtProvider::GetIcon(*_arg0,*_arg1,*_arg2)); | |
10033 | ||
10034 | wxPyEndAllowThreads(__tstate); | |
10035 | if (PyErr_Occurred()) return NULL; | |
10036 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); | |
10037 | _resultobj = Py_BuildValue("s",_ptemp); | |
10038 | { | |
10039 | if (_obj0) | |
10040 | delete _arg0; | |
10041 | } | |
10042 | { | |
10043 | if (_obj1) | |
10044 | delete _arg1; | |
10045 | } | |
10046 | return _resultobj; | |
10047 | } | |
10048 | ||
10049 | static PyObject *_wrap_wxArtProvider_CleanUpProviders(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10050 | PyObject * _resultobj; | |
10051 | char *_kwnames[] = { NULL }; | |
10052 | ||
10053 | self = self; | |
10054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxArtProvider_CleanUpProviders",_kwnames)) | |
10055 | return NULL; | |
10056 | { | |
10057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10058 | wxPyArtProvider::CleanUpProviders(); | |
10059 | ||
10060 | wxPyEndAllowThreads(__tstate); | |
10061 | if (PyErr_Occurred()) return NULL; | |
10062 | } Py_INCREF(Py_None); | |
10063 | _resultobj = Py_None; | |
10064 | return _resultobj; | |
10065 | } | |
10066 | ||
7dbce44a RD |
10067 | static void *SwigwxFileHistoryTowxObject(void *ptr) { |
10068 | wxFileHistory *src; | |
10069 | wxObject *dest; | |
10070 | src = (wxFileHistory *) ptr; | |
10071 | dest = (wxObject *) src; | |
10072 | return (void *) dest; | |
10073 | } | |
10074 | ||
10075 | #define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0)) | |
10076 | static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10077 | PyObject * _resultobj; | |
10078 | wxFileHistory * _result; | |
10079 | int _arg0 = (int ) 9; | |
10080 | char *_kwnames[] = { "maxFiles", NULL }; | |
10081 | char _ptemp[128]; | |
10082 | ||
10083 | self = self; | |
10084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0)) | |
10085 | return NULL; | |
10086 | { | |
4268f798 | 10087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10088 | _result = (wxFileHistory *)new_wxFileHistory(_arg0); |
7dbce44a | 10089 | |
4268f798 RD |
10090 | wxPyEndAllowThreads(__tstate); |
10091 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10092 | } if (_result) { |
10093 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p"); | |
10094 | _resultobj = Py_BuildValue("s",_ptemp); | |
10095 | } else { | |
10096 | Py_INCREF(Py_None); | |
10097 | _resultobj = Py_None; | |
10098 | } | |
10099 | return _resultobj; | |
10100 | } | |
10101 | ||
10102 | #define delete_wxFileHistory(_swigobj) (delete _swigobj) | |
10103 | static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10104 | PyObject * _resultobj; | |
10105 | wxFileHistory * _arg0; | |
10106 | PyObject * _argo0 = 0; | |
10107 | char *_kwnames[] = { "self", NULL }; | |
10108 | ||
10109 | self = self; | |
10110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0)) | |
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 delete_wxFileHistory. Expected _wxFileHistory_p."); | |
10116 | return NULL; | |
10117 | } | |
10118 | } | |
10119 | { | |
4268f798 | 10120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10121 | delete_wxFileHistory(_arg0); |
7dbce44a | 10122 | |
4268f798 RD |
10123 | wxPyEndAllowThreads(__tstate); |
10124 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10125 | } Py_INCREF(Py_None); |
10126 | _resultobj = Py_None; | |
10127 | return _resultobj; | |
10128 | } | |
10129 | ||
10130 | #define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0)) | |
10131 | static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10132 | PyObject * _resultobj; | |
10133 | wxFileHistory * _arg0; | |
10134 | wxString * _arg1; | |
10135 | PyObject * _argo0 = 0; | |
10136 | PyObject * _obj1 = 0; | |
10137 | char *_kwnames[] = { "self","file", NULL }; | |
10138 | ||
10139 | self = self; | |
10140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1)) | |
10141 | return NULL; | |
10142 | if (_argo0) { | |
10143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p."); | |
10146 | return NULL; | |
10147 | } | |
10148 | } | |
10149 | { | |
c8bc7bb8 RD |
10150 | _arg1 = wxString_in_helper(_obj1); |
10151 | if (_arg1 == NULL) | |
7dbce44a | 10152 | return NULL; |
7dbce44a RD |
10153 | } |
10154 | { | |
4268f798 | 10155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10156 | wxFileHistory_AddFileToHistory(_arg0,*_arg1); |
7dbce44a | 10157 | |
4268f798 RD |
10158 | wxPyEndAllowThreads(__tstate); |
10159 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10160 | } Py_INCREF(Py_None); |
10161 | _resultobj = Py_None; | |
10162 | { | |
10163 | if (_obj1) | |
10164 | delete _arg1; | |
10165 | } | |
10166 | return _resultobj; | |
10167 | } | |
10168 | ||
10169 | #define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0)) | |
10170 | static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10171 | PyObject * _resultobj; | |
10172 | wxFileHistory * _arg0; | |
10173 | int _arg1; | |
10174 | PyObject * _argo0 = 0; | |
10175 | char *_kwnames[] = { "self","i", NULL }; | |
10176 | ||
10177 | self = self; | |
10178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1)) | |
10179 | return NULL; | |
10180 | if (_argo0) { | |
10181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p."); | |
10184 | return NULL; | |
10185 | } | |
10186 | } | |
10187 | { | |
4268f798 | 10188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10189 | wxFileHistory_RemoveFileFromHistory(_arg0,_arg1); |
7dbce44a | 10190 | |
4268f798 RD |
10191 | wxPyEndAllowThreads(__tstate); |
10192 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10193 | } Py_INCREF(Py_None); |
10194 | _resultobj = Py_None; | |
10195 | return _resultobj; | |
10196 | } | |
10197 | ||
10198 | #define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles()) | |
10199 | static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10200 | PyObject * _resultobj; | |
10201 | int _result; | |
10202 | wxFileHistory * _arg0; | |
10203 | PyObject * _argo0 = 0; | |
10204 | char *_kwnames[] = { "self", NULL }; | |
10205 | ||
10206 | self = self; | |
10207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0)) | |
10208 | return NULL; | |
10209 | if (_argo0) { | |
10210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p."); | |
10213 | return NULL; | |
10214 | } | |
10215 | } | |
10216 | { | |
4268f798 | 10217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10218 | _result = (int )wxFileHistory_GetMaxFiles(_arg0); |
7dbce44a | 10219 | |
4268f798 RD |
10220 | wxPyEndAllowThreads(__tstate); |
10221 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10222 | } _resultobj = Py_BuildValue("i",_result); |
10223 | return _resultobj; | |
10224 | } | |
10225 | ||
10226 | #define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0)) | |
10227 | static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10228 | PyObject * _resultobj; | |
10229 | wxFileHistory * _arg0; | |
10230 | wxMenu * _arg1; | |
10231 | PyObject * _argo0 = 0; | |
10232 | PyObject * _argo1 = 0; | |
10233 | char *_kwnames[] = { "self","menu", NULL }; | |
10234 | ||
10235 | self = self; | |
10236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1)) | |
10237 | return NULL; | |
10238 | if (_argo0) { | |
10239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p."); | |
10242 | return NULL; | |
10243 | } | |
10244 | } | |
10245 | if (_argo1) { | |
10246 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10247 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p."); | |
10249 | return NULL; | |
10250 | } | |
10251 | } | |
10252 | { | |
4268f798 | 10253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10254 | wxFileHistory_UseMenu(_arg0,_arg1); |
7dbce44a | 10255 | |
4268f798 RD |
10256 | wxPyEndAllowThreads(__tstate); |
10257 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10258 | } Py_INCREF(Py_None); |
10259 | _resultobj = Py_None; | |
10260 | return _resultobj; | |
10261 | } | |
10262 | ||
10263 | #define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0)) | |
10264 | static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10265 | PyObject * _resultobj; | |
10266 | wxFileHistory * _arg0; | |
10267 | wxMenu * _arg1; | |
10268 | PyObject * _argo0 = 0; | |
10269 | PyObject * _argo1 = 0; | |
10270 | char *_kwnames[] = { "self","menu", NULL }; | |
10271 | ||
10272 | self = self; | |
10273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1)) | |
10274 | return NULL; | |
10275 | if (_argo0) { | |
10276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p."); | |
10279 | return NULL; | |
10280 | } | |
10281 | } | |
10282 | if (_argo1) { | |
10283 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10284 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p."); | |
10286 | return NULL; | |
10287 | } | |
10288 | } | |
10289 | { | |
4268f798 | 10290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10291 | wxFileHistory_RemoveMenu(_arg0,_arg1); |
7dbce44a | 10292 | |
4268f798 RD |
10293 | wxPyEndAllowThreads(__tstate); |
10294 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10295 | } Py_INCREF(Py_None); |
10296 | _resultobj = Py_None; | |
10297 | return _resultobj; | |
10298 | } | |
10299 | ||
10300 | #define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0)) | |
10301 | static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10302 | PyObject * _resultobj; | |
10303 | wxFileHistory * _arg0; | |
10304 | wxConfigBase * _arg1; | |
10305 | PyObject * _argo0 = 0; | |
10306 | PyObject * _argo1 = 0; | |
10307 | char *_kwnames[] = { "self","config", NULL }; | |
10308 | ||
10309 | self = self; | |
10310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1)) | |
10311 | return NULL; | |
10312 | if (_argo0) { | |
10313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p."); | |
10316 | return NULL; | |
10317 | } | |
10318 | } | |
10319 | if (_argo1) { | |
10320 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10321 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
10322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p."); | |
10323 | return NULL; | |
10324 | } | |
10325 | } | |
10326 | { | |
4268f798 | 10327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10328 | wxFileHistory_Load(_arg0,*_arg1); |
7dbce44a | 10329 | |
4268f798 RD |
10330 | wxPyEndAllowThreads(__tstate); |
10331 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10332 | } Py_INCREF(Py_None); |
10333 | _resultobj = Py_None; | |
10334 | return _resultobj; | |
10335 | } | |
10336 | ||
10337 | #define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0)) | |
10338 | static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10339 | PyObject * _resultobj; | |
10340 | wxFileHistory * _arg0; | |
10341 | wxConfigBase * _arg1; | |
10342 | PyObject * _argo0 = 0; | |
10343 | PyObject * _argo1 = 0; | |
10344 | char *_kwnames[] = { "self","config", NULL }; | |
10345 | ||
10346 | self = self; | |
10347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1)) | |
10348 | return NULL; | |
10349 | if (_argo0) { | |
10350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p."); | |
10353 | return NULL; | |
10354 | } | |
10355 | } | |
10356 | if (_argo1) { | |
10357 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10358 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
10359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p."); | |
10360 | return NULL; | |
10361 | } | |
10362 | } | |
10363 | { | |
4268f798 | 10364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10365 | wxFileHistory_Save(_arg0,*_arg1); |
7dbce44a | 10366 | |
4268f798 RD |
10367 | wxPyEndAllowThreads(__tstate); |
10368 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10369 | } Py_INCREF(Py_None); |
10370 | _resultobj = Py_None; | |
10371 | return _resultobj; | |
10372 | } | |
10373 | ||
10374 | #define wxFileHistory_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu()) | |
10375 | static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10376 | PyObject * _resultobj; | |
10377 | wxFileHistory * _arg0; | |
10378 | PyObject * _argo0 = 0; | |
10379 | char *_kwnames[] = { "self", NULL }; | |
10380 | ||
10381 | self = self; | |
10382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0)) | |
10383 | return NULL; | |
10384 | if (_argo0) { | |
10385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p."); | |
10388 | return NULL; | |
10389 | } | |
10390 | } | |
10391 | { | |
4268f798 | 10392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10393 | wxFileHistory_AddFilesToMenu(_arg0); |
7dbce44a | 10394 | |
4268f798 RD |
10395 | wxPyEndAllowThreads(__tstate); |
10396 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10397 | } Py_INCREF(Py_None); |
10398 | _resultobj = Py_None; | |
10399 | return _resultobj; | |
10400 | } | |
10401 | ||
68bc8549 RD |
10402 | #define wxFileHistory_AddFilesToThisMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0)) |
10403 | static PyObject *_wrap_wxFileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7dbce44a RD |
10404 | PyObject * _resultobj; |
10405 | wxFileHistory * _arg0; | |
10406 | wxMenu * _arg1; | |
10407 | PyObject * _argo0 = 0; | |
10408 | PyObject * _argo1 = 0; | |
10409 | char *_kwnames[] = { "self","menu", NULL }; | |
10410 | ||
10411 | self = self; | |
68bc8549 | 10412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToThisMenu",_kwnames,&_argo0,&_argo1)) |
7dbce44a RD |
10413 | return NULL; |
10414 | if (_argo0) { | |
10415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
68bc8549 | 10417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToThisMenu. Expected _wxFileHistory_p."); |
7dbce44a RD |
10418 | return NULL; |
10419 | } | |
10420 | } | |
10421 | if (_argo1) { | |
10422 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10423 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
68bc8549 | 10424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToThisMenu. Expected _wxMenu_p."); |
7dbce44a RD |
10425 | return NULL; |
10426 | } | |
10427 | } | |
10428 | { | |
4268f798 | 10429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
68bc8549 | 10430 | wxFileHistory_AddFilesToThisMenu(_arg0,_arg1); |
7dbce44a | 10431 | |
4268f798 RD |
10432 | wxPyEndAllowThreads(__tstate); |
10433 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10434 | } Py_INCREF(Py_None); |
10435 | _resultobj = Py_None; | |
10436 | return _resultobj; | |
10437 | } | |
10438 | ||
10439 | #define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0)) | |
10440 | static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10441 | PyObject * _resultobj; | |
10442 | wxString * _result; | |
10443 | wxFileHistory * _arg0; | |
10444 | int _arg1; | |
10445 | PyObject * _argo0 = 0; | |
10446 | char *_kwnames[] = { "self","i", NULL }; | |
10447 | ||
10448 | self = self; | |
10449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1)) | |
10450 | return NULL; | |
10451 | if (_argo0) { | |
10452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p."); | |
10455 | return NULL; | |
10456 | } | |
10457 | } | |
10458 | { | |
4268f798 | 10459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10460 | _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1)); |
7dbce44a | 10461 | |
4268f798 RD |
10462 | wxPyEndAllowThreads(__tstate); |
10463 | if (PyErr_Occurred()) return NULL; | |
7dbce44a | 10464 | }{ |
c8bc7bb8 RD |
10465 | #if wxUSE_UNICODE |
10466 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10467 | #else | |
7dbce44a | 10468 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10469 | #endif |
7dbce44a RD |
10470 | } |
10471 | { | |
10472 | delete _result; | |
10473 | } | |
10474 | return _resultobj; | |
10475 | } | |
10476 | ||
10477 | #define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount()) | |
10478 | static PyObject *_wrap_wxFileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10479 | PyObject * _resultobj; | |
10480 | int _result; | |
10481 | wxFileHistory * _arg0; | |
10482 | PyObject * _argo0 = 0; | |
10483 | char *_kwnames[] = { "self", NULL }; | |
10484 | ||
10485 | self = self; | |
10486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetCount",_kwnames,&_argo0)) | |
10487 | return NULL; | |
10488 | if (_argo0) { | |
10489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetCount. Expected _wxFileHistory_p."); | |
10492 | return NULL; | |
10493 | } | |
10494 | } | |
10495 | { | |
4268f798 | 10496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10497 | _result = (int )wxFileHistory_GetCount(_arg0); |
7dbce44a | 10498 | |
4268f798 RD |
10499 | wxPyEndAllowThreads(__tstate); |
10500 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10501 | } _resultobj = Py_BuildValue("i",_result); |
10502 | return _resultobj; | |
10503 | } | |
10504 | ||
10505 | #define wxFileHistory_GetNoHistoryFiles(_swigobj) (_swigobj->GetNoHistoryFiles()) | |
10506 | static PyObject *_wrap_wxFileHistory_GetNoHistoryFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10507 | PyObject * _resultobj; | |
10508 | int _result; | |
10509 | wxFileHistory * _arg0; | |
10510 | PyObject * _argo0 = 0; | |
10511 | char *_kwnames[] = { "self", NULL }; | |
10512 | ||
10513 | self = self; | |
10514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetNoHistoryFiles",_kwnames,&_argo0)) | |
10515 | return NULL; | |
10516 | if (_argo0) { | |
10517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetNoHistoryFiles. Expected _wxFileHistory_p."); | |
10520 | return NULL; | |
10521 | } | |
10522 | } | |
10523 | { | |
4268f798 | 10524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10525 | _result = (int )wxFileHistory_GetNoHistoryFiles(_arg0); |
7dbce44a | 10526 | |
4268f798 RD |
10527 | wxPyEndAllowThreads(__tstate); |
10528 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10529 | } _resultobj = Py_BuildValue("i",_result); |
10530 | return _resultobj; | |
10531 | } | |
10532 | ||
67a92fff RD |
10533 | static void *SwigwxEffectsTowxObject(void *ptr) { |
10534 | wxEffects *src; | |
10535 | wxObject *dest; | |
10536 | src = (wxEffects *) ptr; | |
10537 | dest = (wxObject *) src; | |
10538 | return (void *) dest; | |
10539 | } | |
10540 | ||
10541 | #define new_wxEffects() (new wxEffects()) | |
10542 | static PyObject *_wrap_new_wxEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10543 | PyObject * _resultobj; | |
10544 | wxEffects * _result; | |
10545 | char *_kwnames[] = { NULL }; | |
10546 | char _ptemp[128]; | |
10547 | ||
10548 | self = self; | |
10549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEffects",_kwnames)) | |
10550 | return NULL; | |
10551 | { | |
10552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10553 | _result = (wxEffects *)new_wxEffects(); | |
10554 | ||
10555 | wxPyEndAllowThreads(__tstate); | |
10556 | if (PyErr_Occurred()) return NULL; | |
10557 | } if (_result) { | |
10558 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEffects_p"); | |
10559 | _resultobj = Py_BuildValue("s",_ptemp); | |
10560 | } else { | |
10561 | Py_INCREF(Py_None); | |
10562 | _resultobj = Py_None; | |
10563 | } | |
10564 | return _resultobj; | |
10565 | } | |
10566 | ||
10567 | #define wxEffects_GetHighlightColour(_swigobj) (_swigobj->GetHighlightColour()) | |
10568 | static PyObject *_wrap_wxEffects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10569 | PyObject * _resultobj; | |
10570 | wxColour * _result; | |
10571 | wxEffects * _arg0; | |
10572 | PyObject * _argo0 = 0; | |
10573 | char *_kwnames[] = { "self", NULL }; | |
10574 | char _ptemp[128]; | |
10575 | ||
10576 | self = self; | |
10577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetHighlightColour",_kwnames,&_argo0)) | |
10578 | return NULL; | |
10579 | if (_argo0) { | |
10580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetHighlightColour. Expected _wxEffects_p."); | |
10583 | return NULL; | |
10584 | } | |
10585 | } | |
10586 | { | |
10587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10588 | _result = new wxColour (wxEffects_GetHighlightColour(_arg0)); | |
10589 | ||
10590 | wxPyEndAllowThreads(__tstate); | |
10591 | if (PyErr_Occurred()) return NULL; | |
10592 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10593 | _resultobj = Py_BuildValue("s",_ptemp); | |
10594 | return _resultobj; | |
10595 | } | |
10596 | ||
10597 | #define wxEffects_GetLightShadow(_swigobj) (_swigobj->GetLightShadow()) | |
10598 | static PyObject *_wrap_wxEffects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10599 | PyObject * _resultobj; | |
10600 | wxColour * _result; | |
10601 | wxEffects * _arg0; | |
10602 | PyObject * _argo0 = 0; | |
10603 | char *_kwnames[] = { "self", NULL }; | |
10604 | char _ptemp[128]; | |
10605 | ||
10606 | self = self; | |
10607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetLightShadow",_kwnames,&_argo0)) | |
10608 | return NULL; | |
10609 | if (_argo0) { | |
10610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetLightShadow. Expected _wxEffects_p."); | |
10613 | return NULL; | |
10614 | } | |
10615 | } | |
10616 | { | |
10617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10618 | _result = new wxColour (wxEffects_GetLightShadow(_arg0)); | |
10619 | ||
10620 | wxPyEndAllowThreads(__tstate); | |
10621 | if (PyErr_Occurred()) return NULL; | |
10622 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10623 | _resultobj = Py_BuildValue("s",_ptemp); | |
10624 | return _resultobj; | |
10625 | } | |
10626 | ||
10627 | #define wxEffects_GetFaceColour(_swigobj) (_swigobj->GetFaceColour()) | |
10628 | static PyObject *_wrap_wxEffects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10629 | PyObject * _resultobj; | |
10630 | wxColour * _result; | |
10631 | wxEffects * _arg0; | |
10632 | PyObject * _argo0 = 0; | |
10633 | char *_kwnames[] = { "self", NULL }; | |
10634 | char _ptemp[128]; | |
10635 | ||
10636 | self = self; | |
10637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetFaceColour",_kwnames,&_argo0)) | |
10638 | return NULL; | |
10639 | if (_argo0) { | |
10640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetFaceColour. Expected _wxEffects_p."); | |
10643 | return NULL; | |
10644 | } | |
10645 | } | |
10646 | { | |
10647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10648 | _result = new wxColour (wxEffects_GetFaceColour(_arg0)); | |
10649 | ||
10650 | wxPyEndAllowThreads(__tstate); | |
10651 | if (PyErr_Occurred()) return NULL; | |
10652 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10653 | _resultobj = Py_BuildValue("s",_ptemp); | |
10654 | return _resultobj; | |
10655 | } | |
10656 | ||
10657 | #define wxEffects_GetMediumShadow(_swigobj) (_swigobj->GetMediumShadow()) | |
10658 | static PyObject *_wrap_wxEffects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10659 | PyObject * _resultobj; | |
10660 | wxColour * _result; | |
10661 | wxEffects * _arg0; | |
10662 | PyObject * _argo0 = 0; | |
10663 | char *_kwnames[] = { "self", NULL }; | |
10664 | char _ptemp[128]; | |
10665 | ||
10666 | self = self; | |
10667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetMediumShadow",_kwnames,&_argo0)) | |
10668 | return NULL; | |
10669 | if (_argo0) { | |
10670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetMediumShadow. Expected _wxEffects_p."); | |
10673 | return NULL; | |
10674 | } | |
10675 | } | |
10676 | { | |
10677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10678 | _result = new wxColour (wxEffects_GetMediumShadow(_arg0)); | |
10679 | ||
10680 | wxPyEndAllowThreads(__tstate); | |
10681 | if (PyErr_Occurred()) return NULL; | |
10682 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10683 | _resultobj = Py_BuildValue("s",_ptemp); | |
10684 | return _resultobj; | |
10685 | } | |
10686 | ||
10687 | #define wxEffects_GetDarkShadow(_swigobj) (_swigobj->GetDarkShadow()) | |
10688 | static PyObject *_wrap_wxEffects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10689 | PyObject * _resultobj; | |
10690 | wxColour * _result; | |
10691 | wxEffects * _arg0; | |
10692 | PyObject * _argo0 = 0; | |
10693 | char *_kwnames[] = { "self", NULL }; | |
10694 | char _ptemp[128]; | |
10695 | ||
10696 | self = self; | |
10697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetDarkShadow",_kwnames,&_argo0)) | |
10698 | return NULL; | |
10699 | if (_argo0) { | |
10700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetDarkShadow. Expected _wxEffects_p."); | |
10703 | return NULL; | |
10704 | } | |
10705 | } | |
10706 | { | |
10707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10708 | _result = new wxColour (wxEffects_GetDarkShadow(_arg0)); | |
10709 | ||
10710 | wxPyEndAllowThreads(__tstate); | |
10711 | if (PyErr_Occurred()) return NULL; | |
10712 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10713 | _resultobj = Py_BuildValue("s",_ptemp); | |
10714 | return _resultobj; | |
10715 | } | |
10716 | ||
10717 | #define wxEffects_SetHighlightColour(_swigobj,_swigarg0) (_swigobj->SetHighlightColour(_swigarg0)) | |
10718 | static PyObject *_wrap_wxEffects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10719 | PyObject * _resultobj; | |
10720 | wxEffects * _arg0; | |
10721 | wxColour * _arg1; | |
10722 | PyObject * _argo0 = 0; | |
10723 | wxColour temp; | |
10724 | PyObject * _obj1 = 0; | |
10725 | char *_kwnames[] = { "self","c", NULL }; | |
10726 | ||
10727 | self = self; | |
10728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetHighlightColour",_kwnames,&_argo0,&_obj1)) | |
10729 | return NULL; | |
10730 | if (_argo0) { | |
10731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetHighlightColour. Expected _wxEffects_p."); | |
10734 | return NULL; | |
10735 | } | |
10736 | } | |
10737 | { | |
10738 | _arg1 = &temp; | |
10739 | if (! wxColour_helper(_obj1, &_arg1)) | |
10740 | return NULL; | |
10741 | } | |
10742 | { | |
10743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10744 | wxEffects_SetHighlightColour(_arg0,*_arg1); | |
10745 | ||
10746 | wxPyEndAllowThreads(__tstate); | |
10747 | if (PyErr_Occurred()) return NULL; | |
10748 | } Py_INCREF(Py_None); | |
10749 | _resultobj = Py_None; | |
10750 | return _resultobj; | |
10751 | } | |
10752 | ||
10753 | #define wxEffects_SetLightShadow(_swigobj,_swigarg0) (_swigobj->SetLightShadow(_swigarg0)) | |
10754 | static PyObject *_wrap_wxEffects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10755 | PyObject * _resultobj; | |
10756 | wxEffects * _arg0; | |
10757 | wxColour * _arg1; | |
10758 | PyObject * _argo0 = 0; | |
10759 | wxColour temp; | |
10760 | PyObject * _obj1 = 0; | |
10761 | char *_kwnames[] = { "self","c", NULL }; | |
10762 | ||
10763 | self = self; | |
10764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetLightShadow",_kwnames,&_argo0,&_obj1)) | |
10765 | return NULL; | |
10766 | if (_argo0) { | |
10767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetLightShadow. Expected _wxEffects_p."); | |
10770 | return NULL; | |
10771 | } | |
10772 | } | |
10773 | { | |
10774 | _arg1 = &temp; | |
10775 | if (! wxColour_helper(_obj1, &_arg1)) | |
10776 | return NULL; | |
10777 | } | |
10778 | { | |
10779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10780 | wxEffects_SetLightShadow(_arg0,*_arg1); | |
10781 | ||
10782 | wxPyEndAllowThreads(__tstate); | |
10783 | if (PyErr_Occurred()) return NULL; | |
10784 | } Py_INCREF(Py_None); | |
10785 | _resultobj = Py_None; | |
10786 | return _resultobj; | |
10787 | } | |
10788 | ||
10789 | #define wxEffects_SetFaceColour(_swigobj,_swigarg0) (_swigobj->SetFaceColour(_swigarg0)) | |
10790 | static PyObject *_wrap_wxEffects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10791 | PyObject * _resultobj; | |
10792 | wxEffects * _arg0; | |
10793 | wxColour * _arg1; | |
10794 | PyObject * _argo0 = 0; | |
10795 | wxColour temp; | |
10796 | PyObject * _obj1 = 0; | |
10797 | char *_kwnames[] = { "self","c", NULL }; | |
10798 | ||
10799 | self = self; | |
10800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetFaceColour",_kwnames,&_argo0,&_obj1)) | |
10801 | return NULL; | |
10802 | if (_argo0) { | |
10803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetFaceColour. Expected _wxEffects_p."); | |
10806 | return NULL; | |
10807 | } | |
10808 | } | |
10809 | { | |
10810 | _arg1 = &temp; | |
10811 | if (! wxColour_helper(_obj1, &_arg1)) | |
10812 | return NULL; | |
10813 | } | |
10814 | { | |
10815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10816 | wxEffects_SetFaceColour(_arg0,*_arg1); | |
10817 | ||
10818 | wxPyEndAllowThreads(__tstate); | |
10819 | if (PyErr_Occurred()) return NULL; | |
10820 | } Py_INCREF(Py_None); | |
10821 | _resultobj = Py_None; | |
10822 | return _resultobj; | |
10823 | } | |
10824 | ||
10825 | #define wxEffects_SetMediumShadow(_swigobj,_swigarg0) (_swigobj->SetMediumShadow(_swigarg0)) | |
10826 | static PyObject *_wrap_wxEffects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10827 | PyObject * _resultobj; | |
10828 | wxEffects * _arg0; | |
10829 | wxColour * _arg1; | |
10830 | PyObject * _argo0 = 0; | |
10831 | wxColour temp; | |
10832 | PyObject * _obj1 = 0; | |
10833 | char *_kwnames[] = { "self","c", NULL }; | |
10834 | ||
10835 | self = self; | |
10836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetMediumShadow",_kwnames,&_argo0,&_obj1)) | |
10837 | return NULL; | |
10838 | if (_argo0) { | |
10839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetMediumShadow. Expected _wxEffects_p."); | |
10842 | return NULL; | |
10843 | } | |
10844 | } | |
10845 | { | |
10846 | _arg1 = &temp; | |
10847 | if (! wxColour_helper(_obj1, &_arg1)) | |
10848 | return NULL; | |
10849 | } | |
10850 | { | |
10851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10852 | wxEffects_SetMediumShadow(_arg0,*_arg1); | |
10853 | ||
10854 | wxPyEndAllowThreads(__tstate); | |
10855 | if (PyErr_Occurred()) return NULL; | |
10856 | } Py_INCREF(Py_None); | |
10857 | _resultobj = Py_None; | |
10858 | return _resultobj; | |
10859 | } | |
10860 | ||
10861 | #define wxEffects_SetDarkShadow(_swigobj,_swigarg0) (_swigobj->SetDarkShadow(_swigarg0)) | |
10862 | static PyObject *_wrap_wxEffects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10863 | PyObject * _resultobj; | |
10864 | wxEffects * _arg0; | |
10865 | wxColour * _arg1; | |
10866 | PyObject * _argo0 = 0; | |
10867 | wxColour temp; | |
10868 | PyObject * _obj1 = 0; | |
10869 | char *_kwnames[] = { "self","c", NULL }; | |
10870 | ||
10871 | self = self; | |
10872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetDarkShadow",_kwnames,&_argo0,&_obj1)) | |
10873 | return NULL; | |
10874 | if (_argo0) { | |
10875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetDarkShadow. Expected _wxEffects_p."); | |
10878 | return NULL; | |
10879 | } | |
10880 | } | |
10881 | { | |
10882 | _arg1 = &temp; | |
10883 | if (! wxColour_helper(_obj1, &_arg1)) | |
10884 | return NULL; | |
10885 | } | |
10886 | { | |
10887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10888 | wxEffects_SetDarkShadow(_arg0,*_arg1); | |
10889 | ||
10890 | wxPyEndAllowThreads(__tstate); | |
10891 | if (PyErr_Occurred()) return NULL; | |
10892 | } Py_INCREF(Py_None); | |
10893 | _resultobj = Py_None; | |
10894 | return _resultobj; | |
10895 | } | |
10896 | ||
10897 | #define wxEffects_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10898 | static PyObject *_wrap_wxEffects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10899 | PyObject * _resultobj; | |
10900 | wxEffects * _arg0; | |
10901 | wxColour * _arg1; | |
10902 | wxColour * _arg2; | |
10903 | wxColour * _arg3; | |
10904 | wxColour * _arg4; | |
10905 | wxColour * _arg5; | |
10906 | PyObject * _argo0 = 0; | |
10907 | wxColour temp; | |
10908 | PyObject * _obj1 = 0; | |
10909 | wxColour temp0; | |
10910 | PyObject * _obj2 = 0; | |
10911 | wxColour temp1; | |
10912 | PyObject * _obj3 = 0; | |
10913 | wxColour temp2; | |
10914 | PyObject * _obj4 = 0; | |
10915 | wxColour temp3; | |
10916 | PyObject * _obj5 = 0; | |
10917 | char *_kwnames[] = { "self","highlightColour","lightShadow","faceColour","mediumShadow","darkShadow", NULL }; | |
10918 | ||
10919 | self = self; | |
10920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOOOO:wxEffects_Set",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&_obj4,&_obj5)) | |
10921 | return NULL; | |
10922 | if (_argo0) { | |
10923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_Set. Expected _wxEffects_p."); | |
10926 | return NULL; | |
10927 | } | |
10928 | } | |
10929 | { | |
10930 | _arg1 = &temp; | |
10931 | if (! wxColour_helper(_obj1, &_arg1)) | |
10932 | return NULL; | |
10933 | } | |
10934 | { | |
10935 | _arg2 = &temp0; | |
10936 | if (! wxColour_helper(_obj2, &_arg2)) | |
10937 | return NULL; | |
10938 | } | |
10939 | { | |
10940 | _arg3 = &temp1; | |
10941 | if (! wxColour_helper(_obj3, &_arg3)) | |
10942 | return NULL; | |
10943 | } | |
10944 | { | |
10945 | _arg4 = &temp2; | |
10946 | if (! wxColour_helper(_obj4, &_arg4)) | |
10947 | return NULL; | |
10948 | } | |
10949 | { | |
10950 | _arg5 = &temp3; | |
10951 | if (! wxColour_helper(_obj5, &_arg5)) | |
10952 | return NULL; | |
10953 | } | |
10954 | { | |
10955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10956 | wxEffects_Set(_arg0,*_arg1,*_arg2,*_arg3,*_arg4,*_arg5); | |
10957 | ||
10958 | wxPyEndAllowThreads(__tstate); | |
10959 | if (PyErr_Occurred()) return NULL; | |
10960 | } Py_INCREF(Py_None); | |
10961 | _resultobj = Py_None; | |
10962 | return _resultobj; | |
10963 | } | |
10964 | ||
10965 | #define wxEffects_DrawSunkenEdge(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawSunkenEdge(_swigarg0,_swigarg1,_swigarg2)) | |
10966 | static PyObject *_wrap_wxEffects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10967 | PyObject * _resultobj; | |
10968 | wxEffects * _arg0; | |
10969 | wxDC * _arg1; | |
10970 | wxRect * _arg2; | |
10971 | int _arg3 = (int ) 1; | |
10972 | PyObject * _argo0 = 0; | |
10973 | PyObject * _argo1 = 0; | |
10974 | wxRect temp; | |
10975 | PyObject * _obj2 = 0; | |
10976 | char *_kwnames[] = { "self","dc","rect","borderSize", NULL }; | |
10977 | ||
10978 | self = self; | |
10979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxEffects_DrawSunkenEdge",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3)) | |
10980 | return NULL; | |
10981 | if (_argo0) { | |
10982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_DrawSunkenEdge. Expected _wxEffects_p."); | |
10985 | return NULL; | |
10986 | } | |
10987 | } | |
10988 | if (_argo1) { | |
10989 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10990 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
10991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEffects_DrawSunkenEdge. Expected _wxDC_p."); | |
10992 | return NULL; | |
10993 | } | |
10994 | } | |
10995 | { | |
10996 | _arg2 = &temp; | |
10997 | if (! wxRect_helper(_obj2, &_arg2)) | |
10998 | return NULL; | |
10999 | } | |
11000 | { | |
11001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11002 | wxEffects_DrawSunkenEdge(_arg0,*_arg1,*_arg2,_arg3); | |
11003 | ||
11004 | wxPyEndAllowThreads(__tstate); | |
11005 | if (PyErr_Occurred()) return NULL; | |
11006 | } Py_INCREF(Py_None); | |
11007 | _resultobj = Py_None; | |
11008 | return _resultobj; | |
11009 | } | |
11010 | ||
11011 | #define wxEffects_TileBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->TileBitmap(_swigarg0,_swigarg1,_swigarg2)) | |
11012 | static PyObject *_wrap_wxEffects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11013 | PyObject * _resultobj; | |
11014 | bool _result; | |
11015 | wxEffects * _arg0; | |
11016 | wxRect * _arg1; | |
11017 | wxDC * _arg2; | |
11018 | wxBitmap * _arg3; | |
11019 | PyObject * _argo0 = 0; | |
11020 | wxRect temp; | |
11021 | PyObject * _obj1 = 0; | |
11022 | PyObject * _argo2 = 0; | |
11023 | PyObject * _argo3 = 0; | |
11024 | char *_kwnames[] = { "self","rect","dc","bitmap", NULL }; | |
11025 | ||
11026 | self = self; | |
11027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxEffects_TileBitmap",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
11028 | return NULL; | |
11029 | if (_argo0) { | |
11030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
11032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_TileBitmap. Expected _wxEffects_p."); | |
11033 | return NULL; | |
11034 | } | |
11035 | } | |
11036 | { | |
11037 | _arg1 = &temp; | |
11038 | if (! wxRect_helper(_obj1, &_arg1)) | |
11039 | return NULL; | |
11040 | } | |
11041 | if (_argo2) { | |
11042 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11043 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
11044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxEffects_TileBitmap. Expected _wxDC_p."); | |
11045 | return NULL; | |
11046 | } | |
11047 | } | |
11048 | if (_argo3) { | |
11049 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
11050 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
11051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxEffects_TileBitmap. Expected _wxBitmap_p."); | |
11052 | return NULL; | |
11053 | } | |
11054 | } | |
11055 | { | |
11056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11057 | _result = (bool )wxEffects_TileBitmap(_arg0,*_arg1,*_arg2,*_arg3); | |
11058 | ||
11059 | wxPyEndAllowThreads(__tstate); | |
11060 | if (PyErr_Occurred()) return NULL; | |
11061 | } _resultobj = Py_BuildValue("i",_result); | |
11062 | return _resultobj; | |
11063 | } | |
11064 | ||
11065 | #define new_wxSingleInstanceChecker(_swigarg0,_swigarg1) (new wxSingleInstanceChecker(_swigarg0,_swigarg1)) | |
11066 | static PyObject *_wrap_new_wxSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11067 | PyObject * _resultobj; | |
11068 | wxSingleInstanceChecker * _result; | |
11069 | wxString * _arg0; | |
11070 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
11071 | PyObject * _obj0 = 0; | |
11072 | PyObject * _obj1 = 0; | |
11073 | char *_kwnames[] = { "name","path", NULL }; | |
11074 | char _ptemp[128]; | |
11075 | ||
11076 | self = self; | |
11077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxSingleInstanceChecker",_kwnames,&_obj0,&_obj1)) | |
11078 | return NULL; | |
11079 | { | |
11080 | _arg0 = wxString_in_helper(_obj0); | |
11081 | if (_arg0 == NULL) | |
11082 | return NULL; | |
11083 | } | |
11084 | if (_obj1) | |
11085 | { | |
11086 | _arg1 = wxString_in_helper(_obj1); | |
11087 | if (_arg1 == NULL) | |
11088 | return NULL; | |
11089 | } | |
11090 | { | |
11091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11092 | _result = (wxSingleInstanceChecker *)new_wxSingleInstanceChecker(*_arg0,*_arg1); | |
11093 | ||
11094 | wxPyEndAllowThreads(__tstate); | |
11095 | if (PyErr_Occurred()) return NULL; | |
11096 | } if (_result) { | |
11097 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSingleInstanceChecker_p"); | |
11098 | _resultobj = Py_BuildValue("s",_ptemp); | |
11099 | } else { | |
11100 | Py_INCREF(Py_None); | |
11101 | _resultobj = Py_None; | |
11102 | } | |
11103 | { | |
11104 | if (_obj0) | |
11105 | delete _arg0; | |
11106 | } | |
11107 | { | |
11108 | if (_obj1) | |
11109 | delete _arg1; | |
11110 | } | |
11111 | return _resultobj; | |
11112 | } | |
11113 | ||
11114 | #define new_wxPreSingleInstanceChecker() (new wxSingleInstanceChecker()) | |
11115 | static PyObject *_wrap_new_wxPreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11116 | PyObject * _resultobj; | |
11117 | wxSingleInstanceChecker * _result; | |
11118 | char *_kwnames[] = { NULL }; | |
11119 | char _ptemp[128]; | |
11120 | ||
11121 | self = self; | |
11122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSingleInstanceChecker",_kwnames)) | |
11123 | return NULL; | |
11124 | { | |
11125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11126 | _result = (wxSingleInstanceChecker *)new_wxPreSingleInstanceChecker(); | |
11127 | ||
11128 | wxPyEndAllowThreads(__tstate); | |
11129 | if (PyErr_Occurred()) return NULL; | |
11130 | } if (_result) { | |
11131 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSingleInstanceChecker_p"); | |
11132 | _resultobj = Py_BuildValue("s",_ptemp); | |
11133 | } else { | |
11134 | Py_INCREF(Py_None); | |
11135 | _resultobj = Py_None; | |
11136 | } | |
11137 | return _resultobj; | |
11138 | } | |
11139 | ||
11140 | #define delete_wxSingleInstanceChecker(_swigobj) (delete _swigobj) | |
11141 | static PyObject *_wrap_delete_wxSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11142 | PyObject * _resultobj; | |
11143 | wxSingleInstanceChecker * _arg0; | |
11144 | PyObject * _argo0 = 0; | |
11145 | char *_kwnames[] = { "self", NULL }; | |
11146 | ||
11147 | self = self; | |
11148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxSingleInstanceChecker",_kwnames,&_argo0)) | |
11149 | return NULL; | |
11150 | if (_argo0) { | |
11151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleInstanceChecker_p")) { | |
11153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxSingleInstanceChecker. Expected _wxSingleInstanceChecker_p."); | |
11154 | return NULL; | |
11155 | } | |
11156 | } | |
11157 | { | |
11158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11159 | delete_wxSingleInstanceChecker(_arg0); | |
11160 | ||
11161 | wxPyEndAllowThreads(__tstate); | |
11162 | if (PyErr_Occurred()) return NULL; | |
11163 | } Py_INCREF(Py_None); | |
11164 | _resultobj = Py_None; | |
11165 | return _resultobj; | |
11166 | } | |
11167 | ||
11168 | #define wxSingleInstanceChecker_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1)) | |
11169 | static PyObject *_wrap_wxSingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11170 | PyObject * _resultobj; | |
11171 | bool _result; | |
11172 | wxSingleInstanceChecker * _arg0; | |
11173 | wxString * _arg1; | |
11174 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
11175 | PyObject * _argo0 = 0; | |
11176 | PyObject * _obj1 = 0; | |
11177 | PyObject * _obj2 = 0; | |
11178 | char *_kwnames[] = { "self","name","path", NULL }; | |
11179 | ||
11180 | self = self; | |
11181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxSingleInstanceChecker_Create",_kwnames,&_argo0,&_obj1,&_obj2)) | |
11182 | return NULL; | |
11183 | if (_argo0) { | |
11184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleInstanceChecker_p")) { | |
11186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleInstanceChecker_Create. Expected _wxSingleInstanceChecker_p."); | |
11187 | return NULL; | |
11188 | } | |
11189 | } | |
11190 | { | |
11191 | _arg1 = wxString_in_helper(_obj1); | |
11192 | if (_arg1 == NULL) | |
11193 | return NULL; | |
11194 | } | |
11195 | if (_obj2) | |
11196 | { | |
11197 | _arg2 = wxString_in_helper(_obj2); | |
11198 | if (_arg2 == NULL) | |
11199 | return NULL; | |
11200 | } | |
11201 | { | |
11202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11203 | _result = (bool )wxSingleInstanceChecker_Create(_arg0,*_arg1,*_arg2); | |
11204 | ||
11205 | wxPyEndAllowThreads(__tstate); | |
11206 | if (PyErr_Occurred()) return NULL; | |
11207 | } _resultobj = Py_BuildValue("i",_result); | |
11208 | { | |
11209 | if (_obj1) | |
11210 | delete _arg1; | |
11211 | } | |
11212 | { | |
11213 | if (_obj2) | |
11214 | delete _arg2; | |
11215 | } | |
11216 | return _resultobj; | |
11217 | } | |
11218 | ||
11219 | #define wxSingleInstanceChecker_IsAnotherRunning(_swigobj) (_swigobj->IsAnotherRunning()) | |
11220 | static PyObject *_wrap_wxSingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11221 | PyObject * _resultobj; | |
11222 | bool _result; | |
11223 | wxSingleInstanceChecker * _arg0; | |
11224 | PyObject * _argo0 = 0; | |
11225 | char *_kwnames[] = { "self", NULL }; | |
11226 | ||
11227 | self = self; | |
11228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleInstanceChecker_IsAnotherRunning",_kwnames,&_argo0)) | |
11229 | return NULL; | |
11230 | if (_argo0) { | |
11231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleInstanceChecker_p")) { | |
11233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleInstanceChecker_IsAnotherRunning. Expected _wxSingleInstanceChecker_p."); | |
11234 | return NULL; | |
11235 | } | |
11236 | } | |
11237 | { | |
11238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11239 | _result = (bool )wxSingleInstanceChecker_IsAnotherRunning(_arg0); | |
11240 | ||
11241 | wxPyEndAllowThreads(__tstate); | |
11242 | if (PyErr_Occurred()) return NULL; | |
11243 | } _resultobj = Py_BuildValue("i",_result); | |
11244 | return _resultobj; | |
11245 | } | |
11246 | ||
bb0054cd | 11247 | static PyMethodDef misc2cMethods[] = { |
67a92fff RD |
11248 | { "wxSingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_wxSingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, |
11249 | { "wxSingleInstanceChecker_Create", (PyCFunction) _wrap_wxSingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
11250 | { "delete_wxSingleInstanceChecker", (PyCFunction) _wrap_delete_wxSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
11251 | { "new_wxPreSingleInstanceChecker", (PyCFunction) _wrap_new_wxPreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
11252 | { "new_wxSingleInstanceChecker", (PyCFunction) _wrap_new_wxSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
11253 | { "wxEffects_TileBitmap", (PyCFunction) _wrap_wxEffects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11254 | { "wxEffects_DrawSunkenEdge", (PyCFunction) _wrap_wxEffects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
11255 | { "wxEffects_Set", (PyCFunction) _wrap_wxEffects_Set, METH_VARARGS | METH_KEYWORDS }, | |
11256 | { "wxEffects_SetDarkShadow", (PyCFunction) _wrap_wxEffects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
11257 | { "wxEffects_SetMediumShadow", (PyCFunction) _wrap_wxEffects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
11258 | { "wxEffects_SetFaceColour", (PyCFunction) _wrap_wxEffects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
11259 | { "wxEffects_SetLightShadow", (PyCFunction) _wrap_wxEffects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
11260 | { "wxEffects_SetHighlightColour", (PyCFunction) _wrap_wxEffects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
11261 | { "wxEffects_GetDarkShadow", (PyCFunction) _wrap_wxEffects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
11262 | { "wxEffects_GetMediumShadow", (PyCFunction) _wrap_wxEffects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
11263 | { "wxEffects_GetFaceColour", (PyCFunction) _wrap_wxEffects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
11264 | { "wxEffects_GetLightShadow", (PyCFunction) _wrap_wxEffects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
11265 | { "wxEffects_GetHighlightColour", (PyCFunction) _wrap_wxEffects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
11266 | { "new_wxEffects", (PyCFunction) _wrap_new_wxEffects, METH_VARARGS | METH_KEYWORDS }, | |
7dbce44a RD |
11267 | { "wxFileHistory_GetNoHistoryFiles", (PyCFunction) _wrap_wxFileHistory_GetNoHistoryFiles, METH_VARARGS | METH_KEYWORDS }, |
11268 | { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11269 | { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
68bc8549 | 11270 | { "wxFileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, |
7dbce44a RD |
11271 | { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, |
11272 | { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
11273 | { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
11274 | { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
11275 | { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
11276 | { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
11277 | { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
11278 | { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
11279 | { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
11280 | { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
72797a7d RD |
11281 | { "wxArtProvider_CleanUpProviders", (PyCFunction) _wrap_wxArtProvider_CleanUpProviders, METH_VARARGS | METH_KEYWORDS }, |
11282 | { "wxArtProvider_GetIcon", (PyCFunction) _wrap_wxArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11283 | { "wxArtProvider_GetBitmap", (PyCFunction) _wrap_wxArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11284 | { "wxArtProvider_RemoveProvider", (PyCFunction) _wrap_wxArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
11285 | { "wxArtProvider_PopProvider", (PyCFunction) _wrap_wxArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
11286 | { "wxArtProvider_PushProvider", (PyCFunction) _wrap_wxArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
11287 | { "wxArtProvider__setCallbackInfo", (PyCFunction) _wrap_wxArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
11288 | { "new_wxArtProvider", (PyCFunction) _wrap_new_wxArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
11289 | { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, |
11290 | { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
11291 | { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
11292 | { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
11293 | { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
11294 | { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
11295 | { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
11296 | { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
11297 | { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
11298 | { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
11299 | { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
11300 | { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
11301 | { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
11302 | { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
11303 | { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
11304 | { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
11305 | { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
11306 | { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
11307 | { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
11308 | { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
11309 | { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
11310 | { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
11311 | { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
11312 | { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11313 | { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
11314 | { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
11315 | { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
11316 | { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
11317 | { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
11318 | { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
11319 | { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
11320 | { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
11321 | { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
11322 | { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
11323 | { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
11324 | { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
11325 | { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
11326 | { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
11327 | { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11328 | { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
11329 | { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
11330 | { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
11331 | { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 RD |
11332 | { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS }, |
11333 | { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
11334 | { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
11335 | { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
185d7c3e RD |
11336 | { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, |
11337 | { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
11338 | { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
11339 | { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
11340 | { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
11341 | { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
11342 | { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
11343 | { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
11344 | { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
11345 | { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
11346 | { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
11347 | { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
11348 | { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
11349 | { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
11350 | { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
11351 | { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
11352 | { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
11353 | { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
11354 | { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
11355 | { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
11356 | { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
11357 | { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
11358 | { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
11359 | { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
11360 | { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
11361 | { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
11362 | { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
11363 | { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
11364 | { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
11365 | { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
11366 | { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
11367 | { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
11368 | { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
11369 | { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
11370 | { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
11371 | { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
11372 | { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
11373 | { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
11374 | { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
11375 | { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
11376 | { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
11377 | { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 11378 | { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
185d7c3e | 11379 | { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
85260f24 RD |
11380 | { "wxProcess_IsErrorAvailable", (PyCFunction) _wrap_wxProcess_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, |
11381 | { "wxProcess_IsInputAvailable", (PyCFunction) _wrap_wxProcess_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
11382 | { "wxProcess_IsInputOpened", (PyCFunction) _wrap_wxProcess_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
11383 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, |
11384 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
11385 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
11386 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
11387 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
11388 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
11389 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
11390 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 11391 | { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
11392 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, |
11393 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
814f509c RD |
11394 | { "wxProcess_Open", (PyCFunction) _wrap_wxProcess_Open, METH_VARARGS | METH_KEYWORDS }, |
11395 | { "wxProcess_Exists", (PyCFunction) _wrap_wxProcess_Exists, METH_VARARGS | METH_KEYWORDS }, | |
11396 | { "wxProcess_Kill", (PyCFunction) _wrap_wxProcess_Kill, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
11397 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, |
11398 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
11399 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
11400 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
11401 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
11402 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
11403 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 11404 | { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 11405 | { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 11406 | { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS }, |
19e30148 RD |
11407 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, |
11408 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
11409 | { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, |
11410 | { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
11411 | { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
11412 | { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
11413 | { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11414 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, |
11415 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
11416 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
11417 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
11418 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
11419 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
11420 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
11421 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11422 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 11423 | { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11424 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, |
11425 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11426 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
11427 | { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, |
11428 | { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
67a92fff | 11429 | { "wxLog_GetTraceMasks", (PyCFunction) _wrap_wxLog_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 11430 | { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11431 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, |
11432 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11433 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11434 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
11435 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
11436 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
11437 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
11438 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
11439 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
11440 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
11441 | { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS }, | |
11442 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, | |
11443 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
11444 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
11445 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11446 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
11447 | { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS }, |
11448 | { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
11449 | { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
11450 | { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
68320e40 | 11451 | { "delete_wxStopWatch", (PyCFunction) _wrap_delete_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
b37c7e1d | 11452 | { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11453 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, |
11454 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
11455 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
11456 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
11457 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
11458 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
11459 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
11460 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
11461 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
11462 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
11463 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
11464 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
11465 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
11466 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
11467 | { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS }, | |
11468 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
10e07c70 | 11469 | { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 11470 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
cdf14688 RD |
11471 | { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, |
11472 | { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
11473 | { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
11474 | { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11475 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
cf276873 | 11476 | { "wxPyTipProvider__setCallbackInfo", (PyCFunction) _wrap_wxPyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 11477 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, |
67a92fff | 11478 | { "wxTipProvider_PreprocessTip", (PyCFunction) _wrap_wxTipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11479 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, |
11480 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
11481 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
11482 | { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, |
11483 | { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
11484 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, |
11485 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f RD |
11486 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, |
11487 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
11488 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, |
11489 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
11490 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, |
11491 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
11492 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, |
11493 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
11494 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11495 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11496 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11497 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
11498 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
11499 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
11500 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
11501 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
11502 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
edf2f43e RD |
11503 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, |
11504 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11505 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
11506 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
11507 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
11508 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
e67409dc RD |
11509 | { "wxSystemSettings_SetScreenType", (PyCFunction) _wrap_wxSystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, |
11510 | { "wxSystemSettings_GetScreenType", (PyCFunction) _wrap_wxSystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
11511 | { "wxSystemSettings_HasFeature", (PyCFunction) _wrap_wxSystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, |
11512 | { "wxSystemSettings_GetMetric", (PyCFunction) _wrap_wxSystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
11513 | { "wxSystemSettings_GetFont", (PyCFunction) _wrap_wxSystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11514 | { "wxSystemSettings_GetColour", (PyCFunction) _wrap_wxSystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 | 11515 | { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 11516 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, |
0b85cc38 | 11517 | { "wxSafeShowMessage", (PyCFunction) _wrap_wxSafeShowMessage, METH_VARARGS | METH_KEYWORDS }, |
be13a6af RD |
11518 | { "wxLogGeneric", (PyCFunction) _wrap_wxLogGeneric, METH_VARARGS | METH_KEYWORDS }, |
11519 | { "wxLogTraceMask", (PyCFunction) _wrap_wxLogTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11520 | { "wxLogTrace", (PyCFunction) _wrap_wxLogTrace, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11521 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, |
11522 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
11523 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
11524 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
11525 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, | |
11526 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
11527 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
11528 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
11529 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
11530 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
11531 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11532 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, |
11533 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
11534 | { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS }, |
11535 | { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
11536 | { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
11537 | { "wxWakeUpMainThread", (PyCFunction) _wrap_wxWakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 11538 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11539 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, |
6e18ca6c | 11540 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 RD |
11541 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, |
11542 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
11543 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, |
11544 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
11545 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
11546 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
11547 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
11548 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
11549 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11550 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
11551 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
2a74d141 | 11552 | { "wxGetTopLevelParent", (PyCFunction) _wrap_wxGetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, |
25832b3f | 11553 | { "wxFlushEvents", (PyCFunction) _wrap_wxFlushEvents, METH_VARARGS | METH_KEYWORDS }, |
493f1553 RD |
11554 | { "wxCheckForInterrupt", (PyCFunction) _wrap_wxCheckForInterrupt, METH_VARARGS | METH_KEYWORDS }, |
11555 | { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
11556 | { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
11557 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, |
11558 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 11559 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, |
91c41b30 RD |
11560 | { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, |
11561 | { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
1e7ecb7b RD |
11562 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, |
11563 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
11564 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
11565 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
11566 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
11567 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, |
11568 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
11569 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
11570 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
11571 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
11572 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 11573 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, |
06c0fba4 | 11574 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, |
7cdaed0b | 11575 | { "wxDirSelector", (PyCFunction) _wrap_wxDirSelector, METH_VARARGS | METH_KEYWORDS }, |
a541c325 RD |
11576 | { "wxSaveFileSelector", (PyCFunction) _wrap_wxSaveFileSelector, METH_VARARGS | METH_KEYWORDS }, |
11577 | { "wxLoadFileSelector", (PyCFunction) _wrap_wxLoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 11578 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, |
bb0054cd RD |
11579 | { NULL, NULL } |
11580 | }; | |
1d99702e RD |
11581 | #ifdef __cplusplus |
11582 | } | |
11583 | #endif | |
11584 | /* | |
11585 | * This table is used by the pointer type-checker | |
11586 | */ | |
11587 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
c368d904 | 11588 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, |
1d99702e | 11589 | { "_signed_long","_long",0}, |
b1462dfa | 11590 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11591 | { "_wxPrintQuality","_int",0}, |
11592 | { "_wxPrintQuality","_signed_int",0}, | |
11593 | { "_wxPrintQuality","_unsigned_int",0}, | |
11594 | { "_wxPrintQuality","_wxWindowID",0}, | |
11595 | { "_wxPrintQuality","_uint",0}, | |
11596 | { "_wxPrintQuality","_EBool",0}, | |
11597 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11598 | { "_wxPrintQuality","_time_t",0}, |
76bfdc78 RD |
11599 | { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog}, |
11600 | { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog}, | |
f6bcfd97 | 11601 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, |
f6bcfd97 | 11602 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, |
f6bcfd97 | 11603 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, |
f6bcfd97 | 11604 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, |
1d99702e | 11605 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
11606 | { "_long","_unsigned_long",0}, |
11607 | { "_long","_signed_long",0}, | |
b1462dfa | 11608 | { "_size_t","_wxCoord",0}, |
1d99702e | 11609 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11610 | { "_size_t","_time_t",0}, |
1d99702e RD |
11611 | { "_size_t","_unsigned_int",0}, |
11612 | { "_size_t","_int",0}, | |
11613 | { "_size_t","_wxWindowID",0}, | |
11614 | { "_size_t","_uint",0}, | |
b1462dfa | 11615 | { "_uint","_wxCoord",0}, |
1d99702e | 11616 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11617 | { "_uint","_time_t",0}, |
1d99702e RD |
11618 | { "_uint","_size_t",0}, |
11619 | { "_uint","_unsigned_int",0}, | |
11620 | { "_uint","_int",0}, | |
11621 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11622 | { "_wxChar","_char",0}, |
f6bcfd97 | 11623 | { "_char","_wxChar",0}, |
cdf14688 | 11624 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11625 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11626 | { "_EBool","_wxPrintQuality",0}, |
11627 | { "_EBool","_signed_int",0}, | |
11628 | { "_EBool","_int",0}, | |
11629 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11630 | { "_unsigned_long","_long",0}, |
cdf14688 | 11631 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11632 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11633 | { "_signed_int","_wxPrintQuality",0}, |
11634 | { "_signed_int","_EBool",0}, | |
11635 | { "_signed_int","_wxWindowID",0}, | |
11636 | { "_signed_int","_int",0}, | |
7dbce44a | 11637 | { "_WXTYPE","_wxDateTime_t",0}, |
1d99702e RD |
11638 | { "_WXTYPE","_short",0}, |
11639 | { "_WXTYPE","_signed_short",0}, | |
11640 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 | 11641 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, |
7dbce44a | 11642 | { "_unsigned_short","_wxDateTime_t",0}, |
1d99702e RD |
11643 | { "_unsigned_short","_WXTYPE",0}, |
11644 | { "_unsigned_short","_short",0}, | |
67a92fff | 11645 | { "_wxObject","_wxEffects",SwigwxEffectsTowxObject}, |
7dbce44a | 11646 | { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject}, |
72797a7d | 11647 | { "_wxObject","_wxPyArtProvider",SwigwxPyArtProviderTowxObject}, |
493f1553 | 11648 | { "_wxObject","_wxWave",SwigwxWaveTowxObject}, |
9416aa89 | 11649 | { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject}, |
9416aa89 | 11650 | { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject}, |
9416aa89 | 11651 | { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject}, |
9416aa89 | 11652 | { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject}, |
9416aa89 | 11653 | { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject}, |
9416aa89 | 11654 | { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject}, |
1d99702e RD |
11655 | { "_signed_short","_WXTYPE",0}, |
11656 | { "_signed_short","_short",0}, | |
1d99702e | 11657 | { "_unsigned_char","_byte",0}, |
b1462dfa | 11658 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11659 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11660 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11661 | { "_unsigned_int","_size_t",0}, |
11662 | { "_unsigned_int","_uint",0}, | |
11663 | { "_unsigned_int","_wxWindowID",0}, | |
11664 | { "_unsigned_int","_int",0}, | |
7dbce44a | 11665 | { "_short","_wxDateTime_t",0}, |
1d99702e RD |
11666 | { "_short","_WXTYPE",0}, |
11667 | { "_short","_unsigned_short",0}, | |
11668 | { "_short","_signed_short",0}, | |
b1462dfa | 11669 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11670 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11671 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11672 | { "_wxWindowID","_size_t",0}, |
11673 | { "_wxWindowID","_EBool",0}, | |
11674 | { "_wxWindowID","_uint",0}, | |
11675 | { "_wxWindowID","_int",0}, | |
11676 | { "_wxWindowID","_signed_int",0}, | |
11677 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11678 | { "_int","_wxCoord",0}, |
1d99702e | 11679 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11680 | { "_int","_time_t",0}, |
1d99702e RD |
11681 | { "_int","_size_t",0}, |
11682 | { "_int","_EBool",0}, | |
11683 | { "_int","_uint",0}, | |
11684 | { "_int","_wxWindowID",0}, | |
11685 | { "_int","_unsigned_int",0}, | |
11686 | { "_int","_signed_int",0}, | |
7dbce44a RD |
11687 | { "_wxDateTime_t","_unsigned_short",0}, |
11688 | { "_wxDateTime_t","_short",0}, | |
11689 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
11690 | { "_time_t","_wxCoord",0}, |
11691 | { "_time_t","_wxPrintQuality",0}, | |
11692 | { "_time_t","_unsigned_int",0}, | |
11693 | { "_time_t","_int",0}, | |
11694 | { "_time_t","_wxWindowID",0}, | |
11695 | { "_time_t","_uint",0}, | |
11696 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11697 | { "_wxCoord","_int",0}, |
11698 | { "_wxCoord","_signed_int",0}, | |
11699 | { "_wxCoord","_unsigned_int",0}, | |
11700 | { "_wxCoord","_wxWindowID",0}, | |
11701 | { "_wxCoord","_uint",0}, | |
11702 | { "_wxCoord","_EBool",0}, | |
11703 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11704 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11705 | { "_wxCoord","_wxPrintQuality",0}, |
c368d904 | 11706 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, |
1d99702e RD |
11707 | {0,0,0}}; |
11708 | ||
bb0054cd RD |
11709 | static PyObject *SWIG_globals; |
11710 | #ifdef __cplusplus | |
11711 | extern "C" | |
11712 | #endif | |
1d99702e | 11713 | SWIGEXPORT(void) initmisc2c() { |
bb0054cd RD |
11714 | PyObject *m, *d; |
11715 | SWIG_globals = SWIG_newvarlink(); | |
11716 | m = Py_InitModule("misc2c", misc2cMethods); | |
11717 | d = PyModule_GetDict(m); | |
06c0fba4 RD |
11718 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); |
11719 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
11720 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
11721 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
11722 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
11723 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
11724 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
11725 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
11726 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
11727 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
c6c593e8 | 11728 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); |
06c0fba4 RD |
11729 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); |
11730 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
11731 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
11732 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
11733 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
11734 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
11735 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
11736 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
11737 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
11738 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
11739 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
11740 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
11741 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
11742 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
c6c593e8 | 11743 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); |
06c0fba4 | 11744 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); |
c6c593e8 | 11745 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); |
06c0fba4 RD |
11746 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); |
11747 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
11748 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
11749 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
c6c593e8 RD |
11750 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); |
11751 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
11752 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
06c0fba4 RD |
11753 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); |
11754 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
11755 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
11756 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
b5a5d647 | 11757 | PyDict_SetItemString(d,"wxSYS_COLOUR_LISTBOX", PyInt_FromLong((long) wxSYS_COLOUR_LISTBOX)); |
c6c593e8 RD |
11758 | PyDict_SetItemString(d,"wxSYS_COLOUR_HOTLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HOTLIGHT)); |
11759 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
11760 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTINACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
11761 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_MENUHILIGHT)); | |
11762 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUBAR", PyInt_FromLong((long) wxSYS_COLOUR_MENUBAR)); | |
11763 | PyDict_SetItemString(d,"wxSYS_COLOUR_MAX", PyInt_FromLong((long) wxSYS_COLOUR_MAX)); | |
06c0fba4 RD |
11764 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); |
11765 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
11766 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
11767 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
11768 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
11769 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
11770 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
11771 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
11772 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
11773 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
11774 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
11775 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
11776 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
11777 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
11778 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
11779 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
11780 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
11781 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
11782 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
11783 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
11784 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
11785 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
11786 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
11787 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
11788 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
11789 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
11790 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
11791 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
11792 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
11793 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
11794 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
11795 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
11796 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
11797 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
11798 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
11799 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
11800 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
b5a5d647 RD |
11801 | PyDict_SetItemString(d,"wxSYS_CAN_DRAW_FRAME_DECORATIONS", PyInt_FromLong((long) wxSYS_CAN_DRAW_FRAME_DECORATIONS)); |
11802 | PyDict_SetItemString(d,"wxSYS_CAN_ICONIZE_FRAME", PyInt_FromLong((long) wxSYS_CAN_ICONIZE_FRAME)); | |
daa3eac9 | 11803 | PyDict_SetItemString(d,"wxSYS_SCREEN_NONE", PyInt_FromLong((long) wxSYS_SCREEN_NONE)); |
daa3eac9 | 11804 | PyDict_SetItemString(d,"wxSYS_SCREEN_TINY", PyInt_FromLong((long) wxSYS_SCREEN_TINY)); |
e67409dc RD |
11805 | PyDict_SetItemString(d,"wxSYS_SCREEN_PDA", PyInt_FromLong((long) wxSYS_SCREEN_PDA)); |
11806 | PyDict_SetItemString(d,"wxSYS_SCREEN_SMALL", PyInt_FromLong((long) wxSYS_SCREEN_SMALL)); | |
11807 | PyDict_SetItemString(d,"wxSYS_SCREEN_DESKTOP", PyInt_FromLong((long) wxSYS_SCREEN_DESKTOP)); | |
f6bcfd97 BP |
11808 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); |
11809 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
11810 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
11811 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
11812 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
11813 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
11814 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
11815 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
11816 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
11817 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
8baa46e9 RD |
11818 | PyDict_SetItemString(d,"wxTRACE_MemAlloc", PyString_FromString("memalloc")); |
11819 | PyDict_SetItemString(d,"wxTRACE_Messages", PyString_FromString("messages")); | |
11820 | PyDict_SetItemString(d,"wxTRACE_ResAlloc", PyString_FromString("resalloc")); | |
11821 | PyDict_SetItemString(d,"wxTRACE_RefCount", PyString_FromString("refcount")); | |
11822 | PyDict_SetItemString(d,"wxTRACE_OleCalls", PyString_FromString("ole")); | |
11823 | PyDict_SetItemString(d,"wxTraceMemAlloc", PyInt_FromLong((long) wxTraceMemAlloc)); | |
11824 | PyDict_SetItemString(d,"wxTraceMessages", PyInt_FromLong((long) wxTraceMessages)); | |
11825 | PyDict_SetItemString(d,"wxTraceResAlloc", PyInt_FromLong((long) wxTraceResAlloc)); | |
11826 | PyDict_SetItemString(d,"wxTraceRefCount", PyInt_FromLong((long) wxTraceRefCount)); | |
11827 | PyDict_SetItemString(d,"wxTraceOleCalls", PyInt_FromLong((long) wxTraceOleCalls)); | |
814f509c RD |
11828 | PyDict_SetItemString(d,"wxKILL_OK", PyInt_FromLong((long) wxKILL_OK)); |
11829 | PyDict_SetItemString(d,"wxKILL_BAD_SIGNAL", PyInt_FromLong((long) wxKILL_BAD_SIGNAL)); | |
11830 | PyDict_SetItemString(d,"wxKILL_ACCESS_DENIED", PyInt_FromLong((long) wxKILL_ACCESS_DENIED)); | |
11831 | PyDict_SetItemString(d,"wxKILL_NO_PROCESS", PyInt_FromLong((long) wxKILL_NO_PROCESS)); | |
11832 | PyDict_SetItemString(d,"wxKILL_ERROR", PyInt_FromLong((long) wxKILL_ERROR)); | |
1883480f RD |
11833 | PyDict_SetItemString(d,"wxSIGNONE", PyInt_FromLong((long) wxSIGNONE)); |
11834 | PyDict_SetItemString(d,"wxSIGHUP", PyInt_FromLong((long) wxSIGHUP)); | |
11835 | PyDict_SetItemString(d,"wxSIGINT", PyInt_FromLong((long) wxSIGINT)); | |
11836 | PyDict_SetItemString(d,"wxSIGQUIT", PyInt_FromLong((long) wxSIGQUIT)); | |
11837 | PyDict_SetItemString(d,"wxSIGILL", PyInt_FromLong((long) wxSIGILL)); | |
11838 | PyDict_SetItemString(d,"wxSIGTRAP", PyInt_FromLong((long) wxSIGTRAP)); | |
11839 | PyDict_SetItemString(d,"wxSIGABRT", PyInt_FromLong((long) wxSIGABRT)); | |
11840 | PyDict_SetItemString(d,"wxSIGIOT", PyInt_FromLong((long) wxSIGIOT)); | |
11841 | PyDict_SetItemString(d,"wxSIGEMT", PyInt_FromLong((long) wxSIGEMT)); | |
11842 | PyDict_SetItemString(d,"wxSIGFPE", PyInt_FromLong((long) wxSIGFPE)); | |
11843 | PyDict_SetItemString(d,"wxSIGKILL", PyInt_FromLong((long) wxSIGKILL)); | |
11844 | PyDict_SetItemString(d,"wxSIGBUS", PyInt_FromLong((long) wxSIGBUS)); | |
11845 | PyDict_SetItemString(d,"wxSIGSEGV", PyInt_FromLong((long) wxSIGSEGV)); | |
11846 | PyDict_SetItemString(d,"wxSIGSYS", PyInt_FromLong((long) wxSIGSYS)); | |
11847 | PyDict_SetItemString(d,"wxSIGPIPE", PyInt_FromLong((long) wxSIGPIPE)); | |
11848 | PyDict_SetItemString(d,"wxSIGALRM", PyInt_FromLong((long) wxSIGALRM)); | |
11849 | PyDict_SetItemString(d,"wxSIGTERM", PyInt_FromLong((long) wxSIGTERM)); | |
11850 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); | |
b96c7a38 RD |
11851 | PyDict_SetItemString(d,"wxEXEC_ASYNC", PyInt_FromLong((long) wxEXEC_ASYNC)); |
11852 | PyDict_SetItemString(d,"wxEXEC_SYNC", PyInt_FromLong((long) wxEXEC_SYNC)); | |
11853 | PyDict_SetItemString(d,"wxEXEC_NOHIDE", PyInt_FromLong((long) wxEXEC_NOHIDE)); | |
d6eacb25 | 11854 | PyDict_SetItemString(d,"wxEXEC_MAKE_GROUP_LEADER", PyInt_FromLong((long) wxEXEC_MAKE_GROUP_LEADER)); |
3eb221f6 RD |
11855 | PyDict_SetItemString(d,"wxJOYSTICK1", PyInt_FromLong((long) wxJOYSTICK1)); |
11856 | PyDict_SetItemString(d,"wxJOYSTICK2", PyInt_FromLong((long) wxJOYSTICK2)); | |
11857 | PyDict_SetItemString(d,"wxJOY_BUTTON_ANY", PyInt_FromLong((long) wxJOY_BUTTON_ANY)); | |
11858 | PyDict_SetItemString(d,"wxJOY_BUTTON1", PyInt_FromLong((long) wxJOY_BUTTON1)); | |
11859 | PyDict_SetItemString(d,"wxJOY_BUTTON2", PyInt_FromLong((long) wxJOY_BUTTON2)); | |
11860 | PyDict_SetItemString(d,"wxJOY_BUTTON3", PyInt_FromLong((long) wxJOY_BUTTON3)); | |
11861 | PyDict_SetItemString(d,"wxJOY_BUTTON4", PyInt_FromLong((long) wxJOY_BUTTON4)); | |
b37c7e1d RD |
11862 | PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD)); |
11863 | PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE)); | |
11864 | PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE)); | |
11865 | PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME)); | |
11866 | PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL)); | |
11867 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
11868 | SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set); | |
9416aa89 | 11869 | |
9416aa89 RD |
11870 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); |
11871 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
72797a7d | 11872 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); |
8baa46e9 | 11873 | |
1d99702e RD |
11874 | { |
11875 | int i; | |
11876 | for (i = 0; _swig_mapping[i].n1; i++) | |
11877 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11878 | } | |
bb0054cd | 11879 | } |