]>
Commit | Line | Data |
---|---|---|
e6056257 RD |
1 | /* |
2 | * FILE : src/mac/misc2.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initmisc2c | |
55 | ||
56 | #define SWIG_name "misc2c" | |
57 | ||
58 | #include "helpers.h" | |
da0ddbd6 | 59 | #include "pyistream.h" |
e6056257 RD |
60 | #include <wx/resource.h> |
61 | #include <wx/tooltip.h> | |
62 | #include <wx/caret.h> | |
e6056257 RD |
63 | #include <wx/tipdlg.h> |
64 | #include <wx/process.h> | |
65 | ||
66 | #if wxUSE_JOYSTICK || defined(__WXMSW__) | |
67 | #include <wx/joystick.h> | |
68 | #endif | |
69 | ||
70 | #if wxUSE_WAVE || defined(__WXMSW__) | |
71 | #include <wx/wave.h> | |
72 | #endif | |
73 | ||
b6e5c445 | 74 | #include <wx/mimetype.h> |
4ea97290 RD |
75 | #include <wx/snglinst.h> |
76 | #include <wx/effects.h> | |
77 | //#include <wx/spawnbrowser.h> | |
b6e5c445 | 78 | |
e6056257 RD |
79 | |
80 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
81 | PyObject* o2; | |
82 | PyObject* o3; | |
83 | ||
84 | if (!target) { | |
85 | target = o; | |
86 | } else if (target == Py_None) { | |
87 | Py_DECREF(Py_None); | |
88 | target = o; | |
89 | } else { | |
90 | if (!PyTuple_Check(target)) { | |
91 | o2 = target; | |
92 | target = PyTuple_New(1); | |
93 | PyTuple_SetItem(target, 0, o2); | |
94 | } | |
95 | o3 = PyTuple_New(1); | |
96 | PyTuple_SetItem(o3, 0, o); | |
97 | ||
98 | o2 = target; | |
99 | target = PySequence_Concat(o2, o3); | |
100 | Py_DECREF(o2); | |
101 | Py_DECREF(o3); | |
102 | } | |
103 | return target; | |
104 | } | |
105 | ||
c3bfa1cb RD |
106 | // Put some wx default wxChar* values into wxStrings. |
107 | DECLARE_DEF_STRING(FileSelectorPromptStr); | |
108 | DECLARE_DEF_STRING(FileSelectorDefaultWildcardStr); | |
59988cd0 | 109 | DECLARE_DEF_STRING(DirSelectorPromptStr); |
c3bfa1cb RD |
110 | static const wxString wxPyEmptyString(wxT("")); |
111 | ||
e6056257 RD |
112 | int wxCaret_GetBlinkTime() { |
113 | return wxCaret::GetBlinkTime(); | |
114 | } | |
115 | ||
116 | void wxCaret_SetBlinkTime(int milliseconds) { | |
117 | wxCaret::SetBlinkTime(milliseconds); | |
118 | } | |
119 | ||
e6056257 | 120 | bool wxThread_IsMain() { |
71737445 | 121 | #ifdef WXP_WITH_THREAD |
e6056257 | 122 | return wxThread::IsMain(); |
71737445 RD |
123 | #else |
124 | return TRUE; | |
125 | #endif | |
e6056257 RD |
126 | } |
127 | ||
128 | class wxPyTipProvider : public wxTipProvider { | |
129 | public: | |
130 | wxPyTipProvider(size_t currentTip) | |
131 | : wxTipProvider(currentTip) {} | |
132 | ||
133 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
4ea97290 | 134 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); |
e6056257 RD |
135 | PYPRIVATE; |
136 | }; | |
137 | ||
138 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
4ea97290 | 139 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); |
e6056257 RD |
140 | |
141 | #include <wx/generic/dragimgg.h> | |
142 | ||
eb28fd47 | 143 | // A wxLog class that can be derived from in wxPython |
e6056257 RD |
144 | class wxPyLog : public wxLog { |
145 | public: | |
146 | wxPyLog() : wxLog() {} | |
147 | ||
148 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
149 | bool found; | |
0e2ff151 | 150 | wxPyBeginBlockThreads(); |
3bc1a8e6 RD |
151 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { |
152 | PyObject* s = wx2PyString(szString); | |
153 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
154 | Py_DECREF(s); | |
155 | } | |
0e2ff151 | 156 | wxPyEndBlockThreads(); |
e6056257 RD |
157 | if (! found) |
158 | wxLog::DoLog(level, szString, t); | |
159 | } | |
160 | ||
161 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
162 | bool found; | |
0e2ff151 | 163 | wxPyBeginBlockThreads(); |
3bc1a8e6 RD |
164 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { |
165 | PyObject* s = wx2PyString(szString); | |
166 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
167 | Py_DECREF(s); | |
168 | } | |
0e2ff151 | 169 | wxPyEndBlockThreads(); |
e6056257 RD |
170 | if (! found) |
171 | wxLog::DoLogString(szString, t); | |
172 | } | |
173 | ||
174 | PYPRIVATE; | |
175 | }; | |
176 | // C++ version of wxProcess derived class | |
177 | ||
178 | class wxPyProcess : public wxProcess { | |
179 | public: | |
180 | wxPyProcess(wxEvtHandler *parent = NULL, int id = -1) | |
181 | : wxProcess(parent, id) | |
182 | {} | |
183 | ||
184 | DEC_PYCALLBACK_VOID_INTINT(OnTerminate); | |
185 | ||
186 | PYPRIVATE; | |
187 | }; | |
188 | ||
189 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
190 | ||
191 | ||
192 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
193 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
194 | class wxJoystick : public wxObject { | |
195 | public: | |
196 | wxJoystick(int joystick = wxJOYSTICK1) { | |
0e2ff151 | 197 | wxPyBeginBlockThreads(); |
e6056257 | 198 | PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); |
0e2ff151 | 199 | wxPyEndBlockThreads(); |
e6056257 RD |
200 | } |
201 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
202 | int GetZPosition() { return -1; } | |
203 | int GetButtonState() { return -1; } | |
204 | int GetPOVPosition() { return -1; } | |
205 | int GetPOVCTSPosition() { return -1; } | |
206 | int GetRudderPosition() { return -1; } | |
207 | int GetUPosition() { return -1; } | |
208 | int GetVPosition() { return -1; } | |
209 | int GetMovementThreshold() { return -1; } | |
210 | void SetMovementThreshold(int threshold) {} | |
211 | ||
212 | bool IsOk(void) { return FALSE; } | |
213 | int GetNumberJoysticks() { return -1; } | |
214 | int GetManufacturerId() { return -1; } | |
215 | int GetProductId() { return -1; } | |
216 | wxString GetProductName() { return ""; } | |
217 | int GetXMin() { return -1; } | |
218 | int GetYMin() { return -1; } | |
219 | int GetZMin() { return -1; } | |
220 | int GetXMax() { return -1; } | |
221 | int GetYMax() { return -1; } | |
222 | int GetZMax() { return -1; } | |
223 | int GetNumberButtons() { return -1; } | |
224 | int GetNumberAxes() { return -1; } | |
225 | int GetMaxButtons() { return -1; } | |
226 | int GetMaxAxes() { return -1; } | |
227 | int GetPollingMin() { return -1; } | |
228 | int GetPollingMax() { return -1; } | |
229 | int GetRudderMin() { return -1; } | |
230 | int GetRudderMax() { return -1; } | |
231 | int GetUMin() { return -1; } | |
232 | int GetUMax() { return -1; } | |
233 | int GetVMin() { return -1; } | |
234 | int GetVMax() { return -1; } | |
235 | ||
236 | bool HasRudder() { return FALSE; } | |
237 | bool HasZ() { return FALSE; } | |
238 | bool HasU() { return FALSE; } | |
239 | bool HasV() { return FALSE; } | |
240 | bool HasPOV() { return FALSE; } | |
241 | bool HasPOV4Dir() { return FALSE; } | |
242 | bool HasPOVCTS() { return FALSE; } | |
243 | ||
244 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return FALSE; } | |
245 | bool ReleaseCapture() { return FALSE; } | |
246 | }; | |
247 | #endif | |
248 | ||
249 | #if !wxUSE_WAVE | |
250 | // A C++ stub class for wxWave for platforms that don't have it. | |
251 | class wxWave : public wxObject | |
252 | { | |
253 | public: | |
254 | wxWave(const wxString& fileName, bool isResource = FALSE) { | |
0e2ff151 | 255 | wxPyBeginBlockThreads(); |
e6056257 | 256 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
0e2ff151 | 257 | wxPyEndBlockThreads(); |
e6056257 RD |
258 | } |
259 | wxWave(int size, const wxByte* data) { | |
0e2ff151 | 260 | wxPyBeginBlockThreads(); |
e6056257 | 261 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
0e2ff151 | 262 | wxPyEndBlockThreads(); |
e6056257 RD |
263 | } |
264 | ||
265 | ~wxWave() {} | |
266 | ||
267 | bool IsOk() const { return FALSE; } | |
268 | bool Play(bool async = TRUE, bool looped = FALSE) const { return FALSE; } | |
269 | }; | |
270 | ||
271 | #endif | |
272 | // Implementations of some alternate "constructors" | |
273 | wxWave* wxWaveData(const wxString& data) { | |
274 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
275 | } | |
b6e5c445 RD |
276 | |
277 | #if 0 | |
278 | extern wxMimeTypesManager * wxTheMimeTypesManager; | |
279 | ||
280 | #endif | |
742fc581 | 281 | |
3bc1a8e6 RD |
282 | #include <wx/artprov.h> |
283 | ||
284 | DECLARE_DEF_STRING(ART_OTHER); | |
285 | ||
286 | // Python aware wxArtProvider | |
287 | class wxPyArtProvider : public wxArtProvider { | |
288 | public: | |
289 | ||
290 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
291 | const wxArtClient& client, | |
292 | const wxSize& size) { | |
293 | wxBitmap rval = wxNullBitmap; | |
294 | wxPyBeginBlockThreads(); | |
295 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
296 | PyObject* so = wxPyConstructObject((void*)&size, "wxSize", 0); | |
297 | PyObject* ro; | |
298 | wxBitmap* ptr; | |
299 | PyObject* s1, *s2; | |
300 | s1 = wx2PyString(id); | |
301 | s2 = wx2PyString(client); | |
302 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
303 | Py_DECREF(so); | |
304 | Py_DECREF(s1); | |
305 | Py_DECREF(s2); | |
306 | if (ro) { | |
307 | if (!SWIG_GetPtrObj(ro, (void**)&ptr, "_wxBitmap_p")) | |
308 | rval = *ptr; | |
309 | Py_DECREF(ro); | |
310 | } | |
311 | } | |
312 | wxPyEndBlockThreads(); | |
313 | return rval; | |
314 | } | |
315 | ||
316 | PYPRIVATE; | |
317 | }; | |
318 | ||
742fc581 | 319 | #include <wx/docview.h> |
e6056257 RD |
320 | #ifdef __cplusplus |
321 | extern "C" { | |
322 | #endif | |
323 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
324 | PyObject * _resultobj; | |
325 | wxString * _result; | |
c3bfa1cb RD |
326 | wxString * _arg0 = (wxString *) &wxPyFileSelectorPromptStr; |
327 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
328 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
329 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
330 | wxString * _arg4 = (wxString *) &wxPyFileSelectorDefaultWildcardStr; | |
e6056257 RD |
331 | int _arg5 = (int ) 0; |
332 | wxWindow * _arg6 = (wxWindow *) NULL; | |
333 | int _arg7 = (int ) -1; | |
334 | int _arg8 = (int ) -1; | |
c3bfa1cb RD |
335 | PyObject * _obj0 = 0; |
336 | PyObject * _obj1 = 0; | |
337 | PyObject * _obj2 = 0; | |
338 | PyObject * _obj3 = 0; | |
339 | PyObject * _obj4 = 0; | |
e6056257 RD |
340 | PyObject * _argo6 = 0; |
341 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
342 | ||
343 | self = self; | |
c3bfa1cb | 344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOOOiOii:wxFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7,&_arg8)) |
e6056257 | 345 | return NULL; |
c3bfa1cb RD |
346 | if (_obj0) |
347 | { | |
348 | _arg0 = wxString_in_helper(_obj0); | |
349 | if (_arg0 == NULL) | |
350 | return NULL; | |
351 | } | |
352 | if (_obj1) | |
353 | { | |
354 | _arg1 = wxString_in_helper(_obj1); | |
355 | if (_arg1 == NULL) | |
356 | return NULL; | |
357 | } | |
358 | if (_obj2) | |
359 | { | |
360 | _arg2 = wxString_in_helper(_obj2); | |
361 | if (_arg2 == NULL) | |
362 | return NULL; | |
363 | } | |
364 | if (_obj3) | |
365 | { | |
366 | _arg3 = wxString_in_helper(_obj3); | |
367 | if (_arg3 == NULL) | |
368 | return NULL; | |
369 | } | |
370 | if (_obj4) | |
371 | { | |
372 | _arg4 = wxString_in_helper(_obj4); | |
373 | if (_arg4 == NULL) | |
374 | return NULL; | |
375 | } | |
e6056257 RD |
376 | if (_argo6) { |
377 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
378 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
380 | return NULL; | |
381 | } | |
382 | } | |
383 | { | |
0e2ff151 | 384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb RD |
385 | _result = new wxString (wxFileSelector(*_arg0,*_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8)); |
386 | ||
387 | wxPyEndAllowThreads(__tstate); | |
388 | if (PyErr_Occurred()) return NULL; | |
389 | }{ | |
390 | #if wxUSE_UNICODE | |
391 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
392 | #else | |
393 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
394 | #endif | |
395 | } | |
396 | { | |
397 | if (_obj0) | |
398 | delete _arg0; | |
399 | } | |
400 | { | |
401 | if (_obj1) | |
402 | delete _arg1; | |
403 | } | |
404 | { | |
405 | if (_obj2) | |
406 | delete _arg2; | |
407 | } | |
408 | { | |
409 | if (_obj3) | |
410 | delete _arg3; | |
411 | } | |
412 | { | |
413 | if (_obj4) | |
414 | delete _arg4; | |
415 | } | |
416 | { | |
417 | delete _result; | |
418 | } | |
419 | return _resultobj; | |
420 | } | |
421 | ||
422 | static PyObject *_wrap_wxLoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
423 | PyObject * _resultobj; | |
424 | wxString * _result; | |
425 | wxString * _arg0; | |
426 | wxString * _arg1; | |
427 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
428 | wxWindow * _arg3 = (wxWindow *) NULL; | |
429 | PyObject * _obj0 = 0; | |
430 | PyObject * _obj1 = 0; | |
431 | PyObject * _obj2 = 0; | |
432 | PyObject * _argo3 = 0; | |
433 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
434 | ||
435 | self = self; | |
436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxLoadFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
437 | return NULL; | |
438 | { | |
439 | _arg0 = wxString_in_helper(_obj0); | |
440 | if (_arg0 == NULL) | |
441 | return NULL; | |
442 | } | |
443 | { | |
444 | _arg1 = wxString_in_helper(_obj1); | |
445 | if (_arg1 == NULL) | |
446 | return NULL; | |
447 | } | |
448 | if (_obj2) | |
449 | { | |
450 | _arg2 = wxString_in_helper(_obj2); | |
451 | if (_arg2 == NULL) | |
452 | return NULL; | |
453 | } | |
454 | if (_argo3) { | |
455 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
456 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxLoadFileSelector. Expected _wxWindow_p."); | |
458 | return NULL; | |
459 | } | |
460 | } | |
461 | { | |
462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
463 | _result = new wxString (wxLoadFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); | |
464 | ||
465 | wxPyEndAllowThreads(__tstate); | |
466 | if (PyErr_Occurred()) return NULL; | |
467 | }{ | |
468 | #if wxUSE_UNICODE | |
469 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
470 | #else | |
471 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
472 | #endif | |
473 | } | |
474 | { | |
475 | if (_obj0) | |
476 | delete _arg0; | |
477 | } | |
478 | { | |
479 | if (_obj1) | |
480 | delete _arg1; | |
481 | } | |
482 | { | |
483 | if (_obj2) | |
484 | delete _arg2; | |
485 | } | |
486 | { | |
487 | delete _result; | |
488 | } | |
489 | return _resultobj; | |
490 | } | |
491 | ||
492 | static PyObject *_wrap_wxSaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
493 | PyObject * _resultobj; | |
494 | wxString * _result; | |
495 | wxString * _arg0; | |
496 | wxString * _arg1; | |
497 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
498 | wxWindow * _arg3 = (wxWindow *) NULL; | |
499 | PyObject * _obj0 = 0; | |
500 | PyObject * _obj1 = 0; | |
501 | PyObject * _obj2 = 0; | |
502 | PyObject * _argo3 = 0; | |
503 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
504 | ||
505 | self = self; | |
506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxSaveFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
507 | return NULL; | |
508 | { | |
509 | _arg0 = wxString_in_helper(_obj0); | |
510 | if (_arg0 == NULL) | |
511 | return NULL; | |
512 | } | |
513 | { | |
514 | _arg1 = wxString_in_helper(_obj1); | |
515 | if (_arg1 == NULL) | |
516 | return NULL; | |
517 | } | |
518 | if (_obj2) | |
519 | { | |
520 | _arg2 = wxString_in_helper(_obj2); | |
521 | if (_arg2 == NULL) | |
522 | return NULL; | |
523 | } | |
524 | if (_argo3) { | |
525 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
526 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxSaveFileSelector. Expected _wxWindow_p."); | |
528 | return NULL; | |
529 | } | |
530 | } | |
531 | { | |
532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
533 | _result = new wxString (wxSaveFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); | |
e6056257 | 534 | |
0e2ff151 RD |
535 | wxPyEndAllowThreads(__tstate); |
536 | if (PyErr_Occurred()) return NULL; | |
e6056257 | 537 | }{ |
6824d4f9 RD |
538 | #if wxUSE_UNICODE |
539 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
540 | #else | |
e6056257 | 541 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 542 | #endif |
e6056257 | 543 | } |
c3bfa1cb RD |
544 | { |
545 | if (_obj0) | |
546 | delete _arg0; | |
547 | } | |
548 | { | |
549 | if (_obj1) | |
550 | delete _arg1; | |
551 | } | |
552 | { | |
553 | if (_obj2) | |
554 | delete _arg2; | |
555 | } | |
e6056257 RD |
556 | { |
557 | delete _result; | |
558 | } | |
559 | return _resultobj; | |
560 | } | |
561 | ||
59988cd0 RD |
562 | static PyObject *_wrap_wxDirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
563 | PyObject * _resultobj; | |
564 | wxString * _result; | |
565 | wxString * _arg0 = (wxString *) &wxPyDirSelectorPromptStr; | |
566 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
ec3589a6 | 567 | long _arg2 = (long ) wxDD_DEFAULT_STYLE; |
59988cd0 RD |
568 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
569 | wxWindow * _arg4 = (wxWindow *) NULL; | |
570 | PyObject * _obj0 = 0; | |
571 | PyObject * _obj1 = 0; | |
572 | wxPoint temp; | |
573 | PyObject * _obj3 = 0; | |
574 | PyObject * _argo4 = 0; | |
575 | char *_kwnames[] = { "message","defaultPath","style","pos","parent", NULL }; | |
576 | ||
577 | self = self; | |
578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOlOO:wxDirSelector",_kwnames,&_obj0,&_obj1,&_arg2,&_obj3,&_argo4)) | |
579 | return NULL; | |
580 | if (_obj0) | |
581 | { | |
582 | _arg0 = wxString_in_helper(_obj0); | |
583 | if (_arg0 == NULL) | |
584 | return NULL; | |
585 | } | |
586 | if (_obj1) | |
587 | { | |
588 | _arg1 = wxString_in_helper(_obj1); | |
589 | if (_arg1 == NULL) | |
590 | return NULL; | |
591 | } | |
592 | if (_obj3) | |
593 | { | |
594 | _arg3 = &temp; | |
595 | if (! wxPoint_helper(_obj3, &_arg3)) | |
596 | return NULL; | |
597 | } | |
598 | if (_argo4) { | |
599 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
600 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxDirSelector. Expected _wxWindow_p."); | |
602 | return NULL; | |
603 | } | |
604 | } | |
605 | { | |
606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
607 | _result = new wxString (wxDirSelector(*_arg0,*_arg1,_arg2,*_arg3,_arg4)); | |
608 | ||
609 | wxPyEndAllowThreads(__tstate); | |
610 | if (PyErr_Occurred()) return NULL; | |
611 | }{ | |
612 | #if wxUSE_UNICODE | |
613 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
614 | #else | |
615 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
616 | #endif | |
617 | } | |
618 | { | |
619 | if (_obj0) | |
620 | delete _arg0; | |
621 | } | |
622 | { | |
623 | if (_obj1) | |
624 | delete _arg1; | |
625 | } | |
626 | { | |
627 | delete _result; | |
628 | } | |
629 | return _resultobj; | |
630 | } | |
631 | ||
e6056257 RD |
632 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
633 | PyObject * _resultobj; | |
634 | wxString * _result; | |
635 | wxString * _arg0; | |
c3bfa1cb RD |
636 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
637 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
e6056257 RD |
638 | wxWindow * _arg3 = (wxWindow *) NULL; |
639 | int _arg4 = (int ) -1; | |
640 | int _arg5 = (int ) -1; | |
641 | bool _arg6 = (bool ) TRUE; | |
642 | PyObject * _obj0 = 0; | |
643 | PyObject * _obj1 = 0; | |
644 | PyObject * _obj2 = 0; | |
645 | PyObject * _argo3 = 0; | |
646 | int tempbool6 = (int) TRUE; | |
647 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
648 | ||
649 | self = self; | |
650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
651 | return NULL; | |
652 | { | |
6824d4f9 RD |
653 | _arg0 = wxString_in_helper(_obj0); |
654 | if (_arg0 == NULL) | |
e6056257 | 655 | return NULL; |
e6056257 RD |
656 | } |
657 | if (_obj1) | |
658 | { | |
6824d4f9 RD |
659 | _arg1 = wxString_in_helper(_obj1); |
660 | if (_arg1 == NULL) | |
e6056257 | 661 | return NULL; |
e6056257 RD |
662 | } |
663 | if (_obj2) | |
664 | { | |
6824d4f9 RD |
665 | _arg2 = wxString_in_helper(_obj2); |
666 | if (_arg2 == NULL) | |
e6056257 | 667 | return NULL; |
e6056257 RD |
668 | } |
669 | if (_argo3) { | |
670 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
671 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
673 | return NULL; | |
674 | } | |
675 | } | |
676 | _arg6 = (bool ) tempbool6; | |
677 | { | |
0e2ff151 | 678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 679 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); |
e6056257 | 680 | |
0e2ff151 RD |
681 | wxPyEndAllowThreads(__tstate); |
682 | if (PyErr_Occurred()) return NULL; | |
e6056257 | 683 | }{ |
6824d4f9 RD |
684 | #if wxUSE_UNICODE |
685 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
686 | #else | |
e6056257 | 687 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 688 | #endif |
e6056257 RD |
689 | } |
690 | { | |
691 | if (_obj0) | |
692 | delete _arg0; | |
693 | } | |
694 | { | |
695 | if (_obj1) | |
696 | delete _arg1; | |
697 | } | |
698 | { | |
699 | if (_obj2) | |
700 | delete _arg2; | |
701 | } | |
702 | { | |
703 | delete _result; | |
704 | } | |
705 | return _resultobj; | |
706 | } | |
707 | ||
708 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
709 | PyObject * _resultobj; | |
710 | wxString * _result; | |
711 | wxString * _arg0; | |
c3bfa1cb RD |
712 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
713 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
e6056257 RD |
714 | wxWindow * _arg3 = (wxWindow *) NULL; |
715 | PyObject * _obj0 = 0; | |
716 | PyObject * _obj1 = 0; | |
717 | PyObject * _obj2 = 0; | |
718 | PyObject * _argo3 = 0; | |
719 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
720 | ||
721 | self = self; | |
722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
723 | return NULL; | |
724 | { | |
6824d4f9 RD |
725 | _arg0 = wxString_in_helper(_obj0); |
726 | if (_arg0 == NULL) | |
e6056257 | 727 | return NULL; |
e6056257 RD |
728 | } |
729 | if (_obj1) | |
730 | { | |
6824d4f9 RD |
731 | _arg1 = wxString_in_helper(_obj1); |
732 | if (_arg1 == NULL) | |
e6056257 | 733 | return NULL; |
e6056257 RD |
734 | } |
735 | if (_obj2) | |
736 | { | |
6824d4f9 RD |
737 | _arg2 = wxString_in_helper(_obj2); |
738 | if (_arg2 == NULL) | |
e6056257 | 739 | return NULL; |
e6056257 RD |
740 | } |
741 | if (_argo3) { | |
742 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
743 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
745 | return NULL; | |
746 | } | |
747 | } | |
748 | { | |
0e2ff151 | 749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 750 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); |
e6056257 | 751 | |
0e2ff151 RD |
752 | wxPyEndAllowThreads(__tstate); |
753 | if (PyErr_Occurred()) return NULL; | |
e6056257 | 754 | }{ |
6824d4f9 RD |
755 | #if wxUSE_UNICODE |
756 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
757 | #else | |
e6056257 | 758 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 759 | #endif |
e6056257 RD |
760 | } |
761 | { | |
762 | if (_obj0) | |
763 | delete _arg0; | |
764 | } | |
765 | { | |
766 | if (_obj1) | |
767 | delete _arg1; | |
768 | } | |
769 | { | |
770 | if (_obj2) | |
771 | delete _arg2; | |
772 | } | |
773 | { | |
774 | delete _result; | |
775 | } | |
776 | return _resultobj; | |
777 | } | |
778 | ||
779 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
780 | PyObject * _resultobj; | |
781 | wxString * _result; | |
782 | wxString * _arg0; | |
783 | wxString * _arg1; | |
784 | int _arg2; | |
785 | wxString * _arg3; | |
786 | wxWindow * _arg4 = (wxWindow *) NULL; | |
787 | int _arg5 = (int ) -1; | |
788 | int _arg6 = (int ) -1; | |
789 | bool _arg7 = (bool ) TRUE; | |
790 | int _arg8 = (int ) 150; | |
791 | int _arg9 = (int ) 200; | |
792 | PyObject * _obj0 = 0; | |
793 | PyObject * _obj1 = 0; | |
794 | PyObject * _obj3 = 0; | |
795 | PyObject * _argo4 = 0; | |
796 | int tempbool7 = (int) TRUE; | |
797 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; | |
798 | ||
799 | self = self; | |
800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
801 | return NULL; | |
802 | { | |
6824d4f9 RD |
803 | _arg0 = wxString_in_helper(_obj0); |
804 | if (_arg0 == NULL) | |
e6056257 | 805 | return NULL; |
e6056257 RD |
806 | } |
807 | { | |
6824d4f9 RD |
808 | _arg1 = wxString_in_helper(_obj1); |
809 | if (_arg1 == NULL) | |
e6056257 | 810 | return NULL; |
e6056257 RD |
811 | } |
812 | if (_obj3) | |
813 | { | |
814 | _arg3 = wxString_LIST_helper(_obj3); | |
815 | if (_arg3 == NULL) { | |
816 | return NULL; | |
817 | } | |
818 | } | |
819 | if (_argo4) { | |
820 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
821 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
823 | return NULL; | |
824 | } | |
825 | } | |
826 | _arg7 = (bool ) tempbool7; | |
827 | { | |
828 | if (_obj3) { | |
829 | _arg2 = PyList_Size(_obj3); | |
830 | } | |
831 | else { | |
832 | _arg2 = 0; | |
833 | } | |
834 | } | |
835 | { | |
0e2ff151 | 836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 837 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); |
e6056257 | 838 | |
0e2ff151 RD |
839 | wxPyEndAllowThreads(__tstate); |
840 | if (PyErr_Occurred()) return NULL; | |
e6056257 | 841 | }{ |
6824d4f9 RD |
842 | #if wxUSE_UNICODE |
843 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
844 | #else | |
e6056257 | 845 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 846 | #endif |
e6056257 RD |
847 | } |
848 | { | |
849 | if (_obj0) | |
850 | delete _arg0; | |
851 | } | |
852 | { | |
853 | if (_obj1) | |
854 | delete _arg1; | |
855 | } | |
856 | { | |
857 | delete [] _arg3; | |
858 | } | |
859 | { | |
860 | delete _result; | |
861 | } | |
862 | return _resultobj; | |
863 | } | |
864 | ||
865 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
866 | PyObject * _resultobj; | |
867 | int _result; | |
868 | wxString * _arg0; | |
869 | wxString * _arg1; | |
870 | int _arg2; | |
871 | wxString * _arg3; | |
872 | wxWindow * _arg4 = (wxWindow *) NULL; | |
873 | int _arg5 = (int ) -1; | |
874 | int _arg6 = (int ) -1; | |
875 | bool _arg7 = (bool ) TRUE; | |
876 | int _arg8 = (int ) 150; | |
877 | int _arg9 = (int ) 200; | |
878 | PyObject * _obj0 = 0; | |
879 | PyObject * _obj1 = 0; | |
880 | PyObject * _obj3 = 0; | |
881 | PyObject * _argo4 = 0; | |
882 | int tempbool7 = (int) TRUE; | |
883 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; | |
884 | ||
885 | self = self; | |
886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
887 | return NULL; | |
888 | { | |
6824d4f9 RD |
889 | _arg0 = wxString_in_helper(_obj0); |
890 | if (_arg0 == NULL) | |
e6056257 | 891 | return NULL; |
e6056257 RD |
892 | } |
893 | { | |
6824d4f9 RD |
894 | _arg1 = wxString_in_helper(_obj1); |
895 | if (_arg1 == NULL) | |
e6056257 | 896 | return NULL; |
e6056257 RD |
897 | } |
898 | if (_obj3) | |
899 | { | |
900 | _arg3 = wxString_LIST_helper(_obj3); | |
901 | if (_arg3 == NULL) { | |
902 | return NULL; | |
903 | } | |
904 | } | |
905 | if (_argo4) { | |
906 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
907 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
909 | return NULL; | |
910 | } | |
911 | } | |
912 | _arg7 = (bool ) tempbool7; | |
913 | { | |
914 | if (_obj3) { | |
915 | _arg2 = PyList_Size(_obj3); | |
916 | } | |
917 | else { | |
918 | _arg2 = 0; | |
919 | } | |
920 | } | |
921 | { | |
0e2ff151 | 922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 923 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
e6056257 | 924 | |
0e2ff151 RD |
925 | wxPyEndAllowThreads(__tstate); |
926 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
927 | } _resultobj = Py_BuildValue("i",_result); |
928 | { | |
929 | if (_obj0) | |
930 | delete _arg0; | |
931 | } | |
932 | { | |
933 | if (_obj1) | |
934 | delete _arg1; | |
935 | } | |
936 | { | |
937 | delete [] _arg3; | |
938 | } | |
939 | return _resultobj; | |
940 | } | |
941 | ||
942 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
943 | PyObject * _resultobj; | |
944 | int _result; | |
945 | wxString * _arg0; | |
c3bfa1cb | 946 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
e6056257 RD |
947 | int _arg2 = (int ) wxOK|wxCENTRE; |
948 | wxWindow * _arg3 = (wxWindow *) NULL; | |
949 | int _arg4 = (int ) -1; | |
950 | int _arg5 = (int ) -1; | |
951 | PyObject * _obj0 = 0; | |
952 | PyObject * _obj1 = 0; | |
953 | PyObject * _argo3 = 0; | |
954 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
955 | ||
956 | self = self; | |
957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
958 | return NULL; | |
959 | { | |
6824d4f9 RD |
960 | _arg0 = wxString_in_helper(_obj0); |
961 | if (_arg0 == NULL) | |
e6056257 | 962 | return NULL; |
e6056257 RD |
963 | } |
964 | if (_obj1) | |
965 | { | |
6824d4f9 RD |
966 | _arg1 = wxString_in_helper(_obj1); |
967 | if (_arg1 == NULL) | |
e6056257 | 968 | return NULL; |
e6056257 RD |
969 | } |
970 | if (_argo3) { | |
971 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
972 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
974 | return NULL; | |
975 | } | |
976 | } | |
977 | { | |
0e2ff151 | 978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 979 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); |
e6056257 | 980 | |
0e2ff151 RD |
981 | wxPyEndAllowThreads(__tstate); |
982 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
983 | } _resultobj = Py_BuildValue("i",_result); |
984 | { | |
985 | if (_obj0) | |
986 | delete _arg0; | |
987 | } | |
988 | { | |
989 | if (_obj1) | |
990 | delete _arg1; | |
991 | } | |
992 | return _resultobj; | |
993 | } | |
994 | ||
995 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
996 | PyObject * _resultobj; | |
997 | long _result; | |
998 | wxString * _arg0; | |
999 | wxString * _arg1; | |
1000 | wxString * _arg2; | |
1001 | long _arg3; | |
1002 | long _arg4 = (long ) 0; | |
1003 | long _arg5 = (long ) 100; | |
1004 | wxWindow * _arg6 = (wxWindow *) NULL; | |
1005 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; | |
1006 | PyObject * _obj0 = 0; | |
1007 | PyObject * _obj1 = 0; | |
1008 | PyObject * _obj2 = 0; | |
1009 | PyObject * _argo6 = 0; | |
1010 | wxPoint temp; | |
1011 | PyObject * _obj7 = 0; | |
1012 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
1013 | ||
1014 | self = self; | |
1015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
1016 | return NULL; | |
1017 | { | |
6824d4f9 RD |
1018 | _arg0 = wxString_in_helper(_obj0); |
1019 | if (_arg0 == NULL) | |
e6056257 | 1020 | return NULL; |
e6056257 RD |
1021 | } |
1022 | { | |
6824d4f9 RD |
1023 | _arg1 = wxString_in_helper(_obj1); |
1024 | if (_arg1 == NULL) | |
e6056257 | 1025 | return NULL; |
e6056257 RD |
1026 | } |
1027 | { | |
6824d4f9 RD |
1028 | _arg2 = wxString_in_helper(_obj2); |
1029 | if (_arg2 == NULL) | |
e6056257 | 1030 | return NULL; |
e6056257 RD |
1031 | } |
1032 | if (_argo6) { | |
1033 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1034 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
1035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
1036 | return NULL; | |
1037 | } | |
1038 | } | |
1039 | if (_obj7) | |
1040 | { | |
1041 | _arg7 = &temp; | |
1042 | if (! wxPoint_helper(_obj7, &_arg7)) | |
1043 | return NULL; | |
1044 | } | |
1045 | { | |
0e2ff151 | 1046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1047 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); |
e6056257 | 1048 | |
0e2ff151 RD |
1049 | wxPyEndAllowThreads(__tstate); |
1050 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1051 | } _resultobj = Py_BuildValue("l",_result); |
1052 | { | |
1053 | if (_obj0) | |
1054 | delete _arg0; | |
1055 | } | |
1056 | { | |
1057 | if (_obj1) | |
1058 | delete _arg1; | |
1059 | } | |
1060 | { | |
1061 | if (_obj2) | |
1062 | delete _arg2; | |
1063 | } | |
1064 | return _resultobj; | |
1065 | } | |
1066 | ||
1067 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1068 | PyObject * _resultobj; | |
1069 | bool _result; | |
1070 | char *_kwnames[] = { NULL }; | |
1071 | ||
1072 | self = self; | |
1073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
1074 | return NULL; | |
1075 | { | |
0e2ff151 | 1076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1077 | _result = (bool )wxColourDisplay(); |
e6056257 | 1078 | |
0e2ff151 RD |
1079 | wxPyEndAllowThreads(__tstate); |
1080 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1081 | } _resultobj = Py_BuildValue("i",_result); |
1082 | return _resultobj; | |
1083 | } | |
1084 | ||
1085 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1086 | PyObject * _resultobj; | |
1087 | int _result; | |
1088 | char *_kwnames[] = { NULL }; | |
1089 | ||
1090 | self = self; | |
1091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
1092 | return NULL; | |
1093 | { | |
0e2ff151 | 1094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1095 | _result = (int )wxDisplayDepth(); |
e6056257 | 1096 | |
0e2ff151 RD |
1097 | wxPyEndAllowThreads(__tstate); |
1098 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1099 | } _resultobj = Py_BuildValue("i",_result); |
1100 | return _resultobj; | |
1101 | } | |
1102 | ||
1103 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1104 | PyObject * _resultobj; | |
1105 | int _result; | |
1106 | char *_kwnames[] = { NULL }; | |
1107 | ||
1108 | self = self; | |
1109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
1110 | return NULL; | |
1111 | { | |
0e2ff151 | 1112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1113 | _result = (int )wxGetDisplayDepth(); |
e6056257 | 1114 | |
0e2ff151 RD |
1115 | wxPyEndAllowThreads(__tstate); |
1116 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1117 | } _resultobj = Py_BuildValue("i",_result); |
1118 | return _resultobj; | |
1119 | } | |
1120 | ||
1121 | static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1122 | PyObject * _resultobj; | |
1123 | int * _arg0; | |
1124 | int temp; | |
1125 | int * _arg1; | |
1126 | int temp0; | |
1127 | char *_kwnames[] = { NULL }; | |
1128 | ||
1129 | self = self; | |
1130 | { | |
1131 | _arg0 = &temp; | |
1132 | } | |
1133 | { | |
1134 | _arg1 = &temp0; | |
1135 | } | |
1136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames)) | |
1137 | return NULL; | |
1138 | { | |
0e2ff151 | 1139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1140 | wxDisplaySize(_arg0,_arg1); |
e6056257 | 1141 | |
0e2ff151 RD |
1142 | wxPyEndAllowThreads(__tstate); |
1143 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1144 | } Py_INCREF(Py_None); |
1145 | _resultobj = Py_None; | |
1146 | { | |
1147 | PyObject *o; | |
1148 | o = PyInt_FromLong((long) (*_arg0)); | |
1149 | _resultobj = t_output_helper(_resultobj, o); | |
1150 | } | |
1151 | { | |
1152 | PyObject *o; | |
1153 | o = PyInt_FromLong((long) (*_arg1)); | |
1154 | _resultobj = t_output_helper(_resultobj, o); | |
1155 | } | |
1156 | return _resultobj; | |
1157 | } | |
1158 | ||
1159 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1160 | PyObject * _resultobj; | |
1161 | wxSize * _result; | |
1162 | char *_kwnames[] = { NULL }; | |
1163 | char _ptemp[128]; | |
1164 | ||
1165 | self = self; | |
1166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
1167 | return NULL; | |
1168 | { | |
0e2ff151 | 1169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1170 | _result = new wxSize (wxGetDisplaySize()); |
e6056257 | 1171 | |
0e2ff151 RD |
1172 | wxPyEndAllowThreads(__tstate); |
1173 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1174 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1175 | _resultobj = Py_BuildValue("s",_ptemp); | |
1176 | return _resultobj; | |
1177 | } | |
1178 | ||
1179 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1180 | PyObject * _resultobj; | |
1181 | int * _arg0; | |
1182 | int temp; | |
1183 | int * _arg1; | |
1184 | int temp0; | |
1185 | char *_kwnames[] = { NULL }; | |
1186 | ||
1187 | self = self; | |
1188 | { | |
1189 | _arg0 = &temp; | |
1190 | } | |
1191 | { | |
1192 | _arg1 = &temp0; | |
1193 | } | |
1194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
1195 | return NULL; | |
1196 | { | |
0e2ff151 | 1197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1198 | wxDisplaySizeMM(_arg0,_arg1); |
e6056257 | 1199 | |
0e2ff151 RD |
1200 | wxPyEndAllowThreads(__tstate); |
1201 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1202 | } Py_INCREF(Py_None); |
1203 | _resultobj = Py_None; | |
1204 | { | |
1205 | PyObject *o; | |
1206 | o = PyInt_FromLong((long) (*_arg0)); | |
1207 | _resultobj = t_output_helper(_resultobj, o); | |
1208 | } | |
1209 | { | |
1210 | PyObject *o; | |
1211 | o = PyInt_FromLong((long) (*_arg1)); | |
1212 | _resultobj = t_output_helper(_resultobj, o); | |
1213 | } | |
1214 | return _resultobj; | |
1215 | } | |
1216 | ||
1217 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1218 | PyObject * _resultobj; | |
1219 | wxSize * _result; | |
1220 | char *_kwnames[] = { NULL }; | |
1221 | char _ptemp[128]; | |
1222 | ||
1223 | self = self; | |
1224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1225 | return NULL; | |
1226 | { | |
0e2ff151 | 1227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1228 | _result = new wxSize (wxGetDisplaySizeMM()); |
e6056257 | 1229 | |
0e2ff151 RD |
1230 | wxPyEndAllowThreads(__tstate); |
1231 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1232 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1233 | _resultobj = Py_BuildValue("s",_ptemp); | |
1234 | return _resultobj; | |
1235 | } | |
1236 | ||
1237 | static PyObject *_wrap_wxClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1238 | PyObject * _resultobj; | |
1239 | int * _arg0; | |
1240 | int temp; | |
1241 | int * _arg1; | |
1242 | int temp0; | |
1243 | int * _arg2; | |
1244 | int temp1; | |
1245 | int * _arg3; | |
1246 | int temp2; | |
1247 | char *_kwnames[] = { NULL }; | |
1248 | ||
1249 | self = self; | |
1250 | { | |
1251 | _arg0 = &temp; | |
1252 | } | |
1253 | { | |
1254 | _arg1 = &temp0; | |
1255 | } | |
1256 | { | |
1257 | _arg2 = &temp1; | |
1258 | } | |
1259 | { | |
1260 | _arg3 = &temp2; | |
1261 | } | |
1262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxClientDisplayRect",_kwnames)) | |
1263 | return NULL; | |
1264 | { | |
0e2ff151 | 1265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1266 | wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 1267 | |
0e2ff151 RD |
1268 | wxPyEndAllowThreads(__tstate); |
1269 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1270 | } Py_INCREF(Py_None); |
1271 | _resultobj = Py_None; | |
1272 | { | |
1273 | PyObject *o; | |
1274 | o = PyInt_FromLong((long) (*_arg0)); | |
1275 | _resultobj = t_output_helper(_resultobj, o); | |
1276 | } | |
1277 | { | |
1278 | PyObject *o; | |
1279 | o = PyInt_FromLong((long) (*_arg1)); | |
1280 | _resultobj = t_output_helper(_resultobj, o); | |
1281 | } | |
1282 | { | |
1283 | PyObject *o; | |
1284 | o = PyInt_FromLong((long) (*_arg2)); | |
1285 | _resultobj = t_output_helper(_resultobj, o); | |
1286 | } | |
1287 | { | |
1288 | PyObject *o; | |
1289 | o = PyInt_FromLong((long) (*_arg3)); | |
1290 | _resultobj = t_output_helper(_resultobj, o); | |
1291 | } | |
1292 | return _resultobj; | |
1293 | } | |
1294 | ||
1295 | static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1296 | PyObject * _resultobj; | |
1297 | wxRect * _result; | |
1298 | char *_kwnames[] = { NULL }; | |
1299 | char _ptemp[128]; | |
1300 | ||
1301 | self = self; | |
1302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames)) | |
1303 | return NULL; | |
1304 | { | |
0e2ff151 | 1305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1306 | _result = new wxRect (wxGetClientDisplayRect()); |
e6056257 | 1307 | |
0e2ff151 RD |
1308 | wxPyEndAllowThreads(__tstate); |
1309 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1310 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
1311 | _resultobj = Py_BuildValue("s",_ptemp); | |
1312 | return _resultobj; | |
1313 | } | |
1314 | ||
1315 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1316 | PyObject * _resultobj; | |
1317 | wxCursor * _arg0; | |
1318 | PyObject * _argo0 = 0; | |
1319 | char *_kwnames[] = { "cursor", NULL }; | |
1320 | ||
1321 | self = self; | |
1322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1323 | return NULL; | |
1324 | if (_argo0) { | |
1325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
1328 | return NULL; | |
1329 | } | |
1330 | } | |
1331 | { | |
0e2ff151 | 1332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1333 | wxSetCursor(*_arg0); |
e6056257 | 1334 | |
0e2ff151 RD |
1335 | wxPyEndAllowThreads(__tstate); |
1336 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1337 | } Py_INCREF(Py_None); |
1338 | _resultobj = Py_None; | |
1339 | return _resultobj; | |
1340 | } | |
1341 | ||
e6056257 RD |
1342 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1343 | PyObject * _resultobj; | |
1344 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1345 | PyObject * _argo0 = 0; | |
1346 | char *_kwnames[] = { "cursor", NULL }; | |
1347 | ||
1348 | self = self; | |
1349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1350 | return NULL; | |
1351 | if (_argo0) { | |
1352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1355 | return NULL; | |
1356 | } | |
1357 | } | |
1358 | { | |
0e2ff151 | 1359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1360 | wxBeginBusyCursor(_arg0); |
e6056257 | 1361 | |
0e2ff151 RD |
1362 | wxPyEndAllowThreads(__tstate); |
1363 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1364 | } Py_INCREF(Py_None); |
1365 | _resultobj = Py_None; | |
1366 | return _resultobj; | |
1367 | } | |
1368 | ||
1369 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1370 | PyObject * _resultobj; | |
1371 | wxWindow * _result; | |
1372 | char *_kwnames[] = { NULL }; | |
1373 | ||
1374 | self = self; | |
1375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1376 | return NULL; | |
1377 | { | |
0e2ff151 | 1378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1379 | _result = (wxWindow *)wxGetActiveWindow(); |
e6056257 | 1380 | |
0e2ff151 RD |
1381 | wxPyEndAllowThreads(__tstate); |
1382 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1383 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1384 | return _resultobj; | |
1385 | } | |
1386 | ||
1387 | static PyObject *_wrap_wxGenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1388 | PyObject * _resultobj; | |
1389 | wxWindow * _result; | |
1390 | wxPoint * _arg0; | |
1391 | wxPoint temp; | |
1392 | PyObject * _obj0 = 0; | |
1393 | char *_kwnames[] = { "pt", NULL }; | |
1394 | ||
1395 | self = self; | |
1396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericFindWindowAtPoint",_kwnames,&_obj0)) | |
1397 | return NULL; | |
1398 | { | |
1399 | _arg0 = &temp; | |
1400 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1401 | return NULL; | |
1402 | } | |
1403 | { | |
0e2ff151 | 1404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1405 | _result = (wxWindow *)wxGenericFindWindowAtPoint(*_arg0); |
e6056257 | 1406 | |
0e2ff151 RD |
1407 | wxPyEndAllowThreads(__tstate); |
1408 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1409 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1410 | return _resultobj; | |
1411 | } | |
1412 | ||
1413 | static PyObject *_wrap_wxFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1414 | PyObject * _resultobj; | |
1415 | wxWindow * _result; | |
1416 | wxPoint * _arg0; | |
1417 | wxPoint temp; | |
1418 | PyObject * _obj0 = 0; | |
1419 | char *_kwnames[] = { "pt", NULL }; | |
1420 | ||
1421 | self = self; | |
1422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindWindowAtPoint",_kwnames,&_obj0)) | |
1423 | return NULL; | |
1424 | { | |
1425 | _arg0 = &temp; | |
1426 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1427 | return NULL; | |
1428 | } | |
1429 | { | |
0e2ff151 | 1430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1431 | _result = (wxWindow *)wxFindWindowAtPoint(*_arg0); |
e6056257 | 1432 | |
0e2ff151 RD |
1433 | wxPyEndAllowThreads(__tstate); |
1434 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1435 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1436 | return _resultobj; | |
1437 | } | |
1438 | ||
eb28fd47 RD |
1439 | static PyObject *_wrap_wxGetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1440 | PyObject * _resultobj; | |
1441 | wxWindow * _result; | |
1442 | wxWindow * _arg0; | |
1443 | PyObject * _argo0 = 0; | |
1444 | char *_kwnames[] = { "win", NULL }; | |
1445 | ||
1446 | self = self; | |
1447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGetTopLevelParent",_kwnames,&_argo0)) | |
1448 | return NULL; | |
1449 | if (_argo0) { | |
1450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGetTopLevelParent. Expected _wxWindow_p."); | |
1453 | return NULL; | |
1454 | } | |
1455 | } | |
1456 | { | |
1457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1458 | _result = (wxWindow *)wxGetTopLevelParent(_arg0); | |
1459 | ||
1460 | wxPyEndAllowThreads(__tstate); | |
1461 | if (PyErr_Occurred()) return NULL; | |
1462 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1463 | return _resultobj; | |
1464 | } | |
1465 | ||
e6056257 RD |
1466 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { |
1467 | PyObject * _resultobj; | |
1468 | bool _result; | |
1469 | char * _arg0; | |
1470 | int _arg1; | |
1471 | char *_kwnames[] = { "name","value", NULL }; | |
1472 | ||
1473 | self = self; | |
1474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
1475 | return NULL; | |
1476 | { | |
0e2ff151 | 1477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1478 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); |
e6056257 | 1479 | |
0e2ff151 RD |
1480 | wxPyEndAllowThreads(__tstate); |
1481 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1482 | } _resultobj = Py_BuildValue("i",_result); |
1483 | return _resultobj; | |
1484 | } | |
1485 | ||
1486 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1487 | PyObject * _resultobj; | |
1488 | char *_kwnames[] = { NULL }; | |
1489 | ||
1490 | self = self; | |
1491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
1492 | return NULL; | |
1493 | { | |
0e2ff151 | 1494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1495 | wxResourceClear(); |
e6056257 | 1496 | |
0e2ff151 RD |
1497 | wxPyEndAllowThreads(__tstate); |
1498 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1499 | } Py_INCREF(Py_None); |
1500 | _resultobj = Py_None; | |
1501 | return _resultobj; | |
1502 | } | |
1503 | ||
1504 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1505 | PyObject * _resultobj; | |
1506 | wxBitmap * _result; | |
1507 | char * _arg0; | |
1508 | char *_kwnames[] = { "resource", NULL }; | |
1509 | char _ptemp[128]; | |
1510 | ||
1511 | self = self; | |
1512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
1513 | return NULL; | |
1514 | { | |
0e2ff151 | 1515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1516 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); |
e6056257 | 1517 | |
0e2ff151 RD |
1518 | wxPyEndAllowThreads(__tstate); |
1519 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1520 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1521 | _resultobj = Py_BuildValue("s",_ptemp); | |
1522 | return _resultobj; | |
1523 | } | |
1524 | ||
1525 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1526 | PyObject * _resultobj; | |
1527 | wxIcon * _result; | |
1528 | char * _arg0; | |
1529 | char *_kwnames[] = { "resource", NULL }; | |
1530 | char _ptemp[128]; | |
1531 | ||
1532 | self = self; | |
1533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
1534 | return NULL; | |
1535 | { | |
0e2ff151 | 1536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1537 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); |
e6056257 | 1538 | |
0e2ff151 RD |
1539 | wxPyEndAllowThreads(__tstate); |
1540 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1541 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); |
1542 | _resultobj = Py_BuildValue("s",_ptemp); | |
1543 | return _resultobj; | |
1544 | } | |
1545 | ||
1546 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1547 | PyObject * _resultobj; | |
1548 | wxMenuBar * _result; | |
1549 | char * _arg0; | |
1550 | char *_kwnames[] = { "resource", NULL }; | |
1551 | ||
1552 | self = self; | |
1553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
1554 | return NULL; | |
1555 | { | |
0e2ff151 | 1556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1557 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); |
e6056257 | 1558 | |
0e2ff151 RD |
1559 | wxPyEndAllowThreads(__tstate); |
1560 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1561 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1562 | return _resultobj; | |
1563 | } | |
1564 | ||
1565 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1566 | PyObject * _resultobj; | |
1567 | int _result; | |
1568 | char * _arg0; | |
1569 | char *_kwnames[] = { "name", NULL }; | |
1570 | ||
1571 | self = self; | |
1572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
1573 | return NULL; | |
1574 | { | |
0e2ff151 | 1575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1576 | _result = (int )wxResourceGetIdentifier(_arg0); |
e6056257 | 1577 | |
0e2ff151 RD |
1578 | wxPyEndAllowThreads(__tstate); |
1579 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1580 | } _resultobj = Py_BuildValue("i",_result); |
1581 | return _resultobj; | |
1582 | } | |
1583 | ||
1584 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1585 | PyObject * _resultobj; | |
1586 | bool _result; | |
1587 | char * _arg0; | |
1588 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1589 | PyObject * _argo1 = 0; | |
1590 | char *_kwnames[] = { "resource","table", NULL }; | |
1591 | ||
1592 | self = self; | |
1593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
1594 | return NULL; | |
1595 | if (_argo1) { | |
1596 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1597 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
1599 | return NULL; | |
1600 | } | |
1601 | } | |
1602 | { | |
0e2ff151 | 1603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1604 | _result = (bool )wxResourceParseData(_arg0,_arg1); |
e6056257 | 1605 | |
0e2ff151 RD |
1606 | wxPyEndAllowThreads(__tstate); |
1607 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1608 | } _resultobj = Py_BuildValue("i",_result); |
1609 | return _resultobj; | |
1610 | } | |
1611 | ||
1612 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1613 | PyObject * _resultobj; | |
1614 | bool _result; | |
1615 | char * _arg0; | |
1616 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1617 | PyObject * _argo1 = 0; | |
1618 | char *_kwnames[] = { "filename","table", NULL }; | |
1619 | ||
1620 | self = self; | |
1621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
1622 | return NULL; | |
1623 | if (_argo1) { | |
1624 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1625 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
1627 | return NULL; | |
1628 | } | |
1629 | } | |
1630 | { | |
0e2ff151 | 1631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1632 | _result = (bool )wxResourceParseFile(_arg0,_arg1); |
e6056257 | 1633 | |
0e2ff151 RD |
1634 | wxPyEndAllowThreads(__tstate); |
1635 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1636 | } _resultobj = Py_BuildValue("i",_result); |
1637 | return _resultobj; | |
1638 | } | |
1639 | ||
1640 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1641 | PyObject * _resultobj; | |
1642 | bool _result; | |
1643 | char * _arg0; | |
1644 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1645 | PyObject * _argo1 = 0; | |
1646 | char *_kwnames[] = { "resource","table", NULL }; | |
1647 | ||
1648 | self = self; | |
1649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
1650 | return NULL; | |
1651 | if (_argo1) { | |
1652 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1653 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
1655 | return NULL; | |
1656 | } | |
1657 | } | |
1658 | { | |
0e2ff151 | 1659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1660 | _result = (bool )wxResourceParseString(_arg0,_arg1); |
e6056257 | 1661 | |
0e2ff151 RD |
1662 | wxPyEndAllowThreads(__tstate); |
1663 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1664 | } _resultobj = Py_BuildValue("i",_result); |
1665 | return _resultobj; | |
1666 | } | |
1667 | ||
e6056257 RD |
1668 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { |
1669 | PyObject * _resultobj; | |
1670 | int _result; | |
1671 | char *_kwnames[] = { NULL }; | |
1672 | ||
1673 | self = self; | |
1674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1675 | return NULL; | |
1676 | { | |
0e2ff151 | 1677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1678 | _result = (int )wxCaret_GetBlinkTime(); |
e6056257 | 1679 | |
0e2ff151 RD |
1680 | wxPyEndAllowThreads(__tstate); |
1681 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1682 | } _resultobj = Py_BuildValue("i",_result); |
1683 | return _resultobj; | |
1684 | } | |
1685 | ||
1686 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1687 | PyObject * _resultobj; | |
1688 | int _arg0; | |
1689 | char *_kwnames[] = { "milliseconds", NULL }; | |
1690 | ||
1691 | self = self; | |
1692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1693 | return NULL; | |
1694 | { | |
0e2ff151 | 1695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1696 | wxCaret_SetBlinkTime(_arg0); |
e6056257 | 1697 | |
0e2ff151 RD |
1698 | wxPyEndAllowThreads(__tstate); |
1699 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1700 | } Py_INCREF(Py_None); |
1701 | _resultobj = Py_None; | |
1702 | return _resultobj; | |
1703 | } | |
1704 | ||
1705 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1706 | PyObject * _resultobj; | |
1707 | bool _result; | |
1708 | wxWindow * _arg0 = (wxWindow *) NULL; | |
1709 | PyObject * _argo0 = 0; | |
1710 | char *_kwnames[] = { "win", NULL }; | |
1711 | ||
1712 | self = self; | |
1713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0)) | |
1714 | return NULL; | |
1715 | if (_argo0) { | |
1716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1719 | return NULL; | |
1720 | } | |
1721 | } | |
1722 | { | |
0e2ff151 | 1723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1724 | _result = (bool )wxSafeYield(_arg0); |
e6056257 | 1725 | |
0e2ff151 RD |
1726 | wxPyEndAllowThreads(__tstate); |
1727 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1728 | } _resultobj = Py_BuildValue("i",_result); |
1729 | return _resultobj; | |
1730 | } | |
1731 | ||
1732 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1733 | PyObject * _resultobj; | |
1734 | wxEvtHandler * _arg0; | |
1735 | wxEvent * _arg1; | |
1736 | PyObject * _argo0 = 0; | |
1737 | PyObject * _argo1 = 0; | |
1738 | char *_kwnames[] = { "dest","event", NULL }; | |
1739 | ||
1740 | self = self; | |
1741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1742 | return NULL; | |
1743 | if (_argo0) { | |
1744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1747 | return NULL; | |
1748 | } | |
1749 | } | |
1750 | if (_argo1) { | |
1751 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1752 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1754 | return NULL; | |
1755 | } | |
1756 | } | |
1757 | { | |
0e2ff151 | 1758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1759 | wxPostEvent(_arg0,*_arg1); |
e6056257 | 1760 | |
0e2ff151 RD |
1761 | wxPyEndAllowThreads(__tstate); |
1762 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1763 | } Py_INCREF(Py_None); |
1764 | _resultobj = Py_None; | |
1765 | return _resultobj; | |
1766 | } | |
1767 | ||
1768 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1769 | PyObject * _resultobj; | |
1770 | char *_kwnames[] = { NULL }; | |
1771 | ||
1772 | self = self; | |
1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1774 | return NULL; | |
1775 | { | |
0e2ff151 | 1776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1777 | wxWakeUpIdle(); |
e6056257 | 1778 | |
0e2ff151 RD |
1779 | wxPyEndAllowThreads(__tstate); |
1780 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1781 | } Py_INCREF(Py_None); |
1782 | _resultobj = Py_None; | |
1783 | return _resultobj; | |
1784 | } | |
1785 | ||
1786 | static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1787 | PyObject * _resultobj; | |
1788 | char *_kwnames[] = { NULL }; | |
1789 | ||
1790 | self = self; | |
1791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames)) | |
1792 | return NULL; | |
1793 | { | |
0e2ff151 | 1794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1795 | wxMutexGuiEnter(); |
e6056257 | 1796 | |
0e2ff151 RD |
1797 | wxPyEndAllowThreads(__tstate); |
1798 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1799 | } Py_INCREF(Py_None); |
1800 | _resultobj = Py_None; | |
1801 | return _resultobj; | |
1802 | } | |
1803 | ||
1804 | static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1805 | PyObject * _resultobj; | |
1806 | char *_kwnames[] = { NULL }; | |
1807 | ||
1808 | self = self; | |
1809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames)) | |
1810 | return NULL; | |
1811 | { | |
0e2ff151 | 1812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1813 | wxMutexGuiLeave(); |
e6056257 | 1814 | |
0e2ff151 RD |
1815 | wxPyEndAllowThreads(__tstate); |
1816 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1817 | } Py_INCREF(Py_None); |
1818 | _resultobj = Py_None; | |
1819 | return _resultobj; | |
1820 | } | |
1821 | ||
1822 | static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1823 | PyObject * _resultobj; | |
1824 | bool _result; | |
1825 | char *_kwnames[] = { NULL }; | |
1826 | ||
1827 | self = self; | |
1828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames)) | |
1829 | return NULL; | |
1830 | { | |
0e2ff151 | 1831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1832 | _result = (bool )wxThread_IsMain(); |
e6056257 | 1833 | |
0e2ff151 RD |
1834 | wxPyEndAllowThreads(__tstate); |
1835 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1836 | } _resultobj = Py_BuildValue("i",_result); |
1837 | return _resultobj; | |
1838 | } | |
1839 | ||
1840 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1841 | PyObject * _resultobj; | |
1842 | bool _result; | |
1843 | wxWindow * _arg0; | |
1844 | wxTipProvider * _arg1; | |
1845 | bool _arg2 = (bool ) TRUE; | |
1846 | PyObject * _argo0 = 0; | |
1847 | PyObject * _argo1 = 0; | |
1848 | int tempbool2 = (int) TRUE; | |
1849 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1850 | ||
1851 | self = self; | |
1852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1853 | return NULL; | |
1854 | if (_argo0) { | |
1855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1858 | return NULL; | |
1859 | } | |
1860 | } | |
1861 | if (_argo1) { | |
1862 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1863 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1865 | return NULL; | |
1866 | } | |
1867 | } | |
1868 | _arg2 = (bool ) tempbool2; | |
1869 | { | |
0e2ff151 | 1870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1871 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); |
e6056257 | 1872 | |
0e2ff151 RD |
1873 | wxPyEndAllowThreads(__tstate); |
1874 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1875 | } _resultobj = Py_BuildValue("i",_result); |
1876 | return _resultobj; | |
1877 | } | |
1878 | ||
1879 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1880 | PyObject * _resultobj; | |
1881 | wxTipProvider * _result; | |
1882 | wxString * _arg0; | |
1883 | size_t _arg1; | |
1884 | PyObject * _obj0 = 0; | |
1885 | char *_kwnames[] = { "filename","currentTip", NULL }; | |
1886 | char _ptemp[128]; | |
1887 | ||
1888 | self = self; | |
1889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) | |
1890 | return NULL; | |
1891 | { | |
6824d4f9 RD |
1892 | _arg0 = wxString_in_helper(_obj0); |
1893 | if (_arg0 == NULL) | |
e6056257 | 1894 | return NULL; |
e6056257 RD |
1895 | } |
1896 | { | |
0e2ff151 | 1897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1898 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); |
e6056257 | 1899 | |
0e2ff151 RD |
1900 | wxPyEndAllowThreads(__tstate); |
1901 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1902 | } if (_result) { |
1903 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); | |
1904 | _resultobj = Py_BuildValue("s",_ptemp); | |
1905 | } else { | |
1906 | Py_INCREF(Py_None); | |
1907 | _resultobj = Py_None; | |
1908 | } | |
1909 | { | |
1910 | if (_obj0) | |
1911 | delete _arg0; | |
1912 | } | |
1913 | return _resultobj; | |
1914 | } | |
1915 | ||
1916 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1917 | PyObject * _resultobj; | |
1918 | unsigned long _result; | |
1919 | char *_kwnames[] = { NULL }; | |
1920 | ||
1921 | self = self; | |
1922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) | |
1923 | return NULL; | |
1924 | { | |
0e2ff151 | 1925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1926 | _result = (unsigned long )wxSysErrorCode(); |
e6056257 | 1927 | |
0e2ff151 RD |
1928 | wxPyEndAllowThreads(__tstate); |
1929 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1930 | } _resultobj = Py_BuildValue("l",_result); |
1931 | return _resultobj; | |
1932 | } | |
1933 | ||
1934 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1935 | PyObject * _resultobj; | |
6824d4f9 | 1936 | wxString * _result; |
e6056257 RD |
1937 | unsigned long _arg0 = (unsigned long ) 0; |
1938 | char *_kwnames[] = { "nErrCode", NULL }; | |
1939 | ||
1940 | self = self; | |
1941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) | |
1942 | return NULL; | |
1943 | { | |
0e2ff151 | 1944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1945 | _result = new wxString (wxSysErrorMsg(_arg0)); |
e6056257 | 1946 | |
0e2ff151 RD |
1947 | wxPyEndAllowThreads(__tstate); |
1948 | if (PyErr_Occurred()) return NULL; | |
6824d4f9 RD |
1949 | }{ |
1950 | #if wxUSE_UNICODE | |
1951 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1952 | #else | |
1953 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1954 | #endif | |
1955 | } | |
1956 | { | |
1957 | delete _result; | |
1958 | } | |
e6056257 RD |
1959 | return _resultobj; |
1960 | } | |
1961 | ||
1962 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1963 | PyObject * _resultobj; | |
6824d4f9 RD |
1964 | wxString * _arg0; |
1965 | PyObject * _obj0 = 0; | |
3a37d753 | 1966 | char *_kwnames[] = { "msg", NULL }; |
e6056257 RD |
1967 | |
1968 | self = self; | |
6824d4f9 | 1969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogFatalError",_kwnames,&_obj0)) |
e6056257 | 1970 | return NULL; |
6824d4f9 RD |
1971 | { |
1972 | _arg0 = wxString_in_helper(_obj0); | |
1973 | if (_arg0 == NULL) | |
1974 | return NULL; | |
1975 | } | |
e6056257 | 1976 | { |
0e2ff151 | 1977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1978 | wxLogFatalError(*_arg0); |
e6056257 | 1979 | |
0e2ff151 RD |
1980 | wxPyEndAllowThreads(__tstate); |
1981 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
1982 | } Py_INCREF(Py_None); |
1983 | _resultobj = Py_None; | |
6824d4f9 RD |
1984 | { |
1985 | if (_obj0) | |
1986 | delete _arg0; | |
1987 | } | |
e6056257 RD |
1988 | return _resultobj; |
1989 | } | |
1990 | ||
1991 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1992 | PyObject * _resultobj; | |
6824d4f9 RD |
1993 | wxString * _arg0; |
1994 | PyObject * _obj0 = 0; | |
3a37d753 | 1995 | char *_kwnames[] = { "msg", NULL }; |
e6056257 RD |
1996 | |
1997 | self = self; | |
6824d4f9 | 1998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogError",_kwnames,&_obj0)) |
e6056257 | 1999 | return NULL; |
6824d4f9 RD |
2000 | { |
2001 | _arg0 = wxString_in_helper(_obj0); | |
2002 | if (_arg0 == NULL) | |
2003 | return NULL; | |
2004 | } | |
e6056257 | 2005 | { |
0e2ff151 | 2006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2007 | wxLogError(*_arg0); |
e6056257 | 2008 | |
0e2ff151 RD |
2009 | wxPyEndAllowThreads(__tstate); |
2010 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2011 | } Py_INCREF(Py_None); |
2012 | _resultobj = Py_None; | |
6824d4f9 RD |
2013 | { |
2014 | if (_obj0) | |
2015 | delete _arg0; | |
2016 | } | |
e6056257 RD |
2017 | return _resultobj; |
2018 | } | |
2019 | ||
2020 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2021 | PyObject * _resultobj; | |
6824d4f9 RD |
2022 | wxString * _arg0; |
2023 | PyObject * _obj0 = 0; | |
3a37d753 | 2024 | char *_kwnames[] = { "msg", NULL }; |
e6056257 RD |
2025 | |
2026 | self = self; | |
6824d4f9 | 2027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWarning",_kwnames,&_obj0)) |
e6056257 | 2028 | return NULL; |
6824d4f9 RD |
2029 | { |
2030 | _arg0 = wxString_in_helper(_obj0); | |
2031 | if (_arg0 == NULL) | |
2032 | return NULL; | |
2033 | } | |
e6056257 | 2034 | { |
0e2ff151 | 2035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2036 | wxLogWarning(*_arg0); |
e6056257 | 2037 | |
0e2ff151 RD |
2038 | wxPyEndAllowThreads(__tstate); |
2039 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2040 | } Py_INCREF(Py_None); |
2041 | _resultobj = Py_None; | |
6824d4f9 RD |
2042 | { |
2043 | if (_obj0) | |
2044 | delete _arg0; | |
2045 | } | |
e6056257 RD |
2046 | return _resultobj; |
2047 | } | |
2048 | ||
2049 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2050 | PyObject * _resultobj; | |
6824d4f9 RD |
2051 | wxString * _arg0; |
2052 | PyObject * _obj0 = 0; | |
3a37d753 | 2053 | char *_kwnames[] = { "msg", NULL }; |
e6056257 RD |
2054 | |
2055 | self = self; | |
6824d4f9 RD |
2056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogMessage",_kwnames,&_obj0)) |
2057 | return NULL; | |
2058 | { | |
2059 | _arg0 = wxString_in_helper(_obj0); | |
2060 | if (_arg0 == NULL) | |
e6056257 | 2061 | return NULL; |
6824d4f9 | 2062 | } |
e6056257 | 2063 | { |
0e2ff151 | 2064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2065 | wxLogMessage(*_arg0); |
e6056257 | 2066 | |
0e2ff151 RD |
2067 | wxPyEndAllowThreads(__tstate); |
2068 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2069 | } Py_INCREF(Py_None); |
2070 | _resultobj = Py_None; | |
6824d4f9 RD |
2071 | { |
2072 | if (_obj0) | |
2073 | delete _arg0; | |
2074 | } | |
e6056257 RD |
2075 | return _resultobj; |
2076 | } | |
2077 | ||
2078 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2079 | PyObject * _resultobj; | |
6824d4f9 RD |
2080 | wxString * _arg0; |
2081 | PyObject * _obj0 = 0; | |
3a37d753 | 2082 | char *_kwnames[] = { "msg", NULL }; |
e6056257 RD |
2083 | |
2084 | self = self; | |
6824d4f9 RD |
2085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogInfo",_kwnames,&_obj0)) |
2086 | return NULL; | |
2087 | { | |
2088 | _arg0 = wxString_in_helper(_obj0); | |
2089 | if (_arg0 == NULL) | |
e6056257 | 2090 | return NULL; |
6824d4f9 | 2091 | } |
e6056257 | 2092 | { |
0e2ff151 | 2093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2094 | wxLogInfo(*_arg0); |
e6056257 | 2095 | |
0e2ff151 RD |
2096 | wxPyEndAllowThreads(__tstate); |
2097 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2098 | } Py_INCREF(Py_None); |
2099 | _resultobj = Py_None; | |
6824d4f9 RD |
2100 | { |
2101 | if (_obj0) | |
2102 | delete _arg0; | |
2103 | } | |
e6056257 RD |
2104 | return _resultobj; |
2105 | } | |
2106 | ||
2107 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2108 | PyObject * _resultobj; | |
6824d4f9 RD |
2109 | wxString * _arg0; |
2110 | PyObject * _obj0 = 0; | |
3a37d753 | 2111 | char *_kwnames[] = { "msg", NULL }; |
e6056257 RD |
2112 | |
2113 | self = self; | |
6824d4f9 | 2114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogVerbose",_kwnames,&_obj0)) |
e6056257 | 2115 | return NULL; |
6824d4f9 RD |
2116 | { |
2117 | _arg0 = wxString_in_helper(_obj0); | |
2118 | if (_arg0 == NULL) | |
2119 | return NULL; | |
2120 | } | |
e6056257 | 2121 | { |
0e2ff151 | 2122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2123 | wxLogVerbose(*_arg0); |
e6056257 | 2124 | |
0e2ff151 RD |
2125 | wxPyEndAllowThreads(__tstate); |
2126 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2127 | } Py_INCREF(Py_None); |
2128 | _resultobj = Py_None; | |
6824d4f9 RD |
2129 | { |
2130 | if (_obj0) | |
2131 | delete _arg0; | |
2132 | } | |
e6056257 RD |
2133 | return _resultobj; |
2134 | } | |
2135 | ||
2136 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2137 | PyObject * _resultobj; | |
6824d4f9 RD |
2138 | wxString * _arg0; |
2139 | PyObject * _obj0 = 0; | |
3a37d753 | 2140 | char *_kwnames[] = { "msg", NULL }; |
e6056257 RD |
2141 | |
2142 | self = self; | |
6824d4f9 RD |
2143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogStatus",_kwnames,&_obj0)) |
2144 | return NULL; | |
2145 | { | |
2146 | _arg0 = wxString_in_helper(_obj0); | |
2147 | if (_arg0 == NULL) | |
e6056257 | 2148 | return NULL; |
6824d4f9 | 2149 | } |
e6056257 | 2150 | { |
0e2ff151 | 2151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2152 | wxLogStatus(*_arg0); |
e6056257 | 2153 | |
0e2ff151 RD |
2154 | wxPyEndAllowThreads(__tstate); |
2155 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2156 | } Py_INCREF(Py_None); |
2157 | _resultobj = Py_None; | |
6824d4f9 RD |
2158 | { |
2159 | if (_obj0) | |
2160 | delete _arg0; | |
2161 | } | |
e6056257 RD |
2162 | return _resultobj; |
2163 | } | |
2164 | ||
2165 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2166 | PyObject * _resultobj; | |
2167 | wxFrame * _arg0; | |
6824d4f9 | 2168 | wxString * _arg1; |
e6056257 | 2169 | PyObject * _argo0 = 0; |
6824d4f9 | 2170 | PyObject * _obj1 = 0; |
3a37d753 | 2171 | char *_kwnames[] = { "pFrame","msg", NULL }; |
e6056257 RD |
2172 | |
2173 | self = self; | |
6824d4f9 | 2174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogStatusFrame",_kwnames,&_argo0,&_obj1)) |
e6056257 RD |
2175 | return NULL; |
2176 | if (_argo0) { | |
2177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2180 | return NULL; | |
2181 | } | |
2182 | } | |
6824d4f9 RD |
2183 | { |
2184 | _arg1 = wxString_in_helper(_obj1); | |
2185 | if (_arg1 == NULL) | |
2186 | return NULL; | |
2187 | } | |
e6056257 | 2188 | { |
0e2ff151 | 2189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2190 | wxLogStatus(_arg0,*_arg1); |
e6056257 | 2191 | |
0e2ff151 RD |
2192 | wxPyEndAllowThreads(__tstate); |
2193 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2194 | } Py_INCREF(Py_None); |
2195 | _resultobj = Py_None; | |
6824d4f9 RD |
2196 | { |
2197 | if (_obj1) | |
2198 | delete _arg1; | |
2199 | } | |
e6056257 RD |
2200 | return _resultobj; |
2201 | } | |
2202 | ||
2203 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2204 | PyObject * _resultobj; | |
6824d4f9 RD |
2205 | wxString * _arg0; |
2206 | PyObject * _obj0 = 0; | |
3a37d753 | 2207 | char *_kwnames[] = { "msg", NULL }; |
e6056257 RD |
2208 | |
2209 | self = self; | |
6824d4f9 RD |
2210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogSysError",_kwnames,&_obj0)) |
2211 | return NULL; | |
2212 | { | |
2213 | _arg0 = wxString_in_helper(_obj0); | |
2214 | if (_arg0 == NULL) | |
e6056257 | 2215 | return NULL; |
6824d4f9 | 2216 | } |
e6056257 | 2217 | { |
0e2ff151 | 2218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2219 | wxLogSysError(*_arg0); |
e6056257 | 2220 | |
0e2ff151 RD |
2221 | wxPyEndAllowThreads(__tstate); |
2222 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2223 | } Py_INCREF(Py_None); |
2224 | _resultobj = Py_None; | |
6824d4f9 RD |
2225 | { |
2226 | if (_obj0) | |
2227 | delete _arg0; | |
2228 | } | |
e6056257 RD |
2229 | return _resultobj; |
2230 | } | |
2231 | ||
3a37d753 RD |
2232 | static PyObject *_wrap_wxLogTrace(PyObject *self, PyObject *args, PyObject *kwargs) { |
2233 | PyObject * _resultobj; | |
2234 | wxString * _arg0; | |
2235 | PyObject * _obj0 = 0; | |
2236 | char *_kwnames[] = { "msg", NULL }; | |
2237 | ||
2238 | self = self; | |
2239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogTrace",_kwnames,&_obj0)) | |
2240 | return NULL; | |
2241 | { | |
2242 | _arg0 = wxString_in_helper(_obj0); | |
2243 | if (_arg0 == NULL) | |
2244 | return NULL; | |
2245 | } | |
2246 | { | |
2247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2248 | wxLogTrace(*_arg0); | |
2249 | ||
2250 | wxPyEndAllowThreads(__tstate); | |
2251 | if (PyErr_Occurred()) return NULL; | |
2252 | } Py_INCREF(Py_None); | |
2253 | _resultobj = Py_None; | |
2254 | { | |
2255 | if (_obj0) | |
2256 | delete _arg0; | |
2257 | } | |
2258 | return _resultobj; | |
2259 | } | |
2260 | ||
2261 | static PyObject *_wrap_wxLogTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2262 | PyObject * _resultobj; | |
2263 | wxString * _arg0; | |
2264 | wxString * _arg1; | |
2265 | PyObject * _obj0 = 0; | |
2266 | PyObject * _obj1 = 0; | |
2267 | char *_kwnames[] = { "mask","msg", NULL }; | |
2268 | ||
2269 | self = self; | |
2270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogTraceMask",_kwnames,&_obj0,&_obj1)) | |
2271 | return NULL; | |
2272 | { | |
2273 | _arg0 = wxString_in_helper(_obj0); | |
2274 | if (_arg0 == NULL) | |
2275 | return NULL; | |
2276 | } | |
2277 | { | |
2278 | _arg1 = wxString_in_helper(_obj1); | |
2279 | if (_arg1 == NULL) | |
2280 | return NULL; | |
2281 | } | |
2282 | { | |
2283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2284 | wxLogTrace(*_arg0,*_arg1); | |
2285 | ||
2286 | wxPyEndAllowThreads(__tstate); | |
2287 | if (PyErr_Occurred()) return NULL; | |
2288 | } Py_INCREF(Py_None); | |
2289 | _resultobj = Py_None; | |
2290 | { | |
2291 | if (_obj0) | |
2292 | delete _arg0; | |
2293 | } | |
2294 | { | |
2295 | if (_obj1) | |
2296 | delete _arg1; | |
2297 | } | |
2298 | return _resultobj; | |
2299 | } | |
2300 | ||
2301 | static PyObject *_wrap_wxLogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2302 | PyObject * _resultobj; | |
2303 | unsigned long _arg0; | |
2304 | wxString * _arg1; | |
2305 | PyObject * _obj1 = 0; | |
2306 | char *_kwnames[] = { "level","msg", NULL }; | |
2307 | ||
2308 | self = self; | |
2309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"lO:wxLogGeneric",_kwnames,&_arg0,&_obj1)) | |
2310 | return NULL; | |
2311 | { | |
2312 | _arg1 = wxString_in_helper(_obj1); | |
2313 | if (_arg1 == NULL) | |
2314 | return NULL; | |
2315 | } | |
2316 | { | |
2317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2318 | wxLogGeneric(_arg0,*_arg1); | |
2319 | ||
2320 | wxPyEndAllowThreads(__tstate); | |
2321 | if (PyErr_Occurred()) return NULL; | |
2322 | } Py_INCREF(Py_None); | |
2323 | _resultobj = Py_None; | |
2324 | { | |
2325 | if (_obj1) | |
2326 | delete _arg1; | |
2327 | } | |
2328 | return _resultobj; | |
2329 | } | |
2330 | ||
26eb8715 RD |
2331 | static PyObject *_wrap_wxSafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
2332 | PyObject * _resultobj; | |
2333 | wxString * _arg0; | |
2334 | wxString * _arg1; | |
2335 | PyObject * _obj0 = 0; | |
2336 | PyObject * _obj1 = 0; | |
2337 | char *_kwnames[] = { "title","text", NULL }; | |
2338 | ||
2339 | self = self; | |
2340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSafeShowMessage",_kwnames,&_obj0,&_obj1)) | |
2341 | return NULL; | |
2342 | { | |
2343 | _arg0 = wxString_in_helper(_obj0); | |
2344 | if (_arg0 == NULL) | |
2345 | return NULL; | |
2346 | } | |
2347 | { | |
2348 | _arg1 = wxString_in_helper(_obj1); | |
2349 | if (_arg1 == NULL) | |
2350 | return NULL; | |
2351 | } | |
2352 | { | |
2353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2354 | wxSafeShowMessage(*_arg0,*_arg1); | |
2355 | ||
2356 | wxPyEndAllowThreads(__tstate); | |
2357 | if (PyErr_Occurred()) return NULL; | |
2358 | } Py_INCREF(Py_None); | |
2359 | _resultobj = Py_None; | |
2360 | { | |
2361 | if (_obj0) | |
2362 | delete _arg0; | |
2363 | } | |
2364 | { | |
2365 | if (_obj1) | |
2366 | delete _arg1; | |
2367 | } | |
2368 | return _resultobj; | |
2369 | } | |
2370 | ||
e6056257 RD |
2371 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { |
2372 | PyObject * _resultobj; | |
2373 | long _result; | |
2374 | wxString * _arg0; | |
40699168 | 2375 | int _arg1 = (int ) (wxEXEC_ASYNC); |
e6056257 RD |
2376 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; |
2377 | PyObject * _obj0 = 0; | |
2378 | PyObject * _argo2 = 0; | |
40699168 | 2379 | char *_kwnames[] = { "command","flags","process", NULL }; |
e6056257 RD |
2380 | |
2381 | self = self; | |
2382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2383 | return NULL; | |
2384 | { | |
6824d4f9 RD |
2385 | _arg0 = wxString_in_helper(_obj0); |
2386 | if (_arg0 == NULL) | |
e6056257 | 2387 | return NULL; |
e6056257 RD |
2388 | } |
2389 | if (_argo2) { | |
2390 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2391 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2393 | return NULL; | |
2394 | } | |
2395 | } | |
2396 | { | |
0e2ff151 | 2397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2398 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); |
e6056257 | 2399 | |
0e2ff151 RD |
2400 | wxPyEndAllowThreads(__tstate); |
2401 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2402 | } _resultobj = Py_BuildValue("l",_result); |
2403 | { | |
2404 | if (_obj0) | |
2405 | delete _arg0; | |
2406 | } | |
2407 | return _resultobj; | |
2408 | } | |
2409 | ||
2410 | static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2411 | PyObject * _resultobj; | |
2412 | wxWave * _result; | |
2413 | wxString * _arg0; | |
2414 | PyObject * _obj0 = 0; | |
2415 | char *_kwnames[] = { "data", NULL }; | |
2416 | char _ptemp[128]; | |
2417 | ||
2418 | self = self; | |
2419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0)) | |
2420 | return NULL; | |
2421 | { | |
6824d4f9 RD |
2422 | _arg0 = wxString_in_helper(_obj0); |
2423 | if (_arg0 == NULL) | |
e6056257 | 2424 | return NULL; |
e6056257 RD |
2425 | } |
2426 | { | |
0e2ff151 | 2427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2428 | _result = (wxWave *)wxWaveData(*_arg0); |
e6056257 | 2429 | |
0e2ff151 RD |
2430 | wxPyEndAllowThreads(__tstate); |
2431 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2432 | } if (_result) { |
2433 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
2434 | _resultobj = Py_BuildValue("s",_ptemp); | |
2435 | } else { | |
2436 | Py_INCREF(Py_None); | |
2437 | _resultobj = Py_None; | |
2438 | } | |
2439 | { | |
2440 | if (_obj0) | |
2441 | delete _arg0; | |
2442 | } | |
2443 | return _resultobj; | |
2444 | } | |
2445 | ||
b6e5c445 RD |
2446 | static int _wrap_wxTheMimeTypesManager_set(PyObject *val) { |
2447 | ||
2448 | PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only."); | |
2449 | return 1; | |
2450 | } | |
2451 | ||
2452 | static PyObject *_wrap_wxTheMimeTypesManager_get() { | |
2453 | PyObject * pyobj; | |
2454 | char ptemp[128]; | |
2455 | ||
2456 | SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p"); | |
2457 | pyobj = PyString_FromString(ptemp); | |
2458 | return pyobj; | |
2459 | } | |
2460 | ||
6abe8375 RD |
2461 | static PyObject *_wrap_wxSystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
2462 | PyObject * _resultobj; | |
2463 | wxColour * _result; | |
2464 | wxSystemColour _arg0; | |
2465 | char *_kwnames[] = { "index", NULL }; | |
2466 | char _ptemp[128]; | |
2467 | ||
2468 | self = self; | |
2469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetColour",_kwnames,&_arg0)) | |
2470 | return NULL; | |
2471 | { | |
2472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2473 | _result = new wxColour (wxSystemSettings::GetColour(_arg0)); |
6abe8375 RD |
2474 | |
2475 | wxPyEndAllowThreads(__tstate); | |
2476 | if (PyErr_Occurred()) return NULL; | |
2477 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
2478 | _resultobj = Py_BuildValue("s",_ptemp); | |
2479 | return _resultobj; | |
2480 | } | |
2481 | ||
2482 | static PyObject *_wrap_wxSystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2483 | PyObject * _resultobj; | |
2484 | wxFont * _result; | |
2485 | wxSystemFont _arg0; | |
2486 | char *_kwnames[] = { "index", NULL }; | |
2487 | char _ptemp[128]; | |
2488 | ||
2489 | self = self; | |
2490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetFont",_kwnames,&_arg0)) | |
2491 | return NULL; | |
2492 | { | |
2493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2494 | _result = new wxFont (wxSystemSettings::GetFont(_arg0)); |
6abe8375 RD |
2495 | |
2496 | wxPyEndAllowThreads(__tstate); | |
2497 | if (PyErr_Occurred()) return NULL; | |
2498 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
2499 | _resultobj = Py_BuildValue("s",_ptemp); | |
2500 | return _resultobj; | |
2501 | } | |
2502 | ||
2503 | static PyObject *_wrap_wxSystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2504 | PyObject * _resultobj; | |
2505 | int _result; | |
2506 | wxSystemMetric _arg0; | |
2507 | char *_kwnames[] = { "index", NULL }; | |
2508 | ||
2509 | self = self; | |
2510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetMetric",_kwnames,&_arg0)) | |
2511 | return NULL; | |
2512 | { | |
2513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2514 | _result = (int )wxSystemSettings::GetMetric(_arg0); |
6abe8375 RD |
2515 | |
2516 | wxPyEndAllowThreads(__tstate); | |
2517 | if (PyErr_Occurred()) return NULL; | |
2518 | } _resultobj = Py_BuildValue("i",_result); | |
2519 | return _resultobj; | |
2520 | } | |
2521 | ||
2522 | static PyObject *_wrap_wxSystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2523 | PyObject * _resultobj; | |
2524 | bool _result; | |
2525 | wxSystemFeature _arg0; | |
2526 | char *_kwnames[] = { "index", NULL }; | |
2527 | ||
2528 | self = self; | |
2529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_HasFeature",_kwnames,&_arg0)) | |
2530 | return NULL; | |
2531 | { | |
2532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2533 | _result = (bool )wxSystemSettings::HasFeature(_arg0); |
6abe8375 RD |
2534 | |
2535 | wxPyEndAllowThreads(__tstate); | |
2536 | if (PyErr_Occurred()) return NULL; | |
2537 | } _resultobj = Py_BuildValue("i",_result); | |
2538 | return _resultobj; | |
2539 | } | |
2540 | ||
557a93b9 | 2541 | static PyObject *_wrap_wxSystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { |
26eb8715 | 2542 | PyObject * _resultobj; |
557a93b9 | 2543 | wxSystemScreenType _result; |
26eb8715 RD |
2544 | char *_kwnames[] = { NULL }; |
2545 | ||
2546 | self = self; | |
557a93b9 | 2547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSystemSettings_GetScreenType",_kwnames)) |
26eb8715 RD |
2548 | return NULL; |
2549 | { | |
2550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
557a93b9 | 2551 | _result = (wxSystemScreenType )wxSystemSettings::GetScreenType(); |
26eb8715 RD |
2552 | |
2553 | wxPyEndAllowThreads(__tstate); | |
2554 | if (PyErr_Occurred()) return NULL; | |
2555 | } _resultobj = Py_BuildValue("i",_result); | |
2556 | return _resultobj; | |
2557 | } | |
2558 | ||
557a93b9 | 2559 | static PyObject *_wrap_wxSystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { |
26eb8715 | 2560 | PyObject * _resultobj; |
557a93b9 | 2561 | wxSystemScreenType _arg0; |
26eb8715 RD |
2562 | char *_kwnames[] = { "screen", NULL }; |
2563 | ||
2564 | self = self; | |
557a93b9 | 2565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_SetScreenType",_kwnames,&_arg0)) |
26eb8715 RD |
2566 | return NULL; |
2567 | { | |
2568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
557a93b9 | 2569 | wxSystemSettings::SetScreenType(_arg0); |
26eb8715 RD |
2570 | |
2571 | wxPyEndAllowThreads(__tstate); | |
2572 | if (PyErr_Occurred()) return NULL; | |
2573 | } Py_INCREF(Py_None); | |
2574 | _resultobj = Py_None; | |
2575 | return _resultobj; | |
2576 | } | |
2577 | ||
e6056257 RD |
2578 | static void *SwigwxToolTipTowxObject(void *ptr) { |
2579 | wxToolTip *src; | |
2580 | wxObject *dest; | |
2581 | src = (wxToolTip *) ptr; | |
2582 | dest = (wxObject *) src; | |
2583 | return (void *) dest; | |
2584 | } | |
2585 | ||
2586 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) | |
2587 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2588 | PyObject * _resultobj; | |
2589 | wxToolTip * _result; | |
2590 | wxString * _arg0; | |
2591 | PyObject * _obj0 = 0; | |
2592 | char *_kwnames[] = { "tip", NULL }; | |
2593 | char _ptemp[128]; | |
2594 | ||
2595 | self = self; | |
2596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2597 | return NULL; | |
2598 | { | |
6824d4f9 RD |
2599 | _arg0 = wxString_in_helper(_obj0); |
2600 | if (_arg0 == NULL) | |
e6056257 | 2601 | return NULL; |
e6056257 RD |
2602 | } |
2603 | { | |
0e2ff151 | 2604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2605 | _result = (wxToolTip *)new_wxToolTip(*_arg0); |
e6056257 | 2606 | |
0e2ff151 RD |
2607 | wxPyEndAllowThreads(__tstate); |
2608 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2609 | } if (_result) { |
2610 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2611 | _resultobj = Py_BuildValue("s",_ptemp); | |
2612 | } else { | |
2613 | Py_INCREF(Py_None); | |
2614 | _resultobj = Py_None; | |
2615 | } | |
2616 | { | |
2617 | if (_obj0) | |
2618 | delete _arg0; | |
2619 | } | |
2620 | return _resultobj; | |
2621 | } | |
2622 | ||
2623 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2624 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2625 | PyObject * _resultobj; | |
2626 | wxToolTip * _arg0; | |
2627 | wxString * _arg1; | |
2628 | PyObject * _argo0 = 0; | |
2629 | PyObject * _obj1 = 0; | |
2630 | char *_kwnames[] = { "self","tip", NULL }; | |
2631 | ||
2632 | self = self; | |
2633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2634 | return NULL; | |
2635 | if (_argo0) { | |
2636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2639 | return NULL; | |
2640 | } | |
2641 | } | |
2642 | { | |
6824d4f9 RD |
2643 | _arg1 = wxString_in_helper(_obj1); |
2644 | if (_arg1 == NULL) | |
e6056257 | 2645 | return NULL; |
e6056257 RD |
2646 | } |
2647 | { | |
0e2ff151 | 2648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2649 | wxToolTip_SetTip(_arg0,*_arg1); |
e6056257 | 2650 | |
0e2ff151 RD |
2651 | wxPyEndAllowThreads(__tstate); |
2652 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2653 | } Py_INCREF(Py_None); |
2654 | _resultobj = Py_None; | |
2655 | { | |
2656 | if (_obj1) | |
2657 | delete _arg1; | |
2658 | } | |
2659 | return _resultobj; | |
2660 | } | |
2661 | ||
2662 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2663 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2664 | PyObject * _resultobj; | |
2665 | wxString * _result; | |
2666 | wxToolTip * _arg0; | |
2667 | PyObject * _argo0 = 0; | |
2668 | char *_kwnames[] = { "self", NULL }; | |
2669 | ||
2670 | self = self; | |
2671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2672 | return NULL; | |
2673 | if (_argo0) { | |
2674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2677 | return NULL; | |
2678 | } | |
2679 | } | |
2680 | { | |
0e2ff151 | 2681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2682 | _result = new wxString (wxToolTip_GetTip(_arg0)); |
e6056257 | 2683 | |
0e2ff151 RD |
2684 | wxPyEndAllowThreads(__tstate); |
2685 | if (PyErr_Occurred()) return NULL; | |
e6056257 | 2686 | }{ |
6824d4f9 RD |
2687 | #if wxUSE_UNICODE |
2688 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2689 | #else | |
e6056257 | 2690 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 2691 | #endif |
e6056257 RD |
2692 | } |
2693 | { | |
2694 | delete _result; | |
2695 | } | |
2696 | return _resultobj; | |
2697 | } | |
2698 | ||
2699 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2700 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2701 | PyObject * _resultobj; | |
2702 | wxWindow * _result; | |
2703 | wxToolTip * _arg0; | |
2704 | PyObject * _argo0 = 0; | |
2705 | char *_kwnames[] = { "self", NULL }; | |
2706 | ||
2707 | self = self; | |
2708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2709 | return NULL; | |
2710 | if (_argo0) { | |
2711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2714 | return NULL; | |
2715 | } | |
2716 | } | |
2717 | { | |
0e2ff151 | 2718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2719 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); |
e6056257 | 2720 | |
0e2ff151 RD |
2721 | wxPyEndAllowThreads(__tstate); |
2722 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2723 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2724 | return _resultobj; | |
2725 | } | |
2726 | ||
2727 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2728 | PyObject * _resultobj; | |
2729 | bool _arg0; | |
2730 | int tempbool0; | |
2731 | char *_kwnames[] = { "flag", NULL }; | |
2732 | ||
2733 | self = self; | |
2734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) | |
2735 | return NULL; | |
2736 | _arg0 = (bool ) tempbool0; | |
2737 | { | |
0e2ff151 | 2738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2739 | wxToolTip::Enable(_arg0); |
e6056257 | 2740 | |
0e2ff151 RD |
2741 | wxPyEndAllowThreads(__tstate); |
2742 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2743 | } Py_INCREF(Py_None); |
2744 | _resultobj = Py_None; | |
2745 | return _resultobj; | |
2746 | } | |
2747 | ||
2748 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2749 | PyObject * _resultobj; | |
2750 | long _arg0; | |
2751 | char *_kwnames[] = { "milliseconds", NULL }; | |
2752 | ||
2753 | self = self; | |
2754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) | |
2755 | return NULL; | |
2756 | { | |
0e2ff151 | 2757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2758 | wxToolTip::SetDelay(_arg0); |
e6056257 | 2759 | |
0e2ff151 RD |
2760 | wxPyEndAllowThreads(__tstate); |
2761 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2762 | } Py_INCREF(Py_None); |
2763 | _resultobj = Py_None; | |
2764 | return _resultobj; | |
2765 | } | |
2766 | ||
2767 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) | |
2768 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2769 | PyObject * _resultobj; | |
2770 | wxCaret * _result; | |
2771 | wxWindow * _arg0; | |
2772 | wxSize * _arg1; | |
2773 | PyObject * _argo0 = 0; | |
2774 | wxSize temp; | |
2775 | PyObject * _obj1 = 0; | |
2776 | char *_kwnames[] = { "window","size", NULL }; | |
2777 | char _ptemp[128]; | |
2778 | ||
2779 | self = self; | |
2780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2781 | return NULL; | |
2782 | if (_argo0) { | |
2783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2786 | return NULL; | |
2787 | } | |
2788 | } | |
2789 | { | |
2790 | _arg1 = &temp; | |
2791 | if (! wxSize_helper(_obj1, &_arg1)) | |
2792 | return NULL; | |
2793 | } | |
2794 | { | |
0e2ff151 | 2795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2796 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); |
e6056257 | 2797 | |
0e2ff151 RD |
2798 | wxPyEndAllowThreads(__tstate); |
2799 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2800 | } if (_result) { |
2801 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2802 | _resultobj = Py_BuildValue("s",_ptemp); | |
2803 | } else { | |
2804 | Py_INCREF(Py_None); | |
2805 | _resultobj = Py_None; | |
2806 | } | |
2807 | return _resultobj; | |
2808 | } | |
2809 | ||
2810 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2811 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2812 | PyObject * _resultobj; | |
2813 | wxCaret * _arg0; | |
2814 | PyObject * _argo0 = 0; | |
2815 | char *_kwnames[] = { "self", NULL }; | |
2816 | ||
2817 | self = self; | |
2818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
2819 | return NULL; | |
2820 | if (_argo0) { | |
2821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
2824 | return NULL; | |
2825 | } | |
2826 | } | |
2827 | { | |
0e2ff151 | 2828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2829 | delete_wxCaret(_arg0); |
e6056257 | 2830 | |
0e2ff151 RD |
2831 | wxPyEndAllowThreads(__tstate); |
2832 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2833 | } Py_INCREF(Py_None); |
2834 | _resultobj = Py_None; | |
2835 | return _resultobj; | |
2836 | } | |
2837 | ||
2838 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
2839 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2840 | PyObject * _resultobj; | |
2841 | bool _result; | |
2842 | wxCaret * _arg0; | |
2843 | PyObject * _argo0 = 0; | |
2844 | char *_kwnames[] = { "self", NULL }; | |
2845 | ||
2846 | self = self; | |
2847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
2848 | return NULL; | |
2849 | if (_argo0) { | |
2850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
2853 | return NULL; | |
2854 | } | |
2855 | } | |
2856 | { | |
0e2ff151 | 2857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2858 | _result = (bool )wxCaret_IsOk(_arg0); |
e6056257 | 2859 | |
0e2ff151 RD |
2860 | wxPyEndAllowThreads(__tstate); |
2861 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2862 | } _resultobj = Py_BuildValue("i",_result); |
2863 | return _resultobj; | |
2864 | } | |
2865 | ||
2866 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
2867 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2868 | PyObject * _resultobj; | |
2869 | bool _result; | |
2870 | wxCaret * _arg0; | |
2871 | PyObject * _argo0 = 0; | |
2872 | char *_kwnames[] = { "self", NULL }; | |
2873 | ||
2874 | self = self; | |
2875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
2876 | return NULL; | |
2877 | if (_argo0) { | |
2878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
2881 | return NULL; | |
2882 | } | |
2883 | } | |
2884 | { | |
0e2ff151 | 2885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2886 | _result = (bool )wxCaret_IsVisible(_arg0); |
e6056257 | 2887 | |
0e2ff151 RD |
2888 | wxPyEndAllowThreads(__tstate); |
2889 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2890 | } _resultobj = Py_BuildValue("i",_result); |
2891 | return _resultobj; | |
2892 | } | |
2893 | ||
2894 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2895 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2896 | PyObject * _resultobj; | |
2897 | wxCaret * _arg0; | |
2898 | int * _arg1; | |
2899 | int temp; | |
2900 | int * _arg2; | |
2901 | int temp0; | |
2902 | PyObject * _argo0 = 0; | |
2903 | char *_kwnames[] = { "self", NULL }; | |
2904 | ||
2905 | self = self; | |
2906 | { | |
2907 | _arg1 = &temp; | |
2908 | } | |
2909 | { | |
2910 | _arg2 = &temp0; | |
2911 | } | |
2912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
2913 | return NULL; | |
2914 | if (_argo0) { | |
2915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
2918 | return NULL; | |
2919 | } | |
2920 | } | |
2921 | { | |
0e2ff151 | 2922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2923 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); |
e6056257 | 2924 | |
0e2ff151 RD |
2925 | wxPyEndAllowThreads(__tstate); |
2926 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2927 | } Py_INCREF(Py_None); |
2928 | _resultobj = Py_None; | |
2929 | { | |
2930 | PyObject *o; | |
2931 | o = PyInt_FromLong((long) (*_arg1)); | |
2932 | _resultobj = t_output_helper(_resultobj, o); | |
2933 | } | |
2934 | { | |
2935 | PyObject *o; | |
2936 | o = PyInt_FromLong((long) (*_arg2)); | |
2937 | _resultobj = t_output_helper(_resultobj, o); | |
2938 | } | |
2939 | return _resultobj; | |
2940 | } | |
2941 | ||
2942 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
2943 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2944 | PyObject * _resultobj; | |
2945 | wxPoint * _result; | |
2946 | wxCaret * _arg0; | |
2947 | PyObject * _argo0 = 0; | |
2948 | char *_kwnames[] = { "self", NULL }; | |
2949 | char _ptemp[128]; | |
2950 | ||
2951 | self = self; | |
2952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
2953 | return NULL; | |
2954 | if (_argo0) { | |
2955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
2958 | return NULL; | |
2959 | } | |
2960 | } | |
2961 | { | |
0e2ff151 | 2962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2963 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); |
e6056257 | 2964 | |
0e2ff151 RD |
2965 | wxPyEndAllowThreads(__tstate); |
2966 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
2967 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2968 | _resultobj = Py_BuildValue("s",_ptemp); | |
2969 | return _resultobj; | |
2970 | } | |
2971 | ||
2972 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2973 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2974 | PyObject * _resultobj; | |
2975 | wxCaret * _arg0; | |
2976 | int * _arg1; | |
2977 | int temp; | |
2978 | int * _arg2; | |
2979 | int temp0; | |
2980 | PyObject * _argo0 = 0; | |
2981 | char *_kwnames[] = { "self", NULL }; | |
2982 | ||
2983 | self = self; | |
2984 | { | |
2985 | _arg1 = &temp; | |
2986 | } | |
2987 | { | |
2988 | _arg2 = &temp0; | |
2989 | } | |
2990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
2991 | return NULL; | |
2992 | if (_argo0) { | |
2993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
2996 | return NULL; | |
2997 | } | |
2998 | } | |
2999 | { | |
0e2ff151 | 3000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3001 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); |
e6056257 | 3002 | |
0e2ff151 RD |
3003 | wxPyEndAllowThreads(__tstate); |
3004 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3005 | } Py_INCREF(Py_None); |
3006 | _resultobj = Py_None; | |
3007 | { | |
3008 | PyObject *o; | |
3009 | o = PyInt_FromLong((long) (*_arg1)); | |
3010 | _resultobj = t_output_helper(_resultobj, o); | |
3011 | } | |
3012 | { | |
3013 | PyObject *o; | |
3014 | o = PyInt_FromLong((long) (*_arg2)); | |
3015 | _resultobj = t_output_helper(_resultobj, o); | |
3016 | } | |
3017 | return _resultobj; | |
3018 | } | |
3019 | ||
3020 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
3021 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3022 | PyObject * _resultobj; | |
3023 | wxSize * _result; | |
3024 | wxCaret * _arg0; | |
3025 | PyObject * _argo0 = 0; | |
3026 | char *_kwnames[] = { "self", NULL }; | |
3027 | char _ptemp[128]; | |
3028 | ||
3029 | self = self; | |
3030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
3031 | return NULL; | |
3032 | if (_argo0) { | |
3033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
3036 | return NULL; | |
3037 | } | |
3038 | } | |
3039 | { | |
0e2ff151 | 3040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3041 | _result = new wxSize (wxCaret_GetSize(_arg0)); |
e6056257 | 3042 | |
0e2ff151 RD |
3043 | wxPyEndAllowThreads(__tstate); |
3044 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3045 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
3046 | _resultobj = Py_BuildValue("s",_ptemp); | |
3047 | return _resultobj; | |
3048 | } | |
3049 | ||
3050 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
3051 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3052 | PyObject * _resultobj; | |
3053 | wxWindow * _result; | |
3054 | wxCaret * _arg0; | |
3055 | PyObject * _argo0 = 0; | |
3056 | char *_kwnames[] = { "self", NULL }; | |
3057 | ||
3058 | self = self; | |
3059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
3060 | return NULL; | |
3061 | if (_argo0) { | |
3062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
3065 | return NULL; | |
3066 | } | |
3067 | } | |
3068 | { | |
0e2ff151 | 3069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3070 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); |
e6056257 | 3071 | |
0e2ff151 RD |
3072 | wxPyEndAllowThreads(__tstate); |
3073 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3074 | }{ _resultobj = wxPyMake_wxObject(_result); } |
3075 | return _resultobj; | |
3076 | } | |
3077 | ||
3078 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
3079 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3080 | PyObject * _resultobj; | |
3081 | wxCaret * _arg0; | |
3082 | int _arg1; | |
3083 | int _arg2; | |
3084 | PyObject * _argo0 = 0; | |
3085 | char *_kwnames[] = { "self","x","y", NULL }; | |
3086 | ||
3087 | self = self; | |
3088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3089 | return NULL; | |
3090 | if (_argo0) { | |
3091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
3094 | return NULL; | |
3095 | } | |
3096 | } | |
3097 | { | |
0e2ff151 | 3098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3099 | wxCaret_MoveXY(_arg0,_arg1,_arg2); |
e6056257 | 3100 | |
0e2ff151 RD |
3101 | wxPyEndAllowThreads(__tstate); |
3102 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3103 | } Py_INCREF(Py_None); |
3104 | _resultobj = Py_None; | |
3105 | return _resultobj; | |
3106 | } | |
3107 | ||
3108 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3109 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3110 | PyObject * _resultobj; | |
3111 | wxCaret * _arg0; | |
3112 | wxPoint * _arg1; | |
3113 | PyObject * _argo0 = 0; | |
3114 | wxPoint temp; | |
3115 | PyObject * _obj1 = 0; | |
3116 | char *_kwnames[] = { "self","pt", NULL }; | |
3117 | ||
3118 | self = self; | |
3119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
3120 | return NULL; | |
3121 | if (_argo0) { | |
3122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
3125 | return NULL; | |
3126 | } | |
3127 | } | |
3128 | { | |
3129 | _arg1 = &temp; | |
3130 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3131 | return NULL; | |
3132 | } | |
3133 | { | |
0e2ff151 | 3134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3135 | wxCaret_Move(_arg0,*_arg1); |
e6056257 | 3136 | |
0e2ff151 RD |
3137 | wxPyEndAllowThreads(__tstate); |
3138 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3139 | } Py_INCREF(Py_None); |
3140 | _resultobj = Py_None; | |
3141 | return _resultobj; | |
3142 | } | |
3143 | ||
3144 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
3145 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3146 | PyObject * _resultobj; | |
3147 | wxCaret * _arg0; | |
3148 | int _arg1; | |
3149 | int _arg2; | |
3150 | PyObject * _argo0 = 0; | |
3151 | char *_kwnames[] = { "self","width","height", NULL }; | |
3152 | ||
3153 | self = self; | |
3154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3155 | return NULL; | |
3156 | if (_argo0) { | |
3157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
3160 | return NULL; | |
3161 | } | |
3162 | } | |
3163 | { | |
0e2ff151 | 3164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3165 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); |
e6056257 | 3166 | |
0e2ff151 RD |
3167 | wxPyEndAllowThreads(__tstate); |
3168 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3169 | } Py_INCREF(Py_None); |
3170 | _resultobj = Py_None; | |
3171 | return _resultobj; | |
3172 | } | |
3173 | ||
3174 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3175 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3176 | PyObject * _resultobj; | |
3177 | wxCaret * _arg0; | |
3178 | wxSize * _arg1; | |
3179 | PyObject * _argo0 = 0; | |
3180 | wxSize temp; | |
3181 | PyObject * _obj1 = 0; | |
3182 | char *_kwnames[] = { "self","size", NULL }; | |
3183 | ||
3184 | self = self; | |
3185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
3186 | return NULL; | |
3187 | if (_argo0) { | |
3188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
3191 | return NULL; | |
3192 | } | |
3193 | } | |
3194 | { | |
3195 | _arg1 = &temp; | |
3196 | if (! wxSize_helper(_obj1, &_arg1)) | |
3197 | return NULL; | |
3198 | } | |
3199 | { | |
0e2ff151 | 3200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3201 | wxCaret_SetSize(_arg0,*_arg1); |
e6056257 | 3202 | |
0e2ff151 RD |
3203 | wxPyEndAllowThreads(__tstate); |
3204 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3205 | } Py_INCREF(Py_None); |
3206 | _resultobj = Py_None; | |
3207 | return _resultobj; | |
3208 | } | |
3209 | ||
3210 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
3211 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3212 | PyObject * _resultobj; | |
3213 | wxCaret * _arg0; | |
3214 | int _arg1 = (int ) TRUE; | |
3215 | PyObject * _argo0 = 0; | |
3216 | char *_kwnames[] = { "self","show", NULL }; | |
3217 | ||
3218 | self = self; | |
3219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
3220 | return NULL; | |
3221 | if (_argo0) { | |
3222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
3225 | return NULL; | |
3226 | } | |
3227 | } | |
3228 | { | |
0e2ff151 | 3229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3230 | wxCaret_Show(_arg0,_arg1); |
e6056257 | 3231 | |
0e2ff151 RD |
3232 | wxPyEndAllowThreads(__tstate); |
3233 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3234 | } Py_INCREF(Py_None); |
3235 | _resultobj = Py_None; | |
3236 | return _resultobj; | |
3237 | } | |
3238 | ||
3239 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
3240 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3241 | PyObject * _resultobj; | |
3242 | wxCaret * _arg0; | |
3243 | PyObject * _argo0 = 0; | |
3244 | char *_kwnames[] = { "self", NULL }; | |
3245 | ||
3246 | self = self; | |
3247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
3248 | return NULL; | |
3249 | if (_argo0) { | |
3250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
3253 | return NULL; | |
3254 | } | |
3255 | } | |
3256 | { | |
0e2ff151 | 3257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3258 | wxCaret_Hide(_arg0); |
e6056257 | 3259 | |
0e2ff151 RD |
3260 | wxPyEndAllowThreads(__tstate); |
3261 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3262 | } Py_INCREF(Py_None); |
3263 | _resultobj = Py_None; | |
3264 | return _resultobj; | |
3265 | } | |
3266 | ||
e6056257 RD |
3267 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) |
3268 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3269 | PyObject * _resultobj; | |
3270 | wxBusyCursor * _result; | |
3271 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3272 | PyObject * _argo0 = 0; | |
3273 | char *_kwnames[] = { "cursor", NULL }; | |
3274 | char _ptemp[128]; | |
3275 | ||
3276 | self = self; | |
3277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3278 | return NULL; | |
3279 | if (_argo0) { | |
3280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3283 | return NULL; | |
3284 | } | |
3285 | } | |
3286 | { | |
0e2ff151 | 3287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3288 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); |
e6056257 | 3289 | |
0e2ff151 RD |
3290 | wxPyEndAllowThreads(__tstate); |
3291 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3292 | } if (_result) { |
3293 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3294 | _resultobj = Py_BuildValue("s",_ptemp); | |
3295 | } else { | |
3296 | Py_INCREF(Py_None); | |
3297 | _resultobj = Py_None; | |
3298 | } | |
3299 | return _resultobj; | |
3300 | } | |
3301 | ||
3302 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3303 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3304 | PyObject * _resultobj; | |
3305 | wxBusyCursor * _arg0; | |
3306 | PyObject * _argo0 = 0; | |
3307 | char *_kwnames[] = { "self", NULL }; | |
3308 | ||
3309 | self = self; | |
3310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3311 | return NULL; | |
3312 | if (_argo0) { | |
3313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3316 | return NULL; | |
3317 | } | |
3318 | } | |
3319 | { | |
0e2ff151 | 3320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3321 | delete_wxBusyCursor(_arg0); |
e6056257 | 3322 | |
0e2ff151 RD |
3323 | wxPyEndAllowThreads(__tstate); |
3324 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3325 | } Py_INCREF(Py_None); |
3326 | _resultobj = Py_None; | |
3327 | return _resultobj; | |
3328 | } | |
3329 | ||
3330 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) | |
3331 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3332 | PyObject * _resultobj; | |
3333 | wxWindowDisabler * _result; | |
3334 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3335 | PyObject * _argo0 = 0; | |
3336 | char *_kwnames[] = { "winToSkip", NULL }; | |
3337 | char _ptemp[128]; | |
3338 | ||
3339 | self = self; | |
3340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3341 | return NULL; | |
3342 | if (_argo0) { | |
3343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3346 | return NULL; | |
3347 | } | |
3348 | } | |
3349 | { | |
0e2ff151 | 3350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3351 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); |
e6056257 | 3352 | |
0e2ff151 RD |
3353 | wxPyEndAllowThreads(__tstate); |
3354 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3355 | } if (_result) { |
3356 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3357 | _resultobj = Py_BuildValue("s",_ptemp); | |
3358 | } else { | |
3359 | Py_INCREF(Py_None); | |
3360 | _resultobj = Py_None; | |
3361 | } | |
3362 | return _resultobj; | |
3363 | } | |
3364 | ||
3365 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3366 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3367 | PyObject * _resultobj; | |
3368 | wxWindowDisabler * _arg0; | |
3369 | PyObject * _argo0 = 0; | |
3370 | char *_kwnames[] = { "self", NULL }; | |
3371 | ||
3372 | self = self; | |
3373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3374 | return NULL; | |
3375 | if (_argo0) { | |
3376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3379 | return NULL; | |
3380 | } | |
3381 | } | |
3382 | { | |
0e2ff151 | 3383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3384 | delete_wxWindowDisabler(_arg0); |
e6056257 | 3385 | |
0e2ff151 RD |
3386 | wxPyEndAllowThreads(__tstate); |
3387 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3388 | } Py_INCREF(Py_None); |
3389 | _resultobj = Py_None; | |
3390 | return _resultobj; | |
3391 | } | |
3392 | ||
3393 | #define new_wxMutexGuiLocker() (new wxMutexGuiLocker()) | |
3394 | static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3395 | PyObject * _resultobj; | |
3396 | wxMutexGuiLocker * _result; | |
3397 | char *_kwnames[] = { NULL }; | |
3398 | char _ptemp[128]; | |
3399 | ||
3400 | self = self; | |
3401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames)) | |
3402 | return NULL; | |
3403 | { | |
0e2ff151 | 3404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3405 | _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker(); |
e6056257 | 3406 | |
0e2ff151 RD |
3407 | wxPyEndAllowThreads(__tstate); |
3408 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3409 | } if (_result) { |
3410 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p"); | |
3411 | _resultobj = Py_BuildValue("s",_ptemp); | |
3412 | } else { | |
3413 | Py_INCREF(Py_None); | |
3414 | _resultobj = Py_None; | |
3415 | } | |
3416 | return _resultobj; | |
3417 | } | |
3418 | ||
3419 | #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj) | |
3420 | static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3421 | PyObject * _resultobj; | |
3422 | wxMutexGuiLocker * _arg0; | |
3423 | PyObject * _argo0 = 0; | |
3424 | char *_kwnames[] = { "self", NULL }; | |
3425 | ||
3426 | self = self; | |
3427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0)) | |
3428 | return NULL; | |
3429 | if (_argo0) { | |
3430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) { | |
3432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p."); | |
3433 | return NULL; | |
3434 | } | |
3435 | } | |
3436 | { | |
0e2ff151 | 3437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3438 | delete_wxMutexGuiLocker(_arg0); |
e6056257 | 3439 | |
0e2ff151 RD |
3440 | wxPyEndAllowThreads(__tstate); |
3441 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3442 | } Py_INCREF(Py_None); |
3443 | _resultobj = Py_None; | |
3444 | return _resultobj; | |
3445 | } | |
3446 | ||
3447 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) | |
3448 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3449 | PyObject * _resultobj; | |
3450 | wxTipProvider * _arg0; | |
3451 | PyObject * _argo0 = 0; | |
3452 | char *_kwnames[] = { "self", NULL }; | |
3453 | ||
3454 | self = self; | |
3455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3456 | return NULL; | |
3457 | if (_argo0) { | |
3458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3461 | return NULL; | |
3462 | } | |
3463 | } | |
3464 | { | |
0e2ff151 | 3465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3466 | delete_wxTipProvider(_arg0); |
e6056257 | 3467 | |
0e2ff151 RD |
3468 | wxPyEndAllowThreads(__tstate); |
3469 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3470 | } Py_INCREF(Py_None); |
3471 | _resultobj = Py_None; | |
3472 | return _resultobj; | |
3473 | } | |
3474 | ||
3475 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3476 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3477 | PyObject * _resultobj; | |
3478 | wxString * _result; | |
3479 | wxTipProvider * _arg0; | |
3480 | PyObject * _argo0 = 0; | |
3481 | char *_kwnames[] = { "self", NULL }; | |
3482 | ||
3483 | self = self; | |
3484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3485 | return NULL; | |
3486 | if (_argo0) { | |
3487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3490 | return NULL; | |
3491 | } | |
3492 | } | |
3493 | { | |
0e2ff151 | 3494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3495 | _result = new wxString (wxTipProvider_GetTip(_arg0)); |
e6056257 | 3496 | |
0e2ff151 RD |
3497 | wxPyEndAllowThreads(__tstate); |
3498 | if (PyErr_Occurred()) return NULL; | |
e6056257 | 3499 | }{ |
6824d4f9 RD |
3500 | #if wxUSE_UNICODE |
3501 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3502 | #else | |
e6056257 | 3503 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 3504 | #endif |
e6056257 RD |
3505 | } |
3506 | { | |
3507 | delete _result; | |
3508 | } | |
3509 | return _resultobj; | |
3510 | } | |
3511 | ||
3512 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3513 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3514 | PyObject * _resultobj; | |
3515 | size_t _result; | |
3516 | wxTipProvider * _arg0; | |
3517 | PyObject * _argo0 = 0; | |
3518 | char *_kwnames[] = { "self", NULL }; | |
3519 | ||
3520 | self = self; | |
3521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3522 | return NULL; | |
3523 | if (_argo0) { | |
3524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3527 | return NULL; | |
3528 | } | |
3529 | } | |
3530 | { | |
0e2ff151 | 3531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3532 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); |
e6056257 | 3533 | |
0e2ff151 RD |
3534 | wxPyEndAllowThreads(__tstate); |
3535 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3536 | } _resultobj = Py_BuildValue("i",_result); |
3537 | return _resultobj; | |
3538 | } | |
3539 | ||
4ea97290 RD |
3540 | #define wxTipProvider_PreprocessTip(_swigobj,_swigarg0) (_swigobj->PreprocessTip(_swigarg0)) |
3541 | static PyObject *_wrap_wxTipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3542 | PyObject * _resultobj; | |
3543 | wxString * _result; | |
3544 | wxTipProvider * _arg0; | |
3545 | wxString * _arg1; | |
3546 | PyObject * _argo0 = 0; | |
3547 | PyObject * _obj1 = 0; | |
3548 | char *_kwnames[] = { "self","tip", NULL }; | |
3549 | ||
3550 | self = self; | |
3551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTipProvider_PreprocessTip",_kwnames,&_argo0,&_obj1)) | |
3552 | return NULL; | |
3553 | if (_argo0) { | |
3554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_PreprocessTip. Expected _wxTipProvider_p."); | |
3557 | return NULL; | |
3558 | } | |
3559 | } | |
3560 | { | |
3561 | _arg1 = wxString_in_helper(_obj1); | |
3562 | if (_arg1 == NULL) | |
3563 | return NULL; | |
3564 | } | |
3565 | { | |
3566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3567 | _result = new wxString (wxTipProvider_PreprocessTip(_arg0,*_arg1)); | |
3568 | ||
3569 | wxPyEndAllowThreads(__tstate); | |
3570 | if (PyErr_Occurred()) return NULL; | |
3571 | }{ | |
3572 | #if wxUSE_UNICODE | |
3573 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3574 | #else | |
3575 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3576 | #endif | |
3577 | } | |
3578 | { | |
3579 | if (_obj1) | |
3580 | delete _arg1; | |
3581 | } | |
3582 | { | |
3583 | delete _result; | |
3584 | } | |
3585 | return _resultobj; | |
3586 | } | |
3587 | ||
e6056257 RD |
3588 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { |
3589 | wxPyTipProvider *src; | |
3590 | wxTipProvider *dest; | |
3591 | src = (wxPyTipProvider *) ptr; | |
3592 | dest = (wxTipProvider *) src; | |
3593 | return (void *) dest; | |
3594 | } | |
3595 | ||
3596 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3597 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3598 | PyObject * _resultobj; | |
3599 | wxPyTipProvider * _result; | |
3600 | size_t _arg0; | |
3601 | char *_kwnames[] = { "currentTip", NULL }; | |
3602 | char _ptemp[128]; | |
3603 | ||
3604 | self = self; | |
3605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3606 | return NULL; | |
3607 | { | |
0e2ff151 | 3608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3609 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); |
e6056257 | 3610 | |
0e2ff151 RD |
3611 | wxPyEndAllowThreads(__tstate); |
3612 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3613 | } if (_result) { |
3614 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3615 | _resultobj = Py_BuildValue("s",_ptemp); | |
3616 | } else { | |
3617 | Py_INCREF(Py_None); | |
3618 | _resultobj = Py_None; | |
3619 | } | |
3620 | return _resultobj; | |
3621 | } | |
3622 | ||
383ea3d0 RD |
3623 | #define wxPyTipProvider__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
3624 | static PyObject *_wrap_wxPyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3625 | PyObject * _resultobj; | |
3626 | wxPyTipProvider * _arg0; | |
3627 | PyObject * _arg1; | |
3628 | PyObject * _arg2; | |
3629 | PyObject * _argo0 = 0; | |
3630 | PyObject * _obj1 = 0; | |
3631 | PyObject * _obj2 = 0; | |
3632 | char *_kwnames[] = { "self","self","_class", NULL }; | |
3633 | ||
3634 | self = self; | |
3635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyTipProvider__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3636 | return NULL; | |
3637 | if (_argo0) { | |
3638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTipProvider_p")) { | |
3640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTipProvider__setCallbackInfo. Expected _wxPyTipProvider_p."); | |
3641 | return NULL; | |
3642 | } | |
3643 | } | |
3644 | { | |
3645 | _arg1 = _obj1; | |
3646 | } | |
3647 | { | |
3648 | _arg2 = _obj2; | |
3649 | } | |
3650 | { | |
3651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3652 | wxPyTipProvider__setCallbackInfo(_arg0,_arg1,_arg2); | |
3653 | ||
3654 | wxPyEndAllowThreads(__tstate); | |
3655 | if (PyErr_Occurred()) return NULL; | |
3656 | } Py_INCREF(Py_None); | |
3657 | _resultobj = Py_None; | |
3658 | return _resultobj; | |
3659 | } | |
3660 | ||
e6056257 RD |
3661 | static void *SwigwxGenericDragImageTowxObject(void *ptr) { |
3662 | wxGenericDragImage *src; | |
3663 | wxObject *dest; | |
3664 | src = (wxGenericDragImage *) ptr; | |
3665 | dest = (wxObject *) src; | |
3666 | return (void *) dest; | |
3667 | } | |
3668 | ||
3669 | #define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3670 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3671 | PyObject * _resultobj; | |
3672 | wxGenericDragImage * _result; | |
3673 | wxBitmap * _arg0; | |
3674 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3675 | PyObject * _argo0 = 0; | |
3676 | PyObject * _argo1 = 0; | |
3677 | char *_kwnames[] = { "image","cursor", NULL }; | |
3678 | char _ptemp[128]; | |
3679 | ||
3680 | self = self; | |
3681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1)) | |
3682 | return NULL; | |
3683 | if (_argo0) { | |
3684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
3686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); | |
3687 | return NULL; | |
3688 | } | |
3689 | } | |
3690 | if (_argo1) { | |
3691 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3692 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); | |
3694 | return NULL; | |
3695 | } | |
3696 | } | |
3697 | { | |
0e2ff151 | 3698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3699 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1); |
e6056257 | 3700 | |
0e2ff151 RD |
3701 | wxPyEndAllowThreads(__tstate); |
3702 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3703 | } if (_result) { |
3704 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3705 | _resultobj = Py_BuildValue("s",_ptemp); | |
3706 | } else { | |
3707 | Py_INCREF(Py_None); | |
3708 | _resultobj = Py_None; | |
3709 | } | |
3710 | return _resultobj; | |
3711 | } | |
3712 | ||
3713 | #define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3714 | static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3715 | PyObject * _resultobj; | |
3716 | wxGenericDragImage * _result; | |
3717 | wxIcon * _arg0; | |
3718 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3719 | PyObject * _argo0 = 0; | |
3720 | PyObject * _argo1 = 0; | |
3721 | char *_kwnames[] = { "image","cursor", NULL }; | |
3722 | char _ptemp[128]; | |
3723 | ||
3724 | self = self; | |
3725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1)) | |
3726 | return NULL; | |
3727 | if (_argo0) { | |
3728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
3730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p."); | |
3731 | return NULL; | |
3732 | } | |
3733 | } | |
3734 | if (_argo1) { | |
3735 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3736 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p."); | |
3738 | return NULL; | |
3739 | } | |
3740 | } | |
3741 | { | |
0e2ff151 | 3742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3743 | _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1); |
e6056257 | 3744 | |
0e2ff151 RD |
3745 | wxPyEndAllowThreads(__tstate); |
3746 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3747 | } if (_result) { |
3748 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3749 | _resultobj = Py_BuildValue("s",_ptemp); | |
3750 | } else { | |
3751 | Py_INCREF(Py_None); | |
3752 | _resultobj = Py_None; | |
3753 | } | |
3754 | return _resultobj; | |
3755 | } | |
3756 | ||
3757 | #define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3758 | static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3759 | PyObject * _resultobj; | |
3760 | wxGenericDragImage * _result; | |
3761 | wxString * _arg0; | |
3762 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3763 | PyObject * _obj0 = 0; | |
3764 | PyObject * _argo1 = 0; | |
3765 | char *_kwnames[] = { "str","cursor", NULL }; | |
3766 | char _ptemp[128]; | |
3767 | ||
3768 | self = self; | |
3769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1)) | |
3770 | return NULL; | |
3771 | { | |
6824d4f9 RD |
3772 | _arg0 = wxString_in_helper(_obj0); |
3773 | if (_arg0 == NULL) | |
e6056257 | 3774 | return NULL; |
e6056257 RD |
3775 | } |
3776 | if (_argo1) { | |
3777 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3778 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p."); | |
3780 | return NULL; | |
3781 | } | |
3782 | } | |
3783 | { | |
0e2ff151 | 3784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3785 | _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1); |
e6056257 | 3786 | |
0e2ff151 RD |
3787 | wxPyEndAllowThreads(__tstate); |
3788 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3789 | } if (_result) { |
3790 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3791 | _resultobj = Py_BuildValue("s",_ptemp); | |
3792 | } else { | |
3793 | Py_INCREF(Py_None); | |
3794 | _resultobj = Py_None; | |
3795 | } | |
3796 | { | |
3797 | if (_obj0) | |
3798 | delete _arg0; | |
3799 | } | |
3800 | return _resultobj; | |
3801 | } | |
3802 | ||
3803 | #define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3804 | static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3805 | PyObject * _resultobj; | |
3806 | wxGenericDragImage * _result; | |
3807 | wxTreeCtrl * _arg0; | |
3808 | wxTreeItemId * _arg1; | |
3809 | PyObject * _argo0 = 0; | |
3810 | PyObject * _argo1 = 0; | |
3811 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
3812 | char _ptemp[128]; | |
3813 | ||
3814 | self = self; | |
3815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1)) | |
3816 | return NULL; | |
3817 | if (_argo0) { | |
3818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
3820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p."); | |
3821 | return NULL; | |
3822 | } | |
3823 | } | |
3824 | if (_argo1) { | |
3825 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3826 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
3827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p."); | |
3828 | return NULL; | |
3829 | } | |
3830 | } | |
3831 | { | |
0e2ff151 | 3832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3833 | _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1); |
e6056257 | 3834 | |
0e2ff151 RD |
3835 | wxPyEndAllowThreads(__tstate); |
3836 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3837 | } if (_result) { |
3838 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3839 | _resultobj = Py_BuildValue("s",_ptemp); | |
3840 | } else { | |
3841 | Py_INCREF(Py_None); | |
3842 | _resultobj = Py_None; | |
3843 | } | |
3844 | return _resultobj; | |
3845 | } | |
3846 | ||
3847 | #define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3848 | static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3849 | PyObject * _resultobj; | |
3850 | wxGenericDragImage * _result; | |
3851 | wxListCtrl * _arg0; | |
3852 | long _arg1; | |
3853 | PyObject * _argo0 = 0; | |
3854 | char *_kwnames[] = { "listCtrl","id", NULL }; | |
3855 | char _ptemp[128]; | |
3856 | ||
3857 | self = self; | |
3858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1)) | |
3859 | return NULL; | |
3860 | if (_argo0) { | |
3861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragListItem. Expected _wxListCtrl_p."); | |
3864 | return NULL; | |
3865 | } | |
3866 | } | |
3867 | { | |
0e2ff151 | 3868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3869 | _result = (wxGenericDragImage *)new_wxDragListItem(*_arg0,_arg1); |
e6056257 | 3870 | |
0e2ff151 RD |
3871 | wxPyEndAllowThreads(__tstate); |
3872 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3873 | } if (_result) { |
3874 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3875 | _resultobj = Py_BuildValue("s",_ptemp); | |
3876 | } else { | |
3877 | Py_INCREF(Py_None); | |
3878 | _resultobj = Py_None; | |
3879 | } | |
3880 | return _resultobj; | |
3881 | } | |
3882 | ||
3883 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) | |
3884 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3885 | PyObject * _resultobj; | |
3886 | wxGenericDragImage * _arg0; | |
3887 | PyObject * _argo0 = 0; | |
3888 | char *_kwnames[] = { "self", NULL }; | |
3889 | ||
3890 | self = self; | |
3891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
3892 | return NULL; | |
3893 | if (_argo0) { | |
3894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
3897 | return NULL; | |
3898 | } | |
3899 | } | |
3900 | { | |
0e2ff151 | 3901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3902 | delete_wxGenericDragImage(_arg0); |
e6056257 | 3903 | |
0e2ff151 RD |
3904 | wxPyEndAllowThreads(__tstate); |
3905 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3906 | } Py_INCREF(Py_None); |
3907 | _resultobj = Py_None; | |
3908 | return _resultobj; | |
3909 | } | |
3910 | ||
3911 | #define wxDragImage_SetBackingBitmap(_swigobj,_swigarg0) (_swigobj->SetBackingBitmap(_swigarg0)) | |
3912 | static PyObject *_wrap_wxDragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3913 | PyObject * _resultobj; | |
3914 | wxGenericDragImage * _arg0; | |
3915 | wxBitmap * _arg1; | |
3916 | PyObject * _argo0 = 0; | |
3917 | PyObject * _argo1 = 0; | |
3918 | char *_kwnames[] = { "self","bitmap", NULL }; | |
3919 | ||
3920 | self = self; | |
3921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_SetBackingBitmap",_kwnames,&_argo0,&_argo1)) | |
3922 | return NULL; | |
3923 | if (_argo0) { | |
3924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_SetBackingBitmap. Expected _wxGenericDragImage_p."); | |
3927 | return NULL; | |
3928 | } | |
3929 | } | |
3930 | if (_argo1) { | |
3931 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3932 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
3933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragImage_SetBackingBitmap. Expected _wxBitmap_p."); | |
3934 | return NULL; | |
3935 | } | |
3936 | } | |
3937 | { | |
0e2ff151 | 3938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3939 | wxDragImage_SetBackingBitmap(_arg0,_arg1); |
e6056257 | 3940 | |
0e2ff151 RD |
3941 | wxPyEndAllowThreads(__tstate); |
3942 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
3943 | } Py_INCREF(Py_None); |
3944 | _resultobj = Py_None; | |
3945 | return _resultobj; | |
3946 | } | |
3947 | ||
3948 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3949 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3950 | PyObject * _resultobj; | |
3951 | bool _result; | |
3952 | wxGenericDragImage * _arg0; | |
3953 | wxPoint * _arg1; | |
3954 | wxWindow * _arg2; | |
3955 | bool _arg3 = (bool ) FALSE; | |
3956 | wxRect * _arg4 = (wxRect *) NULL; | |
3957 | PyObject * _argo0 = 0; | |
3958 | wxPoint temp; | |
3959 | PyObject * _obj1 = 0; | |
3960 | PyObject * _argo2 = 0; | |
3961 | int tempbool3 = (int) FALSE; | |
3962 | wxRect temp0; | |
3963 | PyObject * _obj4 = 0; | |
3964 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
3965 | ||
3966 | self = self; | |
3967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
3968 | return NULL; | |
3969 | if (_argo0) { | |
3970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
3973 | return NULL; | |
3974 | } | |
3975 | } | |
3976 | { | |
3977 | _arg1 = &temp; | |
3978 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3979 | return NULL; | |
3980 | } | |
3981 | if (_argo2) { | |
3982 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3983 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
3985 | return NULL; | |
3986 | } | |
3987 | } | |
3988 | _arg3 = (bool ) tempbool3; | |
3989 | if (_obj4) | |
3990 | { | |
3991 | _arg4 = &temp0; | |
3992 | if (! wxRect_helper(_obj4, &_arg4)) | |
3993 | return NULL; | |
3994 | } | |
3995 | { | |
0e2ff151 | 3996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3997 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); |
e6056257 | 3998 | |
0e2ff151 RD |
3999 | wxPyEndAllowThreads(__tstate); |
4000 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4001 | } _resultobj = Py_BuildValue("i",_result); |
4002 | return _resultobj; | |
4003 | } | |
4004 | ||
4005 | #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) | |
4006 | static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4007 | PyObject * _resultobj; | |
4008 | bool _result; | |
4009 | wxGenericDragImage * _arg0; | |
4010 | wxPoint * _arg1; | |
4011 | wxWindow * _arg2; | |
4012 | wxWindow * _arg3; | |
4013 | PyObject * _argo0 = 0; | |
4014 | wxPoint temp; | |
4015 | PyObject * _obj1 = 0; | |
4016 | PyObject * _argo2 = 0; | |
4017 | PyObject * _argo3 = 0; | |
4018 | char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL }; | |
4019 | ||
4020 | self = self; | |
4021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
4022 | return NULL; | |
4023 | if (_argo0) { | |
4024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p."); | |
4027 | return NULL; | |
4028 | } | |
4029 | } | |
4030 | { | |
4031 | _arg1 = &temp; | |
4032 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4033 | return NULL; | |
4034 | } | |
4035 | if (_argo2) { | |
4036 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4037 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
4038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
4039 | return NULL; | |
4040 | } | |
4041 | } | |
4042 | if (_argo3) { | |
4043 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
4044 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
4045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
4046 | return NULL; | |
4047 | } | |
4048 | } | |
4049 | { | |
0e2ff151 | 4050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4051 | _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3); |
e6056257 | 4052 | |
0e2ff151 RD |
4053 | wxPyEndAllowThreads(__tstate); |
4054 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4055 | } _resultobj = Py_BuildValue("i",_result); |
4056 | return _resultobj; | |
4057 | } | |
4058 | ||
4059 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
4060 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4061 | PyObject * _resultobj; | |
4062 | bool _result; | |
4063 | wxGenericDragImage * _arg0; | |
4064 | PyObject * _argo0 = 0; | |
4065 | char *_kwnames[] = { "self", NULL }; | |
4066 | ||
4067 | self = self; | |
4068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
4069 | return NULL; | |
4070 | if (_argo0) { | |
4071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
4074 | return NULL; | |
4075 | } | |
4076 | } | |
4077 | { | |
0e2ff151 | 4078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4079 | _result = (bool )wxDragImage_EndDrag(_arg0); |
e6056257 | 4080 | |
0e2ff151 RD |
4081 | wxPyEndAllowThreads(__tstate); |
4082 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4083 | } _resultobj = Py_BuildValue("i",_result); |
4084 | return _resultobj; | |
4085 | } | |
4086 | ||
4087 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
4088 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4089 | PyObject * _resultobj; | |
4090 | bool _result; | |
4091 | wxGenericDragImage * _arg0; | |
4092 | wxPoint * _arg1; | |
4093 | PyObject * _argo0 = 0; | |
4094 | wxPoint temp; | |
4095 | PyObject * _obj1 = 0; | |
4096 | char *_kwnames[] = { "self","pt", NULL }; | |
4097 | ||
4098 | self = self; | |
4099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
4100 | return NULL; | |
4101 | if (_argo0) { | |
4102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p."); | |
4105 | return NULL; | |
4106 | } | |
4107 | } | |
4108 | { | |
4109 | _arg1 = &temp; | |
4110 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4111 | return NULL; | |
4112 | } | |
4113 | { | |
0e2ff151 | 4114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4115 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); |
e6056257 | 4116 | |
0e2ff151 RD |
4117 | wxPyEndAllowThreads(__tstate); |
4118 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4119 | } _resultobj = Py_BuildValue("i",_result); |
4120 | return _resultobj; | |
4121 | } | |
4122 | ||
4123 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
4124 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4125 | PyObject * _resultobj; | |
4126 | bool _result; | |
4127 | wxGenericDragImage * _arg0; | |
4128 | PyObject * _argo0 = 0; | |
4129 | char *_kwnames[] = { "self", NULL }; | |
4130 | ||
4131 | self = self; | |
4132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
4133 | return NULL; | |
4134 | if (_argo0) { | |
4135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
4138 | return NULL; | |
4139 | } | |
4140 | } | |
4141 | { | |
0e2ff151 | 4142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4143 | _result = (bool )wxDragImage_Show(_arg0); |
e6056257 | 4144 | |
0e2ff151 RD |
4145 | wxPyEndAllowThreads(__tstate); |
4146 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4147 | } _resultobj = Py_BuildValue("i",_result); |
4148 | return _resultobj; | |
4149 | } | |
4150 | ||
4151 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
4152 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4153 | PyObject * _resultobj; | |
4154 | bool _result; | |
4155 | wxGenericDragImage * _arg0; | |
4156 | PyObject * _argo0 = 0; | |
4157 | char *_kwnames[] = { "self", NULL }; | |
4158 | ||
4159 | self = self; | |
4160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
4161 | return NULL; | |
4162 | if (_argo0) { | |
4163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
4166 | return NULL; | |
4167 | } | |
4168 | } | |
4169 | { | |
0e2ff151 | 4170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4171 | _result = (bool )wxDragImage_Hide(_arg0); |
e6056257 | 4172 | |
0e2ff151 RD |
4173 | wxPyEndAllowThreads(__tstate); |
4174 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4175 | } _resultobj = Py_BuildValue("i",_result); |
4176 | return _resultobj; | |
4177 | } | |
4178 | ||
4179 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
4180 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4181 | PyObject * _resultobj; | |
4182 | wxRect * _result; | |
4183 | wxGenericDragImage * _arg0; | |
4184 | wxPoint * _arg1; | |
4185 | PyObject * _argo0 = 0; | |
4186 | wxPoint temp; | |
4187 | PyObject * _obj1 = 0; | |
4188 | char *_kwnames[] = { "self","pos", NULL }; | |
4189 | char _ptemp[128]; | |
4190 | ||
4191 | self = self; | |
4192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
4193 | return NULL; | |
4194 | if (_argo0) { | |
4195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p."); | |
4198 | return NULL; | |
4199 | } | |
4200 | } | |
4201 | { | |
4202 | _arg1 = &temp; | |
4203 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4204 | return NULL; | |
4205 | } | |
4206 | { | |
0e2ff151 | 4207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4208 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); |
e6056257 | 4209 | |
0e2ff151 RD |
4210 | wxPyEndAllowThreads(__tstate); |
4211 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4212 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
4213 | _resultobj = Py_BuildValue("s",_ptemp); | |
4214 | return _resultobj; | |
4215 | } | |
4216 | ||
4217 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4218 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4219 | PyObject * _resultobj; | |
4220 | bool _result; | |
4221 | wxGenericDragImage * _arg0; | |
4222 | wxPoint * _arg1; | |
4223 | wxPoint * _arg2; | |
4224 | bool _arg3; | |
4225 | bool _arg4; | |
4226 | PyObject * _argo0 = 0; | |
4227 | wxPoint temp; | |
4228 | PyObject * _obj1 = 0; | |
4229 | wxPoint temp0; | |
4230 | PyObject * _obj2 = 0; | |
4231 | int tempbool3; | |
4232 | int tempbool4; | |
4233 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
4234 | ||
4235 | self = self; | |
4236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
4237 | return NULL; | |
4238 | if (_argo0) { | |
4239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
4242 | return NULL; | |
4243 | } | |
4244 | } | |
4245 | { | |
4246 | _arg1 = &temp; | |
4247 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4248 | return NULL; | |
4249 | } | |
4250 | { | |
4251 | _arg2 = &temp0; | |
4252 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4253 | return NULL; | |
4254 | } | |
4255 | _arg3 = (bool ) tempbool3; | |
4256 | _arg4 = (bool ) tempbool4; | |
4257 | { | |
0e2ff151 | 4258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4259 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
e6056257 | 4260 | |
0e2ff151 RD |
4261 | wxPyEndAllowThreads(__tstate); |
4262 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4263 | } _resultobj = Py_BuildValue("i",_result); |
4264 | return _resultobj; | |
4265 | } | |
4266 | ||
4267 | static void *SwigwxPyTimerTowxObject(void *ptr) { | |
4268 | wxPyTimer *src; | |
4269 | wxObject *dest; | |
4270 | src = (wxPyTimer *) ptr; | |
4271 | dest = (wxObject *) src; | |
4272 | return (void *) dest; | |
4273 | } | |
4274 | ||
4275 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) | |
4276 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4277 | PyObject * _resultobj; | |
4278 | wxPyTimer * _result; | |
4279 | PyObject * _arg0; | |
4280 | PyObject * _obj0 = 0; | |
4281 | char *_kwnames[] = { "notify", NULL }; | |
4282 | char _ptemp[128]; | |
4283 | ||
4284 | self = self; | |
4285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
4286 | return NULL; | |
4287 | { | |
4288 | _arg0 = _obj0; | |
4289 | } | |
4290 | { | |
0e2ff151 | 4291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4292 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); |
e6056257 | 4293 | |
0e2ff151 RD |
4294 | wxPyEndAllowThreads(__tstate); |
4295 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4296 | } if (_result) { |
4297 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
4298 | _resultobj = Py_BuildValue("s",_ptemp); | |
4299 | } else { | |
4300 | Py_INCREF(Py_None); | |
4301 | _resultobj = Py_None; | |
4302 | } | |
4303 | return _resultobj; | |
4304 | } | |
4305 | ||
4306 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
4307 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4308 | PyObject * _resultobj; | |
4309 | wxPyTimer * _arg0; | |
4310 | PyObject * _argo0 = 0; | |
4311 | char *_kwnames[] = { "self", NULL }; | |
4312 | ||
4313 | self = self; | |
4314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
4315 | return NULL; | |
4316 | if (_argo0) { | |
4317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
4320 | return NULL; | |
4321 | } | |
4322 | } | |
4323 | { | |
0e2ff151 | 4324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4325 | delete_wxPyTimer(_arg0); |
e6056257 | 4326 | |
0e2ff151 RD |
4327 | wxPyEndAllowThreads(__tstate); |
4328 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4329 | } Py_INCREF(Py_None); |
4330 | _resultobj = Py_None; | |
4331 | return _resultobj; | |
4332 | } | |
4333 | ||
4334 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
4335 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4336 | PyObject * _resultobj; | |
4337 | int _result; | |
4338 | wxPyTimer * _arg0; | |
4339 | PyObject * _argo0 = 0; | |
4340 | char *_kwnames[] = { "self", NULL }; | |
4341 | ||
4342 | self = self; | |
4343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
4344 | return NULL; | |
4345 | if (_argo0) { | |
4346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
4349 | return NULL; | |
4350 | } | |
4351 | } | |
4352 | { | |
0e2ff151 | 4353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4354 | _result = (int )wxPyTimer_GetInterval(_arg0); |
e6056257 | 4355 | |
0e2ff151 RD |
4356 | wxPyEndAllowThreads(__tstate); |
4357 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4358 | } _resultobj = Py_BuildValue("i",_result); |
4359 | return _resultobj; | |
4360 | } | |
4361 | ||
4362 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
4363 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4364 | PyObject * _resultobj; | |
4365 | bool _result; | |
4366 | wxPyTimer * _arg0; | |
4367 | PyObject * _argo0 = 0; | |
4368 | char *_kwnames[] = { "self", NULL }; | |
4369 | ||
4370 | self = self; | |
4371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
4372 | return NULL; | |
4373 | if (_argo0) { | |
4374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
4377 | return NULL; | |
4378 | } | |
4379 | } | |
4380 | { | |
0e2ff151 | 4381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4382 | _result = (bool )wxPyTimer_IsOneShot(_arg0); |
e6056257 | 4383 | |
0e2ff151 RD |
4384 | wxPyEndAllowThreads(__tstate); |
4385 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4386 | } _resultobj = Py_BuildValue("i",_result); |
4387 | return _resultobj; | |
4388 | } | |
4389 | ||
4390 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
4391 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4392 | PyObject * _resultobj; | |
4393 | bool _result; | |
4394 | wxPyTimer * _arg0; | |
4395 | PyObject * _argo0 = 0; | |
4396 | char *_kwnames[] = { "self", NULL }; | |
4397 | ||
4398 | self = self; | |
4399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
4400 | return NULL; | |
4401 | if (_argo0) { | |
4402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
4405 | return NULL; | |
4406 | } | |
4407 | } | |
4408 | { | |
0e2ff151 | 4409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4410 | _result = (bool )wxPyTimer_IsRunning(_arg0); |
e6056257 | 4411 | |
0e2ff151 RD |
4412 | wxPyEndAllowThreads(__tstate); |
4413 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4414 | } _resultobj = Py_BuildValue("i",_result); |
4415 | return _resultobj; | |
4416 | } | |
4417 | ||
4418 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
4419 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4420 | PyObject * _resultobj; | |
4421 | wxPyTimer * _arg0; | |
4422 | wxEvtHandler * _arg1; | |
4423 | int _arg2 = (int ) -1; | |
4424 | PyObject * _argo0 = 0; | |
4425 | PyObject * _argo1 = 0; | |
4426 | char *_kwnames[] = { "self","owner","id", NULL }; | |
4427 | ||
4428 | self = self; | |
4429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4430 | return NULL; | |
4431 | if (_argo0) { | |
4432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
4435 | return NULL; | |
4436 | } | |
4437 | } | |
4438 | if (_argo1) { | |
4439 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4440 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
4442 | return NULL; | |
4443 | } | |
4444 | } | |
4445 | { | |
0e2ff151 | 4446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4447 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); |
e6056257 | 4448 | |
0e2ff151 RD |
4449 | wxPyEndAllowThreads(__tstate); |
4450 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4451 | } Py_INCREF(Py_None); |
4452 | _resultobj = Py_None; | |
4453 | return _resultobj; | |
4454 | } | |
4455 | ||
4456 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
4457 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4458 | PyObject * _resultobj; | |
4459 | wxPyTimer * _arg0; | |
4460 | int _arg1 = (int ) -1; | |
4461 | int _arg2 = (int ) FALSE; | |
4462 | PyObject * _argo0 = 0; | |
4463 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
4464 | ||
4465 | self = self; | |
4466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4467 | return NULL; | |
4468 | if (_argo0) { | |
4469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
4472 | return NULL; | |
4473 | } | |
4474 | } | |
4475 | { | |
0e2ff151 | 4476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4477 | wxPyTimer_Start(_arg0,_arg1,_arg2); |
e6056257 | 4478 | |
0e2ff151 RD |
4479 | wxPyEndAllowThreads(__tstate); |
4480 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4481 | } Py_INCREF(Py_None); |
4482 | _resultobj = Py_None; | |
4483 | return _resultobj; | |
4484 | } | |
4485 | ||
4486 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
4487 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4488 | PyObject * _resultobj; | |
4489 | wxPyTimer * _arg0; | |
4490 | PyObject * _argo0 = 0; | |
4491 | char *_kwnames[] = { "self", NULL }; | |
4492 | ||
4493 | self = self; | |
4494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) | |
4495 | return NULL; | |
4496 | if (_argo0) { | |
4497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
4500 | return NULL; | |
4501 | } | |
4502 | } | |
4503 | { | |
0e2ff151 | 4504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4505 | wxPyTimer_Stop(_arg0); |
e6056257 | 4506 | |
0e2ff151 RD |
4507 | wxPyEndAllowThreads(__tstate); |
4508 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4509 | } Py_INCREF(Py_None); |
4510 | _resultobj = Py_None; | |
4511 | return _resultobj; | |
4512 | } | |
4513 | ||
b6e5c445 RD |
4514 | #define new_wxStopWatch() (new wxStopWatch()) |
4515 | static PyObject *_wrap_new_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4516 | PyObject * _resultobj; | |
4517 | wxStopWatch * _result; | |
4518 | char *_kwnames[] = { NULL }; | |
4519 | char _ptemp[128]; | |
4520 | ||
4521 | self = self; | |
4522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxStopWatch",_kwnames)) | |
4523 | return NULL; | |
4524 | { | |
0e2ff151 | 4525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4526 | _result = (wxStopWatch *)new_wxStopWatch(); |
b6e5c445 | 4527 | |
0e2ff151 RD |
4528 | wxPyEndAllowThreads(__tstate); |
4529 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
4530 | } if (_result) { |
4531 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStopWatch_p"); | |
4532 | _resultobj = Py_BuildValue("s",_ptemp); | |
4533 | } else { | |
4534 | Py_INCREF(Py_None); | |
4535 | _resultobj = Py_None; | |
4536 | } | |
4537 | return _resultobj; | |
4538 | } | |
4539 | ||
d1e76a37 RD |
4540 | #define delete_wxStopWatch(_swigobj) (delete _swigobj) |
4541 | static PyObject *_wrap_delete_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4542 | PyObject * _resultobj; | |
4543 | wxStopWatch * _arg0; | |
4544 | PyObject * _argo0 = 0; | |
4545 | char *_kwnames[] = { "self", NULL }; | |
4546 | ||
4547 | self = self; | |
4548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxStopWatch",_kwnames,&_argo0)) | |
4549 | return NULL; | |
4550 | if (_argo0) { | |
4551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxStopWatch. Expected _wxStopWatch_p."); | |
4554 | return NULL; | |
4555 | } | |
4556 | } | |
4557 | { | |
4558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 4559 | delete_wxStopWatch(_arg0); |
d1e76a37 RD |
4560 | |
4561 | wxPyEndAllowThreads(__tstate); | |
4562 | if (PyErr_Occurred()) return NULL; | |
4563 | } Py_INCREF(Py_None); | |
4564 | _resultobj = Py_None; | |
4565 | return _resultobj; | |
4566 | } | |
4567 | ||
b6e5c445 RD |
4568 | #define wxStopWatch_Start(_swigobj,_swigarg0) (_swigobj->Start(_swigarg0)) |
4569 | static PyObject *_wrap_wxStopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4570 | PyObject * _resultobj; | |
4571 | wxStopWatch * _arg0; | |
4572 | long _arg1 = (long ) 0; | |
4573 | PyObject * _argo0 = 0; | |
4574 | char *_kwnames[] = { "self","t", NULL }; | |
4575 | ||
4576 | self = self; | |
4577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxStopWatch_Start",_kwnames,&_argo0,&_arg1)) | |
4578 | return NULL; | |
4579 | if (_argo0) { | |
4580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Start. Expected _wxStopWatch_p."); | |
4583 | return NULL; | |
4584 | } | |
4585 | } | |
4586 | { | |
0e2ff151 | 4587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4588 | wxStopWatch_Start(_arg0,_arg1); |
b6e5c445 | 4589 | |
0e2ff151 RD |
4590 | wxPyEndAllowThreads(__tstate); |
4591 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
4592 | } Py_INCREF(Py_None); |
4593 | _resultobj = Py_None; | |
4594 | return _resultobj; | |
4595 | } | |
4596 | ||
4597 | #define wxStopWatch_Pause(_swigobj) (_swigobj->Pause()) | |
4598 | static PyObject *_wrap_wxStopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4599 | PyObject * _resultobj; | |
4600 | wxStopWatch * _arg0; | |
4601 | PyObject * _argo0 = 0; | |
4602 | char *_kwnames[] = { "self", NULL }; | |
4603 | ||
4604 | self = self; | |
4605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Pause",_kwnames,&_argo0)) | |
4606 | return NULL; | |
4607 | if (_argo0) { | |
4608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Pause. Expected _wxStopWatch_p."); | |
4611 | return NULL; | |
4612 | } | |
4613 | } | |
4614 | { | |
0e2ff151 | 4615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4616 | wxStopWatch_Pause(_arg0); |
b6e5c445 | 4617 | |
0e2ff151 RD |
4618 | wxPyEndAllowThreads(__tstate); |
4619 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
4620 | } Py_INCREF(Py_None); |
4621 | _resultobj = Py_None; | |
4622 | return _resultobj; | |
4623 | } | |
4624 | ||
4625 | #define wxStopWatch_Resume(_swigobj) (_swigobj->Resume()) | |
4626 | static PyObject *_wrap_wxStopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4627 | PyObject * _resultobj; | |
4628 | wxStopWatch * _arg0; | |
4629 | PyObject * _argo0 = 0; | |
4630 | char *_kwnames[] = { "self", NULL }; | |
4631 | ||
4632 | self = self; | |
4633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Resume",_kwnames,&_argo0)) | |
4634 | return NULL; | |
4635 | if (_argo0) { | |
4636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Resume. Expected _wxStopWatch_p."); | |
4639 | return NULL; | |
4640 | } | |
4641 | } | |
4642 | { | |
0e2ff151 | 4643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4644 | wxStopWatch_Resume(_arg0); |
b6e5c445 | 4645 | |
0e2ff151 RD |
4646 | wxPyEndAllowThreads(__tstate); |
4647 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
4648 | } Py_INCREF(Py_None); |
4649 | _resultobj = Py_None; | |
4650 | return _resultobj; | |
4651 | } | |
4652 | ||
4653 | #define wxStopWatch_Time(_swigobj) (_swigobj->Time()) | |
4654 | static PyObject *_wrap_wxStopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4655 | PyObject * _resultobj; | |
4656 | long _result; | |
4657 | wxStopWatch * _arg0; | |
4658 | PyObject * _argo0 = 0; | |
4659 | char *_kwnames[] = { "self", NULL }; | |
4660 | ||
4661 | self = self; | |
4662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Time",_kwnames,&_argo0)) | |
4663 | return NULL; | |
4664 | if (_argo0) { | |
4665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Time. Expected _wxStopWatch_p."); | |
4668 | return NULL; | |
4669 | } | |
4670 | } | |
4671 | { | |
0e2ff151 | 4672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4673 | _result = (long )wxStopWatch_Time(_arg0); |
b6e5c445 | 4674 | |
0e2ff151 RD |
4675 | wxPyEndAllowThreads(__tstate); |
4676 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
4677 | } _resultobj = Py_BuildValue("l",_result); |
4678 | return _resultobj; | |
4679 | } | |
4680 | ||
e6056257 RD |
4681 | #define new_wxLog() (new wxLog()) |
4682 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4683 | PyObject * _resultobj; | |
4684 | wxLog * _result; | |
4685 | char *_kwnames[] = { NULL }; | |
4686 | char _ptemp[128]; | |
4687 | ||
4688 | self = self; | |
4689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) | |
4690 | return NULL; | |
4691 | { | |
0e2ff151 | 4692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4693 | _result = (wxLog *)new_wxLog(); |
e6056257 | 4694 | |
0e2ff151 RD |
4695 | wxPyEndAllowThreads(__tstate); |
4696 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4697 | } if (_result) { |
4698 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4699 | _resultobj = Py_BuildValue("s",_ptemp); | |
4700 | } else { | |
4701 | Py_INCREF(Py_None); | |
4702 | _resultobj = Py_None; | |
4703 | } | |
4704 | return _resultobj; | |
4705 | } | |
4706 | ||
4707 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4708 | PyObject * _resultobj; | |
4709 | bool _result; | |
4710 | char *_kwnames[] = { NULL }; | |
4711 | ||
4712 | self = self; | |
4713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
4714 | return NULL; | |
4715 | { | |
0e2ff151 | 4716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4717 | _result = (bool )wxLog::IsEnabled(); |
e6056257 | 4718 | |
0e2ff151 RD |
4719 | wxPyEndAllowThreads(__tstate); |
4720 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4721 | } _resultobj = Py_BuildValue("i",_result); |
4722 | return _resultobj; | |
4723 | } | |
4724 | ||
4725 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4726 | PyObject * _resultobj; | |
4727 | bool _result; | |
4728 | bool _arg0 = (bool ) TRUE; | |
4729 | int tempbool0 = (int) TRUE; | |
4730 | char *_kwnames[] = { "doIt", NULL }; | |
4731 | ||
4732 | self = self; | |
4733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
4734 | return NULL; | |
4735 | _arg0 = (bool ) tempbool0; | |
4736 | { | |
0e2ff151 | 4737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4738 | _result = (bool )wxLog::EnableLogging(_arg0); |
e6056257 | 4739 | |
0e2ff151 RD |
4740 | wxPyEndAllowThreads(__tstate); |
4741 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4742 | } _resultobj = Py_BuildValue("i",_result); |
4743 | return _resultobj; | |
4744 | } | |
4745 | ||
4746 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4747 | PyObject * _resultobj; | |
3a37d753 | 4748 | unsigned long _arg0; |
6824d4f9 | 4749 | wxString * _arg1; |
e6056257 | 4750 | int _arg2 = (int ) 0; |
6824d4f9 | 4751 | PyObject * _obj1 = 0; |
e6056257 RD |
4752 | char *_kwnames[] = { "level","szString","t", NULL }; |
4753 | ||
4754 | self = self; | |
3a37d753 | 4755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"lO|i:wxLog_OnLog",_kwnames,&_arg0,&_obj1,&_arg2)) |
e6056257 | 4756 | return NULL; |
6824d4f9 RD |
4757 | { |
4758 | _arg1 = wxString_in_helper(_obj1); | |
4759 | if (_arg1 == NULL) | |
4760 | return NULL; | |
4761 | } | |
e6056257 | 4762 | { |
0e2ff151 | 4763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a37d753 | 4764 | wxLog::OnLog(_arg0,*_arg1,_arg2); |
e6056257 | 4765 | |
0e2ff151 RD |
4766 | wxPyEndAllowThreads(__tstate); |
4767 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4768 | } Py_INCREF(Py_None); |
4769 | _resultobj = Py_None; | |
6824d4f9 RD |
4770 | { |
4771 | if (_obj1) | |
4772 | delete _arg1; | |
4773 | } | |
e6056257 RD |
4774 | return _resultobj; |
4775 | } | |
4776 | ||
4777 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
4778 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4779 | PyObject * _resultobj; | |
4780 | wxLog * _arg0; | |
4781 | PyObject * _argo0 = 0; | |
4782 | char *_kwnames[] = { "self", NULL }; | |
4783 | ||
4784 | self = self; | |
4785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
4786 | return NULL; | |
4787 | if (_argo0) { | |
4788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
4791 | return NULL; | |
4792 | } | |
4793 | } | |
4794 | { | |
0e2ff151 | 4795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4796 | wxLog_Flush(_arg0); |
e6056257 | 4797 | |
0e2ff151 RD |
4798 | wxPyEndAllowThreads(__tstate); |
4799 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4800 | } Py_INCREF(Py_None); |
4801 | _resultobj = Py_None; | |
4802 | return _resultobj; | |
4803 | } | |
4804 | ||
4805 | #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages()) | |
4806 | static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4807 | PyObject * _resultobj; | |
4808 | bool _result; | |
4809 | wxLog * _arg0; | |
4810 | PyObject * _argo0 = 0; | |
4811 | char *_kwnames[] = { "self", NULL }; | |
4812 | ||
4813 | self = self; | |
4814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0)) | |
4815 | return NULL; | |
4816 | if (_argo0) { | |
4817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p."); | |
4820 | return NULL; | |
4821 | } | |
4822 | } | |
4823 | { | |
0e2ff151 | 4824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4825 | _result = (bool )wxLog_HasPendingMessages(_arg0); |
e6056257 | 4826 | |
0e2ff151 RD |
4827 | wxPyEndAllowThreads(__tstate); |
4828 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4829 | } _resultobj = Py_BuildValue("i",_result); |
4830 | return _resultobj; | |
4831 | } | |
4832 | ||
4833 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4834 | PyObject * _resultobj; | |
4835 | char *_kwnames[] = { NULL }; | |
4836 | ||
4837 | self = self; | |
4838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4839 | return NULL; | |
4840 | { | |
0e2ff151 | 4841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4842 | wxLog::FlushActive(); |
e6056257 | 4843 | |
0e2ff151 RD |
4844 | wxPyEndAllowThreads(__tstate); |
4845 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4846 | } Py_INCREF(Py_None); |
4847 | _resultobj = Py_None; | |
4848 | return _resultobj; | |
4849 | } | |
4850 | ||
4851 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4852 | PyObject * _resultobj; | |
4853 | wxLog * _result; | |
4854 | char *_kwnames[] = { NULL }; | |
4855 | char _ptemp[128]; | |
4856 | ||
4857 | self = self; | |
4858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
4859 | return NULL; | |
4860 | { | |
0e2ff151 | 4861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4862 | _result = (wxLog *)wxLog::GetActiveTarget(); |
e6056257 | 4863 | |
0e2ff151 RD |
4864 | wxPyEndAllowThreads(__tstate); |
4865 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4866 | } if (_result) { |
4867 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4868 | _resultobj = Py_BuildValue("s",_ptemp); | |
4869 | } else { | |
4870 | Py_INCREF(Py_None); | |
4871 | _resultobj = Py_None; | |
4872 | } | |
4873 | return _resultobj; | |
4874 | } | |
4875 | ||
4876 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4877 | PyObject * _resultobj; | |
4878 | wxLog * _result; | |
4879 | wxLog * _arg0; | |
4880 | PyObject * _argo0 = 0; | |
4881 | char *_kwnames[] = { "pLogger", NULL }; | |
4882 | char _ptemp[128]; | |
4883 | ||
4884 | self = self; | |
4885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) | |
4886 | return NULL; | |
4887 | if (_argo0) { | |
4888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
4891 | return NULL; | |
4892 | } | |
4893 | } | |
4894 | { | |
0e2ff151 | 4895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4896 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); |
e6056257 | 4897 | |
0e2ff151 RD |
4898 | wxPyEndAllowThreads(__tstate); |
4899 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4900 | } if (_result) { |
4901 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4902 | _resultobj = Py_BuildValue("s",_ptemp); | |
4903 | } else { | |
4904 | Py_INCREF(Py_None); | |
4905 | _resultobj = Py_None; | |
4906 | } | |
4907 | return _resultobj; | |
4908 | } | |
4909 | ||
4910 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4911 | PyObject * _resultobj; | |
4912 | char *_kwnames[] = { NULL }; | |
4913 | ||
4914 | self = self; | |
4915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
4916 | return NULL; | |
4917 | { | |
0e2ff151 | 4918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4919 | wxLog::Suspend(); |
e6056257 | 4920 | |
0e2ff151 RD |
4921 | wxPyEndAllowThreads(__tstate); |
4922 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4923 | } Py_INCREF(Py_None); |
4924 | _resultobj = Py_None; | |
4925 | return _resultobj; | |
4926 | } | |
4927 | ||
4928 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4929 | PyObject * _resultobj; | |
4930 | char *_kwnames[] = { NULL }; | |
4931 | ||
4932 | self = self; | |
4933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
4934 | return NULL; | |
4935 | { | |
0e2ff151 | 4936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4937 | wxLog::Resume(); |
e6056257 | 4938 | |
0e2ff151 RD |
4939 | wxPyEndAllowThreads(__tstate); |
4940 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4941 | } Py_INCREF(Py_None); |
4942 | _resultobj = Py_None; | |
4943 | return _resultobj; | |
4944 | } | |
4945 | ||
e6056257 RD |
4946 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { |
4947 | PyObject * _resultobj; | |
40699168 RD |
4948 | bool _arg0 = (bool ) TRUE; |
4949 | int tempbool0 = (int) TRUE; | |
4950 | char *_kwnames[] = { "bVerbose", NULL }; | |
e6056257 RD |
4951 | |
4952 | self = self; | |
40699168 | 4953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_SetVerbose",_kwnames,&tempbool0)) |
e6056257 | 4954 | return NULL; |
40699168 | 4955 | _arg0 = (bool ) tempbool0; |
e6056257 | 4956 | { |
0e2ff151 | 4957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
40699168 | 4958 | wxLog::SetVerbose(_arg0); |
e6056257 | 4959 | |
0e2ff151 RD |
4960 | wxPyEndAllowThreads(__tstate); |
4961 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4962 | } Py_INCREF(Py_None); |
4963 | _resultobj = Py_None; | |
4964 | return _resultobj; | |
4965 | } | |
4966 | ||
4967 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4968 | PyObject * _resultobj; | |
4969 | char *_kwnames[] = { NULL }; | |
4970 | ||
4971 | self = self; | |
4972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
4973 | return NULL; | |
4974 | { | |
0e2ff151 | 4975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4976 | wxLog::DontCreateOnDemand(); |
e6056257 | 4977 | |
0e2ff151 RD |
4978 | wxPyEndAllowThreads(__tstate); |
4979 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4980 | } Py_INCREF(Py_None); |
4981 | _resultobj = Py_None; | |
4982 | return _resultobj; | |
4983 | } | |
4984 | ||
4985 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4986 | PyObject * _resultobj; | |
3a37d753 | 4987 | long _arg0; |
e6056257 RD |
4988 | char *_kwnames[] = { "ulMask", NULL }; |
4989 | ||
4990 | self = self; | |
3a37d753 | 4991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxLog_SetTraceMask",_kwnames,&_arg0)) |
e6056257 | 4992 | return NULL; |
e6056257 | 4993 | { |
0e2ff151 | 4994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a37d753 | 4995 | wxLog::SetTraceMask(_arg0); |
e6056257 | 4996 | |
0e2ff151 RD |
4997 | wxPyEndAllowThreads(__tstate); |
4998 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
4999 | } Py_INCREF(Py_None); |
5000 | _resultobj = Py_None; | |
5001 | return _resultobj; | |
5002 | } | |
5003 | ||
5004 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5005 | PyObject * _resultobj; | |
5006 | wxString * _arg0; | |
5007 | PyObject * _obj0 = 0; | |
5008 | char *_kwnames[] = { "str", NULL }; | |
5009 | ||
5010 | self = self; | |
5011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
5012 | return NULL; | |
5013 | { | |
6824d4f9 RD |
5014 | _arg0 = wxString_in_helper(_obj0); |
5015 | if (_arg0 == NULL) | |
e6056257 | 5016 | return NULL; |
e6056257 RD |
5017 | } |
5018 | { | |
0e2ff151 | 5019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5020 | wxLog::AddTraceMask(*_arg0); |
e6056257 | 5021 | |
0e2ff151 RD |
5022 | wxPyEndAllowThreads(__tstate); |
5023 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5024 | } Py_INCREF(Py_None); |
5025 | _resultobj = Py_None; | |
5026 | { | |
5027 | if (_obj0) | |
5028 | delete _arg0; | |
5029 | } | |
5030 | return _resultobj; | |
5031 | } | |
5032 | ||
5033 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5034 | PyObject * _resultobj; | |
5035 | wxString * _arg0; | |
5036 | PyObject * _obj0 = 0; | |
5037 | char *_kwnames[] = { "str", NULL }; | |
5038 | ||
5039 | self = self; | |
5040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
5041 | return NULL; | |
5042 | { | |
6824d4f9 RD |
5043 | _arg0 = wxString_in_helper(_obj0); |
5044 | if (_arg0 == NULL) | |
e6056257 | 5045 | return NULL; |
e6056257 RD |
5046 | } |
5047 | { | |
0e2ff151 | 5048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5049 | wxLog::RemoveTraceMask(*_arg0); |
e6056257 | 5050 | |
0e2ff151 RD |
5051 | wxPyEndAllowThreads(__tstate); |
5052 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5053 | } Py_INCREF(Py_None); |
5054 | _resultobj = Py_None; | |
5055 | { | |
5056 | if (_obj0) | |
5057 | delete _arg0; | |
5058 | } | |
5059 | return _resultobj; | |
5060 | } | |
5061 | ||
5062 | static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5063 | PyObject * _resultobj; | |
5064 | char *_kwnames[] = { NULL }; | |
5065 | ||
5066 | self = self; | |
5067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames)) | |
5068 | return NULL; | |
5069 | { | |
0e2ff151 | 5070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5071 | wxLog::ClearTraceMasks(); |
e6056257 | 5072 | |
0e2ff151 RD |
5073 | wxPyEndAllowThreads(__tstate); |
5074 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5075 | } Py_INCREF(Py_None); |
5076 | _resultobj = Py_None; | |
5077 | return _resultobj; | |
5078 | } | |
5079 | ||
4ea97290 RD |
5080 | static PyObject *_wrap_wxLog_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { |
5081 | PyObject * _resultobj; | |
5082 | wxArrayString * _result; | |
5083 | char *_kwnames[] = { NULL }; | |
5084 | char _ptemp[128]; | |
5085 | ||
5086 | self = self; | |
5087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMasks",_kwnames)) | |
5088 | return NULL; | |
5089 | { | |
5090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5091 | const wxArrayString & _result_ref = wxLog::GetTraceMasks(); | |
5092 | _result = (wxArrayString *) &_result_ref; | |
5093 | ||
5094 | wxPyEndAllowThreads(__tstate); | |
5095 | if (PyErr_Occurred()) return NULL; | |
5096 | } if (_result) { | |
5097 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxArrayString_p"); | |
5098 | _resultobj = Py_BuildValue("s",_ptemp); | |
5099 | } else { | |
5100 | Py_INCREF(Py_None); | |
5101 | _resultobj = Py_None; | |
5102 | } | |
5103 | return _resultobj; | |
5104 | } | |
5105 | ||
e6056257 RD |
5106 | static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { |
5107 | PyObject * _resultobj; | |
c3bfa1cb RD |
5108 | wxString * _arg0; |
5109 | PyObject * _obj0 = 0; | |
e6056257 RD |
5110 | char *_kwnames[] = { "ts", NULL }; |
5111 | ||
5112 | self = self; | |
c3bfa1cb RD |
5113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTimestamp",_kwnames,&_obj0)) |
5114 | return NULL; | |
5115 | { | |
5116 | _arg0 = wxString_in_helper(_obj0); | |
5117 | if (_arg0 == NULL) | |
e6056257 | 5118 | return NULL; |
c3bfa1cb | 5119 | } |
e6056257 | 5120 | { |
0e2ff151 | 5121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 5122 | wxLog::SetTimestamp(*_arg0); |
e6056257 | 5123 | |
0e2ff151 RD |
5124 | wxPyEndAllowThreads(__tstate); |
5125 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5126 | } Py_INCREF(Py_None); |
5127 | _resultobj = Py_None; | |
c3bfa1cb RD |
5128 | { |
5129 | if (_obj0) | |
5130 | delete _arg0; | |
5131 | } | |
e6056257 RD |
5132 | return _resultobj; |
5133 | } | |
5134 | ||
5135 | static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5136 | PyObject * _resultobj; | |
c3bfa1cb | 5137 | wxString * _result; |
e6056257 RD |
5138 | char *_kwnames[] = { NULL }; |
5139 | ||
5140 | self = self; | |
5141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames)) | |
5142 | return NULL; | |
5143 | { | |
0e2ff151 | 5144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb RD |
5145 | const wxString & _result_ref = wxLog::GetTimestamp(); |
5146 | _result = (wxString *) &_result_ref; | |
e6056257 | 5147 | |
0e2ff151 RD |
5148 | wxPyEndAllowThreads(__tstate); |
5149 | if (PyErr_Occurred()) return NULL; | |
c3bfa1cb RD |
5150 | }{ |
5151 | #if wxUSE_UNICODE | |
5152 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5153 | #else | |
5154 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5155 | #endif | |
5156 | } | |
e6056257 RD |
5157 | return _resultobj; |
5158 | } | |
5159 | ||
5160 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) | |
5161 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5162 | PyObject * _resultobj; | |
5163 | bool _result; | |
5164 | wxLog * _arg0; | |
5165 | PyObject * _argo0 = 0; | |
5166 | char *_kwnames[] = { "self", NULL }; | |
5167 | ||
5168 | self = self; | |
5169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) | |
5170 | return NULL; | |
5171 | if (_argo0) { | |
5172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
5175 | return NULL; | |
5176 | } | |
5177 | } | |
5178 | { | |
0e2ff151 | 5179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5180 | _result = (bool )wxLog_GetVerbose(_arg0); |
e6056257 | 5181 | |
0e2ff151 RD |
5182 | wxPyEndAllowThreads(__tstate); |
5183 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5184 | } _resultobj = Py_BuildValue("i",_result); |
5185 | return _resultobj; | |
5186 | } | |
5187 | ||
5188 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5189 | PyObject * _resultobj; | |
3a37d753 | 5190 | unsigned long _result; |
e6056257 | 5191 | char *_kwnames[] = { NULL }; |
e6056257 RD |
5192 | |
5193 | self = self; | |
5194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) | |
5195 | return NULL; | |
5196 | { | |
0e2ff151 | 5197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3a37d753 | 5198 | _result = (unsigned long )wxLog::GetTraceMask(); |
e6056257 | 5199 | |
0e2ff151 RD |
5200 | wxPyEndAllowThreads(__tstate); |
5201 | if (PyErr_Occurred()) return NULL; | |
3a37d753 | 5202 | } _resultobj = Py_BuildValue("l",_result); |
e6056257 RD |
5203 | return _resultobj; |
5204 | } | |
5205 | ||
5206 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5207 | PyObject * _resultobj; | |
5208 | bool _result; | |
6824d4f9 RD |
5209 | wxString * _arg0; |
5210 | PyObject * _obj0 = 0; | |
e6056257 RD |
5211 | char *_kwnames[] = { "mask", NULL }; |
5212 | ||
5213 | self = self; | |
6824d4f9 | 5214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_IsAllowedTraceMask",_kwnames,&_obj0)) |
e6056257 | 5215 | return NULL; |
6824d4f9 RD |
5216 | { |
5217 | _arg0 = wxString_in_helper(_obj0); | |
5218 | if (_arg0 == NULL) | |
5219 | return NULL; | |
5220 | } | |
e6056257 | 5221 | { |
0e2ff151 | 5222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5223 | _result = (bool )wxLog::IsAllowedTraceMask(*_arg0); |
e6056257 | 5224 | |
0e2ff151 RD |
5225 | wxPyEndAllowThreads(__tstate); |
5226 | if (PyErr_Occurred()) return NULL; | |
e6056257 | 5227 | } _resultobj = Py_BuildValue("i",_result); |
6824d4f9 RD |
5228 | { |
5229 | if (_obj0) | |
5230 | delete _arg0; | |
5231 | } | |
e6056257 RD |
5232 | return _resultobj; |
5233 | } | |
5234 | ||
5235 | static wxString wxLog_TimeStamp(wxLog *self) { | |
5236 | wxString msg; | |
5237 | wxLog::TimeStamp(&msg); | |
5238 | return msg; | |
5239 | } | |
5240 | static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5241 | PyObject * _resultobj; | |
5242 | wxString * _result; | |
5243 | wxLog * _arg0; | |
5244 | PyObject * _argo0 = 0; | |
5245 | char *_kwnames[] = { "self", NULL }; | |
5246 | ||
5247 | self = self; | |
5248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0)) | |
5249 | return NULL; | |
5250 | if (_argo0) { | |
5251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p."); | |
5254 | return NULL; | |
5255 | } | |
5256 | } | |
5257 | { | |
0e2ff151 | 5258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5259 | _result = new wxString (wxLog_TimeStamp(_arg0)); |
e6056257 | 5260 | |
0e2ff151 RD |
5261 | wxPyEndAllowThreads(__tstate); |
5262 | if (PyErr_Occurred()) return NULL; | |
e6056257 | 5263 | }{ |
6824d4f9 RD |
5264 | #if wxUSE_UNICODE |
5265 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5266 | #else | |
e6056257 | 5267 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 5268 | #endif |
e6056257 RD |
5269 | } |
5270 | { | |
5271 | delete _result; | |
5272 | } | |
5273 | return _resultobj; | |
5274 | } | |
5275 | ||
5276 | static void *SwigwxLogStderrTowxLog(void *ptr) { | |
5277 | wxLogStderr *src; | |
5278 | wxLog *dest; | |
5279 | src = (wxLogStderr *) ptr; | |
5280 | dest = (wxLog *) src; | |
5281 | return (void *) dest; | |
5282 | } | |
5283 | ||
5284 | #define new_wxLogStderr() (new wxLogStderr()) | |
5285 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5286 | PyObject * _resultobj; | |
5287 | wxLogStderr * _result; | |
5288 | char *_kwnames[] = { NULL }; | |
5289 | char _ptemp[128]; | |
5290 | ||
5291 | self = self; | |
5292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) | |
5293 | return NULL; | |
5294 | { | |
0e2ff151 | 5295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5296 | _result = (wxLogStderr *)new_wxLogStderr(); |
e6056257 | 5297 | |
0e2ff151 RD |
5298 | wxPyEndAllowThreads(__tstate); |
5299 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5300 | } if (_result) { |
5301 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
5302 | _resultobj = Py_BuildValue("s",_ptemp); | |
5303 | } else { | |
5304 | Py_INCREF(Py_None); | |
5305 | _resultobj = Py_None; | |
5306 | } | |
5307 | return _resultobj; | |
5308 | } | |
5309 | ||
5310 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { | |
5311 | wxLogTextCtrl *src; | |
5312 | wxLog *dest; | |
5313 | src = (wxLogTextCtrl *) ptr; | |
5314 | dest = (wxLog *) src; | |
5315 | return (void *) dest; | |
5316 | } | |
5317 | ||
5318 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
5319 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5320 | PyObject * _resultobj; | |
5321 | wxLogTextCtrl * _result; | |
5322 | wxTextCtrl * _arg0; | |
5323 | PyObject * _argo0 = 0; | |
5324 | char *_kwnames[] = { "pTextCtrl", NULL }; | |
5325 | char _ptemp[128]; | |
5326 | ||
5327 | self = self; | |
5328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) | |
5329 | return NULL; | |
5330 | if (_argo0) { | |
5331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
5333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
5334 | return NULL; | |
5335 | } | |
5336 | } | |
5337 | { | |
0e2ff151 | 5338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5339 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); |
e6056257 | 5340 | |
0e2ff151 RD |
5341 | wxPyEndAllowThreads(__tstate); |
5342 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5343 | } if (_result) { |
5344 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
5345 | _resultobj = Py_BuildValue("s",_ptemp); | |
5346 | } else { | |
5347 | Py_INCREF(Py_None); | |
5348 | _resultobj = Py_None; | |
5349 | } | |
5350 | return _resultobj; | |
5351 | } | |
5352 | ||
5353 | static void *SwigwxLogGuiTowxLog(void *ptr) { | |
5354 | wxLogGui *src; | |
5355 | wxLog *dest; | |
5356 | src = (wxLogGui *) ptr; | |
5357 | dest = (wxLog *) src; | |
5358 | return (void *) dest; | |
5359 | } | |
5360 | ||
5361 | #define new_wxLogGui() (new wxLogGui()) | |
5362 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5363 | PyObject * _resultobj; | |
5364 | wxLogGui * _result; | |
5365 | char *_kwnames[] = { NULL }; | |
5366 | char _ptemp[128]; | |
5367 | ||
5368 | self = self; | |
5369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) | |
5370 | return NULL; | |
5371 | { | |
0e2ff151 | 5372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5373 | _result = (wxLogGui *)new_wxLogGui(); |
e6056257 | 5374 | |
0e2ff151 RD |
5375 | wxPyEndAllowThreads(__tstate); |
5376 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5377 | } if (_result) { |
5378 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); | |
5379 | _resultobj = Py_BuildValue("s",_ptemp); | |
5380 | } else { | |
5381 | Py_INCREF(Py_None); | |
5382 | _resultobj = Py_None; | |
5383 | } | |
5384 | return _resultobj; | |
5385 | } | |
5386 | ||
5387 | static void *SwigwxLogWindowTowxLog(void *ptr) { | |
5388 | wxLogWindow *src; | |
5389 | wxLog *dest; | |
5390 | src = (wxLogWindow *) ptr; | |
5391 | dest = (wxLog *) src; | |
5392 | return (void *) dest; | |
5393 | } | |
5394 | ||
5395 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5396 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5397 | PyObject * _resultobj; | |
5398 | wxLogWindow * _result; | |
5399 | wxFrame * _arg0; | |
6824d4f9 | 5400 | wxString * _arg1; |
e6056257 RD |
5401 | bool _arg2 = (bool ) TRUE; |
5402 | bool _arg3 = (bool ) TRUE; | |
5403 | PyObject * _argo0 = 0; | |
6824d4f9 | 5404 | PyObject * _obj1 = 0; |
e6056257 RD |
5405 | int tempbool2 = (int) TRUE; |
5406 | int tempbool3 = (int) TRUE; | |
5407 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
5408 | char _ptemp[128]; | |
5409 | ||
5410 | self = self; | |
6824d4f9 | 5411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:new_wxLogWindow",_kwnames,&_argo0,&_obj1,&tempbool2,&tempbool3)) |
e6056257 RD |
5412 | return NULL; |
5413 | if (_argo0) { | |
5414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
5416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
5417 | return NULL; | |
5418 | } | |
5419 | } | |
6824d4f9 RD |
5420 | { |
5421 | _arg1 = wxString_in_helper(_obj1); | |
5422 | if (_arg1 == NULL) | |
5423 | return NULL; | |
5424 | } | |
e6056257 RD |
5425 | _arg2 = (bool ) tempbool2; |
5426 | _arg3 = (bool ) tempbool3; | |
5427 | { | |
0e2ff151 | 5428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5429 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,*_arg1,_arg2,_arg3); |
e6056257 | 5430 | |
0e2ff151 RD |
5431 | wxPyEndAllowThreads(__tstate); |
5432 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5433 | } if (_result) { |
5434 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
5435 | _resultobj = Py_BuildValue("s",_ptemp); | |
5436 | } else { | |
5437 | Py_INCREF(Py_None); | |
5438 | _resultobj = Py_None; | |
5439 | } | |
6824d4f9 RD |
5440 | { |
5441 | if (_obj1) | |
5442 | delete _arg1; | |
5443 | } | |
e6056257 RD |
5444 | return _resultobj; |
5445 | } | |
5446 | ||
5447 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
5448 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5449 | PyObject * _resultobj; | |
5450 | wxLogWindow * _arg0; | |
5451 | bool _arg1 = (bool ) TRUE; | |
5452 | PyObject * _argo0 = 0; | |
5453 | int tempbool1 = (int) TRUE; | |
5454 | char *_kwnames[] = { "self","bShow", NULL }; | |
5455 | ||
5456 | self = self; | |
5457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) | |
5458 | return NULL; | |
5459 | if (_argo0) { | |
5460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
5462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
5463 | return NULL; | |
5464 | } | |
5465 | } | |
5466 | _arg1 = (bool ) tempbool1; | |
5467 | { | |
0e2ff151 | 5468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5469 | wxLogWindow_Show(_arg0,_arg1); |
e6056257 | 5470 | |
0e2ff151 RD |
5471 | wxPyEndAllowThreads(__tstate); |
5472 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5473 | } Py_INCREF(Py_None); |
5474 | _resultobj = Py_None; | |
5475 | return _resultobj; | |
5476 | } | |
5477 | ||
5478 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) | |
5479 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5480 | PyObject * _resultobj; | |
5481 | wxFrame * _result; | |
5482 | wxLogWindow * _arg0; | |
5483 | PyObject * _argo0 = 0; | |
5484 | char *_kwnames[] = { "self", NULL }; | |
5485 | ||
5486 | self = self; | |
5487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) | |
5488 | return NULL; | |
5489 | if (_argo0) { | |
5490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
5492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
5493 | return NULL; | |
5494 | } | |
5495 | } | |
5496 | { | |
0e2ff151 | 5497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5498 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); |
e6056257 | 5499 | |
0e2ff151 RD |
5500 | wxPyEndAllowThreads(__tstate); |
5501 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5502 | }{ _resultobj = wxPyMake_wxObject(_result); } |
5503 | return _resultobj; | |
5504 | } | |
5505 | ||
5506 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5507 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5508 | PyObject * _resultobj; | |
5509 | wxLog * _result; | |
5510 | wxLogWindow * _arg0; | |
5511 | PyObject * _argo0 = 0; | |
5512 | char *_kwnames[] = { "self", NULL }; | |
5513 | char _ptemp[128]; | |
5514 | ||
5515 | self = self; | |
5516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) | |
5517 | return NULL; | |
5518 | if (_argo0) { | |
5519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
5521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
5522 | return NULL; | |
5523 | } | |
5524 | } | |
5525 | { | |
0e2ff151 | 5526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5527 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); |
e6056257 | 5528 | |
0e2ff151 RD |
5529 | wxPyEndAllowThreads(__tstate); |
5530 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5531 | } if (_result) { |
5532 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5533 | _resultobj = Py_BuildValue("s",_ptemp); | |
5534 | } else { | |
5535 | Py_INCREF(Py_None); | |
5536 | _resultobj = Py_None; | |
5537 | } | |
5538 | return _resultobj; | |
5539 | } | |
5540 | ||
5541 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5542 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5543 | PyObject * _resultobj; | |
5544 | bool _result; | |
5545 | wxLogWindow * _arg0; | |
5546 | PyObject * _argo0 = 0; | |
5547 | char *_kwnames[] = { "self", NULL }; | |
5548 | ||
5549 | self = self; | |
5550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) | |
5551 | return NULL; | |
5552 | if (_argo0) { | |
5553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
5555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
5556 | return NULL; | |
5557 | } | |
5558 | } | |
5559 | { | |
0e2ff151 | 5560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5561 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); |
e6056257 | 5562 | |
0e2ff151 RD |
5563 | wxPyEndAllowThreads(__tstate); |
5564 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5565 | } _resultobj = Py_BuildValue("i",_result); |
5566 | return _resultobj; | |
5567 | } | |
5568 | ||
5569 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5570 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5571 | PyObject * _resultobj; | |
5572 | wxLogWindow * _arg0; | |
5573 | bool _arg1; | |
5574 | PyObject * _argo0 = 0; | |
5575 | int tempbool1; | |
5576 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5577 | ||
5578 | self = self; | |
5579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5580 | return NULL; | |
5581 | if (_argo0) { | |
5582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
5584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
5585 | return NULL; | |
5586 | } | |
5587 | } | |
5588 | _arg1 = (bool ) tempbool1; | |
5589 | { | |
0e2ff151 | 5590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5591 | wxLogWindow_PassMessages(_arg0,_arg1); |
e6056257 | 5592 | |
0e2ff151 RD |
5593 | wxPyEndAllowThreads(__tstate); |
5594 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5595 | } Py_INCREF(Py_None); |
5596 | _resultobj = Py_None; | |
5597 | return _resultobj; | |
5598 | } | |
5599 | ||
e6056257 RD |
5600 | static void *SwigwxLogChainTowxLog(void *ptr) { |
5601 | wxLogChain *src; | |
5602 | wxLog *dest; | |
5603 | src = (wxLogChain *) ptr; | |
5604 | dest = (wxLog *) src; | |
5605 | return (void *) dest; | |
5606 | } | |
5607 | ||
5608 | #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0)) | |
5609 | static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5610 | PyObject * _resultobj; | |
5611 | wxLogChain * _result; | |
5612 | wxLog * _arg0; | |
5613 | PyObject * _argo0 = 0; | |
5614 | char *_kwnames[] = { "logger", NULL }; | |
5615 | char _ptemp[128]; | |
5616 | ||
5617 | self = self; | |
5618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0)) | |
5619 | return NULL; | |
5620 | if (_argo0) { | |
5621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p."); | |
5624 | return NULL; | |
5625 | } | |
5626 | } | |
5627 | { | |
0e2ff151 | 5628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5629 | _result = (wxLogChain *)new_wxLogChain(_arg0); |
e6056257 | 5630 | |
0e2ff151 RD |
5631 | wxPyEndAllowThreads(__tstate); |
5632 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5633 | } if (_result) { |
5634 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p"); | |
5635 | _resultobj = Py_BuildValue("s",_ptemp); | |
5636 | } else { | |
5637 | Py_INCREF(Py_None); | |
5638 | _resultobj = Py_None; | |
5639 | } | |
5640 | return _resultobj; | |
5641 | } | |
5642 | ||
5643 | #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0)) | |
5644 | static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5645 | PyObject * _resultobj; | |
5646 | wxLogChain * _arg0; | |
5647 | wxLog * _arg1; | |
5648 | PyObject * _argo0 = 0; | |
5649 | PyObject * _argo1 = 0; | |
5650 | char *_kwnames[] = { "self","logger", NULL }; | |
5651 | ||
5652 | self = self; | |
5653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1)) | |
5654 | return NULL; | |
5655 | if (_argo0) { | |
5656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p."); | |
5659 | return NULL; | |
5660 | } | |
5661 | } | |
5662 | if (_argo1) { | |
5663 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5664 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) { | |
5665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p."); | |
5666 | return NULL; | |
5667 | } | |
5668 | } | |
5669 | { | |
0e2ff151 | 5670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5671 | wxLogChain_SetLog(_arg0,_arg1); |
e6056257 | 5672 | |
0e2ff151 RD |
5673 | wxPyEndAllowThreads(__tstate); |
5674 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5675 | } Py_INCREF(Py_None); |
5676 | _resultobj = Py_None; | |
5677 | return _resultobj; | |
5678 | } | |
5679 | ||
5680 | #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5681 | static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5682 | PyObject * _resultobj; | |
5683 | wxLogChain * _arg0; | |
5684 | bool _arg1; | |
5685 | PyObject * _argo0 = 0; | |
5686 | int tempbool1; | |
5687 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5688 | ||
5689 | self = self; | |
5690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5691 | return NULL; | |
5692 | if (_argo0) { | |
5693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p."); | |
5696 | return NULL; | |
5697 | } | |
5698 | } | |
5699 | _arg1 = (bool ) tempbool1; | |
5700 | { | |
0e2ff151 | 5701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5702 | wxLogChain_PassMessages(_arg0,_arg1); |
e6056257 | 5703 | |
0e2ff151 RD |
5704 | wxPyEndAllowThreads(__tstate); |
5705 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5706 | } Py_INCREF(Py_None); |
5707 | _resultobj = Py_None; | |
5708 | return _resultobj; | |
5709 | } | |
5710 | ||
5711 | #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5712 | static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5713 | PyObject * _resultobj; | |
5714 | bool _result; | |
5715 | wxLogChain * _arg0; | |
5716 | PyObject * _argo0 = 0; | |
5717 | char *_kwnames[] = { "self", NULL }; | |
5718 | ||
5719 | self = self; | |
5720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0)) | |
5721 | return NULL; | |
5722 | if (_argo0) { | |
5723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p."); | |
5726 | return NULL; | |
5727 | } | |
5728 | } | |
5729 | { | |
0e2ff151 | 5730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5731 | _result = (bool )wxLogChain_IsPassingMessages(_arg0); |
e6056257 | 5732 | |
0e2ff151 RD |
5733 | wxPyEndAllowThreads(__tstate); |
5734 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5735 | } _resultobj = Py_BuildValue("i",_result); |
5736 | return _resultobj; | |
5737 | } | |
5738 | ||
5739 | #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5740 | static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5741 | PyObject * _resultobj; | |
5742 | wxLog * _result; | |
5743 | wxLogChain * _arg0; | |
5744 | PyObject * _argo0 = 0; | |
5745 | char *_kwnames[] = { "self", NULL }; | |
5746 | char _ptemp[128]; | |
5747 | ||
5748 | self = self; | |
5749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0)) | |
5750 | return NULL; | |
5751 | if (_argo0) { | |
5752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p."); | |
5755 | return NULL; | |
5756 | } | |
5757 | } | |
5758 | { | |
0e2ff151 | 5759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5760 | _result = (wxLog *)wxLogChain_GetOldLog(_arg0); |
e6056257 | 5761 | |
0e2ff151 RD |
5762 | wxPyEndAllowThreads(__tstate); |
5763 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5764 | } if (_result) { |
5765 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5766 | _resultobj = Py_BuildValue("s",_ptemp); | |
5767 | } else { | |
5768 | Py_INCREF(Py_None); | |
5769 | _resultobj = Py_None; | |
5770 | } | |
5771 | return _resultobj; | |
5772 | } | |
5773 | ||
eb28fd47 RD |
5774 | #define new_wxLogNull() (new wxLogNull()) |
5775 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5776 | PyObject * _resultobj; | |
5777 | wxLogNull * _result; | |
5778 | char *_kwnames[] = { NULL }; | |
5779 | char _ptemp[128]; | |
5780 | ||
5781 | self = self; | |
5782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) | |
5783 | return NULL; | |
5784 | { | |
5785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5786 | _result = (wxLogNull *)new_wxLogNull(); | |
5787 | ||
5788 | wxPyEndAllowThreads(__tstate); | |
5789 | if (PyErr_Occurred()) return NULL; | |
5790 | } if (_result) { | |
5791 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); | |
5792 | _resultobj = Py_BuildValue("s",_ptemp); | |
5793 | } else { | |
5794 | Py_INCREF(Py_None); | |
5795 | _resultobj = Py_None; | |
5796 | } | |
5797 | return _resultobj; | |
5798 | } | |
5799 | ||
5800 | #define delete_wxLogNull(_swigobj) (delete _swigobj) | |
5801 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5802 | PyObject * _resultobj; | |
5803 | wxLogNull * _arg0; | |
5804 | PyObject * _argo0 = 0; | |
5805 | char *_kwnames[] = { "self", NULL }; | |
5806 | ||
5807 | self = self; | |
5808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) | |
5809 | return NULL; | |
5810 | if (_argo0) { | |
5811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { | |
5813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
5814 | return NULL; | |
5815 | } | |
5816 | } | |
5817 | { | |
5818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5819 | delete_wxLogNull(_arg0); | |
5820 | ||
5821 | wxPyEndAllowThreads(__tstate); | |
5822 | if (PyErr_Occurred()) return NULL; | |
5823 | } Py_INCREF(Py_None); | |
5824 | _resultobj = Py_None; | |
5825 | return _resultobj; | |
5826 | } | |
5827 | ||
e6056257 RD |
5828 | static void *SwigwxPyLogTowxLog(void *ptr) { |
5829 | wxPyLog *src; | |
5830 | wxLog *dest; | |
5831 | src = (wxPyLog *) ptr; | |
5832 | dest = (wxLog *) src; | |
5833 | return (void *) dest; | |
5834 | } | |
5835 | ||
5836 | #define new_wxPyLog() (new wxPyLog()) | |
5837 | static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5838 | PyObject * _resultobj; | |
5839 | wxPyLog * _result; | |
5840 | char *_kwnames[] = { NULL }; | |
5841 | char _ptemp[128]; | |
5842 | ||
5843 | self = self; | |
5844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames)) | |
5845 | return NULL; | |
5846 | { | |
0e2ff151 | 5847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5848 | _result = (wxPyLog *)new_wxPyLog(); |
e6056257 | 5849 | |
0e2ff151 RD |
5850 | wxPyEndAllowThreads(__tstate); |
5851 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5852 | } if (_result) { |
5853 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p"); | |
5854 | _resultobj = Py_BuildValue("s",_ptemp); | |
5855 | } else { | |
5856 | Py_INCREF(Py_None); | |
5857 | _resultobj = Py_None; | |
5858 | } | |
5859 | return _resultobj; | |
5860 | } | |
5861 | ||
5862 | #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
5863 | static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5864 | PyObject * _resultobj; | |
5865 | wxPyLog * _arg0; | |
5866 | PyObject * _arg1; | |
5867 | PyObject * _arg2; | |
5868 | PyObject * _argo0 = 0; | |
5869 | PyObject * _obj1 = 0; | |
5870 | PyObject * _obj2 = 0; | |
5871 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5872 | ||
5873 | self = self; | |
5874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
5875 | return NULL; | |
5876 | if (_argo0) { | |
5877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p."); | |
5880 | return NULL; | |
5881 | } | |
5882 | } | |
5883 | { | |
5884 | _arg1 = _obj1; | |
5885 | } | |
5886 | { | |
5887 | _arg2 = _obj2; | |
5888 | } | |
5889 | { | |
0e2ff151 | 5890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5891 | wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2); |
e6056257 | 5892 | |
0e2ff151 RD |
5893 | wxPyEndAllowThreads(__tstate); |
5894 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5895 | } Py_INCREF(Py_None); |
5896 | _resultobj = Py_None; | |
5897 | return _resultobj; | |
5898 | } | |
5899 | ||
5900 | static void wxPyLog_Destroy(wxPyLog *self) { delete self; } | |
5901 | static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5902 | PyObject * _resultobj; | |
5903 | wxPyLog * _arg0; | |
5904 | PyObject * _argo0 = 0; | |
5905 | char *_kwnames[] = { "self", NULL }; | |
5906 | ||
5907 | self = self; | |
5908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0)) | |
5909 | return NULL; | |
5910 | if (_argo0) { | |
5911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p."); | |
5914 | return NULL; | |
5915 | } | |
5916 | } | |
5917 | { | |
0e2ff151 | 5918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5919 | wxPyLog_Destroy(_arg0); |
e6056257 | 5920 | |
0e2ff151 RD |
5921 | wxPyEndAllowThreads(__tstate); |
5922 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5923 | } Py_INCREF(Py_None); |
5924 | _resultobj = Py_None; | |
5925 | return _resultobj; | |
5926 | } | |
5927 | ||
5928 | static void *SwigwxProcessEventTowxEvent(void *ptr) { | |
5929 | wxProcessEvent *src; | |
5930 | wxEvent *dest; | |
5931 | src = (wxProcessEvent *) ptr; | |
5932 | dest = (wxEvent *) src; | |
5933 | return (void *) dest; | |
5934 | } | |
5935 | ||
5936 | static void *SwigwxProcessEventTowxObject(void *ptr) { | |
5937 | wxProcessEvent *src; | |
5938 | wxObject *dest; | |
5939 | src = (wxProcessEvent *) ptr; | |
5940 | dest = (wxObject *) src; | |
5941 | return (void *) dest; | |
5942 | } | |
5943 | ||
5944 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) | |
5945 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5946 | PyObject * _resultobj; | |
5947 | wxProcessEvent * _result; | |
5948 | int _arg0 = (int ) 0; | |
5949 | int _arg1 = (int ) 0; | |
5950 | int _arg2 = (int ) 0; | |
5951 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
5952 | char _ptemp[128]; | |
5953 | ||
5954 | self = self; | |
5955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
5956 | return NULL; | |
5957 | { | |
0e2ff151 | 5958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5959 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); |
e6056257 | 5960 | |
0e2ff151 RD |
5961 | wxPyEndAllowThreads(__tstate); |
5962 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5963 | } if (_result) { |
5964 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
5965 | _resultobj = Py_BuildValue("s",_ptemp); | |
5966 | } else { | |
5967 | Py_INCREF(Py_None); | |
5968 | _resultobj = Py_None; | |
5969 | } | |
5970 | return _resultobj; | |
5971 | } | |
5972 | ||
5973 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
5974 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5975 | PyObject * _resultobj; | |
5976 | int _result; | |
5977 | wxProcessEvent * _arg0; | |
5978 | PyObject * _argo0 = 0; | |
5979 | char *_kwnames[] = { "self", NULL }; | |
5980 | ||
5981 | self = self; | |
5982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
5983 | return NULL; | |
5984 | if (_argo0) { | |
5985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
5988 | return NULL; | |
5989 | } | |
5990 | } | |
5991 | { | |
0e2ff151 | 5992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5993 | _result = (int )wxProcessEvent_GetPid(_arg0); |
e6056257 | 5994 | |
0e2ff151 RD |
5995 | wxPyEndAllowThreads(__tstate); |
5996 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
5997 | } _resultobj = Py_BuildValue("i",_result); |
5998 | return _resultobj; | |
5999 | } | |
6000 | ||
6001 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
6002 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6003 | PyObject * _resultobj; | |
6004 | int _result; | |
6005 | wxProcessEvent * _arg0; | |
6006 | PyObject * _argo0 = 0; | |
6007 | char *_kwnames[] = { "self", NULL }; | |
6008 | ||
6009 | self = self; | |
6010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
6011 | return NULL; | |
6012 | if (_argo0) { | |
6013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
6016 | return NULL; | |
6017 | } | |
6018 | } | |
6019 | { | |
0e2ff151 | 6020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6021 | _result = (int )wxProcessEvent_GetExitCode(_arg0); |
e6056257 | 6022 | |
0e2ff151 RD |
6023 | wxPyEndAllowThreads(__tstate); |
6024 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6025 | } _resultobj = Py_BuildValue("i",_result); |
6026 | return _resultobj; | |
6027 | } | |
6028 | ||
6029 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
6030 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6031 | PyObject * _resultobj; | |
6032 | int _result; | |
6033 | wxProcessEvent * _arg0; | |
6034 | int _arg1; | |
6035 | PyObject * _argo0 = 0; | |
6036 | char *_kwnames[] = { "self","m_pid", NULL }; | |
6037 | ||
6038 | self = self; | |
6039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
6040 | return NULL; | |
6041 | if (_argo0) { | |
6042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
6045 | return NULL; | |
6046 | } | |
6047 | } | |
6048 | { | |
0e2ff151 | 6049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6050 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); |
e6056257 | 6051 | |
0e2ff151 RD |
6052 | wxPyEndAllowThreads(__tstate); |
6053 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6054 | } _resultobj = Py_BuildValue("i",_result); |
6055 | return _resultobj; | |
6056 | } | |
6057 | ||
6058 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
6059 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6060 | PyObject * _resultobj; | |
6061 | int _result; | |
6062 | wxProcessEvent * _arg0; | |
6063 | PyObject * _argo0 = 0; | |
6064 | char *_kwnames[] = { "self", NULL }; | |
6065 | ||
6066 | self = self; | |
6067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
6068 | return NULL; | |
6069 | if (_argo0) { | |
6070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
6073 | return NULL; | |
6074 | } | |
6075 | } | |
6076 | { | |
0e2ff151 | 6077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6078 | _result = (int )wxProcessEvent_m_pid_get(_arg0); |
e6056257 | 6079 | |
0e2ff151 RD |
6080 | wxPyEndAllowThreads(__tstate); |
6081 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6082 | } _resultobj = Py_BuildValue("i",_result); |
6083 | return _resultobj; | |
6084 | } | |
6085 | ||
6086 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
6087 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6088 | PyObject * _resultobj; | |
6089 | int _result; | |
6090 | wxProcessEvent * _arg0; | |
6091 | int _arg1; | |
6092 | PyObject * _argo0 = 0; | |
6093 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
6094 | ||
6095 | self = self; | |
6096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
6097 | return NULL; | |
6098 | if (_argo0) { | |
6099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
6102 | return NULL; | |
6103 | } | |
6104 | } | |
6105 | { | |
0e2ff151 | 6106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6107 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); |
e6056257 | 6108 | |
0e2ff151 RD |
6109 | wxPyEndAllowThreads(__tstate); |
6110 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6111 | } _resultobj = Py_BuildValue("i",_result); |
6112 | return _resultobj; | |
6113 | } | |
6114 | ||
6115 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
6116 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6117 | PyObject * _resultobj; | |
6118 | int _result; | |
6119 | wxProcessEvent * _arg0; | |
6120 | PyObject * _argo0 = 0; | |
6121 | char *_kwnames[] = { "self", NULL }; | |
6122 | ||
6123 | self = self; | |
6124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
6125 | return NULL; | |
6126 | if (_argo0) { | |
6127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
6130 | return NULL; | |
6131 | } | |
6132 | } | |
6133 | { | |
0e2ff151 | 6134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6135 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); |
e6056257 | 6136 | |
0e2ff151 RD |
6137 | wxPyEndAllowThreads(__tstate); |
6138 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6139 | } _resultobj = Py_BuildValue("i",_result); |
6140 | return _resultobj; | |
6141 | } | |
6142 | ||
6143 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
6144 | wxPyProcess *src; | |
6145 | wxEvtHandler *dest; | |
6146 | src = (wxPyProcess *) ptr; | |
6147 | dest = (wxEvtHandler *) src; | |
6148 | return (void *) dest; | |
6149 | } | |
6150 | ||
6151 | static void *SwigwxPyProcessTowxObject(void *ptr) { | |
6152 | wxPyProcess *src; | |
6153 | wxObject *dest; | |
6154 | src = (wxPyProcess *) ptr; | |
6155 | dest = (wxObject *) src; | |
6156 | return (void *) dest; | |
6157 | } | |
6158 | ||
8961add6 RD |
6159 | static PyObject *_wrap_wxProcess_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { |
6160 | PyObject * _resultobj; | |
6161 | wxKillError _result; | |
6162 | int _arg0; | |
6163 | wxSignal _arg1 = (wxSignal ) (wxSIGTERM); | |
6164 | char *_kwnames[] = { "pid","sig", NULL }; | |
6165 | ||
6166 | self = self; | |
6167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|i:wxProcess_Kill",_kwnames,&_arg0,&_arg1)) | |
6168 | return NULL; | |
6169 | { | |
6170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6171 | _result = (wxKillError )wxPyProcess::Kill(_arg0,_arg1); | |
6172 | ||
6173 | wxPyEndAllowThreads(__tstate); | |
6174 | if (PyErr_Occurred()) return NULL; | |
6175 | } _resultobj = Py_BuildValue("i",_result); | |
6176 | return _resultobj; | |
6177 | } | |
6178 | ||
6179 | static PyObject *_wrap_wxProcess_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6180 | PyObject * _resultobj; | |
6181 | bool _result; | |
6182 | int _arg0; | |
6183 | char *_kwnames[] = { "pid", NULL }; | |
6184 | ||
6185 | self = self; | |
6186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxProcess_Exists",_kwnames,&_arg0)) | |
6187 | return NULL; | |
6188 | { | |
6189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6190 | _result = (bool )wxPyProcess::Exists(_arg0); | |
6191 | ||
6192 | wxPyEndAllowThreads(__tstate); | |
6193 | if (PyErr_Occurred()) return NULL; | |
6194 | } _resultobj = Py_BuildValue("i",_result); | |
6195 | return _resultobj; | |
6196 | } | |
6197 | ||
6198 | static PyObject *_wrap_wxProcess_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6199 | PyObject * _resultobj; | |
6200 | wxPyProcess * _result; | |
6201 | wxString * _arg0; | |
383ea3d0 | 6202 | int _arg1 = (int ) wxEXEC_ASYNC; |
8961add6 | 6203 | PyObject * _obj0 = 0; |
383ea3d0 | 6204 | char *_kwnames[] = { "cmd","flags", NULL }; |
8961add6 RD |
6205 | char _ptemp[128]; |
6206 | ||
6207 | self = self; | |
383ea3d0 | 6208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxProcess_Open",_kwnames,&_obj0,&_arg1)) |
8961add6 RD |
6209 | return NULL; |
6210 | { | |
6211 | _arg0 = wxString_in_helper(_obj0); | |
6212 | if (_arg0 == NULL) | |
6213 | return NULL; | |
6214 | } | |
6215 | { | |
6216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
383ea3d0 | 6217 | _result = (wxPyProcess *)wxPyProcess::Open(*_arg0,_arg1); |
8961add6 RD |
6218 | |
6219 | wxPyEndAllowThreads(__tstate); | |
6220 | if (PyErr_Occurred()) return NULL; | |
6221 | } if (_result) { | |
6222 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
6223 | _resultobj = Py_BuildValue("s",_ptemp); | |
6224 | } else { | |
6225 | Py_INCREF(Py_None); | |
6226 | _resultobj = Py_None; | |
6227 | } | |
6228 | { | |
6229 | if (_obj0) | |
6230 | delete _arg0; | |
6231 | } | |
6232 | return _resultobj; | |
6233 | } | |
6234 | ||
e6056257 RD |
6235 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) |
6236 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6237 | PyObject * _resultobj; | |
6238 | wxPyProcess * _result; | |
6239 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
6240 | int _arg1 = (int ) -1; | |
6241 | PyObject * _argo0 = 0; | |
6242 | char *_kwnames[] = { "parent","id", NULL }; | |
6243 | char _ptemp[128]; | |
6244 | ||
6245 | self = self; | |
6246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
6247 | return NULL; | |
6248 | if (_argo0) { | |
6249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
6251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
6252 | return NULL; | |
6253 | } | |
6254 | } | |
6255 | { | |
0e2ff151 | 6256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6257 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); |
e6056257 | 6258 | |
0e2ff151 RD |
6259 | wxPyEndAllowThreads(__tstate); |
6260 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6261 | } if (_result) { |
6262 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
6263 | _resultobj = Py_BuildValue("s",_ptemp); | |
6264 | } else { | |
6265 | Py_INCREF(Py_None); | |
6266 | _resultobj = Py_None; | |
6267 | } | |
6268 | return _resultobj; | |
6269 | } | |
6270 | ||
6271 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
6272 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6273 | PyObject * _resultobj; | |
6274 | wxPyProcess * _arg0; | |
6275 | PyObject * _argo0 = 0; | |
6276 | char *_kwnames[] = { "self", NULL }; | |
6277 | ||
6278 | self = self; | |
6279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
6280 | return NULL; | |
6281 | if (_argo0) { | |
6282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
6285 | return NULL; | |
6286 | } | |
6287 | } | |
6288 | { | |
0e2ff151 | 6289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6290 | wxPyProcess_Destroy(_arg0); |
e6056257 | 6291 | |
0e2ff151 RD |
6292 | wxPyEndAllowThreads(__tstate); |
6293 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6294 | } Py_INCREF(Py_None); |
6295 | _resultobj = Py_None; | |
6296 | return _resultobj; | |
6297 | } | |
6298 | ||
6299 | #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
6300 | static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6301 | PyObject * _resultobj; | |
6302 | wxPyProcess * _arg0; | |
6303 | PyObject * _arg1; | |
6304 | PyObject * _arg2; | |
6305 | PyObject * _argo0 = 0; | |
6306 | PyObject * _obj1 = 0; | |
6307 | PyObject * _obj2 = 0; | |
6308 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6309 | ||
6310 | self = self; | |
6311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
6312 | return NULL; | |
6313 | if (_argo0) { | |
6314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p."); | |
6317 | return NULL; | |
6318 | } | |
6319 | } | |
6320 | { | |
6321 | _arg1 = _obj1; | |
6322 | } | |
6323 | { | |
6324 | _arg2 = _obj2; | |
6325 | } | |
6326 | { | |
0e2ff151 | 6327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6328 | wxProcess__setCallbackInfo(_arg0,_arg1,_arg2); |
e6056257 | 6329 | |
0e2ff151 RD |
6330 | wxPyEndAllowThreads(__tstate); |
6331 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6332 | } Py_INCREF(Py_None); |
6333 | _resultobj = Py_None; | |
6334 | return _resultobj; | |
6335 | } | |
6336 | ||
6337 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
6338 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6339 | PyObject * _resultobj; | |
6340 | wxPyProcess * _arg0; | |
6341 | int _arg1; | |
6342 | int _arg2; | |
6343 | PyObject * _argo0 = 0; | |
6344 | char *_kwnames[] = { "self","pid","status", NULL }; | |
6345 | ||
6346 | self = self; | |
6347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6348 | return NULL; | |
6349 | if (_argo0) { | |
6350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
6353 | return NULL; | |
6354 | } | |
6355 | } | |
6356 | { | |
0e2ff151 | 6357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6358 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); |
e6056257 | 6359 | |
0e2ff151 RD |
6360 | wxPyEndAllowThreads(__tstate); |
6361 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6362 | } Py_INCREF(Py_None); |
6363 | _resultobj = Py_None; | |
6364 | return _resultobj; | |
6365 | } | |
6366 | ||
6367 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
6368 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6369 | PyObject * _resultobj; | |
6370 | wxPyProcess * _arg0; | |
6371 | PyObject * _argo0 = 0; | |
6372 | char *_kwnames[] = { "self", NULL }; | |
6373 | ||
6374 | self = self; | |
6375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
6376 | return NULL; | |
6377 | if (_argo0) { | |
6378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
6381 | return NULL; | |
6382 | } | |
6383 | } | |
6384 | { | |
0e2ff151 | 6385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6386 | wxProcess_Redirect(_arg0); |
e6056257 | 6387 | |
0e2ff151 RD |
6388 | wxPyEndAllowThreads(__tstate); |
6389 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6390 | } Py_INCREF(Py_None); |
6391 | _resultobj = Py_None; | |
6392 | return _resultobj; | |
6393 | } | |
6394 | ||
6395 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
6396 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6397 | PyObject * _resultobj; | |
6398 | bool _result; | |
6399 | wxPyProcess * _arg0; | |
6400 | PyObject * _argo0 = 0; | |
6401 | char *_kwnames[] = { "self", NULL }; | |
6402 | ||
6403 | self = self; | |
6404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
6405 | return NULL; | |
6406 | if (_argo0) { | |
6407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
6410 | return NULL; | |
6411 | } | |
6412 | } | |
6413 | { | |
0e2ff151 | 6414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6415 | _result = (bool )wxProcess_IsRedirected(_arg0); |
e6056257 | 6416 | |
0e2ff151 RD |
6417 | wxPyEndAllowThreads(__tstate); |
6418 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6419 | } _resultobj = Py_BuildValue("i",_result); |
6420 | return _resultobj; | |
6421 | } | |
6422 | ||
6423 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
6424 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6425 | PyObject * _resultobj; | |
6426 | wxPyProcess * _arg0; | |
6427 | PyObject * _argo0 = 0; | |
6428 | char *_kwnames[] = { "self", NULL }; | |
6429 | ||
6430 | self = self; | |
6431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
6432 | return NULL; | |
6433 | if (_argo0) { | |
6434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
6437 | return NULL; | |
6438 | } | |
6439 | } | |
6440 | { | |
0e2ff151 | 6441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6442 | wxProcess_Detach(_arg0); |
e6056257 | 6443 | |
0e2ff151 RD |
6444 | wxPyEndAllowThreads(__tstate); |
6445 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6446 | } Py_INCREF(Py_None); |
6447 | _resultobj = Py_None; | |
6448 | return _resultobj; | |
6449 | } | |
6450 | ||
6451 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
6452 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6453 | PyObject * _resultobj; | |
6454 | wxInputStream * _result; | |
6455 | wxPyProcess * _arg0; | |
6456 | PyObject * _argo0 = 0; | |
6457 | char *_kwnames[] = { "self", NULL }; | |
6458 | ||
6459 | self = self; | |
6460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
6461 | return NULL; | |
6462 | if (_argo0) { | |
6463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
6466 | return NULL; | |
6467 | } | |
6468 | } | |
6469 | { | |
0e2ff151 | 6470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6471 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); |
e6056257 | 6472 | |
0e2ff151 RD |
6473 | wxPyEndAllowThreads(__tstate); |
6474 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6475 | }{ |
6476 | wxPyInputStream * _ptr = NULL; | |
6477 | ||
6478 | if (_result) { | |
6479 | _ptr = new wxPyInputStream(_result); | |
6480 | } | |
6481 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); | |
6482 | } | |
6483 | return _resultobj; | |
6484 | } | |
6485 | ||
6486 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
6487 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6488 | PyObject * _resultobj; | |
6489 | wxInputStream * _result; | |
6490 | wxPyProcess * _arg0; | |
6491 | PyObject * _argo0 = 0; | |
6492 | char *_kwnames[] = { "self", NULL }; | |
6493 | ||
6494 | self = self; | |
6495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
6496 | return NULL; | |
6497 | if (_argo0) { | |
6498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
6501 | return NULL; | |
6502 | } | |
6503 | } | |
6504 | { | |
0e2ff151 | 6505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6506 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); |
e6056257 | 6507 | |
0e2ff151 RD |
6508 | wxPyEndAllowThreads(__tstate); |
6509 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6510 | }{ |
6511 | wxPyInputStream * _ptr = NULL; | |
6512 | ||
6513 | if (_result) { | |
6514 | _ptr = new wxPyInputStream(_result); | |
6515 | } | |
6516 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); | |
6517 | } | |
6518 | return _resultobj; | |
6519 | } | |
6520 | ||
6521 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
6522 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6523 | PyObject * _resultobj; | |
6524 | wxOutputStream * _result; | |
6525 | wxPyProcess * _arg0; | |
6526 | PyObject * _argo0 = 0; | |
6527 | char *_kwnames[] = { "self", NULL }; | |
6528 | char _ptemp[128]; | |
6529 | ||
6530 | self = self; | |
6531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
6532 | return NULL; | |
6533 | if (_argo0) { | |
6534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
6537 | return NULL; | |
6538 | } | |
6539 | } | |
6540 | { | |
0e2ff151 | 6541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6542 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); |
e6056257 | 6543 | |
0e2ff151 RD |
6544 | wxPyEndAllowThreads(__tstate); |
6545 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6546 | } if (_result) { |
6547 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
6548 | _resultobj = Py_BuildValue("s",_ptemp); | |
6549 | } else { | |
6550 | Py_INCREF(Py_None); | |
6551 | _resultobj = Py_None; | |
6552 | } | |
6553 | return _resultobj; | |
6554 | } | |
6555 | ||
6556 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
6557 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6558 | PyObject * _resultobj; | |
6559 | wxPyProcess * _arg0; | |
6560 | PyObject * _argo0 = 0; | |
6561 | char *_kwnames[] = { "self", NULL }; | |
6562 | ||
6563 | self = self; | |
6564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
6565 | return NULL; | |
6566 | if (_argo0) { | |
6567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
6570 | return NULL; | |
6571 | } | |
6572 | } | |
6573 | { | |
0e2ff151 | 6574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6575 | wxProcess_CloseOutput(_arg0); |
e6056257 | 6576 | |
0e2ff151 RD |
6577 | wxPyEndAllowThreads(__tstate); |
6578 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6579 | } Py_INCREF(Py_None); |
6580 | _resultobj = Py_None; | |
6581 | return _resultobj; | |
6582 | } | |
6583 | ||
3e1f6ec4 RD |
6584 | #define wxProcess_IsInputOpened(_swigobj) (_swigobj->IsInputOpened()) |
6585 | static PyObject *_wrap_wxProcess_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6586 | PyObject * _resultobj; | |
6587 | bool _result; | |
6588 | wxPyProcess * _arg0; | |
6589 | PyObject * _argo0 = 0; | |
6590 | char *_kwnames[] = { "self", NULL }; | |
6591 | ||
6592 | self = self; | |
6593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsInputOpened",_kwnames,&_argo0)) | |
6594 | return NULL; | |
6595 | if (_argo0) { | |
6596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsInputOpened. Expected _wxPyProcess_p."); | |
6599 | return NULL; | |
6600 | } | |
6601 | } | |
6602 | { | |
6603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6604 | _result = (bool )wxProcess_IsInputOpened(_arg0); | |
6605 | ||
6606 | wxPyEndAllowThreads(__tstate); | |
6607 | if (PyErr_Occurred()) return NULL; | |
6608 | } _resultobj = Py_BuildValue("i",_result); | |
6609 | return _resultobj; | |
6610 | } | |
6611 | ||
6612 | #define wxProcess_IsInputAvailable(_swigobj) (_swigobj->IsInputAvailable()) | |
6613 | static PyObject *_wrap_wxProcess_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6614 | PyObject * _resultobj; | |
6615 | bool _result; | |
6616 | wxPyProcess * _arg0; | |
6617 | PyObject * _argo0 = 0; | |
6618 | char *_kwnames[] = { "self", NULL }; | |
6619 | ||
6620 | self = self; | |
6621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsInputAvailable",_kwnames,&_argo0)) | |
6622 | return NULL; | |
6623 | if (_argo0) { | |
6624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsInputAvailable. Expected _wxPyProcess_p."); | |
6627 | return NULL; | |
6628 | } | |
6629 | } | |
6630 | { | |
6631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6632 | _result = (bool )wxProcess_IsInputAvailable(_arg0); | |
6633 | ||
6634 | wxPyEndAllowThreads(__tstate); | |
6635 | if (PyErr_Occurred()) return NULL; | |
6636 | } _resultobj = Py_BuildValue("i",_result); | |
6637 | return _resultobj; | |
6638 | } | |
6639 | ||
6640 | #define wxProcess_IsErrorAvailable(_swigobj) (_swigobj->IsErrorAvailable()) | |
6641 | static PyObject *_wrap_wxProcess_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6642 | PyObject * _resultobj; | |
6643 | bool _result; | |
6644 | wxPyProcess * _arg0; | |
6645 | PyObject * _argo0 = 0; | |
6646 | char *_kwnames[] = { "self", NULL }; | |
6647 | ||
6648 | self = self; | |
6649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsErrorAvailable",_kwnames,&_argo0)) | |
6650 | return NULL; | |
6651 | if (_argo0) { | |
6652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsErrorAvailable. Expected _wxPyProcess_p."); | |
6655 | return NULL; | |
6656 | } | |
6657 | } | |
6658 | { | |
6659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6660 | _result = (bool )wxProcess_IsErrorAvailable(_arg0); | |
6661 | ||
6662 | wxPyEndAllowThreads(__tstate); | |
6663 | if (PyErr_Occurred()) return NULL; | |
6664 | } _resultobj = Py_BuildValue("i",_result); | |
6665 | return _resultobj; | |
6666 | } | |
6667 | ||
e6056257 RD |
6668 | static void *SwigwxJoystickTowxObject(void *ptr) { |
6669 | wxJoystick *src; | |
6670 | wxObject *dest; | |
6671 | src = (wxJoystick *) ptr; | |
6672 | dest = (wxObject *) src; | |
6673 | return (void *) dest; | |
6674 | } | |
6675 | ||
6676 | #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0)) | |
6677 | static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6678 | PyObject * _resultobj; | |
6679 | wxJoystick * _result; | |
3a37d753 | 6680 | int _arg0 = (int ) (wxJOYSTICK1); |
e6056257 RD |
6681 | char *_kwnames[] = { "joystick", NULL }; |
6682 | char _ptemp[128]; | |
6683 | ||
6684 | self = self; | |
6685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0)) | |
6686 | return NULL; | |
6687 | { | |
0e2ff151 | 6688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6689 | _result = (wxJoystick *)new_wxJoystick(_arg0); |
e6056257 | 6690 | |
0e2ff151 RD |
6691 | wxPyEndAllowThreads(__tstate); |
6692 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6693 | } if (_result) { |
6694 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p"); | |
6695 | _resultobj = Py_BuildValue("s",_ptemp); | |
6696 | } else { | |
6697 | Py_INCREF(Py_None); | |
6698 | _resultobj = Py_None; | |
6699 | } | |
6700 | return _resultobj; | |
6701 | } | |
6702 | ||
6703 | #define delete_wxJoystick(_swigobj) (delete _swigobj) | |
6704 | static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6705 | PyObject * _resultobj; | |
6706 | wxJoystick * _arg0; | |
6707 | PyObject * _argo0 = 0; | |
6708 | char *_kwnames[] = { "self", NULL }; | |
6709 | ||
6710 | self = self; | |
6711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0)) | |
6712 | return NULL; | |
6713 | if (_argo0) { | |
6714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p."); | |
6717 | return NULL; | |
6718 | } | |
6719 | } | |
6720 | { | |
0e2ff151 | 6721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6722 | delete_wxJoystick(_arg0); |
e6056257 | 6723 | |
0e2ff151 RD |
6724 | wxPyEndAllowThreads(__tstate); |
6725 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6726 | } Py_INCREF(Py_None); |
6727 | _resultobj = Py_None; | |
6728 | return _resultobj; | |
6729 | } | |
6730 | ||
6731 | #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
6732 | static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6733 | PyObject * _resultobj; | |
6734 | wxPoint * _result; | |
6735 | wxJoystick * _arg0; | |
6736 | PyObject * _argo0 = 0; | |
6737 | char *_kwnames[] = { "self", NULL }; | |
6738 | char _ptemp[128]; | |
6739 | ||
6740 | self = self; | |
6741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0)) | |
6742 | return NULL; | |
6743 | if (_argo0) { | |
6744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p."); | |
6747 | return NULL; | |
6748 | } | |
6749 | } | |
6750 | { | |
0e2ff151 | 6751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6752 | _result = new wxPoint (wxJoystick_GetPosition(_arg0)); |
e6056257 | 6753 | |
0e2ff151 RD |
6754 | wxPyEndAllowThreads(__tstate); |
6755 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6756 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
6757 | _resultobj = Py_BuildValue("s",_ptemp); | |
6758 | return _resultobj; | |
6759 | } | |
6760 | ||
6761 | #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition()) | |
6762 | static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6763 | PyObject * _resultobj; | |
6764 | int _result; | |
6765 | wxJoystick * _arg0; | |
6766 | PyObject * _argo0 = 0; | |
6767 | char *_kwnames[] = { "self", NULL }; | |
6768 | ||
6769 | self = self; | |
6770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0)) | |
6771 | return NULL; | |
6772 | if (_argo0) { | |
6773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p."); | |
6776 | return NULL; | |
6777 | } | |
6778 | } | |
6779 | { | |
0e2ff151 | 6780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6781 | _result = (int )wxJoystick_GetZPosition(_arg0); |
e6056257 | 6782 | |
0e2ff151 RD |
6783 | wxPyEndAllowThreads(__tstate); |
6784 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6785 | } _resultobj = Py_BuildValue("i",_result); |
6786 | return _resultobj; | |
6787 | } | |
6788 | ||
6789 | #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState()) | |
6790 | static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6791 | PyObject * _resultobj; | |
6792 | int _result; | |
6793 | wxJoystick * _arg0; | |
6794 | PyObject * _argo0 = 0; | |
6795 | char *_kwnames[] = { "self", NULL }; | |
6796 | ||
6797 | self = self; | |
6798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0)) | |
6799 | return NULL; | |
6800 | if (_argo0) { | |
6801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p."); | |
6804 | return NULL; | |
6805 | } | |
6806 | } | |
6807 | { | |
0e2ff151 | 6808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6809 | _result = (int )wxJoystick_GetButtonState(_arg0); |
e6056257 | 6810 | |
0e2ff151 RD |
6811 | wxPyEndAllowThreads(__tstate); |
6812 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6813 | } _resultobj = Py_BuildValue("i",_result); |
6814 | return _resultobj; | |
6815 | } | |
6816 | ||
6817 | #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition()) | |
6818 | static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6819 | PyObject * _resultobj; | |
6820 | int _result; | |
6821 | wxJoystick * _arg0; | |
6822 | PyObject * _argo0 = 0; | |
6823 | char *_kwnames[] = { "self", NULL }; | |
6824 | ||
6825 | self = self; | |
6826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0)) | |
6827 | return NULL; | |
6828 | if (_argo0) { | |
6829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p."); | |
6832 | return NULL; | |
6833 | } | |
6834 | } | |
6835 | { | |
0e2ff151 | 6836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6837 | _result = (int )wxJoystick_GetPOVPosition(_arg0); |
e6056257 | 6838 | |
0e2ff151 RD |
6839 | wxPyEndAllowThreads(__tstate); |
6840 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6841 | } _resultobj = Py_BuildValue("i",_result); |
6842 | return _resultobj; | |
6843 | } | |
6844 | ||
6845 | #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition()) | |
6846 | static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6847 | PyObject * _resultobj; | |
6848 | int _result; | |
6849 | wxJoystick * _arg0; | |
6850 | PyObject * _argo0 = 0; | |
6851 | char *_kwnames[] = { "self", NULL }; | |
6852 | ||
6853 | self = self; | |
6854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0)) | |
6855 | return NULL; | |
6856 | if (_argo0) { | |
6857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p."); | |
6860 | return NULL; | |
6861 | } | |
6862 | } | |
6863 | { | |
0e2ff151 | 6864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6865 | _result = (int )wxJoystick_GetPOVCTSPosition(_arg0); |
e6056257 | 6866 | |
0e2ff151 RD |
6867 | wxPyEndAllowThreads(__tstate); |
6868 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6869 | } _resultobj = Py_BuildValue("i",_result); |
6870 | return _resultobj; | |
6871 | } | |
6872 | ||
6873 | #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition()) | |
6874 | static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6875 | PyObject * _resultobj; | |
6876 | int _result; | |
6877 | wxJoystick * _arg0; | |
6878 | PyObject * _argo0 = 0; | |
6879 | char *_kwnames[] = { "self", NULL }; | |
6880 | ||
6881 | self = self; | |
6882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0)) | |
6883 | return NULL; | |
6884 | if (_argo0) { | |
6885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p."); | |
6888 | return NULL; | |
6889 | } | |
6890 | } | |
6891 | { | |
0e2ff151 | 6892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6893 | _result = (int )wxJoystick_GetRudderPosition(_arg0); |
e6056257 | 6894 | |
0e2ff151 RD |
6895 | wxPyEndAllowThreads(__tstate); |
6896 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6897 | } _resultobj = Py_BuildValue("i",_result); |
6898 | return _resultobj; | |
6899 | } | |
6900 | ||
6901 | #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition()) | |
6902 | static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6903 | PyObject * _resultobj; | |
6904 | int _result; | |
6905 | wxJoystick * _arg0; | |
6906 | PyObject * _argo0 = 0; | |
6907 | char *_kwnames[] = { "self", NULL }; | |
6908 | ||
6909 | self = self; | |
6910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0)) | |
6911 | return NULL; | |
6912 | if (_argo0) { | |
6913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p."); | |
6916 | return NULL; | |
6917 | } | |
6918 | } | |
6919 | { | |
0e2ff151 | 6920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6921 | _result = (int )wxJoystick_GetUPosition(_arg0); |
e6056257 | 6922 | |
0e2ff151 RD |
6923 | wxPyEndAllowThreads(__tstate); |
6924 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6925 | } _resultobj = Py_BuildValue("i",_result); |
6926 | return _resultobj; | |
6927 | } | |
6928 | ||
6929 | #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition()) | |
6930 | static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6931 | PyObject * _resultobj; | |
6932 | int _result; | |
6933 | wxJoystick * _arg0; | |
6934 | PyObject * _argo0 = 0; | |
6935 | char *_kwnames[] = { "self", NULL }; | |
6936 | ||
6937 | self = self; | |
6938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0)) | |
6939 | return NULL; | |
6940 | if (_argo0) { | |
6941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p."); | |
6944 | return NULL; | |
6945 | } | |
6946 | } | |
6947 | { | |
0e2ff151 | 6948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6949 | _result = (int )wxJoystick_GetVPosition(_arg0); |
e6056257 | 6950 | |
0e2ff151 RD |
6951 | wxPyEndAllowThreads(__tstate); |
6952 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6953 | } _resultobj = Py_BuildValue("i",_result); |
6954 | return _resultobj; | |
6955 | } | |
6956 | ||
6957 | #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold()) | |
6958 | static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6959 | PyObject * _resultobj; | |
6960 | int _result; | |
6961 | wxJoystick * _arg0; | |
6962 | PyObject * _argo0 = 0; | |
6963 | char *_kwnames[] = { "self", NULL }; | |
6964 | ||
6965 | self = self; | |
6966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0)) | |
6967 | return NULL; | |
6968 | if (_argo0) { | |
6969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p."); | |
6972 | return NULL; | |
6973 | } | |
6974 | } | |
6975 | { | |
0e2ff151 | 6976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6977 | _result = (int )wxJoystick_GetMovementThreshold(_arg0); |
e6056257 | 6978 | |
0e2ff151 RD |
6979 | wxPyEndAllowThreads(__tstate); |
6980 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
6981 | } _resultobj = Py_BuildValue("i",_result); |
6982 | return _resultobj; | |
6983 | } | |
6984 | ||
6985 | #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0)) | |
6986 | static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6987 | PyObject * _resultobj; | |
6988 | wxJoystick * _arg0; | |
6989 | int _arg1; | |
6990 | PyObject * _argo0 = 0; | |
6991 | char *_kwnames[] = { "self","threshold", NULL }; | |
6992 | ||
6993 | self = self; | |
6994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1)) | |
6995 | return NULL; | |
6996 | if (_argo0) { | |
6997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p."); | |
7000 | return NULL; | |
7001 | } | |
7002 | } | |
7003 | { | |
0e2ff151 | 7004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7005 | wxJoystick_SetMovementThreshold(_arg0,_arg1); |
e6056257 | 7006 | |
0e2ff151 RD |
7007 | wxPyEndAllowThreads(__tstate); |
7008 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7009 | } Py_INCREF(Py_None); |
7010 | _resultobj = Py_None; | |
7011 | return _resultobj; | |
7012 | } | |
7013 | ||
7014 | #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk()) | |
7015 | static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7016 | PyObject * _resultobj; | |
7017 | bool _result; | |
7018 | wxJoystick * _arg0; | |
7019 | PyObject * _argo0 = 0; | |
7020 | char *_kwnames[] = { "self", NULL }; | |
7021 | ||
7022 | self = self; | |
7023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0)) | |
7024 | return NULL; | |
7025 | if (_argo0) { | |
7026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p."); | |
7029 | return NULL; | |
7030 | } | |
7031 | } | |
7032 | { | |
0e2ff151 | 7033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7034 | _result = (bool )wxJoystick_IsOk(_arg0); |
e6056257 | 7035 | |
0e2ff151 RD |
7036 | wxPyEndAllowThreads(__tstate); |
7037 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7038 | } _resultobj = Py_BuildValue("i",_result); |
7039 | return _resultobj; | |
7040 | } | |
7041 | ||
7042 | #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks()) | |
7043 | static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7044 | PyObject * _resultobj; | |
7045 | int _result; | |
7046 | wxJoystick * _arg0; | |
7047 | PyObject * _argo0 = 0; | |
7048 | char *_kwnames[] = { "self", NULL }; | |
7049 | ||
7050 | self = self; | |
7051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0)) | |
7052 | return NULL; | |
7053 | if (_argo0) { | |
7054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p."); | |
7057 | return NULL; | |
7058 | } | |
7059 | } | |
7060 | { | |
0e2ff151 | 7061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7062 | _result = (int )wxJoystick_GetNumberJoysticks(_arg0); |
e6056257 | 7063 | |
0e2ff151 RD |
7064 | wxPyEndAllowThreads(__tstate); |
7065 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7066 | } _resultobj = Py_BuildValue("i",_result); |
7067 | return _resultobj; | |
7068 | } | |
7069 | ||
7070 | #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId()) | |
7071 | static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7072 | PyObject * _resultobj; | |
7073 | int _result; | |
7074 | wxJoystick * _arg0; | |
7075 | PyObject * _argo0 = 0; | |
7076 | char *_kwnames[] = { "self", NULL }; | |
7077 | ||
7078 | self = self; | |
7079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0)) | |
7080 | return NULL; | |
7081 | if (_argo0) { | |
7082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p."); | |
7085 | return NULL; | |
7086 | } | |
7087 | } | |
7088 | { | |
0e2ff151 | 7089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7090 | _result = (int )wxJoystick_GetManufacturerId(_arg0); |
e6056257 | 7091 | |
0e2ff151 RD |
7092 | wxPyEndAllowThreads(__tstate); |
7093 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7094 | } _resultobj = Py_BuildValue("i",_result); |
7095 | return _resultobj; | |
7096 | } | |
7097 | ||
7098 | #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId()) | |
7099 | static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7100 | PyObject * _resultobj; | |
7101 | int _result; | |
7102 | wxJoystick * _arg0; | |
7103 | PyObject * _argo0 = 0; | |
7104 | char *_kwnames[] = { "self", NULL }; | |
7105 | ||
7106 | self = self; | |
7107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0)) | |
7108 | return NULL; | |
7109 | if (_argo0) { | |
7110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p."); | |
7113 | return NULL; | |
7114 | } | |
7115 | } | |
7116 | { | |
0e2ff151 | 7117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7118 | _result = (int )wxJoystick_GetProductId(_arg0); |
e6056257 | 7119 | |
0e2ff151 RD |
7120 | wxPyEndAllowThreads(__tstate); |
7121 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7122 | } _resultobj = Py_BuildValue("i",_result); |
7123 | return _resultobj; | |
7124 | } | |
7125 | ||
7126 | #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName()) | |
7127 | static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7128 | PyObject * _resultobj; | |
7129 | wxString * _result; | |
7130 | wxJoystick * _arg0; | |
7131 | PyObject * _argo0 = 0; | |
7132 | char *_kwnames[] = { "self", NULL }; | |
7133 | ||
7134 | self = self; | |
7135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0)) | |
7136 | return NULL; | |
7137 | if (_argo0) { | |
7138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p."); | |
7141 | return NULL; | |
7142 | } | |
7143 | } | |
7144 | { | |
0e2ff151 | 7145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7146 | _result = new wxString (wxJoystick_GetProductName(_arg0)); |
e6056257 | 7147 | |
0e2ff151 RD |
7148 | wxPyEndAllowThreads(__tstate); |
7149 | if (PyErr_Occurred()) return NULL; | |
e6056257 | 7150 | }{ |
6824d4f9 RD |
7151 | #if wxUSE_UNICODE |
7152 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7153 | #else | |
e6056257 | 7154 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 7155 | #endif |
e6056257 RD |
7156 | } |
7157 | { | |
7158 | delete _result; | |
7159 | } | |
7160 | return _resultobj; | |
7161 | } | |
7162 | ||
7163 | #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin()) | |
7164 | static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7165 | PyObject * _resultobj; | |
7166 | int _result; | |
7167 | wxJoystick * _arg0; | |
7168 | PyObject * _argo0 = 0; | |
7169 | char *_kwnames[] = { "self", NULL }; | |
7170 | ||
7171 | self = self; | |
7172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0)) | |
7173 | return NULL; | |
7174 | if (_argo0) { | |
7175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p."); | |
7178 | return NULL; | |
7179 | } | |
7180 | } | |
7181 | { | |
0e2ff151 | 7182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7183 | _result = (int )wxJoystick_GetXMin(_arg0); |
e6056257 | 7184 | |
0e2ff151 RD |
7185 | wxPyEndAllowThreads(__tstate); |
7186 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7187 | } _resultobj = Py_BuildValue("i",_result); |
7188 | return _resultobj; | |
7189 | } | |
7190 | ||
7191 | #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin()) | |
7192 | static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7193 | PyObject * _resultobj; | |
7194 | int _result; | |
7195 | wxJoystick * _arg0; | |
7196 | PyObject * _argo0 = 0; | |
7197 | char *_kwnames[] = { "self", NULL }; | |
7198 | ||
7199 | self = self; | |
7200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0)) | |
7201 | return NULL; | |
7202 | if (_argo0) { | |
7203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p."); | |
7206 | return NULL; | |
7207 | } | |
7208 | } | |
7209 | { | |
0e2ff151 | 7210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7211 | _result = (int )wxJoystick_GetYMin(_arg0); |
e6056257 | 7212 | |
0e2ff151 RD |
7213 | wxPyEndAllowThreads(__tstate); |
7214 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7215 | } _resultobj = Py_BuildValue("i",_result); |
7216 | return _resultobj; | |
7217 | } | |
7218 | ||
7219 | #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin()) | |
7220 | static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7221 | PyObject * _resultobj; | |
7222 | int _result; | |
7223 | wxJoystick * _arg0; | |
7224 | PyObject * _argo0 = 0; | |
7225 | char *_kwnames[] = { "self", NULL }; | |
7226 | ||
7227 | self = self; | |
7228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0)) | |
7229 | return NULL; | |
7230 | if (_argo0) { | |
7231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p."); | |
7234 | return NULL; | |
7235 | } | |
7236 | } | |
7237 | { | |
0e2ff151 | 7238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7239 | _result = (int )wxJoystick_GetZMin(_arg0); |
e6056257 | 7240 | |
0e2ff151 RD |
7241 | wxPyEndAllowThreads(__tstate); |
7242 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7243 | } _resultobj = Py_BuildValue("i",_result); |
7244 | return _resultobj; | |
7245 | } | |
7246 | ||
7247 | #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax()) | |
7248 | static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7249 | PyObject * _resultobj; | |
7250 | int _result; | |
7251 | wxJoystick * _arg0; | |
7252 | PyObject * _argo0 = 0; | |
7253 | char *_kwnames[] = { "self", NULL }; | |
7254 | ||
7255 | self = self; | |
7256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0)) | |
7257 | return NULL; | |
7258 | if (_argo0) { | |
7259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p."); | |
7262 | return NULL; | |
7263 | } | |
7264 | } | |
7265 | { | |
0e2ff151 | 7266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7267 | _result = (int )wxJoystick_GetXMax(_arg0); |
e6056257 | 7268 | |
0e2ff151 RD |
7269 | wxPyEndAllowThreads(__tstate); |
7270 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7271 | } _resultobj = Py_BuildValue("i",_result); |
7272 | return _resultobj; | |
7273 | } | |
7274 | ||
7275 | #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax()) | |
7276 | static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7277 | PyObject * _resultobj; | |
7278 | int _result; | |
7279 | wxJoystick * _arg0; | |
7280 | PyObject * _argo0 = 0; | |
7281 | char *_kwnames[] = { "self", NULL }; | |
7282 | ||
7283 | self = self; | |
7284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0)) | |
7285 | return NULL; | |
7286 | if (_argo0) { | |
7287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p."); | |
7290 | return NULL; | |
7291 | } | |
7292 | } | |
7293 | { | |
0e2ff151 | 7294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7295 | _result = (int )wxJoystick_GetYMax(_arg0); |
e6056257 | 7296 | |
0e2ff151 RD |
7297 | wxPyEndAllowThreads(__tstate); |
7298 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7299 | } _resultobj = Py_BuildValue("i",_result); |
7300 | return _resultobj; | |
7301 | } | |
7302 | ||
7303 | #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax()) | |
7304 | static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7305 | PyObject * _resultobj; | |
7306 | int _result; | |
7307 | wxJoystick * _arg0; | |
7308 | PyObject * _argo0 = 0; | |
7309 | char *_kwnames[] = { "self", NULL }; | |
7310 | ||
7311 | self = self; | |
7312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0)) | |
7313 | return NULL; | |
7314 | if (_argo0) { | |
7315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p."); | |
7318 | return NULL; | |
7319 | } | |
7320 | } | |
7321 | { | |
0e2ff151 | 7322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7323 | _result = (int )wxJoystick_GetZMax(_arg0); |
e6056257 | 7324 | |
0e2ff151 RD |
7325 | wxPyEndAllowThreads(__tstate); |
7326 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7327 | } _resultobj = Py_BuildValue("i",_result); |
7328 | return _resultobj; | |
7329 | } | |
7330 | ||
7331 | #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons()) | |
7332 | static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7333 | PyObject * _resultobj; | |
7334 | int _result; | |
7335 | wxJoystick * _arg0; | |
7336 | PyObject * _argo0 = 0; | |
7337 | char *_kwnames[] = { "self", NULL }; | |
7338 | ||
7339 | self = self; | |
7340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0)) | |
7341 | return NULL; | |
7342 | if (_argo0) { | |
7343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p."); | |
7346 | return NULL; | |
7347 | } | |
7348 | } | |
7349 | { | |
0e2ff151 | 7350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7351 | _result = (int )wxJoystick_GetNumberButtons(_arg0); |
e6056257 | 7352 | |
0e2ff151 RD |
7353 | wxPyEndAllowThreads(__tstate); |
7354 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7355 | } _resultobj = Py_BuildValue("i",_result); |
7356 | return _resultobj; | |
7357 | } | |
7358 | ||
7359 | #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes()) | |
7360 | static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7361 | PyObject * _resultobj; | |
7362 | int _result; | |
7363 | wxJoystick * _arg0; | |
7364 | PyObject * _argo0 = 0; | |
7365 | char *_kwnames[] = { "self", NULL }; | |
7366 | ||
7367 | self = self; | |
7368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0)) | |
7369 | return NULL; | |
7370 | if (_argo0) { | |
7371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p."); | |
7374 | return NULL; | |
7375 | } | |
7376 | } | |
7377 | { | |
0e2ff151 | 7378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7379 | _result = (int )wxJoystick_GetNumberAxes(_arg0); |
e6056257 | 7380 | |
0e2ff151 RD |
7381 | wxPyEndAllowThreads(__tstate); |
7382 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7383 | } _resultobj = Py_BuildValue("i",_result); |
7384 | return _resultobj; | |
7385 | } | |
7386 | ||
7387 | #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons()) | |
7388 | static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7389 | PyObject * _resultobj; | |
7390 | int _result; | |
7391 | wxJoystick * _arg0; | |
7392 | PyObject * _argo0 = 0; | |
7393 | char *_kwnames[] = { "self", NULL }; | |
7394 | ||
7395 | self = self; | |
7396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0)) | |
7397 | return NULL; | |
7398 | if (_argo0) { | |
7399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p."); | |
7402 | return NULL; | |
7403 | } | |
7404 | } | |
7405 | { | |
0e2ff151 | 7406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7407 | _result = (int )wxJoystick_GetMaxButtons(_arg0); |
e6056257 | 7408 | |
0e2ff151 RD |
7409 | wxPyEndAllowThreads(__tstate); |
7410 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7411 | } _resultobj = Py_BuildValue("i",_result); |
7412 | return _resultobj; | |
7413 | } | |
7414 | ||
7415 | #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes()) | |
7416 | static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7417 | PyObject * _resultobj; | |
7418 | int _result; | |
7419 | wxJoystick * _arg0; | |
7420 | PyObject * _argo0 = 0; | |
7421 | char *_kwnames[] = { "self", NULL }; | |
7422 | ||
7423 | self = self; | |
7424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0)) | |
7425 | return NULL; | |
7426 | if (_argo0) { | |
7427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p."); | |
7430 | return NULL; | |
7431 | } | |
7432 | } | |
7433 | { | |
0e2ff151 | 7434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7435 | _result = (int )wxJoystick_GetMaxAxes(_arg0); |
e6056257 | 7436 | |
0e2ff151 RD |
7437 | wxPyEndAllowThreads(__tstate); |
7438 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7439 | } _resultobj = Py_BuildValue("i",_result); |
7440 | return _resultobj; | |
7441 | } | |
7442 | ||
7443 | #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin()) | |
7444 | static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7445 | PyObject * _resultobj; | |
7446 | int _result; | |
7447 | wxJoystick * _arg0; | |
7448 | PyObject * _argo0 = 0; | |
7449 | char *_kwnames[] = { "self", NULL }; | |
7450 | ||
7451 | self = self; | |
7452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0)) | |
7453 | return NULL; | |
7454 | if (_argo0) { | |
7455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p."); | |
7458 | return NULL; | |
7459 | } | |
7460 | } | |
7461 | { | |
0e2ff151 | 7462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7463 | _result = (int )wxJoystick_GetPollingMin(_arg0); |
e6056257 | 7464 | |
0e2ff151 RD |
7465 | wxPyEndAllowThreads(__tstate); |
7466 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7467 | } _resultobj = Py_BuildValue("i",_result); |
7468 | return _resultobj; | |
7469 | } | |
7470 | ||
7471 | #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax()) | |
7472 | static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7473 | PyObject * _resultobj; | |
7474 | int _result; | |
7475 | wxJoystick * _arg0; | |
7476 | PyObject * _argo0 = 0; | |
7477 | char *_kwnames[] = { "self", NULL }; | |
7478 | ||
7479 | self = self; | |
7480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0)) | |
7481 | return NULL; | |
7482 | if (_argo0) { | |
7483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p."); | |
7486 | return NULL; | |
7487 | } | |
7488 | } | |
7489 | { | |
0e2ff151 | 7490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7491 | _result = (int )wxJoystick_GetPollingMax(_arg0); |
e6056257 | 7492 | |
0e2ff151 RD |
7493 | wxPyEndAllowThreads(__tstate); |
7494 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7495 | } _resultobj = Py_BuildValue("i",_result); |
7496 | return _resultobj; | |
7497 | } | |
7498 | ||
7499 | #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin()) | |
7500 | static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7501 | PyObject * _resultobj; | |
7502 | int _result; | |
7503 | wxJoystick * _arg0; | |
7504 | PyObject * _argo0 = 0; | |
7505 | char *_kwnames[] = { "self", NULL }; | |
7506 | ||
7507 | self = self; | |
7508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0)) | |
7509 | return NULL; | |
7510 | if (_argo0) { | |
7511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p."); | |
7514 | return NULL; | |
7515 | } | |
7516 | } | |
7517 | { | |
0e2ff151 | 7518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7519 | _result = (int )wxJoystick_GetRudderMin(_arg0); |
e6056257 | 7520 | |
0e2ff151 RD |
7521 | wxPyEndAllowThreads(__tstate); |
7522 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7523 | } _resultobj = Py_BuildValue("i",_result); |
7524 | return _resultobj; | |
7525 | } | |
7526 | ||
7527 | #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax()) | |
7528 | static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7529 | PyObject * _resultobj; | |
7530 | int _result; | |
7531 | wxJoystick * _arg0; | |
7532 | PyObject * _argo0 = 0; | |
7533 | char *_kwnames[] = { "self", NULL }; | |
7534 | ||
7535 | self = self; | |
7536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0)) | |
7537 | return NULL; | |
7538 | if (_argo0) { | |
7539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p."); | |
7542 | return NULL; | |
7543 | } | |
7544 | } | |
7545 | { | |
0e2ff151 | 7546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7547 | _result = (int )wxJoystick_GetRudderMax(_arg0); |
e6056257 | 7548 | |
0e2ff151 RD |
7549 | wxPyEndAllowThreads(__tstate); |
7550 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7551 | } _resultobj = Py_BuildValue("i",_result); |
7552 | return _resultobj; | |
7553 | } | |
7554 | ||
7555 | #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin()) | |
7556 | static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7557 | PyObject * _resultobj; | |
7558 | int _result; | |
7559 | wxJoystick * _arg0; | |
7560 | PyObject * _argo0 = 0; | |
7561 | char *_kwnames[] = { "self", NULL }; | |
7562 | ||
7563 | self = self; | |
7564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0)) | |
7565 | return NULL; | |
7566 | if (_argo0) { | |
7567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p."); | |
7570 | return NULL; | |
7571 | } | |
7572 | } | |
7573 | { | |
0e2ff151 | 7574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7575 | _result = (int )wxJoystick_GetUMin(_arg0); |
e6056257 | 7576 | |
0e2ff151 RD |
7577 | wxPyEndAllowThreads(__tstate); |
7578 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7579 | } _resultobj = Py_BuildValue("i",_result); |
7580 | return _resultobj; | |
7581 | } | |
7582 | ||
7583 | #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax()) | |
7584 | static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7585 | PyObject * _resultobj; | |
7586 | int _result; | |
7587 | wxJoystick * _arg0; | |
7588 | PyObject * _argo0 = 0; | |
7589 | char *_kwnames[] = { "self", NULL }; | |
7590 | ||
7591 | self = self; | |
7592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0)) | |
7593 | return NULL; | |
7594 | if (_argo0) { | |
7595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p."); | |
7598 | return NULL; | |
7599 | } | |
7600 | } | |
7601 | { | |
0e2ff151 | 7602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7603 | _result = (int )wxJoystick_GetUMax(_arg0); |
e6056257 | 7604 | |
0e2ff151 RD |
7605 | wxPyEndAllowThreads(__tstate); |
7606 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7607 | } _resultobj = Py_BuildValue("i",_result); |
7608 | return _resultobj; | |
7609 | } | |
7610 | ||
7611 | #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin()) | |
7612 | static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7613 | PyObject * _resultobj; | |
7614 | int _result; | |
7615 | wxJoystick * _arg0; | |
7616 | PyObject * _argo0 = 0; | |
7617 | char *_kwnames[] = { "self", NULL }; | |
7618 | ||
7619 | self = self; | |
7620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0)) | |
7621 | return NULL; | |
7622 | if (_argo0) { | |
7623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p."); | |
7626 | return NULL; | |
7627 | } | |
7628 | } | |
7629 | { | |
0e2ff151 | 7630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7631 | _result = (int )wxJoystick_GetVMin(_arg0); |
e6056257 | 7632 | |
0e2ff151 RD |
7633 | wxPyEndAllowThreads(__tstate); |
7634 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7635 | } _resultobj = Py_BuildValue("i",_result); |
7636 | return _resultobj; | |
7637 | } | |
7638 | ||
7639 | #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax()) | |
7640 | static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7641 | PyObject * _resultobj; | |
7642 | int _result; | |
7643 | wxJoystick * _arg0; | |
7644 | PyObject * _argo0 = 0; | |
7645 | char *_kwnames[] = { "self", NULL }; | |
7646 | ||
7647 | self = self; | |
7648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0)) | |
7649 | return NULL; | |
7650 | if (_argo0) { | |
7651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p."); | |
7654 | return NULL; | |
7655 | } | |
7656 | } | |
7657 | { | |
0e2ff151 | 7658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7659 | _result = (int )wxJoystick_GetVMax(_arg0); |
e6056257 | 7660 | |
0e2ff151 RD |
7661 | wxPyEndAllowThreads(__tstate); |
7662 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7663 | } _resultobj = Py_BuildValue("i",_result); |
7664 | return _resultobj; | |
7665 | } | |
7666 | ||
7667 | #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder()) | |
7668 | static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7669 | PyObject * _resultobj; | |
7670 | bool _result; | |
7671 | wxJoystick * _arg0; | |
7672 | PyObject * _argo0 = 0; | |
7673 | char *_kwnames[] = { "self", NULL }; | |
7674 | ||
7675 | self = self; | |
7676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0)) | |
7677 | return NULL; | |
7678 | if (_argo0) { | |
7679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p."); | |
7682 | return NULL; | |
7683 | } | |
7684 | } | |
7685 | { | |
0e2ff151 | 7686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7687 | _result = (bool )wxJoystick_HasRudder(_arg0); |
e6056257 | 7688 | |
0e2ff151 RD |
7689 | wxPyEndAllowThreads(__tstate); |
7690 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7691 | } _resultobj = Py_BuildValue("i",_result); |
7692 | return _resultobj; | |
7693 | } | |
7694 | ||
7695 | #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ()) | |
7696 | static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7697 | PyObject * _resultobj; | |
7698 | bool _result; | |
7699 | wxJoystick * _arg0; | |
7700 | PyObject * _argo0 = 0; | |
7701 | char *_kwnames[] = { "self", NULL }; | |
7702 | ||
7703 | self = self; | |
7704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0)) | |
7705 | return NULL; | |
7706 | if (_argo0) { | |
7707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p."); | |
7710 | return NULL; | |
7711 | } | |
7712 | } | |
7713 | { | |
0e2ff151 | 7714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7715 | _result = (bool )wxJoystick_HasZ(_arg0); |
e6056257 | 7716 | |
0e2ff151 RD |
7717 | wxPyEndAllowThreads(__tstate); |
7718 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7719 | } _resultobj = Py_BuildValue("i",_result); |
7720 | return _resultobj; | |
7721 | } | |
7722 | ||
7723 | #define wxJoystick_HasU(_swigobj) (_swigobj->HasU()) | |
7724 | static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7725 | PyObject * _resultobj; | |
7726 | bool _result; | |
7727 | wxJoystick * _arg0; | |
7728 | PyObject * _argo0 = 0; | |
7729 | char *_kwnames[] = { "self", NULL }; | |
7730 | ||
7731 | self = self; | |
7732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0)) | |
7733 | return NULL; | |
7734 | if (_argo0) { | |
7735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p."); | |
7738 | return NULL; | |
7739 | } | |
7740 | } | |
7741 | { | |
0e2ff151 | 7742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7743 | _result = (bool )wxJoystick_HasU(_arg0); |
e6056257 | 7744 | |
0e2ff151 RD |
7745 | wxPyEndAllowThreads(__tstate); |
7746 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7747 | } _resultobj = Py_BuildValue("i",_result); |
7748 | return _resultobj; | |
7749 | } | |
7750 | ||
7751 | #define wxJoystick_HasV(_swigobj) (_swigobj->HasV()) | |
7752 | static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7753 | PyObject * _resultobj; | |
7754 | bool _result; | |
7755 | wxJoystick * _arg0; | |
7756 | PyObject * _argo0 = 0; | |
7757 | char *_kwnames[] = { "self", NULL }; | |
7758 | ||
7759 | self = self; | |
7760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0)) | |
7761 | return NULL; | |
7762 | if (_argo0) { | |
7763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p."); | |
7766 | return NULL; | |
7767 | } | |
7768 | } | |
7769 | { | |
0e2ff151 | 7770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7771 | _result = (bool )wxJoystick_HasV(_arg0); |
e6056257 | 7772 | |
0e2ff151 RD |
7773 | wxPyEndAllowThreads(__tstate); |
7774 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7775 | } _resultobj = Py_BuildValue("i",_result); |
7776 | return _resultobj; | |
7777 | } | |
7778 | ||
7779 | #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV()) | |
7780 | static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7781 | PyObject * _resultobj; | |
7782 | bool _result; | |
7783 | wxJoystick * _arg0; | |
7784 | PyObject * _argo0 = 0; | |
7785 | char *_kwnames[] = { "self", NULL }; | |
7786 | ||
7787 | self = self; | |
7788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0)) | |
7789 | return NULL; | |
7790 | if (_argo0) { | |
7791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p."); | |
7794 | return NULL; | |
7795 | } | |
7796 | } | |
7797 | { | |
0e2ff151 | 7798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7799 | _result = (bool )wxJoystick_HasPOV(_arg0); |
e6056257 | 7800 | |
0e2ff151 RD |
7801 | wxPyEndAllowThreads(__tstate); |
7802 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7803 | } _resultobj = Py_BuildValue("i",_result); |
7804 | return _resultobj; | |
7805 | } | |
7806 | ||
7807 | #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir()) | |
7808 | static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7809 | PyObject * _resultobj; | |
7810 | bool _result; | |
7811 | wxJoystick * _arg0; | |
7812 | PyObject * _argo0 = 0; | |
7813 | char *_kwnames[] = { "self", NULL }; | |
7814 | ||
7815 | self = self; | |
7816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0)) | |
7817 | return NULL; | |
7818 | if (_argo0) { | |
7819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p."); | |
7822 | return NULL; | |
7823 | } | |
7824 | } | |
7825 | { | |
0e2ff151 | 7826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7827 | _result = (bool )wxJoystick_HasPOV4Dir(_arg0); |
e6056257 | 7828 | |
0e2ff151 RD |
7829 | wxPyEndAllowThreads(__tstate); |
7830 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7831 | } _resultobj = Py_BuildValue("i",_result); |
7832 | return _resultobj; | |
7833 | } | |
7834 | ||
7835 | #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS()) | |
7836 | static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7837 | PyObject * _resultobj; | |
7838 | bool _result; | |
7839 | wxJoystick * _arg0; | |
7840 | PyObject * _argo0 = 0; | |
7841 | char *_kwnames[] = { "self", NULL }; | |
7842 | ||
7843 | self = self; | |
7844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0)) | |
7845 | return NULL; | |
7846 | if (_argo0) { | |
7847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p."); | |
7850 | return NULL; | |
7851 | } | |
7852 | } | |
7853 | { | |
0e2ff151 | 7854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7855 | _result = (bool )wxJoystick_HasPOVCTS(_arg0); |
e6056257 | 7856 | |
0e2ff151 RD |
7857 | wxPyEndAllowThreads(__tstate); |
7858 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7859 | } _resultobj = Py_BuildValue("i",_result); |
7860 | return _resultobj; | |
7861 | } | |
7862 | ||
7863 | #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1)) | |
7864 | static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7865 | PyObject * _resultobj; | |
7866 | bool _result; | |
7867 | wxJoystick * _arg0; | |
7868 | wxWindow * _arg1; | |
7869 | int _arg2 = (int ) 0; | |
7870 | PyObject * _argo0 = 0; | |
7871 | PyObject * _argo1 = 0; | |
7872 | char *_kwnames[] = { "self","win","pollingFreq", NULL }; | |
7873 | ||
7874 | self = self; | |
7875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7876 | return NULL; | |
7877 | if (_argo0) { | |
7878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p."); | |
7881 | return NULL; | |
7882 | } | |
7883 | } | |
7884 | if (_argo1) { | |
7885 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7886 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p."); | |
7888 | return NULL; | |
7889 | } | |
7890 | } | |
7891 | { | |
0e2ff151 | 7892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7893 | _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2); |
e6056257 | 7894 | |
0e2ff151 RD |
7895 | wxPyEndAllowThreads(__tstate); |
7896 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7897 | } _resultobj = Py_BuildValue("i",_result); |
7898 | return _resultobj; | |
7899 | } | |
7900 | ||
7901 | #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture()) | |
7902 | static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7903 | PyObject * _resultobj; | |
7904 | bool _result; | |
7905 | wxJoystick * _arg0; | |
7906 | PyObject * _argo0 = 0; | |
7907 | char *_kwnames[] = { "self", NULL }; | |
7908 | ||
7909 | self = self; | |
7910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0)) | |
7911 | return NULL; | |
7912 | if (_argo0) { | |
7913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p."); | |
7916 | return NULL; | |
7917 | } | |
7918 | } | |
7919 | { | |
0e2ff151 | 7920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7921 | _result = (bool )wxJoystick_ReleaseCapture(_arg0); |
e6056257 | 7922 | |
0e2ff151 RD |
7923 | wxPyEndAllowThreads(__tstate); |
7924 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7925 | } _resultobj = Py_BuildValue("i",_result); |
7926 | return _resultobj; | |
7927 | } | |
7928 | ||
7929 | static void *SwigwxWaveTowxObject(void *ptr) { | |
7930 | wxWave *src; | |
7931 | wxObject *dest; | |
7932 | src = (wxWave *) ptr; | |
7933 | dest = (wxObject *) src; | |
7934 | return (void *) dest; | |
7935 | } | |
7936 | ||
7937 | #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1)) | |
7938 | static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7939 | PyObject * _resultobj; | |
7940 | wxWave * _result; | |
7941 | wxString * _arg0; | |
7942 | bool _arg1 = (bool ) FALSE; | |
7943 | PyObject * _obj0 = 0; | |
7944 | int tempbool1 = (int) FALSE; | |
7945 | char *_kwnames[] = { "fileName","isResource", NULL }; | |
7946 | char _ptemp[128]; | |
7947 | ||
7948 | self = self; | |
7949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1)) | |
7950 | return NULL; | |
7951 | { | |
6824d4f9 RD |
7952 | _arg0 = wxString_in_helper(_obj0); |
7953 | if (_arg0 == NULL) | |
e6056257 | 7954 | return NULL; |
e6056257 RD |
7955 | } |
7956 | _arg1 = (bool ) tempbool1; | |
7957 | { | |
0e2ff151 | 7958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7959 | _result = (wxWave *)new_wxWave(*_arg0,_arg1); |
e6056257 | 7960 | |
0e2ff151 RD |
7961 | wxPyEndAllowThreads(__tstate); |
7962 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
7963 | } if (_result) { |
7964 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
7965 | _resultobj = Py_BuildValue("s",_ptemp); | |
7966 | } else { | |
7967 | Py_INCREF(Py_None); | |
7968 | _resultobj = Py_None; | |
7969 | } | |
7970 | { | |
7971 | if (_obj0) | |
7972 | delete _arg0; | |
7973 | } | |
7974 | return _resultobj; | |
7975 | } | |
7976 | ||
7977 | #define delete_wxWave(_swigobj) (delete _swigobj) | |
7978 | static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7979 | PyObject * _resultobj; | |
7980 | wxWave * _arg0; | |
7981 | PyObject * _argo0 = 0; | |
7982 | char *_kwnames[] = { "self", NULL }; | |
7983 | ||
7984 | self = self; | |
7985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0)) | |
7986 | return NULL; | |
7987 | if (_argo0) { | |
7988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p."); | |
7991 | return NULL; | |
7992 | } | |
7993 | } | |
7994 | { | |
0e2ff151 | 7995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7996 | delete_wxWave(_arg0); |
e6056257 | 7997 | |
0e2ff151 RD |
7998 | wxPyEndAllowThreads(__tstate); |
7999 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
8000 | } Py_INCREF(Py_None); |
8001 | _resultobj = Py_None; | |
8002 | return _resultobj; | |
8003 | } | |
8004 | ||
8005 | #define wxWave_IsOk(_swigobj) (_swigobj->IsOk()) | |
8006 | static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8007 | PyObject * _resultobj; | |
8008 | bool _result; | |
8009 | wxWave * _arg0; | |
8010 | PyObject * _argo0 = 0; | |
8011 | char *_kwnames[] = { "self", NULL }; | |
8012 | ||
8013 | self = self; | |
8014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0)) | |
8015 | return NULL; | |
8016 | if (_argo0) { | |
8017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
8019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p."); | |
8020 | return NULL; | |
8021 | } | |
8022 | } | |
8023 | { | |
0e2ff151 | 8024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8025 | _result = (bool )wxWave_IsOk(_arg0); |
e6056257 | 8026 | |
0e2ff151 RD |
8027 | wxPyEndAllowThreads(__tstate); |
8028 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
8029 | } _resultobj = Py_BuildValue("i",_result); |
8030 | return _resultobj; | |
8031 | } | |
8032 | ||
8033 | #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1)) | |
8034 | static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8035 | PyObject * _resultobj; | |
8036 | bool _result; | |
8037 | wxWave * _arg0; | |
8038 | bool _arg1 = (bool ) TRUE; | |
8039 | bool _arg2 = (bool ) FALSE; | |
8040 | PyObject * _argo0 = 0; | |
8041 | int tempbool1 = (int) TRUE; | |
8042 | int tempbool2 = (int) FALSE; | |
8043 | char *_kwnames[] = { "self","async","looped", NULL }; | |
8044 | ||
8045 | self = self; | |
8046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
8047 | return NULL; | |
8048 | if (_argo0) { | |
8049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
8051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p."); | |
8052 | return NULL; | |
8053 | } | |
8054 | } | |
8055 | _arg1 = (bool ) tempbool1; | |
8056 | _arg2 = (bool ) tempbool2; | |
8057 | { | |
0e2ff151 | 8058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8059 | _result = (bool )wxWave_Play(_arg0,_arg1,_arg2); |
e6056257 | 8060 | |
0e2ff151 RD |
8061 | wxPyEndAllowThreads(__tstate); |
8062 | if (PyErr_Occurred()) return NULL; | |
e6056257 RD |
8063 | } _resultobj = Py_BuildValue("i",_result); |
8064 | return _resultobj; | |
8065 | } | |
8066 | ||
b6e5c445 RD |
8067 | #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8068 | static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8069 | PyObject * _resultobj; | |
8070 | wxFileTypeInfo * _result; | |
8071 | char * _arg0; | |
8072 | char * _arg1; | |
8073 | char * _arg2; | |
8074 | char * _arg3; | |
8075 | char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL }; | |
8076 | char _ptemp[128]; | |
8077 | ||
8078 | self = self; | |
8079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ssss:new_wxFileTypeInfo",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
8080 | return NULL; | |
8081 | { | |
0e2ff151 | 8082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8083 | _result = (wxFileTypeInfo *)new_wxFileTypeInfo(_arg0,_arg1,_arg2,_arg3); |
b6e5c445 | 8084 | |
0e2ff151 RD |
8085 | wxPyEndAllowThreads(__tstate); |
8086 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8087 | } if (_result) { |
8088 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
8089 | _resultobj = Py_BuildValue("s",_ptemp); | |
8090 | } else { | |
8091 | Py_INCREF(Py_None); | |
8092 | _resultobj = Py_None; | |
8093 | } | |
8094 | return _resultobj; | |
8095 | } | |
8096 | ||
8097 | #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0)) | |
8098 | static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8099 | PyObject * _resultobj; | |
8100 | wxFileTypeInfo * _result; | |
8101 | wxArrayString * _arg0; | |
8102 | PyObject * _obj0 = 0; | |
8103 | char *_kwnames[] = { "sArray", NULL }; | |
8104 | char _ptemp[128]; | |
8105 | ||
8106 | self = self; | |
8107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0)) | |
8108 | return NULL; | |
8109 | { | |
8110 | if (! PySequence_Check(_obj0)) { | |
8111 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8112 | return NULL; | |
8113 | } | |
8114 | _arg0 = new wxArrayString; | |
8115 | int i, len=PySequence_Length(_obj0); | |
8116 | for (i=0; i<len; i++) { | |
8117 | PyObject* item = PySequence_GetItem(_obj0, i); | |
6824d4f9 RD |
8118 | #if wxUSE_UNICODE |
8119 | PyObject* str = PyObject_Unicode(item); | |
8120 | _arg0->Add(PyUnicode_AsUnicode(str)); | |
8121 | #else | |
b6e5c445 | 8122 | PyObject* str = PyObject_Str(item); |
ca31b3da | 8123 | _arg0->Add(PyString_AsString(str)); |
6824d4f9 | 8124 | #endif |
b6e5c445 RD |
8125 | Py_DECREF(item); |
8126 | Py_DECREF(str); | |
8127 | } | |
8128 | } | |
8129 | { | |
0e2ff151 | 8130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8131 | _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0); |
b6e5c445 | 8132 | |
0e2ff151 RD |
8133 | wxPyEndAllowThreads(__tstate); |
8134 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8135 | } if (_result) { |
8136 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
8137 | _resultobj = Py_BuildValue("s",_ptemp); | |
8138 | } else { | |
8139 | Py_INCREF(Py_None); | |
8140 | _resultobj = Py_None; | |
8141 | } | |
8142 | { | |
8143 | if (_obj0) | |
8144 | delete _arg0; | |
8145 | } | |
8146 | return _resultobj; | |
8147 | } | |
8148 | ||
8149 | #define new_wxNullFileTypeInfo() (new wxFileTypeInfo()) | |
8150 | static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8151 | PyObject * _resultobj; | |
8152 | wxFileTypeInfo * _result; | |
8153 | char *_kwnames[] = { NULL }; | |
8154 | char _ptemp[128]; | |
8155 | ||
8156 | self = self; | |
8157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames)) | |
8158 | return NULL; | |
8159 | { | |
0e2ff151 | 8160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8161 | _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo(); |
b6e5c445 | 8162 | |
0e2ff151 RD |
8163 | wxPyEndAllowThreads(__tstate); |
8164 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8165 | } if (_result) { |
8166 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
8167 | _resultobj = Py_BuildValue("s",_ptemp); | |
8168 | } else { | |
8169 | Py_INCREF(Py_None); | |
8170 | _resultobj = Py_None; | |
8171 | } | |
8172 | return _resultobj; | |
8173 | } | |
8174 | ||
8175 | #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid()) | |
8176 | static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8177 | PyObject * _resultobj; | |
8178 | bool _result; | |
8179 | wxFileTypeInfo * _arg0; | |
8180 | PyObject * _argo0 = 0; | |
8181 | char *_kwnames[] = { "self", NULL }; | |
8182 | ||
8183 | self = self; | |
8184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0)) | |
8185 | return NULL; | |
8186 | if (_argo0) { | |
8187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p."); | |
8190 | return NULL; | |
8191 | } | |
8192 | } | |
8193 | { | |
0e2ff151 | 8194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8195 | _result = (bool )wxFileTypeInfo_IsValid(_arg0); |
b6e5c445 | 8196 | |
0e2ff151 RD |
8197 | wxPyEndAllowThreads(__tstate); |
8198 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8199 | } _resultobj = Py_BuildValue("i",_result); |
8200 | return _resultobj; | |
8201 | } | |
8202 | ||
8203 | #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1)) | |
8204 | static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8205 | PyObject * _resultobj; | |
8206 | wxFileTypeInfo * _arg0; | |
8207 | wxString * _arg1; | |
8208 | int _arg2 = (int ) 0; | |
8209 | PyObject * _argo0 = 0; | |
8210 | PyObject * _obj1 = 0; | |
8211 | char *_kwnames[] = { "self","iconFile","iconIndex", NULL }; | |
8212 | ||
8213 | self = self; | |
8214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
8215 | return NULL; | |
8216 | if (_argo0) { | |
8217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p."); | |
8220 | return NULL; | |
8221 | } | |
8222 | } | |
8223 | { | |
6824d4f9 RD |
8224 | _arg1 = wxString_in_helper(_obj1); |
8225 | if (_arg1 == NULL) | |
b6e5c445 | 8226 | return NULL; |
b6e5c445 RD |
8227 | } |
8228 | { | |
0e2ff151 | 8229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8230 | wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2); |
b6e5c445 | 8231 | |
0e2ff151 RD |
8232 | wxPyEndAllowThreads(__tstate); |
8233 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8234 | } Py_INCREF(Py_None); |
8235 | _resultobj = Py_None; | |
8236 | { | |
8237 | if (_obj1) | |
8238 | delete _arg1; | |
8239 | } | |
8240 | return _resultobj; | |
8241 | } | |
8242 | ||
8243 | #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0)) | |
8244 | static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8245 | PyObject * _resultobj; | |
8246 | wxFileTypeInfo * _arg0; | |
8247 | wxString * _arg1; | |
8248 | PyObject * _argo0 = 0; | |
8249 | PyObject * _obj1 = 0; | |
8250 | char *_kwnames[] = { "self","shortDesc", NULL }; | |
8251 | ||
8252 | self = self; | |
8253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1)) | |
8254 | return NULL; | |
8255 | if (_argo0) { | |
8256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p."); | |
8259 | return NULL; | |
8260 | } | |
8261 | } | |
8262 | { | |
6824d4f9 RD |
8263 | _arg1 = wxString_in_helper(_obj1); |
8264 | if (_arg1 == NULL) | |
b6e5c445 | 8265 | return NULL; |
b6e5c445 RD |
8266 | } |
8267 | { | |
0e2ff151 | 8268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8269 | wxFileTypeInfo_SetShortDesc(_arg0,*_arg1); |
b6e5c445 | 8270 | |
0e2ff151 RD |
8271 | wxPyEndAllowThreads(__tstate); |
8272 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8273 | } Py_INCREF(Py_None); |
8274 | _resultobj = Py_None; | |
8275 | { | |
8276 | if (_obj1) | |
8277 | delete _arg1; | |
8278 | } | |
8279 | return _resultobj; | |
8280 | } | |
8281 | ||
8282 | #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
8283 | static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8284 | PyObject * _resultobj; | |
8285 | wxString * _result; | |
8286 | wxFileTypeInfo * _arg0; | |
8287 | PyObject * _argo0 = 0; | |
8288 | char *_kwnames[] = { "self", NULL }; | |
8289 | ||
8290 | self = self; | |
8291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0)) | |
8292 | return NULL; | |
8293 | if (_argo0) { | |
8294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p."); | |
8297 | return NULL; | |
8298 | } | |
8299 | } | |
8300 | { | |
0e2ff151 | 8301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8302 | const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0); |
b6e5c445 RD |
8303 | _result = (wxString *) &_result_ref; |
8304 | ||
0e2ff151 RD |
8305 | wxPyEndAllowThreads(__tstate); |
8306 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 | 8307 | }{ |
6824d4f9 RD |
8308 | #if wxUSE_UNICODE |
8309 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8310 | #else | |
b6e5c445 | 8311 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 8312 | #endif |
b6e5c445 RD |
8313 | } |
8314 | return _resultobj; | |
8315 | } | |
8316 | ||
8317 | #define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand()) | |
8318 | static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8319 | PyObject * _resultobj; | |
8320 | wxString * _result; | |
8321 | wxFileTypeInfo * _arg0; | |
8322 | PyObject * _argo0 = 0; | |
8323 | char *_kwnames[] = { "self", NULL }; | |
8324 | ||
8325 | self = self; | |
8326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0)) | |
8327 | return NULL; | |
8328 | if (_argo0) { | |
8329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p."); | |
8332 | return NULL; | |
8333 | } | |
8334 | } | |
8335 | { | |
0e2ff151 | 8336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8337 | const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0); |
b6e5c445 RD |
8338 | _result = (wxString *) &_result_ref; |
8339 | ||
0e2ff151 RD |
8340 | wxPyEndAllowThreads(__tstate); |
8341 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 | 8342 | }{ |
6824d4f9 RD |
8343 | #if wxUSE_UNICODE |
8344 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8345 | #else | |
b6e5c445 | 8346 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 8347 | #endif |
b6e5c445 RD |
8348 | } |
8349 | return _resultobj; | |
8350 | } | |
8351 | ||
8352 | #define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand()) | |
8353 | static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8354 | PyObject * _resultobj; | |
8355 | wxString * _result; | |
8356 | wxFileTypeInfo * _arg0; | |
8357 | PyObject * _argo0 = 0; | |
8358 | char *_kwnames[] = { "self", NULL }; | |
8359 | ||
8360 | self = self; | |
8361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0)) | |
8362 | return NULL; | |
8363 | if (_argo0) { | |
8364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p."); | |
8367 | return NULL; | |
8368 | } | |
8369 | } | |
8370 | { | |
0e2ff151 | 8371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8372 | const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0); |
b6e5c445 RD |
8373 | _result = (wxString *) &_result_ref; |
8374 | ||
0e2ff151 RD |
8375 | wxPyEndAllowThreads(__tstate); |
8376 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 | 8377 | }{ |
6824d4f9 RD |
8378 | #if wxUSE_UNICODE |
8379 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8380 | #else | |
b6e5c445 | 8381 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 8382 | #endif |
b6e5c445 RD |
8383 | } |
8384 | return _resultobj; | |
8385 | } | |
8386 | ||
8387 | #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc()) | |
8388 | static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8389 | PyObject * _resultobj; | |
8390 | wxString * _result; | |
8391 | wxFileTypeInfo * _arg0; | |
8392 | PyObject * _argo0 = 0; | |
8393 | char *_kwnames[] = { "self", NULL }; | |
8394 | ||
8395 | self = self; | |
8396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0)) | |
8397 | return NULL; | |
8398 | if (_argo0) { | |
8399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p."); | |
8402 | return NULL; | |
8403 | } | |
8404 | } | |
8405 | { | |
0e2ff151 | 8406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8407 | const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0); |
b6e5c445 RD |
8408 | _result = (wxString *) &_result_ref; |
8409 | ||
0e2ff151 RD |
8410 | wxPyEndAllowThreads(__tstate); |
8411 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 | 8412 | }{ |
6824d4f9 RD |
8413 | #if wxUSE_UNICODE |
8414 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8415 | #else | |
b6e5c445 | 8416 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 8417 | #endif |
b6e5c445 RD |
8418 | } |
8419 | return _resultobj; | |
8420 | } | |
8421 | ||
8422 | #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription()) | |
8423 | static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8424 | PyObject * _resultobj; | |
8425 | wxString * _result; | |
8426 | wxFileTypeInfo * _arg0; | |
8427 | PyObject * _argo0 = 0; | |
8428 | char *_kwnames[] = { "self", NULL }; | |
8429 | ||
8430 | self = self; | |
8431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0)) | |
8432 | return NULL; | |
8433 | if (_argo0) { | |
8434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p."); | |
8437 | return NULL; | |
8438 | } | |
8439 | } | |
8440 | { | |
0e2ff151 | 8441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8442 | const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0); |
b6e5c445 RD |
8443 | _result = (wxString *) &_result_ref; |
8444 | ||
0e2ff151 RD |
8445 | wxPyEndAllowThreads(__tstate); |
8446 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 | 8447 | }{ |
6824d4f9 RD |
8448 | #if wxUSE_UNICODE |
8449 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8450 | #else | |
b6e5c445 | 8451 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 8452 | #endif |
b6e5c445 RD |
8453 | } |
8454 | return _resultobj; | |
8455 | } | |
8456 | ||
8457 | static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) { | |
8458 | wxArrayString& arr = (wxArrayString&)self->GetExtensions(); | |
8459 | return wxArrayString2PyList_helper(arr); | |
8460 | } | |
8461 | static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8462 | PyObject * _resultobj; | |
8463 | PyObject * _result; | |
8464 | wxFileTypeInfo * _arg0; | |
8465 | PyObject * _argo0 = 0; | |
8466 | char *_kwnames[] = { "self", NULL }; | |
8467 | ||
8468 | self = self; | |
8469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0)) | |
8470 | return NULL; | |
8471 | if (_argo0) { | |
8472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p."); | |
8475 | return NULL; | |
8476 | } | |
8477 | } | |
8478 | { | |
0e2ff151 | 8479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8480 | _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0); |
b6e5c445 | 8481 | |
0e2ff151 RD |
8482 | wxPyEndAllowThreads(__tstate); |
8483 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8484 | }{ |
8485 | _resultobj = _result; | |
8486 | } | |
8487 | return _resultobj; | |
8488 | } | |
8489 | ||
8490 | #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount()) | |
8491 | static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8492 | PyObject * _resultobj; | |
8493 | int _result; | |
8494 | wxFileTypeInfo * _arg0; | |
8495 | PyObject * _argo0 = 0; | |
8496 | char *_kwnames[] = { "self", NULL }; | |
8497 | ||
8498 | self = self; | |
8499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0)) | |
8500 | return NULL; | |
8501 | if (_argo0) { | |
8502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p."); | |
8505 | return NULL; | |
8506 | } | |
8507 | } | |
8508 | { | |
0e2ff151 | 8509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8510 | _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0); |
b6e5c445 | 8511 | |
0e2ff151 RD |
8512 | wxPyEndAllowThreads(__tstate); |
8513 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8514 | } _resultobj = Py_BuildValue("i",_result); |
8515 | return _resultobj; | |
8516 | } | |
8517 | ||
8518 | #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile()) | |
8519 | static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8520 | PyObject * _resultobj; | |
8521 | wxString * _result; | |
8522 | wxFileTypeInfo * _arg0; | |
8523 | PyObject * _argo0 = 0; | |
8524 | char *_kwnames[] = { "self", NULL }; | |
8525 | ||
8526 | self = self; | |
8527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0)) | |
8528 | return NULL; | |
8529 | if (_argo0) { | |
8530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p."); | |
8533 | return NULL; | |
8534 | } | |
8535 | } | |
8536 | { | |
0e2ff151 | 8537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8538 | const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0); |
b6e5c445 RD |
8539 | _result = (wxString *) &_result_ref; |
8540 | ||
0e2ff151 RD |
8541 | wxPyEndAllowThreads(__tstate); |
8542 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 | 8543 | }{ |
6824d4f9 RD |
8544 | #if wxUSE_UNICODE |
8545 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8546 | #else | |
b6e5c445 | 8547 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 8548 | #endif |
b6e5c445 RD |
8549 | } |
8550 | return _resultobj; | |
8551 | } | |
8552 | ||
8553 | #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex()) | |
8554 | static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8555 | PyObject * _resultobj; | |
8556 | int _result; | |
8557 | wxFileTypeInfo * _arg0; | |
8558 | PyObject * _argo0 = 0; | |
8559 | char *_kwnames[] = { "self", NULL }; | |
8560 | ||
8561 | self = self; | |
8562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0)) | |
8563 | return NULL; | |
8564 | if (_argo0) { | |
8565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p."); | |
8568 | return NULL; | |
8569 | } | |
8570 | } | |
8571 | { | |
0e2ff151 | 8572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8573 | _result = (int )wxFileTypeInfo_GetIconIndex(_arg0); |
b6e5c445 | 8574 | |
0e2ff151 RD |
8575 | wxPyEndAllowThreads(__tstate); |
8576 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8577 | } _resultobj = Py_BuildValue("i",_result); |
8578 | return _resultobj; | |
8579 | } | |
8580 | ||
8581 | #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0)) | |
8582 | static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8583 | PyObject * _resultobj; | |
8584 | wxFileType * _result; | |
8585 | wxFileTypeInfo * _arg0; | |
8586 | PyObject * _argo0 = 0; | |
8587 | char *_kwnames[] = { "ftInfo", NULL }; | |
8588 | char _ptemp[128]; | |
8589 | ||
8590 | self = self; | |
8591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0)) | |
8592 | return NULL; | |
8593 | if (_argo0) { | |
8594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p."); | |
8597 | return NULL; | |
8598 | } | |
8599 | } | |
8600 | { | |
0e2ff151 | 8601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8602 | _result = (wxFileType *)new_wxFileType(*_arg0); |
b6e5c445 | 8603 | |
0e2ff151 RD |
8604 | wxPyEndAllowThreads(__tstate); |
8605 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8606 | } if (_result) { |
8607 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8608 | _resultobj = Py_BuildValue("s",_ptemp); | |
8609 | } else { | |
8610 | Py_INCREF(Py_None); | |
8611 | _resultobj = Py_None; | |
8612 | } | |
8613 | return _resultobj; | |
8614 | } | |
8615 | ||
8616 | static PyObject * wxFileType_GetMimeType(wxFileType *self) { | |
8617 | wxString str; | |
6824d4f9 RD |
8618 | if (self->GetMimeType(&str)) { |
8619 | #if wxUSE_UNICODE | |
8620 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8621 | #else | |
8622 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8623 | #endif | |
8624 | } | |
b6e5c445 RD |
8625 | else |
8626 | RETURN_NONE(); | |
8627 | } | |
8628 | static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8629 | PyObject * _resultobj; | |
8630 | PyObject * _result; | |
8631 | wxFileType * _arg0; | |
8632 | PyObject * _argo0 = 0; | |
8633 | char *_kwnames[] = { "self", NULL }; | |
8634 | ||
8635 | self = self; | |
8636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0)) | |
8637 | return NULL; | |
8638 | if (_argo0) { | |
8639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p."); | |
8642 | return NULL; | |
8643 | } | |
8644 | } | |
8645 | { | |
0e2ff151 | 8646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8647 | _result = (PyObject *)wxFileType_GetMimeType(_arg0); |
b6e5c445 | 8648 | |
0e2ff151 RD |
8649 | wxPyEndAllowThreads(__tstate); |
8650 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8651 | }{ |
8652 | _resultobj = _result; | |
8653 | } | |
8654 | return _resultobj; | |
8655 | } | |
8656 | ||
8657 | static PyObject * wxFileType_GetMimeTypes(wxFileType *self) { | |
8658 | wxArrayString arr; | |
8659 | if (self->GetMimeTypes(arr)) | |
8660 | return wxArrayString2PyList_helper(arr); | |
8661 | else | |
8662 | RETURN_NONE(); | |
8663 | } | |
8664 | static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8665 | PyObject * _resultobj; | |
8666 | PyObject * _result; | |
8667 | wxFileType * _arg0; | |
8668 | PyObject * _argo0 = 0; | |
8669 | char *_kwnames[] = { "self", NULL }; | |
8670 | ||
8671 | self = self; | |
8672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0)) | |
8673 | return NULL; | |
8674 | if (_argo0) { | |
8675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p."); | |
8678 | return NULL; | |
8679 | } | |
8680 | } | |
8681 | { | |
0e2ff151 | 8682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8683 | _result = (PyObject *)wxFileType_GetMimeTypes(_arg0); |
b6e5c445 | 8684 | |
0e2ff151 RD |
8685 | wxPyEndAllowThreads(__tstate); |
8686 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8687 | }{ |
8688 | _resultobj = _result; | |
8689 | } | |
8690 | return _resultobj; | |
8691 | } | |
8692 | ||
8693 | static PyObject * wxFileType_GetExtensions(wxFileType *self) { | |
8694 | wxArrayString arr; | |
8695 | if (self->GetExtensions(arr)) | |
8696 | return wxArrayString2PyList_helper(arr); | |
8697 | else | |
8698 | RETURN_NONE(); | |
8699 | } | |
8700 | static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8701 | PyObject * _resultobj; | |
8702 | PyObject * _result; | |
8703 | wxFileType * _arg0; | |
8704 | PyObject * _argo0 = 0; | |
8705 | char *_kwnames[] = { "self", NULL }; | |
8706 | ||
8707 | self = self; | |
8708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0)) | |
8709 | return NULL; | |
8710 | if (_argo0) { | |
8711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p."); | |
8714 | return NULL; | |
8715 | } | |
8716 | } | |
8717 | { | |
0e2ff151 | 8718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8719 | _result = (PyObject *)wxFileType_GetExtensions(_arg0); |
b6e5c445 | 8720 | |
0e2ff151 RD |
8721 | wxPyEndAllowThreads(__tstate); |
8722 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8723 | }{ |
8724 | _resultobj = _result; | |
8725 | } | |
8726 | return _resultobj; | |
8727 | } | |
8728 | ||
8729 | static wxIcon * wxFileType_GetIcon(wxFileType *self) { | |
8730 | wxIcon icon; | |
8731 | if (self->GetIcon(&icon)) | |
8732 | return new wxIcon(icon); | |
8733 | else | |
8734 | return NULL; | |
8735 | } | |
8736 | static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8737 | PyObject * _resultobj; | |
8738 | wxIcon * _result; | |
8739 | wxFileType * _arg0; | |
8740 | PyObject * _argo0 = 0; | |
8741 | char *_kwnames[] = { "self", NULL }; | |
8742 | char _ptemp[128]; | |
8743 | ||
8744 | self = self; | |
8745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0)) | |
8746 | return NULL; | |
8747 | if (_argo0) { | |
8748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p."); | |
8751 | return NULL; | |
8752 | } | |
8753 | } | |
8754 | { | |
0e2ff151 | 8755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8756 | _result = (wxIcon *)wxFileType_GetIcon(_arg0); |
b6e5c445 | 8757 | |
0e2ff151 RD |
8758 | wxPyEndAllowThreads(__tstate); |
8759 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8760 | } if (_result) { |
8761 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
8762 | _resultobj = Py_BuildValue("s",_ptemp); | |
8763 | } else { | |
8764 | Py_INCREF(Py_None); | |
8765 | _resultobj = Py_None; | |
8766 | } | |
8767 | return _resultobj; | |
8768 | } | |
8769 | ||
8770 | static PyObject * wxFileType_GetIconInfo(wxFileType *self) { | |
8771 | wxIcon icon; | |
8772 | wxString iconFile; | |
8773 | int iconIndex; | |
8774 | if (self->GetIcon(&icon, &iconFile, &iconIndex)) { | |
0e2ff151 | 8775 | wxPyBeginBlockThreads(); |
b6e5c445 RD |
8776 | PyObject* tuple = PyTuple_New(3); |
8777 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(icon), | |
8778 | "wxIcon", TRUE)); | |
6824d4f9 RD |
8779 | #if wxUSE_UNICODE |
8780 | PyTuple_SetItem(tuple, 1, PyUnicode_FromUnicode(iconFile.c_str(), iconFile.Len())); | |
8781 | #else | |
8782 | PyTuple_SetItem(tuple, 1, PyString_FromStringAndSize(iconFile.c_str(), iconFile.Len())); | |
8783 | #endif | |
b6e5c445 | 8784 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); |
0e2ff151 | 8785 | wxPyEndBlockThreads(); |
b6e5c445 RD |
8786 | return tuple; |
8787 | } | |
8788 | else | |
8789 | RETURN_NONE(); | |
8790 | } | |
8791 | static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8792 | PyObject * _resultobj; | |
8793 | PyObject * _result; | |
8794 | wxFileType * _arg0; | |
8795 | PyObject * _argo0 = 0; | |
8796 | char *_kwnames[] = { "self", NULL }; | |
8797 | ||
8798 | self = self; | |
8799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0)) | |
8800 | return NULL; | |
8801 | if (_argo0) { | |
8802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p."); | |
8805 | return NULL; | |
8806 | } | |
8807 | } | |
8808 | { | |
0e2ff151 | 8809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8810 | _result = (PyObject *)wxFileType_GetIconInfo(_arg0); |
b6e5c445 | 8811 | |
0e2ff151 RD |
8812 | wxPyEndAllowThreads(__tstate); |
8813 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8814 | }{ |
8815 | _resultobj = _result; | |
8816 | } | |
8817 | return _resultobj; | |
8818 | } | |
8819 | ||
8820 | static PyObject * wxFileType_GetDescription(wxFileType *self) { | |
8821 | wxString str; | |
6824d4f9 RD |
8822 | if (self->GetDescription(&str)) { |
8823 | #if wxUSE_UNICODE | |
8824 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8825 | #else | |
8826 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8827 | #endif | |
8828 | } else | |
b6e5c445 RD |
8829 | RETURN_NONE(); |
8830 | } | |
8831 | static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8832 | PyObject * _resultobj; | |
8833 | PyObject * _result; | |
8834 | wxFileType * _arg0; | |
8835 | PyObject * _argo0 = 0; | |
8836 | char *_kwnames[] = { "self", NULL }; | |
8837 | ||
8838 | self = self; | |
8839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0)) | |
8840 | return NULL; | |
8841 | if (_argo0) { | |
8842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p."); | |
8845 | return NULL; | |
8846 | } | |
8847 | } | |
8848 | { | |
0e2ff151 | 8849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8850 | _result = (PyObject *)wxFileType_GetDescription(_arg0); |
b6e5c445 | 8851 | |
0e2ff151 RD |
8852 | wxPyEndAllowThreads(__tstate); |
8853 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8854 | }{ |
8855 | _resultobj = _result; | |
8856 | } | |
8857 | return _resultobj; | |
8858 | } | |
8859 | ||
8860 | static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8861 | wxString str; | |
6824d4f9 RD |
8862 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
8863 | #if wxUSE_UNICODE | |
8864 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8865 | #else | |
8866 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8867 | #endif | |
8868 | } else | |
b6e5c445 RD |
8869 | RETURN_NONE(); |
8870 | } | |
8871 | static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8872 | PyObject * _resultobj; | |
8873 | PyObject * _result; | |
8874 | wxFileType * _arg0; | |
8875 | wxString * _arg1; | |
c3bfa1cb | 8876 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b6e5c445 RD |
8877 | PyObject * _argo0 = 0; |
8878 | PyObject * _obj1 = 0; | |
8879 | PyObject * _obj2 = 0; | |
8880 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8881 | ||
8882 | self = self; | |
8883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8884 | return NULL; | |
8885 | if (_argo0) { | |
8886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p."); | |
8889 | return NULL; | |
8890 | } | |
8891 | } | |
8892 | { | |
6824d4f9 RD |
8893 | _arg1 = wxString_in_helper(_obj1); |
8894 | if (_arg1 == NULL) | |
b6e5c445 | 8895 | return NULL; |
b6e5c445 RD |
8896 | } |
8897 | if (_obj2) | |
8898 | { | |
6824d4f9 RD |
8899 | _arg2 = wxString_in_helper(_obj2); |
8900 | if (_arg2 == NULL) | |
b6e5c445 | 8901 | return NULL; |
b6e5c445 RD |
8902 | } |
8903 | { | |
0e2ff151 | 8904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8905 | _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2); |
b6e5c445 | 8906 | |
0e2ff151 RD |
8907 | wxPyEndAllowThreads(__tstate); |
8908 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8909 | }{ |
8910 | _resultobj = _result; | |
8911 | } | |
8912 | { | |
8913 | if (_obj1) | |
8914 | delete _arg1; | |
8915 | } | |
8916 | { | |
8917 | if (_obj2) | |
8918 | delete _arg2; | |
8919 | } | |
8920 | return _resultobj; | |
8921 | } | |
8922 | ||
8923 | static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8924 | wxString str; | |
6824d4f9 RD |
8925 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
8926 | #if wxUSE_UNICODE | |
8927 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8928 | #else | |
8929 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8930 | #endif | |
8931 | } else | |
b6e5c445 RD |
8932 | RETURN_NONE(); |
8933 | } | |
8934 | static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8935 | PyObject * _resultobj; | |
8936 | PyObject * _result; | |
8937 | wxFileType * _arg0; | |
8938 | wxString * _arg1; | |
c3bfa1cb | 8939 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b6e5c445 RD |
8940 | PyObject * _argo0 = 0; |
8941 | PyObject * _obj1 = 0; | |
8942 | PyObject * _obj2 = 0; | |
8943 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8944 | ||
8945 | self = self; | |
8946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8947 | return NULL; | |
8948 | if (_argo0) { | |
8949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p."); | |
8952 | return NULL; | |
8953 | } | |
8954 | } | |
8955 | { | |
6824d4f9 RD |
8956 | _arg1 = wxString_in_helper(_obj1); |
8957 | if (_arg1 == NULL) | |
b6e5c445 | 8958 | return NULL; |
b6e5c445 RD |
8959 | } |
8960 | if (_obj2) | |
8961 | { | |
6824d4f9 RD |
8962 | _arg2 = wxString_in_helper(_obj2); |
8963 | if (_arg2 == NULL) | |
b6e5c445 | 8964 | return NULL; |
b6e5c445 RD |
8965 | } |
8966 | { | |
0e2ff151 | 8967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8968 | _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2); |
b6e5c445 | 8969 | |
0e2ff151 RD |
8970 | wxPyEndAllowThreads(__tstate); |
8971 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
8972 | }{ |
8973 | _resultobj = _result; | |
8974 | } | |
8975 | { | |
8976 | if (_obj1) | |
8977 | delete _arg1; | |
8978 | } | |
8979 | { | |
8980 | if (_obj2) | |
8981 | delete _arg2; | |
8982 | } | |
8983 | return _resultobj; | |
8984 | } | |
8985 | ||
8986 | static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8987 | wxArrayString verbs; | |
8988 | wxArrayString commands; | |
8989 | if (self->GetAllCommands(&verbs, &commands, | |
8990 | wxFileType::MessageParameters(filename, mimetype))) { | |
0e2ff151 | 8991 | wxPyBeginBlockThreads(); |
b6e5c445 RD |
8992 | PyObject* tuple = PyTuple_New(2); |
8993 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
8994 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
0e2ff151 | 8995 | wxPyEndBlockThreads(); |
b6e5c445 RD |
8996 | return tuple; |
8997 | } | |
8998 | else | |
8999 | RETURN_NONE(); | |
9000 | } | |
9001 | static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9002 | PyObject * _resultobj; | |
9003 | PyObject * _result; | |
9004 | wxFileType * _arg0; | |
9005 | wxString * _arg1; | |
c3bfa1cb | 9006 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b6e5c445 RD |
9007 | PyObject * _argo0 = 0; |
9008 | PyObject * _obj1 = 0; | |
9009 | PyObject * _obj2 = 0; | |
9010 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
9011 | ||
9012 | self = self; | |
9013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9014 | return NULL; | |
9015 | if (_argo0) { | |
9016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p."); | |
9019 | return NULL; | |
9020 | } | |
9021 | } | |
9022 | { | |
6824d4f9 RD |
9023 | _arg1 = wxString_in_helper(_obj1); |
9024 | if (_arg1 == NULL) | |
b6e5c445 | 9025 | return NULL; |
b6e5c445 RD |
9026 | } |
9027 | if (_obj2) | |
9028 | { | |
6824d4f9 RD |
9029 | _arg2 = wxString_in_helper(_obj2); |
9030 | if (_arg2 == NULL) | |
b6e5c445 | 9031 | return NULL; |
b6e5c445 RD |
9032 | } |
9033 | { | |
0e2ff151 | 9034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9035 | _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2); |
b6e5c445 | 9036 | |
0e2ff151 RD |
9037 | wxPyEndAllowThreads(__tstate); |
9038 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9039 | }{ |
9040 | _resultobj = _result; | |
9041 | } | |
9042 | { | |
9043 | if (_obj1) | |
9044 | delete _arg1; | |
9045 | } | |
9046 | { | |
9047 | if (_obj2) | |
9048 | delete _arg2; | |
9049 | } | |
9050 | return _resultobj; | |
9051 | } | |
9052 | ||
9053 | #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2)) | |
9054 | static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9055 | PyObject * _resultobj; | |
9056 | bool _result; | |
9057 | wxFileType * _arg0; | |
9058 | wxString * _arg1; | |
9059 | wxString * _arg2; | |
9060 | bool _arg3 = (bool ) TRUE; | |
9061 | PyObject * _argo0 = 0; | |
9062 | PyObject * _obj1 = 0; | |
9063 | PyObject * _obj2 = 0; | |
9064 | int tempbool3 = (int) TRUE; | |
9065 | char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL }; | |
9066 | ||
9067 | self = self; | |
9068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) | |
9069 | return NULL; | |
9070 | if (_argo0) { | |
9071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p."); | |
9074 | return NULL; | |
9075 | } | |
9076 | } | |
9077 | { | |
6824d4f9 RD |
9078 | _arg1 = wxString_in_helper(_obj1); |
9079 | if (_arg1 == NULL) | |
b6e5c445 | 9080 | return NULL; |
b6e5c445 RD |
9081 | } |
9082 | { | |
6824d4f9 RD |
9083 | _arg2 = wxString_in_helper(_obj2); |
9084 | if (_arg2 == NULL) | |
b6e5c445 | 9085 | return NULL; |
b6e5c445 RD |
9086 | } |
9087 | _arg3 = (bool ) tempbool3; | |
9088 | { | |
0e2ff151 | 9089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9090 | _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3); |
b6e5c445 | 9091 | |
0e2ff151 RD |
9092 | wxPyEndAllowThreads(__tstate); |
9093 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9094 | } _resultobj = Py_BuildValue("i",_result); |
9095 | { | |
9096 | if (_obj1) | |
9097 | delete _arg1; | |
9098 | } | |
9099 | { | |
9100 | if (_obj2) | |
9101 | delete _arg2; | |
9102 | } | |
9103 | return _resultobj; | |
9104 | } | |
9105 | ||
9106 | #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1)) | |
9107 | static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9108 | PyObject * _resultobj; | |
9109 | bool _result; | |
9110 | wxFileType * _arg0; | |
c3bfa1cb | 9111 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
b6e5c445 RD |
9112 | int _arg2 = (int ) 0; |
9113 | PyObject * _argo0 = 0; | |
9114 | PyObject * _obj1 = 0; | |
9115 | char *_kwnames[] = { "self","cmd","index", NULL }; | |
9116 | ||
9117 | self = self; | |
9118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
9119 | return NULL; | |
9120 | if (_argo0) { | |
9121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p."); | |
9124 | return NULL; | |
9125 | } | |
9126 | } | |
9127 | if (_obj1) | |
9128 | { | |
6824d4f9 RD |
9129 | _arg1 = wxString_in_helper(_obj1); |
9130 | if (_arg1 == NULL) | |
b6e5c445 | 9131 | return NULL; |
b6e5c445 RD |
9132 | } |
9133 | { | |
0e2ff151 | 9134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9135 | _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2); |
b6e5c445 | 9136 | |
0e2ff151 RD |
9137 | wxPyEndAllowThreads(__tstate); |
9138 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9139 | } _resultobj = Py_BuildValue("i",_result); |
9140 | { | |
9141 | if (_obj1) | |
9142 | delete _arg1; | |
9143 | } | |
9144 | return _resultobj; | |
9145 | } | |
9146 | ||
9147 | #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate()) | |
9148 | static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9149 | PyObject * _resultobj; | |
9150 | bool _result; | |
9151 | wxFileType * _arg0; | |
9152 | PyObject * _argo0 = 0; | |
9153 | char *_kwnames[] = { "self", NULL }; | |
9154 | ||
9155 | self = self; | |
9156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0)) | |
9157 | return NULL; | |
9158 | if (_argo0) { | |
9159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p."); | |
9162 | return NULL; | |
9163 | } | |
9164 | } | |
9165 | { | |
0e2ff151 | 9166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9167 | _result = (bool )wxFileType_Unassociate(_arg0); |
b6e5c445 | 9168 | |
0e2ff151 RD |
9169 | wxPyEndAllowThreads(__tstate); |
9170 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9171 | } _resultobj = Py_BuildValue("i",_result); |
9172 | return _resultobj; | |
9173 | } | |
9174 | ||
9175 | static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9176 | PyObject * _resultobj; | |
9177 | wxString * _result; | |
9178 | wxString * _arg0; | |
9179 | wxFileType::MessageParameters * _arg1; | |
9180 | PyObject * _obj0 = 0; | |
9181 | PyObject * _argo1 = 0; | |
9182 | char *_kwnames[] = { "command","params", NULL }; | |
9183 | ||
9184 | self = self; | |
9185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1)) | |
9186 | return NULL; | |
9187 | { | |
6824d4f9 RD |
9188 | _arg0 = wxString_in_helper(_obj0); |
9189 | if (_arg0 == NULL) | |
b6e5c445 | 9190 | return NULL; |
b6e5c445 RD |
9191 | } |
9192 | if (_argo1) { | |
9193 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9194 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) { | |
9195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p."); | |
9196 | return NULL; | |
9197 | } | |
9198 | } | |
9199 | { | |
0e2ff151 | 9200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9201 | _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1)); |
b6e5c445 | 9202 | |
0e2ff151 RD |
9203 | wxPyEndAllowThreads(__tstate); |
9204 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 | 9205 | }{ |
6824d4f9 RD |
9206 | #if wxUSE_UNICODE |
9207 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9208 | #else | |
b6e5c445 | 9209 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 9210 | #endif |
b6e5c445 RD |
9211 | } |
9212 | { | |
9213 | if (_obj0) | |
9214 | delete _arg0; | |
9215 | } | |
9216 | { | |
9217 | delete _result; | |
9218 | } | |
9219 | return _resultobj; | |
9220 | } | |
9221 | ||
9222 | #define delete_wxFileType(_swigobj) (delete _swigobj) | |
9223 | static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9224 | PyObject * _resultobj; | |
9225 | wxFileType * _arg0; | |
9226 | PyObject * _argo0 = 0; | |
9227 | char *_kwnames[] = { "self", NULL }; | |
9228 | ||
9229 | self = self; | |
9230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0)) | |
9231 | return NULL; | |
9232 | if (_argo0) { | |
9233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p."); | |
9236 | return NULL; | |
9237 | } | |
9238 | } | |
9239 | { | |
0e2ff151 | 9240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9241 | delete_wxFileType(_arg0); |
b6e5c445 | 9242 | |
0e2ff151 RD |
9243 | wxPyEndAllowThreads(__tstate); |
9244 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9245 | } Py_INCREF(Py_None); |
9246 | _resultobj = Py_None; | |
9247 | return _resultobj; | |
9248 | } | |
9249 | ||
9250 | static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9251 | PyObject * _resultobj; | |
9252 | bool _result; | |
9253 | wxString * _arg0; | |
9254 | wxString * _arg1; | |
9255 | PyObject * _obj0 = 0; | |
9256 | PyObject * _obj1 = 0; | |
9257 | char *_kwnames[] = { "mimeType","wildcard", NULL }; | |
9258 | ||
9259 | self = self; | |
9260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1)) | |
9261 | return NULL; | |
9262 | { | |
6824d4f9 RD |
9263 | _arg0 = wxString_in_helper(_obj0); |
9264 | if (_arg0 == NULL) | |
b6e5c445 | 9265 | return NULL; |
b6e5c445 RD |
9266 | } |
9267 | { | |
6824d4f9 RD |
9268 | _arg1 = wxString_in_helper(_obj1); |
9269 | if (_arg1 == NULL) | |
b6e5c445 | 9270 | return NULL; |
b6e5c445 RD |
9271 | } |
9272 | { | |
0e2ff151 | 9273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9274 | _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1); |
b6e5c445 | 9275 | |
0e2ff151 RD |
9276 | wxPyEndAllowThreads(__tstate); |
9277 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9278 | } _resultobj = Py_BuildValue("i",_result); |
9279 | { | |
9280 | if (_obj0) | |
9281 | delete _arg0; | |
9282 | } | |
9283 | { | |
9284 | if (_obj1) | |
9285 | delete _arg1; | |
9286 | } | |
9287 | return _resultobj; | |
9288 | } | |
9289 | ||
9290 | #define new_wxMimeTypesManager() (new wxMimeTypesManager()) | |
9291 | static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9292 | PyObject * _resultobj; | |
9293 | wxMimeTypesManager * _result; | |
9294 | char *_kwnames[] = { NULL }; | |
9295 | char _ptemp[128]; | |
9296 | ||
9297 | self = self; | |
9298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames)) | |
9299 | return NULL; | |
9300 | { | |
0e2ff151 | 9301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9302 | _result = (wxMimeTypesManager *)new_wxMimeTypesManager(); |
b6e5c445 | 9303 | |
0e2ff151 RD |
9304 | wxPyEndAllowThreads(__tstate); |
9305 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9306 | } if (_result) { |
9307 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p"); | |
9308 | _resultobj = Py_BuildValue("s",_ptemp); | |
9309 | } else { | |
9310 | Py_INCREF(Py_None); | |
9311 | _resultobj = Py_None; | |
9312 | } | |
9313 | return _resultobj; | |
9314 | } | |
9315 | ||
9316 | #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1)) | |
9317 | static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9318 | PyObject * _resultobj; | |
9319 | wxMimeTypesManager * _arg0; | |
9320 | int _arg1 = (int ) (wxMAILCAP_STANDARD); | |
c3bfa1cb | 9321 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b6e5c445 RD |
9322 | PyObject * _argo0 = 0; |
9323 | PyObject * _obj2 = 0; | |
9324 | char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL }; | |
9325 | ||
9326 | self = self; | |
9327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9328 | return NULL; | |
9329 | if (_argo0) { | |
9330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p."); | |
9333 | return NULL; | |
9334 | } | |
9335 | } | |
9336 | if (_obj2) | |
9337 | { | |
6824d4f9 RD |
9338 | _arg2 = wxString_in_helper(_obj2); |
9339 | if (_arg2 == NULL) | |
b6e5c445 | 9340 | return NULL; |
b6e5c445 RD |
9341 | } |
9342 | { | |
0e2ff151 | 9343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9344 | wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2); |
b6e5c445 | 9345 | |
0e2ff151 RD |
9346 | wxPyEndAllowThreads(__tstate); |
9347 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9348 | } Py_INCREF(Py_None); |
9349 | _resultobj = Py_None; | |
9350 | { | |
9351 | if (_obj2) | |
9352 | delete _arg2; | |
9353 | } | |
9354 | return _resultobj; | |
9355 | } | |
9356 | ||
9357 | #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData()) | |
9358 | static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9359 | PyObject * _resultobj; | |
9360 | wxMimeTypesManager * _arg0; | |
9361 | PyObject * _argo0 = 0; | |
9362 | char *_kwnames[] = { "self", NULL }; | |
9363 | ||
9364 | self = self; | |
9365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0)) | |
9366 | return NULL; | |
9367 | if (_argo0) { | |
9368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p."); | |
9371 | return NULL; | |
9372 | } | |
9373 | } | |
9374 | { | |
0e2ff151 | 9375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9376 | wxMimeTypesManager_ClearData(_arg0); |
b6e5c445 | 9377 | |
0e2ff151 RD |
9378 | wxPyEndAllowThreads(__tstate); |
9379 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9380 | } Py_INCREF(Py_None); |
9381 | _resultobj = Py_None; | |
9382 | return _resultobj; | |
9383 | } | |
9384 | ||
9385 | #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0)) | |
9386 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9387 | PyObject * _resultobj; | |
9388 | wxFileType * _result; | |
9389 | wxMimeTypesManager * _arg0; | |
9390 | wxString * _arg1; | |
9391 | PyObject * _argo0 = 0; | |
9392 | PyObject * _obj1 = 0; | |
9393 | char *_kwnames[] = { "self","ext", NULL }; | |
9394 | char _ptemp[128]; | |
9395 | ||
9396 | self = self; | |
9397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1)) | |
9398 | return NULL; | |
9399 | if (_argo0) { | |
9400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p."); | |
9403 | return NULL; | |
9404 | } | |
9405 | } | |
9406 | { | |
6824d4f9 RD |
9407 | _arg1 = wxString_in_helper(_obj1); |
9408 | if (_arg1 == NULL) | |
b6e5c445 | 9409 | return NULL; |
b6e5c445 RD |
9410 | } |
9411 | { | |
0e2ff151 | 9412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9413 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1); |
b6e5c445 | 9414 | |
0e2ff151 RD |
9415 | wxPyEndAllowThreads(__tstate); |
9416 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9417 | } if (_result) { |
9418 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9419 | _resultobj = Py_BuildValue("s",_ptemp); | |
9420 | } else { | |
9421 | Py_INCREF(Py_None); | |
9422 | _resultobj = Py_None; | |
9423 | } | |
9424 | { | |
9425 | if (_obj1) | |
9426 | delete _arg1; | |
9427 | } | |
9428 | return _resultobj; | |
9429 | } | |
9430 | ||
9431 | #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0)) | |
9432 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9433 | PyObject * _resultobj; | |
9434 | wxFileType * _result; | |
9435 | wxMimeTypesManager * _arg0; | |
9436 | wxString * _arg1; | |
9437 | PyObject * _argo0 = 0; | |
9438 | PyObject * _obj1 = 0; | |
9439 | char *_kwnames[] = { "self","mimeType", NULL }; | |
9440 | char _ptemp[128]; | |
9441 | ||
9442 | self = self; | |
9443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1)) | |
9444 | return NULL; | |
9445 | if (_argo0) { | |
9446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p."); | |
9449 | return NULL; | |
9450 | } | |
9451 | } | |
9452 | { | |
6824d4f9 RD |
9453 | _arg1 = wxString_in_helper(_obj1); |
9454 | if (_arg1 == NULL) | |
b6e5c445 | 9455 | return NULL; |
b6e5c445 RD |
9456 | } |
9457 | { | |
0e2ff151 | 9458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9459 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_arg0,*_arg1); |
b6e5c445 | 9460 | |
0e2ff151 RD |
9461 | wxPyEndAllowThreads(__tstate); |
9462 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9463 | } if (_result) { |
9464 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9465 | _resultobj = Py_BuildValue("s",_ptemp); | |
9466 | } else { | |
9467 | Py_INCREF(Py_None); | |
9468 | _resultobj = Py_None; | |
9469 | } | |
9470 | { | |
9471 | if (_obj1) | |
9472 | delete _arg1; | |
9473 | } | |
9474 | return _resultobj; | |
9475 | } | |
9476 | ||
9477 | #define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1)) | |
9478 | static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9479 | PyObject * _resultobj; | |
9480 | bool _result; | |
9481 | wxMimeTypesManager * _arg0; | |
9482 | wxString * _arg1; | |
9483 | bool _arg2 = (bool ) FALSE; | |
9484 | PyObject * _argo0 = 0; | |
9485 | PyObject * _obj1 = 0; | |
9486 | int tempbool2 = (int) FALSE; | |
9487 | char *_kwnames[] = { "self","filename","fallback", NULL }; | |
9488 | ||
9489 | self = self; | |
9490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
9491 | return NULL; | |
9492 | if (_argo0) { | |
9493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p."); | |
9496 | return NULL; | |
9497 | } | |
9498 | } | |
9499 | { | |
6824d4f9 RD |
9500 | _arg1 = wxString_in_helper(_obj1); |
9501 | if (_arg1 == NULL) | |
b6e5c445 | 9502 | return NULL; |
b6e5c445 RD |
9503 | } |
9504 | _arg2 = (bool ) tempbool2; | |
9505 | { | |
0e2ff151 | 9506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9507 | _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2); |
b6e5c445 | 9508 | |
0e2ff151 RD |
9509 | wxPyEndAllowThreads(__tstate); |
9510 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9511 | } _resultobj = Py_BuildValue("i",_result); |
9512 | { | |
9513 | if (_obj1) | |
9514 | delete _arg1; | |
9515 | } | |
9516 | return _resultobj; | |
9517 | } | |
9518 | ||
9519 | #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0)) | |
9520 | static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9521 | PyObject * _resultobj; | |
9522 | bool _result; | |
9523 | wxMimeTypesManager * _arg0; | |
9524 | wxString * _arg1; | |
9525 | PyObject * _argo0 = 0; | |
9526 | PyObject * _obj1 = 0; | |
9527 | char *_kwnames[] = { "self","filename", NULL }; | |
9528 | ||
9529 | self = self; | |
9530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1)) | |
9531 | return NULL; | |
9532 | if (_argo0) { | |
9533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p."); | |
9536 | return NULL; | |
9537 | } | |
9538 | } | |
9539 | { | |
6824d4f9 RD |
9540 | _arg1 = wxString_in_helper(_obj1); |
9541 | if (_arg1 == NULL) | |
b6e5c445 | 9542 | return NULL; |
b6e5c445 RD |
9543 | } |
9544 | { | |
0e2ff151 | 9545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9546 | _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1); |
b6e5c445 | 9547 | |
0e2ff151 RD |
9548 | wxPyEndAllowThreads(__tstate); |
9549 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9550 | } _resultobj = Py_BuildValue("i",_result); |
9551 | { | |
9552 | if (_obj1) | |
9553 | delete _arg1; | |
9554 | } | |
9555 | return _resultobj; | |
9556 | } | |
9557 | ||
9558 | static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) { | |
9559 | wxArrayString arr; | |
9560 | self->EnumAllFileTypes(arr); | |
9561 | return wxArrayString2PyList_helper(arr); | |
9562 | } | |
9563 | static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9564 | PyObject * _resultobj; | |
9565 | PyObject * _result; | |
9566 | wxMimeTypesManager * _arg0; | |
9567 | PyObject * _argo0 = 0; | |
9568 | char *_kwnames[] = { "self", NULL }; | |
9569 | ||
9570 | self = self; | |
9571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0)) | |
9572 | return NULL; | |
9573 | if (_argo0) { | |
9574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p."); | |
9577 | return NULL; | |
9578 | } | |
9579 | } | |
9580 | { | |
0e2ff151 | 9581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9582 | _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0); |
b6e5c445 | 9583 | |
0e2ff151 RD |
9584 | wxPyEndAllowThreads(__tstate); |
9585 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9586 | }{ |
9587 | _resultobj = _result; | |
9588 | } | |
9589 | return _resultobj; | |
9590 | } | |
9591 | ||
9592 | #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0)) | |
9593 | static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9594 | PyObject * _resultobj; | |
9595 | wxMimeTypesManager * _arg0; | |
9596 | wxFileTypeInfo * _arg1; | |
9597 | PyObject * _argo0 = 0; | |
9598 | PyObject * _argo1 = 0; | |
9599 | char *_kwnames[] = { "self","ft", NULL }; | |
9600 | ||
9601 | self = self; | |
9602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1)) | |
9603 | return NULL; | |
9604 | if (_argo0) { | |
9605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p."); | |
9608 | return NULL; | |
9609 | } | |
9610 | } | |
9611 | if (_argo1) { | |
9612 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9613 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p."); | |
9615 | return NULL; | |
9616 | } | |
9617 | } | |
9618 | { | |
0e2ff151 | 9619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9620 | wxMimeTypesManager_AddFallback(_arg0,*_arg1); |
b6e5c445 | 9621 | |
0e2ff151 RD |
9622 | wxPyEndAllowThreads(__tstate); |
9623 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9624 | } Py_INCREF(Py_None); |
9625 | _resultobj = Py_None; | |
9626 | return _resultobj; | |
9627 | } | |
9628 | ||
9629 | #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0)) | |
9630 | static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9631 | PyObject * _resultobj; | |
9632 | wxFileType * _result; | |
9633 | wxMimeTypesManager * _arg0; | |
9634 | wxFileTypeInfo * _arg1; | |
9635 | PyObject * _argo0 = 0; | |
9636 | PyObject * _argo1 = 0; | |
9637 | char *_kwnames[] = { "self","ftInfo", NULL }; | |
9638 | char _ptemp[128]; | |
9639 | ||
9640 | self = self; | |
9641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1)) | |
9642 | return NULL; | |
9643 | if (_argo0) { | |
9644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p."); | |
9647 | return NULL; | |
9648 | } | |
9649 | } | |
9650 | if (_argo1) { | |
9651 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9652 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p."); | |
9654 | return NULL; | |
9655 | } | |
9656 | } | |
9657 | { | |
0e2ff151 | 9658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9659 | _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1); |
b6e5c445 | 9660 | |
0e2ff151 RD |
9661 | wxPyEndAllowThreads(__tstate); |
9662 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9663 | } if (_result) { |
9664 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9665 | _resultobj = Py_BuildValue("s",_ptemp); | |
9666 | } else { | |
9667 | Py_INCREF(Py_None); | |
9668 | _resultobj = Py_None; | |
9669 | } | |
9670 | return _resultobj; | |
9671 | } | |
9672 | ||
9673 | #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0)) | |
9674 | static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9675 | PyObject * _resultobj; | |
9676 | bool _result; | |
9677 | wxMimeTypesManager * _arg0; | |
9678 | wxFileType * _arg1; | |
9679 | PyObject * _argo0 = 0; | |
9680 | PyObject * _argo1 = 0; | |
9681 | char *_kwnames[] = { "self","ft", NULL }; | |
9682 | ||
9683 | self = self; | |
9684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1)) | |
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_Unassociate. Expected _wxMimeTypesManager_p."); | |
9690 | return NULL; | |
9691 | } | |
9692 | } | |
9693 | if (_argo1) { | |
9694 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9695 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) { | |
9696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p."); | |
9697 | return NULL; | |
9698 | } | |
9699 | } | |
9700 | { | |
0e2ff151 | 9701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9702 | _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1); |
b6e5c445 | 9703 | |
0e2ff151 RD |
9704 | wxPyEndAllowThreads(__tstate); |
9705 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9706 | } _resultobj = Py_BuildValue("i",_result); |
9707 | return _resultobj; | |
9708 | } | |
9709 | ||
9710 | #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj) | |
9711 | static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9712 | PyObject * _resultobj; | |
9713 | wxMimeTypesManager * _arg0; | |
9714 | PyObject * _argo0 = 0; | |
9715 | char *_kwnames[] = { "self", NULL }; | |
9716 | ||
9717 | self = self; | |
9718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0)) | |
9719 | return NULL; | |
9720 | if (_argo0) { | |
9721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p."); | |
9724 | return NULL; | |
9725 | } | |
9726 | } | |
9727 | { | |
0e2ff151 | 9728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9729 | delete_wxMimeTypesManager(_arg0); |
b6e5c445 | 9730 | |
0e2ff151 RD |
9731 | wxPyEndAllowThreads(__tstate); |
9732 | if (PyErr_Occurred()) return NULL; | |
b6e5c445 RD |
9733 | } Py_INCREF(Py_None); |
9734 | _resultobj = Py_None; | |
9735 | return _resultobj; | |
9736 | } | |
9737 | ||
3bc1a8e6 RD |
9738 | static void *SwigwxPyArtProviderTowxObject(void *ptr) { |
9739 | wxPyArtProvider *src; | |
9740 | wxObject *dest; | |
9741 | src = (wxPyArtProvider *) ptr; | |
9742 | dest = (wxObject *) src; | |
9743 | return (void *) dest; | |
9744 | } | |
9745 | ||
9746 | #define new_wxArtProvider() (new wxPyArtProvider()) | |
9747 | static PyObject *_wrap_new_wxArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9748 | PyObject * _resultobj; | |
9749 | wxPyArtProvider * _result; | |
9750 | char *_kwnames[] = { NULL }; | |
9751 | char _ptemp[128]; | |
9752 | ||
9753 | self = self; | |
9754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxArtProvider",_kwnames)) | |
9755 | return NULL; | |
9756 | { | |
9757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9758 | _result = (wxPyArtProvider *)new_wxArtProvider(); | |
9759 | ||
9760 | wxPyEndAllowThreads(__tstate); | |
9761 | if (PyErr_Occurred()) return NULL; | |
9762 | } if (_result) { | |
9763 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyArtProvider_p"); | |
9764 | _resultobj = Py_BuildValue("s",_ptemp); | |
9765 | } else { | |
9766 | Py_INCREF(Py_None); | |
9767 | _resultobj = Py_None; | |
9768 | } | |
9769 | return _resultobj; | |
9770 | } | |
9771 | ||
9772 | #define wxArtProvider__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
9773 | static PyObject *_wrap_wxArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9774 | PyObject * _resultobj; | |
9775 | wxPyArtProvider * _arg0; | |
9776 | PyObject * _arg1; | |
9777 | PyObject * _arg2; | |
9778 | PyObject * _argo0 = 0; | |
9779 | PyObject * _obj1 = 0; | |
9780 | PyObject * _obj2 = 0; | |
9781 | char *_kwnames[] = { "self","self","_class", NULL }; | |
9782 | ||
9783 | self = self; | |
9784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxArtProvider__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9785 | return NULL; | |
9786 | if (_argo0) { | |
9787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider__setCallbackInfo. Expected _wxPyArtProvider_p."); | |
9790 | return NULL; | |
9791 | } | |
9792 | } | |
9793 | { | |
9794 | _arg1 = _obj1; | |
9795 | } | |
9796 | { | |
9797 | _arg2 = _obj2; | |
9798 | } | |
9799 | { | |
9800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9801 | wxArtProvider__setCallbackInfo(_arg0,_arg1,_arg2); | |
9802 | ||
9803 | wxPyEndAllowThreads(__tstate); | |
9804 | if (PyErr_Occurred()) return NULL; | |
9805 | } Py_INCREF(Py_None); | |
9806 | _resultobj = Py_None; | |
9807 | return _resultobj; | |
9808 | } | |
9809 | ||
9810 | static PyObject *_wrap_wxArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9811 | PyObject * _resultobj; | |
9812 | wxPyArtProvider * _arg0; | |
9813 | PyObject * _argo0 = 0; | |
9814 | char *_kwnames[] = { "provider", NULL }; | |
9815 | ||
9816 | self = self; | |
9817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_PushProvider",_kwnames,&_argo0)) | |
9818 | return NULL; | |
9819 | if (_argo0) { | |
9820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_PushProvider. Expected _wxPyArtProvider_p."); | |
9823 | return NULL; | |
9824 | } | |
9825 | } | |
9826 | { | |
9827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9828 | wxPyArtProvider::PushProvider(_arg0); | |
9829 | ||
9830 | wxPyEndAllowThreads(__tstate); | |
9831 | if (PyErr_Occurred()) return NULL; | |
9832 | } Py_INCREF(Py_None); | |
9833 | _resultobj = Py_None; | |
9834 | return _resultobj; | |
9835 | } | |
9836 | ||
9837 | static PyObject *_wrap_wxArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9838 | PyObject * _resultobj; | |
9839 | bool _result; | |
9840 | char *_kwnames[] = { NULL }; | |
9841 | ||
9842 | self = self; | |
9843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxArtProvider_PopProvider",_kwnames)) | |
9844 | return NULL; | |
9845 | { | |
9846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9847 | _result = (bool )wxPyArtProvider::PopProvider(); | |
9848 | ||
9849 | wxPyEndAllowThreads(__tstate); | |
9850 | if (PyErr_Occurred()) return NULL; | |
9851 | } _resultobj = Py_BuildValue("i",_result); | |
9852 | return _resultobj; | |
9853 | } | |
9854 | ||
9855 | static PyObject *_wrap_wxArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9856 | PyObject * _resultobj; | |
9857 | bool _result; | |
9858 | wxPyArtProvider * _arg0; | |
9859 | PyObject * _argo0 = 0; | |
9860 | char *_kwnames[] = { "provider", NULL }; | |
9861 | ||
9862 | self = self; | |
9863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_RemoveProvider",_kwnames,&_argo0)) | |
9864 | return NULL; | |
9865 | if (_argo0) { | |
9866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
9868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_RemoveProvider. Expected _wxPyArtProvider_p."); | |
9869 | return NULL; | |
9870 | } | |
9871 | } | |
9872 | { | |
9873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9874 | _result = (bool )wxPyArtProvider::RemoveProvider(_arg0); | |
9875 | ||
9876 | wxPyEndAllowThreads(__tstate); | |
9877 | if (PyErr_Occurred()) return NULL; | |
9878 | } _resultobj = Py_BuildValue("i",_result); | |
9879 | return _resultobj; | |
9880 | } | |
9881 | ||
9882 | static PyObject *_wrap_wxArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9883 | PyObject * _resultobj; | |
9884 | wxBitmap * _result; | |
9885 | wxString * _arg0; | |
9886 | wxString * _arg1 = (wxString *) &wxPyART_OTHER; | |
9887 | wxSize * _arg2 = (wxSize *) &wxDefaultSize; | |
9888 | PyObject * _obj0 = 0; | |
9889 | PyObject * _obj1 = 0; | |
9890 | wxSize temp; | |
9891 | PyObject * _obj2 = 0; | |
9892 | char *_kwnames[] = { "id","client","size", NULL }; | |
9893 | char _ptemp[128]; | |
9894 | ||
9895 | self = self; | |
9896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetBitmap",_kwnames,&_obj0,&_obj1,&_obj2)) | |
9897 | return NULL; | |
9898 | { | |
9899 | _arg0 = wxString_in_helper(_obj0); | |
9900 | if (_arg0 == NULL) | |
9901 | return NULL; | |
9902 | } | |
9903 | if (_obj1) | |
9904 | { | |
9905 | _arg1 = wxString_in_helper(_obj1); | |
9906 | if (_arg1 == NULL) | |
9907 | return NULL; | |
9908 | } | |
9909 | if (_obj2) | |
9910 | { | |
9911 | _arg2 = &temp; | |
9912 | if (! wxSize_helper(_obj2, &_arg2)) | |
9913 | return NULL; | |
9914 | } | |
9915 | { | |
9916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9917 | _result = new wxBitmap (wxPyArtProvider::GetBitmap(*_arg0,*_arg1,*_arg2)); | |
9918 | ||
9919 | wxPyEndAllowThreads(__tstate); | |
9920 | if (PyErr_Occurred()) return NULL; | |
9921 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
9922 | _resultobj = Py_BuildValue("s",_ptemp); | |
9923 | { | |
9924 | if (_obj0) | |
9925 | delete _arg0; | |
9926 | } | |
9927 | { | |
9928 | if (_obj1) | |
9929 | delete _arg1; | |
9930 | } | |
9931 | return _resultobj; | |
9932 | } | |
9933 | ||
9934 | static PyObject *_wrap_wxArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9935 | PyObject * _resultobj; | |
9936 | wxIcon * _result; | |
9937 | wxString * _arg0; | |
9938 | wxString * _arg1 = (wxString *) &wxPyART_OTHER; | |
9939 | wxSize * _arg2 = (wxSize *) &wxDefaultSize; | |
9940 | PyObject * _obj0 = 0; | |
9941 | PyObject * _obj1 = 0; | |
9942 | wxSize temp; | |
9943 | PyObject * _obj2 = 0; | |
9944 | char *_kwnames[] = { "id","client","size", NULL }; | |
9945 | char _ptemp[128]; | |
9946 | ||
9947 | self = self; | |
9948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetIcon",_kwnames,&_obj0,&_obj1,&_obj2)) | |
9949 | return NULL; | |
9950 | { | |
9951 | _arg0 = wxString_in_helper(_obj0); | |
9952 | if (_arg0 == NULL) | |
9953 | return NULL; | |
9954 | } | |
9955 | if (_obj1) | |
9956 | { | |
9957 | _arg1 = wxString_in_helper(_obj1); | |
9958 | if (_arg1 == NULL) | |
9959 | return NULL; | |
9960 | } | |
9961 | if (_obj2) | |
9962 | { | |
9963 | _arg2 = &temp; | |
9964 | if (! wxSize_helper(_obj2, &_arg2)) | |
9965 | return NULL; | |
9966 | } | |
9967 | { | |
9968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9969 | _result = new wxIcon (wxPyArtProvider::GetIcon(*_arg0,*_arg1,*_arg2)); | |
9970 | ||
9971 | wxPyEndAllowThreads(__tstate); | |
9972 | if (PyErr_Occurred()) return NULL; | |
9973 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); | |
9974 | _resultobj = Py_BuildValue("s",_ptemp); | |
9975 | { | |
9976 | if (_obj0) | |
9977 | delete _arg0; | |
9978 | } | |
9979 | { | |
9980 | if (_obj1) | |
9981 | delete _arg1; | |
9982 | } | |
9983 | return _resultobj; | |
9984 | } | |
9985 | ||
9986 | static PyObject *_wrap_wxArtProvider_CleanUpProviders(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9987 | PyObject * _resultobj; | |
9988 | char *_kwnames[] = { NULL }; | |
9989 | ||
9990 | self = self; | |
9991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxArtProvider_CleanUpProviders",_kwnames)) | |
9992 | return NULL; | |
9993 | { | |
9994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9995 | wxPyArtProvider::CleanUpProviders(); | |
9996 | ||
9997 | wxPyEndAllowThreads(__tstate); | |
9998 | if (PyErr_Occurred()) return NULL; | |
9999 | } Py_INCREF(Py_None); | |
10000 | _resultobj = Py_None; | |
10001 | return _resultobj; | |
10002 | } | |
10003 | ||
742fc581 RD |
10004 | static void *SwigwxFileHistoryTowxObject(void *ptr) { |
10005 | wxFileHistory *src; | |
10006 | wxObject *dest; | |
10007 | src = (wxFileHistory *) ptr; | |
10008 | dest = (wxObject *) src; | |
10009 | return (void *) dest; | |
10010 | } | |
10011 | ||
10012 | #define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0)) | |
10013 | static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10014 | PyObject * _resultobj; | |
10015 | wxFileHistory * _result; | |
10016 | int _arg0 = (int ) 9; | |
10017 | char *_kwnames[] = { "maxFiles", NULL }; | |
10018 | char _ptemp[128]; | |
10019 | ||
10020 | self = self; | |
10021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0)) | |
10022 | return NULL; | |
10023 | { | |
0e2ff151 | 10024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10025 | _result = (wxFileHistory *)new_wxFileHistory(_arg0); |
742fc581 | 10026 | |
0e2ff151 RD |
10027 | wxPyEndAllowThreads(__tstate); |
10028 | if (PyErr_Occurred()) return NULL; | |
742fc581 RD |
10029 | } if (_result) { |
10030 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p"); | |
10031 | _resultobj = Py_BuildValue("s",_ptemp); | |
10032 | } else { | |
10033 | Py_INCREF(Py_None); | |
10034 | _resultobj = Py_None; | |
10035 | } | |
10036 | return _resultobj; | |
10037 | } | |
10038 | ||
10039 | #define delete_wxFileHistory(_swigobj) (delete _swigobj) | |
10040 | static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10041 | PyObject * _resultobj; | |
10042 | wxFileHistory * _arg0; | |
10043 | PyObject * _argo0 = 0; | |
10044 | char *_kwnames[] = { "self", NULL }; | |
10045 | ||
10046 | self = self; | |
10047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0)) | |
10048 | return NULL; | |
10049 | if (_argo0) { | |
10050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileHistory. Expected _wxFileHistory_p."); | |
10053 | return NULL; | |
10054 | } | |
10055 | } | |
10056 | { | |
0e2ff151 | 10057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10058 | delete_wxFileHistory(_arg0); |
742fc581 | 10059 | |
0e2ff151 RD |
10060 | wxPyEndAllowThreads(__tstate); |
10061 | if (PyErr_Occurred()) return NULL; | |
742fc581 RD |
10062 | } Py_INCREF(Py_None); |
10063 | _resultobj = Py_None; | |
10064 | return _resultobj; | |
10065 | } | |
10066 | ||
10067 | #define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0)) | |
10068 | static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10069 | PyObject * _resultobj; | |
10070 | wxFileHistory * _arg0; | |
10071 | wxString * _arg1; | |
10072 | PyObject * _argo0 = 0; | |
10073 | PyObject * _obj1 = 0; | |
10074 | char *_kwnames[] = { "self","file", NULL }; | |
10075 | ||
10076 | self = self; | |
10077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1)) | |
10078 | return NULL; | |
10079 | if (_argo0) { | |
10080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p."); | |
10083 | return NULL; | |
10084 | } | |
10085 | } | |
10086 | { | |
6824d4f9 RD |
10087 | _arg1 = wxString_in_helper(_obj1); |
10088 | if (_arg1 == NULL) | |
742fc581 | 10089 | return NULL; |
742fc581 RD |
10090 | } |
10091 | { | |
0e2ff151 | 10092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10093 | wxFileHistory_AddFileToHistory(_arg0,*_arg1); |
742fc581 | 10094 | |
0e2ff151 RD |
10095 | wxPyEndAllowThreads(__tstate); |
10096 | if (PyErr_Occurred()) return NULL; | |
742fc581 RD |
10097 | } Py_INCREF(Py_None); |
10098 | _resultobj = Py_None; | |
10099 | { | |
10100 | if (_obj1) | |
10101 | delete _arg1; | |
10102 | } | |
10103 | return _resultobj; | |
10104 | } | |
10105 | ||
10106 | #define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0)) | |
10107 | static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10108 | PyObject * _resultobj; | |
10109 | wxFileHistory * _arg0; | |
10110 | int _arg1; | |
10111 | PyObject * _argo0 = 0; | |
10112 | char *_kwnames[] = { "self","i", NULL }; | |
10113 | ||
10114 | self = self; | |
10115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1)) | |
10116 | return NULL; | |
10117 | if (_argo0) { | |
10118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p."); | |
10121 | return NULL; | |
10122 | } | |
10123 | } | |
10124 | { | |
0e2ff151 | 10125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10126 | wxFileHistory_RemoveFileFromHistory(_arg0,_arg1); |
742fc581 | 10127 | |
0e2ff151 RD |
10128 | wxPyEndAllowThreads(__tstate); |
10129 | if (PyErr_Occurred()) return NULL; | |
742fc581 RD |
10130 | } Py_INCREF(Py_None); |
10131 | _resultobj = Py_None; | |
10132 | return _resultobj; | |
10133 | } | |
10134 | ||
10135 | #define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles()) | |
10136 | static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10137 | PyObject * _resultobj; | |
10138 | int _result; | |
10139 | wxFileHistory * _arg0; | |
10140 | PyObject * _argo0 = 0; | |
10141 | char *_kwnames[] = { "self", NULL }; | |
10142 | ||
10143 | self = self; | |
10144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0)) | |
10145 | return NULL; | |
10146 | if (_argo0) { | |
10147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p."); | |
10150 | return NULL; | |
10151 | } | |
10152 | } | |
10153 | { | |
0e2ff151 | 10154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10155 | _result = (int )wxFileHistory_GetMaxFiles(_arg0); |
742fc581 | 10156 | |
0e2ff151 RD |
10157 | wxPyEndAllowThreads(__tstate); |
10158 | if (PyErr_Occurred()) return NULL; | |
742fc581 RD |
10159 | } _resultobj = Py_BuildValue("i",_result); |
10160 | return _resultobj; | |
10161 | } | |
10162 | ||
10163 | #define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0)) | |
10164 | static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10165 | PyObject * _resultobj; | |
10166 | wxFileHistory * _arg0; | |
10167 | wxMenu * _arg1; | |
10168 | PyObject * _argo0 = 0; | |
10169 | PyObject * _argo1 = 0; | |
10170 | char *_kwnames[] = { "self","menu", NULL }; | |
10171 | ||
10172 | self = self; | |
10173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1)) | |
10174 | return NULL; | |
10175 | if (_argo0) { | |
10176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p."); | |
10179 | return NULL; | |
10180 | } | |
10181 | } | |
10182 | if (_argo1) { | |
10183 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10184 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p."); | |
10186 | return NULL; | |
10187 | } | |
10188 | } | |
10189 | { | |
0e2ff151 | 10190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10191 | wxFileHistory_UseMenu(_arg0,_arg1); |
742fc581 | 10192 | |
0e2ff151 RD |
10193 | wxPyEndAllowThreads(__tstate); |
10194 | if (PyErr_Occurred()) return NULL; | |
742fc581 RD |
10195 | } Py_INCREF(Py_None); |
10196 | _resultobj = Py_None; | |
10197 | return _resultobj; | |
10198 | } | |
10199 | ||
10200 | #define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0)) | |
10201 | static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10202 | PyObject * _resultobj; | |
10203 | wxFileHistory * _arg0; | |
10204 | wxMenu * _arg1; | |
10205 | PyObject * _argo0 = 0; | |
10206 | PyObject * _argo1 = 0; | |
10207 | char *_kwnames[] = { "self","menu", NULL }; | |
10208 | ||
10209 | self = self; | |
10210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1)) | |
10211 | return NULL; | |
10212 | if (_argo0) { | |
10213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p."); | |
10216 | return NULL; | |
10217 | } | |
10218 | } | |
10219 | if (_argo1) { | |
10220 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10221 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p."); | |
10223 | return NULL; | |
10224 | } | |
10225 | } | |
10226 | { | |
0e2ff151 | 10227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10228 | wxFileHistory_RemoveMenu(_arg0,_arg1); |
742fc581 | 10229 | |
0e2ff151 RD |
10230 | wxPyEndAllowThreads(__tstate); |
10231 | if (PyErr_Occurred()) return NULL; | |
742fc581 RD |
10232 | } Py_INCREF(Py_None); |
10233 | _resultobj = Py_None; | |
10234 | return _resultobj; | |
10235 | } | |
10236 | ||
10237 | #define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0)) | |
10238 | static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10239 | PyObject * _resultobj; | |
10240 | wxFileHistory * _arg0; | |
10241 | wxConfigBase * _arg1; | |
10242 | PyObject * _argo0 = 0; | |
10243 | PyObject * _argo1 = 0; | |
10244 | char *_kwnames[] = { "self","config", NULL }; | |
10245 | ||
10246 | self = self; | |
10247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1)) | |
10248 | return NULL; | |
10249 | if (_argo0) { | |
10250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p."); | |
10253 | return NULL; | |
10254 | } | |
10255 | } | |
10256 | if (_argo1) { | |
10257 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10258 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
10259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p."); | |
10260 | return NULL; | |
10261 | } | |
10262 | } | |
10263 | { | |
0e2ff151 | 10264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10265 | wxFileHistory_Load(_arg0,*_arg1); |
742fc581 | 10266 | |
0e2ff151 RD |
10267 | wxPyEndAllowThreads(__tstate); |
10268 | if (PyErr_Occurred()) return NULL; | |
742fc581 RD |
10269 | } Py_INCREF(Py_None); |
10270 | _resultobj = Py_None; | |
10271 | return _resultobj; | |
10272 | } | |
10273 | ||
10274 | #define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0)) | |
10275 | static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10276 | PyObject * _resultobj; | |
10277 | wxFileHistory * _arg0; | |
10278 | wxConfigBase * _arg1; | |
10279 | PyObject * _argo0 = 0; | |
10280 | PyObject * _argo1 = 0; | |
10281 | char *_kwnames[] = { "self","config", NULL }; | |
10282 | ||
10283 | self = self; | |
10284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1)) | |
10285 | return NULL; | |
10286 | if (_argo0) { | |
10287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p."); | |
10290 | return NULL; | |
10291 | } | |
10292 | } | |
10293 | if (_argo1) { | |
10294 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10295 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
10296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p."); | |
10297 | return NULL; | |
10298 | } | |
10299 | } | |
10300 | { | |
0e2ff151 | 10301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10302 | wxFileHistory_Save(_arg0,*_arg1); |
742fc581 | 10303 | |
0e2ff151 RD |
10304 | wxPyEndAllowThreads(__tstate); |
10305 | if (PyErr_Occurred()) return NULL; | |
742fc581 RD |
10306 | } Py_INCREF(Py_None); |
10307 | _resultobj = Py_None; | |
10308 | return _resultobj; | |
10309 | } | |
10310 | ||
10311 | #define wxFileHistory_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu()) | |
10312 | static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10313 | PyObject * _resultobj; | |
10314 | wxFileHistory * _arg0; | |
10315 | PyObject * _argo0 = 0; | |
10316 | char *_kwnames[] = { "self", NULL }; | |
10317 | ||
10318 | self = self; | |
10319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0)) | |
10320 | return NULL; | |
10321 | if (_argo0) { | |
10322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p."); | |
10325 | return NULL; | |
10326 | } | |
10327 | } | |
10328 | { | |
0e2ff151 | 10329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10330 | wxFileHistory_AddFilesToMenu(_arg0); |
742fc581 | 10331 | |
0e2ff151 RD |
10332 | wxPyEndAllowThreads(__tstate); |
10333 | if (PyErr_Occurred()) return NULL; | |
742fc581 RD |
10334 | } Py_INCREF(Py_None); |
10335 | _resultobj = Py_None; | |
10336 | return _resultobj; | |
10337 | } | |
10338 | ||
40699168 RD |
10339 | #define wxFileHistory_AddFilesToThisMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0)) |
10340 | static PyObject *_wrap_wxFileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
742fc581 RD |
10341 | PyObject * _resultobj; |
10342 | wxFileHistory * _arg0; | |
10343 | wxMenu * _arg1; | |
10344 | PyObject * _argo0 = 0; | |
10345 | PyObject * _argo1 = 0; | |
10346 | char *_kwnames[] = { "self","menu", NULL }; | |
10347 | ||
10348 | self = self; | |
40699168 | 10349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToThisMenu",_kwnames,&_argo0,&_argo1)) |
742fc581 RD |
10350 | return NULL; |
10351 | if (_argo0) { | |
10352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
40699168 | 10354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToThisMenu. Expected _wxFileHistory_p."); |
742fc581 RD |
10355 | return NULL; |
10356 | } | |
10357 | } | |
10358 | if (_argo1) { | |
10359 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10360 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
40699168 | 10361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToThisMenu. Expected _wxMenu_p."); |
742fc581 RD |
10362 | return NULL; |
10363 | } | |
10364 | } | |
10365 | { | |
0e2ff151 | 10366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
40699168 | 10367 | wxFileHistory_AddFilesToThisMenu(_arg0,_arg1); |
742fc581 | 10368 | |
0e2ff151 RD |
10369 | wxPyEndAllowThreads(__tstate); |
10370 | if (PyErr_Occurred()) return NULL; | |
742fc581 RD |
10371 | } Py_INCREF(Py_None); |
10372 | _resultobj = Py_None; | |
10373 | return _resultobj; | |
10374 | } | |
10375 | ||
10376 | #define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0)) | |
10377 | static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10378 | PyObject * _resultobj; | |
10379 | wxString * _result; | |
10380 | wxFileHistory * _arg0; | |
10381 | int _arg1; | |
10382 | PyObject * _argo0 = 0; | |
10383 | char *_kwnames[] = { "self","i", NULL }; | |
10384 | ||
10385 | self = self; | |
10386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1)) | |
10387 | return NULL; | |
10388 | if (_argo0) { | |
10389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p."); | |
10392 | return NULL; | |
10393 | } | |
10394 | } | |
10395 | { | |
0e2ff151 | 10396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10397 | _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1)); |
742fc581 | 10398 | |
0e2ff151 RD |
10399 | wxPyEndAllowThreads(__tstate); |
10400 | if (PyErr_Occurred()) return NULL; | |
742fc581 | 10401 | }{ |
6824d4f9 RD |
10402 | #if wxUSE_UNICODE |
10403 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10404 | #else | |
742fc581 | 10405 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 10406 | #endif |
742fc581 RD |
10407 | } |
10408 | { | |
10409 | delete _result; | |
10410 | } | |
10411 | return _resultobj; | |
10412 | } | |
10413 | ||
10414 | #define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount()) | |
10415 | static PyObject *_wrap_wxFileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10416 | PyObject * _resultobj; | |
10417 | int _result; | |
10418 | wxFileHistory * _arg0; | |
10419 | PyObject * _argo0 = 0; | |
10420 | char *_kwnames[] = { "self", NULL }; | |
10421 | ||
10422 | self = self; | |
10423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetCount",_kwnames,&_argo0)) | |
10424 | return NULL; | |
10425 | if (_argo0) { | |
10426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetCount. Expected _wxFileHistory_p."); | |
10429 | return NULL; | |
10430 | } | |
10431 | } | |
10432 | { | |
0e2ff151 | 10433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10434 | _result = (int )wxFileHistory_GetCount(_arg0); |
742fc581 | 10435 | |
0e2ff151 RD |
10436 | wxPyEndAllowThreads(__tstate); |
10437 | if (PyErr_Occurred()) return NULL; | |
742fc581 RD |
10438 | } _resultobj = Py_BuildValue("i",_result); |
10439 | return _resultobj; | |
10440 | } | |
10441 | ||
10442 | #define wxFileHistory_GetNoHistoryFiles(_swigobj) (_swigobj->GetNoHistoryFiles()) | |
10443 | static PyObject *_wrap_wxFileHistory_GetNoHistoryFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10444 | PyObject * _resultobj; | |
10445 | int _result; | |
10446 | wxFileHistory * _arg0; | |
10447 | PyObject * _argo0 = 0; | |
10448 | char *_kwnames[] = { "self", NULL }; | |
10449 | ||
10450 | self = self; | |
10451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetNoHistoryFiles",_kwnames,&_argo0)) | |
10452 | return NULL; | |
10453 | if (_argo0) { | |
10454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetNoHistoryFiles. Expected _wxFileHistory_p."); | |
10457 | return NULL; | |
10458 | } | |
10459 | } | |
10460 | { | |
0e2ff151 | 10461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10462 | _result = (int )wxFileHistory_GetNoHistoryFiles(_arg0); |
742fc581 | 10463 | |
0e2ff151 RD |
10464 | wxPyEndAllowThreads(__tstate); |
10465 | if (PyErr_Occurred()) return NULL; | |
742fc581 RD |
10466 | } _resultobj = Py_BuildValue("i",_result); |
10467 | return _resultobj; | |
10468 | } | |
10469 | ||
4ea97290 RD |
10470 | static void *SwigwxEffectsTowxObject(void *ptr) { |
10471 | wxEffects *src; | |
10472 | wxObject *dest; | |
10473 | src = (wxEffects *) ptr; | |
10474 | dest = (wxObject *) src; | |
10475 | return (void *) dest; | |
10476 | } | |
10477 | ||
10478 | #define new_wxEffects() (new wxEffects()) | |
10479 | static PyObject *_wrap_new_wxEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10480 | PyObject * _resultobj; | |
10481 | wxEffects * _result; | |
10482 | char *_kwnames[] = { NULL }; | |
10483 | char _ptemp[128]; | |
10484 | ||
10485 | self = self; | |
10486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEffects",_kwnames)) | |
10487 | return NULL; | |
10488 | { | |
10489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10490 | _result = (wxEffects *)new_wxEffects(); | |
10491 | ||
10492 | wxPyEndAllowThreads(__tstate); | |
10493 | if (PyErr_Occurred()) return NULL; | |
10494 | } if (_result) { | |
10495 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEffects_p"); | |
10496 | _resultobj = Py_BuildValue("s",_ptemp); | |
10497 | } else { | |
10498 | Py_INCREF(Py_None); | |
10499 | _resultobj = Py_None; | |
10500 | } | |
10501 | return _resultobj; | |
10502 | } | |
10503 | ||
10504 | #define wxEffects_GetHighlightColour(_swigobj) (_swigobj->GetHighlightColour()) | |
10505 | static PyObject *_wrap_wxEffects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10506 | PyObject * _resultobj; | |
10507 | wxColour * _result; | |
10508 | wxEffects * _arg0; | |
10509 | PyObject * _argo0 = 0; | |
10510 | char *_kwnames[] = { "self", NULL }; | |
10511 | char _ptemp[128]; | |
10512 | ||
10513 | self = self; | |
10514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetHighlightColour",_kwnames,&_argo0)) | |
10515 | return NULL; | |
10516 | if (_argo0) { | |
10517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetHighlightColour. Expected _wxEffects_p."); | |
10520 | return NULL; | |
10521 | } | |
10522 | } | |
10523 | { | |
10524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10525 | _result = new wxColour (wxEffects_GetHighlightColour(_arg0)); | |
10526 | ||
10527 | wxPyEndAllowThreads(__tstate); | |
10528 | if (PyErr_Occurred()) return NULL; | |
10529 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10530 | _resultobj = Py_BuildValue("s",_ptemp); | |
10531 | return _resultobj; | |
10532 | } | |
10533 | ||
10534 | #define wxEffects_GetLightShadow(_swigobj) (_swigobj->GetLightShadow()) | |
10535 | static PyObject *_wrap_wxEffects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10536 | PyObject * _resultobj; | |
10537 | wxColour * _result; | |
10538 | wxEffects * _arg0; | |
10539 | PyObject * _argo0 = 0; | |
10540 | char *_kwnames[] = { "self", NULL }; | |
10541 | char _ptemp[128]; | |
10542 | ||
10543 | self = self; | |
10544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetLightShadow",_kwnames,&_argo0)) | |
10545 | return NULL; | |
10546 | if (_argo0) { | |
10547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetLightShadow. Expected _wxEffects_p."); | |
10550 | return NULL; | |
10551 | } | |
10552 | } | |
10553 | { | |
10554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10555 | _result = new wxColour (wxEffects_GetLightShadow(_arg0)); | |
10556 | ||
10557 | wxPyEndAllowThreads(__tstate); | |
10558 | if (PyErr_Occurred()) return NULL; | |
10559 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10560 | _resultobj = Py_BuildValue("s",_ptemp); | |
10561 | return _resultobj; | |
10562 | } | |
10563 | ||
10564 | #define wxEffects_GetFaceColour(_swigobj) (_swigobj->GetFaceColour()) | |
10565 | static PyObject *_wrap_wxEffects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10566 | PyObject * _resultobj; | |
10567 | wxColour * _result; | |
10568 | wxEffects * _arg0; | |
10569 | PyObject * _argo0 = 0; | |
10570 | char *_kwnames[] = { "self", NULL }; | |
10571 | char _ptemp[128]; | |
10572 | ||
10573 | self = self; | |
10574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetFaceColour",_kwnames,&_argo0)) | |
10575 | return NULL; | |
10576 | if (_argo0) { | |
10577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetFaceColour. Expected _wxEffects_p."); | |
10580 | return NULL; | |
10581 | } | |
10582 | } | |
10583 | { | |
10584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10585 | _result = new wxColour (wxEffects_GetFaceColour(_arg0)); | |
10586 | ||
10587 | wxPyEndAllowThreads(__tstate); | |
10588 | if (PyErr_Occurred()) return NULL; | |
10589 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10590 | _resultobj = Py_BuildValue("s",_ptemp); | |
10591 | return _resultobj; | |
10592 | } | |
10593 | ||
10594 | #define wxEffects_GetMediumShadow(_swigobj) (_swigobj->GetMediumShadow()) | |
10595 | static PyObject *_wrap_wxEffects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10596 | PyObject * _resultobj; | |
10597 | wxColour * _result; | |
10598 | wxEffects * _arg0; | |
10599 | PyObject * _argo0 = 0; | |
10600 | char *_kwnames[] = { "self", NULL }; | |
10601 | char _ptemp[128]; | |
10602 | ||
10603 | self = self; | |
10604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetMediumShadow",_kwnames,&_argo0)) | |
10605 | return NULL; | |
10606 | if (_argo0) { | |
10607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetMediumShadow. Expected _wxEffects_p."); | |
10610 | return NULL; | |
10611 | } | |
10612 | } | |
10613 | { | |
10614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10615 | _result = new wxColour (wxEffects_GetMediumShadow(_arg0)); | |
10616 | ||
10617 | wxPyEndAllowThreads(__tstate); | |
10618 | if (PyErr_Occurred()) return NULL; | |
10619 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10620 | _resultobj = Py_BuildValue("s",_ptemp); | |
10621 | return _resultobj; | |
10622 | } | |
10623 | ||
10624 | #define wxEffects_GetDarkShadow(_swigobj) (_swigobj->GetDarkShadow()) | |
10625 | static PyObject *_wrap_wxEffects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10626 | PyObject * _resultobj; | |
10627 | wxColour * _result; | |
10628 | wxEffects * _arg0; | |
10629 | PyObject * _argo0 = 0; | |
10630 | char *_kwnames[] = { "self", NULL }; | |
10631 | char _ptemp[128]; | |
10632 | ||
10633 | self = self; | |
10634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetDarkShadow",_kwnames,&_argo0)) | |
10635 | return NULL; | |
10636 | if (_argo0) { | |
10637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetDarkShadow. Expected _wxEffects_p."); | |
10640 | return NULL; | |
10641 | } | |
10642 | } | |
10643 | { | |
10644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10645 | _result = new wxColour (wxEffects_GetDarkShadow(_arg0)); | |
10646 | ||
10647 | wxPyEndAllowThreads(__tstate); | |
10648 | if (PyErr_Occurred()) return NULL; | |
10649 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10650 | _resultobj = Py_BuildValue("s",_ptemp); | |
10651 | return _resultobj; | |
10652 | } | |
10653 | ||
10654 | #define wxEffects_SetHighlightColour(_swigobj,_swigarg0) (_swigobj->SetHighlightColour(_swigarg0)) | |
10655 | static PyObject *_wrap_wxEffects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10656 | PyObject * _resultobj; | |
10657 | wxEffects * _arg0; | |
10658 | wxColour * _arg1; | |
10659 | PyObject * _argo0 = 0; | |
10660 | wxColour temp; | |
10661 | PyObject * _obj1 = 0; | |
10662 | char *_kwnames[] = { "self","c", NULL }; | |
10663 | ||
10664 | self = self; | |
10665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetHighlightColour",_kwnames,&_argo0,&_obj1)) | |
10666 | return NULL; | |
10667 | if (_argo0) { | |
10668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetHighlightColour. Expected _wxEffects_p."); | |
10671 | return NULL; | |
10672 | } | |
10673 | } | |
10674 | { | |
10675 | _arg1 = &temp; | |
10676 | if (! wxColour_helper(_obj1, &_arg1)) | |
10677 | return NULL; | |
10678 | } | |
10679 | { | |
10680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10681 | wxEffects_SetHighlightColour(_arg0,*_arg1); | |
10682 | ||
10683 | wxPyEndAllowThreads(__tstate); | |
10684 | if (PyErr_Occurred()) return NULL; | |
10685 | } Py_INCREF(Py_None); | |
10686 | _resultobj = Py_None; | |
10687 | return _resultobj; | |
10688 | } | |
10689 | ||
10690 | #define wxEffects_SetLightShadow(_swigobj,_swigarg0) (_swigobj->SetLightShadow(_swigarg0)) | |
10691 | static PyObject *_wrap_wxEffects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10692 | PyObject * _resultobj; | |
10693 | wxEffects * _arg0; | |
10694 | wxColour * _arg1; | |
10695 | PyObject * _argo0 = 0; | |
10696 | wxColour temp; | |
10697 | PyObject * _obj1 = 0; | |
10698 | char *_kwnames[] = { "self","c", NULL }; | |
10699 | ||
10700 | self = self; | |
10701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetLightShadow",_kwnames,&_argo0,&_obj1)) | |
10702 | return NULL; | |
10703 | if (_argo0) { | |
10704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetLightShadow. Expected _wxEffects_p."); | |
10707 | return NULL; | |
10708 | } | |
10709 | } | |
10710 | { | |
10711 | _arg1 = &temp; | |
10712 | if (! wxColour_helper(_obj1, &_arg1)) | |
10713 | return NULL; | |
10714 | } | |
10715 | { | |
10716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10717 | wxEffects_SetLightShadow(_arg0,*_arg1); | |
10718 | ||
10719 | wxPyEndAllowThreads(__tstate); | |
10720 | if (PyErr_Occurred()) return NULL; | |
10721 | } Py_INCREF(Py_None); | |
10722 | _resultobj = Py_None; | |
10723 | return _resultobj; | |
10724 | } | |
10725 | ||
10726 | #define wxEffects_SetFaceColour(_swigobj,_swigarg0) (_swigobj->SetFaceColour(_swigarg0)) | |
10727 | static PyObject *_wrap_wxEffects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10728 | PyObject * _resultobj; | |
10729 | wxEffects * _arg0; | |
10730 | wxColour * _arg1; | |
10731 | PyObject * _argo0 = 0; | |
10732 | wxColour temp; | |
10733 | PyObject * _obj1 = 0; | |
10734 | char *_kwnames[] = { "self","c", NULL }; | |
10735 | ||
10736 | self = self; | |
10737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetFaceColour",_kwnames,&_argo0,&_obj1)) | |
10738 | return NULL; | |
10739 | if (_argo0) { | |
10740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetFaceColour. Expected _wxEffects_p."); | |
10743 | return NULL; | |
10744 | } | |
10745 | } | |
10746 | { | |
10747 | _arg1 = &temp; | |
10748 | if (! wxColour_helper(_obj1, &_arg1)) | |
10749 | return NULL; | |
10750 | } | |
10751 | { | |
10752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10753 | wxEffects_SetFaceColour(_arg0,*_arg1); | |
10754 | ||
10755 | wxPyEndAllowThreads(__tstate); | |
10756 | if (PyErr_Occurred()) return NULL; | |
10757 | } Py_INCREF(Py_None); | |
10758 | _resultobj = Py_None; | |
10759 | return _resultobj; | |
10760 | } | |
10761 | ||
10762 | #define wxEffects_SetMediumShadow(_swigobj,_swigarg0) (_swigobj->SetMediumShadow(_swigarg0)) | |
10763 | static PyObject *_wrap_wxEffects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10764 | PyObject * _resultobj; | |
10765 | wxEffects * _arg0; | |
10766 | wxColour * _arg1; | |
10767 | PyObject * _argo0 = 0; | |
10768 | wxColour temp; | |
10769 | PyObject * _obj1 = 0; | |
10770 | char *_kwnames[] = { "self","c", NULL }; | |
10771 | ||
10772 | self = self; | |
10773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetMediumShadow",_kwnames,&_argo0,&_obj1)) | |
10774 | return NULL; | |
10775 | if (_argo0) { | |
10776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetMediumShadow. Expected _wxEffects_p."); | |
10779 | return NULL; | |
10780 | } | |
10781 | } | |
10782 | { | |
10783 | _arg1 = &temp; | |
10784 | if (! wxColour_helper(_obj1, &_arg1)) | |
10785 | return NULL; | |
10786 | } | |
10787 | { | |
10788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10789 | wxEffects_SetMediumShadow(_arg0,*_arg1); | |
10790 | ||
10791 | wxPyEndAllowThreads(__tstate); | |
10792 | if (PyErr_Occurred()) return NULL; | |
10793 | } Py_INCREF(Py_None); | |
10794 | _resultobj = Py_None; | |
10795 | return _resultobj; | |
10796 | } | |
10797 | ||
10798 | #define wxEffects_SetDarkShadow(_swigobj,_swigarg0) (_swigobj->SetDarkShadow(_swigarg0)) | |
10799 | static PyObject *_wrap_wxEffects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10800 | PyObject * _resultobj; | |
10801 | wxEffects * _arg0; | |
10802 | wxColour * _arg1; | |
10803 | PyObject * _argo0 = 0; | |
10804 | wxColour temp; | |
10805 | PyObject * _obj1 = 0; | |
10806 | char *_kwnames[] = { "self","c", NULL }; | |
10807 | ||
10808 | self = self; | |
10809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetDarkShadow",_kwnames,&_argo0,&_obj1)) | |
10810 | return NULL; | |
10811 | if (_argo0) { | |
10812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetDarkShadow. Expected _wxEffects_p."); | |
10815 | return NULL; | |
10816 | } | |
10817 | } | |
10818 | { | |
10819 | _arg1 = &temp; | |
10820 | if (! wxColour_helper(_obj1, &_arg1)) | |
10821 | return NULL; | |
10822 | } | |
10823 | { | |
10824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10825 | wxEffects_SetDarkShadow(_arg0,*_arg1); | |
10826 | ||
10827 | wxPyEndAllowThreads(__tstate); | |
10828 | if (PyErr_Occurred()) return NULL; | |
10829 | } Py_INCREF(Py_None); | |
10830 | _resultobj = Py_None; | |
10831 | return _resultobj; | |
10832 | } | |
10833 | ||
10834 | #define wxEffects_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10835 | static PyObject *_wrap_wxEffects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10836 | PyObject * _resultobj; | |
10837 | wxEffects * _arg0; | |
10838 | wxColour * _arg1; | |
10839 | wxColour * _arg2; | |
10840 | wxColour * _arg3; | |
10841 | wxColour * _arg4; | |
10842 | wxColour * _arg5; | |
10843 | PyObject * _argo0 = 0; | |
10844 | wxColour temp; | |
10845 | PyObject * _obj1 = 0; | |
10846 | wxColour temp0; | |
10847 | PyObject * _obj2 = 0; | |
10848 | wxColour temp1; | |
10849 | PyObject * _obj3 = 0; | |
10850 | wxColour temp2; | |
10851 | PyObject * _obj4 = 0; | |
10852 | wxColour temp3; | |
10853 | PyObject * _obj5 = 0; | |
10854 | char *_kwnames[] = { "self","highlightColour","lightShadow","faceColour","mediumShadow","darkShadow", NULL }; | |
10855 | ||
10856 | self = self; | |
10857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOOOO:wxEffects_Set",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&_obj4,&_obj5)) | |
10858 | return NULL; | |
10859 | if (_argo0) { | |
10860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_Set. Expected _wxEffects_p."); | |
10863 | return NULL; | |
10864 | } | |
10865 | } | |
10866 | { | |
10867 | _arg1 = &temp; | |
10868 | if (! wxColour_helper(_obj1, &_arg1)) | |
10869 | return NULL; | |
10870 | } | |
10871 | { | |
10872 | _arg2 = &temp0; | |
10873 | if (! wxColour_helper(_obj2, &_arg2)) | |
10874 | return NULL; | |
10875 | } | |
10876 | { | |
10877 | _arg3 = &temp1; | |
10878 | if (! wxColour_helper(_obj3, &_arg3)) | |
10879 | return NULL; | |
10880 | } | |
10881 | { | |
10882 | _arg4 = &temp2; | |
10883 | if (! wxColour_helper(_obj4, &_arg4)) | |
10884 | return NULL; | |
10885 | } | |
10886 | { | |
10887 | _arg5 = &temp3; | |
10888 | if (! wxColour_helper(_obj5, &_arg5)) | |
10889 | return NULL; | |
10890 | } | |
10891 | { | |
10892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10893 | wxEffects_Set(_arg0,*_arg1,*_arg2,*_arg3,*_arg4,*_arg5); | |
10894 | ||
10895 | wxPyEndAllowThreads(__tstate); | |
10896 | if (PyErr_Occurred()) return NULL; | |
10897 | } Py_INCREF(Py_None); | |
10898 | _resultobj = Py_None; | |
10899 | return _resultobj; | |
10900 | } | |
10901 | ||
10902 | #define wxEffects_DrawSunkenEdge(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawSunkenEdge(_swigarg0,_swigarg1,_swigarg2)) | |
10903 | static PyObject *_wrap_wxEffects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10904 | PyObject * _resultobj; | |
10905 | wxEffects * _arg0; | |
10906 | wxDC * _arg1; | |
10907 | wxRect * _arg2; | |
10908 | int _arg3 = (int ) 1; | |
10909 | PyObject * _argo0 = 0; | |
10910 | PyObject * _argo1 = 0; | |
10911 | wxRect temp; | |
10912 | PyObject * _obj2 = 0; | |
10913 | char *_kwnames[] = { "self","dc","rect","borderSize", NULL }; | |
10914 | ||
10915 | self = self; | |
10916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxEffects_DrawSunkenEdge",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3)) | |
10917 | return NULL; | |
10918 | if (_argo0) { | |
10919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_DrawSunkenEdge. Expected _wxEffects_p."); | |
10922 | return NULL; | |
10923 | } | |
10924 | } | |
10925 | if (_argo1) { | |
10926 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10927 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
10928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEffects_DrawSunkenEdge. Expected _wxDC_p."); | |
10929 | return NULL; | |
10930 | } | |
10931 | } | |
10932 | { | |
10933 | _arg2 = &temp; | |
10934 | if (! wxRect_helper(_obj2, &_arg2)) | |
10935 | return NULL; | |
10936 | } | |
10937 | { | |
10938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10939 | wxEffects_DrawSunkenEdge(_arg0,*_arg1,*_arg2,_arg3); | |
10940 | ||
10941 | wxPyEndAllowThreads(__tstate); | |
10942 | if (PyErr_Occurred()) return NULL; | |
10943 | } Py_INCREF(Py_None); | |
10944 | _resultobj = Py_None; | |
10945 | return _resultobj; | |
10946 | } | |
10947 | ||
10948 | #define wxEffects_TileBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->TileBitmap(_swigarg0,_swigarg1,_swigarg2)) | |
10949 | static PyObject *_wrap_wxEffects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10950 | PyObject * _resultobj; | |
10951 | bool _result; | |
10952 | wxEffects * _arg0; | |
10953 | wxRect * _arg1; | |
10954 | wxDC * _arg2; | |
10955 | wxBitmap * _arg3; | |
10956 | PyObject * _argo0 = 0; | |
10957 | wxRect temp; | |
10958 | PyObject * _obj1 = 0; | |
10959 | PyObject * _argo2 = 0; | |
10960 | PyObject * _argo3 = 0; | |
10961 | char *_kwnames[] = { "self","rect","dc","bitmap", NULL }; | |
10962 | ||
10963 | self = self; | |
10964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxEffects_TileBitmap",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
10965 | return NULL; | |
10966 | if (_argo0) { | |
10967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_TileBitmap. Expected _wxEffects_p."); | |
10970 | return NULL; | |
10971 | } | |
10972 | } | |
10973 | { | |
10974 | _arg1 = &temp; | |
10975 | if (! wxRect_helper(_obj1, &_arg1)) | |
10976 | return NULL; | |
10977 | } | |
10978 | if (_argo2) { | |
10979 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10980 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
10981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxEffects_TileBitmap. Expected _wxDC_p."); | |
10982 | return NULL; | |
10983 | } | |
10984 | } | |
10985 | if (_argo3) { | |
10986 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
10987 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
10988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxEffects_TileBitmap. Expected _wxBitmap_p."); | |
10989 | return NULL; | |
10990 | } | |
10991 | } | |
10992 | { | |
10993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10994 | _result = (bool )wxEffects_TileBitmap(_arg0,*_arg1,*_arg2,*_arg3); | |
10995 | ||
10996 | wxPyEndAllowThreads(__tstate); | |
10997 | if (PyErr_Occurred()) return NULL; | |
10998 | } _resultobj = Py_BuildValue("i",_result); | |
10999 | return _resultobj; | |
11000 | } | |
11001 | ||
11002 | #define new_wxSingleInstanceChecker(_swigarg0,_swigarg1) (new wxSingleInstanceChecker(_swigarg0,_swigarg1)) | |
11003 | static PyObject *_wrap_new_wxSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11004 | PyObject * _resultobj; | |
11005 | wxSingleInstanceChecker * _result; | |
11006 | wxString * _arg0; | |
11007 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
11008 | PyObject * _obj0 = 0; | |
11009 | PyObject * _obj1 = 0; | |
11010 | char *_kwnames[] = { "name","path", NULL }; | |
11011 | char _ptemp[128]; | |
11012 | ||
11013 | self = self; | |
11014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxSingleInstanceChecker",_kwnames,&_obj0,&_obj1)) | |
11015 | return NULL; | |
11016 | { | |
11017 | _arg0 = wxString_in_helper(_obj0); | |
11018 | if (_arg0 == NULL) | |
11019 | return NULL; | |
11020 | } | |
11021 | if (_obj1) | |
11022 | { | |
11023 | _arg1 = wxString_in_helper(_obj1); | |
11024 | if (_arg1 == NULL) | |
11025 | return NULL; | |
11026 | } | |
11027 | { | |
11028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11029 | _result = (wxSingleInstanceChecker *)new_wxSingleInstanceChecker(*_arg0,*_arg1); | |
11030 | ||
11031 | wxPyEndAllowThreads(__tstate); | |
11032 | if (PyErr_Occurred()) return NULL; | |
11033 | } if (_result) { | |
11034 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSingleInstanceChecker_p"); | |
11035 | _resultobj = Py_BuildValue("s",_ptemp); | |
11036 | } else { | |
11037 | Py_INCREF(Py_None); | |
11038 | _resultobj = Py_None; | |
11039 | } | |
11040 | { | |
11041 | if (_obj0) | |
11042 | delete _arg0; | |
11043 | } | |
11044 | { | |
11045 | if (_obj1) | |
11046 | delete _arg1; | |
11047 | } | |
11048 | return _resultobj; | |
11049 | } | |
11050 | ||
11051 | #define new_wxPreSingleInstanceChecker() (new wxSingleInstanceChecker()) | |
11052 | static PyObject *_wrap_new_wxPreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11053 | PyObject * _resultobj; | |
11054 | wxSingleInstanceChecker * _result; | |
11055 | char *_kwnames[] = { NULL }; | |
11056 | char _ptemp[128]; | |
11057 | ||
11058 | self = self; | |
11059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSingleInstanceChecker",_kwnames)) | |
11060 | return NULL; | |
11061 | { | |
11062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11063 | _result = (wxSingleInstanceChecker *)new_wxPreSingleInstanceChecker(); | |
11064 | ||
11065 | wxPyEndAllowThreads(__tstate); | |
11066 | if (PyErr_Occurred()) return NULL; | |
11067 | } if (_result) { | |
11068 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSingleInstanceChecker_p"); | |
11069 | _resultobj = Py_BuildValue("s",_ptemp); | |
11070 | } else { | |
11071 | Py_INCREF(Py_None); | |
11072 | _resultobj = Py_None; | |
11073 | } | |
11074 | return _resultobj; | |
11075 | } | |
11076 | ||
11077 | #define delete_wxSingleInstanceChecker(_swigobj) (delete _swigobj) | |
11078 | static PyObject *_wrap_delete_wxSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11079 | PyObject * _resultobj; | |
11080 | wxSingleInstanceChecker * _arg0; | |
11081 | PyObject * _argo0 = 0; | |
11082 | char *_kwnames[] = { "self", NULL }; | |
11083 | ||
11084 | self = self; | |
11085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxSingleInstanceChecker",_kwnames,&_argo0)) | |
11086 | return NULL; | |
11087 | if (_argo0) { | |
11088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleInstanceChecker_p")) { | |
11090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxSingleInstanceChecker. Expected _wxSingleInstanceChecker_p."); | |
11091 | return NULL; | |
11092 | } | |
11093 | } | |
11094 | { | |
11095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11096 | delete_wxSingleInstanceChecker(_arg0); | |
11097 | ||
11098 | wxPyEndAllowThreads(__tstate); | |
11099 | if (PyErr_Occurred()) return NULL; | |
11100 | } Py_INCREF(Py_None); | |
11101 | _resultobj = Py_None; | |
11102 | return _resultobj; | |
11103 | } | |
11104 | ||
11105 | #define wxSingleInstanceChecker_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1)) | |
11106 | static PyObject *_wrap_wxSingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11107 | PyObject * _resultobj; | |
11108 | bool _result; | |
11109 | wxSingleInstanceChecker * _arg0; | |
11110 | wxString * _arg1; | |
11111 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
11112 | PyObject * _argo0 = 0; | |
11113 | PyObject * _obj1 = 0; | |
11114 | PyObject * _obj2 = 0; | |
11115 | char *_kwnames[] = { "self","name","path", NULL }; | |
11116 | ||
11117 | self = self; | |
11118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxSingleInstanceChecker_Create",_kwnames,&_argo0,&_obj1,&_obj2)) | |
11119 | return NULL; | |
11120 | if (_argo0) { | |
11121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleInstanceChecker_p")) { | |
11123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleInstanceChecker_Create. Expected _wxSingleInstanceChecker_p."); | |
11124 | return NULL; | |
11125 | } | |
11126 | } | |
11127 | { | |
11128 | _arg1 = wxString_in_helper(_obj1); | |
11129 | if (_arg1 == NULL) | |
11130 | return NULL; | |
11131 | } | |
11132 | if (_obj2) | |
11133 | { | |
11134 | _arg2 = wxString_in_helper(_obj2); | |
11135 | if (_arg2 == NULL) | |
11136 | return NULL; | |
11137 | } | |
11138 | { | |
11139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11140 | _result = (bool )wxSingleInstanceChecker_Create(_arg0,*_arg1,*_arg2); | |
11141 | ||
11142 | wxPyEndAllowThreads(__tstate); | |
11143 | if (PyErr_Occurred()) return NULL; | |
11144 | } _resultobj = Py_BuildValue("i",_result); | |
11145 | { | |
11146 | if (_obj1) | |
11147 | delete _arg1; | |
11148 | } | |
11149 | { | |
11150 | if (_obj2) | |
11151 | delete _arg2; | |
11152 | } | |
11153 | return _resultobj; | |
11154 | } | |
11155 | ||
11156 | #define wxSingleInstanceChecker_IsAnotherRunning(_swigobj) (_swigobj->IsAnotherRunning()) | |
11157 | static PyObject *_wrap_wxSingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11158 | PyObject * _resultobj; | |
11159 | bool _result; | |
11160 | wxSingleInstanceChecker * _arg0; | |
11161 | PyObject * _argo0 = 0; | |
11162 | char *_kwnames[] = { "self", NULL }; | |
11163 | ||
11164 | self = self; | |
11165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleInstanceChecker_IsAnotherRunning",_kwnames,&_argo0)) | |
11166 | return NULL; | |
11167 | if (_argo0) { | |
11168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleInstanceChecker_p")) { | |
11170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleInstanceChecker_IsAnotherRunning. Expected _wxSingleInstanceChecker_p."); | |
11171 | return NULL; | |
11172 | } | |
11173 | } | |
11174 | { | |
11175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11176 | _result = (bool )wxSingleInstanceChecker_IsAnotherRunning(_arg0); | |
11177 | ||
11178 | wxPyEndAllowThreads(__tstate); | |
11179 | if (PyErr_Occurred()) return NULL; | |
11180 | } _resultobj = Py_BuildValue("i",_result); | |
11181 | return _resultobj; | |
11182 | } | |
11183 | ||
e6056257 | 11184 | static PyMethodDef misc2cMethods[] = { |
4ea97290 RD |
11185 | { "wxSingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_wxSingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, |
11186 | { "wxSingleInstanceChecker_Create", (PyCFunction) _wrap_wxSingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
11187 | { "delete_wxSingleInstanceChecker", (PyCFunction) _wrap_delete_wxSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
11188 | { "new_wxPreSingleInstanceChecker", (PyCFunction) _wrap_new_wxPreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
11189 | { "new_wxSingleInstanceChecker", (PyCFunction) _wrap_new_wxSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
11190 | { "wxEffects_TileBitmap", (PyCFunction) _wrap_wxEffects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11191 | { "wxEffects_DrawSunkenEdge", (PyCFunction) _wrap_wxEffects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
11192 | { "wxEffects_Set", (PyCFunction) _wrap_wxEffects_Set, METH_VARARGS | METH_KEYWORDS }, | |
11193 | { "wxEffects_SetDarkShadow", (PyCFunction) _wrap_wxEffects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
11194 | { "wxEffects_SetMediumShadow", (PyCFunction) _wrap_wxEffects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
11195 | { "wxEffects_SetFaceColour", (PyCFunction) _wrap_wxEffects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
11196 | { "wxEffects_SetLightShadow", (PyCFunction) _wrap_wxEffects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
11197 | { "wxEffects_SetHighlightColour", (PyCFunction) _wrap_wxEffects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
11198 | { "wxEffects_GetDarkShadow", (PyCFunction) _wrap_wxEffects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
11199 | { "wxEffects_GetMediumShadow", (PyCFunction) _wrap_wxEffects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
11200 | { "wxEffects_GetFaceColour", (PyCFunction) _wrap_wxEffects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
11201 | { "wxEffects_GetLightShadow", (PyCFunction) _wrap_wxEffects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
11202 | { "wxEffects_GetHighlightColour", (PyCFunction) _wrap_wxEffects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
11203 | { "new_wxEffects", (PyCFunction) _wrap_new_wxEffects, METH_VARARGS | METH_KEYWORDS }, | |
742fc581 RD |
11204 | { "wxFileHistory_GetNoHistoryFiles", (PyCFunction) _wrap_wxFileHistory_GetNoHistoryFiles, METH_VARARGS | METH_KEYWORDS }, |
11205 | { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
11206 | { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
40699168 | 11207 | { "wxFileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, |
742fc581 RD |
11208 | { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, |
11209 | { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
11210 | { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
11211 | { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
11212 | { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
11213 | { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
11214 | { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
11215 | { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
11216 | { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
11217 | { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
3bc1a8e6 RD |
11218 | { "wxArtProvider_CleanUpProviders", (PyCFunction) _wrap_wxArtProvider_CleanUpProviders, METH_VARARGS | METH_KEYWORDS }, |
11219 | { "wxArtProvider_GetIcon", (PyCFunction) _wrap_wxArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11220 | { "wxArtProvider_GetBitmap", (PyCFunction) _wrap_wxArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11221 | { "wxArtProvider_RemoveProvider", (PyCFunction) _wrap_wxArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
11222 | { "wxArtProvider_PopProvider", (PyCFunction) _wrap_wxArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
11223 | { "wxArtProvider_PushProvider", (PyCFunction) _wrap_wxArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
11224 | { "wxArtProvider__setCallbackInfo", (PyCFunction) _wrap_wxArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
11225 | { "new_wxArtProvider", (PyCFunction) _wrap_new_wxArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
b6e5c445 RD |
11226 | { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, |
11227 | { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
11228 | { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
11229 | { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
11230 | { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
11231 | { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
11232 | { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
11233 | { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
11234 | { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
11235 | { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
11236 | { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
11237 | { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
11238 | { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
11239 | { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
11240 | { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
11241 | { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
11242 | { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
11243 | { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
11244 | { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
11245 | { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
11246 | { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
11247 | { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
11248 | { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
11249 | { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11250 | { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
11251 | { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
11252 | { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
11253 | { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
11254 | { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
11255 | { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
11256 | { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
11257 | { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
11258 | { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
11259 | { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
11260 | { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
11261 | { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
11262 | { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
11263 | { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
11264 | { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11265 | { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
11266 | { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
11267 | { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
11268 | { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11269 | { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS }, |
11270 | { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
11271 | { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
11272 | { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
11273 | { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
11274 | { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
11275 | { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
11276 | { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
11277 | { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
11278 | { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
11279 | { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
11280 | { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
11281 | { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
11282 | { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
11283 | { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
11284 | { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
11285 | { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
11286 | { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
11287 | { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
11288 | { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
11289 | { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
11290 | { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
11291 | { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
11292 | { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
11293 | { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
11294 | { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
11295 | { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
11296 | { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
11297 | { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
11298 | { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
11299 | { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
11300 | { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
11301 | { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
11302 | { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
11303 | { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
11304 | { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
11305 | { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
11306 | { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
11307 | { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
11308 | { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
11309 | { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
11310 | { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
11311 | { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
11312 | { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
11313 | { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
11314 | { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
11315 | { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS }, | |
11316 | { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS }, | |
3e1f6ec4 RD |
11317 | { "wxProcess_IsErrorAvailable", (PyCFunction) _wrap_wxProcess_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, |
11318 | { "wxProcess_IsInputAvailable", (PyCFunction) _wrap_wxProcess_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
11319 | { "wxProcess_IsInputOpened", (PyCFunction) _wrap_wxProcess_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11320 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, |
11321 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
11322 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
11323 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
11324 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
11325 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
11326 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
11327 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
11328 | { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
11329 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11330 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
8961add6 RD |
11331 | { "wxProcess_Open", (PyCFunction) _wrap_wxProcess_Open, METH_VARARGS | METH_KEYWORDS }, |
11332 | { "wxProcess_Exists", (PyCFunction) _wrap_wxProcess_Exists, METH_VARARGS | METH_KEYWORDS }, | |
11333 | { "wxProcess_Kill", (PyCFunction) _wrap_wxProcess_Kill, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11334 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, |
11335 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
11336 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
11337 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
11338 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
11339 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
11340 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
11341 | { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11342 | { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
11343 | { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS }, | |
eb28fd47 RD |
11344 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, |
11345 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11346 | { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, |
11347 | { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
11348 | { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
11349 | { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
11350 | { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11351 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, |
11352 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
11353 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
11354 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
11355 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
11356 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
11357 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
11358 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11359 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
11360 | { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
11361 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11362 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11363 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
11364 | { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
11365 | { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
4ea97290 | 11366 | { "wxLog_GetTraceMasks", (PyCFunction) _wrap_wxLog_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
11367 | { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, |
11368 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11369 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11370 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11371 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
11372 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
11373 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
11374 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
11375 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
11376 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
11377 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
11378 | { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS }, | |
11379 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, | |
11380 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
11381 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
11382 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11383 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
b6e5c445 RD |
11384 | { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS }, |
11385 | { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
11386 | { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
11387 | { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
d1e76a37 | 11388 | { "delete_wxStopWatch", (PyCFunction) _wrap_delete_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
b6e5c445 | 11389 | { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
11390 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, |
11391 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
11392 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
11393 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
11394 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
11395 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
11396 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
11397 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
11398 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
11399 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
11400 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
11401 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
11402 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
11403 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
11404 | { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS }, | |
11405 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
11406 | { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11407 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, | |
11408 | { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, | |
11409 | { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
11410 | { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
11411 | { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
11412 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, | |
383ea3d0 | 11413 | { "wxPyTipProvider__setCallbackInfo", (PyCFunction) _wrap_wxPyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
e6056257 | 11414 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, |
4ea97290 | 11415 | { "wxTipProvider_PreprocessTip", (PyCFunction) _wrap_wxTipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
11416 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, |
11417 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
11418 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
11419 | { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
11420 | { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
11421 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
11422 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
11423 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
11424 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11425 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, |
11426 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
11427 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
11428 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
11429 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, | |
11430 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
11431 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11432 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11433 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11434 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
11435 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
11436 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
11437 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
11438 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
11439 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
11440 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
11441 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
11442 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11443 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
11444 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
11445 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
557a93b9 RD |
11446 | { "wxSystemSettings_SetScreenType", (PyCFunction) _wrap_wxSystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, |
11447 | { "wxSystemSettings_GetScreenType", (PyCFunction) _wrap_wxSystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
6abe8375 RD |
11448 | { "wxSystemSettings_HasFeature", (PyCFunction) _wrap_wxSystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, |
11449 | { "wxSystemSettings_GetMetric", (PyCFunction) _wrap_wxSystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
11450 | { "wxSystemSettings_GetFont", (PyCFunction) _wrap_wxSystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11451 | { "wxSystemSettings_GetColour", (PyCFunction) _wrap_wxSystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11452 | { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS }, |
11453 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, | |
26eb8715 | 11454 | { "wxSafeShowMessage", (PyCFunction) _wrap_wxSafeShowMessage, METH_VARARGS | METH_KEYWORDS }, |
3a37d753 RD |
11455 | { "wxLogGeneric", (PyCFunction) _wrap_wxLogGeneric, METH_VARARGS | METH_KEYWORDS }, |
11456 | { "wxLogTraceMask", (PyCFunction) _wrap_wxLogTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11457 | { "wxLogTrace", (PyCFunction) _wrap_wxLogTrace, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11458 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, |
11459 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
11460 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
11461 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
11462 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, | |
11463 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
11464 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
11465 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
11466 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
11467 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
11468 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
11469 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
11470 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
11471 | { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
11472 | { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
11473 | { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
11474 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
11475 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, | |
11476 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, | |
11477 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
11478 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11479 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, |
11480 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
11481 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
11482 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
11483 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
11484 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
11485 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11486 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
11487 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
eb28fd47 | 11488 | { "wxGetTopLevelParent", (PyCFunction) _wrap_wxGetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
11489 | { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, |
11490 | { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
11491 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
11492 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11493 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, |
11494 | { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
11495 | { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
11496 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
11497 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
11498 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
11499 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
11500 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
11501 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
11502 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
11503 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
11504 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
11505 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
11506 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
11507 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
11508 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
59988cd0 | 11509 | { "wxDirSelector", (PyCFunction) _wrap_wxDirSelector, METH_VARARGS | METH_KEYWORDS }, |
c3bfa1cb RD |
11510 | { "wxSaveFileSelector", (PyCFunction) _wrap_wxSaveFileSelector, METH_VARARGS | METH_KEYWORDS }, |
11511 | { "wxLoadFileSelector", (PyCFunction) _wrap_wxLoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11512 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, |
11513 | { NULL, NULL } | |
11514 | }; | |
11515 | #ifdef __cplusplus | |
11516 | } | |
11517 | #endif | |
11518 | /* | |
11519 | * This table is used by the pointer type-checker | |
11520 | */ | |
11521 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
11522 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, | |
11523 | { "_signed_long","_long",0}, | |
11524 | { "_wxPrintQuality","_wxCoord",0}, | |
11525 | { "_wxPrintQuality","_int",0}, | |
11526 | { "_wxPrintQuality","_signed_int",0}, | |
11527 | { "_wxPrintQuality","_unsigned_int",0}, | |
11528 | { "_wxPrintQuality","_wxWindowID",0}, | |
11529 | { "_wxPrintQuality","_uint",0}, | |
11530 | { "_wxPrintQuality","_EBool",0}, | |
11531 | { "_wxPrintQuality","_size_t",0}, | |
11532 | { "_wxPrintQuality","_time_t",0}, | |
11533 | { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog}, | |
11534 | { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog}, | |
11535 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, | |
11536 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, | |
11537 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, | |
11538 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, | |
11539 | { "_byte","_unsigned_char",0}, | |
11540 | { "_long","_unsigned_long",0}, | |
11541 | { "_long","_signed_long",0}, | |
11542 | { "_size_t","_wxCoord",0}, | |
11543 | { "_size_t","_wxPrintQuality",0}, | |
11544 | { "_size_t","_time_t",0}, | |
11545 | { "_size_t","_unsigned_int",0}, | |
11546 | { "_size_t","_int",0}, | |
11547 | { "_size_t","_wxWindowID",0}, | |
11548 | { "_size_t","_uint",0}, | |
11549 | { "_uint","_wxCoord",0}, | |
11550 | { "_uint","_wxPrintQuality",0}, | |
11551 | { "_uint","_time_t",0}, | |
11552 | { "_uint","_size_t",0}, | |
11553 | { "_uint","_unsigned_int",0}, | |
11554 | { "_uint","_int",0}, | |
11555 | { "_uint","_wxWindowID",0}, | |
11556 | { "_wxChar","_char",0}, | |
11557 | { "_char","_wxChar",0}, | |
11558 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
11559 | { "_EBool","_wxCoord",0}, | |
11560 | { "_EBool","_wxPrintQuality",0}, | |
11561 | { "_EBool","_signed_int",0}, | |
11562 | { "_EBool","_int",0}, | |
11563 | { "_EBool","_wxWindowID",0}, | |
11564 | { "_unsigned_long","_long",0}, | |
11565 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
11566 | { "_signed_int","_wxCoord",0}, | |
11567 | { "_signed_int","_wxPrintQuality",0}, | |
11568 | { "_signed_int","_EBool",0}, | |
11569 | { "_signed_int","_wxWindowID",0}, | |
11570 | { "_signed_int","_int",0}, | |
742fc581 | 11571 | { "_WXTYPE","_wxDateTime_t",0}, |
e6056257 RD |
11572 | { "_WXTYPE","_short",0}, |
11573 | { "_WXTYPE","_signed_short",0}, | |
11574 | { "_WXTYPE","_unsigned_short",0}, | |
11575 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, | |
742fc581 | 11576 | { "_unsigned_short","_wxDateTime_t",0}, |
e6056257 RD |
11577 | { "_unsigned_short","_WXTYPE",0}, |
11578 | { "_unsigned_short","_short",0}, | |
4ea97290 | 11579 | { "_wxObject","_wxEffects",SwigwxEffectsTowxObject}, |
742fc581 | 11580 | { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject}, |
3bc1a8e6 | 11581 | { "_wxObject","_wxPyArtProvider",SwigwxPyArtProviderTowxObject}, |
e6056257 RD |
11582 | { "_wxObject","_wxWave",SwigwxWaveTowxObject}, |
11583 | { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject}, | |
11584 | { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject}, | |
11585 | { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject}, | |
11586 | { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject}, | |
11587 | { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject}, | |
11588 | { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject}, | |
11589 | { "_signed_short","_WXTYPE",0}, | |
11590 | { "_signed_short","_short",0}, | |
11591 | { "_unsigned_char","_byte",0}, | |
11592 | { "_unsigned_int","_wxCoord",0}, | |
11593 | { "_unsigned_int","_wxPrintQuality",0}, | |
11594 | { "_unsigned_int","_time_t",0}, | |
11595 | { "_unsigned_int","_size_t",0}, | |
11596 | { "_unsigned_int","_uint",0}, | |
11597 | { "_unsigned_int","_wxWindowID",0}, | |
11598 | { "_unsigned_int","_int",0}, | |
742fc581 | 11599 | { "_short","_wxDateTime_t",0}, |
e6056257 RD |
11600 | { "_short","_WXTYPE",0}, |
11601 | { "_short","_unsigned_short",0}, | |
11602 | { "_short","_signed_short",0}, | |
11603 | { "_wxWindowID","_wxCoord",0}, | |
11604 | { "_wxWindowID","_wxPrintQuality",0}, | |
11605 | { "_wxWindowID","_time_t",0}, | |
11606 | { "_wxWindowID","_size_t",0}, | |
11607 | { "_wxWindowID","_EBool",0}, | |
11608 | { "_wxWindowID","_uint",0}, | |
11609 | { "_wxWindowID","_int",0}, | |
11610 | { "_wxWindowID","_signed_int",0}, | |
11611 | { "_wxWindowID","_unsigned_int",0}, | |
11612 | { "_int","_wxCoord",0}, | |
11613 | { "_int","_wxPrintQuality",0}, | |
11614 | { "_int","_time_t",0}, | |
11615 | { "_int","_size_t",0}, | |
11616 | { "_int","_EBool",0}, | |
11617 | { "_int","_uint",0}, | |
11618 | { "_int","_wxWindowID",0}, | |
11619 | { "_int","_unsigned_int",0}, | |
11620 | { "_int","_signed_int",0}, | |
742fc581 RD |
11621 | { "_wxDateTime_t","_unsigned_short",0}, |
11622 | { "_wxDateTime_t","_short",0}, | |
11623 | { "_wxDateTime_t","_WXTYPE",0}, | |
e6056257 RD |
11624 | { "_time_t","_wxCoord",0}, |
11625 | { "_time_t","_wxPrintQuality",0}, | |
11626 | { "_time_t","_unsigned_int",0}, | |
11627 | { "_time_t","_int",0}, | |
11628 | { "_time_t","_wxWindowID",0}, | |
11629 | { "_time_t","_uint",0}, | |
11630 | { "_time_t","_size_t",0}, | |
11631 | { "_wxCoord","_int",0}, | |
11632 | { "_wxCoord","_signed_int",0}, | |
11633 | { "_wxCoord","_unsigned_int",0}, | |
11634 | { "_wxCoord","_wxWindowID",0}, | |
11635 | { "_wxCoord","_uint",0}, | |
11636 | { "_wxCoord","_EBool",0}, | |
11637 | { "_wxCoord","_size_t",0}, | |
11638 | { "_wxCoord","_time_t",0}, | |
11639 | { "_wxCoord","_wxPrintQuality",0}, | |
11640 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, | |
11641 | {0,0,0}}; | |
11642 | ||
11643 | static PyObject *SWIG_globals; | |
11644 | #ifdef __cplusplus | |
11645 | extern "C" | |
11646 | #endif | |
11647 | SWIGEXPORT(void) initmisc2c() { | |
11648 | PyObject *m, *d; | |
11649 | SWIG_globals = SWIG_newvarlink(); | |
11650 | m = Py_InitModule("misc2c", misc2cMethods); | |
11651 | d = PyModule_GetDict(m); | |
e6056257 RD |
11652 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); |
11653 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
11654 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
11655 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
11656 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
11657 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
11658 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
11659 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
11660 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
11661 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
ca31b3da | 11662 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); |
e6056257 RD |
11663 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); |
11664 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
11665 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
11666 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
11667 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
11668 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
11669 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
11670 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
11671 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
11672 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
11673 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
11674 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
11675 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
11676 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
ca31b3da | 11677 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); |
e6056257 | 11678 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); |
ca31b3da | 11679 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); |
e6056257 RD |
11680 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); |
11681 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
11682 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
11683 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
ca31b3da RD |
11684 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); |
11685 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
11686 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
e6056257 RD |
11687 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); |
11688 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
11689 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
11690 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
6abe8375 | 11691 | PyDict_SetItemString(d,"wxSYS_COLOUR_LISTBOX", PyInt_FromLong((long) wxSYS_COLOUR_LISTBOX)); |
ca31b3da RD |
11692 | PyDict_SetItemString(d,"wxSYS_COLOUR_HOTLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HOTLIGHT)); |
11693 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
11694 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTINACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
11695 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_MENUHILIGHT)); | |
11696 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUBAR", PyInt_FromLong((long) wxSYS_COLOUR_MENUBAR)); | |
11697 | PyDict_SetItemString(d,"wxSYS_COLOUR_MAX", PyInt_FromLong((long) wxSYS_COLOUR_MAX)); | |
e6056257 RD |
11698 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); |
11699 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
11700 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
11701 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
11702 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
11703 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
11704 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
11705 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
11706 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
11707 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
11708 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
11709 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
11710 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
11711 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
11712 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
11713 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
11714 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
11715 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
11716 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
11717 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
11718 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
11719 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
11720 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
11721 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
11722 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
11723 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
11724 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
11725 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
11726 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
11727 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
11728 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
11729 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
11730 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
11731 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
11732 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
11733 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
11734 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
6abe8375 RD |
11735 | PyDict_SetItemString(d,"wxSYS_CAN_DRAW_FRAME_DECORATIONS", PyInt_FromLong((long) wxSYS_CAN_DRAW_FRAME_DECORATIONS)); |
11736 | PyDict_SetItemString(d,"wxSYS_CAN_ICONIZE_FRAME", PyInt_FromLong((long) wxSYS_CAN_ICONIZE_FRAME)); | |
ec3589a6 | 11737 | PyDict_SetItemString(d,"wxSYS_SCREEN_NONE", PyInt_FromLong((long) wxSYS_SCREEN_NONE)); |
ec3589a6 | 11738 | PyDict_SetItemString(d,"wxSYS_SCREEN_TINY", PyInt_FromLong((long) wxSYS_SCREEN_TINY)); |
557a93b9 RD |
11739 | PyDict_SetItemString(d,"wxSYS_SCREEN_PDA", PyInt_FromLong((long) wxSYS_SCREEN_PDA)); |
11740 | PyDict_SetItemString(d,"wxSYS_SCREEN_SMALL", PyInt_FromLong((long) wxSYS_SCREEN_SMALL)); | |
11741 | PyDict_SetItemString(d,"wxSYS_SCREEN_DESKTOP", PyInt_FromLong((long) wxSYS_SCREEN_DESKTOP)); | |
e6056257 RD |
11742 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); |
11743 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
11744 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
11745 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
11746 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
11747 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
11748 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
11749 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
11750 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
11751 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
3a37d753 RD |
11752 | PyDict_SetItemString(d,"wxTRACE_MemAlloc", PyString_FromString("memalloc")); |
11753 | PyDict_SetItemString(d,"wxTRACE_Messages", PyString_FromString("messages")); | |
11754 | PyDict_SetItemString(d,"wxTRACE_ResAlloc", PyString_FromString("resalloc")); | |
11755 | PyDict_SetItemString(d,"wxTRACE_RefCount", PyString_FromString("refcount")); | |
11756 | PyDict_SetItemString(d,"wxTraceMemAlloc", PyInt_FromLong((long) wxTraceMemAlloc)); | |
11757 | PyDict_SetItemString(d,"wxTraceMessages", PyInt_FromLong((long) wxTraceMessages)); | |
11758 | PyDict_SetItemString(d,"wxTraceResAlloc", PyInt_FromLong((long) wxTraceResAlloc)); | |
11759 | PyDict_SetItemString(d,"wxTraceRefCount", PyInt_FromLong((long) wxTraceRefCount)); | |
8961add6 RD |
11760 | PyDict_SetItemString(d,"wxKILL_OK", PyInt_FromLong((long) wxKILL_OK)); |
11761 | PyDict_SetItemString(d,"wxKILL_BAD_SIGNAL", PyInt_FromLong((long) wxKILL_BAD_SIGNAL)); | |
11762 | PyDict_SetItemString(d,"wxKILL_ACCESS_DENIED", PyInt_FromLong((long) wxKILL_ACCESS_DENIED)); | |
11763 | PyDict_SetItemString(d,"wxKILL_NO_PROCESS", PyInt_FromLong((long) wxKILL_NO_PROCESS)); | |
11764 | PyDict_SetItemString(d,"wxKILL_ERROR", PyInt_FromLong((long) wxKILL_ERROR)); | |
11765 | PyDict_SetItemString(d,"wxSIGNONE", PyInt_FromLong((long) wxSIGNONE)); | |
11766 | PyDict_SetItemString(d,"wxSIGHUP", PyInt_FromLong((long) wxSIGHUP)); | |
11767 | PyDict_SetItemString(d,"wxSIGINT", PyInt_FromLong((long) wxSIGINT)); | |
11768 | PyDict_SetItemString(d,"wxSIGQUIT", PyInt_FromLong((long) wxSIGQUIT)); | |
11769 | PyDict_SetItemString(d,"wxSIGILL", PyInt_FromLong((long) wxSIGILL)); | |
11770 | PyDict_SetItemString(d,"wxSIGTRAP", PyInt_FromLong((long) wxSIGTRAP)); | |
11771 | PyDict_SetItemString(d,"wxSIGABRT", PyInt_FromLong((long) wxSIGABRT)); | |
11772 | PyDict_SetItemString(d,"wxSIGIOT", PyInt_FromLong((long) wxSIGIOT)); | |
11773 | PyDict_SetItemString(d,"wxSIGEMT", PyInt_FromLong((long) wxSIGEMT)); | |
11774 | PyDict_SetItemString(d,"wxSIGFPE", PyInt_FromLong((long) wxSIGFPE)); | |
11775 | PyDict_SetItemString(d,"wxSIGKILL", PyInt_FromLong((long) wxSIGKILL)); | |
11776 | PyDict_SetItemString(d,"wxSIGBUS", PyInt_FromLong((long) wxSIGBUS)); | |
11777 | PyDict_SetItemString(d,"wxSIGSEGV", PyInt_FromLong((long) wxSIGSEGV)); | |
11778 | PyDict_SetItemString(d,"wxSIGSYS", PyInt_FromLong((long) wxSIGSYS)); | |
11779 | PyDict_SetItemString(d,"wxSIGPIPE", PyInt_FromLong((long) wxSIGPIPE)); | |
11780 | PyDict_SetItemString(d,"wxSIGALRM", PyInt_FromLong((long) wxSIGALRM)); | |
11781 | PyDict_SetItemString(d,"wxSIGTERM", PyInt_FromLong((long) wxSIGTERM)); | |
e6056257 | 11782 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); |
40699168 RD |
11783 | PyDict_SetItemString(d,"wxEXEC_ASYNC", PyInt_FromLong((long) wxEXEC_ASYNC)); |
11784 | PyDict_SetItemString(d,"wxEXEC_SYNC", PyInt_FromLong((long) wxEXEC_SYNC)); | |
11785 | PyDict_SetItemString(d,"wxEXEC_NOHIDE", PyInt_FromLong((long) wxEXEC_NOHIDE)); | |
11786 | PyDict_SetItemString(d,"wxEXEC_MAKE_GROUP_LEADER", PyInt_FromLong((long) wxEXEC_MAKE_GROUP_LEADER)); | |
3a37d753 RD |
11787 | PyDict_SetItemString(d,"wxJOYSTICK1", PyInt_FromLong((long) wxJOYSTICK1)); |
11788 | PyDict_SetItemString(d,"wxJOYSTICK2", PyInt_FromLong((long) wxJOYSTICK2)); | |
11789 | PyDict_SetItemString(d,"wxJOY_BUTTON_ANY", PyInt_FromLong((long) wxJOY_BUTTON_ANY)); | |
11790 | PyDict_SetItemString(d,"wxJOY_BUTTON1", PyInt_FromLong((long) wxJOY_BUTTON1)); | |
11791 | PyDict_SetItemString(d,"wxJOY_BUTTON2", PyInt_FromLong((long) wxJOY_BUTTON2)); | |
11792 | PyDict_SetItemString(d,"wxJOY_BUTTON3", PyInt_FromLong((long) wxJOY_BUTTON3)); | |
11793 | PyDict_SetItemString(d,"wxJOY_BUTTON4", PyInt_FromLong((long) wxJOY_BUTTON4)); | |
b6e5c445 RD |
11794 | PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD)); |
11795 | PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE)); | |
11796 | PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE)); | |
11797 | PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME)); | |
11798 | PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL)); | |
11799 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
11800 | SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set); | |
e6056257 | 11801 | |
e6056257 RD |
11802 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); |
11803 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
3bc1a8e6 | 11804 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); |
3a37d753 | 11805 | |
e6056257 RD |
11806 | { |
11807 | int i; | |
11808 | for (i = 0; _swig_mapping[i].n1; i++) | |
11809 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11810 | } | |
11811 | } |