]>
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 | |
7e50db3f RD |
22 | #include "Python.h" |
23 | ||
bb0054cd RD |
24 | #include <string.h> |
25 | #include <stdlib.h> | |
26 | /* Definitions for Windows/Unix exporting */ | |
27 | #if defined(__WIN32__) | |
28 | # if defined(_MSC_VER) | |
1d99702e | 29 | # define SWIGEXPORT(a) __declspec(dllexport) a |
bb0054cd RD |
30 | # else |
31 | # if defined(__BORLANDC__) | |
c368d904 | 32 | # define SWIGEXPORT(a) a _export |
bb0054cd | 33 | # else |
c368d904 | 34 | # define SWIGEXPORT(a) a |
bb0054cd RD |
35 | # endif |
36 | # endif | |
37 | #else | |
c368d904 | 38 | # define SWIGEXPORT(a) a |
bb0054cd RD |
39 | #endif |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
bb0054cd RD |
44 | extern void SWIG_MakePtr(char *, void *, char *); |
45 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
46 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 47 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
bb0054cd RD |
48 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
49 | extern PyObject *SWIG_newvarlink(void); | |
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
bb0054cd RD |
53 | #define SWIG_init initmisc2c |
54 | ||
55 | #define SWIG_name "misc2c" | |
56 | ||
57 | #include "helpers.h" | |
5ae76026 | 58 | #include "pyistream.h" |
bb0054cd | 59 | #include <wx/tooltip.h> |
f0261a72 | 60 | #include <wx/caret.h> |
f6bcfd97 | 61 | #include <wx/tipdlg.h> |
c368d904 | 62 | #include <wx/process.h> |
493f1553 RD |
63 | |
64 | #if wxUSE_JOYSTICK || defined(__WXMSW__) | |
185d7c3e | 65 | #include <wx/joystick.h> |
e0672e2f | 66 | #endif |
bb0054cd | 67 | |
493f1553 RD |
68 | #if wxUSE_WAVE || defined(__WXMSW__) |
69 | #include <wx/wave.h> | |
70 | #endif | |
71 | ||
b37c7e1d | 72 | #include <wx/mimetype.h> |
67a92fff RD |
73 | #include <wx/snglinst.h> |
74 | #include <wx/effects.h> | |
5a2a9da2 | 75 | #include <wx/sysopt.h> |
b37c7e1d | 76 | |
bb0054cd RD |
77 | |
78 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
79 | PyObject* o2; | |
80 | PyObject* o3; | |
81 | ||
6e18ca6c | 82 | if (!target) { |
bb0054cd | 83 | target = o; |
6e18ca6c | 84 | } else if (target == Py_None) { |
bb0054cd RD |
85 | Py_DECREF(Py_None); |
86 | target = o; | |
6e18ca6c | 87 | } else { |
bb0054cd RD |
88 | if (!PyTuple_Check(target)) { |
89 | o2 = target; | |
90 | target = PyTuple_New(1); | |
91 | PyTuple_SetItem(target, 0, o2); | |
92 | } | |
6e18ca6c RD |
93 | o3 = PyTuple_New(1); |
94 | PyTuple_SetItem(o3, 0, o); | |
bb0054cd RD |
95 | |
96 | o2 = target; | |
6e18ca6c RD |
97 | target = PySequence_Concat(o2, o3); |
98 | Py_DECREF(o2); | |
bb0054cd RD |
99 | Py_DECREF(o3); |
100 | } | |
101 | return target; | |
102 | } | |
103 | ||
137b5242 RD |
104 | // Put some wx default wxChar* values into wxStrings. |
105 | DECLARE_DEF_STRING(FileSelectorPromptStr); | |
106 | DECLARE_DEF_STRING(FileSelectorDefaultWildcardStr); | |
7cdaed0b | 107 | DECLARE_DEF_STRING(DirSelectorPromptStr); |
137b5242 RD |
108 | static const wxString wxPyEmptyString(wxT("")); |
109 | ||
06c0fba4 RD |
110 | int wxCaret_GetBlinkTime() { |
111 | return wxCaret::GetBlinkTime(); | |
112 | } | |
113 | ||
114 | void wxCaret_SetBlinkTime(int milliseconds) { | |
115 | wxCaret::SetBlinkTime(milliseconds); | |
116 | } | |
b1462dfa | 117 | |
6e18ca6c | 118 | bool wxThread_IsMain() { |
00ca6262 | 119 | #ifdef WXP_WITH_THREAD |
6e18ca6c | 120 | return wxThread::IsMain(); |
00ca6262 RD |
121 | #else |
122 | return TRUE; | |
123 | #endif | |
6e18ca6c RD |
124 | } |
125 | ||
f6bcfd97 BP |
126 | class wxPyTipProvider : public wxTipProvider { |
127 | public: | |
128 | wxPyTipProvider(size_t currentTip) | |
129 | : wxTipProvider(currentTip) {} | |
130 | ||
131 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
67a92fff | 132 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); |
f6bcfd97 BP |
133 | PYPRIVATE; |
134 | }; | |
135 | ||
136 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
67a92fff | 137 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); |
f6bcfd97 BP |
138 | |
139 | #include <wx/generic/dragimgg.h> | |
76bfdc78 | 140 | |
19e30148 | 141 | // A wxLog class that can be derived from in wxPython |
76bfdc78 RD |
142 | class wxPyLog : public wxLog { |
143 | public: | |
144 | wxPyLog() : wxLog() {} | |
145 | ||
146 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
147 | bool found; | |
4268f798 | 148 | wxPyBeginBlockThreads(); |
a66212dc RD |
149 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { |
150 | PyObject* s = wx2PyString(szString); | |
151 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
152 | Py_DECREF(s); | |
153 | } | |
4268f798 | 154 | wxPyEndBlockThreads(); |
76bfdc78 RD |
155 | if (! found) |
156 | wxLog::DoLog(level, szString, t); | |
157 | } | |
158 | ||
159 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
160 | bool found; | |
4268f798 | 161 | wxPyBeginBlockThreads(); |
a66212dc RD |
162 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { |
163 | PyObject* s = wx2PyString(szString); | |
164 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
165 | Py_DECREF(s); | |
166 | } | |
4268f798 | 167 | wxPyEndBlockThreads(); |
76bfdc78 RD |
168 | if (! found) |
169 | wxLog::DoLogString(szString, t); | |
170 | } | |
171 | ||
172 | PYPRIVATE; | |
173 | }; | |
c368d904 RD |
174 | // C++ version of wxProcess derived class |
175 | ||
176 | class wxPyProcess : public wxProcess { | |
177 | public: | |
178 | wxPyProcess(wxEvtHandler *parent = NULL, int id = -1) | |
179 | : wxProcess(parent, id) | |
180 | {} | |
181 | ||
182 | DEC_PYCALLBACK_VOID_INTINT(OnTerminate); | |
183 | ||
184 | PYPRIVATE; | |
185 | }; | |
186 | ||
187 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
493f1553 | 188 | |
19a97bd6 | 189 | |
493f1553 RD |
190 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) |
191 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
192 | class wxJoystick : public wxObject { | |
193 | public: | |
194 | wxJoystick(int joystick = wxJOYSTICK1) { | |
4268f798 | 195 | wxPyBeginBlockThreads(); |
493f1553 | 196 | PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); |
4268f798 | 197 | wxPyEndBlockThreads(); |
493f1553 RD |
198 | } |
199 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
200 | int GetZPosition() { return -1; } | |
201 | int GetButtonState() { return -1; } | |
202 | int GetPOVPosition() { return -1; } | |
203 | int GetPOVCTSPosition() { return -1; } | |
204 | int GetRudderPosition() { return -1; } | |
205 | int GetUPosition() { return -1; } | |
206 | int GetVPosition() { return -1; } | |
207 | int GetMovementThreshold() { return -1; } | |
d56cebe7 | 208 | void SetMovementThreshold(int threshold) {} |
493f1553 RD |
209 | |
210 | bool IsOk(void) { return FALSE; } | |
211 | int GetNumberJoysticks() { return -1; } | |
212 | int GetManufacturerId() { return -1; } | |
213 | int GetProductId() { return -1; } | |
214 | wxString GetProductName() { return ""; } | |
215 | int GetXMin() { return -1; } | |
216 | int GetYMin() { return -1; } | |
217 | int GetZMin() { return -1; } | |
218 | int GetXMax() { return -1; } | |
219 | int GetYMax() { return -1; } | |
220 | int GetZMax() { return -1; } | |
221 | int GetNumberButtons() { return -1; } | |
222 | int GetNumberAxes() { return -1; } | |
223 | int GetMaxButtons() { return -1; } | |
224 | int GetMaxAxes() { return -1; } | |
225 | int GetPollingMin() { return -1; } | |
226 | int GetPollingMax() { return -1; } | |
227 | int GetRudderMin() { return -1; } | |
228 | int GetRudderMax() { return -1; } | |
229 | int GetUMin() { return -1; } | |
230 | int GetUMax() { return -1; } | |
231 | int GetVMin() { return -1; } | |
232 | int GetVMax() { return -1; } | |
233 | ||
234 | bool HasRudder() { return FALSE; } | |
235 | bool HasZ() { return FALSE; } | |
236 | bool HasU() { return FALSE; } | |
237 | bool HasV() { return FALSE; } | |
238 | bool HasPOV() { return FALSE; } | |
239 | bool HasPOV4Dir() { return FALSE; } | |
240 | bool HasPOVCTS() { return FALSE; } | |
241 | ||
242 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return FALSE; } | |
243 | bool ReleaseCapture() { return FALSE; } | |
244 | }; | |
245 | #endif | |
246 | ||
0adbc166 | 247 | #if !wxUSE_WAVE |
493f1553 RD |
248 | // A C++ stub class for wxWave for platforms that don't have it. |
249 | class wxWave : public wxObject | |
250 | { | |
251 | public: | |
252 | wxWave(const wxString& fileName, bool isResource = FALSE) { | |
4268f798 | 253 | wxPyBeginBlockThreads(); |
493f1553 | 254 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 255 | wxPyEndBlockThreads(); |
493f1553 RD |
256 | } |
257 | wxWave(int size, const wxByte* data) { | |
4268f798 | 258 | wxPyBeginBlockThreads(); |
493f1553 | 259 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 260 | wxPyEndBlockThreads(); |
493f1553 RD |
261 | } |
262 | ||
263 | ~wxWave() {} | |
264 | ||
265 | bool IsOk() const { return FALSE; } | |
266 | bool Play(bool async = TRUE, bool looped = FALSE) const { return FALSE; } | |
267 | }; | |
268 | ||
269 | #endif | |
270 | // Implementations of some alternate "constructors" | |
271 | wxWave* wxWaveData(const wxString& data) { | |
272 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
273 | } | |
b37c7e1d RD |
274 | |
275 | #if 0 | |
276 | extern wxMimeTypesManager * wxTheMimeTypesManager; | |
277 | ||
278 | #endif | |
7dbce44a | 279 | |
72797a7d RD |
280 | #include <wx/artprov.h> |
281 | ||
282 | DECLARE_DEF_STRING(ART_OTHER); | |
283 | ||
284 | // Python aware wxArtProvider | |
285 | class wxPyArtProvider : public wxArtProvider { | |
286 | public: | |
287 | ||
288 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
289 | const wxArtClient& client, | |
290 | const wxSize& size) { | |
291 | wxBitmap rval = wxNullBitmap; | |
292 | wxPyBeginBlockThreads(); | |
293 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
7e50db3f | 294 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); |
72797a7d RD |
295 | PyObject* ro; |
296 | wxBitmap* ptr; | |
a66212dc | 297 | PyObject* s1, *s2; |
72797a7d RD |
298 | s1 = wx2PyString(id); |
299 | s2 = wx2PyString(client); | |
a66212dc | 300 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); |
72797a7d | 301 | Py_DECREF(so); |
a66212dc RD |
302 | Py_DECREF(s1); |
303 | Py_DECREF(s2); | |
72797a7d RD |
304 | if (ro) { |
305 | if (!SWIG_GetPtrObj(ro, (void**)&ptr, "_wxBitmap_p")) | |
306 | rval = *ptr; | |
307 | Py_DECREF(ro); | |
308 | } | |
309 | } | |
310 | wxPyEndBlockThreads(); | |
311 | return rval; | |
312 | } | |
313 | ||
314 | PYPRIVATE; | |
315 | }; | |
316 | ||
7dbce44a | 317 | #include <wx/docview.h> |
06c0fba4 RD |
318 | #ifdef __cplusplus |
319 | extern "C" { | |
320 | #endif | |
321 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
322 | PyObject * _resultobj; | |
323 | wxString * _result; | |
137b5242 RD |
324 | wxString * _arg0 = (wxString *) &wxPyFileSelectorPromptStr; |
325 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
326 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
327 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
328 | wxString * _arg4 = (wxString *) &wxPyFileSelectorDefaultWildcardStr; | |
06c0fba4 RD |
329 | int _arg5 = (int ) 0; |
330 | wxWindow * _arg6 = (wxWindow *) NULL; | |
331 | int _arg7 = (int ) -1; | |
332 | int _arg8 = (int ) -1; | |
137b5242 RD |
333 | PyObject * _obj0 = 0; |
334 | PyObject * _obj1 = 0; | |
335 | PyObject * _obj2 = 0; | |
336 | PyObject * _obj3 = 0; | |
337 | PyObject * _obj4 = 0; | |
06c0fba4 RD |
338 | PyObject * _argo6 = 0; |
339 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
340 | ||
341 | self = self; | |
137b5242 | 342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOOOiOii:wxFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7,&_arg8)) |
06c0fba4 | 343 | return NULL; |
137b5242 RD |
344 | if (_obj0) |
345 | { | |
346 | _arg0 = wxString_in_helper(_obj0); | |
347 | if (_arg0 == NULL) | |
348 | return NULL; | |
349 | } | |
350 | if (_obj1) | |
351 | { | |
352 | _arg1 = wxString_in_helper(_obj1); | |
353 | if (_arg1 == NULL) | |
354 | return NULL; | |
355 | } | |
356 | if (_obj2) | |
357 | { | |
358 | _arg2 = wxString_in_helper(_obj2); | |
359 | if (_arg2 == NULL) | |
360 | return NULL; | |
361 | } | |
362 | if (_obj3) | |
363 | { | |
364 | _arg3 = wxString_in_helper(_obj3); | |
365 | if (_arg3 == NULL) | |
366 | return NULL; | |
367 | } | |
368 | if (_obj4) | |
369 | { | |
370 | _arg4 = wxString_in_helper(_obj4); | |
371 | if (_arg4 == NULL) | |
372 | return NULL; | |
373 | } | |
06c0fba4 RD |
374 | if (_argo6) { |
375 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
376 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
378 | return NULL; | |
379 | } | |
380 | } | |
381 | { | |
4268f798 | 382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 383 | _result = new wxString (wxFileSelector(*_arg0,*_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8)); |
06c0fba4 | 384 | |
4268f798 RD |
385 | wxPyEndAllowThreads(__tstate); |
386 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 387 | }{ |
c8bc7bb8 | 388 | #if wxUSE_UNICODE |
7e50db3f | 389 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 390 | #else |
eec92d76 | 391 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 392 | #endif |
06c0fba4 | 393 | } |
137b5242 RD |
394 | { |
395 | if (_obj0) | |
396 | delete _arg0; | |
397 | } | |
398 | { | |
399 | if (_obj1) | |
400 | delete _arg1; | |
401 | } | |
402 | { | |
403 | if (_obj2) | |
404 | delete _arg2; | |
405 | } | |
406 | { | |
407 | if (_obj3) | |
408 | delete _arg3; | |
409 | } | |
410 | { | |
411 | if (_obj4) | |
412 | delete _arg4; | |
413 | } | |
06c0fba4 RD |
414 | { |
415 | delete _result; | |
416 | } | |
417 | return _resultobj; | |
418 | } | |
419 | ||
a541c325 RD |
420 | static PyObject *_wrap_wxLoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
421 | PyObject * _resultobj; | |
422 | wxString * _result; | |
137b5242 RD |
423 | wxString * _arg0; |
424 | wxString * _arg1; | |
425 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
a541c325 | 426 | wxWindow * _arg3 = (wxWindow *) NULL; |
137b5242 RD |
427 | PyObject * _obj0 = 0; |
428 | PyObject * _obj1 = 0; | |
429 | PyObject * _obj2 = 0; | |
a541c325 RD |
430 | PyObject * _argo3 = 0; |
431 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
432 | ||
433 | self = self; | |
137b5242 | 434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxLoadFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) |
a541c325 | 435 | return NULL; |
137b5242 RD |
436 | { |
437 | _arg0 = wxString_in_helper(_obj0); | |
438 | if (_arg0 == NULL) | |
439 | return NULL; | |
440 | } | |
441 | { | |
442 | _arg1 = wxString_in_helper(_obj1); | |
443 | if (_arg1 == NULL) | |
444 | return NULL; | |
445 | } | |
446 | if (_obj2) | |
447 | { | |
448 | _arg2 = wxString_in_helper(_obj2); | |
449 | if (_arg2 == NULL) | |
450 | return NULL; | |
451 | } | |
a541c325 RD |
452 | if (_argo3) { |
453 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
454 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxLoadFileSelector. Expected _wxWindow_p."); | |
456 | return NULL; | |
457 | } | |
458 | } | |
459 | { | |
460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 461 | _result = new wxString (wxLoadFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); |
a541c325 RD |
462 | |
463 | wxPyEndAllowThreads(__tstate); | |
464 | if (PyErr_Occurred()) return NULL; | |
465 | }{ | |
466 | #if wxUSE_UNICODE | |
7e50db3f | 467 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
a541c325 RD |
468 | #else |
469 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
470 | #endif | |
471 | } | |
137b5242 RD |
472 | { |
473 | if (_obj0) | |
474 | delete _arg0; | |
475 | } | |
476 | { | |
477 | if (_obj1) | |
478 | delete _arg1; | |
479 | } | |
480 | { | |
481 | if (_obj2) | |
482 | delete _arg2; | |
483 | } | |
a541c325 RD |
484 | { |
485 | delete _result; | |
486 | } | |
487 | return _resultobj; | |
488 | } | |
489 | ||
490 | static PyObject *_wrap_wxSaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
491 | PyObject * _resultobj; | |
492 | wxString * _result; | |
137b5242 RD |
493 | wxString * _arg0; |
494 | wxString * _arg1; | |
495 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
a541c325 | 496 | wxWindow * _arg3 = (wxWindow *) NULL; |
137b5242 RD |
497 | PyObject * _obj0 = 0; |
498 | PyObject * _obj1 = 0; | |
499 | PyObject * _obj2 = 0; | |
a541c325 RD |
500 | PyObject * _argo3 = 0; |
501 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
502 | ||
503 | self = self; | |
137b5242 RD |
504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxSaveFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) |
505 | return NULL; | |
506 | { | |
507 | _arg0 = wxString_in_helper(_obj0); | |
508 | if (_arg0 == NULL) | |
a541c325 | 509 | return NULL; |
137b5242 RD |
510 | } |
511 | { | |
512 | _arg1 = wxString_in_helper(_obj1); | |
513 | if (_arg1 == NULL) | |
514 | return NULL; | |
515 | } | |
516 | if (_obj2) | |
517 | { | |
518 | _arg2 = wxString_in_helper(_obj2); | |
519 | if (_arg2 == NULL) | |
520 | return NULL; | |
521 | } | |
a541c325 RD |
522 | if (_argo3) { |
523 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
524 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxSaveFileSelector. Expected _wxWindow_p."); | |
526 | return NULL; | |
527 | } | |
528 | } | |
529 | { | |
530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 531 | _result = new wxString (wxSaveFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); |
a541c325 RD |
532 | |
533 | wxPyEndAllowThreads(__tstate); | |
534 | if (PyErr_Occurred()) return NULL; | |
535 | }{ | |
536 | #if wxUSE_UNICODE | |
7e50db3f | 537 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
a541c325 RD |
538 | #else |
539 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
540 | #endif | |
541 | } | |
137b5242 RD |
542 | { |
543 | if (_obj0) | |
544 | delete _arg0; | |
545 | } | |
546 | { | |
547 | if (_obj1) | |
548 | delete _arg1; | |
549 | } | |
550 | { | |
551 | if (_obj2) | |
552 | delete _arg2; | |
553 | } | |
a541c325 RD |
554 | { |
555 | delete _result; | |
556 | } | |
557 | return _resultobj; | |
558 | } | |
559 | ||
7cdaed0b RD |
560 | static PyObject *_wrap_wxDirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
561 | PyObject * _resultobj; | |
562 | wxString * _result; | |
563 | wxString * _arg0 = (wxString *) &wxPyDirSelectorPromptStr; | |
564 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
daa3eac9 | 565 | long _arg2 = (long ) wxDD_DEFAULT_STYLE; |
7cdaed0b RD |
566 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
567 | wxWindow * _arg4 = (wxWindow *) NULL; | |
568 | PyObject * _obj0 = 0; | |
569 | PyObject * _obj1 = 0; | |
570 | wxPoint temp; | |
571 | PyObject * _obj3 = 0; | |
572 | PyObject * _argo4 = 0; | |
573 | char *_kwnames[] = { "message","defaultPath","style","pos","parent", NULL }; | |
574 | ||
575 | self = self; | |
576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOlOO:wxDirSelector",_kwnames,&_obj0,&_obj1,&_arg2,&_obj3,&_argo4)) | |
577 | return NULL; | |
578 | if (_obj0) | |
579 | { | |
580 | _arg0 = wxString_in_helper(_obj0); | |
581 | if (_arg0 == NULL) | |
582 | return NULL; | |
583 | } | |
584 | if (_obj1) | |
585 | { | |
586 | _arg1 = wxString_in_helper(_obj1); | |
587 | if (_arg1 == NULL) | |
588 | return NULL; | |
589 | } | |
590 | if (_obj3) | |
591 | { | |
592 | _arg3 = &temp; | |
593 | if (! wxPoint_helper(_obj3, &_arg3)) | |
594 | return NULL; | |
595 | } | |
596 | if (_argo4) { | |
597 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
598 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxDirSelector. Expected _wxWindow_p."); | |
600 | return NULL; | |
601 | } | |
602 | } | |
603 | { | |
604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
605 | _result = new wxString (wxDirSelector(*_arg0,*_arg1,_arg2,*_arg3,_arg4)); | |
606 | ||
607 | wxPyEndAllowThreads(__tstate); | |
608 | if (PyErr_Occurred()) return NULL; | |
609 | }{ | |
610 | #if wxUSE_UNICODE | |
7e50db3f | 611 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
7cdaed0b RD |
612 | #else |
613 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
614 | #endif | |
615 | } | |
616 | { | |
617 | if (_obj0) | |
618 | delete _arg0; | |
619 | } | |
620 | { | |
621 | if (_obj1) | |
622 | delete _arg1; | |
623 | } | |
624 | { | |
625 | delete _result; | |
626 | } | |
627 | return _resultobj; | |
628 | } | |
629 | ||
06c0fba4 RD |
630 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
631 | PyObject * _resultobj; | |
632 | wxString * _result; | |
633 | wxString * _arg0; | |
137b5242 RD |
634 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
635 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
06c0fba4 RD |
636 | wxWindow * _arg3 = (wxWindow *) NULL; |
637 | int _arg4 = (int ) -1; | |
638 | int _arg5 = (int ) -1; | |
639 | bool _arg6 = (bool ) TRUE; | |
640 | PyObject * _obj0 = 0; | |
641 | PyObject * _obj1 = 0; | |
642 | PyObject * _obj2 = 0; | |
643 | PyObject * _argo3 = 0; | |
644 | int tempbool6 = (int) TRUE; | |
645 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
646 | ||
647 | self = self; | |
648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
649 | return NULL; | |
650 | { | |
c8bc7bb8 RD |
651 | _arg0 = wxString_in_helper(_obj0); |
652 | if (_arg0 == NULL) | |
185d7c3e | 653 | return NULL; |
06c0fba4 RD |
654 | } |
655 | if (_obj1) | |
656 | { | |
c8bc7bb8 RD |
657 | _arg1 = wxString_in_helper(_obj1); |
658 | if (_arg1 == NULL) | |
185d7c3e | 659 | return NULL; |
06c0fba4 RD |
660 | } |
661 | if (_obj2) | |
662 | { | |
c8bc7bb8 RD |
663 | _arg2 = wxString_in_helper(_obj2); |
664 | if (_arg2 == NULL) | |
06c0fba4 | 665 | return NULL; |
06c0fba4 RD |
666 | } |
667 | if (_argo3) { | |
668 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
669 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
671 | return NULL; | |
672 | } | |
673 | } | |
674 | _arg6 = (bool ) tempbool6; | |
675 | { | |
4268f798 | 676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 677 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); |
06c0fba4 | 678 | |
4268f798 RD |
679 | wxPyEndAllowThreads(__tstate); |
680 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 681 | }{ |
c8bc7bb8 | 682 | #if wxUSE_UNICODE |
7e50db3f | 683 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 684 | #else |
eec92d76 | 685 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 686 | #endif |
06c0fba4 RD |
687 | } |
688 | { | |
689 | if (_obj0) | |
690 | delete _arg0; | |
691 | } | |
692 | { | |
693 | if (_obj1) | |
694 | delete _arg1; | |
695 | } | |
696 | { | |
697 | if (_obj2) | |
698 | delete _arg2; | |
699 | } | |
700 | { | |
701 | delete _result; | |
702 | } | |
703 | return _resultobj; | |
704 | } | |
705 | ||
1b62f00d RD |
706 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
707 | PyObject * _resultobj; | |
708 | wxString * _result; | |
709 | wxString * _arg0; | |
137b5242 RD |
710 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
711 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
1b62f00d RD |
712 | wxWindow * _arg3 = (wxWindow *) NULL; |
713 | PyObject * _obj0 = 0; | |
714 | PyObject * _obj1 = 0; | |
715 | PyObject * _obj2 = 0; | |
716 | PyObject * _argo3 = 0; | |
717 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
718 | ||
719 | self = self; | |
720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
721 | return NULL; | |
722 | { | |
c8bc7bb8 RD |
723 | _arg0 = wxString_in_helper(_obj0); |
724 | if (_arg0 == NULL) | |
1b62f00d | 725 | return NULL; |
1b62f00d RD |
726 | } |
727 | if (_obj1) | |
728 | { | |
c8bc7bb8 RD |
729 | _arg1 = wxString_in_helper(_obj1); |
730 | if (_arg1 == NULL) | |
1b62f00d | 731 | return NULL; |
1b62f00d RD |
732 | } |
733 | if (_obj2) | |
734 | { | |
c8bc7bb8 RD |
735 | _arg2 = wxString_in_helper(_obj2); |
736 | if (_arg2 == NULL) | |
1b62f00d | 737 | return NULL; |
1b62f00d RD |
738 | } |
739 | if (_argo3) { | |
740 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
741 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
743 | return NULL; | |
744 | } | |
745 | } | |
746 | { | |
4268f798 | 747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 748 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); |
1b62f00d | 749 | |
4268f798 RD |
750 | wxPyEndAllowThreads(__tstate); |
751 | if (PyErr_Occurred()) return NULL; | |
1b62f00d | 752 | }{ |
c8bc7bb8 | 753 | #if wxUSE_UNICODE |
7e50db3f | 754 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 755 | #else |
1b62f00d | 756 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 757 | #endif |
1b62f00d RD |
758 | } |
759 | { | |
760 | if (_obj0) | |
761 | delete _arg0; | |
762 | } | |
763 | { | |
764 | if (_obj1) | |
765 | delete _arg1; | |
766 | } | |
767 | { | |
768 | if (_obj2) | |
769 | delete _arg2; | |
770 | } | |
771 | { | |
772 | delete _result; | |
773 | } | |
774 | return _resultobj; | |
775 | } | |
776 | ||
06c0fba4 RD |
777 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
778 | PyObject * _resultobj; | |
779 | wxString * _result; | |
780 | wxString * _arg0; | |
781 | wxString * _arg1; | |
782 | int _arg2; | |
783 | wxString * _arg3; | |
784 | wxWindow * _arg4 = (wxWindow *) NULL; | |
785 | int _arg5 = (int ) -1; | |
786 | int _arg6 = (int ) -1; | |
787 | bool _arg7 = (bool ) TRUE; | |
788 | int _arg8 = (int ) 150; | |
789 | int _arg9 = (int ) 200; | |
790 | PyObject * _obj0 = 0; | |
791 | PyObject * _obj1 = 0; | |
792 | PyObject * _obj3 = 0; | |
793 | PyObject * _argo4 = 0; | |
794 | int tempbool7 = (int) TRUE; | |
eec92d76 | 795 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
796 | |
797 | self = self; | |
798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
799 | return NULL; | |
800 | { | |
c8bc7bb8 RD |
801 | _arg0 = wxString_in_helper(_obj0); |
802 | if (_arg0 == NULL) | |
185d7c3e | 803 | return NULL; |
06c0fba4 RD |
804 | } |
805 | { | |
c8bc7bb8 RD |
806 | _arg1 = wxString_in_helper(_obj1); |
807 | if (_arg1 == NULL) | |
185d7c3e | 808 | return NULL; |
06c0fba4 RD |
809 | } |
810 | if (_obj3) | |
811 | { | |
812 | _arg3 = wxString_LIST_helper(_obj3); | |
813 | if (_arg3 == NULL) { | |
814 | return NULL; | |
815 | } | |
816 | } | |
817 | if (_argo4) { | |
818 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
819 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
821 | return NULL; | |
822 | } | |
823 | } | |
824 | _arg7 = (bool ) tempbool7; | |
825 | { | |
826 | if (_obj3) { | |
827 | _arg2 = PyList_Size(_obj3); | |
828 | } | |
829 | else { | |
830 | _arg2 = 0; | |
831 | } | |
832 | } | |
833 | { | |
4268f798 | 834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 835 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); |
06c0fba4 | 836 | |
4268f798 RD |
837 | wxPyEndAllowThreads(__tstate); |
838 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 839 | }{ |
c8bc7bb8 | 840 | #if wxUSE_UNICODE |
7e50db3f | 841 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 842 | #else |
eec92d76 | 843 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 844 | #endif |
06c0fba4 RD |
845 | } |
846 | { | |
847 | if (_obj0) | |
848 | delete _arg0; | |
849 | } | |
850 | { | |
851 | if (_obj1) | |
852 | delete _arg1; | |
853 | } | |
854 | { | |
855 | delete [] _arg3; | |
856 | } | |
857 | { | |
858 | delete _result; | |
859 | } | |
860 | return _resultobj; | |
861 | } | |
862 | ||
863 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
864 | PyObject * _resultobj; | |
865 | int _result; | |
866 | wxString * _arg0; | |
867 | wxString * _arg1; | |
868 | int _arg2; | |
869 | wxString * _arg3; | |
870 | wxWindow * _arg4 = (wxWindow *) NULL; | |
871 | int _arg5 = (int ) -1; | |
872 | int _arg6 = (int ) -1; | |
873 | bool _arg7 = (bool ) TRUE; | |
874 | int _arg8 = (int ) 150; | |
875 | int _arg9 = (int ) 200; | |
876 | PyObject * _obj0 = 0; | |
877 | PyObject * _obj1 = 0; | |
878 | PyObject * _obj3 = 0; | |
879 | PyObject * _argo4 = 0; | |
880 | int tempbool7 = (int) TRUE; | |
eec92d76 | 881 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
882 | |
883 | self = self; | |
884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
885 | return NULL; | |
886 | { | |
c8bc7bb8 RD |
887 | _arg0 = wxString_in_helper(_obj0); |
888 | if (_arg0 == NULL) | |
185d7c3e | 889 | return NULL; |
06c0fba4 RD |
890 | } |
891 | { | |
c8bc7bb8 RD |
892 | _arg1 = wxString_in_helper(_obj1); |
893 | if (_arg1 == NULL) | |
185d7c3e | 894 | return NULL; |
06c0fba4 RD |
895 | } |
896 | if (_obj3) | |
897 | { | |
898 | _arg3 = wxString_LIST_helper(_obj3); | |
899 | if (_arg3 == NULL) { | |
900 | return NULL; | |
901 | } | |
902 | } | |
903 | if (_argo4) { | |
904 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
905 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
907 | return NULL; | |
908 | } | |
909 | } | |
910 | _arg7 = (bool ) tempbool7; | |
911 | { | |
912 | if (_obj3) { | |
913 | _arg2 = PyList_Size(_obj3); | |
914 | } | |
915 | else { | |
916 | _arg2 = 0; | |
917 | } | |
918 | } | |
919 | { | |
4268f798 | 920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 921 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
06c0fba4 | 922 | |
4268f798 RD |
923 | wxPyEndAllowThreads(__tstate); |
924 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
925 | } _resultobj = Py_BuildValue("i",_result); |
926 | { | |
927 | if (_obj0) | |
928 | delete _arg0; | |
929 | } | |
930 | { | |
931 | if (_obj1) | |
932 | delete _arg1; | |
933 | } | |
934 | { | |
935 | delete [] _arg3; | |
936 | } | |
937 | return _resultobj; | |
938 | } | |
939 | ||
940 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
941 | PyObject * _resultobj; | |
942 | int _result; | |
943 | wxString * _arg0; | |
137b5242 | 944 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
06c0fba4 RD |
945 | int _arg2 = (int ) wxOK|wxCENTRE; |
946 | wxWindow * _arg3 = (wxWindow *) NULL; | |
947 | int _arg4 = (int ) -1; | |
948 | int _arg5 = (int ) -1; | |
949 | PyObject * _obj0 = 0; | |
950 | PyObject * _obj1 = 0; | |
951 | PyObject * _argo3 = 0; | |
952 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
953 | ||
954 | self = self; | |
955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
956 | return NULL; | |
957 | { | |
c8bc7bb8 RD |
958 | _arg0 = wxString_in_helper(_obj0); |
959 | if (_arg0 == NULL) | |
185d7c3e | 960 | return NULL; |
06c0fba4 RD |
961 | } |
962 | if (_obj1) | |
963 | { | |
c8bc7bb8 RD |
964 | _arg1 = wxString_in_helper(_obj1); |
965 | if (_arg1 == NULL) | |
185d7c3e | 966 | return NULL; |
06c0fba4 RD |
967 | } |
968 | if (_argo3) { | |
969 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
970 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
972 | return NULL; | |
973 | } | |
974 | } | |
975 | { | |
4268f798 | 976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 977 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); |
06c0fba4 | 978 | |
4268f798 RD |
979 | wxPyEndAllowThreads(__tstate); |
980 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
981 | } _resultobj = Py_BuildValue("i",_result); |
982 | { | |
983 | if (_obj0) | |
984 | delete _arg0; | |
985 | } | |
986 | { | |
987 | if (_obj1) | |
988 | delete _arg1; | |
989 | } | |
990 | return _resultobj; | |
991 | } | |
992 | ||
993 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
994 | PyObject * _resultobj; | |
995 | long _result; | |
996 | wxString * _arg0; | |
997 | wxString * _arg1; | |
998 | wxString * _arg2; | |
999 | long _arg3; | |
1000 | long _arg4 = (long ) 0; | |
1001 | long _arg5 = (long ) 100; | |
1002 | wxWindow * _arg6 = (wxWindow *) NULL; | |
e508a2b6 | 1003 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; |
06c0fba4 RD |
1004 | PyObject * _obj0 = 0; |
1005 | PyObject * _obj1 = 0; | |
1006 | PyObject * _obj2 = 0; | |
1007 | PyObject * _argo6 = 0; | |
1008 | wxPoint temp; | |
1009 | PyObject * _obj7 = 0; | |
1010 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
1011 | ||
1012 | self = self; | |
1013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
1014 | return NULL; | |
1015 | { | |
c8bc7bb8 RD |
1016 | _arg0 = wxString_in_helper(_obj0); |
1017 | if (_arg0 == NULL) | |
185d7c3e | 1018 | return NULL; |
06c0fba4 RD |
1019 | } |
1020 | { | |
c8bc7bb8 RD |
1021 | _arg1 = wxString_in_helper(_obj1); |
1022 | if (_arg1 == NULL) | |
06c0fba4 | 1023 | return NULL; |
06c0fba4 RD |
1024 | } |
1025 | { | |
c8bc7bb8 RD |
1026 | _arg2 = wxString_in_helper(_obj2); |
1027 | if (_arg2 == NULL) | |
185d7c3e | 1028 | return NULL; |
06c0fba4 RD |
1029 | } |
1030 | if (_argo6) { | |
1031 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1032 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
1033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
1034 | return NULL; | |
1035 | } | |
1036 | } | |
1037 | if (_obj7) | |
1038 | { | |
1039 | _arg7 = &temp; | |
1040 | if (! wxPoint_helper(_obj7, &_arg7)) | |
1041 | return NULL; | |
1042 | } | |
1043 | { | |
4268f798 | 1044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1045 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); |
06c0fba4 | 1046 | |
4268f798 RD |
1047 | wxPyEndAllowThreads(__tstate); |
1048 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1049 | } _resultobj = Py_BuildValue("l",_result); |
1050 | { | |
1051 | if (_obj0) | |
1052 | delete _arg0; | |
1053 | } | |
1054 | { | |
1055 | if (_obj1) | |
1056 | delete _arg1; | |
1057 | } | |
1058 | { | |
1059 | if (_obj2) | |
1060 | delete _arg2; | |
1061 | } | |
1062 | return _resultobj; | |
1063 | } | |
1064 | ||
1065 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1066 | PyObject * _resultobj; | |
1067 | bool _result; | |
1068 | char *_kwnames[] = { NULL }; | |
1069 | ||
1070 | self = self; | |
1071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
1072 | return NULL; | |
1073 | { | |
4268f798 | 1074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1075 | _result = (bool )wxColourDisplay(); |
06c0fba4 | 1076 | |
4268f798 RD |
1077 | wxPyEndAllowThreads(__tstate); |
1078 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1079 | } _resultobj = Py_BuildValue("i",_result); |
1080 | return _resultobj; | |
1081 | } | |
1082 | ||
1083 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1084 | PyObject * _resultobj; | |
1085 | int _result; | |
1086 | char *_kwnames[] = { NULL }; | |
1087 | ||
1088 | self = self; | |
1089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
1090 | return NULL; | |
1091 | { | |
4268f798 | 1092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1093 | _result = (int )wxDisplayDepth(); |
06c0fba4 | 1094 | |
4268f798 RD |
1095 | wxPyEndAllowThreads(__tstate); |
1096 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1097 | } _resultobj = Py_BuildValue("i",_result); |
1098 | return _resultobj; | |
1099 | } | |
f0261a72 | 1100 | |
1e7ecb7b RD |
1101 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { |
1102 | PyObject * _resultobj; | |
1103 | int _result; | |
1104 | char *_kwnames[] = { NULL }; | |
1105 | ||
1106 | self = self; | |
1107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
1108 | return NULL; | |
1109 | { | |
4268f798 | 1110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1111 | _result = (int )wxGetDisplayDepth(); |
1e7ecb7b | 1112 | |
4268f798 RD |
1113 | wxPyEndAllowThreads(__tstate); |
1114 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1115 | } _resultobj = Py_BuildValue("i",_result); |
1116 | return _resultobj; | |
1117 | } | |
1118 | ||
1119 | static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1120 | PyObject * _resultobj; | |
1121 | int * _arg0; | |
1122 | int temp; | |
1123 | int * _arg1; | |
1124 | int temp0; | |
1125 | char *_kwnames[] = { NULL }; | |
1126 | ||
1127 | self = self; | |
1128 | { | |
1129 | _arg0 = &temp; | |
1130 | } | |
1131 | { | |
1132 | _arg1 = &temp0; | |
1133 | } | |
1134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames)) | |
1135 | return NULL; | |
1136 | { | |
4268f798 | 1137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1138 | wxDisplaySize(_arg0,_arg1); |
1e7ecb7b | 1139 | |
4268f798 RD |
1140 | wxPyEndAllowThreads(__tstate); |
1141 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1142 | } Py_INCREF(Py_None); |
1143 | _resultobj = Py_None; | |
1144 | { | |
1145 | PyObject *o; | |
1146 | o = PyInt_FromLong((long) (*_arg0)); | |
1147 | _resultobj = t_output_helper(_resultobj, o); | |
1148 | } | |
1149 | { | |
1150 | PyObject *o; | |
1151 | o = PyInt_FromLong((long) (*_arg1)); | |
1152 | _resultobj = t_output_helper(_resultobj, o); | |
1153 | } | |
1154 | return _resultobj; | |
1155 | } | |
1156 | ||
1157 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1158 | PyObject * _resultobj; | |
1159 | wxSize * _result; | |
1160 | char *_kwnames[] = { NULL }; | |
1161 | char _ptemp[128]; | |
1162 | ||
1163 | self = self; | |
1164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
1165 | return NULL; | |
1166 | { | |
4268f798 | 1167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1168 | _result = new wxSize (wxGetDisplaySize()); |
1e7ecb7b | 1169 | |
4268f798 RD |
1170 | wxPyEndAllowThreads(__tstate); |
1171 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1172 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1173 | _resultobj = Py_BuildValue("s",_ptemp); | |
1174 | return _resultobj; | |
1175 | } | |
1176 | ||
1177 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1178 | PyObject * _resultobj; | |
1179 | int * _arg0; | |
1180 | int temp; | |
1181 | int * _arg1; | |
1182 | int temp0; | |
1183 | char *_kwnames[] = { NULL }; | |
1184 | ||
1185 | self = self; | |
1186 | { | |
1187 | _arg0 = &temp; | |
1188 | } | |
1189 | { | |
1190 | _arg1 = &temp0; | |
1191 | } | |
1192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
1193 | return NULL; | |
1194 | { | |
4268f798 | 1195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1196 | wxDisplaySizeMM(_arg0,_arg1); |
1e7ecb7b | 1197 | |
4268f798 RD |
1198 | wxPyEndAllowThreads(__tstate); |
1199 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1200 | } Py_INCREF(Py_None); |
1201 | _resultobj = Py_None; | |
1202 | { | |
1203 | PyObject *o; | |
1204 | o = PyInt_FromLong((long) (*_arg0)); | |
1205 | _resultobj = t_output_helper(_resultobj, o); | |
1206 | } | |
1207 | { | |
1208 | PyObject *o; | |
1209 | o = PyInt_FromLong((long) (*_arg1)); | |
1210 | _resultobj = t_output_helper(_resultobj, o); | |
1211 | } | |
1212 | return _resultobj; | |
1213 | } | |
1214 | ||
1215 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1216 | PyObject * _resultobj; | |
1217 | wxSize * _result; | |
1218 | char *_kwnames[] = { NULL }; | |
1219 | char _ptemp[128]; | |
1220 | ||
1221 | self = self; | |
1222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1223 | return NULL; | |
1224 | { | |
4268f798 | 1225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1226 | _result = new wxSize (wxGetDisplaySizeMM()); |
1e7ecb7b | 1227 | |
4268f798 RD |
1228 | wxPyEndAllowThreads(__tstate); |
1229 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1230 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1231 | _resultobj = Py_BuildValue("s",_ptemp); | |
1232 | return _resultobj; | |
1233 | } | |
1234 | ||
91c41b30 RD |
1235 | static PyObject *_wrap_wxClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
1236 | PyObject * _resultobj; | |
1237 | int * _arg0; | |
1238 | int temp; | |
1239 | int * _arg1; | |
1240 | int temp0; | |
1241 | int * _arg2; | |
1242 | int temp1; | |
1243 | int * _arg3; | |
1244 | int temp2; | |
1245 | char *_kwnames[] = { NULL }; | |
1246 | ||
1247 | self = self; | |
1248 | { | |
1249 | _arg0 = &temp; | |
1250 | } | |
1251 | { | |
1252 | _arg1 = &temp0; | |
1253 | } | |
1254 | { | |
1255 | _arg2 = &temp1; | |
1256 | } | |
1257 | { | |
1258 | _arg3 = &temp2; | |
1259 | } | |
1260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxClientDisplayRect",_kwnames)) | |
1261 | return NULL; | |
1262 | { | |
4268f798 | 1263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1264 | wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3); |
91c41b30 | 1265 | |
4268f798 RD |
1266 | wxPyEndAllowThreads(__tstate); |
1267 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1268 | } Py_INCREF(Py_None); |
1269 | _resultobj = Py_None; | |
1270 | { | |
1271 | PyObject *o; | |
1272 | o = PyInt_FromLong((long) (*_arg0)); | |
1273 | _resultobj = t_output_helper(_resultobj, o); | |
1274 | } | |
1275 | { | |
1276 | PyObject *o; | |
1277 | o = PyInt_FromLong((long) (*_arg1)); | |
1278 | _resultobj = t_output_helper(_resultobj, o); | |
1279 | } | |
1280 | { | |
1281 | PyObject *o; | |
1282 | o = PyInt_FromLong((long) (*_arg2)); | |
1283 | _resultobj = t_output_helper(_resultobj, o); | |
1284 | } | |
1285 | { | |
1286 | PyObject *o; | |
1287 | o = PyInt_FromLong((long) (*_arg3)); | |
1288 | _resultobj = t_output_helper(_resultobj, o); | |
1289 | } | |
1290 | return _resultobj; | |
1291 | } | |
1292 | ||
1293 | static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1294 | PyObject * _resultobj; | |
1295 | wxRect * _result; | |
1296 | char *_kwnames[] = { NULL }; | |
1297 | char _ptemp[128]; | |
1298 | ||
1299 | self = self; | |
1300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames)) | |
1301 | return NULL; | |
1302 | { | |
4268f798 | 1303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1304 | _result = new wxRect (wxGetClientDisplayRect()); |
91c41b30 | 1305 | |
4268f798 RD |
1306 | wxPyEndAllowThreads(__tstate); |
1307 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1308 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
1309 | _resultobj = Py_BuildValue("s",_ptemp); | |
1310 | return _resultobj; | |
1311 | } | |
1312 | ||
06c0fba4 RD |
1313 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1314 | PyObject * _resultobj; | |
1315 | wxCursor * _arg0; | |
1316 | PyObject * _argo0 = 0; | |
1317 | char *_kwnames[] = { "cursor", NULL }; | |
f0261a72 | 1318 | |
06c0fba4 RD |
1319 | self = self; |
1320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1321 | return NULL; | |
1322 | if (_argo0) { | |
7e50db3f | 1323 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { |
06c0fba4 RD |
1324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); |
1325 | return NULL; | |
1326 | } | |
f0261a72 | 1327 | } |
06c0fba4 | 1328 | { |
4268f798 | 1329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1330 | wxSetCursor(*_arg0); |
06c0fba4 | 1331 | |
4268f798 RD |
1332 | wxPyEndAllowThreads(__tstate); |
1333 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1334 | } Py_INCREF(Py_None); |
1335 | _resultobj = Py_None; | |
1336 | return _resultobj; | |
1337 | } | |
1338 | ||
06c0fba4 RD |
1339 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1340 | PyObject * _resultobj; | |
1341 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1342 | PyObject * _argo0 = 0; | |
1343 | char *_kwnames[] = { "cursor", NULL }; | |
1344 | ||
1345 | self = self; | |
1346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1347 | return NULL; | |
1348 | if (_argo0) { | |
1349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1352 | return NULL; | |
1353 | } | |
1354 | } | |
1355 | { | |
4268f798 | 1356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1357 | wxBeginBusyCursor(_arg0); |
06c0fba4 | 1358 | |
4268f798 RD |
1359 | wxPyEndAllowThreads(__tstate); |
1360 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1361 | } Py_INCREF(Py_None); |
1362 | _resultobj = Py_None; | |
1363 | return _resultobj; | |
1364 | } | |
1365 | ||
1366 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1367 | PyObject * _resultobj; | |
1368 | wxWindow * _result; | |
1369 | char *_kwnames[] = { NULL }; | |
06c0fba4 RD |
1370 | |
1371 | self = self; | |
1372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1373 | return NULL; | |
1374 | { | |
4268f798 | 1375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1376 | _result = (wxWindow *)wxGetActiveWindow(); |
06c0fba4 | 1377 | |
4268f798 RD |
1378 | wxPyEndAllowThreads(__tstate); |
1379 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1380 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1381 | return _resultobj; |
1382 | } | |
1383 | ||
493f1553 RD |
1384 | static PyObject *_wrap_wxGenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
1385 | PyObject * _resultobj; | |
1386 | wxWindow * _result; | |
1387 | wxPoint * _arg0; | |
1388 | wxPoint temp; | |
1389 | PyObject * _obj0 = 0; | |
1390 | char *_kwnames[] = { "pt", NULL }; | |
1391 | ||
1392 | self = self; | |
1393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericFindWindowAtPoint",_kwnames,&_obj0)) | |
1394 | return NULL; | |
1395 | { | |
1396 | _arg0 = &temp; | |
1397 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1398 | return NULL; | |
1399 | } | |
1400 | { | |
4268f798 | 1401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1402 | _result = (wxWindow *)wxGenericFindWindowAtPoint(*_arg0); |
493f1553 | 1403 | |
4268f798 RD |
1404 | wxPyEndAllowThreads(__tstate); |
1405 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1406 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1407 | return _resultobj; | |
1408 | } | |
1409 | ||
1410 | static PyObject *_wrap_wxFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1411 | PyObject * _resultobj; | |
1412 | wxWindow * _result; | |
1413 | wxPoint * _arg0; | |
1414 | wxPoint temp; | |
1415 | PyObject * _obj0 = 0; | |
1416 | char *_kwnames[] = { "pt", NULL }; | |
1417 | ||
1418 | self = self; | |
1419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindWindowAtPoint",_kwnames,&_obj0)) | |
1420 | return NULL; | |
1421 | { | |
1422 | _arg0 = &temp; | |
1423 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1424 | return NULL; | |
1425 | } | |
1426 | { | |
4268f798 | 1427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1428 | _result = (wxWindow *)wxFindWindowAtPoint(*_arg0); |
493f1553 | 1429 | |
4268f798 RD |
1430 | wxPyEndAllowThreads(__tstate); |
1431 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1432 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1433 | return _resultobj; | |
1434 | } | |
1435 | ||
1436 | static PyObject *_wrap_wxCheckForInterrupt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1437 | PyObject * _resultobj; | |
1438 | bool _result; | |
1439 | wxWindow * _arg0; | |
1440 | PyObject * _argo0 = 0; | |
1441 | char *_kwnames[] = { "wnd", NULL }; | |
1442 | ||
1443 | self = self; | |
1444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckForInterrupt",_kwnames,&_argo0)) | |
1445 | return NULL; | |
1446 | if (_argo0) { | |
1447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckForInterrupt. Expected _wxWindow_p."); | |
1450 | return NULL; | |
1451 | } | |
1452 | } | |
1453 | { | |
4268f798 | 1454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1455 | _result = (bool )wxCheckForInterrupt(_arg0); |
493f1553 | 1456 | |
4268f798 RD |
1457 | wxPyEndAllowThreads(__tstate); |
1458 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1459 | } _resultobj = Py_BuildValue("i",_result); |
1460 | return _resultobj; | |
1461 | } | |
1462 | ||
2a74d141 RD |
1463 | static PyObject *_wrap_wxGetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1464 | PyObject * _resultobj; | |
1465 | wxWindow * _result; | |
1466 | wxWindow * _arg0; | |
1467 | PyObject * _argo0 = 0; | |
1468 | char *_kwnames[] = { "win", NULL }; | |
1469 | ||
1470 | self = self; | |
1471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGetTopLevelParent",_kwnames,&_argo0)) | |
1472 | return NULL; | |
1473 | if (_argo0) { | |
1474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGetTopLevelParent. Expected _wxWindow_p."); | |
1477 | return NULL; | |
1478 | } | |
1479 | } | |
1480 | { | |
1481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1482 | _result = (wxWindow *)wxGetTopLevelParent(_arg0); | |
1483 | ||
1484 | wxPyEndAllowThreads(__tstate); | |
1485 | if (PyErr_Occurred()) return NULL; | |
1486 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1487 | return _resultobj; | |
1488 | } | |
1489 | ||
f0261a72 RD |
1490 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { |
1491 | PyObject * _resultobj; | |
1492 | int _result; | |
1493 | char *_kwnames[] = { NULL }; | |
1494 | ||
1495 | self = self; | |
1496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1497 | return NULL; | |
1498 | { | |
4268f798 | 1499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1500 | _result = (int )wxCaret_GetBlinkTime(); |
f0261a72 | 1501 | |
4268f798 RD |
1502 | wxPyEndAllowThreads(__tstate); |
1503 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1504 | } _resultobj = Py_BuildValue("i",_result); |
1505 | return _resultobj; | |
1506 | } | |
1507 | ||
1508 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject * _resultobj; | |
1510 | int _arg0; | |
1511 | char *_kwnames[] = { "milliseconds", NULL }; | |
1512 | ||
1513 | self = self; | |
1514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1515 | return NULL; | |
1516 | { | |
4268f798 | 1517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1518 | wxCaret_SetBlinkTime(_arg0); |
f0261a72 | 1519 | |
4268f798 RD |
1520 | wxPyEndAllowThreads(__tstate); |
1521 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1522 | } Py_INCREF(Py_None); |
1523 | _resultobj = Py_None; | |
1524 | return _resultobj; | |
1525 | } | |
1526 | ||
6e18ca6c RD |
1527 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { |
1528 | PyObject * _resultobj; | |
1529 | bool _result; | |
1530 | wxWindow * _arg0 = (wxWindow *) NULL; | |
7e50db3f | 1531 | bool _arg1 = (bool ) FALSE; |
6e18ca6c | 1532 | PyObject * _argo0 = 0; |
7e50db3f RD |
1533 | int tempbool1 = (int) FALSE; |
1534 | char *_kwnames[] = { "win","onlyIfNeeded", NULL }; | |
6e18ca6c RD |
1535 | |
1536 | self = self; | |
7e50db3f | 1537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:wxSafeYield",_kwnames,&_argo0,&tempbool1)) |
6e18ca6c RD |
1538 | return NULL; |
1539 | if (_argo0) { | |
1540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1543 | return NULL; | |
1544 | } | |
1545 | } | |
7e50db3f | 1546 | _arg1 = (bool ) tempbool1; |
6e18ca6c | 1547 | { |
4268f798 | 1548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 1549 | _result = (bool )wxSafeYield(_arg0,_arg1); |
6e18ca6c | 1550 | |
4268f798 RD |
1551 | wxPyEndAllowThreads(__tstate); |
1552 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1553 | } _resultobj = Py_BuildValue("i",_result); |
1554 | return _resultobj; | |
1555 | } | |
1556 | ||
b1462dfa RD |
1557 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1558 | PyObject * _resultobj; | |
1559 | wxEvtHandler * _arg0; | |
1560 | wxEvent * _arg1; | |
1561 | PyObject * _argo0 = 0; | |
1562 | PyObject * _argo1 = 0; | |
1563 | char *_kwnames[] = { "dest","event", NULL }; | |
1564 | ||
1565 | self = self; | |
1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1567 | return NULL; | |
1568 | if (_argo0) { | |
1569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1572 | return NULL; | |
1573 | } | |
1574 | } | |
1575 | if (_argo1) { | |
7e50db3f | 1576 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { |
b1462dfa RD |
1577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); |
1578 | return NULL; | |
1579 | } | |
1580 | } | |
1581 | { | |
4268f798 | 1582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1583 | wxPostEvent(_arg0,*_arg1); |
b1462dfa | 1584 | |
4268f798 RD |
1585 | wxPyEndAllowThreads(__tstate); |
1586 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
1587 | } Py_INCREF(Py_None); |
1588 | _resultobj = Py_None; | |
1589 | return _resultobj; | |
1590 | } | |
1591 | ||
694759cf RD |
1592 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { |
1593 | PyObject * _resultobj; | |
1594 | char *_kwnames[] = { NULL }; | |
1595 | ||
1596 | self = self; | |
1597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1598 | return NULL; | |
1599 | { | |
4268f798 | 1600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1601 | wxWakeUpIdle(); |
694759cf | 1602 | |
4268f798 RD |
1603 | wxPyEndAllowThreads(__tstate); |
1604 | if (PyErr_Occurred()) return NULL; | |
694759cf RD |
1605 | } Py_INCREF(Py_None); |
1606 | _resultobj = Py_None; | |
1607 | return _resultobj; | |
1608 | } | |
1609 | ||
6e18ca6c | 1610 | static PyObject *_wrap_wxWakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
c368d904 | 1611 | PyObject * _resultobj; |
6e18ca6c | 1612 | char *_kwnames[] = { NULL }; |
c368d904 RD |
1613 | |
1614 | self = self; | |
6e18ca6c | 1615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpMainThread",_kwnames)) |
c368d904 | 1616 | return NULL; |
6e18ca6c | 1617 | { |
4268f798 | 1618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1619 | wxWakeUpMainThread(); |
6e18ca6c | 1620 | |
4268f798 RD |
1621 | wxPyEndAllowThreads(__tstate); |
1622 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1623 | } Py_INCREF(Py_None); |
1624 | _resultobj = Py_None; | |
1625 | return _resultobj; | |
1626 | } | |
1627 | ||
1628 | static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1629 | PyObject * _resultobj; | |
1630 | char *_kwnames[] = { NULL }; | |
1631 | ||
1632 | self = self; | |
1633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames)) | |
c368d904 | 1634 | return NULL; |
c368d904 | 1635 | { |
4268f798 | 1636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1637 | wxMutexGuiEnter(); |
6e18ca6c | 1638 | |
4268f798 RD |
1639 | wxPyEndAllowThreads(__tstate); |
1640 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1641 | } Py_INCREF(Py_None); |
1642 | _resultobj = Py_None; | |
1643 | return _resultobj; | |
1644 | } | |
1645 | ||
1646 | static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1647 | PyObject * _resultobj; | |
1648 | char *_kwnames[] = { NULL }; | |
1649 | ||
1650 | self = self; | |
1651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames)) | |
1652 | return NULL; | |
1653 | { | |
4268f798 | 1654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1655 | wxMutexGuiLeave(); |
6e18ca6c | 1656 | |
4268f798 RD |
1657 | wxPyEndAllowThreads(__tstate); |
1658 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1659 | } Py_INCREF(Py_None); |
1660 | _resultobj = Py_None; | |
1661 | return _resultobj; | |
1662 | } | |
1663 | ||
1664 | static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1665 | PyObject * _resultobj; | |
1666 | bool _result; | |
1667 | char *_kwnames[] = { NULL }; | |
1668 | ||
1669 | self = self; | |
1670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames)) | |
1671 | return NULL; | |
1672 | { | |
4268f798 | 1673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1674 | _result = (bool )wxThread_IsMain(); |
c368d904 | 1675 | |
4268f798 RD |
1676 | wxPyEndAllowThreads(__tstate); |
1677 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
1678 | } _resultobj = Py_BuildValue("i",_result); |
1679 | return _resultobj; | |
1680 | } | |
1681 | ||
f6bcfd97 | 1682 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd | 1683 | PyObject * _resultobj; |
f6bcfd97 BP |
1684 | bool _result; |
1685 | wxWindow * _arg0; | |
1686 | wxTipProvider * _arg1; | |
1687 | bool _arg2 = (bool ) TRUE; | |
1688 | PyObject * _argo0 = 0; | |
1689 | PyObject * _argo1 = 0; | |
1690 | int tempbool2 = (int) TRUE; | |
1691 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1692 | ||
1693 | self = self; | |
1694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1695 | return NULL; | |
1696 | if (_argo0) { | |
1697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1700 | return NULL; | |
1701 | } | |
1702 | } | |
1703 | if (_argo1) { | |
1704 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1705 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1707 | return NULL; | |
1708 | } | |
1709 | } | |
1710 | _arg2 = (bool ) tempbool2; | |
1711 | { | |
4268f798 | 1712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1713 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); |
f6bcfd97 | 1714 | |
4268f798 RD |
1715 | wxPyEndAllowThreads(__tstate); |
1716 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1717 | } _resultobj = Py_BuildValue("i",_result); |
1718 | return _resultobj; | |
1719 | } | |
1720 | ||
1721 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1722 | PyObject * _resultobj; | |
1723 | wxTipProvider * _result; | |
bb0054cd | 1724 | wxString * _arg0; |
f6bcfd97 | 1725 | size_t _arg1; |
bb0054cd | 1726 | PyObject * _obj0 = 0; |
f6bcfd97 | 1727 | char *_kwnames[] = { "filename","currentTip", NULL }; |
bb0054cd RD |
1728 | char _ptemp[128]; |
1729 | ||
1730 | self = self; | |
f6bcfd97 | 1731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) |
bb0054cd RD |
1732 | return NULL; |
1733 | { | |
c8bc7bb8 RD |
1734 | _arg0 = wxString_in_helper(_obj0); |
1735 | if (_arg0 == NULL) | |
185d7c3e | 1736 | return NULL; |
bb0054cd RD |
1737 | } |
1738 | { | |
4268f798 | 1739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1740 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); |
bb0054cd | 1741 | |
4268f798 RD |
1742 | wxPyEndAllowThreads(__tstate); |
1743 | if (PyErr_Occurred()) return NULL; | |
1d99702e | 1744 | } if (_result) { |
f6bcfd97 | 1745 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); |
1d99702e RD |
1746 | _resultobj = Py_BuildValue("s",_ptemp); |
1747 | } else { | |
1748 | Py_INCREF(Py_None); | |
1749 | _resultobj = Py_None; | |
1750 | } | |
bb0054cd RD |
1751 | { |
1752 | if (_obj0) | |
1753 | delete _arg0; | |
1754 | } | |
1755 | return _resultobj; | |
1756 | } | |
1757 | ||
f6bcfd97 | 1758 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1759 | PyObject * _resultobj; |
f6bcfd97 BP |
1760 | unsigned long _result; |
1761 | char *_kwnames[] = { NULL }; | |
f0261a72 RD |
1762 | |
1763 | self = self; | |
f6bcfd97 | 1764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) |
f0261a72 | 1765 | return NULL; |
f0261a72 | 1766 | { |
4268f798 | 1767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1768 | _result = (unsigned long )wxSysErrorCode(); |
f0261a72 | 1769 | |
4268f798 RD |
1770 | wxPyEndAllowThreads(__tstate); |
1771 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 1772 | } _resultobj = Py_BuildValue("l",_result); |
f0261a72 RD |
1773 | return _resultobj; |
1774 | } | |
1775 | ||
f6bcfd97 | 1776 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1777 | PyObject * _resultobj; |
c8bc7bb8 | 1778 | wxString * _result; |
f6bcfd97 BP |
1779 | unsigned long _arg0 = (unsigned long ) 0; |
1780 | char *_kwnames[] = { "nErrCode", NULL }; | |
f0261a72 RD |
1781 | |
1782 | self = self; | |
f6bcfd97 | 1783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) |
f0261a72 | 1784 | return NULL; |
f0261a72 | 1785 | { |
4268f798 | 1786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1787 | _result = new wxString (wxSysErrorMsg(_arg0)); |
f0261a72 | 1788 | |
4268f798 RD |
1789 | wxPyEndAllowThreads(__tstate); |
1790 | if (PyErr_Occurred()) return NULL; | |
c8bc7bb8 RD |
1791 | }{ |
1792 | #if wxUSE_UNICODE | |
7e50db3f | 1793 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 RD |
1794 | #else |
1795 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1796 | #endif | |
1797 | } | |
1798 | { | |
1799 | delete _result; | |
1800 | } | |
f0261a72 RD |
1801 | return _resultobj; |
1802 | } | |
1803 | ||
f6bcfd97 | 1804 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1805 | PyObject * _resultobj; |
c8bc7bb8 RD |
1806 | wxString * _arg0; |
1807 | PyObject * _obj0 = 0; | |
be13a6af | 1808 | char *_kwnames[] = { "msg", NULL }; |
f0261a72 RD |
1809 | |
1810 | self = self; | |
c8bc7bb8 | 1811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogFatalError",_kwnames,&_obj0)) |
f0261a72 | 1812 | return NULL; |
c8bc7bb8 RD |
1813 | { |
1814 | _arg0 = wxString_in_helper(_obj0); | |
1815 | if (_arg0 == NULL) | |
1816 | return NULL; | |
1817 | } | |
f0261a72 | 1818 | { |
4268f798 | 1819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1820 | wxLogFatalError(*_arg0); |
f0261a72 | 1821 | |
4268f798 RD |
1822 | wxPyEndAllowThreads(__tstate); |
1823 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1824 | } Py_INCREF(Py_None); |
1825 | _resultobj = Py_None; | |
c8bc7bb8 RD |
1826 | { |
1827 | if (_obj0) | |
1828 | delete _arg0; | |
1829 | } | |
f0261a72 RD |
1830 | return _resultobj; |
1831 | } | |
1832 | ||
f6bcfd97 | 1833 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1834 | PyObject * _resultobj; |
c8bc7bb8 RD |
1835 | wxString * _arg0; |
1836 | PyObject * _obj0 = 0; | |
be13a6af | 1837 | char *_kwnames[] = { "msg", NULL }; |
f0261a72 RD |
1838 | |
1839 | self = self; | |
c8bc7bb8 | 1840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogError",_kwnames,&_obj0)) |
f0261a72 | 1841 | return NULL; |
c8bc7bb8 RD |
1842 | { |
1843 | _arg0 = wxString_in_helper(_obj0); | |
1844 | if (_arg0 == NULL) | |
1845 | return NULL; | |
1846 | } | |
f0261a72 | 1847 | { |
4268f798 | 1848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1849 | wxLogError(*_arg0); |
f0261a72 | 1850 | |
4268f798 RD |
1851 | wxPyEndAllowThreads(__tstate); |
1852 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1853 | } Py_INCREF(Py_None); |
1854 | _resultobj = Py_None; | |
c8bc7bb8 RD |
1855 | { |
1856 | if (_obj0) | |
1857 | delete _arg0; | |
1858 | } | |
f0261a72 RD |
1859 | return _resultobj; |
1860 | } | |
1861 | ||
f6bcfd97 BP |
1862 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { |
1863 | PyObject * _resultobj; | |
c8bc7bb8 RD |
1864 | wxString * _arg0; |
1865 | PyObject * _obj0 = 0; | |
be13a6af | 1866 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
1867 | |
1868 | self = self; | |
c8bc7bb8 | 1869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWarning",_kwnames,&_obj0)) |
f6bcfd97 | 1870 | return NULL; |
c8bc7bb8 RD |
1871 | { |
1872 | _arg0 = wxString_in_helper(_obj0); | |
1873 | if (_arg0 == NULL) | |
1874 | return NULL; | |
1875 | } | |
f6bcfd97 | 1876 | { |
4268f798 | 1877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1878 | wxLogWarning(*_arg0); |
f6bcfd97 | 1879 | |
4268f798 RD |
1880 | wxPyEndAllowThreads(__tstate); |
1881 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1882 | } Py_INCREF(Py_None); |
1883 | _resultobj = Py_None; | |
c8bc7bb8 RD |
1884 | { |
1885 | if (_obj0) | |
1886 | delete _arg0; | |
1887 | } | |
f6bcfd97 BP |
1888 | return _resultobj; |
1889 | } | |
1890 | ||
1891 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1892 | PyObject * _resultobj; | |
c8bc7bb8 RD |
1893 | wxString * _arg0; |
1894 | PyObject * _obj0 = 0; | |
be13a6af | 1895 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
1896 | |
1897 | self = self; | |
c8bc7bb8 RD |
1898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogMessage",_kwnames,&_obj0)) |
1899 | return NULL; | |
1900 | { | |
1901 | _arg0 = wxString_in_helper(_obj0); | |
1902 | if (_arg0 == NULL) | |
f6bcfd97 | 1903 | return NULL; |
c8bc7bb8 | 1904 | } |
f6bcfd97 | 1905 | { |
4268f798 | 1906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1907 | wxLogMessage(*_arg0); |
f6bcfd97 | 1908 | |
4268f798 RD |
1909 | wxPyEndAllowThreads(__tstate); |
1910 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1911 | } Py_INCREF(Py_None); |
1912 | _resultobj = Py_None; | |
c8bc7bb8 RD |
1913 | { |
1914 | if (_obj0) | |
1915 | delete _arg0; | |
1916 | } | |
f6bcfd97 BP |
1917 | return _resultobj; |
1918 | } | |
1919 | ||
1920 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1921 | PyObject * _resultobj; | |
c8bc7bb8 RD |
1922 | wxString * _arg0; |
1923 | PyObject * _obj0 = 0; | |
be13a6af | 1924 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
1925 | |
1926 | self = self; | |
c8bc7bb8 RD |
1927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogInfo",_kwnames,&_obj0)) |
1928 | return NULL; | |
1929 | { | |
1930 | _arg0 = wxString_in_helper(_obj0); | |
1931 | if (_arg0 == NULL) | |
f6bcfd97 | 1932 | return NULL; |
c8bc7bb8 | 1933 | } |
f6bcfd97 | 1934 | { |
4268f798 | 1935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1936 | wxLogInfo(*_arg0); |
f6bcfd97 | 1937 | |
4268f798 RD |
1938 | wxPyEndAllowThreads(__tstate); |
1939 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1940 | } Py_INCREF(Py_None); |
1941 | _resultobj = Py_None; | |
c8bc7bb8 RD |
1942 | { |
1943 | if (_obj0) | |
1944 | delete _arg0; | |
1945 | } | |
f6bcfd97 BP |
1946 | return _resultobj; |
1947 | } | |
1948 | ||
7e50db3f RD |
1949 | static PyObject *_wrap_wxLogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { |
1950 | PyObject * _resultobj; | |
1951 | wxString * _arg0; | |
1952 | PyObject * _obj0 = 0; | |
1953 | char *_kwnames[] = { "msg", NULL }; | |
1954 | ||
1955 | self = self; | |
1956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogDebug",_kwnames,&_obj0)) | |
1957 | return NULL; | |
1958 | { | |
1959 | _arg0 = wxString_in_helper(_obj0); | |
1960 | if (_arg0 == NULL) | |
1961 | return NULL; | |
1962 | } | |
1963 | { | |
1964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1965 | wxLogDebug(*_arg0); | |
1966 | ||
1967 | wxPyEndAllowThreads(__tstate); | |
1968 | if (PyErr_Occurred()) return NULL; | |
1969 | } Py_INCREF(Py_None); | |
1970 | _resultobj = Py_None; | |
1971 | { | |
1972 | if (_obj0) | |
1973 | delete _arg0; | |
1974 | } | |
1975 | return _resultobj; | |
1976 | } | |
1977 | ||
f6bcfd97 BP |
1978 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { |
1979 | PyObject * _resultobj; | |
c8bc7bb8 RD |
1980 | wxString * _arg0; |
1981 | PyObject * _obj0 = 0; | |
be13a6af | 1982 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
1983 | |
1984 | self = self; | |
c8bc7bb8 | 1985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogVerbose",_kwnames,&_obj0)) |
f6bcfd97 | 1986 | return NULL; |
c8bc7bb8 RD |
1987 | { |
1988 | _arg0 = wxString_in_helper(_obj0); | |
1989 | if (_arg0 == NULL) | |
1990 | return NULL; | |
1991 | } | |
f6bcfd97 | 1992 | { |
4268f798 | 1993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1994 | wxLogVerbose(*_arg0); |
f6bcfd97 | 1995 | |
4268f798 RD |
1996 | wxPyEndAllowThreads(__tstate); |
1997 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1998 | } Py_INCREF(Py_None); |
1999 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2000 | { |
2001 | if (_obj0) | |
2002 | delete _arg0; | |
2003 | } | |
f6bcfd97 BP |
2004 | return _resultobj; |
2005 | } | |
2006 | ||
2007 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2008 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2009 | wxString * _arg0; |
2010 | PyObject * _obj0 = 0; | |
be13a6af | 2011 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2012 | |
2013 | self = self; | |
c8bc7bb8 RD |
2014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogStatus",_kwnames,&_obj0)) |
2015 | return NULL; | |
2016 | { | |
2017 | _arg0 = wxString_in_helper(_obj0); | |
2018 | if (_arg0 == NULL) | |
f6bcfd97 | 2019 | return NULL; |
c8bc7bb8 | 2020 | } |
f6bcfd97 | 2021 | { |
4268f798 | 2022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2023 | wxLogStatus(*_arg0); |
f6bcfd97 | 2024 | |
4268f798 RD |
2025 | wxPyEndAllowThreads(__tstate); |
2026 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2027 | } Py_INCREF(Py_None); |
2028 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2029 | { |
2030 | if (_obj0) | |
2031 | delete _arg0; | |
2032 | } | |
f6bcfd97 BP |
2033 | return _resultobj; |
2034 | } | |
2035 | ||
2036 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2037 | PyObject * _resultobj; | |
2038 | wxFrame * _arg0; | |
c8bc7bb8 | 2039 | wxString * _arg1; |
f6bcfd97 | 2040 | PyObject * _argo0 = 0; |
c8bc7bb8 | 2041 | PyObject * _obj1 = 0; |
be13a6af | 2042 | char *_kwnames[] = { "pFrame","msg", NULL }; |
f6bcfd97 BP |
2043 | |
2044 | self = self; | |
c8bc7bb8 | 2045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogStatusFrame",_kwnames,&_argo0,&_obj1)) |
f6bcfd97 BP |
2046 | return NULL; |
2047 | if (_argo0) { | |
2048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2051 | return NULL; | |
2052 | } | |
2053 | } | |
c8bc7bb8 RD |
2054 | { |
2055 | _arg1 = wxString_in_helper(_obj1); | |
2056 | if (_arg1 == NULL) | |
2057 | return NULL; | |
2058 | } | |
f6bcfd97 | 2059 | { |
4268f798 | 2060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2061 | wxLogStatus(_arg0,*_arg1); |
f6bcfd97 | 2062 | |
4268f798 RD |
2063 | wxPyEndAllowThreads(__tstate); |
2064 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2065 | } Py_INCREF(Py_None); |
2066 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2067 | { |
2068 | if (_obj1) | |
2069 | delete _arg1; | |
2070 | } | |
f6bcfd97 BP |
2071 | return _resultobj; |
2072 | } | |
2073 | ||
2074 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2075 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2076 | wxString * _arg0; |
2077 | PyObject * _obj0 = 0; | |
be13a6af | 2078 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2079 | |
2080 | self = self; | |
c8bc7bb8 RD |
2081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogSysError",_kwnames,&_obj0)) |
2082 | return NULL; | |
2083 | { | |
2084 | _arg0 = wxString_in_helper(_obj0); | |
2085 | if (_arg0 == NULL) | |
f6bcfd97 | 2086 | return NULL; |
c8bc7bb8 | 2087 | } |
f6bcfd97 | 2088 | { |
4268f798 | 2089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2090 | wxLogSysError(*_arg0); |
f6bcfd97 | 2091 | |
4268f798 RD |
2092 | wxPyEndAllowThreads(__tstate); |
2093 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2094 | } Py_INCREF(Py_None); |
2095 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2096 | { |
2097 | if (_obj0) | |
2098 | delete _arg0; | |
2099 | } | |
f6bcfd97 BP |
2100 | return _resultobj; |
2101 | } | |
2102 | ||
be13a6af RD |
2103 | static PyObject *_wrap_wxLogTrace(PyObject *self, PyObject *args, PyObject *kwargs) { |
2104 | PyObject * _resultobj; | |
2105 | wxString * _arg0; | |
2106 | PyObject * _obj0 = 0; | |
2107 | char *_kwnames[] = { "msg", NULL }; | |
2108 | ||
2109 | self = self; | |
2110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogTrace",_kwnames,&_obj0)) | |
2111 | return NULL; | |
2112 | { | |
2113 | _arg0 = wxString_in_helper(_obj0); | |
2114 | if (_arg0 == NULL) | |
2115 | return NULL; | |
2116 | } | |
2117 | { | |
2118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2119 | wxLogTrace(*_arg0); | |
2120 | ||
2121 | wxPyEndAllowThreads(__tstate); | |
2122 | if (PyErr_Occurred()) return NULL; | |
2123 | } Py_INCREF(Py_None); | |
2124 | _resultobj = Py_None; | |
2125 | { | |
2126 | if (_obj0) | |
2127 | delete _arg0; | |
2128 | } | |
2129 | return _resultobj; | |
2130 | } | |
2131 | ||
2132 | static PyObject *_wrap_wxLogTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2133 | PyObject * _resultobj; | |
2134 | wxString * _arg0; | |
2135 | wxString * _arg1; | |
2136 | PyObject * _obj0 = 0; | |
2137 | PyObject * _obj1 = 0; | |
2138 | char *_kwnames[] = { "mask","msg", NULL }; | |
2139 | ||
2140 | self = self; | |
2141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogTraceMask",_kwnames,&_obj0,&_obj1)) | |
2142 | return NULL; | |
2143 | { | |
2144 | _arg0 = wxString_in_helper(_obj0); | |
2145 | if (_arg0 == NULL) | |
2146 | return NULL; | |
2147 | } | |
2148 | { | |
2149 | _arg1 = wxString_in_helper(_obj1); | |
2150 | if (_arg1 == NULL) | |
2151 | return NULL; | |
2152 | } | |
2153 | { | |
2154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2155 | wxLogTrace(*_arg0,*_arg1); | |
2156 | ||
2157 | wxPyEndAllowThreads(__tstate); | |
2158 | if (PyErr_Occurred()) return NULL; | |
2159 | } Py_INCREF(Py_None); | |
2160 | _resultobj = Py_None; | |
2161 | { | |
2162 | if (_obj0) | |
2163 | delete _arg0; | |
2164 | } | |
2165 | { | |
2166 | if (_obj1) | |
2167 | delete _arg1; | |
2168 | } | |
2169 | return _resultobj; | |
2170 | } | |
2171 | ||
2172 | static PyObject *_wrap_wxLogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2173 | PyObject * _resultobj; | |
2174 | unsigned long _arg0; | |
2175 | wxString * _arg1; | |
2176 | PyObject * _obj1 = 0; | |
2177 | char *_kwnames[] = { "level","msg", NULL }; | |
2178 | ||
2179 | self = self; | |
2180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"lO:wxLogGeneric",_kwnames,&_arg0,&_obj1)) | |
2181 | return NULL; | |
2182 | { | |
2183 | _arg1 = wxString_in_helper(_obj1); | |
2184 | if (_arg1 == NULL) | |
2185 | return NULL; | |
2186 | } | |
2187 | { | |
2188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2189 | wxLogGeneric(_arg0,*_arg1); | |
2190 | ||
2191 | wxPyEndAllowThreads(__tstate); | |
2192 | if (PyErr_Occurred()) return NULL; | |
2193 | } Py_INCREF(Py_None); | |
2194 | _resultobj = Py_None; | |
2195 | { | |
2196 | if (_obj1) | |
2197 | delete _arg1; | |
2198 | } | |
2199 | return _resultobj; | |
2200 | } | |
2201 | ||
0b85cc38 RD |
2202 | static PyObject *_wrap_wxSafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
2203 | PyObject * _resultobj; | |
2204 | wxString * _arg0; | |
2205 | wxString * _arg1; | |
2206 | PyObject * _obj0 = 0; | |
2207 | PyObject * _obj1 = 0; | |
2208 | char *_kwnames[] = { "title","text", NULL }; | |
2209 | ||
2210 | self = self; | |
2211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSafeShowMessage",_kwnames,&_obj0,&_obj1)) | |
2212 | return NULL; | |
2213 | { | |
2214 | _arg0 = wxString_in_helper(_obj0); | |
2215 | if (_arg0 == NULL) | |
2216 | return NULL; | |
2217 | } | |
2218 | { | |
2219 | _arg1 = wxString_in_helper(_obj1); | |
2220 | if (_arg1 == NULL) | |
2221 | return NULL; | |
2222 | } | |
2223 | { | |
2224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2225 | wxSafeShowMessage(*_arg0,*_arg1); | |
2226 | ||
2227 | wxPyEndAllowThreads(__tstate); | |
2228 | if (PyErr_Occurred()) return NULL; | |
2229 | } Py_INCREF(Py_None); | |
2230 | _resultobj = Py_None; | |
2231 | { | |
2232 | if (_obj0) | |
2233 | delete _arg0; | |
2234 | } | |
2235 | { | |
2236 | if (_obj1) | |
2237 | delete _arg1; | |
2238 | } | |
2239 | return _resultobj; | |
2240 | } | |
2241 | ||
c368d904 RD |
2242 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { |
2243 | PyObject * _resultobj; | |
2244 | long _result; | |
2245 | wxString * _arg0; | |
b96c7a38 | 2246 | int _arg1 = (int ) (wxEXEC_ASYNC); |
c368d904 RD |
2247 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; |
2248 | PyObject * _obj0 = 0; | |
2249 | PyObject * _argo2 = 0; | |
b96c7a38 | 2250 | char *_kwnames[] = { "command","flags","process", NULL }; |
c368d904 RD |
2251 | |
2252 | self = self; | |
2253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2254 | return NULL; | |
2255 | { | |
c8bc7bb8 RD |
2256 | _arg0 = wxString_in_helper(_obj0); |
2257 | if (_arg0 == NULL) | |
185d7c3e | 2258 | return NULL; |
c368d904 RD |
2259 | } |
2260 | if (_argo2) { | |
2261 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2262 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2264 | return NULL; | |
2265 | } | |
2266 | } | |
2267 | { | |
4268f798 | 2268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2269 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); |
c368d904 | 2270 | |
4268f798 RD |
2271 | wxPyEndAllowThreads(__tstate); |
2272 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
2273 | } _resultobj = Py_BuildValue("l",_result); |
2274 | { | |
2275 | if (_obj0) | |
2276 | delete _arg0; | |
2277 | } | |
2278 | return _resultobj; | |
2279 | } | |
2280 | ||
493f1553 RD |
2281 | static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) { |
2282 | PyObject * _resultobj; | |
2283 | wxWave * _result; | |
2284 | wxString * _arg0; | |
2285 | PyObject * _obj0 = 0; | |
2286 | char *_kwnames[] = { "data", NULL }; | |
2287 | char _ptemp[128]; | |
2288 | ||
2289 | self = self; | |
2290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0)) | |
2291 | return NULL; | |
2292 | { | |
c8bc7bb8 RD |
2293 | _arg0 = wxString_in_helper(_obj0); |
2294 | if (_arg0 == NULL) | |
493f1553 | 2295 | return NULL; |
493f1553 RD |
2296 | } |
2297 | { | |
4268f798 | 2298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2299 | _result = (wxWave *)wxWaveData(*_arg0); |
493f1553 | 2300 | |
4268f798 RD |
2301 | wxPyEndAllowThreads(__tstate); |
2302 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
2303 | } if (_result) { |
2304 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
2305 | _resultobj = Py_BuildValue("s",_ptemp); | |
2306 | } else { | |
2307 | Py_INCREF(Py_None); | |
2308 | _resultobj = Py_None; | |
2309 | } | |
2310 | { | |
2311 | if (_obj0) | |
2312 | delete _arg0; | |
2313 | } | |
2314 | return _resultobj; | |
2315 | } | |
2316 | ||
b37c7e1d RD |
2317 | static int _wrap_wxTheMimeTypesManager_set(PyObject *val) { |
2318 | ||
2319 | PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only."); | |
2320 | return 1; | |
2321 | } | |
2322 | ||
2323 | static PyObject *_wrap_wxTheMimeTypesManager_get() { | |
2324 | PyObject * pyobj; | |
2325 | char ptemp[128]; | |
2326 | ||
2327 | SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p"); | |
2328 | pyobj = PyString_FromString(ptemp); | |
2329 | return pyobj; | |
2330 | } | |
2331 | ||
b5a5d647 RD |
2332 | static PyObject *_wrap_wxSystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
2333 | PyObject * _resultobj; | |
2334 | wxColour * _result; | |
2335 | wxSystemColour _arg0; | |
2336 | char *_kwnames[] = { "index", NULL }; | |
2337 | char _ptemp[128]; | |
2338 | ||
2339 | self = self; | |
2340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetColour",_kwnames,&_arg0)) | |
2341 | return NULL; | |
2342 | { | |
2343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2344 | _result = new wxColour (wxSystemSettings::GetColour(_arg0)); |
b5a5d647 RD |
2345 | |
2346 | wxPyEndAllowThreads(__tstate); | |
2347 | if (PyErr_Occurred()) return NULL; | |
2348 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
2349 | _resultobj = Py_BuildValue("s",_ptemp); | |
2350 | return _resultobj; | |
2351 | } | |
2352 | ||
2353 | static PyObject *_wrap_wxSystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2354 | PyObject * _resultobj; | |
2355 | wxFont * _result; | |
2356 | wxSystemFont _arg0; | |
2357 | char *_kwnames[] = { "index", NULL }; | |
2358 | char _ptemp[128]; | |
2359 | ||
2360 | self = self; | |
2361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetFont",_kwnames,&_arg0)) | |
2362 | return NULL; | |
2363 | { | |
2364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2365 | _result = new wxFont (wxSystemSettings::GetFont(_arg0)); |
b5a5d647 RD |
2366 | |
2367 | wxPyEndAllowThreads(__tstate); | |
2368 | if (PyErr_Occurred()) return NULL; | |
2369 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
2370 | _resultobj = Py_BuildValue("s",_ptemp); | |
2371 | return _resultobj; | |
2372 | } | |
2373 | ||
2374 | static PyObject *_wrap_wxSystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2375 | PyObject * _resultobj; | |
2376 | int _result; | |
2377 | wxSystemMetric _arg0; | |
2378 | char *_kwnames[] = { "index", NULL }; | |
2379 | ||
2380 | self = self; | |
2381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetMetric",_kwnames,&_arg0)) | |
2382 | return NULL; | |
2383 | { | |
2384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2385 | _result = (int )wxSystemSettings::GetMetric(_arg0); |
b5a5d647 RD |
2386 | |
2387 | wxPyEndAllowThreads(__tstate); | |
2388 | if (PyErr_Occurred()) return NULL; | |
2389 | } _resultobj = Py_BuildValue("i",_result); | |
2390 | return _resultobj; | |
2391 | } | |
2392 | ||
2393 | static PyObject *_wrap_wxSystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2394 | PyObject * _resultobj; | |
2395 | bool _result; | |
2396 | wxSystemFeature _arg0; | |
2397 | char *_kwnames[] = { "index", NULL }; | |
2398 | ||
2399 | self = self; | |
2400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_HasFeature",_kwnames,&_arg0)) | |
2401 | return NULL; | |
2402 | { | |
2403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2404 | _result = (bool )wxSystemSettings::HasFeature(_arg0); |
b5a5d647 RD |
2405 | |
2406 | wxPyEndAllowThreads(__tstate); | |
2407 | if (PyErr_Occurred()) return NULL; | |
2408 | } _resultobj = Py_BuildValue("i",_result); | |
2409 | return _resultobj; | |
2410 | } | |
2411 | ||
e67409dc | 2412 | static PyObject *_wrap_wxSystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { |
0b85cc38 | 2413 | PyObject * _resultobj; |
e67409dc | 2414 | wxSystemScreenType _result; |
0b85cc38 RD |
2415 | char *_kwnames[] = { NULL }; |
2416 | ||
2417 | self = self; | |
e67409dc | 2418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSystemSettings_GetScreenType",_kwnames)) |
0b85cc38 RD |
2419 | return NULL; |
2420 | { | |
2421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e67409dc | 2422 | _result = (wxSystemScreenType )wxSystemSettings::GetScreenType(); |
0b85cc38 RD |
2423 | |
2424 | wxPyEndAllowThreads(__tstate); | |
2425 | if (PyErr_Occurred()) return NULL; | |
2426 | } _resultobj = Py_BuildValue("i",_result); | |
2427 | return _resultobj; | |
2428 | } | |
2429 | ||
e67409dc | 2430 | static PyObject *_wrap_wxSystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { |
0b85cc38 | 2431 | PyObject * _resultobj; |
e67409dc | 2432 | wxSystemScreenType _arg0; |
0b85cc38 RD |
2433 | char *_kwnames[] = { "screen", NULL }; |
2434 | ||
2435 | self = self; | |
e67409dc | 2436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_SetScreenType",_kwnames,&_arg0)) |
0b85cc38 RD |
2437 | return NULL; |
2438 | { | |
2439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e67409dc | 2440 | wxSystemSettings::SetScreenType(_arg0); |
0b85cc38 RD |
2441 | |
2442 | wxPyEndAllowThreads(__tstate); | |
2443 | if (PyErr_Occurred()) return NULL; | |
2444 | } Py_INCREF(Py_None); | |
2445 | _resultobj = Py_None; | |
2446 | return _resultobj; | |
2447 | } | |
2448 | ||
5a2a9da2 RD |
2449 | static void *SwigwxSystemOptionsTowxObject(void *ptr) { |
2450 | wxSystemOptions *src; | |
2451 | wxObject *dest; | |
2452 | src = (wxSystemOptions *) ptr; | |
2453 | dest = (wxObject *) src; | |
2454 | return (void *) dest; | |
2455 | } | |
2456 | ||
2457 | #define new_wxSystemOptions() (new wxSystemOptions()) | |
2458 | static PyObject *_wrap_new_wxSystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2459 | PyObject * _resultobj; | |
2460 | wxSystemOptions * _result; | |
2461 | char *_kwnames[] = { NULL }; | |
2462 | char _ptemp[128]; | |
2463 | ||
2464 | self = self; | |
2465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxSystemOptions",_kwnames)) | |
2466 | return NULL; | |
2467 | { | |
2468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2469 | _result = (wxSystemOptions *)new_wxSystemOptions(); | |
2470 | ||
2471 | wxPyEndAllowThreads(__tstate); | |
2472 | if (PyErr_Occurred()) return NULL; | |
2473 | } if (_result) { | |
2474 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSystemOptions_p"); | |
2475 | _resultobj = Py_BuildValue("s",_ptemp); | |
2476 | } else { | |
2477 | Py_INCREF(Py_None); | |
2478 | _resultobj = Py_None; | |
2479 | } | |
2480 | return _resultobj; | |
2481 | } | |
2482 | ||
2483 | static PyObject *_wrap_wxSystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2484 | PyObject * _resultobj; | |
2485 | wxString * _arg0; | |
2486 | wxString * _arg1; | |
2487 | PyObject * _obj0 = 0; | |
2488 | PyObject * _obj1 = 0; | |
2489 | char *_kwnames[] = { "name","value", NULL }; | |
2490 | ||
2491 | self = self; | |
2492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSystemOptions_SetOption",_kwnames,&_obj0,&_obj1)) | |
2493 | return NULL; | |
2494 | { | |
2495 | _arg0 = wxString_in_helper(_obj0); | |
2496 | if (_arg0 == NULL) | |
2497 | return NULL; | |
2498 | } | |
2499 | { | |
2500 | _arg1 = wxString_in_helper(_obj1); | |
2501 | if (_arg1 == NULL) | |
2502 | return NULL; | |
2503 | } | |
2504 | { | |
2505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2506 | wxSystemOptions::SetOption(*_arg0,*_arg1); | |
2507 | ||
2508 | wxPyEndAllowThreads(__tstate); | |
2509 | if (PyErr_Occurred()) return NULL; | |
2510 | } Py_INCREF(Py_None); | |
2511 | _resultobj = Py_None; | |
2512 | { | |
2513 | if (_obj0) | |
2514 | delete _arg0; | |
2515 | } | |
2516 | { | |
2517 | if (_obj1) | |
2518 | delete _arg1; | |
2519 | } | |
2520 | return _resultobj; | |
2521 | } | |
2522 | ||
2523 | static PyObject *_wrap_wxSystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2524 | PyObject * _resultobj; | |
2525 | wxString * _arg0; | |
2526 | int _arg1; | |
2527 | PyObject * _obj0 = 0; | |
2528 | char *_kwnames[] = { "name","value", NULL }; | |
2529 | ||
2530 | self = self; | |
2531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSystemOptions_SetOptionInt",_kwnames,&_obj0,&_arg1)) | |
2532 | return NULL; | |
2533 | { | |
2534 | _arg0 = wxString_in_helper(_obj0); | |
2535 | if (_arg0 == NULL) | |
2536 | return NULL; | |
2537 | } | |
2538 | { | |
2539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2540 | wxSystemOptions::SetOption(*_arg0,_arg1); | |
2541 | ||
2542 | wxPyEndAllowThreads(__tstate); | |
2543 | if (PyErr_Occurred()) return NULL; | |
2544 | } Py_INCREF(Py_None); | |
2545 | _resultobj = Py_None; | |
2546 | { | |
2547 | if (_obj0) | |
2548 | delete _arg0; | |
2549 | } | |
2550 | return _resultobj; | |
2551 | } | |
2552 | ||
2553 | static PyObject *_wrap_wxSystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2554 | PyObject * _resultobj; | |
2555 | wxString * _result; | |
2556 | wxString * _arg0; | |
2557 | PyObject * _obj0 = 0; | |
2558 | char *_kwnames[] = { "name", NULL }; | |
2559 | ||
2560 | self = self; | |
2561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSystemOptions_GetOption",_kwnames,&_obj0)) | |
2562 | return NULL; | |
2563 | { | |
2564 | _arg0 = wxString_in_helper(_obj0); | |
2565 | if (_arg0 == NULL) | |
2566 | return NULL; | |
2567 | } | |
2568 | { | |
2569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2570 | _result = new wxString (wxSystemOptions::GetOption(*_arg0)); | |
2571 | ||
2572 | wxPyEndAllowThreads(__tstate); | |
2573 | if (PyErr_Occurred()) return NULL; | |
2574 | }{ | |
2575 | #if wxUSE_UNICODE | |
2576 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
2577 | #else | |
2578 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2579 | #endif | |
2580 | } | |
2581 | { | |
2582 | if (_obj0) | |
2583 | delete _arg0; | |
2584 | } | |
2585 | { | |
2586 | delete _result; | |
2587 | } | |
2588 | return _resultobj; | |
2589 | } | |
2590 | ||
2591 | static PyObject *_wrap_wxSystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2592 | PyObject * _resultobj; | |
2593 | int _result; | |
2594 | wxString * _arg0; | |
2595 | PyObject * _obj0 = 0; | |
2596 | char *_kwnames[] = { "name", NULL }; | |
2597 | ||
2598 | self = self; | |
2599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSystemOptions_GetOptionInt",_kwnames,&_obj0)) | |
2600 | return NULL; | |
2601 | { | |
2602 | _arg0 = wxString_in_helper(_obj0); | |
2603 | if (_arg0 == NULL) | |
2604 | return NULL; | |
2605 | } | |
2606 | { | |
2607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2608 | _result = (int )wxSystemOptions::GetOptionInt(*_arg0); | |
2609 | ||
2610 | wxPyEndAllowThreads(__tstate); | |
2611 | if (PyErr_Occurred()) return NULL; | |
2612 | } _resultobj = Py_BuildValue("i",_result); | |
2613 | { | |
2614 | if (_obj0) | |
2615 | delete _arg0; | |
2616 | } | |
2617 | return _resultobj; | |
2618 | } | |
2619 | ||
2620 | static PyObject *_wrap_wxSystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2621 | PyObject * _resultobj; | |
2622 | bool _result; | |
2623 | wxString * _arg0; | |
2624 | PyObject * _obj0 = 0; | |
2625 | char *_kwnames[] = { "name", NULL }; | |
2626 | ||
2627 | self = self; | |
2628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSystemOptions_HasOption",_kwnames,&_obj0)) | |
2629 | return NULL; | |
2630 | { | |
2631 | _arg0 = wxString_in_helper(_obj0); | |
2632 | if (_arg0 == NULL) | |
2633 | return NULL; | |
2634 | } | |
2635 | { | |
2636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2637 | _result = (bool )wxSystemOptions::HasOption(*_arg0); | |
2638 | ||
2639 | wxPyEndAllowThreads(__tstate); | |
2640 | if (PyErr_Occurred()) return NULL; | |
2641 | } _resultobj = Py_BuildValue("i",_result); | |
2642 | { | |
2643 | if (_obj0) | |
2644 | delete _arg0; | |
2645 | } | |
2646 | return _resultobj; | |
2647 | } | |
2648 | ||
9416aa89 RD |
2649 | static void *SwigwxToolTipTowxObject(void *ptr) { |
2650 | wxToolTip *src; | |
2651 | wxObject *dest; | |
2652 | src = (wxToolTip *) ptr; | |
2653 | dest = (wxObject *) src; | |
2654 | return (void *) dest; | |
2655 | } | |
2656 | ||
f6bcfd97 BP |
2657 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) |
2658 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2659 | PyObject * _resultobj; | |
2660 | wxToolTip * _result; | |
2661 | wxString * _arg0; | |
2662 | PyObject * _obj0 = 0; | |
2663 | char *_kwnames[] = { "tip", NULL }; | |
2664 | char _ptemp[128]; | |
2665 | ||
2666 | self = self; | |
2667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2668 | return NULL; | |
2669 | { | |
c8bc7bb8 RD |
2670 | _arg0 = wxString_in_helper(_obj0); |
2671 | if (_arg0 == NULL) | |
f6bcfd97 | 2672 | return NULL; |
f6bcfd97 BP |
2673 | } |
2674 | { | |
4268f798 | 2675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2676 | _result = (wxToolTip *)new_wxToolTip(*_arg0); |
f6bcfd97 | 2677 | |
4268f798 RD |
2678 | wxPyEndAllowThreads(__tstate); |
2679 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2680 | } if (_result) { |
2681 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2682 | _resultobj = Py_BuildValue("s",_ptemp); | |
2683 | } else { | |
2684 | Py_INCREF(Py_None); | |
2685 | _resultobj = Py_None; | |
2686 | } | |
2687 | { | |
2688 | if (_obj0) | |
2689 | delete _arg0; | |
2690 | } | |
2691 | return _resultobj; | |
2692 | } | |
2693 | ||
2694 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2695 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2696 | PyObject * _resultobj; | |
2697 | wxToolTip * _arg0; | |
2698 | wxString * _arg1; | |
2699 | PyObject * _argo0 = 0; | |
2700 | PyObject * _obj1 = 0; | |
2701 | char *_kwnames[] = { "self","tip", NULL }; | |
2702 | ||
2703 | self = self; | |
2704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2705 | return NULL; | |
2706 | if (_argo0) { | |
2707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2710 | return NULL; | |
2711 | } | |
2712 | } | |
2713 | { | |
c8bc7bb8 RD |
2714 | _arg1 = wxString_in_helper(_obj1); |
2715 | if (_arg1 == NULL) | |
185d7c3e | 2716 | return NULL; |
f6bcfd97 BP |
2717 | } |
2718 | { | |
4268f798 | 2719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2720 | wxToolTip_SetTip(_arg0,*_arg1); |
f6bcfd97 | 2721 | |
4268f798 RD |
2722 | wxPyEndAllowThreads(__tstate); |
2723 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2724 | } Py_INCREF(Py_None); |
2725 | _resultobj = Py_None; | |
2726 | { | |
2727 | if (_obj1) | |
2728 | delete _arg1; | |
2729 | } | |
2730 | return _resultobj; | |
2731 | } | |
2732 | ||
2733 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2734 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2735 | PyObject * _resultobj; | |
2736 | wxString * _result; | |
2737 | wxToolTip * _arg0; | |
2738 | PyObject * _argo0 = 0; | |
2739 | char *_kwnames[] = { "self", NULL }; | |
2740 | ||
2741 | self = self; | |
2742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2743 | return NULL; | |
2744 | if (_argo0) { | |
2745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2748 | return NULL; | |
2749 | } | |
2750 | } | |
2751 | { | |
4268f798 | 2752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2753 | _result = new wxString (wxToolTip_GetTip(_arg0)); |
f6bcfd97 | 2754 | |
4268f798 RD |
2755 | wxPyEndAllowThreads(__tstate); |
2756 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 2757 | }{ |
c8bc7bb8 | 2758 | #if wxUSE_UNICODE |
7e50db3f | 2759 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2760 | #else |
f6bcfd97 | 2761 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2762 | #endif |
f6bcfd97 BP |
2763 | } |
2764 | { | |
2765 | delete _result; | |
2766 | } | |
2767 | return _resultobj; | |
2768 | } | |
2769 | ||
2770 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2771 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2772 | PyObject * _resultobj; | |
2773 | wxWindow * _result; | |
2774 | wxToolTip * _arg0; | |
2775 | PyObject * _argo0 = 0; | |
2776 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2777 | |
2778 | self = self; | |
2779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2780 | return NULL; | |
2781 | if (_argo0) { | |
2782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2785 | return NULL; | |
2786 | } | |
2787 | } | |
2788 | { | |
4268f798 | 2789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2790 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); |
f6bcfd97 | 2791 | |
4268f798 RD |
2792 | wxPyEndAllowThreads(__tstate); |
2793 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 2794 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2795 | return _resultobj; |
2796 | } | |
2797 | ||
edf2f43e RD |
2798 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
2799 | PyObject * _resultobj; | |
2800 | bool _arg0; | |
2801 | int tempbool0; | |
2802 | char *_kwnames[] = { "flag", NULL }; | |
2803 | ||
2804 | self = self; | |
2805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) | |
2806 | return NULL; | |
2807 | _arg0 = (bool ) tempbool0; | |
2808 | { | |
4268f798 | 2809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2810 | wxToolTip::Enable(_arg0); |
edf2f43e | 2811 | |
4268f798 RD |
2812 | wxPyEndAllowThreads(__tstate); |
2813 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2814 | } Py_INCREF(Py_None); |
2815 | _resultobj = Py_None; | |
2816 | return _resultobj; | |
2817 | } | |
2818 | ||
2819 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2820 | PyObject * _resultobj; | |
2821 | long _arg0; | |
2822 | char *_kwnames[] = { "milliseconds", NULL }; | |
2823 | ||
2824 | self = self; | |
2825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) | |
2826 | return NULL; | |
2827 | { | |
4268f798 | 2828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2829 | wxToolTip::SetDelay(_arg0); |
edf2f43e | 2830 | |
4268f798 RD |
2831 | wxPyEndAllowThreads(__tstate); |
2832 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2833 | } Py_INCREF(Py_None); |
2834 | _resultobj = Py_None; | |
2835 | return _resultobj; | |
2836 | } | |
2837 | ||
f6bcfd97 BP |
2838 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) |
2839 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2840 | PyObject * _resultobj; | |
2841 | wxCaret * _result; | |
2842 | wxWindow * _arg0; | |
2843 | wxSize * _arg1; | |
2844 | PyObject * _argo0 = 0; | |
2845 | wxSize temp; | |
2846 | PyObject * _obj1 = 0; | |
2847 | char *_kwnames[] = { "window","size", NULL }; | |
2848 | char _ptemp[128]; | |
2849 | ||
2850 | self = self; | |
2851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2852 | return NULL; | |
2853 | if (_argo0) { | |
2854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2857 | return NULL; | |
2858 | } | |
2859 | } | |
2860 | { | |
2861 | _arg1 = &temp; | |
2862 | if (! wxSize_helper(_obj1, &_arg1)) | |
2863 | return NULL; | |
2864 | } | |
2865 | { | |
4268f798 | 2866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2867 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); |
f6bcfd97 | 2868 | |
4268f798 RD |
2869 | wxPyEndAllowThreads(__tstate); |
2870 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2871 | } if (_result) { |
2872 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2873 | _resultobj = Py_BuildValue("s",_ptemp); | |
2874 | } else { | |
2875 | Py_INCREF(Py_None); | |
2876 | _resultobj = Py_None; | |
2877 | } | |
2878 | return _resultobj; | |
2879 | } | |
2880 | ||
2881 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2882 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2883 | PyObject * _resultobj; | |
2884 | wxCaret * _arg0; | |
2885 | PyObject * _argo0 = 0; | |
2886 | char *_kwnames[] = { "self", NULL }; | |
2887 | ||
2888 | self = self; | |
2889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
2890 | return NULL; | |
2891 | if (_argo0) { | |
2892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
2895 | return NULL; | |
2896 | } | |
2897 | } | |
2898 | { | |
4268f798 | 2899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2900 | delete_wxCaret(_arg0); |
f6bcfd97 | 2901 | |
4268f798 RD |
2902 | wxPyEndAllowThreads(__tstate); |
2903 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2904 | } Py_INCREF(Py_None); |
2905 | _resultobj = Py_None; | |
2906 | return _resultobj; | |
2907 | } | |
2908 | ||
2909 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
2910 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2911 | PyObject * _resultobj; | |
2912 | bool _result; | |
2913 | wxCaret * _arg0; | |
2914 | PyObject * _argo0 = 0; | |
2915 | char *_kwnames[] = { "self", NULL }; | |
2916 | ||
2917 | self = self; | |
2918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
2919 | return NULL; | |
2920 | if (_argo0) { | |
2921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
2924 | return NULL; | |
2925 | } | |
2926 | } | |
2927 | { | |
4268f798 | 2928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2929 | _result = (bool )wxCaret_IsOk(_arg0); |
f6bcfd97 | 2930 | |
4268f798 RD |
2931 | wxPyEndAllowThreads(__tstate); |
2932 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2933 | } _resultobj = Py_BuildValue("i",_result); |
2934 | return _resultobj; | |
2935 | } | |
2936 | ||
2937 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
2938 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2939 | PyObject * _resultobj; | |
2940 | bool _result; | |
2941 | wxCaret * _arg0; | |
2942 | PyObject * _argo0 = 0; | |
2943 | char *_kwnames[] = { "self", NULL }; | |
2944 | ||
2945 | self = self; | |
2946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
2947 | return NULL; | |
2948 | if (_argo0) { | |
2949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
2952 | return NULL; | |
2953 | } | |
2954 | } | |
2955 | { | |
4268f798 | 2956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2957 | _result = (bool )wxCaret_IsVisible(_arg0); |
f6bcfd97 | 2958 | |
4268f798 RD |
2959 | wxPyEndAllowThreads(__tstate); |
2960 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2961 | } _resultobj = Py_BuildValue("i",_result); |
2962 | return _resultobj; | |
2963 | } | |
2964 | ||
2965 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2966 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2967 | PyObject * _resultobj; | |
2968 | wxCaret * _arg0; | |
2969 | int * _arg1; | |
2970 | int temp; | |
2971 | int * _arg2; | |
2972 | int temp0; | |
2973 | PyObject * _argo0 = 0; | |
2974 | char *_kwnames[] = { "self", NULL }; | |
2975 | ||
2976 | self = self; | |
2977 | { | |
2978 | _arg1 = &temp; | |
2979 | } | |
2980 | { | |
2981 | _arg2 = &temp0; | |
2982 | } | |
2983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
2984 | return NULL; | |
2985 | if (_argo0) { | |
2986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
2989 | return NULL; | |
2990 | } | |
2991 | } | |
2992 | { | |
4268f798 | 2993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2994 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 2995 | |
4268f798 RD |
2996 | wxPyEndAllowThreads(__tstate); |
2997 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2998 | } Py_INCREF(Py_None); |
2999 | _resultobj = Py_None; | |
3000 | { | |
3001 | PyObject *o; | |
3002 | o = PyInt_FromLong((long) (*_arg1)); | |
3003 | _resultobj = t_output_helper(_resultobj, o); | |
3004 | } | |
3005 | { | |
3006 | PyObject *o; | |
3007 | o = PyInt_FromLong((long) (*_arg2)); | |
3008 | _resultobj = t_output_helper(_resultobj, o); | |
3009 | } | |
3010 | return _resultobj; | |
3011 | } | |
3012 | ||
3013 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
f0261a72 RD |
3014 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
3015 | PyObject * _resultobj; | |
f6bcfd97 BP |
3016 | wxPoint * _result; |
3017 | wxCaret * _arg0; | |
3018 | PyObject * _argo0 = 0; | |
3019 | char *_kwnames[] = { "self", NULL }; | |
3020 | char _ptemp[128]; | |
3021 | ||
3022 | self = self; | |
3023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
3024 | return NULL; | |
3025 | if (_argo0) { | |
3026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
3029 | return NULL; | |
3030 | } | |
3031 | } | |
3032 | { | |
4268f798 | 3033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3034 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); |
f6bcfd97 | 3035 | |
4268f798 RD |
3036 | wxPyEndAllowThreads(__tstate); |
3037 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3038 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
3039 | _resultobj = Py_BuildValue("s",_ptemp); | |
3040 | return _resultobj; | |
3041 | } | |
3042 | ||
3043 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
3044 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3045 | PyObject * _resultobj; | |
3046 | wxCaret * _arg0; | |
3047 | int * _arg1; | |
3048 | int temp; | |
3049 | int * _arg2; | |
3050 | int temp0; | |
3051 | PyObject * _argo0 = 0; | |
3052 | char *_kwnames[] = { "self", NULL }; | |
3053 | ||
3054 | self = self; | |
3055 | { | |
3056 | _arg1 = &temp; | |
3057 | } | |
3058 | { | |
3059 | _arg2 = &temp0; | |
3060 | } | |
3061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
3062 | return NULL; | |
3063 | if (_argo0) { | |
3064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
3067 | return NULL; | |
3068 | } | |
3069 | } | |
3070 | { | |
4268f798 | 3071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3072 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 3073 | |
4268f798 RD |
3074 | wxPyEndAllowThreads(__tstate); |
3075 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3076 | } Py_INCREF(Py_None); |
3077 | _resultobj = Py_None; | |
3078 | { | |
3079 | PyObject *o; | |
3080 | o = PyInt_FromLong((long) (*_arg1)); | |
3081 | _resultobj = t_output_helper(_resultobj, o); | |
3082 | } | |
3083 | { | |
3084 | PyObject *o; | |
3085 | o = PyInt_FromLong((long) (*_arg2)); | |
3086 | _resultobj = t_output_helper(_resultobj, o); | |
3087 | } | |
3088 | return _resultobj; | |
3089 | } | |
3090 | ||
3091 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
3092 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3093 | PyObject * _resultobj; | |
3094 | wxSize * _result; | |
3095 | wxCaret * _arg0; | |
3096 | PyObject * _argo0 = 0; | |
3097 | char *_kwnames[] = { "self", NULL }; | |
3098 | char _ptemp[128]; | |
3099 | ||
3100 | self = self; | |
3101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
3102 | return NULL; | |
3103 | if (_argo0) { | |
3104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
3107 | return NULL; | |
3108 | } | |
3109 | } | |
3110 | { | |
4268f798 | 3111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3112 | _result = new wxSize (wxCaret_GetSize(_arg0)); |
f6bcfd97 | 3113 | |
4268f798 RD |
3114 | wxPyEndAllowThreads(__tstate); |
3115 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3116 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
3117 | _resultobj = Py_BuildValue("s",_ptemp); | |
3118 | return _resultobj; | |
3119 | } | |
3120 | ||
3121 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
3122 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3123 | PyObject * _resultobj; | |
3124 | wxWindow * _result; | |
3125 | wxCaret * _arg0; | |
3126 | PyObject * _argo0 = 0; | |
3127 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
3128 | |
3129 | self = self; | |
3130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
3131 | return NULL; | |
3132 | if (_argo0) { | |
3133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
3136 | return NULL; | |
3137 | } | |
3138 | } | |
3139 | { | |
4268f798 | 3140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3141 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); |
f6bcfd97 | 3142 | |
4268f798 RD |
3143 | wxPyEndAllowThreads(__tstate); |
3144 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 3145 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
3146 | return _resultobj; |
3147 | } | |
3148 | ||
3149 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
3150 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3151 | PyObject * _resultobj; | |
3152 | wxCaret * _arg0; | |
3153 | int _arg1; | |
3154 | int _arg2; | |
3155 | PyObject * _argo0 = 0; | |
3156 | char *_kwnames[] = { "self","x","y", NULL }; | |
3157 | ||
3158 | self = self; | |
3159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3160 | return NULL; | |
3161 | if (_argo0) { | |
3162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
3165 | return NULL; | |
3166 | } | |
3167 | } | |
3168 | { | |
4268f798 | 3169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3170 | wxCaret_MoveXY(_arg0,_arg1,_arg2); |
f6bcfd97 | 3171 | |
4268f798 RD |
3172 | wxPyEndAllowThreads(__tstate); |
3173 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3174 | } Py_INCREF(Py_None); |
3175 | _resultobj = Py_None; | |
3176 | return _resultobj; | |
3177 | } | |
3178 | ||
3179 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3180 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3181 | PyObject * _resultobj; | |
3182 | wxCaret * _arg0; | |
3183 | wxPoint * _arg1; | |
3184 | PyObject * _argo0 = 0; | |
3185 | wxPoint temp; | |
3186 | PyObject * _obj1 = 0; | |
3187 | char *_kwnames[] = { "self","pt", NULL }; | |
3188 | ||
3189 | self = self; | |
3190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
3191 | return NULL; | |
3192 | if (_argo0) { | |
3193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
3196 | return NULL; | |
3197 | } | |
3198 | } | |
3199 | { | |
3200 | _arg1 = &temp; | |
3201 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3202 | return NULL; | |
3203 | } | |
3204 | { | |
4268f798 | 3205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3206 | wxCaret_Move(_arg0,*_arg1); |
f6bcfd97 | 3207 | |
4268f798 RD |
3208 | wxPyEndAllowThreads(__tstate); |
3209 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3210 | } Py_INCREF(Py_None); |
3211 | _resultobj = Py_None; | |
3212 | return _resultobj; | |
3213 | } | |
3214 | ||
3215 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
3216 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3217 | PyObject * _resultobj; | |
3218 | wxCaret * _arg0; | |
3219 | int _arg1; | |
3220 | int _arg2; | |
3221 | PyObject * _argo0 = 0; | |
3222 | char *_kwnames[] = { "self","width","height", NULL }; | |
3223 | ||
3224 | self = self; | |
3225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3226 | return NULL; | |
3227 | if (_argo0) { | |
3228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
3231 | return NULL; | |
3232 | } | |
3233 | } | |
3234 | { | |
4268f798 | 3235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3236 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); |
f6bcfd97 | 3237 | |
4268f798 RD |
3238 | wxPyEndAllowThreads(__tstate); |
3239 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3240 | } Py_INCREF(Py_None); |
3241 | _resultobj = Py_None; | |
3242 | return _resultobj; | |
3243 | } | |
3244 | ||
3245 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3246 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3247 | PyObject * _resultobj; | |
3248 | wxCaret * _arg0; | |
3249 | wxSize * _arg1; | |
3250 | PyObject * _argo0 = 0; | |
3251 | wxSize temp; | |
3252 | PyObject * _obj1 = 0; | |
3253 | char *_kwnames[] = { "self","size", NULL }; | |
3254 | ||
3255 | self = self; | |
3256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
3257 | return NULL; | |
3258 | if (_argo0) { | |
3259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
3262 | return NULL; | |
3263 | } | |
3264 | } | |
3265 | { | |
3266 | _arg1 = &temp; | |
3267 | if (! wxSize_helper(_obj1, &_arg1)) | |
3268 | return NULL; | |
3269 | } | |
3270 | { | |
4268f798 | 3271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3272 | wxCaret_SetSize(_arg0,*_arg1); |
f6bcfd97 | 3273 | |
4268f798 RD |
3274 | wxPyEndAllowThreads(__tstate); |
3275 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3276 | } Py_INCREF(Py_None); |
3277 | _resultobj = Py_None; | |
3278 | return _resultobj; | |
3279 | } | |
3280 | ||
3281 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
3282 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3283 | PyObject * _resultobj; | |
3284 | wxCaret * _arg0; | |
3285 | int _arg1 = (int ) TRUE; | |
3286 | PyObject * _argo0 = 0; | |
3287 | char *_kwnames[] = { "self","show", NULL }; | |
3288 | ||
3289 | self = self; | |
3290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
3291 | return NULL; | |
3292 | if (_argo0) { | |
3293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
3296 | return NULL; | |
3297 | } | |
3298 | } | |
3299 | { | |
4268f798 | 3300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3301 | wxCaret_Show(_arg0,_arg1); |
f6bcfd97 | 3302 | |
4268f798 RD |
3303 | wxPyEndAllowThreads(__tstate); |
3304 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3305 | } Py_INCREF(Py_None); |
3306 | _resultobj = Py_None; | |
3307 | return _resultobj; | |
3308 | } | |
3309 | ||
3310 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
3311 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3312 | PyObject * _resultobj; | |
3313 | wxCaret * _arg0; | |
3314 | PyObject * _argo0 = 0; | |
3315 | char *_kwnames[] = { "self", NULL }; | |
3316 | ||
3317 | self = self; | |
3318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
3319 | return NULL; | |
3320 | if (_argo0) { | |
3321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
3324 | return NULL; | |
3325 | } | |
3326 | } | |
3327 | { | |
4268f798 | 3328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3329 | wxCaret_Hide(_arg0); |
f6bcfd97 | 3330 | |
4268f798 RD |
3331 | wxPyEndAllowThreads(__tstate); |
3332 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3333 | } Py_INCREF(Py_None); |
3334 | _resultobj = Py_None; | |
3335 | return _resultobj; | |
3336 | } | |
3337 | ||
f6bcfd97 BP |
3338 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) |
3339 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3340 | PyObject * _resultobj; | |
3341 | wxBusyCursor * _result; | |
3342 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3343 | PyObject * _argo0 = 0; | |
3344 | char *_kwnames[] = { "cursor", NULL }; | |
3345 | char _ptemp[128]; | |
3346 | ||
3347 | self = self; | |
3348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3349 | return NULL; | |
3350 | if (_argo0) { | |
3351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3354 | return NULL; | |
3355 | } | |
3356 | } | |
3357 | { | |
4268f798 | 3358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3359 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); |
f6bcfd97 | 3360 | |
4268f798 RD |
3361 | wxPyEndAllowThreads(__tstate); |
3362 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3363 | } if (_result) { |
3364 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3365 | _resultobj = Py_BuildValue("s",_ptemp); | |
3366 | } else { | |
3367 | Py_INCREF(Py_None); | |
3368 | _resultobj = Py_None; | |
3369 | } | |
3370 | return _resultobj; | |
3371 | } | |
3372 | ||
3373 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3374 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3375 | PyObject * _resultobj; | |
3376 | wxBusyCursor * _arg0; | |
3377 | PyObject * _argo0 = 0; | |
3378 | char *_kwnames[] = { "self", NULL }; | |
3379 | ||
3380 | self = self; | |
3381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3382 | return NULL; | |
3383 | if (_argo0) { | |
3384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3387 | return NULL; | |
3388 | } | |
3389 | } | |
3390 | { | |
4268f798 | 3391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3392 | delete_wxBusyCursor(_arg0); |
f6bcfd97 | 3393 | |
4268f798 RD |
3394 | wxPyEndAllowThreads(__tstate); |
3395 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3396 | } Py_INCREF(Py_None); |
3397 | _resultobj = Py_None; | |
3398 | return _resultobj; | |
3399 | } | |
3400 | ||
c368d904 RD |
3401 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) |
3402 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3403 | PyObject * _resultobj; | |
3404 | wxWindowDisabler * _result; | |
3405 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3406 | PyObject * _argo0 = 0; | |
3407 | char *_kwnames[] = { "winToSkip", NULL }; | |
3408 | char _ptemp[128]; | |
3409 | ||
3410 | self = self; | |
3411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3412 | return NULL; | |
3413 | if (_argo0) { | |
3414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3417 | return NULL; | |
3418 | } | |
3419 | } | |
3420 | { | |
4268f798 | 3421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3422 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); |
c368d904 | 3423 | |
4268f798 RD |
3424 | wxPyEndAllowThreads(__tstate); |
3425 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3426 | } if (_result) { |
3427 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3428 | _resultobj = Py_BuildValue("s",_ptemp); | |
3429 | } else { | |
3430 | Py_INCREF(Py_None); | |
3431 | _resultobj = Py_None; | |
3432 | } | |
3433 | return _resultobj; | |
3434 | } | |
3435 | ||
3436 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3437 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3438 | PyObject * _resultobj; | |
3439 | wxWindowDisabler * _arg0; | |
3440 | PyObject * _argo0 = 0; | |
3441 | char *_kwnames[] = { "self", NULL }; | |
3442 | ||
3443 | self = self; | |
3444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3445 | return NULL; | |
3446 | if (_argo0) { | |
3447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3450 | return NULL; | |
3451 | } | |
3452 | } | |
3453 | { | |
4268f798 | 3454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3455 | delete_wxWindowDisabler(_arg0); |
c368d904 | 3456 | |
4268f798 RD |
3457 | wxPyEndAllowThreads(__tstate); |
3458 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3459 | } Py_INCREF(Py_None); |
3460 | _resultobj = Py_None; | |
3461 | return _resultobj; | |
3462 | } | |
3463 | ||
6e18ca6c RD |
3464 | #define new_wxMutexGuiLocker() (new wxMutexGuiLocker()) |
3465 | static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3466 | PyObject * _resultobj; | |
3467 | wxMutexGuiLocker * _result; | |
3468 | char *_kwnames[] = { NULL }; | |
3469 | char _ptemp[128]; | |
3470 | ||
3471 | self = self; | |
3472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames)) | |
3473 | return NULL; | |
3474 | { | |
4268f798 | 3475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3476 | _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker(); |
6e18ca6c | 3477 | |
4268f798 RD |
3478 | wxPyEndAllowThreads(__tstate); |
3479 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3480 | } if (_result) { |
3481 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p"); | |
3482 | _resultobj = Py_BuildValue("s",_ptemp); | |
3483 | } else { | |
3484 | Py_INCREF(Py_None); | |
3485 | _resultobj = Py_None; | |
3486 | } | |
3487 | return _resultobj; | |
3488 | } | |
3489 | ||
3490 | #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj) | |
3491 | static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3492 | PyObject * _resultobj; | |
3493 | wxMutexGuiLocker * _arg0; | |
3494 | PyObject * _argo0 = 0; | |
3495 | char *_kwnames[] = { "self", NULL }; | |
3496 | ||
3497 | self = self; | |
3498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0)) | |
3499 | return NULL; | |
3500 | if (_argo0) { | |
3501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) { | |
3503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p."); | |
3504 | return NULL; | |
3505 | } | |
3506 | } | |
3507 | { | |
4268f798 | 3508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3509 | delete_wxMutexGuiLocker(_arg0); |
6e18ca6c | 3510 | |
4268f798 RD |
3511 | wxPyEndAllowThreads(__tstate); |
3512 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3513 | } Py_INCREF(Py_None); |
3514 | _resultobj = Py_None; | |
3515 | return _resultobj; | |
3516 | } | |
3517 | ||
f6bcfd97 BP |
3518 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) |
3519 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3520 | PyObject * _resultobj; | |
3521 | wxTipProvider * _arg0; | |
3522 | PyObject * _argo0 = 0; | |
3523 | char *_kwnames[] = { "self", NULL }; | |
3524 | ||
3525 | self = self; | |
3526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3527 | return NULL; | |
3528 | if (_argo0) { | |
3529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3532 | return NULL; | |
3533 | } | |
3534 | } | |
3535 | { | |
4268f798 | 3536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3537 | delete_wxTipProvider(_arg0); |
f6bcfd97 | 3538 | |
4268f798 RD |
3539 | wxPyEndAllowThreads(__tstate); |
3540 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3541 | } Py_INCREF(Py_None); |
3542 | _resultobj = Py_None; | |
3543 | return _resultobj; | |
3544 | } | |
3545 | ||
3546 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3547 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3548 | PyObject * _resultobj; | |
3549 | wxString * _result; | |
3550 | wxTipProvider * _arg0; | |
3551 | PyObject * _argo0 = 0; | |
3552 | char *_kwnames[] = { "self", NULL }; | |
3553 | ||
3554 | self = self; | |
3555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3556 | return NULL; | |
3557 | if (_argo0) { | |
3558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3561 | return NULL; | |
3562 | } | |
3563 | } | |
3564 | { | |
4268f798 | 3565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3566 | _result = new wxString (wxTipProvider_GetTip(_arg0)); |
f6bcfd97 | 3567 | |
4268f798 RD |
3568 | wxPyEndAllowThreads(__tstate); |
3569 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 3570 | }{ |
c8bc7bb8 | 3571 | #if wxUSE_UNICODE |
7e50db3f | 3572 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3573 | #else |
f6bcfd97 | 3574 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3575 | #endif |
f6bcfd97 BP |
3576 | } |
3577 | { | |
3578 | delete _result; | |
3579 | } | |
3580 | return _resultobj; | |
3581 | } | |
3582 | ||
3583 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3584 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3585 | PyObject * _resultobj; | |
3586 | size_t _result; | |
3587 | wxTipProvider * _arg0; | |
3588 | PyObject * _argo0 = 0; | |
3589 | char *_kwnames[] = { "self", NULL }; | |
3590 | ||
3591 | self = self; | |
3592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3593 | return NULL; | |
3594 | if (_argo0) { | |
3595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3598 | return NULL; | |
3599 | } | |
3600 | } | |
3601 | { | |
4268f798 | 3602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3603 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); |
f6bcfd97 | 3604 | |
4268f798 RD |
3605 | wxPyEndAllowThreads(__tstate); |
3606 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3607 | } _resultobj = Py_BuildValue("i",_result); |
3608 | return _resultobj; | |
3609 | } | |
3610 | ||
67a92fff RD |
3611 | #define wxTipProvider_PreprocessTip(_swigobj,_swigarg0) (_swigobj->PreprocessTip(_swigarg0)) |
3612 | static PyObject *_wrap_wxTipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3613 | PyObject * _resultobj; | |
3614 | wxString * _result; | |
3615 | wxTipProvider * _arg0; | |
3616 | wxString * _arg1; | |
3617 | PyObject * _argo0 = 0; | |
3618 | PyObject * _obj1 = 0; | |
3619 | char *_kwnames[] = { "self","tip", NULL }; | |
3620 | ||
3621 | self = self; | |
3622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTipProvider_PreprocessTip",_kwnames,&_argo0,&_obj1)) | |
3623 | return NULL; | |
3624 | if (_argo0) { | |
3625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_PreprocessTip. Expected _wxTipProvider_p."); | |
3628 | return NULL; | |
3629 | } | |
3630 | } | |
3631 | { | |
3632 | _arg1 = wxString_in_helper(_obj1); | |
3633 | if (_arg1 == NULL) | |
3634 | return NULL; | |
3635 | } | |
3636 | { | |
3637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3638 | _result = new wxString (wxTipProvider_PreprocessTip(_arg0,*_arg1)); | |
3639 | ||
3640 | wxPyEndAllowThreads(__tstate); | |
3641 | if (PyErr_Occurred()) return NULL; | |
3642 | }{ | |
3643 | #if wxUSE_UNICODE | |
7e50db3f | 3644 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
67a92fff RD |
3645 | #else |
3646 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3647 | #endif | |
3648 | } | |
3649 | { | |
3650 | if (_obj1) | |
3651 | delete _arg1; | |
3652 | } | |
3653 | { | |
3654 | delete _result; | |
3655 | } | |
3656 | return _resultobj; | |
3657 | } | |
3658 | ||
f6bcfd97 BP |
3659 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { |
3660 | wxPyTipProvider *src; | |
3661 | wxTipProvider *dest; | |
3662 | src = (wxPyTipProvider *) ptr; | |
3663 | dest = (wxTipProvider *) src; | |
3664 | return (void *) dest; | |
3665 | } | |
3666 | ||
3667 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3668 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3669 | PyObject * _resultobj; | |
3670 | wxPyTipProvider * _result; | |
3671 | size_t _arg0; | |
3672 | char *_kwnames[] = { "currentTip", NULL }; | |
3673 | char _ptemp[128]; | |
3674 | ||
3675 | self = self; | |
3676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3677 | return NULL; | |
3678 | { | |
4268f798 | 3679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3680 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); |
f6bcfd97 | 3681 | |
4268f798 RD |
3682 | wxPyEndAllowThreads(__tstate); |
3683 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3684 | } if (_result) { |
3685 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3686 | _resultobj = Py_BuildValue("s",_ptemp); | |
3687 | } else { | |
3688 | Py_INCREF(Py_None); | |
3689 | _resultobj = Py_None; | |
3690 | } | |
3691 | return _resultobj; | |
3692 | } | |
3693 | ||
cf276873 RD |
3694 | #define wxPyTipProvider__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
3695 | static PyObject *_wrap_wxPyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3696 | PyObject * _resultobj; | |
3697 | wxPyTipProvider * _arg0; | |
3698 | PyObject * _arg1; | |
3699 | PyObject * _arg2; | |
3700 | PyObject * _argo0 = 0; | |
3701 | PyObject * _obj1 = 0; | |
3702 | PyObject * _obj2 = 0; | |
3703 | char *_kwnames[] = { "self","self","_class", NULL }; | |
3704 | ||
3705 | self = self; | |
3706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyTipProvider__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3707 | return NULL; | |
3708 | if (_argo0) { | |
3709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTipProvider_p")) { | |
3711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTipProvider__setCallbackInfo. Expected _wxPyTipProvider_p."); | |
3712 | return NULL; | |
3713 | } | |
3714 | } | |
3715 | { | |
3716 | _arg1 = _obj1; | |
3717 | } | |
3718 | { | |
3719 | _arg2 = _obj2; | |
3720 | } | |
3721 | { | |
3722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3723 | wxPyTipProvider__setCallbackInfo(_arg0,_arg1,_arg2); | |
3724 | ||
3725 | wxPyEndAllowThreads(__tstate); | |
3726 | if (PyErr_Occurred()) return NULL; | |
3727 | } Py_INCREF(Py_None); | |
3728 | _resultobj = Py_None; | |
3729 | return _resultobj; | |
3730 | } | |
3731 | ||
9416aa89 RD |
3732 | static void *SwigwxGenericDragImageTowxObject(void *ptr) { |
3733 | wxGenericDragImage *src; | |
3734 | wxObject *dest; | |
3735 | src = (wxGenericDragImage *) ptr; | |
3736 | dest = (wxObject *) src; | |
3737 | return (void *) dest; | |
3738 | } | |
3739 | ||
10e07c70 | 3740 | #define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
f6bcfd97 BP |
3741 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
3742 | PyObject * _resultobj; | |
3743 | wxGenericDragImage * _result; | |
3744 | wxBitmap * _arg0; | |
3745 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
f6bcfd97 BP |
3746 | PyObject * _argo0 = 0; |
3747 | PyObject * _argo1 = 0; | |
10e07c70 | 3748 | char *_kwnames[] = { "image","cursor", NULL }; |
f6bcfd97 BP |
3749 | char _ptemp[128]; |
3750 | ||
3751 | self = self; | |
10e07c70 | 3752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
3753 | return NULL; |
3754 | if (_argo0) { | |
7e50db3f | 3755 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
f6bcfd97 BP |
3756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); |
3757 | return NULL; | |
3758 | } | |
3759 | } | |
3760 | if (_argo1) { | |
7e50db3f | 3761 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { |
f6bcfd97 BP |
3762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); |
3763 | return NULL; | |
3764 | } | |
3765 | } | |
f6bcfd97 | 3766 | { |
4268f798 | 3767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3768 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1); |
f6bcfd97 | 3769 | |
4268f798 RD |
3770 | wxPyEndAllowThreads(__tstate); |
3771 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3772 | } if (_result) { |
3773 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3774 | _resultobj = Py_BuildValue("s",_ptemp); | |
3775 | } else { | |
3776 | Py_INCREF(Py_None); | |
3777 | _resultobj = Py_None; | |
3778 | } | |
3779 | return _resultobj; | |
3780 | } | |
3781 | ||
cdf14688 RD |
3782 | #define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
3783 | static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3784 | PyObject * _resultobj; | |
3785 | wxGenericDragImage * _result; | |
3786 | wxIcon * _arg0; | |
3787 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3788 | PyObject * _argo0 = 0; | |
3789 | PyObject * _argo1 = 0; | |
3790 | char *_kwnames[] = { "image","cursor", NULL }; | |
3791 | char _ptemp[128]; | |
3792 | ||
3793 | self = self; | |
3794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1)) | |
3795 | return NULL; | |
3796 | if (_argo0) { | |
7e50db3f | 3797 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
cdf14688 RD |
3798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p."); |
3799 | return NULL; | |
3800 | } | |
3801 | } | |
3802 | if (_argo1) { | |
7e50db3f | 3803 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { |
cdf14688 RD |
3804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p."); |
3805 | return NULL; | |
3806 | } | |
3807 | } | |
3808 | { | |
4268f798 | 3809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3810 | _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1); |
cdf14688 | 3811 | |
4268f798 RD |
3812 | wxPyEndAllowThreads(__tstate); |
3813 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3814 | } if (_result) { |
3815 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3816 | _resultobj = Py_BuildValue("s",_ptemp); | |
3817 | } else { | |
3818 | Py_INCREF(Py_None); | |
3819 | _resultobj = Py_None; | |
3820 | } | |
3821 | return _resultobj; | |
3822 | } | |
3823 | ||
3824 | #define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3825 | static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3826 | PyObject * _resultobj; | |
3827 | wxGenericDragImage * _result; | |
3828 | wxString * _arg0; | |
3829 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3830 | PyObject * _obj0 = 0; | |
3831 | PyObject * _argo1 = 0; | |
3832 | char *_kwnames[] = { "str","cursor", NULL }; | |
3833 | char _ptemp[128]; | |
3834 | ||
3835 | self = self; | |
3836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1)) | |
3837 | return NULL; | |
3838 | { | |
c8bc7bb8 RD |
3839 | _arg0 = wxString_in_helper(_obj0); |
3840 | if (_arg0 == NULL) | |
cdf14688 | 3841 | return NULL; |
cdf14688 RD |
3842 | } |
3843 | if (_argo1) { | |
7e50db3f | 3844 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { |
cdf14688 RD |
3845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p."); |
3846 | return NULL; | |
3847 | } | |
3848 | } | |
3849 | { | |
4268f798 | 3850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3851 | _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1); |
cdf14688 | 3852 | |
4268f798 RD |
3853 | wxPyEndAllowThreads(__tstate); |
3854 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3855 | } if (_result) { |
3856 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3857 | _resultobj = Py_BuildValue("s",_ptemp); | |
3858 | } else { | |
3859 | Py_INCREF(Py_None); | |
3860 | _resultobj = Py_None; | |
3861 | } | |
3862 | { | |
3863 | if (_obj0) | |
3864 | delete _arg0; | |
3865 | } | |
3866 | return _resultobj; | |
3867 | } | |
3868 | ||
3869 | #define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3870 | static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3871 | PyObject * _resultobj; | |
3872 | wxGenericDragImage * _result; | |
3873 | wxTreeCtrl * _arg0; | |
3874 | wxTreeItemId * _arg1; | |
3875 | PyObject * _argo0 = 0; | |
3876 | PyObject * _argo1 = 0; | |
3877 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
3878 | char _ptemp[128]; | |
3879 | ||
3880 | self = self; | |
3881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1)) | |
3882 | return NULL; | |
3883 | if (_argo0) { | |
7e50db3f | 3884 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { |
cdf14688 RD |
3885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p."); |
3886 | return NULL; | |
3887 | } | |
3888 | } | |
3889 | if (_argo1) { | |
7e50db3f | 3890 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cdf14688 RD |
3891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p."); |
3892 | return NULL; | |
3893 | } | |
3894 | } | |
3895 | { | |
4268f798 | 3896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3897 | _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1); |
cdf14688 | 3898 | |
4268f798 RD |
3899 | wxPyEndAllowThreads(__tstate); |
3900 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3901 | } if (_result) { |
3902 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3903 | _resultobj = Py_BuildValue("s",_ptemp); | |
3904 | } else { | |
3905 | Py_INCREF(Py_None); | |
3906 | _resultobj = Py_None; | |
3907 | } | |
3908 | return _resultobj; | |
3909 | } | |
3910 | ||
3911 | #define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3912 | static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3913 | PyObject * _resultobj; | |
3914 | wxGenericDragImage * _result; | |
3915 | wxListCtrl * _arg0; | |
3916 | long _arg1; | |
3917 | PyObject * _argo0 = 0; | |
3918 | char *_kwnames[] = { "listCtrl","id", NULL }; | |
3919 | char _ptemp[128]; | |
3920 | ||
3921 | self = self; | |
3922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1)) | |
3923 | return NULL; | |
3924 | if (_argo0) { | |
7e50db3f | 3925 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { |
cdf14688 RD |
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 | ||
7e50db3f RD |
4068 | #define wxDragImage_BeginDragBounded(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) |
4069 | static PyObject *_wrap_wxDragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 BP |
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; | |
7e50db3f | 4081 | char *_kwnames[] = { "self","hotspot","window","boundingWindow", NULL }; |
f6bcfd97 BP |
4082 | |
4083 | self = self; | |
7e50db3f | 4084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDragBounded",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) |
f6bcfd97 BP |
4085 | return NULL; |
4086 | if (_argo0) { | |
4087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
7e50db3f | 4089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDragBounded. Expected _wxGenericDragImage_p."); |
f6bcfd97 BP |
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")) { | |
7e50db3f | 4101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDragBounded. Expected _wxWindow_p."); |
f6bcfd97 BP |
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")) { | |
7e50db3f | 4108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDragBounded. Expected _wxWindow_p."); |
f6bcfd97 BP |
4109 | return NULL; |
4110 | } | |
4111 | } | |
4112 | { | |
4268f798 | 4113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 4114 | _result = (bool )wxDragImage_BeginDragBounded(_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; | |
5a2a9da2 | 4522 | bool _result; |
f6bcfd97 BP |
4523 | wxPyTimer * _arg0; |
4524 | int _arg1 = (int ) -1; | |
4525 | int _arg2 = (int ) FALSE; | |
4526 | PyObject * _argo0 = 0; | |
4527 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
4528 | ||
4529 | self = self; | |
4530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4531 | return NULL; | |
4532 | if (_argo0) { | |
4533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
4536 | return NULL; | |
4537 | } | |
4538 | } | |
4539 | { | |
4268f798 | 4540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5a2a9da2 | 4541 | _result = (bool )wxPyTimer_Start(_arg0,_arg1,_arg2); |
f6bcfd97 | 4542 | |
4268f798 RD |
4543 | wxPyEndAllowThreads(__tstate); |
4544 | if (PyErr_Occurred()) return NULL; | |
5a2a9da2 | 4545 | } _resultobj = Py_BuildValue("i",_result); |
f6bcfd97 BP |
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 | 4868 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4869 | PyObject * _resultobj; |
f6bcfd97 BP |
4870 | char *_kwnames[] = { NULL }; |
4871 | ||
4872 | self = self; | |
4873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4874 | return NULL; | |
4875 | { | |
4268f798 | 4876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4877 | wxLog::FlushActive(); |
f6bcfd97 | 4878 | |
4268f798 RD |
4879 | wxPyEndAllowThreads(__tstate); |
4880 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4881 | } Py_INCREF(Py_None); |
4882 | _resultobj = Py_None; | |
4883 | return _resultobj; | |
4884 | } | |
4885 | ||
4886 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4887 | PyObject * _resultobj; | |
4888 | wxLog * _result; | |
4889 | char *_kwnames[] = { NULL }; | |
4890 | char _ptemp[128]; | |
4891 | ||
4892 | self = self; | |
4893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
4894 | return NULL; | |
4895 | { | |
4268f798 | 4896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4897 | _result = (wxLog *)wxLog::GetActiveTarget(); |
f6bcfd97 | 4898 | |
4268f798 RD |
4899 | wxPyEndAllowThreads(__tstate); |
4900 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4901 | } if (_result) { |
4902 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4903 | _resultobj = Py_BuildValue("s",_ptemp); | |
4904 | } else { | |
4905 | Py_INCREF(Py_None); | |
4906 | _resultobj = Py_None; | |
4907 | } | |
4908 | return _resultobj; | |
4909 | } | |
4910 | ||
4911 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4912 | PyObject * _resultobj; | |
4913 | wxLog * _result; | |
4914 | wxLog * _arg0; | |
f0261a72 | 4915 | PyObject * _argo0 = 0; |
f6bcfd97 | 4916 | char *_kwnames[] = { "pLogger", NULL }; |
f0261a72 RD |
4917 | char _ptemp[128]; |
4918 | ||
4919 | self = self; | |
f6bcfd97 | 4920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) |
f0261a72 RD |
4921 | return NULL; |
4922 | if (_argo0) { | |
4923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
f0261a72 RD |
4926 | return NULL; |
4927 | } | |
4928 | } | |
4929 | { | |
4268f798 | 4930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4931 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); |
f0261a72 | 4932 | |
4268f798 RD |
4933 | wxPyEndAllowThreads(__tstate); |
4934 | if (PyErr_Occurred()) return NULL; | |
f0261a72 | 4935 | } if (_result) { |
f6bcfd97 | 4936 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); |
f0261a72 RD |
4937 | _resultobj = Py_BuildValue("s",_ptemp); |
4938 | } else { | |
4939 | Py_INCREF(Py_None); | |
4940 | _resultobj = Py_None; | |
4941 | } | |
4942 | return _resultobj; | |
4943 | } | |
4944 | ||
f6bcfd97 | 4945 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4946 | PyObject * _resultobj; |
f6bcfd97 BP |
4947 | char *_kwnames[] = { NULL }; |
4948 | ||
4949 | self = self; | |
4950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
4951 | return NULL; | |
4952 | { | |
4268f798 | 4953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4954 | wxLog::Suspend(); |
f6bcfd97 | 4955 | |
4268f798 RD |
4956 | wxPyEndAllowThreads(__tstate); |
4957 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4958 | } Py_INCREF(Py_None); |
4959 | _resultobj = Py_None; | |
4960 | return _resultobj; | |
4961 | } | |
4962 | ||
4963 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4964 | PyObject * _resultobj; | |
4965 | char *_kwnames[] = { NULL }; | |
4966 | ||
4967 | self = self; | |
4968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
4969 | return NULL; | |
4970 | { | |
4268f798 | 4971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4972 | wxLog::Resume(); |
f6bcfd97 | 4973 | |
4268f798 RD |
4974 | wxPyEndAllowThreads(__tstate); |
4975 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4976 | } Py_INCREF(Py_None); |
4977 | _resultobj = Py_None; | |
4978 | return _resultobj; | |
4979 | } | |
4980 | ||
f6bcfd97 BP |
4981 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { |
4982 | PyObject * _resultobj; | |
d6eacb25 RD |
4983 | bool _arg0 = (bool ) TRUE; |
4984 | int tempbool0 = (int) TRUE; | |
4985 | char *_kwnames[] = { "bVerbose", NULL }; | |
f0261a72 RD |
4986 | |
4987 | self = self; | |
d6eacb25 | 4988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_SetVerbose",_kwnames,&tempbool0)) |
f0261a72 | 4989 | return NULL; |
d6eacb25 | 4990 | _arg0 = (bool ) tempbool0; |
f0261a72 | 4991 | { |
4268f798 | 4992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d6eacb25 | 4993 | wxLog::SetVerbose(_arg0); |
f0261a72 | 4994 | |
4268f798 RD |
4995 | wxPyEndAllowThreads(__tstate); |
4996 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4997 | } Py_INCREF(Py_None); |
4998 | _resultobj = Py_None; | |
4999 | return _resultobj; | |
5000 | } | |
5001 | ||
f6bcfd97 | 5002 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 5003 | PyObject * _resultobj; |
f6bcfd97 BP |
5004 | char *_kwnames[] = { NULL }; |
5005 | ||
5006 | self = self; | |
5007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
5008 | return NULL; | |
5009 | { | |
4268f798 | 5010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5011 | wxLog::DontCreateOnDemand(); |
f6bcfd97 | 5012 | |
4268f798 RD |
5013 | wxPyEndAllowThreads(__tstate); |
5014 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5015 | } Py_INCREF(Py_None); |
5016 | _resultobj = Py_None; | |
5017 | return _resultobj; | |
5018 | } | |
5019 | ||
5020 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5021 | PyObject * _resultobj; | |
8baa46e9 | 5022 | long _arg0; |
f6bcfd97 | 5023 | char *_kwnames[] = { "ulMask", NULL }; |
f0261a72 RD |
5024 | |
5025 | self = self; | |
8baa46e9 | 5026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxLog_SetTraceMask",_kwnames,&_arg0)) |
f6bcfd97 | 5027 | return NULL; |
f6bcfd97 | 5028 | { |
4268f798 | 5029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8baa46e9 | 5030 | wxLog::SetTraceMask(_arg0); |
f6bcfd97 | 5031 | |
4268f798 RD |
5032 | wxPyEndAllowThreads(__tstate); |
5033 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5034 | } Py_INCREF(Py_None); |
5035 | _resultobj = Py_None; | |
5036 | return _resultobj; | |
5037 | } | |
5038 | ||
5039 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5040 | PyObject * _resultobj; | |
5041 | wxString * _arg0; | |
5042 | PyObject * _obj0 = 0; | |
5043 | char *_kwnames[] = { "str", NULL }; | |
5044 | ||
5045 | self = self; | |
5046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
5047 | return NULL; | |
5048 | { | |
c8bc7bb8 RD |
5049 | _arg0 = wxString_in_helper(_obj0); |
5050 | if (_arg0 == NULL) | |
f6bcfd97 | 5051 | return NULL; |
f6bcfd97 BP |
5052 | } |
5053 | { | |
4268f798 | 5054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5055 | wxLog::AddTraceMask(*_arg0); |
f6bcfd97 | 5056 | |
4268f798 RD |
5057 | wxPyEndAllowThreads(__tstate); |
5058 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5059 | } Py_INCREF(Py_None); |
5060 | _resultobj = Py_None; | |
5061 | { | |
5062 | if (_obj0) | |
5063 | delete _arg0; | |
5064 | } | |
5065 | return _resultobj; | |
5066 | } | |
5067 | ||
5068 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5069 | PyObject * _resultobj; | |
5070 | wxString * _arg0; | |
5071 | PyObject * _obj0 = 0; | |
5072 | char *_kwnames[] = { "str", NULL }; | |
5073 | ||
5074 | self = self; | |
5075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
f0261a72 | 5076 | return NULL; |
f0261a72 | 5077 | { |
c8bc7bb8 RD |
5078 | _arg0 = wxString_in_helper(_obj0); |
5079 | if (_arg0 == NULL) | |
185d7c3e | 5080 | return NULL; |
f0261a72 RD |
5081 | } |
5082 | { | |
4268f798 | 5083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5084 | wxLog::RemoveTraceMask(*_arg0); |
f0261a72 | 5085 | |
4268f798 RD |
5086 | wxPyEndAllowThreads(__tstate); |
5087 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
5088 | } Py_INCREF(Py_None); |
5089 | _resultobj = Py_None; | |
f6bcfd97 BP |
5090 | { |
5091 | if (_obj0) | |
5092 | delete _arg0; | |
5093 | } | |
f0261a72 RD |
5094 | return _resultobj; |
5095 | } | |
5096 | ||
76bfdc78 RD |
5097 | static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { |
5098 | PyObject * _resultobj; | |
5099 | char *_kwnames[] = { NULL }; | |
5100 | ||
5101 | self = self; | |
5102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames)) | |
5103 | return NULL; | |
5104 | { | |
4268f798 | 5105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5106 | wxLog::ClearTraceMasks(); |
76bfdc78 | 5107 | |
4268f798 RD |
5108 | wxPyEndAllowThreads(__tstate); |
5109 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5110 | } Py_INCREF(Py_None); |
5111 | _resultobj = Py_None; | |
5112 | return _resultobj; | |
5113 | } | |
5114 | ||
67a92fff RD |
5115 | static PyObject *_wrap_wxLog_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { |
5116 | PyObject * _resultobj; | |
5117 | wxArrayString * _result; | |
5118 | char *_kwnames[] = { NULL }; | |
5119 | char _ptemp[128]; | |
5120 | ||
5121 | self = self; | |
5122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMasks",_kwnames)) | |
5123 | return NULL; | |
5124 | { | |
5125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5126 | const wxArrayString & _result_ref = wxLog::GetTraceMasks(); | |
5127 | _result = (wxArrayString *) &_result_ref; | |
5128 | ||
5129 | wxPyEndAllowThreads(__tstate); | |
5130 | if (PyErr_Occurred()) return NULL; | |
5131 | } if (_result) { | |
5132 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxArrayString_p"); | |
5133 | _resultobj = Py_BuildValue("s",_ptemp); | |
5134 | } else { | |
5135 | Py_INCREF(Py_None); | |
5136 | _resultobj = Py_None; | |
5137 | } | |
5138 | return _resultobj; | |
5139 | } | |
5140 | ||
76bfdc78 RD |
5141 | static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { |
5142 | PyObject * _resultobj; | |
137b5242 RD |
5143 | wxString * _arg0; |
5144 | PyObject * _obj0 = 0; | |
76bfdc78 RD |
5145 | char *_kwnames[] = { "ts", NULL }; |
5146 | ||
5147 | self = self; | |
137b5242 | 5148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTimestamp",_kwnames,&_obj0)) |
76bfdc78 | 5149 | return NULL; |
137b5242 RD |
5150 | { |
5151 | _arg0 = wxString_in_helper(_obj0); | |
5152 | if (_arg0 == NULL) | |
5153 | return NULL; | |
5154 | } | |
76bfdc78 | 5155 | { |
4268f798 | 5156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 5157 | wxLog::SetTimestamp(*_arg0); |
76bfdc78 | 5158 | |
4268f798 RD |
5159 | wxPyEndAllowThreads(__tstate); |
5160 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5161 | } Py_INCREF(Py_None); |
5162 | _resultobj = Py_None; | |
137b5242 RD |
5163 | { |
5164 | if (_obj0) | |
5165 | delete _arg0; | |
5166 | } | |
76bfdc78 RD |
5167 | return _resultobj; |
5168 | } | |
5169 | ||
5170 | static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5171 | PyObject * _resultobj; | |
137b5242 | 5172 | wxString * _result; |
76bfdc78 RD |
5173 | char *_kwnames[] = { NULL }; |
5174 | ||
5175 | self = self; | |
5176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames)) | |
5177 | return NULL; | |
5178 | { | |
4268f798 | 5179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 RD |
5180 | const wxString & _result_ref = wxLog::GetTimestamp(); |
5181 | _result = (wxString *) &_result_ref; | |
76bfdc78 | 5182 | |
4268f798 RD |
5183 | wxPyEndAllowThreads(__tstate); |
5184 | if (PyErr_Occurred()) return NULL; | |
137b5242 RD |
5185 | }{ |
5186 | #if wxUSE_UNICODE | |
7e50db3f | 5187 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
137b5242 RD |
5188 | #else |
5189 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5190 | #endif | |
5191 | } | |
76bfdc78 RD |
5192 | return _resultobj; |
5193 | } | |
5194 | ||
f6bcfd97 BP |
5195 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) |
5196 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
a1df7a95 | 5197 | PyObject * _resultobj; |
f6bcfd97 BP |
5198 | bool _result; |
5199 | wxLog * _arg0; | |
a1df7a95 | 5200 | PyObject * _argo0 = 0; |
f6bcfd97 | 5201 | char *_kwnames[] = { "self", NULL }; |
a1df7a95 RD |
5202 | |
5203 | self = self; | |
f6bcfd97 | 5204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) |
a1df7a95 RD |
5205 | return NULL; |
5206 | if (_argo0) { | |
5207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
5209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
a1df7a95 RD |
5210 | return NULL; |
5211 | } | |
5212 | } | |
5213 | { | |
4268f798 | 5214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5215 | _result = (bool )wxLog_GetVerbose(_arg0); |
a1df7a95 | 5216 | |
4268f798 RD |
5217 | wxPyEndAllowThreads(__tstate); |
5218 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5219 | } _resultobj = Py_BuildValue("i",_result); |
a1df7a95 RD |
5220 | return _resultobj; |
5221 | } | |
5222 | ||
f6bcfd97 | 5223 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
a1df7a95 | 5224 | PyObject * _resultobj; |
be13a6af | 5225 | unsigned long _result; |
f6bcfd97 | 5226 | char *_kwnames[] = { NULL }; |
a1df7a95 RD |
5227 | |
5228 | self = self; | |
f6bcfd97 | 5229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) |
a1df7a95 | 5230 | return NULL; |
a1df7a95 | 5231 | { |
4268f798 | 5232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
be13a6af | 5233 | _result = (unsigned long )wxLog::GetTraceMask(); |
f6bcfd97 | 5234 | |
4268f798 RD |
5235 | wxPyEndAllowThreads(__tstate); |
5236 | if (PyErr_Occurred()) return NULL; | |
be13a6af | 5237 | } _resultobj = Py_BuildValue("l",_result); |
f6bcfd97 | 5238 | return _resultobj; |
a1df7a95 | 5239 | } |
f6bcfd97 BP |
5240 | |
5241 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5242 | PyObject * _resultobj; | |
5243 | bool _result; | |
c8bc7bb8 RD |
5244 | wxString * _arg0; |
5245 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
5246 | char *_kwnames[] = { "mask", NULL }; |
5247 | ||
5248 | self = self; | |
c8bc7bb8 | 5249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_IsAllowedTraceMask",_kwnames,&_obj0)) |
f6bcfd97 | 5250 | return NULL; |
c8bc7bb8 RD |
5251 | { |
5252 | _arg0 = wxString_in_helper(_obj0); | |
5253 | if (_arg0 == NULL) | |
5254 | return NULL; | |
5255 | } | |
a1df7a95 | 5256 | { |
4268f798 | 5257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5258 | _result = (bool )wxLog::IsAllowedTraceMask(*_arg0); |
a1df7a95 | 5259 | |
4268f798 RD |
5260 | wxPyEndAllowThreads(__tstate); |
5261 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5262 | } _resultobj = Py_BuildValue("i",_result); |
c8bc7bb8 RD |
5263 | { |
5264 | if (_obj0) | |
5265 | delete _arg0; | |
5266 | } | |
a1df7a95 RD |
5267 | return _resultobj; |
5268 | } | |
5269 | ||
7e50db3f RD |
5270 | static PyObject *_wrap_wxLog_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
5271 | PyObject * _resultobj; | |
5272 | unsigned long _arg0; | |
5273 | char *_kwnames[] = { "logLevel", NULL }; | |
5274 | ||
5275 | self = self; | |
5276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxLog_SetLogLevel",_kwnames,&_arg0)) | |
5277 | return NULL; | |
5278 | { | |
5279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5280 | wxLog::SetLogLevel(_arg0); | |
5281 | ||
5282 | wxPyEndAllowThreads(__tstate); | |
5283 | if (PyErr_Occurred()) return NULL; | |
5284 | } Py_INCREF(Py_None); | |
5285 | _resultobj = Py_None; | |
5286 | return _resultobj; | |
5287 | } | |
5288 | ||
5289 | static PyObject *_wrap_wxLog_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5290 | PyObject * _resultobj; | |
5291 | unsigned long _result; | |
5292 | char *_kwnames[] = { NULL }; | |
5293 | ||
5294 | self = self; | |
5295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetLogLevel",_kwnames)) | |
5296 | return NULL; | |
5297 | { | |
5298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5299 | _result = (unsigned long )wxLog::GetLogLevel(); | |
5300 | ||
5301 | wxPyEndAllowThreads(__tstate); | |
5302 | if (PyErr_Occurred()) return NULL; | |
5303 | } _resultobj = Py_BuildValue("l",_result); | |
5304 | return _resultobj; | |
5305 | } | |
5306 | ||
76bfdc78 RD |
5307 | static wxString wxLog_TimeStamp(wxLog *self) { |
5308 | wxString msg; | |
5309 | wxLog::TimeStamp(&msg); | |
5310 | return msg; | |
5311 | } | |
5312 | static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5313 | PyObject * _resultobj; | |
5314 | wxString * _result; | |
5315 | wxLog * _arg0; | |
5316 | PyObject * _argo0 = 0; | |
5317 | char *_kwnames[] = { "self", NULL }; | |
5318 | ||
5319 | self = self; | |
5320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0)) | |
5321 | return NULL; | |
5322 | if (_argo0) { | |
5323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p."); | |
5326 | return NULL; | |
5327 | } | |
5328 | } | |
5329 | { | |
4268f798 | 5330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5331 | _result = new wxString (wxLog_TimeStamp(_arg0)); |
76bfdc78 | 5332 | |
4268f798 RD |
5333 | wxPyEndAllowThreads(__tstate); |
5334 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 | 5335 | }{ |
c8bc7bb8 | 5336 | #if wxUSE_UNICODE |
7e50db3f | 5337 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5338 | #else |
76bfdc78 | 5339 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5340 | #endif |
76bfdc78 RD |
5341 | } |
5342 | { | |
5343 | delete _result; | |
5344 | } | |
5345 | return _resultobj; | |
5346 | } | |
5347 | ||
f6bcfd97 BP |
5348 | static void *SwigwxLogStderrTowxLog(void *ptr) { |
5349 | wxLogStderr *src; | |
5350 | wxLog *dest; | |
5351 | src = (wxLogStderr *) ptr; | |
5352 | dest = (wxLog *) src; | |
5353 | return (void *) dest; | |
5354 | } | |
5355 | ||
5356 | #define new_wxLogStderr() (new wxLogStderr()) | |
5357 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5358 | PyObject * _resultobj; |
f6bcfd97 BP |
5359 | wxLogStderr * _result; |
5360 | char *_kwnames[] = { NULL }; | |
5361 | char _ptemp[128]; | |
f0261a72 RD |
5362 | |
5363 | self = self; | |
f6bcfd97 | 5364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) |
f0261a72 | 5365 | return NULL; |
f0261a72 | 5366 | { |
4268f798 | 5367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5368 | _result = (wxLogStderr *)new_wxLogStderr(); |
f0261a72 | 5369 | |
4268f798 RD |
5370 | wxPyEndAllowThreads(__tstate); |
5371 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5372 | } if (_result) { |
5373 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
5374 | _resultobj = Py_BuildValue("s",_ptemp); | |
5375 | } else { | |
5376 | Py_INCREF(Py_None); | |
5377 | _resultobj = Py_None; | |
5378 | } | |
f0261a72 RD |
5379 | return _resultobj; |
5380 | } | |
5381 | ||
f6bcfd97 BP |
5382 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { |
5383 | wxLogTextCtrl *src; | |
5384 | wxLog *dest; | |
5385 | src = (wxLogTextCtrl *) ptr; | |
5386 | dest = (wxLog *) src; | |
5387 | return (void *) dest; | |
5388 | } | |
5389 | ||
5390 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
5391 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5392 | PyObject * _resultobj; |
f6bcfd97 BP |
5393 | wxLogTextCtrl * _result; |
5394 | wxTextCtrl * _arg0; | |
f0261a72 | 5395 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5396 | char *_kwnames[] = { "pTextCtrl", NULL }; |
5397 | char _ptemp[128]; | |
f0261a72 RD |
5398 | |
5399 | self = self; | |
f6bcfd97 | 5400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) |
f0261a72 RD |
5401 | return NULL; |
5402 | if (_argo0) { | |
5403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
5405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
f0261a72 RD |
5406 | return NULL; |
5407 | } | |
5408 | } | |
5409 | { | |
4268f798 | 5410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5411 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); |
f0261a72 | 5412 | |
4268f798 RD |
5413 | wxPyEndAllowThreads(__tstate); |
5414 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5415 | } if (_result) { |
5416 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
5417 | _resultobj = Py_BuildValue("s",_ptemp); | |
5418 | } else { | |
5419 | Py_INCREF(Py_None); | |
5420 | _resultobj = Py_None; | |
5421 | } | |
f0261a72 RD |
5422 | return _resultobj; |
5423 | } | |
5424 | ||
f6bcfd97 BP |
5425 | static void *SwigwxLogGuiTowxLog(void *ptr) { |
5426 | wxLogGui *src; | |
5427 | wxLog *dest; | |
5428 | src = (wxLogGui *) ptr; | |
5429 | dest = (wxLog *) src; | |
5430 | return (void *) dest; | |
5431 | } | |
5432 | ||
5433 | #define new_wxLogGui() (new wxLogGui()) | |
5434 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5435 | PyObject * _resultobj; |
f6bcfd97 | 5436 | wxLogGui * _result; |
b1462dfa RD |
5437 | char *_kwnames[] = { NULL }; |
5438 | char _ptemp[128]; | |
5439 | ||
5440 | self = self; | |
f6bcfd97 | 5441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) |
b1462dfa RD |
5442 | return NULL; |
5443 | { | |
4268f798 | 5444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5445 | _result = (wxLogGui *)new_wxLogGui(); |
b1462dfa | 5446 | |
4268f798 RD |
5447 | wxPyEndAllowThreads(__tstate); |
5448 | if (PyErr_Occurred()) return NULL; | |
b1462dfa | 5449 | } if (_result) { |
f6bcfd97 | 5450 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); |
b1462dfa RD |
5451 | _resultobj = Py_BuildValue("s",_ptemp); |
5452 | } else { | |
5453 | Py_INCREF(Py_None); | |
5454 | _resultobj = Py_None; | |
5455 | } | |
5456 | return _resultobj; | |
5457 | } | |
5458 | ||
f6bcfd97 BP |
5459 | static void *SwigwxLogWindowTowxLog(void *ptr) { |
5460 | wxLogWindow *src; | |
5461 | wxLog *dest; | |
5462 | src = (wxLogWindow *) ptr; | |
5463 | dest = (wxLog *) src; | |
5464 | return (void *) dest; | |
5465 | } | |
5466 | ||
5467 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5468 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5469 | PyObject * _resultobj; |
f6bcfd97 BP |
5470 | wxLogWindow * _result; |
5471 | wxFrame * _arg0; | |
c8bc7bb8 | 5472 | wxString * _arg1; |
f6bcfd97 BP |
5473 | bool _arg2 = (bool ) TRUE; |
5474 | bool _arg3 = (bool ) TRUE; | |
b1462dfa | 5475 | PyObject * _argo0 = 0; |
c8bc7bb8 | 5476 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
5477 | int tempbool2 = (int) TRUE; |
5478 | int tempbool3 = (int) TRUE; | |
5479 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
5480 | char _ptemp[128]; | |
b1462dfa RD |
5481 | |
5482 | self = self; | |
c8bc7bb8 | 5483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:new_wxLogWindow",_kwnames,&_argo0,&_obj1,&tempbool2,&tempbool3)) |
b1462dfa RD |
5484 | return NULL; |
5485 | if (_argo0) { | |
5486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { |
5488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
b1462dfa RD |
5489 | return NULL; |
5490 | } | |
5491 | } | |
c8bc7bb8 RD |
5492 | { |
5493 | _arg1 = wxString_in_helper(_obj1); | |
5494 | if (_arg1 == NULL) | |
5495 | return NULL; | |
5496 | } | |
f6bcfd97 BP |
5497 | _arg2 = (bool ) tempbool2; |
5498 | _arg3 = (bool ) tempbool3; | |
b1462dfa | 5499 | { |
4268f798 | 5500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5501 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,*_arg1,_arg2,_arg3); |
b1462dfa | 5502 | |
4268f798 RD |
5503 | wxPyEndAllowThreads(__tstate); |
5504 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5505 | } if (_result) { |
5506 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
5507 | _resultobj = Py_BuildValue("s",_ptemp); | |
5508 | } else { | |
5509 | Py_INCREF(Py_None); | |
5510 | _resultobj = Py_None; | |
5511 | } | |
c8bc7bb8 RD |
5512 | { |
5513 | if (_obj1) | |
5514 | delete _arg1; | |
5515 | } | |
b1462dfa RD |
5516 | return _resultobj; |
5517 | } | |
5518 | ||
f6bcfd97 BP |
5519 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) |
5520 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5521 | PyObject * _resultobj; |
f6bcfd97 BP |
5522 | wxLogWindow * _arg0; |
5523 | bool _arg1 = (bool ) TRUE; | |
b1462dfa | 5524 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5525 | int tempbool1 = (int) TRUE; |
5526 | char *_kwnames[] = { "self","bShow", NULL }; | |
b1462dfa RD |
5527 | |
5528 | self = self; | |
f6bcfd97 | 5529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) |
b1462dfa RD |
5530 | return NULL; |
5531 | if (_argo0) { | |
5532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5535 | return NULL; |
5536 | } | |
5537 | } | |
f6bcfd97 | 5538 | _arg1 = (bool ) tempbool1; |
b1462dfa | 5539 | { |
4268f798 | 5540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5541 | wxLogWindow_Show(_arg0,_arg1); |
b1462dfa | 5542 | |
4268f798 RD |
5543 | wxPyEndAllowThreads(__tstate); |
5544 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
5545 | } Py_INCREF(Py_None); |
5546 | _resultobj = Py_None; | |
5547 | return _resultobj; | |
5548 | } | |
5549 | ||
f6bcfd97 BP |
5550 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) |
5551 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5552 | PyObject * _resultobj; |
f6bcfd97 BP |
5553 | wxFrame * _result; |
5554 | wxLogWindow * _arg0; | |
b1462dfa | 5555 | PyObject * _argo0 = 0; |
f6bcfd97 | 5556 | char *_kwnames[] = { "self", NULL }; |
b1462dfa RD |
5557 | |
5558 | self = self; | |
f6bcfd97 | 5559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) |
b1462dfa RD |
5560 | return NULL; |
5561 | if (_argo0) { | |
5562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5565 | return NULL; |
5566 | } | |
5567 | } | |
b1462dfa | 5568 | { |
4268f798 | 5569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5570 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); |
b1462dfa | 5571 | |
4268f798 RD |
5572 | wxPyEndAllowThreads(__tstate); |
5573 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 5574 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
5575 | return _resultobj; |
5576 | } | |
5577 | ||
f6bcfd97 BP |
5578 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) |
5579 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5580 | PyObject * _resultobj; |
f6bcfd97 BP |
5581 | wxLog * _result; |
5582 | wxLogWindow * _arg0; | |
b1462dfa | 5583 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5584 | char *_kwnames[] = { "self", NULL }; |
5585 | char _ptemp[128]; | |
b1462dfa RD |
5586 | |
5587 | self = self; | |
f6bcfd97 | 5588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) |
b1462dfa RD |
5589 | return NULL; |
5590 | if (_argo0) { | |
5591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5594 | return NULL; |
5595 | } | |
5596 | } | |
5597 | { | |
4268f798 | 5598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5599 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); |
b1462dfa | 5600 | |
4268f798 RD |
5601 | wxPyEndAllowThreads(__tstate); |
5602 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5603 | } if (_result) { |
5604 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5605 | _resultobj = Py_BuildValue("s",_ptemp); | |
5606 | } else { | |
5607 | Py_INCREF(Py_None); | |
5608 | _resultobj = Py_None; | |
5609 | } | |
b1462dfa RD |
5610 | return _resultobj; |
5611 | } | |
5612 | ||
f6bcfd97 BP |
5613 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) |
5614 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5615 | PyObject * _resultobj; |
f6bcfd97 BP |
5616 | bool _result; |
5617 | wxLogWindow * _arg0; | |
65dd82cb RD |
5618 | PyObject * _argo0 = 0; |
5619 | char *_kwnames[] = { "self", NULL }; | |
5620 | ||
5621 | self = self; | |
f6bcfd97 | 5622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) |
65dd82cb RD |
5623 | return NULL; |
5624 | if (_argo0) { | |
5625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5628 | return NULL; |
5629 | } | |
5630 | } | |
5631 | { | |
4268f798 | 5632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5633 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); |
65dd82cb | 5634 | |
4268f798 RD |
5635 | wxPyEndAllowThreads(__tstate); |
5636 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5637 | } _resultobj = Py_BuildValue("i",_result); |
65dd82cb RD |
5638 | return _resultobj; |
5639 | } | |
5640 | ||
f6bcfd97 BP |
5641 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) |
5642 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5643 | PyObject * _resultobj; |
f6bcfd97 BP |
5644 | wxLogWindow * _arg0; |
5645 | bool _arg1; | |
65dd82cb | 5646 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5647 | int tempbool1; |
5648 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
65dd82cb RD |
5649 | |
5650 | self = self; | |
f6bcfd97 | 5651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) |
65dd82cb RD |
5652 | return NULL; |
5653 | if (_argo0) { | |
5654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5657 | return NULL; |
5658 | } | |
5659 | } | |
f6bcfd97 | 5660 | _arg1 = (bool ) tempbool1; |
65dd82cb | 5661 | { |
4268f798 | 5662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5663 | wxLogWindow_PassMessages(_arg0,_arg1); |
65dd82cb | 5664 | |
4268f798 RD |
5665 | wxPyEndAllowThreads(__tstate); |
5666 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5667 | } Py_INCREF(Py_None); |
5668 | _resultobj = Py_None; | |
65dd82cb RD |
5669 | return _resultobj; |
5670 | } | |
5671 | ||
76bfdc78 RD |
5672 | static void *SwigwxLogChainTowxLog(void *ptr) { |
5673 | wxLogChain *src; | |
5674 | wxLog *dest; | |
5675 | src = (wxLogChain *) ptr; | |
5676 | dest = (wxLog *) src; | |
5677 | return (void *) dest; | |
5678 | } | |
5679 | ||
5680 | #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0)) | |
5681 | static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5682 | PyObject * _resultobj; | |
5683 | wxLogChain * _result; | |
5684 | wxLog * _arg0; | |
5685 | PyObject * _argo0 = 0; | |
5686 | char *_kwnames[] = { "logger", NULL }; | |
5687 | char _ptemp[128]; | |
5688 | ||
5689 | self = self; | |
5690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0)) | |
5691 | return NULL; | |
5692 | if (_argo0) { | |
5693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p."); | |
5696 | return NULL; | |
5697 | } | |
5698 | } | |
5699 | { | |
4268f798 | 5700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5701 | _result = (wxLogChain *)new_wxLogChain(_arg0); |
76bfdc78 | 5702 | |
4268f798 RD |
5703 | wxPyEndAllowThreads(__tstate); |
5704 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5705 | } if (_result) { |
5706 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p"); | |
5707 | _resultobj = Py_BuildValue("s",_ptemp); | |
5708 | } else { | |
5709 | Py_INCREF(Py_None); | |
5710 | _resultobj = Py_None; | |
5711 | } | |
5712 | return _resultobj; | |
5713 | } | |
5714 | ||
5715 | #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0)) | |
5716 | static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5717 | PyObject * _resultobj; | |
5718 | wxLogChain * _arg0; | |
5719 | wxLog * _arg1; | |
5720 | PyObject * _argo0 = 0; | |
5721 | PyObject * _argo1 = 0; | |
5722 | char *_kwnames[] = { "self","logger", NULL }; | |
5723 | ||
5724 | self = self; | |
5725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1)) | |
5726 | return NULL; | |
5727 | if (_argo0) { | |
5728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p."); | |
5731 | return NULL; | |
5732 | } | |
5733 | } | |
5734 | if (_argo1) { | |
5735 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5736 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) { | |
5737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p."); | |
5738 | return NULL; | |
5739 | } | |
5740 | } | |
5741 | { | |
4268f798 | 5742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5743 | wxLogChain_SetLog(_arg0,_arg1); |
76bfdc78 | 5744 | |
4268f798 RD |
5745 | wxPyEndAllowThreads(__tstate); |
5746 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5747 | } Py_INCREF(Py_None); |
5748 | _resultobj = Py_None; | |
5749 | return _resultobj; | |
5750 | } | |
5751 | ||
5752 | #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5753 | static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5754 | PyObject * _resultobj; | |
5755 | wxLogChain * _arg0; | |
5756 | bool _arg1; | |
5757 | PyObject * _argo0 = 0; | |
5758 | int tempbool1; | |
5759 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5760 | ||
5761 | self = self; | |
5762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5763 | return NULL; | |
5764 | if (_argo0) { | |
5765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p."); | |
5768 | return NULL; | |
5769 | } | |
5770 | } | |
5771 | _arg1 = (bool ) tempbool1; | |
5772 | { | |
4268f798 | 5773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5774 | wxLogChain_PassMessages(_arg0,_arg1); |
76bfdc78 | 5775 | |
4268f798 RD |
5776 | wxPyEndAllowThreads(__tstate); |
5777 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5778 | } Py_INCREF(Py_None); |
5779 | _resultobj = Py_None; | |
5780 | return _resultobj; | |
5781 | } | |
5782 | ||
5783 | #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5784 | static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5785 | PyObject * _resultobj; | |
5786 | bool _result; | |
5787 | wxLogChain * _arg0; | |
5788 | PyObject * _argo0 = 0; | |
5789 | char *_kwnames[] = { "self", NULL }; | |
5790 | ||
5791 | self = self; | |
5792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0)) | |
5793 | return NULL; | |
5794 | if (_argo0) { | |
5795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p."); | |
5798 | return NULL; | |
5799 | } | |
5800 | } | |
5801 | { | |
4268f798 | 5802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5803 | _result = (bool )wxLogChain_IsPassingMessages(_arg0); |
76bfdc78 | 5804 | |
4268f798 RD |
5805 | wxPyEndAllowThreads(__tstate); |
5806 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5807 | } _resultobj = Py_BuildValue("i",_result); |
5808 | return _resultobj; | |
5809 | } | |
5810 | ||
5811 | #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5812 | static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5813 | PyObject * _resultobj; | |
5814 | wxLog * _result; | |
5815 | wxLogChain * _arg0; | |
5816 | PyObject * _argo0 = 0; | |
5817 | char *_kwnames[] = { "self", NULL }; | |
5818 | char _ptemp[128]; | |
5819 | ||
5820 | self = self; | |
5821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0)) | |
5822 | return NULL; | |
5823 | if (_argo0) { | |
5824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p."); | |
5827 | return NULL; | |
5828 | } | |
5829 | } | |
5830 | { | |
4268f798 | 5831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5832 | _result = (wxLog *)wxLogChain_GetOldLog(_arg0); |
76bfdc78 | 5833 | |
4268f798 RD |
5834 | wxPyEndAllowThreads(__tstate); |
5835 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5836 | } if (_result) { |
5837 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5838 | _resultobj = Py_BuildValue("s",_ptemp); | |
5839 | } else { | |
5840 | Py_INCREF(Py_None); | |
5841 | _resultobj = Py_None; | |
5842 | } | |
5843 | return _resultobj; | |
5844 | } | |
5845 | ||
19e30148 RD |
5846 | #define new_wxLogNull() (new wxLogNull()) |
5847 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5848 | PyObject * _resultobj; | |
5849 | wxLogNull * _result; | |
5850 | char *_kwnames[] = { NULL }; | |
5851 | char _ptemp[128]; | |
5852 | ||
5853 | self = self; | |
5854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) | |
5855 | return NULL; | |
5856 | { | |
5857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5858 | _result = (wxLogNull *)new_wxLogNull(); | |
5859 | ||
5860 | wxPyEndAllowThreads(__tstate); | |
5861 | if (PyErr_Occurred()) return NULL; | |
5862 | } if (_result) { | |
5863 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); | |
5864 | _resultobj = Py_BuildValue("s",_ptemp); | |
5865 | } else { | |
5866 | Py_INCREF(Py_None); | |
5867 | _resultobj = Py_None; | |
5868 | } | |
5869 | return _resultobj; | |
5870 | } | |
5871 | ||
5872 | #define delete_wxLogNull(_swigobj) (delete _swigobj) | |
5873 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5874 | PyObject * _resultobj; | |
5875 | wxLogNull * _arg0; | |
5876 | PyObject * _argo0 = 0; | |
5877 | char *_kwnames[] = { "self", NULL }; | |
5878 | ||
5879 | self = self; | |
5880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) | |
5881 | return NULL; | |
5882 | if (_argo0) { | |
5883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { | |
5885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
5886 | return NULL; | |
5887 | } | |
5888 | } | |
5889 | { | |
5890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5891 | delete_wxLogNull(_arg0); | |
5892 | ||
5893 | wxPyEndAllowThreads(__tstate); | |
5894 | if (PyErr_Occurred()) return NULL; | |
5895 | } Py_INCREF(Py_None); | |
5896 | _resultobj = Py_None; | |
5897 | return _resultobj; | |
5898 | } | |
5899 | ||
76bfdc78 RD |
5900 | static void *SwigwxPyLogTowxLog(void *ptr) { |
5901 | wxPyLog *src; | |
5902 | wxLog *dest; | |
5903 | src = (wxPyLog *) ptr; | |
5904 | dest = (wxLog *) src; | |
5905 | return (void *) dest; | |
5906 | } | |
5907 | ||
5908 | #define new_wxPyLog() (new wxPyLog()) | |
5909 | static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5910 | PyObject * _resultobj; | |
5911 | wxPyLog * _result; | |
5912 | char *_kwnames[] = { NULL }; | |
5913 | char _ptemp[128]; | |
5914 | ||
5915 | self = self; | |
5916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames)) | |
5917 | return NULL; | |
5918 | { | |
4268f798 | 5919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5920 | _result = (wxPyLog *)new_wxPyLog(); |
76bfdc78 | 5921 | |
4268f798 RD |
5922 | wxPyEndAllowThreads(__tstate); |
5923 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5924 | } if (_result) { |
5925 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p"); | |
5926 | _resultobj = Py_BuildValue("s",_ptemp); | |
5927 | } else { | |
5928 | Py_INCREF(Py_None); | |
5929 | _resultobj = Py_None; | |
5930 | } | |
5931 | return _resultobj; | |
5932 | } | |
5933 | ||
0122b7e3 RD |
5934 | #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
5935 | static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
76bfdc78 RD |
5936 | PyObject * _resultobj; |
5937 | wxPyLog * _arg0; | |
5938 | PyObject * _arg1; | |
5939 | PyObject * _arg2; | |
5940 | PyObject * _argo0 = 0; | |
5941 | PyObject * _obj1 = 0; | |
5942 | PyObject * _obj2 = 0; | |
5943 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5944 | ||
5945 | self = self; | |
0122b7e3 | 5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
76bfdc78 RD |
5947 | return NULL; |
5948 | if (_argo0) { | |
5949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
0122b7e3 | 5951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p."); |
76bfdc78 RD |
5952 | return NULL; |
5953 | } | |
5954 | } | |
5955 | { | |
5956 | _arg1 = _obj1; | |
5957 | } | |
5958 | { | |
5959 | _arg2 = _obj2; | |
5960 | } | |
5961 | { | |
4268f798 | 5962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5963 | wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2); |
76bfdc78 | 5964 | |
4268f798 RD |
5965 | wxPyEndAllowThreads(__tstate); |
5966 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5967 | } Py_INCREF(Py_None); |
5968 | _resultobj = Py_None; | |
5969 | return _resultobj; | |
5970 | } | |
5971 | ||
5972 | static void wxPyLog_Destroy(wxPyLog *self) { delete self; } | |
5973 | static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5974 | PyObject * _resultobj; | |
5975 | wxPyLog * _arg0; | |
5976 | PyObject * _argo0 = 0; | |
5977 | char *_kwnames[] = { "self", NULL }; | |
5978 | ||
5979 | self = self; | |
5980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0)) | |
5981 | return NULL; | |
5982 | if (_argo0) { | |
5983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p."); | |
5986 | return NULL; | |
5987 | } | |
5988 | } | |
5989 | { | |
4268f798 | 5990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5991 | wxPyLog_Destroy(_arg0); |
76bfdc78 | 5992 | |
4268f798 RD |
5993 | wxPyEndAllowThreads(__tstate); |
5994 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5995 | } Py_INCREF(Py_None); |
5996 | _resultobj = Py_None; | |
5997 | return _resultobj; | |
5998 | } | |
5999 | ||
c368d904 RD |
6000 | static void *SwigwxProcessEventTowxEvent(void *ptr) { |
6001 | wxProcessEvent *src; | |
6002 | wxEvent *dest; | |
6003 | src = (wxProcessEvent *) ptr; | |
6004 | dest = (wxEvent *) src; | |
6005 | return (void *) dest; | |
6006 | } | |
6007 | ||
9416aa89 RD |
6008 | static void *SwigwxProcessEventTowxObject(void *ptr) { |
6009 | wxProcessEvent *src; | |
6010 | wxObject *dest; | |
6011 | src = (wxProcessEvent *) ptr; | |
6012 | dest = (wxObject *) src; | |
6013 | return (void *) dest; | |
6014 | } | |
6015 | ||
c368d904 RD |
6016 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) |
6017 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6018 | PyObject * _resultobj; | |
6019 | wxProcessEvent * _result; | |
6020 | int _arg0 = (int ) 0; | |
6021 | int _arg1 = (int ) 0; | |
6022 | int _arg2 = (int ) 0; | |
6023 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
6024 | char _ptemp[128]; | |
6025 | ||
6026 | self = self; | |
6027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
6028 | return NULL; | |
6029 | { | |
4268f798 | 6030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6031 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); |
c368d904 | 6032 | |
4268f798 RD |
6033 | wxPyEndAllowThreads(__tstate); |
6034 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6035 | } if (_result) { |
6036 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
6037 | _resultobj = Py_BuildValue("s",_ptemp); | |
6038 | } else { | |
6039 | Py_INCREF(Py_None); | |
6040 | _resultobj = Py_None; | |
6041 | } | |
6042 | return _resultobj; | |
6043 | } | |
6044 | ||
6045 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
6046 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6047 | PyObject * _resultobj; | |
6048 | int _result; | |
6049 | wxProcessEvent * _arg0; | |
6050 | PyObject * _argo0 = 0; | |
6051 | char *_kwnames[] = { "self", NULL }; | |
6052 | ||
6053 | self = self; | |
6054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
6055 | return NULL; | |
6056 | if (_argo0) { | |
6057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
6060 | return NULL; | |
6061 | } | |
6062 | } | |
6063 | { | |
4268f798 | 6064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6065 | _result = (int )wxProcessEvent_GetPid(_arg0); |
c368d904 | 6066 | |
4268f798 RD |
6067 | wxPyEndAllowThreads(__tstate); |
6068 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6069 | } _resultobj = Py_BuildValue("i",_result); |
6070 | return _resultobj; | |
6071 | } | |
6072 | ||
6073 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
6074 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6075 | PyObject * _resultobj; | |
6076 | int _result; | |
6077 | wxProcessEvent * _arg0; | |
6078 | PyObject * _argo0 = 0; | |
6079 | char *_kwnames[] = { "self", NULL }; | |
6080 | ||
6081 | self = self; | |
6082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
6083 | return NULL; | |
6084 | if (_argo0) { | |
6085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
6088 | return NULL; | |
6089 | } | |
6090 | } | |
6091 | { | |
4268f798 | 6092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6093 | _result = (int )wxProcessEvent_GetExitCode(_arg0); |
c368d904 | 6094 | |
4268f798 RD |
6095 | wxPyEndAllowThreads(__tstate); |
6096 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6097 | } _resultobj = Py_BuildValue("i",_result); |
6098 | return _resultobj; | |
6099 | } | |
6100 | ||
6101 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
6102 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6103 | PyObject * _resultobj; | |
6104 | int _result; | |
6105 | wxProcessEvent * _arg0; | |
6106 | int _arg1; | |
6107 | PyObject * _argo0 = 0; | |
6108 | char *_kwnames[] = { "self","m_pid", NULL }; | |
6109 | ||
6110 | self = self; | |
6111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
6112 | return NULL; | |
6113 | if (_argo0) { | |
6114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
6117 | return NULL; | |
6118 | } | |
6119 | } | |
6120 | { | |
4268f798 | 6121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6122 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); |
c368d904 | 6123 | |
4268f798 RD |
6124 | wxPyEndAllowThreads(__tstate); |
6125 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6126 | } _resultobj = Py_BuildValue("i",_result); |
6127 | return _resultobj; | |
6128 | } | |
6129 | ||
6130 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
6131 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6132 | PyObject * _resultobj; | |
6133 | int _result; | |
6134 | wxProcessEvent * _arg0; | |
6135 | PyObject * _argo0 = 0; | |
6136 | char *_kwnames[] = { "self", NULL }; | |
6137 | ||
6138 | self = self; | |
6139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
6140 | return NULL; | |
6141 | if (_argo0) { | |
6142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
6145 | return NULL; | |
6146 | } | |
6147 | } | |
6148 | { | |
4268f798 | 6149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6150 | _result = (int )wxProcessEvent_m_pid_get(_arg0); |
c368d904 | 6151 | |
4268f798 RD |
6152 | wxPyEndAllowThreads(__tstate); |
6153 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6154 | } _resultobj = Py_BuildValue("i",_result); |
6155 | return _resultobj; | |
6156 | } | |
6157 | ||
6158 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
6159 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6160 | PyObject * _resultobj; | |
6161 | int _result; | |
6162 | wxProcessEvent * _arg0; | |
6163 | int _arg1; | |
6164 | PyObject * _argo0 = 0; | |
6165 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
6166 | ||
6167 | self = self; | |
6168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
6169 | return NULL; | |
6170 | if (_argo0) { | |
6171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
6174 | return NULL; | |
6175 | } | |
6176 | } | |
6177 | { | |
4268f798 | 6178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6179 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); |
c368d904 | 6180 | |
4268f798 RD |
6181 | wxPyEndAllowThreads(__tstate); |
6182 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6183 | } _resultobj = Py_BuildValue("i",_result); |
6184 | return _resultobj; | |
6185 | } | |
6186 | ||
6187 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
6188 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6189 | PyObject * _resultobj; | |
6190 | int _result; | |
6191 | wxProcessEvent * _arg0; | |
6192 | PyObject * _argo0 = 0; | |
6193 | char *_kwnames[] = { "self", NULL }; | |
6194 | ||
6195 | self = self; | |
6196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
6197 | return NULL; | |
6198 | if (_argo0) { | |
6199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
6202 | return NULL; | |
6203 | } | |
6204 | } | |
6205 | { | |
4268f798 | 6206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6207 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); |
c368d904 | 6208 | |
4268f798 RD |
6209 | wxPyEndAllowThreads(__tstate); |
6210 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6211 | } _resultobj = Py_BuildValue("i",_result); |
6212 | return _resultobj; | |
6213 | } | |
6214 | ||
6215 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
6216 | wxPyProcess *src; | |
6217 | wxEvtHandler *dest; | |
6218 | src = (wxPyProcess *) ptr; | |
6219 | dest = (wxEvtHandler *) src; | |
6220 | return (void *) dest; | |
6221 | } | |
6222 | ||
9416aa89 RD |
6223 | static void *SwigwxPyProcessTowxObject(void *ptr) { |
6224 | wxPyProcess *src; | |
6225 | wxObject *dest; | |
6226 | src = (wxPyProcess *) ptr; | |
6227 | dest = (wxObject *) src; | |
6228 | return (void *) dest; | |
6229 | } | |
6230 | ||
814f509c RD |
6231 | static PyObject *_wrap_wxProcess_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { |
6232 | PyObject * _resultobj; | |
6233 | wxKillError _result; | |
6234 | int _arg0; | |
1883480f | 6235 | wxSignal _arg1 = (wxSignal ) (wxSIGTERM); |
814f509c RD |
6236 | char *_kwnames[] = { "pid","sig", NULL }; |
6237 | ||
6238 | self = self; | |
1883480f | 6239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|i:wxProcess_Kill",_kwnames,&_arg0,&_arg1)) |
814f509c | 6240 | return NULL; |
814f509c RD |
6241 | { |
6242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1883480f | 6243 | _result = (wxKillError )wxPyProcess::Kill(_arg0,_arg1); |
814f509c RD |
6244 | |
6245 | wxPyEndAllowThreads(__tstate); | |
6246 | if (PyErr_Occurred()) return NULL; | |
6247 | } _resultobj = Py_BuildValue("i",_result); | |
6248 | return _resultobj; | |
6249 | } | |
6250 | ||
6251 | static PyObject *_wrap_wxProcess_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6252 | PyObject * _resultobj; | |
6253 | bool _result; | |
6254 | int _arg0; | |
6255 | char *_kwnames[] = { "pid", NULL }; | |
6256 | ||
6257 | self = self; | |
6258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxProcess_Exists",_kwnames,&_arg0)) | |
6259 | return NULL; | |
6260 | { | |
6261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6262 | _result = (bool )wxPyProcess::Exists(_arg0); | |
6263 | ||
6264 | wxPyEndAllowThreads(__tstate); | |
6265 | if (PyErr_Occurred()) return NULL; | |
6266 | } _resultobj = Py_BuildValue("i",_result); | |
6267 | return _resultobj; | |
6268 | } | |
6269 | ||
6270 | static PyObject *_wrap_wxProcess_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6271 | PyObject * _resultobj; | |
6272 | wxPyProcess * _result; | |
6273 | wxString * _arg0; | |
e626d7c7 | 6274 | int _arg1 = (int ) wxEXEC_ASYNC; |
814f509c | 6275 | PyObject * _obj0 = 0; |
e626d7c7 | 6276 | char *_kwnames[] = { "cmd","flags", NULL }; |
814f509c RD |
6277 | char _ptemp[128]; |
6278 | ||
6279 | self = self; | |
e626d7c7 | 6280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxProcess_Open",_kwnames,&_obj0,&_arg1)) |
814f509c RD |
6281 | return NULL; |
6282 | { | |
6283 | _arg0 = wxString_in_helper(_obj0); | |
6284 | if (_arg0 == NULL) | |
6285 | return NULL; | |
6286 | } | |
6287 | { | |
6288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e626d7c7 | 6289 | _result = (wxPyProcess *)wxPyProcess::Open(*_arg0,_arg1); |
814f509c RD |
6290 | |
6291 | wxPyEndAllowThreads(__tstate); | |
6292 | if (PyErr_Occurred()) return NULL; | |
6293 | } if (_result) { | |
6294 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
6295 | _resultobj = Py_BuildValue("s",_ptemp); | |
6296 | } else { | |
6297 | Py_INCREF(Py_None); | |
6298 | _resultobj = Py_None; | |
6299 | } | |
6300 | { | |
6301 | if (_obj0) | |
6302 | delete _arg0; | |
6303 | } | |
6304 | return _resultobj; | |
6305 | } | |
6306 | ||
c368d904 RD |
6307 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) |
6308 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6309 | PyObject * _resultobj; | |
6310 | wxPyProcess * _result; | |
6311 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
6312 | int _arg1 = (int ) -1; | |
6313 | PyObject * _argo0 = 0; | |
6314 | char *_kwnames[] = { "parent","id", NULL }; | |
6315 | char _ptemp[128]; | |
6316 | ||
6317 | self = self; | |
6318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
6319 | return NULL; | |
6320 | if (_argo0) { | |
6321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
6323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
6324 | return NULL; | |
6325 | } | |
6326 | } | |
6327 | { | |
4268f798 | 6328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6329 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); |
c368d904 | 6330 | |
4268f798 RD |
6331 | wxPyEndAllowThreads(__tstate); |
6332 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6333 | } if (_result) { |
6334 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
6335 | _resultobj = Py_BuildValue("s",_ptemp); | |
6336 | } else { | |
6337 | Py_INCREF(Py_None); | |
6338 | _resultobj = Py_None; | |
6339 | } | |
6340 | return _resultobj; | |
6341 | } | |
6342 | ||
6343 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
6344 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6345 | PyObject * _resultobj; | |
6346 | wxPyProcess * _arg0; | |
6347 | PyObject * _argo0 = 0; | |
6348 | char *_kwnames[] = { "self", NULL }; | |
6349 | ||
6350 | self = self; | |
6351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
6352 | return NULL; | |
6353 | if (_argo0) { | |
6354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
6357 | return NULL; | |
6358 | } | |
6359 | } | |
6360 | { | |
4268f798 | 6361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6362 | wxPyProcess_Destroy(_arg0); |
c368d904 | 6363 | |
4268f798 RD |
6364 | wxPyEndAllowThreads(__tstate); |
6365 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6366 | } Py_INCREF(Py_None); |
6367 | _resultobj = Py_None; | |
6368 | return _resultobj; | |
6369 | } | |
6370 | ||
0122b7e3 RD |
6371 | #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6372 | static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c368d904 RD |
6373 | PyObject * _resultobj; |
6374 | wxPyProcess * _arg0; | |
6375 | PyObject * _arg1; | |
6376 | PyObject * _arg2; | |
6377 | PyObject * _argo0 = 0; | |
6378 | PyObject * _obj1 = 0; | |
6379 | PyObject * _obj2 = 0; | |
6380 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6381 | ||
6382 | self = self; | |
0122b7e3 | 6383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
c368d904 RD |
6384 | return NULL; |
6385 | if (_argo0) { | |
6386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
0122b7e3 | 6388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p."); |
c368d904 RD |
6389 | return NULL; |
6390 | } | |
6391 | } | |
6392 | { | |
6393 | _arg1 = _obj1; | |
6394 | } | |
6395 | { | |
6396 | _arg2 = _obj2; | |
6397 | } | |
6398 | { | |
4268f798 | 6399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6400 | wxProcess__setCallbackInfo(_arg0,_arg1,_arg2); |
c368d904 | 6401 | |
4268f798 RD |
6402 | wxPyEndAllowThreads(__tstate); |
6403 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6404 | } Py_INCREF(Py_None); |
6405 | _resultobj = Py_None; | |
6406 | return _resultobj; | |
6407 | } | |
6408 | ||
6409 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
6410 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6411 | PyObject * _resultobj; | |
6412 | wxPyProcess * _arg0; | |
6413 | int _arg1; | |
6414 | int _arg2; | |
6415 | PyObject * _argo0 = 0; | |
6416 | char *_kwnames[] = { "self","pid","status", NULL }; | |
6417 | ||
6418 | self = self; | |
6419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6420 | return NULL; | |
6421 | if (_argo0) { | |
6422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
6425 | return NULL; | |
6426 | } | |
6427 | } | |
6428 | { | |
4268f798 | 6429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6430 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); |
c368d904 | 6431 | |
4268f798 RD |
6432 | wxPyEndAllowThreads(__tstate); |
6433 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6434 | } Py_INCREF(Py_None); |
6435 | _resultobj = Py_None; | |
6436 | return _resultobj; | |
6437 | } | |
6438 | ||
6439 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
6440 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6441 | PyObject * _resultobj; | |
6442 | wxPyProcess * _arg0; | |
6443 | PyObject * _argo0 = 0; | |
6444 | char *_kwnames[] = { "self", NULL }; | |
6445 | ||
6446 | self = self; | |
6447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
6448 | return NULL; | |
6449 | if (_argo0) { | |
6450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
6453 | return NULL; | |
6454 | } | |
6455 | } | |
6456 | { | |
4268f798 | 6457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6458 | wxProcess_Redirect(_arg0); |
c368d904 | 6459 | |
4268f798 RD |
6460 | wxPyEndAllowThreads(__tstate); |
6461 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6462 | } Py_INCREF(Py_None); |
6463 | _resultobj = Py_None; | |
6464 | return _resultobj; | |
6465 | } | |
6466 | ||
6467 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
6468 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6469 | PyObject * _resultobj; | |
6470 | bool _result; | |
6471 | wxPyProcess * _arg0; | |
6472 | PyObject * _argo0 = 0; | |
6473 | char *_kwnames[] = { "self", NULL }; | |
6474 | ||
6475 | self = self; | |
6476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
6477 | return NULL; | |
6478 | if (_argo0) { | |
6479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
6482 | return NULL; | |
6483 | } | |
6484 | } | |
6485 | { | |
4268f798 | 6486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6487 | _result = (bool )wxProcess_IsRedirected(_arg0); |
c368d904 | 6488 | |
4268f798 RD |
6489 | wxPyEndAllowThreads(__tstate); |
6490 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6491 | } _resultobj = Py_BuildValue("i",_result); |
6492 | return _resultobj; | |
6493 | } | |
6494 | ||
6495 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
6496 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6497 | PyObject * _resultobj; | |
6498 | wxPyProcess * _arg0; | |
6499 | PyObject * _argo0 = 0; | |
6500 | char *_kwnames[] = { "self", NULL }; | |
6501 | ||
6502 | self = self; | |
6503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
6504 | return NULL; | |
6505 | if (_argo0) { | |
6506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
6509 | return NULL; | |
6510 | } | |
6511 | } | |
6512 | { | |
4268f798 | 6513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6514 | wxProcess_Detach(_arg0); |
c368d904 | 6515 | |
4268f798 RD |
6516 | wxPyEndAllowThreads(__tstate); |
6517 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6518 | } Py_INCREF(Py_None); |
6519 | _resultobj = Py_None; | |
6520 | return _resultobj; | |
6521 | } | |
6522 | ||
6523 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
6524 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6525 | PyObject * _resultobj; | |
6526 | wxInputStream * _result; | |
6527 | wxPyProcess * _arg0; | |
6528 | PyObject * _argo0 = 0; | |
6529 | char *_kwnames[] = { "self", NULL }; | |
6530 | ||
6531 | self = self; | |
6532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
6533 | return NULL; | |
6534 | if (_argo0) { | |
6535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
6538 | return NULL; | |
6539 | } | |
6540 | } | |
6541 | { | |
4268f798 | 6542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6543 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); |
c368d904 | 6544 | |
4268f798 RD |
6545 | wxPyEndAllowThreads(__tstate); |
6546 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6547 | }{ |
6548 | wxPyInputStream * _ptr = NULL; | |
6549 | ||
6550 | if (_result) { | |
6551 | _ptr = new wxPyInputStream(_result); | |
6552 | } | |
7e50db3f | 6553 | _resultobj = wxPyConstructObject(_ptr, wxT("wxInputStream"), TRUE); |
c368d904 RD |
6554 | } |
6555 | return _resultobj; | |
6556 | } | |
6557 | ||
6558 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
6559 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6560 | PyObject * _resultobj; | |
6561 | wxInputStream * _result; | |
6562 | wxPyProcess * _arg0; | |
6563 | PyObject * _argo0 = 0; | |
6564 | char *_kwnames[] = { "self", NULL }; | |
6565 | ||
6566 | self = self; | |
6567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
6568 | return NULL; | |
6569 | if (_argo0) { | |
6570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
6573 | return NULL; | |
6574 | } | |
6575 | } | |
6576 | { | |
4268f798 | 6577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6578 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); |
c368d904 | 6579 | |
4268f798 RD |
6580 | wxPyEndAllowThreads(__tstate); |
6581 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6582 | }{ |
6583 | wxPyInputStream * _ptr = NULL; | |
6584 | ||
6585 | if (_result) { | |
6586 | _ptr = new wxPyInputStream(_result); | |
6587 | } | |
7e50db3f | 6588 | _resultobj = wxPyConstructObject(_ptr, wxT("wxInputStream"), TRUE); |
c368d904 RD |
6589 | } |
6590 | return _resultobj; | |
6591 | } | |
6592 | ||
6593 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
6594 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6595 | PyObject * _resultobj; | |
6596 | wxOutputStream * _result; | |
6597 | wxPyProcess * _arg0; | |
6598 | PyObject * _argo0 = 0; | |
6599 | char *_kwnames[] = { "self", NULL }; | |
6600 | char _ptemp[128]; | |
6601 | ||
6602 | self = self; | |
6603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
6604 | return NULL; | |
6605 | if (_argo0) { | |
6606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
6609 | return NULL; | |
6610 | } | |
6611 | } | |
6612 | { | |
4268f798 | 6613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6614 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); |
c368d904 | 6615 | |
4268f798 RD |
6616 | wxPyEndAllowThreads(__tstate); |
6617 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6618 | } if (_result) { |
6619 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
6620 | _resultobj = Py_BuildValue("s",_ptemp); | |
6621 | } else { | |
6622 | Py_INCREF(Py_None); | |
6623 | _resultobj = Py_None; | |
6624 | } | |
6625 | return _resultobj; | |
6626 | } | |
6627 | ||
6628 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
6629 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6630 | PyObject * _resultobj; | |
6631 | wxPyProcess * _arg0; | |
6632 | PyObject * _argo0 = 0; | |
6633 | char *_kwnames[] = { "self", NULL }; | |
6634 | ||
6635 | self = self; | |
6636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
6637 | return NULL; | |
6638 | if (_argo0) { | |
6639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
6642 | return NULL; | |
6643 | } | |
6644 | } | |
6645 | { | |
4268f798 | 6646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6647 | wxProcess_CloseOutput(_arg0); |
c368d904 | 6648 | |
4268f798 RD |
6649 | wxPyEndAllowThreads(__tstate); |
6650 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6651 | } Py_INCREF(Py_None); |
6652 | _resultobj = Py_None; | |
6653 | return _resultobj; | |
6654 | } | |
6655 | ||
85260f24 RD |
6656 | #define wxProcess_IsInputOpened(_swigobj) (_swigobj->IsInputOpened()) |
6657 | static PyObject *_wrap_wxProcess_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6658 | PyObject * _resultobj; | |
6659 | bool _result; | |
6660 | wxPyProcess * _arg0; | |
6661 | PyObject * _argo0 = 0; | |
6662 | char *_kwnames[] = { "self", NULL }; | |
6663 | ||
6664 | self = self; | |
6665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsInputOpened",_kwnames,&_argo0)) | |
6666 | return NULL; | |
6667 | if (_argo0) { | |
6668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsInputOpened. Expected _wxPyProcess_p."); | |
6671 | return NULL; | |
6672 | } | |
6673 | } | |
6674 | { | |
6675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6676 | _result = (bool )wxProcess_IsInputOpened(_arg0); | |
6677 | ||
6678 | wxPyEndAllowThreads(__tstate); | |
6679 | if (PyErr_Occurred()) return NULL; | |
6680 | } _resultobj = Py_BuildValue("i",_result); | |
6681 | return _resultobj; | |
6682 | } | |
6683 | ||
6684 | #define wxProcess_IsInputAvailable(_swigobj) (_swigobj->IsInputAvailable()) | |
6685 | static PyObject *_wrap_wxProcess_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6686 | PyObject * _resultobj; | |
6687 | bool _result; | |
6688 | wxPyProcess * _arg0; | |
6689 | PyObject * _argo0 = 0; | |
6690 | char *_kwnames[] = { "self", NULL }; | |
6691 | ||
6692 | self = self; | |
6693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsInputAvailable",_kwnames,&_argo0)) | |
6694 | return NULL; | |
6695 | if (_argo0) { | |
6696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsInputAvailable. Expected _wxPyProcess_p."); | |
6699 | return NULL; | |
6700 | } | |
6701 | } | |
6702 | { | |
6703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6704 | _result = (bool )wxProcess_IsInputAvailable(_arg0); | |
6705 | ||
6706 | wxPyEndAllowThreads(__tstate); | |
6707 | if (PyErr_Occurred()) return NULL; | |
6708 | } _resultobj = Py_BuildValue("i",_result); | |
6709 | return _resultobj; | |
6710 | } | |
6711 | ||
6712 | #define wxProcess_IsErrorAvailable(_swigobj) (_swigobj->IsErrorAvailable()) | |
6713 | static PyObject *_wrap_wxProcess_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6714 | PyObject * _resultobj; | |
6715 | bool _result; | |
6716 | wxPyProcess * _arg0; | |
6717 | PyObject * _argo0 = 0; | |
6718 | char *_kwnames[] = { "self", NULL }; | |
6719 | ||
6720 | self = self; | |
6721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsErrorAvailable",_kwnames,&_argo0)) | |
6722 | return NULL; | |
6723 | if (_argo0) { | |
6724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsErrorAvailable. Expected _wxPyProcess_p."); | |
6727 | return NULL; | |
6728 | } | |
6729 | } | |
6730 | { | |
6731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6732 | _result = (bool )wxProcess_IsErrorAvailable(_arg0); | |
6733 | ||
6734 | wxPyEndAllowThreads(__tstate); | |
6735 | if (PyErr_Occurred()) return NULL; | |
6736 | } _resultobj = Py_BuildValue("i",_result); | |
6737 | return _resultobj; | |
6738 | } | |
6739 | ||
9416aa89 RD |
6740 | static void *SwigwxJoystickTowxObject(void *ptr) { |
6741 | wxJoystick *src; | |
6742 | wxObject *dest; | |
6743 | src = (wxJoystick *) ptr; | |
6744 | dest = (wxObject *) src; | |
6745 | return (void *) dest; | |
6746 | } | |
6747 | ||
185d7c3e RD |
6748 | #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0)) |
6749 | static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6750 | PyObject * _resultobj; | |
6751 | wxJoystick * _result; | |
3eb221f6 | 6752 | int _arg0 = (int ) (wxJOYSTICK1); |
185d7c3e RD |
6753 | char *_kwnames[] = { "joystick", NULL }; |
6754 | char _ptemp[128]; | |
6755 | ||
6756 | self = self; | |
6757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0)) | |
6758 | return NULL; | |
6759 | { | |
4268f798 | 6760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6761 | _result = (wxJoystick *)new_wxJoystick(_arg0); |
185d7c3e | 6762 | |
4268f798 RD |
6763 | wxPyEndAllowThreads(__tstate); |
6764 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6765 | } if (_result) { |
6766 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p"); | |
6767 | _resultobj = Py_BuildValue("s",_ptemp); | |
6768 | } else { | |
6769 | Py_INCREF(Py_None); | |
6770 | _resultobj = Py_None; | |
6771 | } | |
6772 | return _resultobj; | |
6773 | } | |
6774 | ||
ac346f50 RD |
6775 | #define delete_wxJoystick(_swigobj) (delete _swigobj) |
6776 | static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6777 | PyObject * _resultobj; | |
6778 | wxJoystick * _arg0; | |
6779 | PyObject * _argo0 = 0; | |
6780 | char *_kwnames[] = { "self", NULL }; | |
6781 | ||
6782 | self = self; | |
6783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0)) | |
6784 | return NULL; | |
6785 | if (_argo0) { | |
6786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p."); | |
6789 | return NULL; | |
6790 | } | |
6791 | } | |
6792 | { | |
4268f798 | 6793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6794 | delete_wxJoystick(_arg0); |
ac346f50 | 6795 | |
4268f798 RD |
6796 | wxPyEndAllowThreads(__tstate); |
6797 | if (PyErr_Occurred()) return NULL; | |
ac346f50 RD |
6798 | } Py_INCREF(Py_None); |
6799 | _resultobj = Py_None; | |
6800 | return _resultobj; | |
6801 | } | |
6802 | ||
185d7c3e RD |
6803 | #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition()) |
6804 | static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6805 | PyObject * _resultobj; | |
6806 | wxPoint * _result; | |
6807 | wxJoystick * _arg0; | |
6808 | PyObject * _argo0 = 0; | |
6809 | char *_kwnames[] = { "self", NULL }; | |
6810 | char _ptemp[128]; | |
6811 | ||
6812 | self = self; | |
6813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0)) | |
6814 | return NULL; | |
6815 | if (_argo0) { | |
6816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p."); | |
6819 | return NULL; | |
6820 | } | |
6821 | } | |
6822 | { | |
4268f798 | 6823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6824 | _result = new wxPoint (wxJoystick_GetPosition(_arg0)); |
185d7c3e | 6825 | |
4268f798 RD |
6826 | wxPyEndAllowThreads(__tstate); |
6827 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6828 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
6829 | _resultobj = Py_BuildValue("s",_ptemp); | |
6830 | return _resultobj; | |
6831 | } | |
6832 | ||
6833 | #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition()) | |
6834 | static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6835 | PyObject * _resultobj; | |
6836 | int _result; | |
6837 | wxJoystick * _arg0; | |
6838 | PyObject * _argo0 = 0; | |
6839 | char *_kwnames[] = { "self", NULL }; | |
6840 | ||
6841 | self = self; | |
6842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0)) | |
6843 | return NULL; | |
6844 | if (_argo0) { | |
6845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p."); | |
6848 | return NULL; | |
6849 | } | |
6850 | } | |
6851 | { | |
4268f798 | 6852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6853 | _result = (int )wxJoystick_GetZPosition(_arg0); |
185d7c3e | 6854 | |
4268f798 RD |
6855 | wxPyEndAllowThreads(__tstate); |
6856 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6857 | } _resultobj = Py_BuildValue("i",_result); |
6858 | return _resultobj; | |
6859 | } | |
6860 | ||
6861 | #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState()) | |
6862 | static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6863 | PyObject * _resultobj; | |
6864 | int _result; | |
6865 | wxJoystick * _arg0; | |
6866 | PyObject * _argo0 = 0; | |
6867 | char *_kwnames[] = { "self", NULL }; | |
6868 | ||
6869 | self = self; | |
6870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0)) | |
6871 | return NULL; | |
6872 | if (_argo0) { | |
6873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p."); | |
6876 | return NULL; | |
6877 | } | |
6878 | } | |
6879 | { | |
4268f798 | 6880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6881 | _result = (int )wxJoystick_GetButtonState(_arg0); |
185d7c3e | 6882 | |
4268f798 RD |
6883 | wxPyEndAllowThreads(__tstate); |
6884 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6885 | } _resultobj = Py_BuildValue("i",_result); |
6886 | return _resultobj; | |
6887 | } | |
6888 | ||
6889 | #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition()) | |
6890 | static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6891 | PyObject * _resultobj; | |
6892 | int _result; | |
6893 | wxJoystick * _arg0; | |
6894 | PyObject * _argo0 = 0; | |
6895 | char *_kwnames[] = { "self", NULL }; | |
6896 | ||
6897 | self = self; | |
6898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0)) | |
6899 | return NULL; | |
6900 | if (_argo0) { | |
6901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p."); | |
6904 | return NULL; | |
6905 | } | |
6906 | } | |
6907 | { | |
4268f798 | 6908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6909 | _result = (int )wxJoystick_GetPOVPosition(_arg0); |
185d7c3e | 6910 | |
4268f798 RD |
6911 | wxPyEndAllowThreads(__tstate); |
6912 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6913 | } _resultobj = Py_BuildValue("i",_result); |
6914 | return _resultobj; | |
6915 | } | |
6916 | ||
6917 | #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition()) | |
6918 | static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6919 | PyObject * _resultobj; | |
6920 | int _result; | |
6921 | wxJoystick * _arg0; | |
6922 | PyObject * _argo0 = 0; | |
6923 | char *_kwnames[] = { "self", NULL }; | |
6924 | ||
6925 | self = self; | |
6926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0)) | |
6927 | return NULL; | |
6928 | if (_argo0) { | |
6929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p."); | |
6932 | return NULL; | |
6933 | } | |
6934 | } | |
6935 | { | |
4268f798 | 6936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6937 | _result = (int )wxJoystick_GetPOVCTSPosition(_arg0); |
185d7c3e | 6938 | |
4268f798 RD |
6939 | wxPyEndAllowThreads(__tstate); |
6940 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6941 | } _resultobj = Py_BuildValue("i",_result); |
6942 | return _resultobj; | |
6943 | } | |
6944 | ||
6945 | #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition()) | |
6946 | static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6947 | PyObject * _resultobj; | |
6948 | int _result; | |
6949 | wxJoystick * _arg0; | |
6950 | PyObject * _argo0 = 0; | |
6951 | char *_kwnames[] = { "self", NULL }; | |
6952 | ||
6953 | self = self; | |
6954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0)) | |
6955 | return NULL; | |
6956 | if (_argo0) { | |
6957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p."); | |
6960 | return NULL; | |
6961 | } | |
6962 | } | |
6963 | { | |
4268f798 | 6964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6965 | _result = (int )wxJoystick_GetRudderPosition(_arg0); |
185d7c3e | 6966 | |
4268f798 RD |
6967 | wxPyEndAllowThreads(__tstate); |
6968 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6969 | } _resultobj = Py_BuildValue("i",_result); |
6970 | return _resultobj; | |
6971 | } | |
6972 | ||
6973 | #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition()) | |
6974 | static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6975 | PyObject * _resultobj; | |
6976 | int _result; | |
6977 | wxJoystick * _arg0; | |
6978 | PyObject * _argo0 = 0; | |
6979 | char *_kwnames[] = { "self", NULL }; | |
6980 | ||
6981 | self = self; | |
6982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0)) | |
6983 | return NULL; | |
6984 | if (_argo0) { | |
6985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p."); | |
6988 | return NULL; | |
6989 | } | |
6990 | } | |
6991 | { | |
4268f798 | 6992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6993 | _result = (int )wxJoystick_GetUPosition(_arg0); |
185d7c3e | 6994 | |
4268f798 RD |
6995 | wxPyEndAllowThreads(__tstate); |
6996 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6997 | } _resultobj = Py_BuildValue("i",_result); |
6998 | return _resultobj; | |
6999 | } | |
7000 | ||
7001 | #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition()) | |
7002 | static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7003 | PyObject * _resultobj; | |
7004 | int _result; | |
7005 | wxJoystick * _arg0; | |
7006 | PyObject * _argo0 = 0; | |
7007 | char *_kwnames[] = { "self", NULL }; | |
7008 | ||
7009 | self = self; | |
7010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0)) | |
7011 | return NULL; | |
7012 | if (_argo0) { | |
7013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p."); | |
7016 | return NULL; | |
7017 | } | |
7018 | } | |
7019 | { | |
4268f798 | 7020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7021 | _result = (int )wxJoystick_GetVPosition(_arg0); |
185d7c3e | 7022 | |
4268f798 RD |
7023 | wxPyEndAllowThreads(__tstate); |
7024 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7025 | } _resultobj = Py_BuildValue("i",_result); |
7026 | return _resultobj; | |
7027 | } | |
7028 | ||
7029 | #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold()) | |
7030 | static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7031 | PyObject * _resultobj; | |
7032 | int _result; | |
7033 | wxJoystick * _arg0; | |
7034 | PyObject * _argo0 = 0; | |
7035 | char *_kwnames[] = { "self", NULL }; | |
7036 | ||
7037 | self = self; | |
7038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0)) | |
7039 | return NULL; | |
7040 | if (_argo0) { | |
7041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p."); | |
7044 | return NULL; | |
7045 | } | |
7046 | } | |
7047 | { | |
4268f798 | 7048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7049 | _result = (int )wxJoystick_GetMovementThreshold(_arg0); |
185d7c3e | 7050 | |
4268f798 RD |
7051 | wxPyEndAllowThreads(__tstate); |
7052 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7053 | } _resultobj = Py_BuildValue("i",_result); |
7054 | return _resultobj; | |
7055 | } | |
7056 | ||
7057 | #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0)) | |
7058 | static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7059 | PyObject * _resultobj; | |
7060 | wxJoystick * _arg0; | |
7061 | int _arg1; | |
7062 | PyObject * _argo0 = 0; | |
7063 | char *_kwnames[] = { "self","threshold", NULL }; | |
7064 | ||
7065 | self = self; | |
7066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1)) | |
7067 | return NULL; | |
7068 | if (_argo0) { | |
7069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p."); | |
7072 | return NULL; | |
7073 | } | |
7074 | } | |
7075 | { | |
4268f798 | 7076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7077 | wxJoystick_SetMovementThreshold(_arg0,_arg1); |
185d7c3e | 7078 | |
4268f798 RD |
7079 | wxPyEndAllowThreads(__tstate); |
7080 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7081 | } Py_INCREF(Py_None); |
7082 | _resultobj = Py_None; | |
7083 | return _resultobj; | |
7084 | } | |
7085 | ||
7086 | #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk()) | |
7087 | static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7088 | PyObject * _resultobj; | |
7089 | bool _result; | |
7090 | wxJoystick * _arg0; | |
7091 | PyObject * _argo0 = 0; | |
7092 | char *_kwnames[] = { "self", NULL }; | |
7093 | ||
7094 | self = self; | |
7095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0)) | |
7096 | return NULL; | |
7097 | if (_argo0) { | |
7098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p."); | |
7101 | return NULL; | |
7102 | } | |
7103 | } | |
7104 | { | |
4268f798 | 7105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7106 | _result = (bool )wxJoystick_IsOk(_arg0); |
185d7c3e | 7107 | |
4268f798 RD |
7108 | wxPyEndAllowThreads(__tstate); |
7109 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7110 | } _resultobj = Py_BuildValue("i",_result); |
7111 | return _resultobj; | |
7112 | } | |
7113 | ||
7114 | #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks()) | |
7115 | static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7116 | PyObject * _resultobj; | |
7117 | int _result; | |
7118 | wxJoystick * _arg0; | |
7119 | PyObject * _argo0 = 0; | |
7120 | char *_kwnames[] = { "self", NULL }; | |
7121 | ||
7122 | self = self; | |
7123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0)) | |
7124 | return NULL; | |
7125 | if (_argo0) { | |
7126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p."); | |
7129 | return NULL; | |
7130 | } | |
7131 | } | |
7132 | { | |
4268f798 | 7133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7134 | _result = (int )wxJoystick_GetNumberJoysticks(_arg0); |
185d7c3e | 7135 | |
4268f798 RD |
7136 | wxPyEndAllowThreads(__tstate); |
7137 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7138 | } _resultobj = Py_BuildValue("i",_result); |
7139 | return _resultobj; | |
7140 | } | |
7141 | ||
7142 | #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId()) | |
7143 | static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7144 | PyObject * _resultobj; | |
7145 | int _result; | |
7146 | wxJoystick * _arg0; | |
7147 | PyObject * _argo0 = 0; | |
7148 | char *_kwnames[] = { "self", NULL }; | |
7149 | ||
7150 | self = self; | |
7151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0)) | |
7152 | return NULL; | |
7153 | if (_argo0) { | |
7154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p."); | |
7157 | return NULL; | |
7158 | } | |
7159 | } | |
7160 | { | |
4268f798 | 7161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7162 | _result = (int )wxJoystick_GetManufacturerId(_arg0); |
185d7c3e | 7163 | |
4268f798 RD |
7164 | wxPyEndAllowThreads(__tstate); |
7165 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7166 | } _resultobj = Py_BuildValue("i",_result); |
7167 | return _resultobj; | |
7168 | } | |
7169 | ||
7170 | #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId()) | |
7171 | static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7172 | PyObject * _resultobj; | |
7173 | int _result; | |
7174 | wxJoystick * _arg0; | |
7175 | PyObject * _argo0 = 0; | |
7176 | char *_kwnames[] = { "self", NULL }; | |
7177 | ||
7178 | self = self; | |
7179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0)) | |
7180 | return NULL; | |
7181 | if (_argo0) { | |
7182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p."); | |
7185 | return NULL; | |
7186 | } | |
7187 | } | |
7188 | { | |
4268f798 | 7189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7190 | _result = (int )wxJoystick_GetProductId(_arg0); |
185d7c3e | 7191 | |
4268f798 RD |
7192 | wxPyEndAllowThreads(__tstate); |
7193 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7194 | } _resultobj = Py_BuildValue("i",_result); |
7195 | return _resultobj; | |
7196 | } | |
7197 | ||
7198 | #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName()) | |
7199 | static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7200 | PyObject * _resultobj; | |
7201 | wxString * _result; | |
7202 | wxJoystick * _arg0; | |
7203 | PyObject * _argo0 = 0; | |
7204 | char *_kwnames[] = { "self", NULL }; | |
7205 | ||
7206 | self = self; | |
7207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0)) | |
7208 | return NULL; | |
7209 | if (_argo0) { | |
7210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p."); | |
7213 | return NULL; | |
7214 | } | |
7215 | } | |
7216 | { | |
4268f798 | 7217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7218 | _result = new wxString (wxJoystick_GetProductName(_arg0)); |
185d7c3e | 7219 | |
4268f798 RD |
7220 | wxPyEndAllowThreads(__tstate); |
7221 | if (PyErr_Occurred()) return NULL; | |
185d7c3e | 7222 | }{ |
c8bc7bb8 | 7223 | #if wxUSE_UNICODE |
7e50db3f | 7224 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7225 | #else |
185d7c3e | 7226 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7227 | #endif |
185d7c3e RD |
7228 | } |
7229 | { | |
7230 | delete _result; | |
7231 | } | |
7232 | return _resultobj; | |
7233 | } | |
7234 | ||
7235 | #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin()) | |
7236 | static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7237 | PyObject * _resultobj; | |
7238 | int _result; | |
7239 | wxJoystick * _arg0; | |
7240 | PyObject * _argo0 = 0; | |
7241 | char *_kwnames[] = { "self", NULL }; | |
7242 | ||
7243 | self = self; | |
7244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0)) | |
7245 | return NULL; | |
7246 | if (_argo0) { | |
7247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p."); | |
7250 | return NULL; | |
7251 | } | |
7252 | } | |
7253 | { | |
4268f798 | 7254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7255 | _result = (int )wxJoystick_GetXMin(_arg0); |
185d7c3e | 7256 | |
4268f798 RD |
7257 | wxPyEndAllowThreads(__tstate); |
7258 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7259 | } _resultobj = Py_BuildValue("i",_result); |
7260 | return _resultobj; | |
7261 | } | |
7262 | ||
7263 | #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin()) | |
7264 | static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7265 | PyObject * _resultobj; | |
7266 | int _result; | |
7267 | wxJoystick * _arg0; | |
7268 | PyObject * _argo0 = 0; | |
7269 | char *_kwnames[] = { "self", NULL }; | |
7270 | ||
7271 | self = self; | |
7272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0)) | |
7273 | return NULL; | |
7274 | if (_argo0) { | |
7275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p."); | |
7278 | return NULL; | |
7279 | } | |
7280 | } | |
7281 | { | |
4268f798 | 7282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7283 | _result = (int )wxJoystick_GetYMin(_arg0); |
185d7c3e | 7284 | |
4268f798 RD |
7285 | wxPyEndAllowThreads(__tstate); |
7286 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7287 | } _resultobj = Py_BuildValue("i",_result); |
7288 | return _resultobj; | |
7289 | } | |
7290 | ||
7291 | #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin()) | |
7292 | static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7293 | PyObject * _resultobj; | |
7294 | int _result; | |
7295 | wxJoystick * _arg0; | |
7296 | PyObject * _argo0 = 0; | |
7297 | char *_kwnames[] = { "self", NULL }; | |
7298 | ||
7299 | self = self; | |
7300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0)) | |
7301 | return NULL; | |
7302 | if (_argo0) { | |
7303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p."); | |
7306 | return NULL; | |
7307 | } | |
7308 | } | |
7309 | { | |
4268f798 | 7310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7311 | _result = (int )wxJoystick_GetZMin(_arg0); |
185d7c3e | 7312 | |
4268f798 RD |
7313 | wxPyEndAllowThreads(__tstate); |
7314 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7315 | } _resultobj = Py_BuildValue("i",_result); |
7316 | return _resultobj; | |
7317 | } | |
7318 | ||
7319 | #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax()) | |
7320 | static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7321 | PyObject * _resultobj; | |
7322 | int _result; | |
7323 | wxJoystick * _arg0; | |
7324 | PyObject * _argo0 = 0; | |
7325 | char *_kwnames[] = { "self", NULL }; | |
7326 | ||
7327 | self = self; | |
7328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0)) | |
7329 | return NULL; | |
7330 | if (_argo0) { | |
7331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p."); | |
7334 | return NULL; | |
7335 | } | |
7336 | } | |
7337 | { | |
4268f798 | 7338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7339 | _result = (int )wxJoystick_GetXMax(_arg0); |
185d7c3e | 7340 | |
4268f798 RD |
7341 | wxPyEndAllowThreads(__tstate); |
7342 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7343 | } _resultobj = Py_BuildValue("i",_result); |
7344 | return _resultobj; | |
7345 | } | |
7346 | ||
7347 | #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax()) | |
7348 | static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7349 | PyObject * _resultobj; | |
7350 | int _result; | |
7351 | wxJoystick * _arg0; | |
7352 | PyObject * _argo0 = 0; | |
7353 | char *_kwnames[] = { "self", NULL }; | |
7354 | ||
7355 | self = self; | |
7356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0)) | |
7357 | return NULL; | |
7358 | if (_argo0) { | |
7359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p."); | |
7362 | return NULL; | |
7363 | } | |
7364 | } | |
7365 | { | |
4268f798 | 7366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7367 | _result = (int )wxJoystick_GetYMax(_arg0); |
185d7c3e | 7368 | |
4268f798 RD |
7369 | wxPyEndAllowThreads(__tstate); |
7370 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7371 | } _resultobj = Py_BuildValue("i",_result); |
7372 | return _resultobj; | |
7373 | } | |
7374 | ||
7375 | #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax()) | |
7376 | static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7377 | PyObject * _resultobj; | |
7378 | int _result; | |
7379 | wxJoystick * _arg0; | |
7380 | PyObject * _argo0 = 0; | |
7381 | char *_kwnames[] = { "self", NULL }; | |
7382 | ||
7383 | self = self; | |
7384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0)) | |
7385 | return NULL; | |
7386 | if (_argo0) { | |
7387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p."); | |
7390 | return NULL; | |
7391 | } | |
7392 | } | |
7393 | { | |
4268f798 | 7394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7395 | _result = (int )wxJoystick_GetZMax(_arg0); |
185d7c3e | 7396 | |
4268f798 RD |
7397 | wxPyEndAllowThreads(__tstate); |
7398 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7399 | } _resultobj = Py_BuildValue("i",_result); |
7400 | return _resultobj; | |
7401 | } | |
7402 | ||
7403 | #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons()) | |
7404 | static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7405 | PyObject * _resultobj; | |
7406 | int _result; | |
7407 | wxJoystick * _arg0; | |
7408 | PyObject * _argo0 = 0; | |
7409 | char *_kwnames[] = { "self", NULL }; | |
7410 | ||
7411 | self = self; | |
7412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0)) | |
7413 | return NULL; | |
7414 | if (_argo0) { | |
7415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p."); | |
7418 | return NULL; | |
7419 | } | |
7420 | } | |
7421 | { | |
4268f798 | 7422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7423 | _result = (int )wxJoystick_GetNumberButtons(_arg0); |
185d7c3e | 7424 | |
4268f798 RD |
7425 | wxPyEndAllowThreads(__tstate); |
7426 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7427 | } _resultobj = Py_BuildValue("i",_result); |
7428 | return _resultobj; | |
7429 | } | |
7430 | ||
7431 | #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes()) | |
7432 | static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7433 | PyObject * _resultobj; | |
7434 | int _result; | |
7435 | wxJoystick * _arg0; | |
7436 | PyObject * _argo0 = 0; | |
7437 | char *_kwnames[] = { "self", NULL }; | |
7438 | ||
7439 | self = self; | |
7440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0)) | |
7441 | return NULL; | |
7442 | if (_argo0) { | |
7443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p."); | |
7446 | return NULL; | |
7447 | } | |
7448 | } | |
7449 | { | |
4268f798 | 7450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7451 | _result = (int )wxJoystick_GetNumberAxes(_arg0); |
185d7c3e | 7452 | |
4268f798 RD |
7453 | wxPyEndAllowThreads(__tstate); |
7454 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7455 | } _resultobj = Py_BuildValue("i",_result); |
7456 | return _resultobj; | |
7457 | } | |
7458 | ||
7459 | #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons()) | |
7460 | static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7461 | PyObject * _resultobj; | |
7462 | int _result; | |
7463 | wxJoystick * _arg0; | |
7464 | PyObject * _argo0 = 0; | |
7465 | char *_kwnames[] = { "self", NULL }; | |
7466 | ||
7467 | self = self; | |
7468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0)) | |
7469 | return NULL; | |
7470 | if (_argo0) { | |
7471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p."); | |
7474 | return NULL; | |
7475 | } | |
7476 | } | |
7477 | { | |
4268f798 | 7478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7479 | _result = (int )wxJoystick_GetMaxButtons(_arg0); |
185d7c3e | 7480 | |
4268f798 RD |
7481 | wxPyEndAllowThreads(__tstate); |
7482 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7483 | } _resultobj = Py_BuildValue("i",_result); |
7484 | return _resultobj; | |
7485 | } | |
7486 | ||
7487 | #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes()) | |
7488 | static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7489 | PyObject * _resultobj; | |
7490 | int _result; | |
7491 | wxJoystick * _arg0; | |
7492 | PyObject * _argo0 = 0; | |
7493 | char *_kwnames[] = { "self", NULL }; | |
7494 | ||
7495 | self = self; | |
7496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0)) | |
7497 | return NULL; | |
7498 | if (_argo0) { | |
7499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p."); | |
7502 | return NULL; | |
7503 | } | |
7504 | } | |
7505 | { | |
4268f798 | 7506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7507 | _result = (int )wxJoystick_GetMaxAxes(_arg0); |
185d7c3e | 7508 | |
4268f798 RD |
7509 | wxPyEndAllowThreads(__tstate); |
7510 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7511 | } _resultobj = Py_BuildValue("i",_result); |
7512 | return _resultobj; | |
7513 | } | |
7514 | ||
7515 | #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin()) | |
7516 | static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7517 | PyObject * _resultobj; | |
7518 | int _result; | |
7519 | wxJoystick * _arg0; | |
7520 | PyObject * _argo0 = 0; | |
7521 | char *_kwnames[] = { "self", NULL }; | |
7522 | ||
7523 | self = self; | |
7524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0)) | |
7525 | return NULL; | |
7526 | if (_argo0) { | |
7527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p."); | |
7530 | return NULL; | |
7531 | } | |
7532 | } | |
7533 | { | |
4268f798 | 7534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7535 | _result = (int )wxJoystick_GetPollingMin(_arg0); |
185d7c3e | 7536 | |
4268f798 RD |
7537 | wxPyEndAllowThreads(__tstate); |
7538 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7539 | } _resultobj = Py_BuildValue("i",_result); |
7540 | return _resultobj; | |
7541 | } | |
7542 | ||
7543 | #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax()) | |
7544 | static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7545 | PyObject * _resultobj; | |
7546 | int _result; | |
7547 | wxJoystick * _arg0; | |
7548 | PyObject * _argo0 = 0; | |
7549 | char *_kwnames[] = { "self", NULL }; | |
7550 | ||
7551 | self = self; | |
7552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0)) | |
7553 | return NULL; | |
7554 | if (_argo0) { | |
7555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p."); | |
7558 | return NULL; | |
7559 | } | |
7560 | } | |
7561 | { | |
4268f798 | 7562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7563 | _result = (int )wxJoystick_GetPollingMax(_arg0); |
185d7c3e | 7564 | |
4268f798 RD |
7565 | wxPyEndAllowThreads(__tstate); |
7566 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7567 | } _resultobj = Py_BuildValue("i",_result); |
7568 | return _resultobj; | |
7569 | } | |
7570 | ||
7571 | #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin()) | |
7572 | static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7573 | PyObject * _resultobj; | |
7574 | int _result; | |
7575 | wxJoystick * _arg0; | |
7576 | PyObject * _argo0 = 0; | |
7577 | char *_kwnames[] = { "self", NULL }; | |
7578 | ||
7579 | self = self; | |
7580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0)) | |
7581 | return NULL; | |
7582 | if (_argo0) { | |
7583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p."); | |
7586 | return NULL; | |
7587 | } | |
7588 | } | |
7589 | { | |
4268f798 | 7590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7591 | _result = (int )wxJoystick_GetRudderMin(_arg0); |
185d7c3e | 7592 | |
4268f798 RD |
7593 | wxPyEndAllowThreads(__tstate); |
7594 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7595 | } _resultobj = Py_BuildValue("i",_result); |
7596 | return _resultobj; | |
7597 | } | |
7598 | ||
7599 | #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax()) | |
7600 | static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7601 | PyObject * _resultobj; | |
7602 | int _result; | |
7603 | wxJoystick * _arg0; | |
7604 | PyObject * _argo0 = 0; | |
7605 | char *_kwnames[] = { "self", NULL }; | |
7606 | ||
7607 | self = self; | |
7608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0)) | |
7609 | return NULL; | |
7610 | if (_argo0) { | |
7611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p."); | |
7614 | return NULL; | |
7615 | } | |
7616 | } | |
7617 | { | |
4268f798 | 7618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7619 | _result = (int )wxJoystick_GetRudderMax(_arg0); |
185d7c3e | 7620 | |
4268f798 RD |
7621 | wxPyEndAllowThreads(__tstate); |
7622 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7623 | } _resultobj = Py_BuildValue("i",_result); |
7624 | return _resultobj; | |
7625 | } | |
7626 | ||
7627 | #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin()) | |
7628 | static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7629 | PyObject * _resultobj; | |
7630 | int _result; | |
7631 | wxJoystick * _arg0; | |
7632 | PyObject * _argo0 = 0; | |
7633 | char *_kwnames[] = { "self", NULL }; | |
7634 | ||
7635 | self = self; | |
7636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0)) | |
7637 | return NULL; | |
7638 | if (_argo0) { | |
7639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p."); | |
7642 | return NULL; | |
7643 | } | |
7644 | } | |
7645 | { | |
4268f798 | 7646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7647 | _result = (int )wxJoystick_GetUMin(_arg0); |
185d7c3e | 7648 | |
4268f798 RD |
7649 | wxPyEndAllowThreads(__tstate); |
7650 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7651 | } _resultobj = Py_BuildValue("i",_result); |
7652 | return _resultobj; | |
7653 | } | |
7654 | ||
7655 | #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax()) | |
7656 | static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7657 | PyObject * _resultobj; | |
7658 | int _result; | |
7659 | wxJoystick * _arg0; | |
7660 | PyObject * _argo0 = 0; | |
7661 | char *_kwnames[] = { "self", NULL }; | |
7662 | ||
7663 | self = self; | |
7664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0)) | |
7665 | return NULL; | |
7666 | if (_argo0) { | |
7667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p."); | |
7670 | return NULL; | |
7671 | } | |
7672 | } | |
7673 | { | |
4268f798 | 7674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7675 | _result = (int )wxJoystick_GetUMax(_arg0); |
185d7c3e | 7676 | |
4268f798 RD |
7677 | wxPyEndAllowThreads(__tstate); |
7678 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7679 | } _resultobj = Py_BuildValue("i",_result); |
7680 | return _resultobj; | |
7681 | } | |
7682 | ||
7683 | #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin()) | |
7684 | static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7685 | PyObject * _resultobj; | |
7686 | int _result; | |
7687 | wxJoystick * _arg0; | |
7688 | PyObject * _argo0 = 0; | |
7689 | char *_kwnames[] = { "self", NULL }; | |
7690 | ||
7691 | self = self; | |
7692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0)) | |
7693 | return NULL; | |
7694 | if (_argo0) { | |
7695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p."); | |
7698 | return NULL; | |
7699 | } | |
7700 | } | |
7701 | { | |
4268f798 | 7702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7703 | _result = (int )wxJoystick_GetVMin(_arg0); |
185d7c3e | 7704 | |
4268f798 RD |
7705 | wxPyEndAllowThreads(__tstate); |
7706 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7707 | } _resultobj = Py_BuildValue("i",_result); |
7708 | return _resultobj; | |
7709 | } | |
7710 | ||
7711 | #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax()) | |
7712 | static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7713 | PyObject * _resultobj; | |
7714 | int _result; | |
7715 | wxJoystick * _arg0; | |
7716 | PyObject * _argo0 = 0; | |
7717 | char *_kwnames[] = { "self", NULL }; | |
7718 | ||
7719 | self = self; | |
7720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0)) | |
7721 | return NULL; | |
7722 | if (_argo0) { | |
7723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p."); | |
7726 | return NULL; | |
7727 | } | |
7728 | } | |
7729 | { | |
4268f798 | 7730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7731 | _result = (int )wxJoystick_GetVMax(_arg0); |
185d7c3e | 7732 | |
4268f798 RD |
7733 | wxPyEndAllowThreads(__tstate); |
7734 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7735 | } _resultobj = Py_BuildValue("i",_result); |
7736 | return _resultobj; | |
7737 | } | |
7738 | ||
7739 | #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder()) | |
7740 | static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7741 | PyObject * _resultobj; | |
7742 | bool _result; | |
7743 | wxJoystick * _arg0; | |
7744 | PyObject * _argo0 = 0; | |
7745 | char *_kwnames[] = { "self", NULL }; | |
7746 | ||
7747 | self = self; | |
7748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0)) | |
7749 | return NULL; | |
7750 | if (_argo0) { | |
7751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p."); | |
7754 | return NULL; | |
7755 | } | |
7756 | } | |
7757 | { | |
4268f798 | 7758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7759 | _result = (bool )wxJoystick_HasRudder(_arg0); |
185d7c3e | 7760 | |
4268f798 RD |
7761 | wxPyEndAllowThreads(__tstate); |
7762 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7763 | } _resultobj = Py_BuildValue("i",_result); |
7764 | return _resultobj; | |
7765 | } | |
7766 | ||
7767 | #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ()) | |
7768 | static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7769 | PyObject * _resultobj; | |
7770 | bool _result; | |
7771 | wxJoystick * _arg0; | |
7772 | PyObject * _argo0 = 0; | |
7773 | char *_kwnames[] = { "self", NULL }; | |
7774 | ||
7775 | self = self; | |
7776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0)) | |
7777 | return NULL; | |
7778 | if (_argo0) { | |
7779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p."); | |
7782 | return NULL; | |
7783 | } | |
7784 | } | |
7785 | { | |
4268f798 | 7786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7787 | _result = (bool )wxJoystick_HasZ(_arg0); |
185d7c3e | 7788 | |
4268f798 RD |
7789 | wxPyEndAllowThreads(__tstate); |
7790 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7791 | } _resultobj = Py_BuildValue("i",_result); |
7792 | return _resultobj; | |
7793 | } | |
7794 | ||
7795 | #define wxJoystick_HasU(_swigobj) (_swigobj->HasU()) | |
7796 | static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7797 | PyObject * _resultobj; | |
7798 | bool _result; | |
7799 | wxJoystick * _arg0; | |
7800 | PyObject * _argo0 = 0; | |
7801 | char *_kwnames[] = { "self", NULL }; | |
7802 | ||
7803 | self = self; | |
7804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0)) | |
7805 | return NULL; | |
7806 | if (_argo0) { | |
7807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p."); | |
7810 | return NULL; | |
7811 | } | |
7812 | } | |
7813 | { | |
4268f798 | 7814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7815 | _result = (bool )wxJoystick_HasU(_arg0); |
185d7c3e | 7816 | |
4268f798 RD |
7817 | wxPyEndAllowThreads(__tstate); |
7818 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7819 | } _resultobj = Py_BuildValue("i",_result); |
7820 | return _resultobj; | |
7821 | } | |
7822 | ||
7823 | #define wxJoystick_HasV(_swigobj) (_swigobj->HasV()) | |
7824 | static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7825 | PyObject * _resultobj; | |
7826 | bool _result; | |
7827 | wxJoystick * _arg0; | |
7828 | PyObject * _argo0 = 0; | |
7829 | char *_kwnames[] = { "self", NULL }; | |
7830 | ||
7831 | self = self; | |
7832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0)) | |
7833 | return NULL; | |
7834 | if (_argo0) { | |
7835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p."); | |
7838 | return NULL; | |
7839 | } | |
7840 | } | |
7841 | { | |
4268f798 | 7842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7843 | _result = (bool )wxJoystick_HasV(_arg0); |
185d7c3e | 7844 | |
4268f798 RD |
7845 | wxPyEndAllowThreads(__tstate); |
7846 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7847 | } _resultobj = Py_BuildValue("i",_result); |
7848 | return _resultobj; | |
7849 | } | |
7850 | ||
7851 | #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV()) | |
7852 | static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7853 | PyObject * _resultobj; | |
7854 | bool _result; | |
7855 | wxJoystick * _arg0; | |
7856 | PyObject * _argo0 = 0; | |
7857 | char *_kwnames[] = { "self", NULL }; | |
7858 | ||
7859 | self = self; | |
7860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0)) | |
7861 | return NULL; | |
7862 | if (_argo0) { | |
7863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p."); | |
7866 | return NULL; | |
7867 | } | |
7868 | } | |
7869 | { | |
4268f798 | 7870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7871 | _result = (bool )wxJoystick_HasPOV(_arg0); |
185d7c3e | 7872 | |
4268f798 RD |
7873 | wxPyEndAllowThreads(__tstate); |
7874 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7875 | } _resultobj = Py_BuildValue("i",_result); |
7876 | return _resultobj; | |
7877 | } | |
7878 | ||
7879 | #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir()) | |
7880 | static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7881 | PyObject * _resultobj; | |
7882 | bool _result; | |
7883 | wxJoystick * _arg0; | |
7884 | PyObject * _argo0 = 0; | |
7885 | char *_kwnames[] = { "self", NULL }; | |
7886 | ||
7887 | self = self; | |
7888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0)) | |
7889 | return NULL; | |
7890 | if (_argo0) { | |
7891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p."); | |
7894 | return NULL; | |
7895 | } | |
7896 | } | |
7897 | { | |
4268f798 | 7898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7899 | _result = (bool )wxJoystick_HasPOV4Dir(_arg0); |
185d7c3e | 7900 | |
4268f798 RD |
7901 | wxPyEndAllowThreads(__tstate); |
7902 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7903 | } _resultobj = Py_BuildValue("i",_result); |
7904 | return _resultobj; | |
7905 | } | |
7906 | ||
7907 | #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS()) | |
7908 | static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7909 | PyObject * _resultobj; | |
7910 | bool _result; | |
7911 | wxJoystick * _arg0; | |
7912 | PyObject * _argo0 = 0; | |
7913 | char *_kwnames[] = { "self", NULL }; | |
7914 | ||
7915 | self = self; | |
7916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0)) | |
7917 | return NULL; | |
7918 | if (_argo0) { | |
7919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p."); | |
7922 | return NULL; | |
7923 | } | |
7924 | } | |
7925 | { | |
4268f798 | 7926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7927 | _result = (bool )wxJoystick_HasPOVCTS(_arg0); |
185d7c3e | 7928 | |
4268f798 RD |
7929 | wxPyEndAllowThreads(__tstate); |
7930 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7931 | } _resultobj = Py_BuildValue("i",_result); |
7932 | return _resultobj; | |
7933 | } | |
7934 | ||
7935 | #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1)) | |
7936 | static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7937 | PyObject * _resultobj; | |
7938 | bool _result; | |
7939 | wxJoystick * _arg0; | |
7940 | wxWindow * _arg1; | |
7941 | int _arg2 = (int ) 0; | |
7942 | PyObject * _argo0 = 0; | |
7943 | PyObject * _argo1 = 0; | |
7944 | char *_kwnames[] = { "self","win","pollingFreq", NULL }; | |
7945 | ||
7946 | self = self; | |
7947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7948 | return NULL; | |
7949 | if (_argo0) { | |
7950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p."); | |
7953 | return NULL; | |
7954 | } | |
7955 | } | |
7956 | if (_argo1) { | |
7957 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7958 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p."); | |
7960 | return NULL; | |
7961 | } | |
7962 | } | |
7963 | { | |
4268f798 | 7964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7965 | _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2); |
185d7c3e | 7966 | |
4268f798 RD |
7967 | wxPyEndAllowThreads(__tstate); |
7968 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7969 | } _resultobj = Py_BuildValue("i",_result); |
7970 | return _resultobj; | |
7971 | } | |
7972 | ||
7973 | #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture()) | |
7974 | static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7975 | PyObject * _resultobj; | |
7976 | bool _result; | |
7977 | wxJoystick * _arg0; | |
7978 | PyObject * _argo0 = 0; | |
7979 | char *_kwnames[] = { "self", NULL }; | |
7980 | ||
7981 | self = self; | |
7982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0)) | |
7983 | return NULL; | |
7984 | if (_argo0) { | |
7985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p."); | |
7988 | return NULL; | |
7989 | } | |
7990 | } | |
7991 | { | |
4268f798 | 7992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7993 | _result = (bool )wxJoystick_ReleaseCapture(_arg0); |
185d7c3e | 7994 | |
4268f798 RD |
7995 | wxPyEndAllowThreads(__tstate); |
7996 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7997 | } _resultobj = Py_BuildValue("i",_result); |
7998 | return _resultobj; | |
7999 | } | |
8000 | ||
493f1553 RD |
8001 | static void *SwigwxWaveTowxObject(void *ptr) { |
8002 | wxWave *src; | |
8003 | wxObject *dest; | |
8004 | src = (wxWave *) ptr; | |
8005 | dest = (wxObject *) src; | |
8006 | return (void *) dest; | |
8007 | } | |
8008 | ||
8009 | #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1)) | |
8010 | static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8011 | PyObject * _resultobj; | |
8012 | wxWave * _result; | |
8013 | wxString * _arg0; | |
8014 | bool _arg1 = (bool ) FALSE; | |
8015 | PyObject * _obj0 = 0; | |
8016 | int tempbool1 = (int) FALSE; | |
8017 | char *_kwnames[] = { "fileName","isResource", NULL }; | |
8018 | char _ptemp[128]; | |
8019 | ||
8020 | self = self; | |
8021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1)) | |
8022 | return NULL; | |
8023 | { | |
c8bc7bb8 RD |
8024 | _arg0 = wxString_in_helper(_obj0); |
8025 | if (_arg0 == NULL) | |
493f1553 | 8026 | return NULL; |
493f1553 RD |
8027 | } |
8028 | _arg1 = (bool ) tempbool1; | |
8029 | { | |
4268f798 | 8030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8031 | _result = (wxWave *)new_wxWave(*_arg0,_arg1); |
493f1553 | 8032 | |
4268f798 RD |
8033 | wxPyEndAllowThreads(__tstate); |
8034 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
8035 | } if (_result) { |
8036 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
8037 | _resultobj = Py_BuildValue("s",_ptemp); | |
8038 | } else { | |
8039 | Py_INCREF(Py_None); | |
8040 | _resultobj = Py_None; | |
8041 | } | |
8042 | { | |
8043 | if (_obj0) | |
8044 | delete _arg0; | |
8045 | } | |
8046 | return _resultobj; | |
8047 | } | |
8048 | ||
8049 | #define delete_wxWave(_swigobj) (delete _swigobj) | |
8050 | static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8051 | PyObject * _resultobj; | |
8052 | wxWave * _arg0; | |
8053 | PyObject * _argo0 = 0; | |
8054 | char *_kwnames[] = { "self", NULL }; | |
8055 | ||
8056 | self = self; | |
8057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0)) | |
8058 | return NULL; | |
8059 | if (_argo0) { | |
8060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
8062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p."); | |
8063 | return NULL; | |
8064 | } | |
8065 | } | |
8066 | { | |
4268f798 | 8067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8068 | delete_wxWave(_arg0); |
493f1553 | 8069 | |
4268f798 RD |
8070 | wxPyEndAllowThreads(__tstate); |
8071 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
8072 | } Py_INCREF(Py_None); |
8073 | _resultobj = Py_None; | |
8074 | return _resultobj; | |
8075 | } | |
8076 | ||
8077 | #define wxWave_IsOk(_swigobj) (_swigobj->IsOk()) | |
8078 | static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8079 | PyObject * _resultobj; | |
8080 | bool _result; | |
8081 | wxWave * _arg0; | |
8082 | PyObject * _argo0 = 0; | |
8083 | char *_kwnames[] = { "self", NULL }; | |
8084 | ||
8085 | self = self; | |
8086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0)) | |
8087 | return NULL; | |
8088 | if (_argo0) { | |
8089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
8091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p."); | |
8092 | return NULL; | |
8093 | } | |
8094 | } | |
8095 | { | |
4268f798 | 8096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8097 | _result = (bool )wxWave_IsOk(_arg0); |
493f1553 | 8098 | |
4268f798 RD |
8099 | wxPyEndAllowThreads(__tstate); |
8100 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
8101 | } _resultobj = Py_BuildValue("i",_result); |
8102 | return _resultobj; | |
8103 | } | |
8104 | ||
8105 | #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1)) | |
8106 | static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8107 | PyObject * _resultobj; | |
8108 | bool _result; | |
8109 | wxWave * _arg0; | |
8110 | bool _arg1 = (bool ) TRUE; | |
8111 | bool _arg2 = (bool ) FALSE; | |
8112 | PyObject * _argo0 = 0; | |
8113 | int tempbool1 = (int) TRUE; | |
8114 | int tempbool2 = (int) FALSE; | |
8115 | char *_kwnames[] = { "self","async","looped", NULL }; | |
8116 | ||
8117 | self = self; | |
8118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
8119 | return NULL; | |
8120 | if (_argo0) { | |
8121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
8123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p."); | |
8124 | return NULL; | |
8125 | } | |
8126 | } | |
8127 | _arg1 = (bool ) tempbool1; | |
8128 | _arg2 = (bool ) tempbool2; | |
8129 | { | |
4268f798 | 8130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8131 | _result = (bool )wxWave_Play(_arg0,_arg1,_arg2); |
493f1553 | 8132 | |
4268f798 RD |
8133 | wxPyEndAllowThreads(__tstate); |
8134 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
8135 | } _resultobj = Py_BuildValue("i",_result); |
8136 | return _resultobj; | |
8137 | } | |
8138 | ||
b37c7e1d RD |
8139 | #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8140 | static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8141 | PyObject * _resultobj; | |
8142 | wxFileTypeInfo * _result; | |
7e50db3f RD |
8143 | wxString * _arg0; |
8144 | wxString * _arg1; | |
8145 | wxString * _arg2; | |
8146 | wxString * _arg3; | |
8147 | PyObject * _obj0 = 0; | |
8148 | PyObject * _obj1 = 0; | |
8149 | PyObject * _obj2 = 0; | |
8150 | PyObject * _obj3 = 0; | |
b37c7e1d RD |
8151 | char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL }; |
8152 | char _ptemp[128]; | |
8153 | ||
8154 | self = self; | |
7e50db3f | 8155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:new_wxFileTypeInfo",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3)) |
b37c7e1d | 8156 | return NULL; |
7e50db3f RD |
8157 | { |
8158 | _arg0 = wxString_in_helper(_obj0); | |
8159 | if (_arg0 == NULL) | |
8160 | return NULL; | |
8161 | } | |
8162 | { | |
8163 | _arg1 = wxString_in_helper(_obj1); | |
8164 | if (_arg1 == NULL) | |
8165 | return NULL; | |
8166 | } | |
8167 | { | |
8168 | _arg2 = wxString_in_helper(_obj2); | |
8169 | if (_arg2 == NULL) | |
8170 | return NULL; | |
8171 | } | |
8172 | { | |
8173 | _arg3 = wxString_in_helper(_obj3); | |
8174 | if (_arg3 == NULL) | |
8175 | return NULL; | |
8176 | } | |
b37c7e1d | 8177 | { |
4268f798 | 8178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 8179 | _result = (wxFileTypeInfo *)new_wxFileTypeInfo(*_arg0,*_arg1,*_arg2,*_arg3); |
b37c7e1d | 8180 | |
4268f798 RD |
8181 | wxPyEndAllowThreads(__tstate); |
8182 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8183 | } if (_result) { |
8184 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
8185 | _resultobj = Py_BuildValue("s",_ptemp); | |
8186 | } else { | |
8187 | Py_INCREF(Py_None); | |
8188 | _resultobj = Py_None; | |
8189 | } | |
7e50db3f RD |
8190 | { |
8191 | if (_obj0) | |
8192 | delete _arg0; | |
8193 | } | |
8194 | { | |
8195 | if (_obj1) | |
8196 | delete _arg1; | |
8197 | } | |
8198 | { | |
8199 | if (_obj2) | |
8200 | delete _arg2; | |
8201 | } | |
8202 | { | |
8203 | if (_obj3) | |
8204 | delete _arg3; | |
8205 | } | |
b37c7e1d RD |
8206 | return _resultobj; |
8207 | } | |
8208 | ||
8209 | #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0)) | |
8210 | static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8211 | PyObject * _resultobj; | |
8212 | wxFileTypeInfo * _result; | |
8213 | wxArrayString * _arg0; | |
8214 | PyObject * _obj0 = 0; | |
8215 | char *_kwnames[] = { "sArray", NULL }; | |
8216 | char _ptemp[128]; | |
8217 | ||
8218 | self = self; | |
8219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0)) | |
8220 | return NULL; | |
8221 | { | |
8222 | if (! PySequence_Check(_obj0)) { | |
8223 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8224 | return NULL; | |
8225 | } | |
8226 | _arg0 = new wxArrayString; | |
8227 | int i, len=PySequence_Length(_obj0); | |
8228 | for (i=0; i<len; i++) { | |
8229 | PyObject* item = PySequence_GetItem(_obj0, i); | |
c8bc7bb8 RD |
8230 | #if wxUSE_UNICODE |
8231 | PyObject* str = PyObject_Unicode(item); | |
c8bc7bb8 | 8232 | #else |
b37c7e1d | 8233 | PyObject* str = PyObject_Str(item); |
c8bc7bb8 | 8234 | #endif |
7e50db3f | 8235 | _arg0->Add(Py2wxString(str)); |
b37c7e1d RD |
8236 | Py_DECREF(item); |
8237 | Py_DECREF(str); | |
8238 | } | |
8239 | } | |
8240 | { | |
4268f798 | 8241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8242 | _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0); |
b37c7e1d | 8243 | |
4268f798 RD |
8244 | wxPyEndAllowThreads(__tstate); |
8245 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8246 | } if (_result) { |
8247 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
8248 | _resultobj = Py_BuildValue("s",_ptemp); | |
8249 | } else { | |
8250 | Py_INCREF(Py_None); | |
8251 | _resultobj = Py_None; | |
8252 | } | |
8253 | { | |
8254 | if (_obj0) | |
8255 | delete _arg0; | |
8256 | } | |
8257 | return _resultobj; | |
8258 | } | |
8259 | ||
8260 | #define new_wxNullFileTypeInfo() (new wxFileTypeInfo()) | |
8261 | static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8262 | PyObject * _resultobj; | |
8263 | wxFileTypeInfo * _result; | |
8264 | char *_kwnames[] = { NULL }; | |
8265 | char _ptemp[128]; | |
8266 | ||
8267 | self = self; | |
8268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames)) | |
8269 | return NULL; | |
8270 | { | |
4268f798 | 8271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8272 | _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo(); |
b37c7e1d | 8273 | |
4268f798 RD |
8274 | wxPyEndAllowThreads(__tstate); |
8275 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8276 | } if (_result) { |
8277 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
8278 | _resultobj = Py_BuildValue("s",_ptemp); | |
8279 | } else { | |
8280 | Py_INCREF(Py_None); | |
8281 | _resultobj = Py_None; | |
8282 | } | |
8283 | return _resultobj; | |
8284 | } | |
8285 | ||
8286 | #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid()) | |
8287 | static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8288 | PyObject * _resultobj; | |
8289 | bool _result; | |
8290 | wxFileTypeInfo * _arg0; | |
8291 | PyObject * _argo0 = 0; | |
8292 | char *_kwnames[] = { "self", NULL }; | |
8293 | ||
8294 | self = self; | |
8295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0)) | |
8296 | return NULL; | |
8297 | if (_argo0) { | |
8298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p."); | |
8301 | return NULL; | |
8302 | } | |
8303 | } | |
8304 | { | |
4268f798 | 8305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8306 | _result = (bool )wxFileTypeInfo_IsValid(_arg0); |
b37c7e1d | 8307 | |
4268f798 RD |
8308 | wxPyEndAllowThreads(__tstate); |
8309 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8310 | } _resultobj = Py_BuildValue("i",_result); |
8311 | return _resultobj; | |
8312 | } | |
8313 | ||
8314 | #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1)) | |
8315 | static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8316 | PyObject * _resultobj; | |
8317 | wxFileTypeInfo * _arg0; | |
8318 | wxString * _arg1; | |
8319 | int _arg2 = (int ) 0; | |
8320 | PyObject * _argo0 = 0; | |
8321 | PyObject * _obj1 = 0; | |
8322 | char *_kwnames[] = { "self","iconFile","iconIndex", NULL }; | |
8323 | ||
8324 | self = self; | |
8325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
8326 | return NULL; | |
8327 | if (_argo0) { | |
8328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p."); | |
8331 | return NULL; | |
8332 | } | |
8333 | } | |
8334 | { | |
c8bc7bb8 RD |
8335 | _arg1 = wxString_in_helper(_obj1); |
8336 | if (_arg1 == NULL) | |
b37c7e1d | 8337 | return NULL; |
b37c7e1d RD |
8338 | } |
8339 | { | |
4268f798 | 8340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8341 | wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 8342 | |
4268f798 RD |
8343 | wxPyEndAllowThreads(__tstate); |
8344 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8345 | } Py_INCREF(Py_None); |
8346 | _resultobj = Py_None; | |
8347 | { | |
8348 | if (_obj1) | |
8349 | delete _arg1; | |
8350 | } | |
8351 | return _resultobj; | |
8352 | } | |
8353 | ||
8354 | #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0)) | |
8355 | static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8356 | PyObject * _resultobj; | |
8357 | wxFileTypeInfo * _arg0; | |
8358 | wxString * _arg1; | |
8359 | PyObject * _argo0 = 0; | |
8360 | PyObject * _obj1 = 0; | |
8361 | char *_kwnames[] = { "self","shortDesc", NULL }; | |
8362 | ||
8363 | self = self; | |
8364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1)) | |
8365 | return NULL; | |
8366 | if (_argo0) { | |
8367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p."); | |
8370 | return NULL; | |
8371 | } | |
8372 | } | |
8373 | { | |
c8bc7bb8 RD |
8374 | _arg1 = wxString_in_helper(_obj1); |
8375 | if (_arg1 == NULL) | |
b37c7e1d | 8376 | return NULL; |
b37c7e1d RD |
8377 | } |
8378 | { | |
4268f798 | 8379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8380 | wxFileTypeInfo_SetShortDesc(_arg0,*_arg1); |
b37c7e1d | 8381 | |
4268f798 RD |
8382 | wxPyEndAllowThreads(__tstate); |
8383 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8384 | } Py_INCREF(Py_None); |
8385 | _resultobj = Py_None; | |
8386 | { | |
8387 | if (_obj1) | |
8388 | delete _arg1; | |
8389 | } | |
8390 | return _resultobj; | |
8391 | } | |
8392 | ||
8393 | #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
8394 | static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8395 | PyObject * _resultobj; | |
8396 | wxString * _result; | |
8397 | wxFileTypeInfo * _arg0; | |
8398 | PyObject * _argo0 = 0; | |
8399 | char *_kwnames[] = { "self", NULL }; | |
8400 | ||
8401 | self = self; | |
8402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0)) | |
8403 | return NULL; | |
8404 | if (_argo0) { | |
8405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p."); | |
8408 | return NULL; | |
8409 | } | |
8410 | } | |
8411 | { | |
4268f798 | 8412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8413 | const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0); |
b37c7e1d RD |
8414 | _result = (wxString *) &_result_ref; |
8415 | ||
4268f798 RD |
8416 | wxPyEndAllowThreads(__tstate); |
8417 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8418 | }{ |
c8bc7bb8 | 8419 | #if wxUSE_UNICODE |
7e50db3f | 8420 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8421 | #else |
b37c7e1d | 8422 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8423 | #endif |
b37c7e1d RD |
8424 | } |
8425 | return _resultobj; | |
8426 | } | |
8427 | ||
8428 | #define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand()) | |
8429 | static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8430 | PyObject * _resultobj; | |
8431 | wxString * _result; | |
8432 | wxFileTypeInfo * _arg0; | |
8433 | PyObject * _argo0 = 0; | |
8434 | char *_kwnames[] = { "self", NULL }; | |
8435 | ||
8436 | self = self; | |
8437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0)) | |
8438 | return NULL; | |
8439 | if (_argo0) { | |
8440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p."); | |
8443 | return NULL; | |
8444 | } | |
8445 | } | |
8446 | { | |
4268f798 | 8447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8448 | const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0); |
b37c7e1d RD |
8449 | _result = (wxString *) &_result_ref; |
8450 | ||
4268f798 RD |
8451 | wxPyEndAllowThreads(__tstate); |
8452 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8453 | }{ |
c8bc7bb8 | 8454 | #if wxUSE_UNICODE |
7e50db3f | 8455 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8456 | #else |
b37c7e1d | 8457 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8458 | #endif |
b37c7e1d RD |
8459 | } |
8460 | return _resultobj; | |
8461 | } | |
8462 | ||
8463 | #define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand()) | |
8464 | static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8465 | PyObject * _resultobj; | |
8466 | wxString * _result; | |
8467 | wxFileTypeInfo * _arg0; | |
8468 | PyObject * _argo0 = 0; | |
8469 | char *_kwnames[] = { "self", NULL }; | |
8470 | ||
8471 | self = self; | |
8472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0)) | |
8473 | return NULL; | |
8474 | if (_argo0) { | |
8475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p."); | |
8478 | return NULL; | |
8479 | } | |
8480 | } | |
8481 | { | |
4268f798 | 8482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8483 | const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0); |
b37c7e1d RD |
8484 | _result = (wxString *) &_result_ref; |
8485 | ||
4268f798 RD |
8486 | wxPyEndAllowThreads(__tstate); |
8487 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8488 | }{ |
c8bc7bb8 | 8489 | #if wxUSE_UNICODE |
7e50db3f | 8490 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8491 | #else |
b37c7e1d | 8492 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8493 | #endif |
b37c7e1d RD |
8494 | } |
8495 | return _resultobj; | |
8496 | } | |
8497 | ||
8498 | #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc()) | |
8499 | static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8500 | PyObject * _resultobj; | |
8501 | wxString * _result; | |
8502 | wxFileTypeInfo * _arg0; | |
8503 | PyObject * _argo0 = 0; | |
8504 | char *_kwnames[] = { "self", NULL }; | |
8505 | ||
8506 | self = self; | |
8507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0)) | |
8508 | return NULL; | |
8509 | if (_argo0) { | |
8510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p."); | |
8513 | return NULL; | |
8514 | } | |
8515 | } | |
8516 | { | |
4268f798 | 8517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8518 | const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0); |
b37c7e1d RD |
8519 | _result = (wxString *) &_result_ref; |
8520 | ||
4268f798 RD |
8521 | wxPyEndAllowThreads(__tstate); |
8522 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8523 | }{ |
c8bc7bb8 | 8524 | #if wxUSE_UNICODE |
7e50db3f | 8525 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8526 | #else |
b37c7e1d | 8527 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8528 | #endif |
b37c7e1d RD |
8529 | } |
8530 | return _resultobj; | |
8531 | } | |
8532 | ||
8533 | #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription()) | |
8534 | static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8535 | PyObject * _resultobj; | |
8536 | wxString * _result; | |
8537 | wxFileTypeInfo * _arg0; | |
8538 | PyObject * _argo0 = 0; | |
8539 | char *_kwnames[] = { "self", NULL }; | |
8540 | ||
8541 | self = self; | |
8542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0)) | |
8543 | return NULL; | |
8544 | if (_argo0) { | |
8545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p."); | |
8548 | return NULL; | |
8549 | } | |
8550 | } | |
8551 | { | |
4268f798 | 8552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8553 | const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0); |
b37c7e1d RD |
8554 | _result = (wxString *) &_result_ref; |
8555 | ||
4268f798 RD |
8556 | wxPyEndAllowThreads(__tstate); |
8557 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8558 | }{ |
c8bc7bb8 | 8559 | #if wxUSE_UNICODE |
7e50db3f | 8560 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8561 | #else |
b37c7e1d | 8562 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8563 | #endif |
b37c7e1d RD |
8564 | } |
8565 | return _resultobj; | |
8566 | } | |
8567 | ||
8568 | static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) { | |
8569 | wxArrayString& arr = (wxArrayString&)self->GetExtensions(); | |
8570 | return wxArrayString2PyList_helper(arr); | |
8571 | } | |
8572 | static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8573 | PyObject * _resultobj; | |
8574 | PyObject * _result; | |
8575 | wxFileTypeInfo * _arg0; | |
8576 | PyObject * _argo0 = 0; | |
8577 | char *_kwnames[] = { "self", NULL }; | |
8578 | ||
8579 | self = self; | |
8580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0)) | |
8581 | return NULL; | |
8582 | if (_argo0) { | |
8583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p."); | |
8586 | return NULL; | |
8587 | } | |
8588 | } | |
8589 | { | |
4268f798 | 8590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8591 | _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0); |
b37c7e1d | 8592 | |
4268f798 RD |
8593 | wxPyEndAllowThreads(__tstate); |
8594 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8595 | }{ |
8596 | _resultobj = _result; | |
8597 | } | |
8598 | return _resultobj; | |
8599 | } | |
8600 | ||
8601 | #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount()) | |
8602 | static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8603 | PyObject * _resultobj; | |
8604 | int _result; | |
8605 | wxFileTypeInfo * _arg0; | |
8606 | PyObject * _argo0 = 0; | |
8607 | char *_kwnames[] = { "self", NULL }; | |
8608 | ||
8609 | self = self; | |
8610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0)) | |
8611 | return NULL; | |
8612 | if (_argo0) { | |
8613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p."); | |
8616 | return NULL; | |
8617 | } | |
8618 | } | |
8619 | { | |
4268f798 | 8620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8621 | _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0); |
b37c7e1d | 8622 | |
4268f798 RD |
8623 | wxPyEndAllowThreads(__tstate); |
8624 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8625 | } _resultobj = Py_BuildValue("i",_result); |
8626 | return _resultobj; | |
8627 | } | |
8628 | ||
8629 | #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile()) | |
8630 | static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8631 | PyObject * _resultobj; | |
8632 | wxString * _result; | |
8633 | wxFileTypeInfo * _arg0; | |
8634 | PyObject * _argo0 = 0; | |
8635 | char *_kwnames[] = { "self", NULL }; | |
8636 | ||
8637 | self = self; | |
8638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0)) | |
8639 | return NULL; | |
8640 | if (_argo0) { | |
8641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p."); | |
8644 | return NULL; | |
8645 | } | |
8646 | } | |
8647 | { | |
4268f798 | 8648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8649 | const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0); |
b37c7e1d RD |
8650 | _result = (wxString *) &_result_ref; |
8651 | ||
4268f798 RD |
8652 | wxPyEndAllowThreads(__tstate); |
8653 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8654 | }{ |
c8bc7bb8 | 8655 | #if wxUSE_UNICODE |
7e50db3f | 8656 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8657 | #else |
b37c7e1d | 8658 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8659 | #endif |
b37c7e1d RD |
8660 | } |
8661 | return _resultobj; | |
8662 | } | |
8663 | ||
8664 | #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex()) | |
8665 | static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8666 | PyObject * _resultobj; | |
8667 | int _result; | |
8668 | wxFileTypeInfo * _arg0; | |
8669 | PyObject * _argo0 = 0; | |
8670 | char *_kwnames[] = { "self", NULL }; | |
8671 | ||
8672 | self = self; | |
8673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0)) | |
8674 | return NULL; | |
8675 | if (_argo0) { | |
8676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p."); | |
8679 | return NULL; | |
8680 | } | |
8681 | } | |
8682 | { | |
4268f798 | 8683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8684 | _result = (int )wxFileTypeInfo_GetIconIndex(_arg0); |
b37c7e1d | 8685 | |
4268f798 RD |
8686 | wxPyEndAllowThreads(__tstate); |
8687 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8688 | } _resultobj = Py_BuildValue("i",_result); |
8689 | return _resultobj; | |
8690 | } | |
8691 | ||
8692 | #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0)) | |
8693 | static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8694 | PyObject * _resultobj; | |
8695 | wxFileType * _result; | |
8696 | wxFileTypeInfo * _arg0; | |
8697 | PyObject * _argo0 = 0; | |
8698 | char *_kwnames[] = { "ftInfo", NULL }; | |
8699 | char _ptemp[128]; | |
8700 | ||
8701 | self = self; | |
8702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0)) | |
8703 | return NULL; | |
8704 | if (_argo0) { | |
7e50db3f | 8705 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { |
b37c7e1d RD |
8706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p."); |
8707 | return NULL; | |
8708 | } | |
8709 | } | |
8710 | { | |
4268f798 | 8711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8712 | _result = (wxFileType *)new_wxFileType(*_arg0); |
b37c7e1d | 8713 | |
4268f798 RD |
8714 | wxPyEndAllowThreads(__tstate); |
8715 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8716 | } if (_result) { |
8717 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8718 | _resultobj = Py_BuildValue("s",_ptemp); | |
8719 | } else { | |
8720 | Py_INCREF(Py_None); | |
8721 | _resultobj = Py_None; | |
8722 | } | |
8723 | return _resultobj; | |
8724 | } | |
8725 | ||
8726 | static PyObject * wxFileType_GetMimeType(wxFileType *self) { | |
8727 | wxString str; | |
c8bc7bb8 RD |
8728 | if (self->GetMimeType(&str)) { |
8729 | #if wxUSE_UNICODE | |
7e50db3f | 8730 | return PyUnicode_FromWideChar(str.c_str(), str.Len()); |
c8bc7bb8 RD |
8731 | #else |
8732 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8733 | #endif | |
8734 | } | |
b37c7e1d RD |
8735 | else |
8736 | RETURN_NONE(); | |
8737 | } | |
8738 | static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8739 | PyObject * _resultobj; | |
8740 | PyObject * _result; | |
8741 | wxFileType * _arg0; | |
8742 | PyObject * _argo0 = 0; | |
8743 | char *_kwnames[] = { "self", NULL }; | |
8744 | ||
8745 | self = self; | |
8746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0)) | |
8747 | return NULL; | |
8748 | if (_argo0) { | |
8749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p."); | |
8752 | return NULL; | |
8753 | } | |
8754 | } | |
8755 | { | |
4268f798 | 8756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8757 | _result = (PyObject *)wxFileType_GetMimeType(_arg0); |
b37c7e1d | 8758 | |
4268f798 RD |
8759 | wxPyEndAllowThreads(__tstate); |
8760 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8761 | }{ |
8762 | _resultobj = _result; | |
8763 | } | |
8764 | return _resultobj; | |
8765 | } | |
8766 | ||
8767 | static PyObject * wxFileType_GetMimeTypes(wxFileType *self) { | |
8768 | wxArrayString arr; | |
8769 | if (self->GetMimeTypes(arr)) | |
8770 | return wxArrayString2PyList_helper(arr); | |
8771 | else | |
8772 | RETURN_NONE(); | |
8773 | } | |
8774 | static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8775 | PyObject * _resultobj; | |
8776 | PyObject * _result; | |
8777 | wxFileType * _arg0; | |
8778 | PyObject * _argo0 = 0; | |
8779 | char *_kwnames[] = { "self", NULL }; | |
8780 | ||
8781 | self = self; | |
8782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0)) | |
8783 | return NULL; | |
8784 | if (_argo0) { | |
8785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p."); | |
8788 | return NULL; | |
8789 | } | |
8790 | } | |
8791 | { | |
4268f798 | 8792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8793 | _result = (PyObject *)wxFileType_GetMimeTypes(_arg0); |
b37c7e1d | 8794 | |
4268f798 RD |
8795 | wxPyEndAllowThreads(__tstate); |
8796 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8797 | }{ |
8798 | _resultobj = _result; | |
8799 | } | |
8800 | return _resultobj; | |
8801 | } | |
8802 | ||
8803 | static PyObject * wxFileType_GetExtensions(wxFileType *self) { | |
8804 | wxArrayString arr; | |
8805 | if (self->GetExtensions(arr)) | |
8806 | return wxArrayString2PyList_helper(arr); | |
8807 | else | |
8808 | RETURN_NONE(); | |
8809 | } | |
8810 | static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8811 | PyObject * _resultobj; | |
8812 | PyObject * _result; | |
8813 | wxFileType * _arg0; | |
8814 | PyObject * _argo0 = 0; | |
8815 | char *_kwnames[] = { "self", NULL }; | |
8816 | ||
8817 | self = self; | |
8818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0)) | |
8819 | return NULL; | |
8820 | if (_argo0) { | |
8821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p."); | |
8824 | return NULL; | |
8825 | } | |
8826 | } | |
8827 | { | |
4268f798 | 8828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8829 | _result = (PyObject *)wxFileType_GetExtensions(_arg0); |
b37c7e1d | 8830 | |
4268f798 RD |
8831 | wxPyEndAllowThreads(__tstate); |
8832 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8833 | }{ |
8834 | _resultobj = _result; | |
8835 | } | |
8836 | return _resultobj; | |
8837 | } | |
8838 | ||
8839 | static wxIcon * wxFileType_GetIcon(wxFileType *self) { | |
5a2a9da2 RD |
8840 | wxIconLocation loc; |
8841 | if (self->GetIcon(&loc)) | |
8842 | return new wxIcon(loc); | |
b37c7e1d RD |
8843 | else |
8844 | return NULL; | |
8845 | } | |
8846 | static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8847 | PyObject * _resultobj; | |
8848 | wxIcon * _result; | |
8849 | wxFileType * _arg0; | |
8850 | PyObject * _argo0 = 0; | |
8851 | char *_kwnames[] = { "self", NULL }; | |
8852 | char _ptemp[128]; | |
8853 | ||
8854 | self = self; | |
8855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0)) | |
8856 | return NULL; | |
8857 | if (_argo0) { | |
8858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p."); | |
8861 | return NULL; | |
8862 | } | |
8863 | } | |
8864 | { | |
4268f798 | 8865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8866 | _result = (wxIcon *)wxFileType_GetIcon(_arg0); |
b37c7e1d | 8867 | |
4268f798 RD |
8868 | wxPyEndAllowThreads(__tstate); |
8869 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8870 | } if (_result) { |
8871 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
8872 | _resultobj = Py_BuildValue("s",_ptemp); | |
8873 | } else { | |
8874 | Py_INCREF(Py_None); | |
8875 | _resultobj = Py_None; | |
8876 | } | |
8877 | return _resultobj; | |
8878 | } | |
8879 | ||
8880 | static PyObject * wxFileType_GetIconInfo(wxFileType *self) { | |
5a2a9da2 RD |
8881 | wxIconLocation loc; |
8882 | if (self->GetIcon(&loc)) { | |
8883 | wxString iconFile = loc.GetFileName(); | |
8884 | int iconIndex = -1; | |
8885 | #ifdef __WXMSW__ | |
8886 | iconIndex = loc.GetIndex(); | |
8887 | #endif | |
8888 | // Make a tuple and put the values in it | |
4268f798 | 8889 | wxPyBeginBlockThreads(); |
b37c7e1d | 8890 | PyObject* tuple = PyTuple_New(3); |
5a2a9da2 RD |
8891 | PyTuple_SetItem(tuple, 0, |
8892 | wxPyConstructObject(new wxIcon(loc), wxT("wxIcon"), TRUE)); | |
c8bc7bb8 | 8893 | #if wxUSE_UNICODE |
7e50db3f | 8894 | PyTuple_SetItem(tuple, 1, PyUnicode_FromWideChar(iconFile.c_str(), iconFile.Len())); |
c8bc7bb8 RD |
8895 | #else |
8896 | PyTuple_SetItem(tuple, 1, PyString_FromStringAndSize(iconFile.c_str(), iconFile.Len())); | |
8897 | #endif | |
b37c7e1d | 8898 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); |
4268f798 | 8899 | wxPyEndBlockThreads(); |
b37c7e1d RD |
8900 | return tuple; |
8901 | } | |
8902 | else | |
8903 | RETURN_NONE(); | |
8904 | } | |
8905 | static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8906 | PyObject * _resultobj; | |
8907 | PyObject * _result; | |
8908 | wxFileType * _arg0; | |
8909 | PyObject * _argo0 = 0; | |
8910 | char *_kwnames[] = { "self", NULL }; | |
8911 | ||
8912 | self = self; | |
8913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0)) | |
8914 | return NULL; | |
8915 | if (_argo0) { | |
8916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p."); | |
8919 | return NULL; | |
8920 | } | |
8921 | } | |
8922 | { | |
4268f798 | 8923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8924 | _result = (PyObject *)wxFileType_GetIconInfo(_arg0); |
b37c7e1d | 8925 | |
4268f798 RD |
8926 | wxPyEndAllowThreads(__tstate); |
8927 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8928 | }{ |
8929 | _resultobj = _result; | |
8930 | } | |
8931 | return _resultobj; | |
8932 | } | |
8933 | ||
8934 | static PyObject * wxFileType_GetDescription(wxFileType *self) { | |
8935 | wxString str; | |
c8bc7bb8 RD |
8936 | if (self->GetDescription(&str)) { |
8937 | #if wxUSE_UNICODE | |
7e50db3f | 8938 | return PyUnicode_FromWideChar(str.c_str(), str.Len()); |
c8bc7bb8 RD |
8939 | #else |
8940 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8941 | #endif | |
8942 | } else | |
b37c7e1d RD |
8943 | RETURN_NONE(); |
8944 | } | |
8945 | static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8946 | PyObject * _resultobj; | |
8947 | PyObject * _result; | |
8948 | wxFileType * _arg0; | |
8949 | PyObject * _argo0 = 0; | |
8950 | char *_kwnames[] = { "self", NULL }; | |
8951 | ||
8952 | self = self; | |
8953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0)) | |
8954 | return NULL; | |
8955 | if (_argo0) { | |
8956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p."); | |
8959 | return NULL; | |
8960 | } | |
8961 | } | |
8962 | { | |
4268f798 | 8963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8964 | _result = (PyObject *)wxFileType_GetDescription(_arg0); |
b37c7e1d | 8965 | |
4268f798 RD |
8966 | wxPyEndAllowThreads(__tstate); |
8967 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8968 | }{ |
8969 | _resultobj = _result; | |
8970 | } | |
8971 | return _resultobj; | |
8972 | } | |
8973 | ||
8974 | static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8975 | wxString str; | |
c8bc7bb8 RD |
8976 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
8977 | #if wxUSE_UNICODE | |
7e50db3f | 8978 | return PyUnicode_FromWideChar(str.c_str(), str.Len()); |
c8bc7bb8 RD |
8979 | #else |
8980 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8981 | #endif | |
8982 | } else | |
b37c7e1d RD |
8983 | RETURN_NONE(); |
8984 | } | |
8985 | static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8986 | PyObject * _resultobj; | |
8987 | PyObject * _result; | |
8988 | wxFileType * _arg0; | |
8989 | wxString * _arg1; | |
137b5242 | 8990 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
8991 | PyObject * _argo0 = 0; |
8992 | PyObject * _obj1 = 0; | |
8993 | PyObject * _obj2 = 0; | |
8994 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8995 | ||
8996 | self = self; | |
8997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8998 | return NULL; | |
8999 | if (_argo0) { | |
9000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p."); | |
9003 | return NULL; | |
9004 | } | |
9005 | } | |
9006 | { | |
c8bc7bb8 RD |
9007 | _arg1 = wxString_in_helper(_obj1); |
9008 | if (_arg1 == NULL) | |
b37c7e1d | 9009 | return NULL; |
b37c7e1d RD |
9010 | } |
9011 | if (_obj2) | |
9012 | { | |
c8bc7bb8 RD |
9013 | _arg2 = wxString_in_helper(_obj2); |
9014 | if (_arg2 == NULL) | |
b37c7e1d | 9015 | return NULL; |
b37c7e1d RD |
9016 | } |
9017 | { | |
4268f798 | 9018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9019 | _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 9020 | |
4268f798 RD |
9021 | wxPyEndAllowThreads(__tstate); |
9022 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9023 | }{ |
9024 | _resultobj = _result; | |
9025 | } | |
9026 | { | |
9027 | if (_obj1) | |
9028 | delete _arg1; | |
9029 | } | |
9030 | { | |
9031 | if (_obj2) | |
9032 | delete _arg2; | |
9033 | } | |
9034 | return _resultobj; | |
9035 | } | |
9036 | ||
9037 | static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
9038 | wxString str; | |
c8bc7bb8 RD |
9039 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
9040 | #if wxUSE_UNICODE | |
7e50db3f | 9041 | return PyUnicode_FromWideChar(str.c_str(), str.Len()); |
c8bc7bb8 RD |
9042 | #else |
9043 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
9044 | #endif | |
9045 | } else | |
b37c7e1d RD |
9046 | RETURN_NONE(); |
9047 | } | |
9048 | static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9049 | PyObject * _resultobj; | |
9050 | PyObject * _result; | |
9051 | wxFileType * _arg0; | |
9052 | wxString * _arg1; | |
137b5242 | 9053 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9054 | PyObject * _argo0 = 0; |
9055 | PyObject * _obj1 = 0; | |
9056 | PyObject * _obj2 = 0; | |
9057 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
9058 | ||
9059 | self = self; | |
9060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9061 | return NULL; | |
9062 | if (_argo0) { | |
9063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p."); | |
9066 | return NULL; | |
9067 | } | |
9068 | } | |
9069 | { | |
c8bc7bb8 RD |
9070 | _arg1 = wxString_in_helper(_obj1); |
9071 | if (_arg1 == NULL) | |
b37c7e1d | 9072 | return NULL; |
b37c7e1d RD |
9073 | } |
9074 | if (_obj2) | |
9075 | { | |
c8bc7bb8 RD |
9076 | _arg2 = wxString_in_helper(_obj2); |
9077 | if (_arg2 == NULL) | |
b37c7e1d | 9078 | return NULL; |
b37c7e1d RD |
9079 | } |
9080 | { | |
4268f798 | 9081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9082 | _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 9083 | |
4268f798 RD |
9084 | wxPyEndAllowThreads(__tstate); |
9085 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9086 | }{ |
9087 | _resultobj = _result; | |
9088 | } | |
9089 | { | |
9090 | if (_obj1) | |
9091 | delete _arg1; | |
9092 | } | |
9093 | { | |
9094 | if (_obj2) | |
9095 | delete _arg2; | |
9096 | } | |
9097 | return _resultobj; | |
9098 | } | |
9099 | ||
9100 | static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
9101 | wxArrayString verbs; | |
9102 | wxArrayString commands; | |
9103 | if (self->GetAllCommands(&verbs, &commands, | |
9104 | wxFileType::MessageParameters(filename, mimetype))) { | |
4268f798 | 9105 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
9106 | PyObject* tuple = PyTuple_New(2); |
9107 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
9108 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
4268f798 | 9109 | wxPyEndBlockThreads(); |
b37c7e1d RD |
9110 | return tuple; |
9111 | } | |
9112 | else | |
9113 | RETURN_NONE(); | |
9114 | } | |
9115 | static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9116 | PyObject * _resultobj; | |
9117 | PyObject * _result; | |
9118 | wxFileType * _arg0; | |
9119 | wxString * _arg1; | |
137b5242 | 9120 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9121 | PyObject * _argo0 = 0; |
9122 | PyObject * _obj1 = 0; | |
9123 | PyObject * _obj2 = 0; | |
9124 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
9125 | ||
9126 | self = self; | |
9127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9128 | return NULL; | |
9129 | if (_argo0) { | |
9130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p."); | |
9133 | return NULL; | |
9134 | } | |
9135 | } | |
9136 | { | |
c8bc7bb8 RD |
9137 | _arg1 = wxString_in_helper(_obj1); |
9138 | if (_arg1 == NULL) | |
b37c7e1d | 9139 | return NULL; |
b37c7e1d RD |
9140 | } |
9141 | if (_obj2) | |
9142 | { | |
c8bc7bb8 RD |
9143 | _arg2 = wxString_in_helper(_obj2); |
9144 | if (_arg2 == NULL) | |
b37c7e1d | 9145 | return NULL; |
b37c7e1d RD |
9146 | } |
9147 | { | |
4268f798 | 9148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9149 | _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2); |
b37c7e1d | 9150 | |
4268f798 RD |
9151 | wxPyEndAllowThreads(__tstate); |
9152 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9153 | }{ |
9154 | _resultobj = _result; | |
9155 | } | |
9156 | { | |
9157 | if (_obj1) | |
9158 | delete _arg1; | |
9159 | } | |
9160 | { | |
9161 | if (_obj2) | |
9162 | delete _arg2; | |
9163 | } | |
9164 | return _resultobj; | |
9165 | } | |
9166 | ||
9167 | #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2)) | |
9168 | static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9169 | PyObject * _resultobj; | |
9170 | bool _result; | |
9171 | wxFileType * _arg0; | |
9172 | wxString * _arg1; | |
9173 | wxString * _arg2; | |
9174 | bool _arg3 = (bool ) TRUE; | |
9175 | PyObject * _argo0 = 0; | |
9176 | PyObject * _obj1 = 0; | |
9177 | PyObject * _obj2 = 0; | |
9178 | int tempbool3 = (int) TRUE; | |
9179 | char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL }; | |
9180 | ||
9181 | self = self; | |
9182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) | |
9183 | return NULL; | |
9184 | if (_argo0) { | |
9185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p."); | |
9188 | return NULL; | |
9189 | } | |
9190 | } | |
9191 | { | |
c8bc7bb8 RD |
9192 | _arg1 = wxString_in_helper(_obj1); |
9193 | if (_arg1 == NULL) | |
b37c7e1d | 9194 | return NULL; |
b37c7e1d RD |
9195 | } |
9196 | { | |
c8bc7bb8 RD |
9197 | _arg2 = wxString_in_helper(_obj2); |
9198 | if (_arg2 == NULL) | |
b37c7e1d | 9199 | return NULL; |
b37c7e1d RD |
9200 | } |
9201 | _arg3 = (bool ) tempbool3; | |
9202 | { | |
4268f798 | 9203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9204 | _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3); |
b37c7e1d | 9205 | |
4268f798 RD |
9206 | wxPyEndAllowThreads(__tstate); |
9207 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9208 | } _resultobj = Py_BuildValue("i",_result); |
9209 | { | |
9210 | if (_obj1) | |
9211 | delete _arg1; | |
9212 | } | |
9213 | { | |
9214 | if (_obj2) | |
9215 | delete _arg2; | |
9216 | } | |
9217 | return _resultobj; | |
9218 | } | |
9219 | ||
9220 | #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1)) | |
9221 | static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9222 | PyObject * _resultobj; | |
9223 | bool _result; | |
9224 | wxFileType * _arg0; | |
137b5242 | 9225 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9226 | int _arg2 = (int ) 0; |
9227 | PyObject * _argo0 = 0; | |
9228 | PyObject * _obj1 = 0; | |
9229 | char *_kwnames[] = { "self","cmd","index", NULL }; | |
9230 | ||
9231 | self = self; | |
9232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
9233 | return NULL; | |
9234 | if (_argo0) { | |
9235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p."); | |
9238 | return NULL; | |
9239 | } | |
9240 | } | |
9241 | if (_obj1) | |
9242 | { | |
c8bc7bb8 RD |
9243 | _arg1 = wxString_in_helper(_obj1); |
9244 | if (_arg1 == NULL) | |
b37c7e1d | 9245 | return NULL; |
b37c7e1d RD |
9246 | } |
9247 | { | |
4268f798 | 9248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9249 | _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 9250 | |
4268f798 RD |
9251 | wxPyEndAllowThreads(__tstate); |
9252 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9253 | } _resultobj = Py_BuildValue("i",_result); |
9254 | { | |
9255 | if (_obj1) | |
9256 | delete _arg1; | |
9257 | } | |
9258 | return _resultobj; | |
9259 | } | |
9260 | ||
9261 | #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate()) | |
9262 | static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9263 | PyObject * _resultobj; | |
9264 | bool _result; | |
9265 | wxFileType * _arg0; | |
9266 | PyObject * _argo0 = 0; | |
9267 | char *_kwnames[] = { "self", NULL }; | |
9268 | ||
9269 | self = self; | |
9270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0)) | |
9271 | return NULL; | |
9272 | if (_argo0) { | |
9273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p."); | |
9276 | return NULL; | |
9277 | } | |
9278 | } | |
9279 | { | |
4268f798 | 9280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9281 | _result = (bool )wxFileType_Unassociate(_arg0); |
b37c7e1d | 9282 | |
4268f798 RD |
9283 | wxPyEndAllowThreads(__tstate); |
9284 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9285 | } _resultobj = Py_BuildValue("i",_result); |
9286 | return _resultobj; | |
9287 | } | |
9288 | ||
9289 | static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9290 | PyObject * _resultobj; | |
9291 | wxString * _result; | |
9292 | wxString * _arg0; | |
9293 | wxFileType::MessageParameters * _arg1; | |
9294 | PyObject * _obj0 = 0; | |
9295 | PyObject * _argo1 = 0; | |
9296 | char *_kwnames[] = { "command","params", NULL }; | |
9297 | ||
9298 | self = self; | |
9299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1)) | |
9300 | return NULL; | |
9301 | { | |
c8bc7bb8 RD |
9302 | _arg0 = wxString_in_helper(_obj0); |
9303 | if (_arg0 == NULL) | |
b37c7e1d | 9304 | return NULL; |
b37c7e1d RD |
9305 | } |
9306 | if (_argo1) { | |
7e50db3f | 9307 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) { |
b37c7e1d RD |
9308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p."); |
9309 | return NULL; | |
9310 | } | |
9311 | } | |
9312 | { | |
4268f798 | 9313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9314 | _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1)); |
b37c7e1d | 9315 | |
4268f798 RD |
9316 | wxPyEndAllowThreads(__tstate); |
9317 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 9318 | }{ |
c8bc7bb8 | 9319 | #if wxUSE_UNICODE |
7e50db3f | 9320 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9321 | #else |
b37c7e1d | 9322 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9323 | #endif |
b37c7e1d RD |
9324 | } |
9325 | { | |
9326 | if (_obj0) | |
9327 | delete _arg0; | |
9328 | } | |
9329 | { | |
9330 | delete _result; | |
9331 | } | |
9332 | return _resultobj; | |
9333 | } | |
9334 | ||
9335 | #define delete_wxFileType(_swigobj) (delete _swigobj) | |
9336 | static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9337 | PyObject * _resultobj; | |
9338 | wxFileType * _arg0; | |
9339 | PyObject * _argo0 = 0; | |
9340 | char *_kwnames[] = { "self", NULL }; | |
9341 | ||
9342 | self = self; | |
9343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0)) | |
9344 | return NULL; | |
9345 | if (_argo0) { | |
9346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p."); | |
9349 | return NULL; | |
9350 | } | |
9351 | } | |
9352 | { | |
4268f798 | 9353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9354 | delete_wxFileType(_arg0); |
b37c7e1d | 9355 | |
4268f798 RD |
9356 | wxPyEndAllowThreads(__tstate); |
9357 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9358 | } Py_INCREF(Py_None); |
9359 | _resultobj = Py_None; | |
9360 | return _resultobj; | |
9361 | } | |
9362 | ||
9363 | static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9364 | PyObject * _resultobj; | |
9365 | bool _result; | |
9366 | wxString * _arg0; | |
9367 | wxString * _arg1; | |
9368 | PyObject * _obj0 = 0; | |
9369 | PyObject * _obj1 = 0; | |
9370 | char *_kwnames[] = { "mimeType","wildcard", NULL }; | |
9371 | ||
9372 | self = self; | |
9373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1)) | |
9374 | return NULL; | |
9375 | { | |
c8bc7bb8 RD |
9376 | _arg0 = wxString_in_helper(_obj0); |
9377 | if (_arg0 == NULL) | |
b37c7e1d | 9378 | return NULL; |
b37c7e1d RD |
9379 | } |
9380 | { | |
c8bc7bb8 RD |
9381 | _arg1 = wxString_in_helper(_obj1); |
9382 | if (_arg1 == NULL) | |
b37c7e1d | 9383 | return NULL; |
b37c7e1d RD |
9384 | } |
9385 | { | |
4268f798 | 9386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9387 | _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1); |
b37c7e1d | 9388 | |
4268f798 RD |
9389 | wxPyEndAllowThreads(__tstate); |
9390 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9391 | } _resultobj = Py_BuildValue("i",_result); |
9392 | { | |
9393 | if (_obj0) | |
9394 | delete _arg0; | |
9395 | } | |
9396 | { | |
9397 | if (_obj1) | |
9398 | delete _arg1; | |
9399 | } | |
9400 | return _resultobj; | |
9401 | } | |
9402 | ||
9403 | #define new_wxMimeTypesManager() (new wxMimeTypesManager()) | |
9404 | static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9405 | PyObject * _resultobj; | |
9406 | wxMimeTypesManager * _result; | |
9407 | char *_kwnames[] = { NULL }; | |
9408 | char _ptemp[128]; | |
9409 | ||
9410 | self = self; | |
9411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames)) | |
9412 | return NULL; | |
9413 | { | |
4268f798 | 9414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9415 | _result = (wxMimeTypesManager *)new_wxMimeTypesManager(); |
b37c7e1d | 9416 | |
4268f798 RD |
9417 | wxPyEndAllowThreads(__tstate); |
9418 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9419 | } if (_result) { |
9420 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p"); | |
9421 | _resultobj = Py_BuildValue("s",_ptemp); | |
9422 | } else { | |
9423 | Py_INCREF(Py_None); | |
9424 | _resultobj = Py_None; | |
9425 | } | |
9426 | return _resultobj; | |
9427 | } | |
9428 | ||
9429 | #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1)) | |
9430 | static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9431 | PyObject * _resultobj; | |
9432 | wxMimeTypesManager * _arg0; | |
3856ee0b | 9433 | int _arg1 = (int ) (wxMAILCAP_ALL); |
137b5242 | 9434 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9435 | PyObject * _argo0 = 0; |
9436 | PyObject * _obj2 = 0; | |
9437 | char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL }; | |
9438 | ||
9439 | self = self; | |
9440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9441 | return NULL; | |
9442 | if (_argo0) { | |
9443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p."); | |
9446 | return NULL; | |
9447 | } | |
9448 | } | |
9449 | if (_obj2) | |
9450 | { | |
c8bc7bb8 RD |
9451 | _arg2 = wxString_in_helper(_obj2); |
9452 | if (_arg2 == NULL) | |
b37c7e1d | 9453 | return NULL; |
b37c7e1d RD |
9454 | } |
9455 | { | |
4268f798 | 9456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9457 | wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2); |
b37c7e1d | 9458 | |
4268f798 RD |
9459 | wxPyEndAllowThreads(__tstate); |
9460 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9461 | } Py_INCREF(Py_None); |
9462 | _resultobj = Py_None; | |
9463 | { | |
9464 | if (_obj2) | |
9465 | delete _arg2; | |
9466 | } | |
9467 | return _resultobj; | |
9468 | } | |
9469 | ||
9470 | #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData()) | |
9471 | static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9472 | PyObject * _resultobj; | |
9473 | wxMimeTypesManager * _arg0; | |
9474 | PyObject * _argo0 = 0; | |
9475 | char *_kwnames[] = { "self", NULL }; | |
9476 | ||
9477 | self = self; | |
9478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0)) | |
9479 | return NULL; | |
9480 | if (_argo0) { | |
9481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p."); | |
9484 | return NULL; | |
9485 | } | |
9486 | } | |
9487 | { | |
4268f798 | 9488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9489 | wxMimeTypesManager_ClearData(_arg0); |
b37c7e1d | 9490 | |
4268f798 RD |
9491 | wxPyEndAllowThreads(__tstate); |
9492 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9493 | } Py_INCREF(Py_None); |
9494 | _resultobj = Py_None; | |
9495 | return _resultobj; | |
9496 | } | |
9497 | ||
9498 | #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0)) | |
9499 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9500 | PyObject * _resultobj; | |
9501 | wxFileType * _result; | |
9502 | wxMimeTypesManager * _arg0; | |
9503 | wxString * _arg1; | |
9504 | PyObject * _argo0 = 0; | |
9505 | PyObject * _obj1 = 0; | |
9506 | char *_kwnames[] = { "self","ext", NULL }; | |
9507 | char _ptemp[128]; | |
9508 | ||
9509 | self = self; | |
9510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1)) | |
9511 | return NULL; | |
9512 | if (_argo0) { | |
9513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p."); | |
9516 | return NULL; | |
9517 | } | |
9518 | } | |
9519 | { | |
c8bc7bb8 RD |
9520 | _arg1 = wxString_in_helper(_obj1); |
9521 | if (_arg1 == NULL) | |
b37c7e1d | 9522 | return NULL; |
b37c7e1d RD |
9523 | } |
9524 | { | |
4268f798 | 9525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9526 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1); |
b37c7e1d | 9527 | |
4268f798 RD |
9528 | wxPyEndAllowThreads(__tstate); |
9529 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9530 | } if (_result) { |
9531 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9532 | _resultobj = Py_BuildValue("s",_ptemp); | |
9533 | } else { | |
9534 | Py_INCREF(Py_None); | |
9535 | _resultobj = Py_None; | |
9536 | } | |
9537 | { | |
9538 | if (_obj1) | |
9539 | delete _arg1; | |
9540 | } | |
9541 | return _resultobj; | |
9542 | } | |
9543 | ||
9544 | #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0)) | |
9545 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9546 | PyObject * _resultobj; | |
9547 | wxFileType * _result; | |
9548 | wxMimeTypesManager * _arg0; | |
9549 | wxString * _arg1; | |
9550 | PyObject * _argo0 = 0; | |
9551 | PyObject * _obj1 = 0; | |
9552 | char *_kwnames[] = { "self","mimeType", NULL }; | |
9553 | char _ptemp[128]; | |
9554 | ||
9555 | self = self; | |
9556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1)) | |
9557 | return NULL; | |
9558 | if (_argo0) { | |
9559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p."); | |
9562 | return NULL; | |
9563 | } | |
9564 | } | |
9565 | { | |
c8bc7bb8 RD |
9566 | _arg1 = wxString_in_helper(_obj1); |
9567 | if (_arg1 == NULL) | |
b37c7e1d | 9568 | return NULL; |
b37c7e1d RD |
9569 | } |
9570 | { | |
4268f798 | 9571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9572 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_arg0,*_arg1); |
b37c7e1d | 9573 | |
4268f798 RD |
9574 | wxPyEndAllowThreads(__tstate); |
9575 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9576 | } if (_result) { |
9577 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9578 | _resultobj = Py_BuildValue("s",_ptemp); | |
9579 | } else { | |
9580 | Py_INCREF(Py_None); | |
9581 | _resultobj = Py_None; | |
9582 | } | |
9583 | { | |
9584 | if (_obj1) | |
9585 | delete _arg1; | |
9586 | } | |
9587 | return _resultobj; | |
9588 | } | |
9589 | ||
9590 | #define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1)) | |
9591 | static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9592 | PyObject * _resultobj; | |
9593 | bool _result; | |
9594 | wxMimeTypesManager * _arg0; | |
9595 | wxString * _arg1; | |
9596 | bool _arg2 = (bool ) FALSE; | |
9597 | PyObject * _argo0 = 0; | |
9598 | PyObject * _obj1 = 0; | |
9599 | int tempbool2 = (int) FALSE; | |
9600 | char *_kwnames[] = { "self","filename","fallback", NULL }; | |
9601 | ||
9602 | self = self; | |
9603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
9604 | return NULL; | |
9605 | if (_argo0) { | |
9606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p."); | |
9609 | return NULL; | |
9610 | } | |
9611 | } | |
9612 | { | |
c8bc7bb8 RD |
9613 | _arg1 = wxString_in_helper(_obj1); |
9614 | if (_arg1 == NULL) | |
b37c7e1d | 9615 | return NULL; |
b37c7e1d RD |
9616 | } |
9617 | _arg2 = (bool ) tempbool2; | |
9618 | { | |
4268f798 | 9619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9620 | _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2); |
b37c7e1d | 9621 | |
4268f798 RD |
9622 | wxPyEndAllowThreads(__tstate); |
9623 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9624 | } _resultobj = Py_BuildValue("i",_result); |
9625 | { | |
9626 | if (_obj1) | |
9627 | delete _arg1; | |
9628 | } | |
9629 | return _resultobj; | |
9630 | } | |
9631 | ||
9632 | #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0)) | |
9633 | static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9634 | PyObject * _resultobj; | |
9635 | bool _result; | |
9636 | wxMimeTypesManager * _arg0; | |
9637 | wxString * _arg1; | |
9638 | PyObject * _argo0 = 0; | |
9639 | PyObject * _obj1 = 0; | |
9640 | char *_kwnames[] = { "self","filename", NULL }; | |
9641 | ||
9642 | self = self; | |
9643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1)) | |
9644 | return NULL; | |
9645 | if (_argo0) { | |
9646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p."); | |
9649 | return NULL; | |
9650 | } | |
9651 | } | |
9652 | { | |
c8bc7bb8 RD |
9653 | _arg1 = wxString_in_helper(_obj1); |
9654 | if (_arg1 == NULL) | |
b37c7e1d | 9655 | return NULL; |
b37c7e1d RD |
9656 | } |
9657 | { | |
4268f798 | 9658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9659 | _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1); |
b37c7e1d | 9660 | |
4268f798 RD |
9661 | wxPyEndAllowThreads(__tstate); |
9662 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9663 | } _resultobj = Py_BuildValue("i",_result); |
9664 | { | |
9665 | if (_obj1) | |
9666 | delete _arg1; | |
9667 | } | |
9668 | return _resultobj; | |
9669 | } | |
9670 | ||
9671 | static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) { | |
9672 | wxArrayString arr; | |
9673 | self->EnumAllFileTypes(arr); | |
9674 | return wxArrayString2PyList_helper(arr); | |
9675 | } | |
9676 | static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9677 | PyObject * _resultobj; | |
9678 | PyObject * _result; | |
9679 | wxMimeTypesManager * _arg0; | |
9680 | PyObject * _argo0 = 0; | |
9681 | char *_kwnames[] = { "self", NULL }; | |
9682 | ||
9683 | self = self; | |
9684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0)) | |
9685 | return NULL; | |
9686 | if (_argo0) { | |
9687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p."); | |
9690 | return NULL; | |
9691 | } | |
9692 | } | |
9693 | { | |
4268f798 | 9694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9695 | _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0); |
b37c7e1d | 9696 | |
4268f798 RD |
9697 | wxPyEndAllowThreads(__tstate); |
9698 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9699 | }{ |
9700 | _resultobj = _result; | |
9701 | } | |
9702 | return _resultobj; | |
9703 | } | |
9704 | ||
9705 | #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0)) | |
9706 | static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9707 | PyObject * _resultobj; | |
9708 | wxMimeTypesManager * _arg0; | |
9709 | wxFileTypeInfo * _arg1; | |
9710 | PyObject * _argo0 = 0; | |
9711 | PyObject * _argo1 = 0; | |
9712 | char *_kwnames[] = { "self","ft", NULL }; | |
9713 | ||
9714 | self = self; | |
9715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1)) | |
9716 | return NULL; | |
9717 | if (_argo0) { | |
9718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p."); | |
9721 | return NULL; | |
9722 | } | |
9723 | } | |
9724 | if (_argo1) { | |
7e50db3f | 9725 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { |
b37c7e1d RD |
9726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p."); |
9727 | return NULL; | |
9728 | } | |
9729 | } | |
9730 | { | |
4268f798 | 9731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9732 | wxMimeTypesManager_AddFallback(_arg0,*_arg1); |
b37c7e1d | 9733 | |
4268f798 RD |
9734 | wxPyEndAllowThreads(__tstate); |
9735 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9736 | } Py_INCREF(Py_None); |
9737 | _resultobj = Py_None; | |
9738 | return _resultobj; | |
9739 | } | |
9740 | ||
9741 | #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0)) | |
9742 | static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9743 | PyObject * _resultobj; | |
9744 | wxFileType * _result; | |
9745 | wxMimeTypesManager * _arg0; | |
9746 | wxFileTypeInfo * _arg1; | |
9747 | PyObject * _argo0 = 0; | |
9748 | PyObject * _argo1 = 0; | |
9749 | char *_kwnames[] = { "self","ftInfo", NULL }; | |
9750 | char _ptemp[128]; | |
9751 | ||
9752 | self = self; | |
9753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1)) | |
9754 | return NULL; | |
9755 | if (_argo0) { | |
9756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p."); | |
9759 | return NULL; | |
9760 | } | |
9761 | } | |
9762 | if (_argo1) { | |
7e50db3f | 9763 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { |
b37c7e1d RD |
9764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p."); |
9765 | return NULL; | |
9766 | } | |
9767 | } | |
9768 | { | |
4268f798 | 9769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9770 | _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1); |
b37c7e1d | 9771 | |
4268f798 RD |
9772 | wxPyEndAllowThreads(__tstate); |
9773 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9774 | } if (_result) { |
9775 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9776 | _resultobj = Py_BuildValue("s",_ptemp); | |
9777 | } else { | |
9778 | Py_INCREF(Py_None); | |
9779 | _resultobj = Py_None; | |
9780 | } | |
9781 | return _resultobj; | |
9782 | } | |
9783 | ||
9784 | #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0)) | |
9785 | static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9786 | PyObject * _resultobj; | |
9787 | bool _result; | |
9788 | wxMimeTypesManager * _arg0; | |
9789 | wxFileType * _arg1; | |
9790 | PyObject * _argo0 = 0; | |
9791 | PyObject * _argo1 = 0; | |
9792 | char *_kwnames[] = { "self","ft", NULL }; | |
9793 | ||
9794 | self = self; | |
9795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1)) | |
9796 | return NULL; | |
9797 | if (_argo0) { | |
9798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p."); | |
9801 | return NULL; | |
9802 | } | |
9803 | } | |
9804 | if (_argo1) { | |
9805 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9806 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) { | |
9807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p."); | |
9808 | return NULL; | |
9809 | } | |
9810 | } | |
9811 | { | |
4268f798 | 9812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9813 | _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1); |
b37c7e1d | 9814 | |
4268f798 RD |
9815 | wxPyEndAllowThreads(__tstate); |
9816 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9817 | } _resultobj = Py_BuildValue("i",_result); |
9818 | return _resultobj; | |
9819 | } | |
9820 | ||
9821 | #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj) | |
9822 | static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9823 | PyObject * _resultobj; | |
9824 | wxMimeTypesManager * _arg0; | |
9825 | PyObject * _argo0 = 0; | |
9826 | char *_kwnames[] = { "self", NULL }; | |
9827 | ||
9828 | self = self; | |
9829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0)) | |
9830 | return NULL; | |
9831 | if (_argo0) { | |
9832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p."); | |
9835 | return NULL; | |
9836 | } | |
9837 | } | |
9838 | { | |
4268f798 | 9839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9840 | delete_wxMimeTypesManager(_arg0); |
b37c7e1d | 9841 | |
4268f798 RD |
9842 | wxPyEndAllowThreads(__tstate); |
9843 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9844 | } Py_INCREF(Py_None); |
9845 | _resultobj = Py_None; | |
9846 | return _resultobj; | |
9847 | } | |
9848 | ||
72797a7d RD |
9849 | static void *SwigwxPyArtProviderTowxObject(void *ptr) { |
9850 | wxPyArtProvider *src; | |
9851 | wxObject *dest; | |
9852 | src = (wxPyArtProvider *) ptr; | |
9853 | dest = (wxObject *) src; | |
9854 | return (void *) dest; | |
9855 | } | |
9856 | ||
9857 | #define new_wxArtProvider() (new wxPyArtProvider()) | |
9858 | static PyObject *_wrap_new_wxArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9859 | PyObject * _resultobj; | |
9860 | wxPyArtProvider * _result; | |
9861 | char *_kwnames[] = { NULL }; | |
9862 | char _ptemp[128]; | |
9863 | ||
9864 | self = self; | |
9865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxArtProvider",_kwnames)) | |
9866 | return NULL; | |
9867 | { | |
9868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9869 | _result = (wxPyArtProvider *)new_wxArtProvider(); | |
9870 | ||
9871 | wxPyEndAllowThreads(__tstate); | |
9872 | if (PyErr_Occurred()) return NULL; | |
9873 | } if (_result) { | |
9874 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyArtProvider_p"); | |
9875 | _resultobj = Py_BuildValue("s",_ptemp); | |
9876 | } else { | |
9877 | Py_INCREF(Py_None); | |
9878 | _resultobj = Py_None; | |
9879 | } | |
9880 | return _resultobj; | |
9881 | } | |
9882 | ||
9883 | #define wxArtProvider__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
9884 | static PyObject *_wrap_wxArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9885 | PyObject * _resultobj; | |
9886 | wxPyArtProvider * _arg0; | |
9887 | PyObject * _arg1; | |
9888 | PyObject * _arg2; | |
9889 | PyObject * _argo0 = 0; | |
9890 | PyObject * _obj1 = 0; | |
9891 | PyObject * _obj2 = 0; | |
9892 | char *_kwnames[] = { "self","self","_class", NULL }; | |
9893 | ||
9894 | self = self; | |
9895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxArtProvider__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9896 | return NULL; | |
9897 | if (_argo0) { | |
9898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider__setCallbackInfo. Expected _wxPyArtProvider_p."); | |
9901 | return NULL; | |
9902 | } | |
9903 | } | |
9904 | { | |
9905 | _arg1 = _obj1; | |
9906 | } | |
9907 | { | |
9908 | _arg2 = _obj2; | |
9909 | } | |
9910 | { | |
9911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9912 | wxArtProvider__setCallbackInfo(_arg0,_arg1,_arg2); | |
9913 | ||
9914 | wxPyEndAllowThreads(__tstate); | |
9915 | if (PyErr_Occurred()) return NULL; | |
9916 | } Py_INCREF(Py_None); | |
9917 | _resultobj = Py_None; | |
9918 | return _resultobj; | |
9919 | } | |
9920 | ||
9921 | static PyObject *_wrap_wxArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9922 | PyObject * _resultobj; | |
9923 | wxPyArtProvider * _arg0; | |
9924 | PyObject * _argo0 = 0; | |
9925 | char *_kwnames[] = { "provider", NULL }; | |
9926 | ||
9927 | self = self; | |
9928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_PushProvider",_kwnames,&_argo0)) | |
9929 | return NULL; | |
9930 | if (_argo0) { | |
9931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_PushProvider. Expected _wxPyArtProvider_p."); | |
9934 | return NULL; | |
9935 | } | |
9936 | } | |
9937 | { | |
9938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9939 | wxPyArtProvider::PushProvider(_arg0); | |
9940 | ||
9941 | wxPyEndAllowThreads(__tstate); | |
9942 | if (PyErr_Occurred()) return NULL; | |
9943 | } Py_INCREF(Py_None); | |
9944 | _resultobj = Py_None; | |
9945 | return _resultobj; | |
9946 | } | |
9947 | ||
9948 | static PyObject *_wrap_wxArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9949 | PyObject * _resultobj; | |
9950 | bool _result; | |
9951 | char *_kwnames[] = { NULL }; | |
9952 | ||
9953 | self = self; | |
9954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxArtProvider_PopProvider",_kwnames)) | |
9955 | return NULL; | |
9956 | { | |
9957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9958 | _result = (bool )wxPyArtProvider::PopProvider(); | |
9959 | ||
9960 | wxPyEndAllowThreads(__tstate); | |
9961 | if (PyErr_Occurred()) return NULL; | |
9962 | } _resultobj = Py_BuildValue("i",_result); | |
9963 | return _resultobj; | |
9964 | } | |
9965 | ||
9966 | static PyObject *_wrap_wxArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9967 | PyObject * _resultobj; | |
9968 | bool _result; | |
9969 | wxPyArtProvider * _arg0; | |
9970 | PyObject * _argo0 = 0; | |
9971 | char *_kwnames[] = { "provider", NULL }; | |
9972 | ||
9973 | self = self; | |
9974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_RemoveProvider",_kwnames,&_argo0)) | |
9975 | return NULL; | |
9976 | if (_argo0) { | |
9977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_RemoveProvider. Expected _wxPyArtProvider_p."); | |
9980 | return NULL; | |
9981 | } | |
9982 | } | |
9983 | { | |
9984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9985 | _result = (bool )wxPyArtProvider::RemoveProvider(_arg0); | |
9986 | ||
9987 | wxPyEndAllowThreads(__tstate); | |
9988 | if (PyErr_Occurred()) return NULL; | |
9989 | } _resultobj = Py_BuildValue("i",_result); | |
9990 | return _resultobj; | |
9991 | } | |
9992 | ||
9993 | static PyObject *_wrap_wxArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9994 | PyObject * _resultobj; | |
9995 | wxBitmap * _result; | |
9996 | wxString * _arg0; | |
9997 | wxString * _arg1 = (wxString *) &wxPyART_OTHER; | |
9998 | wxSize * _arg2 = (wxSize *) &wxDefaultSize; | |
9999 | PyObject * _obj0 = 0; | |
10000 | PyObject * _obj1 = 0; | |
10001 | wxSize temp; | |
10002 | PyObject * _obj2 = 0; | |
10003 | char *_kwnames[] = { "id","client","size", NULL }; | |
10004 | char _ptemp[128]; | |
10005 | ||
10006 | self = self; | |
10007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetBitmap",_kwnames,&_obj0,&_obj1,&_obj2)) | |
10008 | return NULL; | |
10009 | { | |
10010 | _arg0 = wxString_in_helper(_obj0); | |
10011 | if (_arg0 == NULL) | |
10012 | return NULL; | |
10013 | } | |
10014 | if (_obj1) | |
10015 | { | |
10016 | _arg1 = wxString_in_helper(_obj1); | |
10017 | if (_arg1 == NULL) | |
10018 | return NULL; | |
10019 | } | |
10020 | if (_obj2) | |
10021 | { | |
10022 | _arg2 = &temp; | |
10023 | if (! wxSize_helper(_obj2, &_arg2)) | |
10024 | return NULL; | |
10025 | } | |
10026 | { | |
10027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10028 | _result = new wxBitmap (wxPyArtProvider::GetBitmap(*_arg0,*_arg1,*_arg2)); | |
10029 | ||
10030 | wxPyEndAllowThreads(__tstate); | |
10031 | if (PyErr_Occurred()) return NULL; | |
10032 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
10033 | _resultobj = Py_BuildValue("s",_ptemp); | |
10034 | { | |
10035 | if (_obj0) | |
10036 | delete _arg0; | |
10037 | } | |
10038 | { | |
10039 | if (_obj1) | |
10040 | delete _arg1; | |
10041 | } | |
10042 | return _resultobj; | |
10043 | } | |
10044 | ||
10045 | static PyObject *_wrap_wxArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10046 | PyObject * _resultobj; | |
10047 | wxIcon * _result; | |
10048 | wxString * _arg0; | |
10049 | wxString * _arg1 = (wxString *) &wxPyART_OTHER; | |
10050 | wxSize * _arg2 = (wxSize *) &wxDefaultSize; | |
10051 | PyObject * _obj0 = 0; | |
10052 | PyObject * _obj1 = 0; | |
10053 | wxSize temp; | |
10054 | PyObject * _obj2 = 0; | |
10055 | char *_kwnames[] = { "id","client","size", NULL }; | |
10056 | char _ptemp[128]; | |
10057 | ||
10058 | self = self; | |
10059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetIcon",_kwnames,&_obj0,&_obj1,&_obj2)) | |
10060 | return NULL; | |
10061 | { | |
10062 | _arg0 = wxString_in_helper(_obj0); | |
10063 | if (_arg0 == NULL) | |
10064 | return NULL; | |
10065 | } | |
10066 | if (_obj1) | |
10067 | { | |
10068 | _arg1 = wxString_in_helper(_obj1); | |
10069 | if (_arg1 == NULL) | |
10070 | return NULL; | |
10071 | } | |
10072 | if (_obj2) | |
10073 | { | |
10074 | _arg2 = &temp; | |
10075 | if (! wxSize_helper(_obj2, &_arg2)) | |
10076 | return NULL; | |
10077 | } | |
10078 | { | |
10079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10080 | _result = new wxIcon (wxPyArtProvider::GetIcon(*_arg0,*_arg1,*_arg2)); | |
10081 | ||
10082 | wxPyEndAllowThreads(__tstate); | |
10083 | if (PyErr_Occurred()) return NULL; | |
10084 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); | |
10085 | _resultobj = Py_BuildValue("s",_ptemp); | |
10086 | { | |
10087 | if (_obj0) | |
10088 | delete _arg0; | |
10089 | } | |
10090 | { | |
10091 | if (_obj1) | |
10092 | delete _arg1; | |
10093 | } | |
10094 | return _resultobj; | |
10095 | } | |
10096 | ||
7dbce44a RD |
10097 | static void *SwigwxFileHistoryTowxObject(void *ptr) { |
10098 | wxFileHistory *src; | |
10099 | wxObject *dest; | |
10100 | src = (wxFileHistory *) ptr; | |
10101 | dest = (wxObject *) src; | |
10102 | return (void *) dest; | |
10103 | } | |
10104 | ||
10105 | #define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0)) | |
10106 | static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10107 | PyObject * _resultobj; | |
10108 | wxFileHistory * _result; | |
10109 | int _arg0 = (int ) 9; | |
10110 | char *_kwnames[] = { "maxFiles", NULL }; | |
10111 | char _ptemp[128]; | |
10112 | ||
10113 | self = self; | |
10114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0)) | |
10115 | return NULL; | |
10116 | { | |
4268f798 | 10117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10118 | _result = (wxFileHistory *)new_wxFileHistory(_arg0); |
7dbce44a | 10119 | |
4268f798 RD |
10120 | wxPyEndAllowThreads(__tstate); |
10121 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10122 | } if (_result) { |
10123 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p"); | |
10124 | _resultobj = Py_BuildValue("s",_ptemp); | |
10125 | } else { | |
10126 | Py_INCREF(Py_None); | |
10127 | _resultobj = Py_None; | |
10128 | } | |
10129 | return _resultobj; | |
10130 | } | |
10131 | ||
10132 | #define delete_wxFileHistory(_swigobj) (delete _swigobj) | |
10133 | static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10134 | PyObject * _resultobj; | |
10135 | wxFileHistory * _arg0; | |
10136 | PyObject * _argo0 = 0; | |
10137 | char *_kwnames[] = { "self", NULL }; | |
10138 | ||
10139 | self = self; | |
10140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0)) | |
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 delete_wxFileHistory. Expected _wxFileHistory_p."); | |
10146 | return NULL; | |
10147 | } | |
10148 | } | |
10149 | { | |
4268f798 | 10150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10151 | delete_wxFileHistory(_arg0); |
7dbce44a | 10152 | |
4268f798 RD |
10153 | wxPyEndAllowThreads(__tstate); |
10154 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10155 | } Py_INCREF(Py_None); |
10156 | _resultobj = Py_None; | |
10157 | return _resultobj; | |
10158 | } | |
10159 | ||
10160 | #define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0)) | |
10161 | static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10162 | PyObject * _resultobj; | |
10163 | wxFileHistory * _arg0; | |
10164 | wxString * _arg1; | |
10165 | PyObject * _argo0 = 0; | |
10166 | PyObject * _obj1 = 0; | |
10167 | char *_kwnames[] = { "self","file", NULL }; | |
10168 | ||
10169 | self = self; | |
10170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1)) | |
10171 | return NULL; | |
10172 | if (_argo0) { | |
10173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p."); | |
10176 | return NULL; | |
10177 | } | |
10178 | } | |
10179 | { | |
c8bc7bb8 RD |
10180 | _arg1 = wxString_in_helper(_obj1); |
10181 | if (_arg1 == NULL) | |
7dbce44a | 10182 | return NULL; |
7dbce44a RD |
10183 | } |
10184 | { | |
4268f798 | 10185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10186 | wxFileHistory_AddFileToHistory(_arg0,*_arg1); |
7dbce44a | 10187 | |
4268f798 RD |
10188 | wxPyEndAllowThreads(__tstate); |
10189 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10190 | } Py_INCREF(Py_None); |
10191 | _resultobj = Py_None; | |
10192 | { | |
10193 | if (_obj1) | |
10194 | delete _arg1; | |
10195 | } | |
10196 | return _resultobj; | |
10197 | } | |
10198 | ||
10199 | #define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0)) | |
10200 | static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10201 | PyObject * _resultobj; | |
10202 | wxFileHistory * _arg0; | |
10203 | int _arg1; | |
10204 | PyObject * _argo0 = 0; | |
10205 | char *_kwnames[] = { "self","i", NULL }; | |
10206 | ||
10207 | self = self; | |
10208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1)) | |
10209 | return NULL; | |
10210 | if (_argo0) { | |
10211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p."); | |
10214 | return NULL; | |
10215 | } | |
10216 | } | |
10217 | { | |
4268f798 | 10218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10219 | wxFileHistory_RemoveFileFromHistory(_arg0,_arg1); |
7dbce44a | 10220 | |
4268f798 RD |
10221 | wxPyEndAllowThreads(__tstate); |
10222 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10223 | } Py_INCREF(Py_None); |
10224 | _resultobj = Py_None; | |
10225 | return _resultobj; | |
10226 | } | |
10227 | ||
10228 | #define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles()) | |
10229 | static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10230 | PyObject * _resultobj; | |
10231 | int _result; | |
10232 | wxFileHistory * _arg0; | |
10233 | PyObject * _argo0 = 0; | |
10234 | char *_kwnames[] = { "self", NULL }; | |
10235 | ||
10236 | self = self; | |
10237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0)) | |
10238 | return NULL; | |
10239 | if (_argo0) { | |
10240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p."); | |
10243 | return NULL; | |
10244 | } | |
10245 | } | |
10246 | { | |
4268f798 | 10247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10248 | _result = (int )wxFileHistory_GetMaxFiles(_arg0); |
7dbce44a | 10249 | |
4268f798 RD |
10250 | wxPyEndAllowThreads(__tstate); |
10251 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10252 | } _resultobj = Py_BuildValue("i",_result); |
10253 | return _resultobj; | |
10254 | } | |
10255 | ||
10256 | #define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0)) | |
10257 | static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10258 | PyObject * _resultobj; | |
10259 | wxFileHistory * _arg0; | |
10260 | wxMenu * _arg1; | |
10261 | PyObject * _argo0 = 0; | |
10262 | PyObject * _argo1 = 0; | |
10263 | char *_kwnames[] = { "self","menu", NULL }; | |
10264 | ||
10265 | self = self; | |
10266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1)) | |
10267 | return NULL; | |
10268 | if (_argo0) { | |
10269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p."); | |
10272 | return NULL; | |
10273 | } | |
10274 | } | |
10275 | if (_argo1) { | |
10276 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10277 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p."); | |
10279 | return NULL; | |
10280 | } | |
10281 | } | |
10282 | { | |
4268f798 | 10283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10284 | wxFileHistory_UseMenu(_arg0,_arg1); |
7dbce44a | 10285 | |
4268f798 RD |
10286 | wxPyEndAllowThreads(__tstate); |
10287 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10288 | } Py_INCREF(Py_None); |
10289 | _resultobj = Py_None; | |
10290 | return _resultobj; | |
10291 | } | |
10292 | ||
10293 | #define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0)) | |
10294 | static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10295 | PyObject * _resultobj; | |
10296 | wxFileHistory * _arg0; | |
10297 | wxMenu * _arg1; | |
10298 | PyObject * _argo0 = 0; | |
10299 | PyObject * _argo1 = 0; | |
10300 | char *_kwnames[] = { "self","menu", NULL }; | |
10301 | ||
10302 | self = self; | |
10303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1)) | |
10304 | return NULL; | |
10305 | if (_argo0) { | |
10306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p."); | |
10309 | return NULL; | |
10310 | } | |
10311 | } | |
10312 | if (_argo1) { | |
10313 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10314 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p."); | |
10316 | return NULL; | |
10317 | } | |
10318 | } | |
10319 | { | |
4268f798 | 10320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10321 | wxFileHistory_RemoveMenu(_arg0,_arg1); |
7dbce44a | 10322 | |
4268f798 RD |
10323 | wxPyEndAllowThreads(__tstate); |
10324 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10325 | } Py_INCREF(Py_None); |
10326 | _resultobj = Py_None; | |
10327 | return _resultobj; | |
10328 | } | |
10329 | ||
10330 | #define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0)) | |
10331 | static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10332 | PyObject * _resultobj; | |
10333 | wxFileHistory * _arg0; | |
10334 | wxConfigBase * _arg1; | |
10335 | PyObject * _argo0 = 0; | |
10336 | PyObject * _argo1 = 0; | |
10337 | char *_kwnames[] = { "self","config", NULL }; | |
10338 | ||
10339 | self = self; | |
10340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1)) | |
10341 | return NULL; | |
10342 | if (_argo0) { | |
10343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p."); | |
10346 | return NULL; | |
10347 | } | |
10348 | } | |
10349 | if (_argo1) { | |
7e50db3f | 10350 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { |
7dbce44a RD |
10351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p."); |
10352 | return NULL; | |
10353 | } | |
10354 | } | |
10355 | { | |
4268f798 | 10356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10357 | wxFileHistory_Load(_arg0,*_arg1); |
7dbce44a | 10358 | |
4268f798 RD |
10359 | wxPyEndAllowThreads(__tstate); |
10360 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10361 | } Py_INCREF(Py_None); |
10362 | _resultobj = Py_None; | |
10363 | return _resultobj; | |
10364 | } | |
10365 | ||
10366 | #define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0)) | |
10367 | static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10368 | PyObject * _resultobj; | |
10369 | wxFileHistory * _arg0; | |
10370 | wxConfigBase * _arg1; | |
10371 | PyObject * _argo0 = 0; | |
10372 | PyObject * _argo1 = 0; | |
10373 | char *_kwnames[] = { "self","config", NULL }; | |
10374 | ||
10375 | self = self; | |
10376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1)) | |
10377 | return NULL; | |
10378 | if (_argo0) { | |
10379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p."); | |
10382 | return NULL; | |
10383 | } | |
10384 | } | |
10385 | if (_argo1) { | |
7e50db3f | 10386 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { |
7dbce44a RD |
10387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p."); |
10388 | return NULL; | |
10389 | } | |
10390 | } | |
10391 | { | |
4268f798 | 10392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10393 | wxFileHistory_Save(_arg0,*_arg1); |
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 | ||
10402 | #define wxFileHistory_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu()) | |
10403 | static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10404 | PyObject * _resultobj; | |
10405 | wxFileHistory * _arg0; | |
10406 | PyObject * _argo0 = 0; | |
10407 | char *_kwnames[] = { "self", NULL }; | |
10408 | ||
10409 | self = self; | |
10410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0)) | |
10411 | return NULL; | |
10412 | if (_argo0) { | |
10413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p."); | |
10416 | return NULL; | |
10417 | } | |
10418 | } | |
10419 | { | |
4268f798 | 10420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10421 | wxFileHistory_AddFilesToMenu(_arg0); |
7dbce44a | 10422 | |
4268f798 RD |
10423 | wxPyEndAllowThreads(__tstate); |
10424 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10425 | } Py_INCREF(Py_None); |
10426 | _resultobj = Py_None; | |
10427 | return _resultobj; | |
10428 | } | |
10429 | ||
68bc8549 RD |
10430 | #define wxFileHistory_AddFilesToThisMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0)) |
10431 | static PyObject *_wrap_wxFileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7dbce44a RD |
10432 | PyObject * _resultobj; |
10433 | wxFileHistory * _arg0; | |
10434 | wxMenu * _arg1; | |
10435 | PyObject * _argo0 = 0; | |
10436 | PyObject * _argo1 = 0; | |
10437 | char *_kwnames[] = { "self","menu", NULL }; | |
10438 | ||
10439 | self = self; | |
68bc8549 | 10440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToThisMenu",_kwnames,&_argo0,&_argo1)) |
7dbce44a RD |
10441 | return NULL; |
10442 | if (_argo0) { | |
10443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
68bc8549 | 10445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToThisMenu. Expected _wxFileHistory_p."); |
7dbce44a RD |
10446 | return NULL; |
10447 | } | |
10448 | } | |
10449 | if (_argo1) { | |
10450 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10451 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
68bc8549 | 10452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToThisMenu. Expected _wxMenu_p."); |
7dbce44a RD |
10453 | return NULL; |
10454 | } | |
10455 | } | |
10456 | { | |
4268f798 | 10457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
68bc8549 | 10458 | wxFileHistory_AddFilesToThisMenu(_arg0,_arg1); |
7dbce44a | 10459 | |
4268f798 RD |
10460 | wxPyEndAllowThreads(__tstate); |
10461 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10462 | } Py_INCREF(Py_None); |
10463 | _resultobj = Py_None; | |
10464 | return _resultobj; | |
10465 | } | |
10466 | ||
10467 | #define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0)) | |
10468 | static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10469 | PyObject * _resultobj; | |
10470 | wxString * _result; | |
10471 | wxFileHistory * _arg0; | |
10472 | int _arg1; | |
10473 | PyObject * _argo0 = 0; | |
10474 | char *_kwnames[] = { "self","i", NULL }; | |
10475 | ||
10476 | self = self; | |
10477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1)) | |
10478 | return NULL; | |
10479 | if (_argo0) { | |
10480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p."); | |
10483 | return NULL; | |
10484 | } | |
10485 | } | |
10486 | { | |
4268f798 | 10487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10488 | _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1)); |
7dbce44a | 10489 | |
4268f798 RD |
10490 | wxPyEndAllowThreads(__tstate); |
10491 | if (PyErr_Occurred()) return NULL; | |
7dbce44a | 10492 | }{ |
c8bc7bb8 | 10493 | #if wxUSE_UNICODE |
7e50db3f | 10494 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10495 | #else |
7dbce44a | 10496 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10497 | #endif |
7dbce44a RD |
10498 | } |
10499 | { | |
10500 | delete _result; | |
10501 | } | |
10502 | return _resultobj; | |
10503 | } | |
10504 | ||
10505 | #define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount()) | |
10506 | static PyObject *_wrap_wxFileHistory_GetCount(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_GetCount",_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_GetCount. Expected _wxFileHistory_p."); | |
10520 | return NULL; | |
10521 | } | |
10522 | } | |
10523 | { | |
4268f798 | 10524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10525 | _result = (int )wxFileHistory_GetCount(_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) { | |
7e50db3f | 10989 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { |
67a92fff RD |
10990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEffects_DrawSunkenEdge. Expected _wxDC_p."); |
10991 | return NULL; | |
10992 | } | |
10993 | } | |
10994 | { | |
10995 | _arg2 = &temp; | |
10996 | if (! wxRect_helper(_obj2, &_arg2)) | |
10997 | return NULL; | |
10998 | } | |
10999 | { | |
11000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11001 | wxEffects_DrawSunkenEdge(_arg0,*_arg1,*_arg2,_arg3); | |
11002 | ||
11003 | wxPyEndAllowThreads(__tstate); | |
11004 | if (PyErr_Occurred()) return NULL; | |
11005 | } Py_INCREF(Py_None); | |
11006 | _resultobj = Py_None; | |
11007 | return _resultobj; | |
11008 | } | |
11009 | ||
11010 | #define wxEffects_TileBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->TileBitmap(_swigarg0,_swigarg1,_swigarg2)) | |
11011 | static PyObject *_wrap_wxEffects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11012 | PyObject * _resultobj; | |
11013 | bool _result; | |
11014 | wxEffects * _arg0; | |
11015 | wxRect * _arg1; | |
11016 | wxDC * _arg2; | |
11017 | wxBitmap * _arg3; | |
11018 | PyObject * _argo0 = 0; | |
11019 | wxRect temp; | |
11020 | PyObject * _obj1 = 0; | |
11021 | PyObject * _argo2 = 0; | |
11022 | PyObject * _argo3 = 0; | |
11023 | char *_kwnames[] = { "self","rect","dc","bitmap", NULL }; | |
11024 | ||
11025 | self = self; | |
11026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxEffects_TileBitmap",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
11027 | return NULL; | |
11028 | if (_argo0) { | |
11029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
11031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_TileBitmap. Expected _wxEffects_p."); | |
11032 | return NULL; | |
11033 | } | |
11034 | } | |
11035 | { | |
11036 | _arg1 = &temp; | |
11037 | if (! wxRect_helper(_obj1, &_arg1)) | |
11038 | return NULL; | |
11039 | } | |
11040 | if (_argo2) { | |
7e50db3f | 11041 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { |
67a92fff RD |
11042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxEffects_TileBitmap. Expected _wxDC_p."); |
11043 | return NULL; | |
11044 | } | |
11045 | } | |
11046 | if (_argo3) { | |
7e50db3f | 11047 | if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { |
67a92fff RD |
11048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxEffects_TileBitmap. Expected _wxBitmap_p."); |
11049 | return NULL; | |
11050 | } | |
11051 | } | |
11052 | { | |
11053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11054 | _result = (bool )wxEffects_TileBitmap(_arg0,*_arg1,*_arg2,*_arg3); | |
11055 | ||
11056 | wxPyEndAllowThreads(__tstate); | |
11057 | if (PyErr_Occurred()) return NULL; | |
11058 | } _resultobj = Py_BuildValue("i",_result); | |
11059 | return _resultobj; | |
11060 | } | |
11061 | ||
11062 | #define new_wxSingleInstanceChecker(_swigarg0,_swigarg1) (new wxSingleInstanceChecker(_swigarg0,_swigarg1)) | |
11063 | static PyObject *_wrap_new_wxSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11064 | PyObject * _resultobj; | |
11065 | wxSingleInstanceChecker * _result; | |
11066 | wxString * _arg0; | |
11067 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
11068 | PyObject * _obj0 = 0; | |
11069 | PyObject * _obj1 = 0; | |
11070 | char *_kwnames[] = { "name","path", NULL }; | |
11071 | char _ptemp[128]; | |
11072 | ||
11073 | self = self; | |
11074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxSingleInstanceChecker",_kwnames,&_obj0,&_obj1)) | |
11075 | return NULL; | |
11076 | { | |
11077 | _arg0 = wxString_in_helper(_obj0); | |
11078 | if (_arg0 == NULL) | |
11079 | return NULL; | |
11080 | } | |
11081 | if (_obj1) | |
11082 | { | |
11083 | _arg1 = wxString_in_helper(_obj1); | |
11084 | if (_arg1 == NULL) | |
11085 | return NULL; | |
11086 | } | |
11087 | { | |
11088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11089 | _result = (wxSingleInstanceChecker *)new_wxSingleInstanceChecker(*_arg0,*_arg1); | |
11090 | ||
11091 | wxPyEndAllowThreads(__tstate); | |
11092 | if (PyErr_Occurred()) return NULL; | |
11093 | } if (_result) { | |
11094 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSingleInstanceChecker_p"); | |
11095 | _resultobj = Py_BuildValue("s",_ptemp); | |
11096 | } else { | |
11097 | Py_INCREF(Py_None); | |
11098 | _resultobj = Py_None; | |
11099 | } | |
11100 | { | |
11101 | if (_obj0) | |
11102 | delete _arg0; | |
11103 | } | |
11104 | { | |
11105 | if (_obj1) | |
11106 | delete _arg1; | |
11107 | } | |
11108 | return _resultobj; | |
11109 | } | |
11110 | ||
11111 | #define new_wxPreSingleInstanceChecker() (new wxSingleInstanceChecker()) | |
11112 | static PyObject *_wrap_new_wxPreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11113 | PyObject * _resultobj; | |
11114 | wxSingleInstanceChecker * _result; | |
11115 | char *_kwnames[] = { NULL }; | |
11116 | char _ptemp[128]; | |
11117 | ||
11118 | self = self; | |
11119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSingleInstanceChecker",_kwnames)) | |
11120 | return NULL; | |
11121 | { | |
11122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11123 | _result = (wxSingleInstanceChecker *)new_wxPreSingleInstanceChecker(); | |
11124 | ||
11125 | wxPyEndAllowThreads(__tstate); | |
11126 | if (PyErr_Occurred()) return NULL; | |
11127 | } if (_result) { | |
11128 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSingleInstanceChecker_p"); | |
11129 | _resultobj = Py_BuildValue("s",_ptemp); | |
11130 | } else { | |
11131 | Py_INCREF(Py_None); | |
11132 | _resultobj = Py_None; | |
11133 | } | |
11134 | return _resultobj; | |
11135 | } | |
11136 | ||
11137 | #define delete_wxSingleInstanceChecker(_swigobj) (delete _swigobj) | |
11138 | static PyObject *_wrap_delete_wxSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11139 | PyObject * _resultobj; | |
11140 | wxSingleInstanceChecker * _arg0; | |
11141 | PyObject * _argo0 = 0; | |
11142 | char *_kwnames[] = { "self", NULL }; | |
11143 | ||
11144 | self = self; | |
11145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxSingleInstanceChecker",_kwnames,&_argo0)) | |
11146 | return NULL; | |
11147 | if (_argo0) { | |
11148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleInstanceChecker_p")) { | |
11150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxSingleInstanceChecker. Expected _wxSingleInstanceChecker_p."); | |
11151 | return NULL; | |
11152 | } | |
11153 | } | |
11154 | { | |
11155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11156 | delete_wxSingleInstanceChecker(_arg0); | |
11157 | ||
11158 | wxPyEndAllowThreads(__tstate); | |
11159 | if (PyErr_Occurred()) return NULL; | |
11160 | } Py_INCREF(Py_None); | |
11161 | _resultobj = Py_None; | |
11162 | return _resultobj; | |
11163 | } | |
11164 | ||
11165 | #define wxSingleInstanceChecker_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1)) | |
11166 | static PyObject *_wrap_wxSingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11167 | PyObject * _resultobj; | |
11168 | bool _result; | |
11169 | wxSingleInstanceChecker * _arg0; | |
11170 | wxString * _arg1; | |
11171 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
11172 | PyObject * _argo0 = 0; | |
11173 | PyObject * _obj1 = 0; | |
11174 | PyObject * _obj2 = 0; | |
11175 | char *_kwnames[] = { "self","name","path", NULL }; | |
11176 | ||
11177 | self = self; | |
11178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxSingleInstanceChecker_Create",_kwnames,&_argo0,&_obj1,&_obj2)) | |
11179 | return NULL; | |
11180 | if (_argo0) { | |
11181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleInstanceChecker_p")) { | |
11183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleInstanceChecker_Create. Expected _wxSingleInstanceChecker_p."); | |
11184 | return NULL; | |
11185 | } | |
11186 | } | |
11187 | { | |
11188 | _arg1 = wxString_in_helper(_obj1); | |
11189 | if (_arg1 == NULL) | |
11190 | return NULL; | |
11191 | } | |
11192 | if (_obj2) | |
11193 | { | |
11194 | _arg2 = wxString_in_helper(_obj2); | |
11195 | if (_arg2 == NULL) | |
11196 | return NULL; | |
11197 | } | |
11198 | { | |
11199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11200 | _result = (bool )wxSingleInstanceChecker_Create(_arg0,*_arg1,*_arg2); | |
11201 | ||
11202 | wxPyEndAllowThreads(__tstate); | |
11203 | if (PyErr_Occurred()) return NULL; | |
11204 | } _resultobj = Py_BuildValue("i",_result); | |
11205 | { | |
11206 | if (_obj1) | |
11207 | delete _arg1; | |
11208 | } | |
11209 | { | |
11210 | if (_obj2) | |
11211 | delete _arg2; | |
11212 | } | |
11213 | return _resultobj; | |
11214 | } | |
11215 | ||
11216 | #define wxSingleInstanceChecker_IsAnotherRunning(_swigobj) (_swigobj->IsAnotherRunning()) | |
11217 | static PyObject *_wrap_wxSingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11218 | PyObject * _resultobj; | |
11219 | bool _result; | |
11220 | wxSingleInstanceChecker * _arg0; | |
11221 | PyObject * _argo0 = 0; | |
11222 | char *_kwnames[] = { "self", NULL }; | |
11223 | ||
11224 | self = self; | |
11225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleInstanceChecker_IsAnotherRunning",_kwnames,&_argo0)) | |
11226 | return NULL; | |
11227 | if (_argo0) { | |
11228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleInstanceChecker_p")) { | |
11230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleInstanceChecker_IsAnotherRunning. Expected _wxSingleInstanceChecker_p."); | |
11231 | return NULL; | |
11232 | } | |
11233 | } | |
11234 | { | |
11235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11236 | _result = (bool )wxSingleInstanceChecker_IsAnotherRunning(_arg0); | |
11237 | ||
11238 | wxPyEndAllowThreads(__tstate); | |
11239 | if (PyErr_Occurred()) return NULL; | |
11240 | } _resultobj = Py_BuildValue("i",_result); | |
11241 | return _resultobj; | |
11242 | } | |
11243 | ||
bb0054cd | 11244 | static PyMethodDef misc2cMethods[] = { |
67a92fff RD |
11245 | { "wxSingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_wxSingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, |
11246 | { "wxSingleInstanceChecker_Create", (PyCFunction) _wrap_wxSingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
11247 | { "delete_wxSingleInstanceChecker", (PyCFunction) _wrap_delete_wxSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
11248 | { "new_wxPreSingleInstanceChecker", (PyCFunction) _wrap_new_wxPreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
11249 | { "new_wxSingleInstanceChecker", (PyCFunction) _wrap_new_wxSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
11250 | { "wxEffects_TileBitmap", (PyCFunction) _wrap_wxEffects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11251 | { "wxEffects_DrawSunkenEdge", (PyCFunction) _wrap_wxEffects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
11252 | { "wxEffects_Set", (PyCFunction) _wrap_wxEffects_Set, METH_VARARGS | METH_KEYWORDS }, | |
11253 | { "wxEffects_SetDarkShadow", (PyCFunction) _wrap_wxEffects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
11254 | { "wxEffects_SetMediumShadow", (PyCFunction) _wrap_wxEffects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
11255 | { "wxEffects_SetFaceColour", (PyCFunction) _wrap_wxEffects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
11256 | { "wxEffects_SetLightShadow", (PyCFunction) _wrap_wxEffects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
11257 | { "wxEffects_SetHighlightColour", (PyCFunction) _wrap_wxEffects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
11258 | { "wxEffects_GetDarkShadow", (PyCFunction) _wrap_wxEffects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
11259 | { "wxEffects_GetMediumShadow", (PyCFunction) _wrap_wxEffects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
11260 | { "wxEffects_GetFaceColour", (PyCFunction) _wrap_wxEffects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
11261 | { "wxEffects_GetLightShadow", (PyCFunction) _wrap_wxEffects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
11262 | { "wxEffects_GetHighlightColour", (PyCFunction) _wrap_wxEffects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
11263 | { "new_wxEffects", (PyCFunction) _wrap_new_wxEffects, METH_VARARGS | METH_KEYWORDS }, | |
7dbce44a RD |
11264 | { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, |
11265 | { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
68bc8549 | 11266 | { "wxFileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, |
7dbce44a RD |
11267 | { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, |
11268 | { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
11269 | { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
11270 | { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
11271 | { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
11272 | { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
11273 | { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
11274 | { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
11275 | { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
11276 | { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
72797a7d RD |
11277 | { "wxArtProvider_GetIcon", (PyCFunction) _wrap_wxArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, |
11278 | { "wxArtProvider_GetBitmap", (PyCFunction) _wrap_wxArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11279 | { "wxArtProvider_RemoveProvider", (PyCFunction) _wrap_wxArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
11280 | { "wxArtProvider_PopProvider", (PyCFunction) _wrap_wxArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
11281 | { "wxArtProvider_PushProvider", (PyCFunction) _wrap_wxArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
11282 | { "wxArtProvider__setCallbackInfo", (PyCFunction) _wrap_wxArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
11283 | { "new_wxArtProvider", (PyCFunction) _wrap_new_wxArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
11284 | { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, |
11285 | { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
11286 | { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
11287 | { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
11288 | { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
11289 | { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
11290 | { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
11291 | { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
11292 | { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
11293 | { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
11294 | { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
11295 | { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
11296 | { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
11297 | { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
11298 | { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
11299 | { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
11300 | { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
11301 | { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
11302 | { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
11303 | { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
11304 | { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
11305 | { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
11306 | { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
11307 | { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11308 | { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
11309 | { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
11310 | { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
11311 | { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
11312 | { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
11313 | { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
11314 | { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
11315 | { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
11316 | { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
11317 | { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
11318 | { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
11319 | { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
11320 | { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
11321 | { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
11322 | { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11323 | { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
11324 | { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
11325 | { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
11326 | { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 RD |
11327 | { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS }, |
11328 | { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
11329 | { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
11330 | { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
185d7c3e RD |
11331 | { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, |
11332 | { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
11333 | { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
11334 | { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
11335 | { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
11336 | { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
11337 | { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
11338 | { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
11339 | { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
11340 | { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
11341 | { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
11342 | { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
11343 | { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
11344 | { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
11345 | { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
11346 | { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
11347 | { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
11348 | { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
11349 | { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
11350 | { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
11351 | { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
11352 | { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
11353 | { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
11354 | { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
11355 | { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
11356 | { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
11357 | { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
11358 | { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
11359 | { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
11360 | { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
11361 | { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
11362 | { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
11363 | { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
11364 | { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
11365 | { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
11366 | { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
11367 | { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
11368 | { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
11369 | { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
11370 | { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
11371 | { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
11372 | { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 11373 | { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
185d7c3e | 11374 | { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
85260f24 RD |
11375 | { "wxProcess_IsErrorAvailable", (PyCFunction) _wrap_wxProcess_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, |
11376 | { "wxProcess_IsInputAvailable", (PyCFunction) _wrap_wxProcess_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
11377 | { "wxProcess_IsInputOpened", (PyCFunction) _wrap_wxProcess_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
11378 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, |
11379 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
11380 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
11381 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
11382 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
11383 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
11384 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
11385 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 11386 | { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
11387 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, |
11388 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
814f509c RD |
11389 | { "wxProcess_Open", (PyCFunction) _wrap_wxProcess_Open, METH_VARARGS | METH_KEYWORDS }, |
11390 | { "wxProcess_Exists", (PyCFunction) _wrap_wxProcess_Exists, METH_VARARGS | METH_KEYWORDS }, | |
11391 | { "wxProcess_Kill", (PyCFunction) _wrap_wxProcess_Kill, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
11392 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, |
11393 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
11394 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
11395 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
11396 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
11397 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
11398 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 11399 | { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 11400 | { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 11401 | { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS }, |
19e30148 RD |
11402 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, |
11403 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
11404 | { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, |
11405 | { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
11406 | { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
11407 | { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
11408 | { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11409 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, |
11410 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
11411 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
11412 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
11413 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
11414 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
11415 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
11416 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11417 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 11418 | { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS }, |
7e50db3f RD |
11419 | { "wxLog_GetLogLevel", (PyCFunction) _wrap_wxLog_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, |
11420 | { "wxLog_SetLogLevel", (PyCFunction) _wrap_wxLog_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11421 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, |
11422 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11423 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
11424 | { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, |
11425 | { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
67a92fff | 11426 | { "wxLog_GetTraceMasks", (PyCFunction) _wrap_wxLog_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 11427 | { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11428 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, |
11429 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11430 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11431 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
11432 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
11433 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
11434 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
11435 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
11436 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
11437 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11438 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, |
11439 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
11440 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
11441 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11442 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
11443 | { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS }, |
11444 | { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
11445 | { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
11446 | { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
68320e40 | 11447 | { "delete_wxStopWatch", (PyCFunction) _wrap_delete_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
b37c7e1d | 11448 | { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11449 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, |
11450 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
11451 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
11452 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
11453 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
11454 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
11455 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
11456 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
11457 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
11458 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
11459 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
11460 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
11461 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
11462 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
7e50db3f | 11463 | { "wxDragImage_BeginDragBounded", (PyCFunction) _wrap_wxDragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 11464 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, |
10e07c70 | 11465 | { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 11466 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
cdf14688 RD |
11467 | { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, |
11468 | { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
11469 | { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
11470 | { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11471 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
cf276873 | 11472 | { "wxPyTipProvider__setCallbackInfo", (PyCFunction) _wrap_wxPyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 11473 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, |
67a92fff | 11474 | { "wxTipProvider_PreprocessTip", (PyCFunction) _wrap_wxTipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11475 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, |
11476 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
11477 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
11478 | { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, |
11479 | { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
11480 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, |
11481 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f RD |
11482 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, |
11483 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
11484 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, |
11485 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
11486 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, |
11487 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
11488 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, |
11489 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
11490 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11491 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11492 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11493 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
11494 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
11495 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
11496 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
11497 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
11498 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
edf2f43e RD |
11499 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, |
11500 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11501 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
11502 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
11503 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
11504 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
5a2a9da2 RD |
11505 | { "wxSystemOptions_HasOption", (PyCFunction) _wrap_wxSystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, |
11506 | { "wxSystemOptions_GetOptionInt", (PyCFunction) _wrap_wxSystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
11507 | { "wxSystemOptions_GetOption", (PyCFunction) _wrap_wxSystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
11508 | { "wxSystemOptions_SetOptionInt", (PyCFunction) _wrap_wxSystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
11509 | { "wxSystemOptions_SetOption", (PyCFunction) _wrap_wxSystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
11510 | { "new_wxSystemOptions", (PyCFunction) _wrap_new_wxSystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
e67409dc RD |
11511 | { "wxSystemSettings_SetScreenType", (PyCFunction) _wrap_wxSystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, |
11512 | { "wxSystemSettings_GetScreenType", (PyCFunction) _wrap_wxSystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
11513 | { "wxSystemSettings_HasFeature", (PyCFunction) _wrap_wxSystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, |
11514 | { "wxSystemSettings_GetMetric", (PyCFunction) _wrap_wxSystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
11515 | { "wxSystemSettings_GetFont", (PyCFunction) _wrap_wxSystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11516 | { "wxSystemSettings_GetColour", (PyCFunction) _wrap_wxSystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 | 11517 | { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 11518 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, |
0b85cc38 | 11519 | { "wxSafeShowMessage", (PyCFunction) _wrap_wxSafeShowMessage, METH_VARARGS | METH_KEYWORDS }, |
be13a6af RD |
11520 | { "wxLogGeneric", (PyCFunction) _wrap_wxLogGeneric, METH_VARARGS | METH_KEYWORDS }, |
11521 | { "wxLogTraceMask", (PyCFunction) _wrap_wxLogTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11522 | { "wxLogTrace", (PyCFunction) _wrap_wxLogTrace, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11523 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, |
11524 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
11525 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
11526 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
7e50db3f | 11527 | { "wxLogDebug", (PyCFunction) _wrap_wxLogDebug, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11528 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, |
11529 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
11530 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
11531 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
11532 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
11533 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
11534 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11535 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, |
11536 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
11537 | { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS }, |
11538 | { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
11539 | { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
11540 | { "wxWakeUpMainThread", (PyCFunction) _wrap_wxWakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 11541 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11542 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, |
6e18ca6c | 11543 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 RD |
11544 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, |
11545 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
2a74d141 | 11546 | { "wxGetTopLevelParent", (PyCFunction) _wrap_wxGetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, |
493f1553 RD |
11547 | { "wxCheckForInterrupt", (PyCFunction) _wrap_wxCheckForInterrupt, METH_VARARGS | METH_KEYWORDS }, |
11548 | { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
11549 | { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
11550 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, |
11551 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 11552 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, |
91c41b30 RD |
11553 | { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, |
11554 | { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
1e7ecb7b RD |
11555 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, |
11556 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
11557 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
11558 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
11559 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
11560 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, |
11561 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
11562 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
11563 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
11564 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
11565 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 11566 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, |
06c0fba4 | 11567 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, |
7cdaed0b | 11568 | { "wxDirSelector", (PyCFunction) _wrap_wxDirSelector, METH_VARARGS | METH_KEYWORDS }, |
a541c325 RD |
11569 | { "wxSaveFileSelector", (PyCFunction) _wrap_wxSaveFileSelector, METH_VARARGS | METH_KEYWORDS }, |
11570 | { "wxLoadFileSelector", (PyCFunction) _wrap_wxLoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 11571 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, |
bb0054cd RD |
11572 | { NULL, NULL } |
11573 | }; | |
1d99702e RD |
11574 | #ifdef __cplusplus |
11575 | } | |
11576 | #endif | |
11577 | /* | |
11578 | * This table is used by the pointer type-checker | |
11579 | */ | |
11580 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
c368d904 | 11581 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, |
1d99702e | 11582 | { "_signed_long","_long",0}, |
b1462dfa | 11583 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11584 | { "_wxPrintQuality","_int",0}, |
11585 | { "_wxPrintQuality","_signed_int",0}, | |
11586 | { "_wxPrintQuality","_unsigned_int",0}, | |
11587 | { "_wxPrintQuality","_wxWindowID",0}, | |
11588 | { "_wxPrintQuality","_uint",0}, | |
11589 | { "_wxPrintQuality","_EBool",0}, | |
11590 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11591 | { "_wxPrintQuality","_time_t",0}, |
76bfdc78 RD |
11592 | { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog}, |
11593 | { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog}, | |
f6bcfd97 | 11594 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, |
f6bcfd97 | 11595 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, |
f6bcfd97 | 11596 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, |
f6bcfd97 | 11597 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, |
1d99702e | 11598 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
11599 | { "_long","_unsigned_long",0}, |
11600 | { "_long","_signed_long",0}, | |
b1462dfa | 11601 | { "_size_t","_wxCoord",0}, |
1d99702e | 11602 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11603 | { "_size_t","_time_t",0}, |
1d99702e RD |
11604 | { "_size_t","_unsigned_int",0}, |
11605 | { "_size_t","_int",0}, | |
11606 | { "_size_t","_wxWindowID",0}, | |
11607 | { "_size_t","_uint",0}, | |
b1462dfa | 11608 | { "_uint","_wxCoord",0}, |
1d99702e | 11609 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11610 | { "_uint","_time_t",0}, |
1d99702e RD |
11611 | { "_uint","_size_t",0}, |
11612 | { "_uint","_unsigned_int",0}, | |
11613 | { "_uint","_int",0}, | |
11614 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11615 | { "_wxChar","_char",0}, |
f6bcfd97 | 11616 | { "_char","_wxChar",0}, |
cdf14688 | 11617 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11618 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11619 | { "_EBool","_wxPrintQuality",0}, |
11620 | { "_EBool","_signed_int",0}, | |
11621 | { "_EBool","_int",0}, | |
11622 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11623 | { "_unsigned_long","_long",0}, |
cdf14688 | 11624 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11625 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11626 | { "_signed_int","_wxPrintQuality",0}, |
11627 | { "_signed_int","_EBool",0}, | |
11628 | { "_signed_int","_wxWindowID",0}, | |
11629 | { "_signed_int","_int",0}, | |
7dbce44a | 11630 | { "_WXTYPE","_wxDateTime_t",0}, |
1d99702e RD |
11631 | { "_WXTYPE","_short",0}, |
11632 | { "_WXTYPE","_signed_short",0}, | |
11633 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 | 11634 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, |
7dbce44a | 11635 | { "_unsigned_short","_wxDateTime_t",0}, |
1d99702e RD |
11636 | { "_unsigned_short","_WXTYPE",0}, |
11637 | { "_unsigned_short","_short",0}, | |
67a92fff | 11638 | { "_wxObject","_wxEffects",SwigwxEffectsTowxObject}, |
7dbce44a | 11639 | { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject}, |
72797a7d | 11640 | { "_wxObject","_wxPyArtProvider",SwigwxPyArtProviderTowxObject}, |
493f1553 | 11641 | { "_wxObject","_wxWave",SwigwxWaveTowxObject}, |
9416aa89 | 11642 | { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject}, |
9416aa89 | 11643 | { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject}, |
9416aa89 | 11644 | { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject}, |
9416aa89 | 11645 | { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject}, |
9416aa89 | 11646 | { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject}, |
9416aa89 | 11647 | { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject}, |
5a2a9da2 | 11648 | { "_wxObject","_wxSystemOptions",SwigwxSystemOptionsTowxObject}, |
1d99702e RD |
11649 | { "_signed_short","_WXTYPE",0}, |
11650 | { "_signed_short","_short",0}, | |
1d99702e | 11651 | { "_unsigned_char","_byte",0}, |
b1462dfa | 11652 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11653 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11654 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11655 | { "_unsigned_int","_size_t",0}, |
11656 | { "_unsigned_int","_uint",0}, | |
11657 | { "_unsigned_int","_wxWindowID",0}, | |
11658 | { "_unsigned_int","_int",0}, | |
7dbce44a | 11659 | { "_short","_wxDateTime_t",0}, |
1d99702e RD |
11660 | { "_short","_WXTYPE",0}, |
11661 | { "_short","_unsigned_short",0}, | |
11662 | { "_short","_signed_short",0}, | |
b1462dfa | 11663 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11664 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11665 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11666 | { "_wxWindowID","_size_t",0}, |
11667 | { "_wxWindowID","_EBool",0}, | |
11668 | { "_wxWindowID","_uint",0}, | |
11669 | { "_wxWindowID","_int",0}, | |
11670 | { "_wxWindowID","_signed_int",0}, | |
11671 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11672 | { "_int","_wxCoord",0}, |
1d99702e | 11673 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11674 | { "_int","_time_t",0}, |
1d99702e RD |
11675 | { "_int","_size_t",0}, |
11676 | { "_int","_EBool",0}, | |
11677 | { "_int","_uint",0}, | |
11678 | { "_int","_wxWindowID",0}, | |
11679 | { "_int","_unsigned_int",0}, | |
11680 | { "_int","_signed_int",0}, | |
7dbce44a RD |
11681 | { "_wxDateTime_t","_unsigned_short",0}, |
11682 | { "_wxDateTime_t","_short",0}, | |
11683 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
11684 | { "_time_t","_wxCoord",0}, |
11685 | { "_time_t","_wxPrintQuality",0}, | |
11686 | { "_time_t","_unsigned_int",0}, | |
11687 | { "_time_t","_int",0}, | |
11688 | { "_time_t","_wxWindowID",0}, | |
11689 | { "_time_t","_uint",0}, | |
11690 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11691 | { "_wxCoord","_int",0}, |
11692 | { "_wxCoord","_signed_int",0}, | |
11693 | { "_wxCoord","_unsigned_int",0}, | |
11694 | { "_wxCoord","_wxWindowID",0}, | |
11695 | { "_wxCoord","_uint",0}, | |
11696 | { "_wxCoord","_EBool",0}, | |
11697 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11698 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11699 | { "_wxCoord","_wxPrintQuality",0}, |
c368d904 | 11700 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, |
1d99702e RD |
11701 | {0,0,0}}; |
11702 | ||
bb0054cd RD |
11703 | static PyObject *SWIG_globals; |
11704 | #ifdef __cplusplus | |
11705 | extern "C" | |
11706 | #endif | |
1d99702e | 11707 | SWIGEXPORT(void) initmisc2c() { |
bb0054cd RD |
11708 | PyObject *m, *d; |
11709 | SWIG_globals = SWIG_newvarlink(); | |
11710 | m = Py_InitModule("misc2c", misc2cMethods); | |
11711 | d = PyModule_GetDict(m); | |
06c0fba4 RD |
11712 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); |
11713 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
11714 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
11715 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
11716 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
11717 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
11718 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
11719 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
11720 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
11721 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
c6c593e8 | 11722 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); |
06c0fba4 RD |
11723 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); |
11724 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
11725 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
11726 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
11727 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
11728 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
11729 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
11730 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
11731 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
11732 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
11733 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
11734 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
11735 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
11736 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
c6c593e8 | 11737 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); |
06c0fba4 | 11738 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); |
c6c593e8 | 11739 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); |
06c0fba4 RD |
11740 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); |
11741 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
11742 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
11743 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
c6c593e8 RD |
11744 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); |
11745 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
11746 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
06c0fba4 RD |
11747 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); |
11748 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
11749 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
11750 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
b5a5d647 | 11751 | PyDict_SetItemString(d,"wxSYS_COLOUR_LISTBOX", PyInt_FromLong((long) wxSYS_COLOUR_LISTBOX)); |
c6c593e8 RD |
11752 | PyDict_SetItemString(d,"wxSYS_COLOUR_HOTLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HOTLIGHT)); |
11753 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
11754 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTINACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
11755 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_MENUHILIGHT)); | |
11756 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUBAR", PyInt_FromLong((long) wxSYS_COLOUR_MENUBAR)); | |
11757 | PyDict_SetItemString(d,"wxSYS_COLOUR_MAX", PyInt_FromLong((long) wxSYS_COLOUR_MAX)); | |
06c0fba4 RD |
11758 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); |
11759 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
11760 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
11761 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
11762 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
11763 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
11764 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
11765 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
11766 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
11767 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
11768 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
11769 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
11770 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
11771 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
11772 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
11773 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
11774 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
11775 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
11776 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
11777 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
11778 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
11779 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
11780 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
11781 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
11782 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
11783 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
11784 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
11785 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
11786 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
11787 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
11788 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
11789 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
11790 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
11791 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
11792 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
11793 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
11794 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
b5a5d647 RD |
11795 | PyDict_SetItemString(d,"wxSYS_CAN_DRAW_FRAME_DECORATIONS", PyInt_FromLong((long) wxSYS_CAN_DRAW_FRAME_DECORATIONS)); |
11796 | PyDict_SetItemString(d,"wxSYS_CAN_ICONIZE_FRAME", PyInt_FromLong((long) wxSYS_CAN_ICONIZE_FRAME)); | |
daa3eac9 | 11797 | PyDict_SetItemString(d,"wxSYS_SCREEN_NONE", PyInt_FromLong((long) wxSYS_SCREEN_NONE)); |
daa3eac9 | 11798 | PyDict_SetItemString(d,"wxSYS_SCREEN_TINY", PyInt_FromLong((long) wxSYS_SCREEN_TINY)); |
e67409dc RD |
11799 | PyDict_SetItemString(d,"wxSYS_SCREEN_PDA", PyInt_FromLong((long) wxSYS_SCREEN_PDA)); |
11800 | PyDict_SetItemString(d,"wxSYS_SCREEN_SMALL", PyInt_FromLong((long) wxSYS_SCREEN_SMALL)); | |
11801 | PyDict_SetItemString(d,"wxSYS_SCREEN_DESKTOP", PyInt_FromLong((long) wxSYS_SCREEN_DESKTOP)); | |
f6bcfd97 BP |
11802 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); |
11803 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
11804 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
11805 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
11806 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
11807 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
11808 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
11809 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
11810 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
11811 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
8baa46e9 RD |
11812 | PyDict_SetItemString(d,"wxTRACE_MemAlloc", PyString_FromString("memalloc")); |
11813 | PyDict_SetItemString(d,"wxTRACE_Messages", PyString_FromString("messages")); | |
11814 | PyDict_SetItemString(d,"wxTRACE_ResAlloc", PyString_FromString("resalloc")); | |
11815 | PyDict_SetItemString(d,"wxTRACE_RefCount", PyString_FromString("refcount")); | |
11816 | PyDict_SetItemString(d,"wxTRACE_OleCalls", PyString_FromString("ole")); | |
11817 | PyDict_SetItemString(d,"wxTraceMemAlloc", PyInt_FromLong((long) wxTraceMemAlloc)); | |
11818 | PyDict_SetItemString(d,"wxTraceMessages", PyInt_FromLong((long) wxTraceMessages)); | |
11819 | PyDict_SetItemString(d,"wxTraceResAlloc", PyInt_FromLong((long) wxTraceResAlloc)); | |
11820 | PyDict_SetItemString(d,"wxTraceRefCount", PyInt_FromLong((long) wxTraceRefCount)); | |
11821 | PyDict_SetItemString(d,"wxTraceOleCalls", PyInt_FromLong((long) wxTraceOleCalls)); | |
814f509c RD |
11822 | PyDict_SetItemString(d,"wxKILL_OK", PyInt_FromLong((long) wxKILL_OK)); |
11823 | PyDict_SetItemString(d,"wxKILL_BAD_SIGNAL", PyInt_FromLong((long) wxKILL_BAD_SIGNAL)); | |
11824 | PyDict_SetItemString(d,"wxKILL_ACCESS_DENIED", PyInt_FromLong((long) wxKILL_ACCESS_DENIED)); | |
11825 | PyDict_SetItemString(d,"wxKILL_NO_PROCESS", PyInt_FromLong((long) wxKILL_NO_PROCESS)); | |
11826 | PyDict_SetItemString(d,"wxKILL_ERROR", PyInt_FromLong((long) wxKILL_ERROR)); | |
1883480f RD |
11827 | PyDict_SetItemString(d,"wxSIGNONE", PyInt_FromLong((long) wxSIGNONE)); |
11828 | PyDict_SetItemString(d,"wxSIGHUP", PyInt_FromLong((long) wxSIGHUP)); | |
11829 | PyDict_SetItemString(d,"wxSIGINT", PyInt_FromLong((long) wxSIGINT)); | |
11830 | PyDict_SetItemString(d,"wxSIGQUIT", PyInt_FromLong((long) wxSIGQUIT)); | |
11831 | PyDict_SetItemString(d,"wxSIGILL", PyInt_FromLong((long) wxSIGILL)); | |
11832 | PyDict_SetItemString(d,"wxSIGTRAP", PyInt_FromLong((long) wxSIGTRAP)); | |
11833 | PyDict_SetItemString(d,"wxSIGABRT", PyInt_FromLong((long) wxSIGABRT)); | |
11834 | PyDict_SetItemString(d,"wxSIGIOT", PyInt_FromLong((long) wxSIGIOT)); | |
11835 | PyDict_SetItemString(d,"wxSIGEMT", PyInt_FromLong((long) wxSIGEMT)); | |
11836 | PyDict_SetItemString(d,"wxSIGFPE", PyInt_FromLong((long) wxSIGFPE)); | |
11837 | PyDict_SetItemString(d,"wxSIGKILL", PyInt_FromLong((long) wxSIGKILL)); | |
11838 | PyDict_SetItemString(d,"wxSIGBUS", PyInt_FromLong((long) wxSIGBUS)); | |
11839 | PyDict_SetItemString(d,"wxSIGSEGV", PyInt_FromLong((long) wxSIGSEGV)); | |
11840 | PyDict_SetItemString(d,"wxSIGSYS", PyInt_FromLong((long) wxSIGSYS)); | |
11841 | PyDict_SetItemString(d,"wxSIGPIPE", PyInt_FromLong((long) wxSIGPIPE)); | |
11842 | PyDict_SetItemString(d,"wxSIGALRM", PyInt_FromLong((long) wxSIGALRM)); | |
11843 | PyDict_SetItemString(d,"wxSIGTERM", PyInt_FromLong((long) wxSIGTERM)); | |
11844 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); | |
b96c7a38 RD |
11845 | PyDict_SetItemString(d,"wxEXEC_ASYNC", PyInt_FromLong((long) wxEXEC_ASYNC)); |
11846 | PyDict_SetItemString(d,"wxEXEC_SYNC", PyInt_FromLong((long) wxEXEC_SYNC)); | |
11847 | PyDict_SetItemString(d,"wxEXEC_NOHIDE", PyInt_FromLong((long) wxEXEC_NOHIDE)); | |
d6eacb25 | 11848 | PyDict_SetItemString(d,"wxEXEC_MAKE_GROUP_LEADER", PyInt_FromLong((long) wxEXEC_MAKE_GROUP_LEADER)); |
3eb221f6 RD |
11849 | PyDict_SetItemString(d,"wxJOYSTICK1", PyInt_FromLong((long) wxJOYSTICK1)); |
11850 | PyDict_SetItemString(d,"wxJOYSTICK2", PyInt_FromLong((long) wxJOYSTICK2)); | |
11851 | PyDict_SetItemString(d,"wxJOY_BUTTON_ANY", PyInt_FromLong((long) wxJOY_BUTTON_ANY)); | |
11852 | PyDict_SetItemString(d,"wxJOY_BUTTON1", PyInt_FromLong((long) wxJOY_BUTTON1)); | |
11853 | PyDict_SetItemString(d,"wxJOY_BUTTON2", PyInt_FromLong((long) wxJOY_BUTTON2)); | |
11854 | PyDict_SetItemString(d,"wxJOY_BUTTON3", PyInt_FromLong((long) wxJOY_BUTTON3)); | |
11855 | PyDict_SetItemString(d,"wxJOY_BUTTON4", PyInt_FromLong((long) wxJOY_BUTTON4)); | |
b37c7e1d RD |
11856 | PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD)); |
11857 | PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE)); | |
11858 | PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE)); | |
11859 | PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME)); | |
11860 | PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL)); | |
11861 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
11862 | SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set); | |
9416aa89 | 11863 | |
9416aa89 RD |
11864 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); |
11865 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
72797a7d | 11866 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); |
8baa46e9 | 11867 | |
1d99702e RD |
11868 | { |
11869 | int i; | |
11870 | for (i = 0; _swig_mapping[i].n1; i++) | |
11871 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11872 | } | |
bb0054cd | 11873 | } |